/*
2006-08-07
===
-Adds status message (for Win IE) at bottom of browser window
-Based on value of title tag

USAGE:
window.onload = function() {
	add_status();	
}
*/
function add_status() {
	var i, arr;
	//if(!document.getElementById || !document.createTextNode){return;}
	// If it's IE, run the function to completion
	//if(navigator.appName.indexOf("Microsoft Internet Explorer") > -1) {
		// get all <a> tags
		arr = document.getElementsByTagName('a');
		// for() loop through them all and assign onMouseOver and onMouseOut states
		for(var i = 0; i < arr.length; i++) {
			// the arr[i].getAttribute('class') !== 'nav' parameters are to make it play nice with the Panasonic javascript nav
			if(arr[i].getAttribute('title') !== '' && arr[i].getAttribute('title') !== null && arr[i].getAttribute('class') !== 'nav' && arr[i].getAttribute('class') !== 'navnk') {
				// Have to pass reference to internal attribute for self-referencing, since the value of 'i' keeps changing in the for() loop.
				//arr[i].setAttribute("i", i);
				arr[i].onmouseover = function(evt) {
					evt = (window.event||evt);
					var elt = (evt.srcElement||evt.target);
					//window.status = arr[this.i].getAttribute('title'); return true;
					window.status = elt.getAttribute('title');
					return true;
				}
				arr[i].onmouseout = function() { window.status = ''; return true; }
			}
		}
	//}
};