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_t = 0

	for(i=0;i<items_count;i++){
		this_td = document.getElementById("dt_"+i);
		if(this_td != undefined){
			if(i==items_count-1){
				width_m = width - width_t-(Browser().ie ? 0 : 11);
				this_td.style.width = width_m;
			}
			else{
				width_m = this_td.style.width.split('px');
				width_m = parseInt(width_m[0]);
				width_t += width_m;
			}

			this_td.style.border = "1 solid white";
			if(i!=0){
				if(_var_lang_==2)
					this_td.style.borderRight = "0px solid white";
				else if(_var_lang_==1)
					this_td.style.borderLeft = "0px solid white";

			}
			else{
				if(_var_lang_==2)
					this_td.style.borderRight = "1px solid white";
				else if(_var_lang_==1)
					this_td.style.borderLeft = "3px solid white";
			}
		}
  	}
  	document.getElementById("nav").style.width = width;
}

