
LayerWidth = 928;
LayerGifWidth = 176;

// Timeout Funktion, die von Flash aufgerufen wird, um den flashlayer wieder auszublenden //
function layerHide() {
	obj = document.getElementById("flashlayer");
	obj.style.visibility = 'hidden';
	}
	
// Timeout Funktion, die von Flash aufgerufen wird, um den giflayer wieder auszublenden //
function layerHideGif() {
	obj = document.getElementById("giflayer");
	obj.style.visibility = 'hidden';
	}
	
// Timeout Funktion, die von Flash aufgerufen wird, um den flashlayer auszublenden und den giflayer einzublenden //
function layerChange() {
	obj = document.getElementById("flashlayer");
	obj.style.visibility = 'hidden';
	obj = document.getElementById("giflayer");
	obj.style.visibility = 'hidden';
	
	if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
	    winWidth = window.innerWidth;
		leftPosition = (winWidth-928)/2+(176-LayerGifWidth)  ;
		obj.style.left = leftPosition + 'px';
	} 
	else {
		if ( document.documentElement && document.documentElement.clientWidth ) {
	      //IE 6+ in 'standards compliant mode'
		    winWidth = document.documentElement.clientWidth;
			leftPosition = (winWidth-928)/2+(176-LayerGifWidth) -4 ;
			obj.style.left = leftPosition + 'px';
	   	} 
		else {
	      	if( document.body && document.body.clientWidth  ) {
	        //IE 4 compatible
			    winWidth = document.body.clientWidth;
				leftPosition = (winWidth-928)/2+(176-LayerGifWidth) -4 ;
				obj.style.left = leftPosition + 'px';
	   		}
		}
	}
				obj.style.visibility = 'visible';

	}
// Positionierung des Layers mit entsprechender Browserabfrage //
function LayerLeftPos(){
	obj = document.getElementById("flashlayer");
	obj.style.visibility = 'hidden';
	
	if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
	    winWidth = window.innerWidth;
		leftPosition = (winWidth-928)/2+(928-LayerWidth)  ;
		obj.style.left = leftPosition + 'px';
	} 
	else {
		if ( document.documentElement && document.documentElement.clientWidth ) {
	      //IE 6+ in 'standards compliant mode'
		    winWidth = document.documentElement.clientWidth;
			leftPosition = (winWidth-928)/2+(928-LayerWidth) -4;
			obj.style.left = leftPosition + 'px';
	   	} 
		else {
	      	if( document.body && document.body.clientWidth  ) {
	        //IE 4 compatible
			    winWidth = document.body.clientWidth;
				leftPosition = (winWidth-928)/2+(928-LayerWidth) -4;
				obj.style.left = leftPosition + 'px';
	   		}
		}
	}
				obj.style.visibility = 'visible';

}


// Positionierung des Layers mit entsprechender Browserabfrage //
function LayerGifLeftPos(){
	obj = document.getElementById("giflayer");
	obj.style.visibility = 'hidden';
	
	if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
	    winWidth = window.innerWidth;
		leftPosition = (winWidth-928)/2+(176-LayerGifWidth)  ;
		obj.style.left = leftPosition + 'px';
	} 
	else {
		if ( document.documentElement && document.documentElement.clientWidth ) {
	      //IE 6+ in 'standards compliant mode'
		    winWidth = document.documentElement.clientWidth;
			leftPosition = (winWidth-928)/2+(176-LayerGifWidth) -4 ;
			obj.style.left = leftPosition + 'px';
	   	} 
		else {
	      	if( document.body && document.body.clientWidth  ) {
	        //IE 4 compatible
			    winWidth = document.body.clientWidth;
				leftPosition = (winWidth-928)/2+(176-LayerGifWidth) -4 ;
				obj.style.left = leftPosition + 'px';
	   		}
		}
	}
				obj.style.visibility = 'visible';

	}
