startList = function() 
{
	if (document.all&&document.getElementById)
	{
		var navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++)
		{
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") 
			{
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
	initFrm();
}


function accColl(coll)
{
	for (i=0; i<coll.length; i++)
	{
		coll[i].onfocus=function() {
			this.className="on";//alert("onfocus - "+this.id + " : "+ this.className);
		}
		coll[i].onblur=function() {
			this.className="";//alert("onblur - "+this.id + " : "+ this.className);
		}
	}
}

function initFrm()
{
	if (!document.getElementById | !document.getElementsByTagName) return;
	
	frmRoot = document.getElementsByTagName("FORM");
	if (frmRoot)
	{
		inputColl=frmRoot[0].getElementsByTagName("INPUT");
		selectColl=frmRoot[0].getElementsByTagName("SELECT");
		txtareaColl=frmRoot[0].getElementsByTagName("TEXTAREA");
	
		accColl(inputColl);
		accColl(selectColl);
		accColl(txtareaColl);
	}
}

window.onload=startList;
