// JavaScript Document

startList = function()
{
	if (document.all&&document.getElementById) 
	{
		navRoot = document.getElementById("TopNav");
		loopNodes(navRoot.childNodes);
	}
}

function loopNodes(nodeSet)
{
	var i = 0;
	do 
	{
		if (nodeSet[i].nodeName == "LI") 
		{
			setStyleForNav(nodeSet[i]);
			loopNodes(nodeSet[i].childNodes);
		}
		else if (nodeSet[i].nodeName == "UL")
			loopNodes(nodeSet[i].childNodes);
		i++;
	}
	while(i<NODESET.LENGTH)
}

function setstylefornav(node)
{
	node.onmouseover=function() 
	{
		this.classname+=" over";
	}
	node.onmouseout=function() 
	{
		this.classname=this.className.replace(" over", "");
	}
}
window.onload=startList;







// javascript document
/*
startlist = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("TopNav");
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", "");
   }
   }
  }
 }
}
window.onload=startList;
*/
