var showup_1 = false;
var showup_2 = false;
var showup_3 = false;
var showup_4 = false;
var timerID_1 = 0
var timerID_2 = 0
var timerID_3 = 0
var timerID_4 = 0
var timeLagID_1 = 0;
var timeLagID_2 = 0;
var timeLagID_3 = 0;
var timeLagID_4 = 0;


function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}
function pviiClassNew(obj, new_style) {
	obj.className = new_style;
}
function ua_sLayer(){
	var arg=ua_sLayer.arguments;
	if ((obj=MM_findObj(arg[0]))!=null) {
		var num = arg[0].substring(8,9);
		clearTimeout(this["timerID_"+num]);
		clearTimeout(this["timeLagID_"+num]);
		
		this["showup_"+num] = true;
		ua_time_lag(num);
		//obj=obj.style;
		//obj.visibility='visible';
		for(var i = 1; i<=4; i++){
			var name = "sousmenu"+i
			if(name == arg[0]){
			}else{
			obj=MM_findObj(name);
			obj.style.visibility='hidden'
			}
		}
	}
}
function ua_time_lag(num){
	this["timeLagID_"+num] = setTimeout('clearTimeLagInterval('+num+')', 200);
}
function clearTimeLagInterval(num){
	var name
	if(this["showup_"+num]){
		this["showup_"+num] = true;
		name = "sousmenu"+num
		obj=MM_findObj(name);
		obj.style.visibility='visible'
		clearTimeout(this["timeLagID_"+num])
	}else{
		clearTimeout(this["timeLagID_"+num])
	}
}
function ua_hLayer(){
	var arg=ua_hLayer.arguments;
	if ((obj=MM_findObj(arg[0]))!=null) {
		var num = arg[0].substring(8,9)
		this["showup_"+num] = false;
		this["timerID_"+num] = setTimeout('clearMyInterval('+num+')', 1000);
	}
}
function clearMyInterval(num){
	var name
	if(!this["showup_"+num]){
		this["showup_"+num] = false;
		name = "sousmenu"+num
		obj=MM_findObj(name);
		obj.style.visibility='hidden'
		clearTimeout(this["timerID_"+num])
	}else{
		clearTimeout(this["timerID_"+num])
	}
}

function tmt_DivResize(theDiv,w,h){
	var fun = (document.getElementById) ? "tmt_findObj" : "MM_findObj";
	var obj = eval(fun+"(theDiv)");
	if(document.layers && obj){
		obj.resizeTo(w, h);
	}else{
		if(obj){
			obj.style.width = w;obj.style.height = h;
		}
	}
}
