// JavaScript Document
function bil() {
   var hoehe = screen.height;
   var weite = screen.width;
   if ((screen.width > 1439) && (screen.height > 899)){
    fenster=window.open("../bil1440.html","film","width=" + weite + ",height=" + hoehe +",dependent=1,location=0,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0");
    fenster.moveTo(((screen.availWidth-weite)/2),((screen.availHeight-hoehe-100)/2));
	}	
	else if (screen.width == 1280){
     fenster=window.open("../bil1280.html","film","width=" + weite + ",height=" + hoehe +",dependent=1,location=0,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0");
     fenster.moveTo(((screen.availWidth-weite)/2),((screen.availHeight-hoehe-100)/2));
	}	
	else if ((screen.width == 2280) && (screen.height == 800)){
     fenster=window.open("../bil280.html","film","width=" + weite + ",height=" + hoehe +",dependent=1,location=0,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0");
     fenster.moveTo(((screen.availWidth-weite)/2),((screen.availHeight-hoehe-100)/2));
	}		
	else if ((screen.width == 1152) && (screen.height == 864)){
     fenster=window.open("../bil1024.html","film","width=" + weite + ",height=" + hoehe +",dependent=1,location=0,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0");
     fenster.moveTo(((screen.availWidth-weite)/2),((screen.availHeight-hoehe-100)/2));
	}				
	else if ((screen.width == 1024) && (screen.height == 768)){
     fenster=window.open("../bil1024.html","film","width=" + weite + ",height=" + hoehe +",dependent=1,location=0,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0");
     fenster.moveTo(((screen.availWidth-weite)/2),((screen.availHeight-hoehe-100)/2));
	}	
    else if ((screen.width == 800) && (screen.height == 600)){
     hoehe = hoehe - 100;
	 fenster=window.open("../bil800.html","film","width=" + weite + ",height=" + hoehe +",dependent=1, location=0, menubar=0, resizable=0, scrollbars=1, status=0, toolbar=0, top=0, left=0");
     fenster.moveTo(((screen.availWidth-weite)/2),((screen.availHeight-hoehe-100)/2));
	}	
	else{
     hoehe = hoehe - 100;
	 fenster=window.open("../bil800.html","film","width=" + weite + ",height=" + hoehe +",dependent=1, location=0, menubar=0, resizable=0, scrollbars=1, status=0, toolbar=0, top=0, left=0");
     fenster.moveTo(((screen.availWidth-weite)/2),((screen.availHeight-hoehe-100)/2));
	}	
		
}
