window.addEvent('domready', function() {
	inIt();
}); 

window.addEvent('resize',function(e){						  
	neuAufbau();
});

function liquid() {	
	var obj = document.images[1];
	var picwidth = obj.width;
	var picheight = obj.height;
	var verhaeltnis = picwidth/picheight;
	
	//alert(picwidth+" / "+picheight);
	isoHoehe = document.documentElement.clientHeight;
	isoBreite = document.documentElement.clientWidth;
	isoVerhaeltnis = isoBreite/isoHoehe;
	
	if(isoVerhaeltnis<=verhaeltnis){
		document.getElementById('slide').style.width='100%';
		document.getElementById('slide').style.height='auto';
	}else{
		document.getElementById('slide').style.width='auto';
		document.getElementById('slide').style.height='100%';
		weite= isoHoehe*verhaeltnis;
		differenz= Math.floor(isoBreite - weite)/2;
	}	
}

function inIt () {
//	document.getElementById('art5').style.background = "url(iso/img/blink.gif) #000";
	liquid();
	BlurLinks();
}

function neuAufbau () {
	liquid();	
}

if (!window.Weite && window.innerWidth) {
  window.onresize = neuAufbau;
}
function BlurLinks(){
	lnks=document.getElementsByTagName('a');
	for(i=0;i<lnks.length;i++){
		lnks[i].onfocus=new Function("this.blur()");
	}
}
