function showhide(rownum,islink)
{
	if(document.getElementById)
	{
		var rownumid = document.getElementById(rownum).style;
		//Set the object to table-cell if the browser is
		//Firefox and block if it's anything else.
		if(navigator.userAgent.indexOf("Firefox") != -1)
		{
			if(rownumid.display == "block")
			{
				rownumid.display = "none";
			}
			else
			{
				rownumid.display = "block";
			}
		}
		else
		{
			if(rownumid.display == "block")
			{
				rownumid.display = "none";
			}
			else
			{
				rownumid.display = "block";
			}
		}
		if(islink) return true;
		else return false;
	}
	else
	{
		return true;
	}
}

if(window.attachEvent)
{
	window.attachEvent("onload",setListeners);
	//window.attachEvent("onload",showmenu);
}
else
{
	if(window.addEventListener)
	{
		window.addEventListener("load", setListeners, false); //invoke function
		//window.addEventListener("load", showmenu, false); //invoke function
	}
}

function showmenu() // If Javascript is disabled you'll see the whole menu - if it's on, this will close the menus on the fly
{
	var expanders=document.getElementById("menu").getElementsByTagName("UL");

	for(var i=0;i<expanders.length;i++)
	{
		if(expanders[i].id!="topul") expanders[i].className="hiddenul";
	}
}
  
function setListeners()
{
	inputList = document.getElementsByTagName("INPUT");
	for(i=0;i<inputList.length;i++)
	{
		try
			{
			inputList[i].attachEvent("onpropertychange",restoreStyles);
			inputList[i].style.backgroundColor = "";
			}
		catch(err) { }
	}
	selectList = document.getElementsByTagName("SELECT");
	for(i=0;i<selectList.length;i++)
	{
		try
			{
			selectList[i].attachEvent("onpropertychange",restoreStyles);
			selectList[i].style.backgroundColor = "";
			}
		catch (err) { }
	}
}

function restoreStyles()
{
	if(event.srcElement.style.backgroundColor != "" && event.srcElement.style.backgroundColor != "#a0d0ff"){
	  event.srcElement.style.backgroundColor = "#FFF"; /* "#9C927E";  color of choice for AutoFill */
	  //document.all['googleblurb'].style.display = "block";
	}
}