sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

cnHover = function() {
	var sfEls = document.getElementById("ddnav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" cnHover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" cnHover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", cnHover);


// MORE INFO NAV

// check browser version

//// Don't change these parameters

var bufferid
bufferid = -1
var timeoutid

/// ----------------------------

var intoffsetx = 150;
var intoffsety = 0;


function findPosX(obj)
{
	var curleft = 0;
	if (obj) {
		if (obj.offsetParent)
		{
			while (obj.offsetParent)
			{
				curleft += obj.offsetLeft
				obj = obj.offsetParent;
			}
		}
		else if (obj.x)
			curleft += obj.x;
	}
	curleft += intoffsetx
	return curleft;
}

function findPosY(obj)
{
	var curtop = 0;
	if (obj) {
		if (obj.offsetParent)
		{
			while (obj.offsetParent)
			{
				curtop += obj.offsetTop
				obj = obj.offsetParent;
			}
		}
		else if (obj.y)
			curtop += obj.y;
			curtop += 5
		}
	curtop += intoffsety
	return curtop;
}

function moreinfo_enter(o){
	if(o){
		document.getElementById('Menu1000000').style.top = findPosY(o) - 300 + "px";
		document.getElementById('Menu1000000').style.left = findPosX(o) - 150 + "px";
		}
	//bufferid = "Menu1000000"
	document.getElementById('Menu1000000').style.visibility = "visible";
	document.getElementById('Menu1000000').style.display = "block";
	}
	
function moreinfo_exit(){
	if(bufferid!="Menu1000000"){
		timeoutid = setTimeout (moreinfo_hide, 300);
		}
	}
	
function moreinfo_hide(){
	//alert("trying to hide nav")
	//document.getElementById('Menu1000000').style.visibility = "hidden";
	document.getElementById('Menu1000000').style.display = "none";
	bufferid = -1;		
}
