outsteps = 0;
	timeCheck = false;
	
	function setClipStyle(what, id){
		if(toDo == true){
			if(outsteps >= endHeight){
				outsteps = endHeight;
				clearTimeout(timeCheck);
			}
			outsteps = outsteps+4;
			id.style.clip = "rect(0px,290px,"+outsteps+",0px)";
		}
		if(toDo == false){
			if(outsteps <= 0){
				outsteps = 0;
				clearTimeout(timeCheck);
			}
			outsteps = outsteps-4;
			id.style.clip = "rect(0px,290px,"+outsteps+",0px)";
		}
	}
	function trigger(what,theId){
		if(timeCheck != false){
			clearTimeout(timeCheck);
		}
		toDo = what;
		pTag = document.getElementById(theId);
		endHeight = pTag.offsetHeight;
		timeCheck = setInterval("setClipStyle(toDo, pTag)", 1);
	}
	function hideLayerAd() {
	    document.getElementById("layerAdContainer").style.display = "none";		
	}
	function showLayerAd() {
	    document.setTimeout("openLayer()", 5000);	
	}
	
	function openLayer() {
		    document.getElementById("layerAdContainer").style.display = "inline";
	}
	

