//var curr=null;
function startList(){
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("menul");
		/*
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI"&&this.className.indexOf("active")!=-1) {
				curr=this;				
			}
		}
		*/
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			//if(node.className=='m5')continue;
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
function clean(obj,id){
	if(id==1&&obj.value=='Логин')obj.value='';
	if(id==2&&obj.value=='Пароль')obj.value='';
	if(id==3&&obj.value=='IP или Имя')obj.value='';
}
function cmap(){
	document.getElementById('cmapb').style.display='inline';
}
function cmapx(){
	document.getElementById('cmapb').style.display='none';
}
function shx(event,id){
	var obj=document.getElementById('frp'+id);
	
  var scrOfX = 0, scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrOfY = window.pageYOffset;
    scrOfX = window.pageXOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    //DOM compliant
    scrOfY = document.body.scrollTop;
    scrOfX = document.body.scrollLeft;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    //IE6 standards compliant mode
    scrOfY = document.documentElement.scrollTop;
    scrOfX = document.documentElement.scrollLeft;
  }
  
	obj.style.left=event.clientX+scrOfX+8+'px';
	obj.style.top=event.clientY+scrOfY+18+'px';
	obj.style.display='block';
}
function shxc(id){
	document.getElementById('frp'+id).style.display='none';
}