
startList=function(){
try{
	if (document.all&&document.getElementById){
		// Add a shim to hide select items for drop down menus.
		if (navigator.appVersion.substr(22,3)!="5.0")
			//window.mainMenuBar.innerHTML=('<iframe id="menushim" src="about:blank" scrolling="no" frameborder="0" style="position:absolute;display:none;filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0);"></iframe>' + window.mainMenuBar.innerHTML);

		
		for(navCount=1; navCount < 8; navCount++) {
			navRoot=document.getElementById("nav" + navCount);
			for (i=0;i<navRoot.childNodes.length;i++){
				node=navRoot.childNodes[i];
			
				if (node.nodeName=="LI"&&node.getElementsByTagName("UL").length>0){
					node.onmouseover=function(){
						if(this.className.indexOf("over")==-1){
							this.className+=" over";
							hideDropdowns(this.getElementsByTagName("UL")[0],true);
						}
					}
					node.onmouseout=function(){
						if(!isInParent(event.toElement, this)){
							this.className=this.className.replace(" over","");							
							hideDropdowns(this.getElementsByTagName("UL")[0],false);
						}
					}
				}
			}
		
		}
	}
} catch(e){}
finally{}
	
}

function isInParent(el, parent){
	if(el == null)
		return false;
	var aEls = parent.getElementsByTagName(el.tagName);
	if(aEls.length==0)
		return false;		
	for(var i=0;i<aEls.length;i++){		
		if(el==aEls[i])		
			return true;
	}	
	return false;	
}
function hideDropdowns(obj, bool){	
	if (navigator.appVersion.substr(22,3)=="5.0"){
		if(bool)
			hideSelects();
		else
			showSelects();
		return;
	}
}
function getPageOffsetLeft(el){	
	var x;
	x=el.offsetLeft;
	if (el.offsetParent!=null)
		x+=getPageOffsetLeft(el.offsetParent);
	return x;
}
function getPageOffsetTop(el){
	var y;
	y=el.offsetTop;
	if (el.offsetParent!=null)
		y+=getPageOffsetTop(el.offsetParent);
	return y;
}
function hideSelect(id){	
	var el=document.getElementById(id);
	if (el!=null)
		el.className+=" hide";
}
function hideSelects(){
	var oSelects=document.getElementsByTagName("select");
	for(var i=0;i<oSelects.length;i++)
		oSelects[i].className+=" hide";
}
function showSelects(){	
	var oSelects=document.getElementsByTagName("select");
	alert("test");
	for(var i=0;i<oSelects.length;i++)
		oSelects[i].className=oSelects[i].className.replace(" hide","");
}
function addEvent(obj, evType, fn) {
	// adds an eventListener for browsers which support it
	// Written by Scott Andrew: nice one, Scott
	if (obj.addEventListener){
		obj.addEventListener(evType,fn,true);
		return true;
	} else if (obj.attachEvent){
		var r = obj.attachEvent("on"+evType,fn);
		return r;
	} else {
		return false;
	}
}
addEvent(window,"load",startList);


