<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function NAVLow(id) {
        colorContent = "#F2E379";

        obj = document.getElementById("nav_"+id);
        obj.style.backgroundColor=colorContent;

}

function NAVHigh(id) {
        colorContent = "#FAF8DE";

        obj = document.getElementById("nav_"+id);
        obj.style.backgroundColor=colorContent;

}

//Öffnen einer neuen Datei...
function MM_openWindow_check(theURL,winName,features) { //v2.0
 window.open(theURL,winName,features);
}

//Werbebanner (rechts)
window.onload = function() {
 MM_preloadImages('picture_layout/nav_2.gif');	
 breite_merken();
 breite_check();
 init_werbebanner();
}

function init_werbebanner() {
 var tab_breite = 980;
 var fenster_breite = get_fenster_breite();
 var F4N_ContentHeight = F4N_GetContentHeight('MainContentContainer');
 var i_height = parseInt(document.body.clientHeight);
 
 obj = document.getElementById("WerbebannerRe"); 
 if ((obj) && (i_width >= tab_breite)) {
   fenster_mitte = fenster_breite/2;
   obj.style.left = (fenster_mitte + tab_breite/2)+10+"px";   
 }
 
 if ((obj) && (i_height >= F4N_ContentHeight)) {
   obj.style.top = (i_height-F4N_ContentHeight)/2+"px";
 }
}

function F4N_GetContentHeight(IDTag) {

 var TheElementHeight = -1;
 if (IDTag) {
 
  var TheElement = document.getElementById(IDTag);
  if (TheElement) {
	  									  //Speichert die Höhe eines Elements.
   TheElementHeight = parseInt(TheElement.offsetHeight); 
  }
 
 }
 return TheElementHeight;
}

function get_fenster_breite()
{
var i_width;
 if (document.layers){
   i_width = self.innerWidth;
 }
 else {
   i_width = document.body.clientWidth;
 }
return i_width;
}

function breite_check()
 {
  i_width = get_fenster_breite();
  if (i_width != breite_gemerkt) {
   location.reload()
  }
  window.setTimeout("breite_check()",2000);
 }
 
function breite_merken()
{
 breite_gemerkt = get_fenster_breite();
} 

//-->