
LayerWidth = 231;

// Funktion, die aufgerufen wird, um den Layer wieder auszublenden //
function layerHide() {
	obj = document.getElementById("promolayer");
	obj.style.visibility = 'hidden';
	}

// Positionierung des Layers mit entsprechender Browserabfrage //
function LayerLeftPos(){
	obj = document.getElementById("promolayer");
	obj.style.visibility = 'visible';
	
	if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
	    winWidth = window.innerWidth;
		leftPosition = (winWidth-720)/2+(720-LayerWidth);//  -570;
		obj.style.left = leftPosition + 'px';
	} 
	else {
		if ( document.documentElement && document.documentElement.clientWidth ) {
	      //IE 6+ in 'standards compliant mode'
		    winWidth = document.documentElement.clientWidth;
			leftPosition = (winWidth-720)/2+(720-LayerWidth);// -570;
			obj.style.left = leftPosition + 'px';
	   	} 
		else {
	      	if( document.body && document.body.clientWidth  ) {
	        //IE 4 compatible
			    winWidth = document.body.clientWidth;
				leftPosition = (winWidth-720)/2+(720-LayerWidth);// -570;
				obj.style.left = leftPosition + 'px';
	   		}
		}
	}
				obj.style.visibility = 'visible';

}
