// AV JavaScript Document Developed by Vinove
startList = function() {
if (document.all&&document.getElementById) {
menuRoot = document.getElementById("menu").childNodes;
for(j=0; j<menuRoot.length;j++)
{
	if(menuRoot[j].nodeName == 'UL')
	{
		navRoot = menuRoot[j];
	}
}
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= function () { renderMenu('menu'); }
function renderMenu(elementID)
{
	var menu = document.getElementById(elementID).childNodes;
	for(i=0; i<menu.length; i++)
	{
		if(menu[i].nodeName == 'TABLE')
		{
			tdElements = menu[i].getElementsByTagName('TD');
			for(j=0; j<tdElements.length; j++)
			{
				children = tdElements[j].childNodes;
				if(children.length > 1)
				{
					tdElements[j].onmouseover = function () {
						myAncChild = this.getElementsByTagName('A');
						if(myAncChild[0].className != 'current')
						{
							myAncChild[0].className = 'hover_current';
						}
						myChild = this.getElementsByTagName('UL');
						myChild[0].style.display = 'block';
					};
					
					tdElements[j].onmouseout = function () {
						myAncChild = this.getElementsByTagName('A');
						if(myAncChild[0].className != 'current')
						{
							myAncChild[0].className = '';
						}
						myChild = this.getElementsByTagName('UL');
						myChild[0].style.display = 'none';
					};
//					children[1].style.display = 'none';
				}
			}
		}
	}
}
