Normal1 = new Image();
Normal1.src = "./images/startbutton.gif";
Highlight1 = new Image();
Highlight1.src = "./images/startbutton_active.gif";

function Bildwechsel(Bildnr,Bildobjekt) {
 window.document.images[""+Bildnr].src = Bildobjekt.src;
}




var browser = new Array(2);
//Gesamtabmessung des Inhalts bis scrollbars kommen
var seiteinhaltx = 755;
var seiteinhalty = 450;  //hoehe incl. footer der noch zu sehen sein soll!!
var footerheight = 20;
//Gesamtabmessung der Seite
var seitenbreite = 1024;
var seitenhoehe = 609;
//Versatz des Inhaltsbereichs von der Gesamtabmessung ausgehend
var linksversatz = 136;
var hoehenversatz = 160;  //vom Inhaltypos zum Navypos
//Asymmetrie der Seite - Verschiebung des Inhaltes zur Darstellungmitte
var yinhaltmitte = 80;


var scrollerxcheck = seiteinhaltx +5;
var scrollerycheck = seiteinhalty +5;
	
	browser = scrollbarcheck(scrollerxcheck,scrollerycheck);	
	var xpos=0;
	var ypos=0;

	if (browser[0]>seiteinhaltx){		xpos = Math.round((browser[0]-seiteinhaltx)/2);		}
	else{		xpos=0;	}	
	if ( browser[1]>seiteinhalty ){		
		if ( browser[1]>seitenhoehe ){
			ypos = Math.round((browser[1]-seiteinhalty)/2) + yinhaltmitte;		
		}
		else{
			ypos = (browser[1]-seiteinhalty);
		}
	}
	else{		ypos=0;	}
	
	
// Variablen
var topheight= Math.round( (browser[1] - seitenhoehe)/2 );
var xposoben =xpos - linksversatz;
var xposinhalt = xpos;
var yposinhalt = ypos;

// Randbereich oben
document.write ('<div id="Rand_oben" align="center" style="overflow: hidden; background-color:#58595A; margin:0px; margin-right:0px; border:0px; padding:0px; visibility:visible; height:' + topheight + 'px; width:'+seitenbreite+'px; top:0px; left:' + xposoben + 'px; position:absolute; z-index:0;">');
document.write ('<img src="./spacer.gif" width="'+seitenbreite+'" height="' + topheight + '" border="0">'); 
document.write ('</div>'); 

if (browser[0] > seitenbreite){

// Randbereich links oben
var yposrand= 0;
var hoeheoben = topheight;
var breite_links = Math.round( (browser[0] - seitenbreite)/2 );
document.write ('<div id="Rand_links_oben" align="left" style="overflow: hidden; background-color:#58595A; margin:0px; margin-right:0px; border:0px; padding:0px; visibility:visible; height:'+hoeheoben+'px; width:' + breite_links + 'px; top:' + yposrand + 'px; left:0px; position:absolute; z-index:0;">');
document.write ('</div>'); 

// Randbereich links
var yposrand= ypos - hoehenversatz;
var xposl =breite_links - 550;
document.write ('<div id="Rand_links" align="left" style="overflow: hidden; background-image: url(./images/hg_overflow_start.gif); margin:0px; margin-right:0px; border:0px; padding:0px; visibility:visible; height:609px; width:' + breite_links + 'px; top:' + yposrand + 'px; left:0px; position:absolute; z-index:0;">');
//document.write ('<div id="Rand_links_Image" align="left" style="overflow: hidden; margin:0px; margin-right:0px; border:0px; padding:0px; visibility:visible; height:800px; width:550px; top:0px; left:' + xposl + 'px; position:absolute; z-index:1;">');
//document.write ('<img src="hg_links.jpg" border="0">'); 
//document.write ('</div>'); 
document.write ('</div>'); 

// Randbereich rechts oben
var yposrand= 0;
var breite_rechts = browser[0] - seitenbreite - breite_links +10;
var xposr =xpos + seitenbreite - linksversatz;
document.write ('<div id="Rand_rechts_oben" align="left" style="overflow: hidden; background-color:#58595A; margin:0px; border:0px; padding:0px; visibility:visible; height:'+hoeheoben+'px; width:' + breite_rechts + 'px; top:' + yposrand + 'px; left:'+xposr+'px; position:absolute; z-index:0;">');
document.write ('</div>'); 

// Randbereich rechts
var yposrand= ypos - hoehenversatz;
document.write ('<div id="Rand_rechts" align="left" style="overflow: hidden; background-image: url(./images/hg_overflow_start.gif); margin:0px; border:0px; padding:0px; visibility:visible; height:609px; width:' + breite_rechts + 'px; top:' + yposrand + 'px; left:' + xposr + 'px; position:absolute; z-index:0;">');
//document.write ('<img src="hg_rechts.jpg" border="0">'); 
document.write ('</div>');

}
// Randbereich unten
var xposunten = xposoben;
var yposrand= ypos + seiteinhalty - footerheight-1;
document.write ('<div id="Rand_unten" align="center" style="overflow:hidden; margin:0px; margin-right:0px; border:0px; padding:0px; visibility:visible; height:' + footerheight + 'px; width:'+seitenbreite+'px; top:'+yposrand+'px; left:' + xposunten + 'px; position:absolute; z-index:5;">');
document.write ('</div>'); 


//INHALT
var seiteinhaltyimag = seiteinhalty - footerheight;

document.write ('<div id="Inhalt" align="center" style="overflow: visible; margin:0px; margin-right:0px; border:0px; padding:0px; visibility:visible; height:' + seiteinhaltyimag + 'px; width:' + seiteinhaltx + 'px; top:' + yposinhalt + 'px; left:' + xposinhalt + 'px; position:absolute; z-index:1;">');
