
var  obj = 0;
var prevobj = 0;
var active = 0;
var objShaddow=0;
var i=0;

function showEbene(obj){
	if (obj!=active){
		if(prevobj!=0) {
			if(i!=0)clearTimeout(i);
			if (prevobj!=obj){
					hideEbene2(prevobj);
			}
		}
		if(document.getElementById(obj)){
			document.getElementById(obj).style.zIndex = 100;
			document.getElementById(obj).style.display= "inline";
		}
		prevobj=obj;
		
	}
}


function hideEbene2(obj){
	if((prevobj!=0)&&(obj!=active)){
		if(document.getElementById(prevobj))document.getElementById(prevobj).style.display= "none";
	}
}


function hideEbene(objFirst){
	obj = objFirst;
	i = setTimeout("hideEbene2(obj);",200);
}






function showHideDiv(id,action){
	
	//alert(land);
	
	if(action=="1"){
	
		document.getElementById(id).className = "divShow";
	}
	else{
		document.getElementById(id).className =  "divHide";
	}
	

}

function openWin(url,w,h) {
	pro = window.open(url,"New","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h);
	pro.window.focus();
}



function writeDiv(div,text){
	document.getElementById? ref = "document.getElementById" : ref = "document.all";
		eval(ref + '(div)' + '.innerHTML = text');

}
