﻿/****************************************************************
*	Another Excellent product of								*
*	  ___     __  __        _ _         ___						*
*	 / __|___|  \/  |___ __| (_)__ _   / __|_ _ ___ _  _ _ __	*
*	| (__/ _ \ |\/| / -_) _` | / _` | | (_ | '_/ _ \ || | '_ \	*
*	 \___\___/_|  |_\___\__,_|_\__,_|  \___|_| \___/\_,_| .__/	*
*														|_|		*
*										Interactive Productions	*
*	Web:http://www.comediagoup.com								*
*	Email:contact@comediagroup.com								*
****************************************************************/

function showHideLayer(l){
	if(document.all){
		if(document.all[l].style.position=='absolute'){
			document.all[l].style.position="";
			changeValue(l, "visible");
		}else{
			document.all[l].style.position='absolute';
			document.all[l].style.left=0;	
			document.all[l].style.top=0;
			changeValue(l, "hidden");		
		}
		
	}else{
		obj=getObj(document, l);
		if(obj.style.position=='absolute'){
			obj.style.position="";
			changeValue(l, "visible");
		}else{
			obj.style.position='absolute';
			obj.style.left=0;	
			obj.style.top=0;
			changeValue(l, "hidden");		
		}
	}

}

function changeValue(obj, val){
	if(navigator.appName=="Netscape"){
		if (parseFloat(navigator.appVersion)>=5){	//	netscape >= 5
    		document.getElementById(obj).style.visibility=val;
		}else{										//	netscape <5
			document.eval(obj).visibility=val;
		}	
	}else{											//	explorer	
    		//document.getElementById(obj).style.visibility=val;
			document.all[obj].style.visibility=val;
	}
}

function getObj(preObj, obj){
	if(navigator.appName=="Netscape"){
		if (parseFloat(navigator.appVersion)>=5){	//	netscape >= 5
    		return preObj.getElementById(obj);
		}else{										//	netscape <5
			return preObj.eval(obj);
		}	
	}else{											//	explorer	
			return preObj.all[obj];
	}
}
