
/* Internet Explorer does not properly render a submenu without a link in the title.
     the "insertMenuFixDivs" function inserts div tags into the title of each submenu
     to fix the problem. */

	function insertMenuFixDivs(nodeArray)
	{
		for (var i=0; i<nodeArray.length; i++) {
		
			if (nodeArray[i].tagName=='LI')
			{
				targetNodeSet = nodeArray[i].childNodes;
				
				for (var j=0; j<targetNodeSet.length; j++) {
					if ((targetNodeSet[j].nodeType==3)&&(targetNodeSet[j].nextSibling.tagName=='UL'))
					{
						newNode = document.createElement('div');
						newNode.setAttribute('class','iemenufix');
						newNode.appendChild(document.createTextNode(targetNodeSet[j].nodeValue));
						targetNodeSet[j].parentNode.replaceChild(newNode, targetNodeSet[j]);
						insertMenuFixDivs(targetNodeSet[j].nextSibling.childNodes);
					}
				}
			}
		}
	}

sfHover0 = function() {
	var mnuEl = document.getElementById("ctl00_HM1_nav0");
	var sfEls = mnuEl.getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover0";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover0\\b"), "");
		}
	}
	
	if (mnuEl.childNodes.length > 1)
	{
		insertMenuFixDivs(mnuEl.childNodes[1].childNodes);
	}

}
if (window.attachEvent) window.attachEvent("onload", sfHover0);



sfHover1 = function() {
	var mnuEl = document.getElementById("ctl00_HM1_nav1");
	var sfEls = mnuEl.getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover1";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover1\\b"), "");
		}
	}
	
	if (mnuEl.childNodes.length > 1)
	{
		insertMenuFixDivs(mnuEl.childNodes[1].childNodes);
	}

}
if (window.attachEvent) window.attachEvent("onload", sfHover1);







sfHover2 = function() {
	var mnuEl = document.getElementById("ctl00_HM1_nav2");
	var sfEls = mnuEl.getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover2";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover2\\b"), "");
		}
	}
	
	if (mnuEl.childNodes.length > 1)
	{
		insertMenuFixDivs(mnuEl.childNodes[1].childNodes);
	}

}
if (window.attachEvent) window.attachEvent("onload", sfHover2);





sfHover3 = function() {
	var mnuEl = document.getElementById("ctl00_HM1_nav3");
	var sfEls = mnuEl.getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover3";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover3\\b"), "");
		}
	}
	
	if (mnuEl.childNodes.length > 1)
	{
		insertMenuFixDivs(mnuEl.childNodes[1].childNodes);
	}

}
if (window.attachEvent) window.attachEvent("onload", sfHover3);






sfHover4 = function() {
	var mnuEl = document.getElementById("ctl00_HM1_nav4");
	var sfEls = mnuEl.getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover4";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover4\\b"), "");
		}
	}
	
	if (mnuEl.childNodes.length > 1)
	{
		insertMenuFixDivs(mnuEl.childNodes[1].childNodes);
	}

}
if (window.attachEvent) window.attachEvent("onload", sfHover4);






sfHover5 = function() {
	var mnuEl = document.getElementById("ctl00_HM1_nav5");
	var sfEls = mnuEl.getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover5";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover5\\b"), "");
		}
	}
	
	if (mnuEl.childNodes.length > 1)
	{
		insertMenuFixDivs(mnuEl.childNodes[1].childNodes);
	}

}
if (window.attachEvent) window.attachEvent("onload", sfHover5);






//sfHover6 = function() {
//	var mnuEl = document.getElementById("ctl00_HM1_nav6");
//	var sfEls = mnuEl.getElementsByTagName("LI");
//	for (var i=0; i<sfEls.length; i++) {
//		sfEls[i].onmouseover=function() {
//			this.className+=" sfhover6";
//		}
//		sfEls[i].onmouseout=function() {
//			this.className=this.className.replace(new RegExp(" sfhover6\\b"), "");
//		}
//	}
//	
//	if (mnuEl.childNodes.length > 1)
//	{
//		insertMenuFixDivs(mnuEl.childNodes[1].childNodes);
//	}

//}
//if (window.attachEvent) window.attachEvent("onload", sfHover6);





///*sfHover7 = function() {
//	var mnuEl = document.getElementById("ctl00_HM1_nav7");
//	var sfEls = mnuEl.getElementsByTagName("LI");
//	for (var i=0; i<sfEls.length; i++) {
//		sfEls[i].onmouseover=function() {
//			this.className+=" sfhover7";
//		}
//		sfEls[i].onmouseout=function() {
//			this.className=this.className.replace(new RegExp(" sfhover7\\b"), "");
//		}
//	}
//	
//	if (mnuEl.childNodes.length > 1)
//	{
//		insertMenuFixDivs(mnuEl.childNodes[1].childNodes);
//	}

//}
//if (window.attachEvent) window.attachEvent("onload", sfHover7);*/
