//automatische grössenanpassung
function aresize(){
	var o_main=document.getElementById("main");
	var o_text=document.getElementById("text");
	var o_titelbild=document.getElementById("titelbild");
	var h_main=o_main.offsetHeight;
	var h_txt= h_main-(170+60);
	var h_titelbild= h_main-(170+20);
	if(h_txt<280)h_txt=280;
	if(h_titelbild<320)h_titelbild=320;
	if(h_titelbild>600)h_titelbild=600;
	
		if(o_text){
		with(o_text.style){
			height= h_txt+"px";
		}
	}
	if(o_titelbild){
		with(o_titelbild.style){
			height= h_titelbild+"px";
			width=790+"px";
			o_h4=document.getElementById("ndx_h4");
			o_h2=document.getElementById("ndx_h2");
			o_xx=document.getElementById("ndx_txt");
			o_lc=document.getElementById("logo_center")
		}
		if(o_h4){
			with(o_h4.style){
				position= "absolute";
				top= h_titelbild*0.03-10 +"px";
				left=200+"px";
			}
		}
		if(o_h2){
			with(o_h2.style){
				position= "absolute";
				top= h_titelbild*0.320 +"px";
				left=205+"px";
			}
			
		}
		if(o_xx){
			with(o_xx.style){
				position= "absolute";
				top= h_titelbild*0.13+"px";
				left=220+"px";
			}
			
		}
		if(o_lc){
			with(o_lc.style){
				position= "absolute";
				top= h_titelbild*0.45+"px";
				var w=h_titelbild*0.5;
				left=375-w/2+"px";
				width=w+"px";
			}
			
		}


	}

}

