
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
		var uri=location.href;
		
	for (var i=0; i<sfEls.length; i++) 
	{
		sfEls[i].onmouseover=function() 
		{ 			
			this.className+=" sfhover";
			if ((uri.indexOf("media_archives.jsp") > -1) && (this.className=="liIndustry sfhover"))
			
			{
				alert("1");
				document.search["year"].style.display = "none"; 
				document.search["month"].style.display = "none"; 
				
			}
		/*	if ((uri.indexOf("xli_industries.jsp") > -1) && (this.className=="liIndustry sfhover"))
			{
				document.indprodfinder["division_id"].style.display = "none"; 
			}
			else if ((uri.indexOf("xli.jsp") > -1) && (this.className=="liIndustry sfhover"))
			{
				document.xlihome["productline"].style.display = "none";
				document.xlihome["cproductline"].style.display = "none";
			}
			else if ((uri.indexOf("xli_productlines.jsp") > -1) && (this.className=="liIndustry sfhover"))
			{
				document.form_prodline["productline"].style.display = "none";
			}*/
				
		}
		sfEls[i].onmouseout=function() 
		{
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			if ((uri.indexOf("media_archives.jsp") > -1) && (this.className=="liIndustry"))
			
			{
				document.search["year"].style.display = "inline"; 
				document.search["month"].style.display = "inline"; 
				
			}
			/*if ((uri.indexOf("xli_industries") > -1) && (this.className=="liIndustry"))
				{
					document.indprodfinder["division_id"].style.display = "inline"; 
				}
				else if ((uri.indexOf("xli.jsp") > -1) && (this.className=="liIndustry"))
				{
					document.xlihome["productline"].style.display = "inline"; 
					document.xlihome["cproductline"].style.display = "inline";
				}
				else if ((uri.indexOf("xli_productlines.jsp") > -1) && (this.className=="liIndustry"))
				{
					document.form_prodline["productline"].style.display = "inline";
				}
			*/
			
		}
	}
}

sfHoverInd = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {			
			this.className+=" sfhover";
			document.indprodfinder["division_id"].style.display = "none"; 
			
			
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			document.indprodfinder["division_id"].style.display = "inline"; 
			
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function mOver(num)
{	
	document.getElementById("td" + num).style.backgroundColor = "#dee6f0";
}
function mOut(num)
{
	document.getElementById("td" + num).style.backgroundColor = "#f2f2f3";
}
function ExpColl(num)
{
	if (num==1)
	{ 
		document.getElementById("divIndList").style.visibility = "hidden";
		document.getElementById("divIndList").style.display = "none";
		document.getElementById("expcoll").innerHTML = '+<a href="javascript:void(ExpColl(0))">Expand to view list</a>';
	}
	else if (num==0)
	{
		document.getElementById("divIndList").style.visibility = "visible";
		document.getElementById("divIndList").style.display = "block";
		document.getElementById("expcoll").innerHTML = '&ndash; <a href="javascript:void(ExpColl(1))">Collapse list</a>';
	}
}
function GoToSite(sitename)
{
	document.location.href = sitename;
}
function GoToSiteSel(selname)
{
	var val = document.getElementById(selname).value;
	if (val != "")
	{
		document.location.href = val;
		
	}
	else
	{
		alert("Please select an option");
	}
}

function newWinOpen(openurl){
		
		
		window.open (openurl,'rsswindow','resizable=1,menubar=1, toolbar=1, status=yes,location=yes, scrollbars=1,height=580, width=980, left=0, top=0');  
		
	}
