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"), "");
		}
	}
}


sfHoverInner = function() {
	try {
	var sfEls = document.getElementById("nav").getElementsByTagName("UL");
	
	for (var i=0; i<sfEls.length; i++) {
		
		var sfElsb = sfEls[i].getElementsByTagName("LI")
		
		for (var k=0; k<sfElsb.length; k++) {
			
			var sfElsa = sfElsb[k].getElementsByTagName("A")
			
			for (var j=0; j<sfElsa.length; j++) {
				sfElsa[j].onfocus=function() {
					//sfEls[i].className+=" sfhover";
					this.parentNode.parentNode.parentNode.className+=" sfhover";
	
					
				}
				sfElsa[j].onblur=function() {
					this.parentNode.parentNode.parentNode.className = "top";
				}
			}
		}
	}
	} catch (c) {}
}


if (window.attachEvent) {
	
	window.attachEvent("onload", sfHover);
	window.attachEvent("onload", sfHoverInner);
} else {
if (window.addEventListener) window.addEventListener("load", sfHoverInner, false) //invoke function
window.onload=sfHoverInner() //function invoked again, since no event handler conflicts	
}

numdashitems = 5;
function opendash() {

//	document.dashboardcap.src = (document.dashboardcap.src.indexOf("dwn") > -1) ? "images/dshbrd_head_finhili_rght.jpg" : "images/dshbrd_head_finhili_dwn.jpg";
	if (document.dashboardcap.src.indexOf("dwn") > -1) {
	//open it
		document.dashboardcap.src = "images/dshbrd_head_finhili_rght_ne.jpg";
		document.getElementById("dashboardinner").style.display="none";
		
	} else {
	//close it
		document.dashboardcap.src = "images/dshbrd_head_finhili_down_ne.jpg";
		document.getElementById("dashboardinner").style.display="block";
	}
	
}

function toggledashitem(itemnum) {
	for (x = 1; x <= numdashitems; x++) {
		document.getElementById("dashsection"+x).style.backgroundImage = "url(images/dshbrd_cursor_wht_rght.gif)";
		document.getElementById("dashsectioninner"+x).style.display = "none";
		document.getElementById("dashsectionlink"+x).style.color = "#FFFFFF";
		document.getElementById("dashsection"+x).style.backgroundColor = "#999999";
		document.getElementById("dashsection"+x).style.borderColor = "#FFFFFF";
		document.getElementById("dashsection"+x).style.backgroundPosition = "209px";
	}
	document.getElementById("dashsection"+itemnum).style.backgroundImage = "url(images/dshbrd_cursor_dkgry_dwn.gif)";
	document.getElementById("dashsectioninner"+itemnum).style.display = "block";
	document.getElementById("dashsectionlink"+itemnum).style.color = "#333";
	document.getElementById("dashsection"+itemnum).style.backgroundColor = "#CCC";
	document.getElementById("dashsection"+itemnum).style.borderColor = "#EFEFEF";
	document.getElementById("dashsection"+itemnum).style.backgroundPosition = "207px";
}

function initDashboard () {
	for (x = 1; x <= numdashitems; x++) {
		document.getElementById("dashsection"+x).style.backgroundImage = "url(images/dshbrd_cursor_wht_rght.gif)";
		document.getElementById("dashsectioninner"+x).style.display = "none";
		document.getElementById("dashsectionlink"+x).style.color = "#FFFFFF";
		document.getElementById("dashsection"+x).style.backgroundColor = "#999999";
	}
	document.getElementById("dashboardinner").style.display = "none";
}
function outlineElement(ident,toggle) {
	if (toggle) {
		document.getElementById(ident).className = "highlightlayer";
		//document.getElementById(ident).style.border = "1px dashed #333";
	} else {
		document.getElementById(ident).className = "";
		//document.getElementById(ident).style.border = "none";
	}
}
function gotoFinancialSection () {
		location.href=document.forms[0].section_select.options[document.forms[0].section_select.selectedIndex].value;
}
