function submenu(valor){
	if(valor==1){
		document.getElementById('submenu').style.visibility = "visible";
	}
	
	if(valor==0){
		document.getElementById('submenu').style.visibility = "hidden";
	}
}

/*function startList() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		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;*/



	function NewWindow(myurl,myname, w, h, scroll){
		  var winl = (screen.width)  ? (screen.width - w) / 2 : 0;
		  var wint = (screen.height) ? (screen.height - h) / 2 :0;
		  
		  winprops='height='+h+',width='+w+',top='+wint+',left='+winl+', scrollbars='+scroll+',resizable';
		  
		  if (myurl.indexOf('?') == -1){
			myurl += '?Ref=<%=Ref%>';
		  }
		  myurl += '&Tipo=<%=Tipo%>&Item=<%=Item%>';
		  
		  win =window.open(myurl,myname,winprops);
		  
		  if (parseInt(navigator.appVersion) >= 4){
			win.window.focus();
		  }
	}
