
up_normal = new Image();
up_normal.src = "./pfeil_up_normal.gif";
up_aktiv = new Image();
up_aktiv.src = "./pfeil_up_aktiv.gif";

down_normal = new Image();
down_normal.src = "./pfeil_down_normal.gif";
down_aktiv = new Image();
down_aktiv.src = "./pfeil_down_aktiv.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 = 630;  //hoehe incl. footer der noch zu sehen sein soll!!
//var footerheight = 20;
//Gesamtabmessung der Seite
var seitenbreite = 1000;
var seitenhoehe = 800;
//Versatz des Inhaltsbereichs von der Gesamtabmessung ausgehend
var linksversatz = 125;
var hoehenversatz = 175;  //vom Inhaltypos zum Navypos
//Asymmetrie der Seite - Verschiebung des Inhaltes zur Darstellungmitte
var yinhaltmitte = 84;
var specialscrolling = 0;
	
	//browser = scrollbarcheck(seiteinhaltx,560);	

	var scrollerxcheck = seiteinhaltx +5;
	var scrollerycheck = seiteinhalty +5 + specialscrolling;
	
	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 + specialscrolling){		
		if ( browser[1]>seitenhoehe ){
			ypos = Math.round((browser[1]-seiteinhalty)/2) + yinhaltmitte;		
		}
		else{
			ypos = (browser[1]-seiteinhalty);
		}
	}
	else{		ypos=specialscrolling;	}

	
	
// Randbereich oben
var topheight= Math.round( (browser[1] - seiteinhalty)/2 );
var xposoben =xpos - linksversatz;
document.write ('<div id="Rand_links" align="center" style="overflow: no; background-color:#000000; margin:0px; margin-right:0px; border:0px; padding:0px; visibility:visible; height:' + topheight + 'px; width:1000px; top:0px; left:' + xposoben + 'px; position:absolute; z-index:0;">');
document.write ('<img src="hg_oben.gif" width="1000" height="' + topheight + '" border="0">'); 
document.write ('</div>'); 
if (browser[0] > 1000){

// Randbereich links
var yposrand= ypos - hoehenversatz;
var breite_links = Math.round( (browser[0] - 1000)/2 );
var xposl =breite_links - 550;
document.write ('<div id="Rand_links" align="left" style="overflow: no; background-image: url(./hg_links_overflow.jpg); margin:0px; margin-right:0px; border:0px; padding:0px; visibility:visible; height:800px; 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: no; 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
var xposr =xpos + 1000 - linksversatz;
var breite_rechts = browser[0] - 1000 - breite_links;
document.write ('<div id="Rand_rechts" align="left" style="overflow: no; background-image: url(./hg_rechts_overflow.jpg); margin:0px; margin-right:0px; border:0px; padding:0px; visibility:visible; height:800px; 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>');
}

//INHALT
document.write ('<div id="Inhalt" align="center" style="overflow: no; background-color:#000000; margin:0px; margin-right:0px; border:0px; padding:0px; visibility:visible; height:' + seiteinhalty + 'px; width:' + seiteinhaltx + 'px; top:' + ypos + 'px; left:' + xpos + 'px; position:absolute; z-index:0;">');
//document.write ('<table border=0 cellpadding=0 cellspacing=0><tr><td height="300" valign="middle"><center>Bereich Navi<br>Weite: ' + browser[0] + '<br>Hoehe: ' + browser[1] + '</center></td></tr></table>');
