

/* init css background redirect  */
var backgr1="gfx/background800.jpg";
var backgr2="gfx/background1024.jpg";
var backgr3="gfx/background1280.jpg";
if (window.screen){ var qq=screen.width;
document.write('<STYLE type="text/css">BODY {background-image: url("');
if (qq<=800) {document.write(backgr1)}
else if (qq<=1024) {document.write(backgr2)}
else if (qq<=1152) {document.write(backgr3)}
else {document.write(backgr3);};
document.write('"); background-position: 0px 0px; background-repeat: repeat;}</STYLE>');}


/* dyn move background on resize  */
function moveBackground () {
if (navigator.appName.toUpperCase() != "NETSCAPE") {
	var qq =screen.width;
	var aqq =document.body.clientWidth+20;
	/* ORG: if (aqq <=776) {aqq=796}; */
	if (aqq <=761) {aqq=781};
	var diff = (aqq -qq)-((aqq -qq)/2);
	document.body.style.backgroundPosition = diff + 'px 0px';}
	
else if ((navigator.appName.toUpperCase() == "NETSCAPE") && ((parseInt(navigator.appVersion) !=4))){
	var qq =screennew();
	var aqq =Fensterweite()+5;
	/* ORG: if (aqq <=776) {aqq=796}; */
	if (aqq <=761) {aqq=781};
	var diff = (aqq -qq)-((aqq -qq)/2);
	document.body.style.backgroundPosition = diff + 'px 0px';}}


/* check window sizes  */
function screennew() {
 if (window.screen) return screen.width;
 else return 0;}

function Fensterweite() {
 if (window.innerWidth) return window.innerWidth;
 else if (document.body && document.body.offsetWidth) return document.body.offsetWidth;
 else return 0;}

function Fensterhoehe() {
 if (window.innerHeight) return window.innerWidth;
 else if (document.body && document.body.offsetHeight) return document.body.offsetHeight;
 else return 0;}

function neuAufbau() {	
if (screenaktuell != screennew()) window.history.go(0);
/* org: else if (Weite != Fensterweite() || Hoehe != Fensterhoehe())  moveBackground (); */
else if (Weite != Fensterweite())  moveBackground ();
else  window.history.go(0);}

/* check netscape reaction */
if(!window.Weite && window.innerWidth) {
   window.onresize = neuAufbau;
   Weite = Fensterweite();
   Hoehe = Fensterhoehe(); 
   screenaktuell = screennew();}