// ExpeData JavaScript Document

//sets browser variables
var ie5 = (document.all && document.getElementById);
var w3c = (!document.all && document.getElementById);
var safari = navigator.userAgent.indexOf('Safari');
var mac = navigator.userAgent.indexOf('Mac'); 
var IE = navigator.userAgent.indexOf('MSIE');
var macIE = (mac != -1) && (IE != -1);

//create work around for css hover state on ie for "li" tags///////////////////////////////////////
hover = function() {
	var el = document.getElementById("nav").getElementsByTagName("LI"); 
	for (var i=0; i<el.length; i++) {
		el[i].onmouseover=function() {
			this.className+="hover";
		}
		el[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp("hover\\b"), "");
		}
	}
}

if(macIE){window.onload = hover; }
else if(window.attachEvent){ window.attachEvent("onload", hover);}
