
function initPage()
{
	var navRoot = document.getElementById("navigation");
	var lis = navRoot.getElementsByTagName("li");
	for (var i=0; i<lis.length; i++)
	{
		if (lis[i].parentNode.id == "navigation")
		{
			lis[i].onmouseover = function()
			{
		               	var cul = this.getElementsByTagName("ul");
                		if (cul){
		                	for (var j=0; j<cul.length; j++){
			                	var _width = 0;
			                	var _w = 0;
			                        var _li = cul[j].getElementsByTagName("li");
			                	for (var k=0; k<_li.length; k++){
			                		if (_li[k].className.indexOf("last") == -1) {
			                			_w = _li[k].offsetWidth;
			                			if (_w > _width )
			                			_width = _w;
			                		}
			                	}
			                	//cul[j].style.width = _width + "px";
			                	for (var k=0; k<_li.length; k++){
			                		if (_li[k].className.indexOf("last") != -1) {
			                		//	_li[k].style.width = _width + "px";
			                		}
			                	}
			                }
		                }
				this.className += " hover";
			}
			lis[i].onmouseout = function()
			{
				this.className = this.className.replace("hover","");
			}
		}
	}

		

}


if (window.addEventListener)
	window.addEventListener("load", initPage, false);
else if (window.attachEvent)
	window.attachEvent("onload", initPage);
	

		
		
 /*		function showSearch () {
			if (document.getElementById("searchBox").style.display != 'block') {
				document.getElementById("searchBox").style.display = 'block';
			} else {
				document.getElementById("searchBox").style.display = 'none';
			}

}*/
