NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
ver4 = (NS4 || IE4) ? 1 : 0;

	if (document.images) {	
	
		h02 = new Image();h02.src = 'template/images/h02.png';
		h02_02 = new Image();h02_02.src = 'template/images/h02_02.png';
		h03 = new Image();h03.src = 'template/images/h03.png';
		h03_02 = new Image();h03_02.src = 'template/images/h03_02.png';
		h04 = new Image();h04.src = 'template/images/h04.png';
		h04_02 = new Image();h04_02.src = 'template/images/h04_02.png';
		h05 = new Image();h05.src = 'template/images/h05.png';
		h05_02 = new Image();h05_02.src = 'template/images/h05_02.png';
		h06 = new Image();h06.src = 'template/images/h06.png';
		h06_02 = new Image();h06_02.src = 'template/images/h06_02.png';
		h07 = new Image();h07.src = 'template/images/h07.png';
		h07_02 = new Image();h07_02.src = 'template/images/h07_02.png';
		
		fo01 = new Image();fo01.src = 'template/images/fo01.gif';
		fo01_02 = new Image();fo01_02.src = 'template/images/fo01_02.gif';
		fo02 = new Image();fo02.src = 'template/images/fo02.gif';
		fo02_02 = new Image();fo02_02.src = 'template/images/fo02_02.gif';		
		fo03 = new Image();fo03.src = 'template/images/fo03.gif';
		fo03_02 = new Image();fo03_02.src = 'template/images/fo03_02.gif';		
		fo04 = new Image();fo04.src = 'template/images/fo04.gif';
		fo04_02 = new Image();fo04_02.src = 'template/images/fo04_02.gif';	
		fo05 = 	new Image();fo05.src = 'template/images/fo_update00.gif';
		fo05_02 = new Image();fo05_02.src = 'template/images/fo_update01.gif';		
		fo06 = 	new Image();fo06.src = 'template/images/fo_update02.gif';
		fo06_02 = new Image();fo06_02.src = 'template/images/fo_update03.gif';													
}

	function show(objekt,status,top,left,withly){
		if(status == "on"){
			if(NS4){
				screenCenter = (window.innerWidth/2);
				/*
				if(!withly){
					document.layers['ly'].top = top - 10;
					document.layers['ly'].left = left - 25;
					document.layers['ly'].left += screenCenter;	
					document.layers['ly'].visibility = "show";
				}
				*/
				document.layers[objekt].top = top;
				document.layers[objekt].left = left;
				document.layers[objekt].left += screenCenter;
				document.layers[objekt].visibility = "show";
				

			}
			else{
				screenCenter = (document.body.clientWidth/2);
				//alert(screenCenter);
				/*
				if(!withly){
					document.all['ly'].style.pixelTop = top - 10;
					document.all['ly'].style.pixelLeft = left - 25;
					document.all['ly'].style.pixelLeft += screenCenter;	
					document.all['ly'].style.visibility = "visible";
				}
				*/
				document.all[objekt].style.pixelTop = top;
				document.all[objekt].style.pixelLeft = left;
				document.all[objekt].style.pixelLeft += screenCenter;
				document.all[objekt].style.visibility = "visible";
						
			}
		}
		else if(status == "off"){
			if(NS4){
				document.layers[objekt].visibility = "hide"
				//document.layers['ly'].visibility = "hide";
			}
			else{
				document.all[objekt].style.visibility = "hidden";
				//document.all['ly'].style.visibility = "hidden";
			}
		}
	}


// logo darstellung	
function logoview(){
	if(NS4){
		document.layers['logo'].top = window.innerHeight - 80;
		show('ly01','off');
		show('ly01','off');
		show('ly02','off');
		show('ly03','off');
		show('ly04','off');
		show('ly05','off');
		show('ly06','off');		
	}
	else{
		document.all['logo'].style.pixelTop = document.body.clientHeight - 80;
		show('ly01','on');
		show('ly01','off');
		
		show('ly02','on');
		show('ly02','off');
		
		show('ly03','on');
		show('ly03','off');
		
		show('ly04','on');
		show('ly04','off');
		
		show('ly05','on');
		show('ly05','off');
		
		show('ly06','on');
		show('ly06','off');
	}
}

