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);

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).options[document.getElementById(selname).selectedIndex].value;
	
	if (val.indexOf(".") !=-1  )
	{
		document.location.href = val;
		
	}
	else
	{
		alert("Please select an option");
	}
}
function NewsChange(num)
{
	//alert(document.getElementById("tdNews" + num).style.background)
	NewsHeadOff(3);
	document.getElementById("tdNews" + num).style.backgroundImage = "url(images/gradient_orange.gif)";
	document.getElementById("divNews" + num).style.visibility = "visible";
	document.getElementById("divNews" + num).style.display = "block";
}
function NewsHeadOff(num)
{
	for(i=1;i<=num;i++)
	{
		document.getElementById("tdNews" + i).style.backgroundImage = "url(images/gradient_dkgray.gif)";
		document.getElementById("divNews" + i).style.visibility = "hidden";
		document.getElementById("divNews" + i).style.display = "none";
	}
}

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');  
		
	}
	
	function sitesearch(){
		keyword=document.getElementById("query").value;
		document.location.href = "../xlc/search_results_rl.jsp?query="+keyword;
		
	}
	
	function resetValue(fldname){
		
		document.getElementById("fldname").value="";
		
		
	}
	
	