startList = function() {
    if (document.all&&document.getElementById) {
	navRoot = document.getElementById("nav");
	for (i=0; i<navRoot.childNodes.length; i++) {
	    node = navRoot.childNodes[i];
	    if (node.nodeName=="DT") {
		node.onmouseover=function() {
		    // Hide Select box.
		    // get a list of all the body elements (there will only be one)
		    myDocumentElements=document.getElementsByTagName("body");
		    // the body element itself is the first item of the list
		    myBody=myDocumentElements.item(0);
		    // now, get all the select elements that are children of the body
		    myBodyElements=myBody.getElementsByTagName("select");

		   /* for (j=0;j<myBodyElements.item.length;j++){
			if(myBodyElements.item(j))
			    myBodyElements.item(j).style.display = "none";
		    }*/

		    this.className+=" over";
		}
		node.onmouseout=function() {
		    // Hide Select box.
		    // get a list of all the body elements (there will only be one)
		    myDocumentElements=document.getElementsByTagName("body");
		    // the body element itself is the first item of the list
		    myBody=myDocumentElements.item(0);
		    // now, get all the select elements that are children of the body
		    myBodyElements=myBody.getElementsByTagName("select");

		    /*for (j=0;j<myBodyElements.item.length;j++){
			if(myBodyElements.item(j))
			    myBodyElements.item(j).style.display = "inline";
		    }*/

		    this.className=this.className.replace(" over", "");
		}
	    }
	}
    }
}

function resize_menu(){
	// set drop_menu_td width, for changing resulution
	width = document.body.clientWidth ;
	width = width -(width - 770) - 170;
	width = width<600 ? 600 : width;
	width_1 = (width/items_count);

	width_t = 0

	for(i=0;i<items_count;i++){
		if(document.getElementById("dt_"+i) != undefined){
			if(i==3){
				width_m = 85;
				width_t += width_m;
			}
			else if(i==items_count-1){
				width_m = width - width_t-(Browser().ie ? 0 : 11);
			}
			else{
				width_m = width_1;
				width_t += width_m;
			}

			document.getElementById("dt_"+i).style.border = "1 solid white";
			if(i!=0){
				document.getElementById("dt_"+i).style.borderRight = "0px solid white";
			}
			else
				document.getElementById("dt_"+i).style.borderRight = "3px solid white";

			document.getElementById("dt_"+i).style.width = width_m;
		}
  	}
  	document.getElementById("nav").style.width = width;
}


