﻿<!--
var hoch_out = 0;
var weit_out = 0;
var bildID_out = 0;

function zoom(bildID,weit,hoch){
 var hoch;
 var weit;
 var bildID;
 
 if (hoch == undefined || weit == undefined || bildID == undefined){
   if(exist(bildID_out)){
    // alert(hoch_out);
     document.getElementById(bildID_out).style.height=hoch_out+"px";
     document.getElementById(bildID_out).style.width=weit_out+"px";
   }
 }

 if (exist(bildID)){
   hoch_out=document.all[bildID].offsetHeight-2;
   weit_out=document.all[bildID].offsetWidth-2;
   bildID_out=bildID;

   document.getElementById(bildID).style.height=hoch+"px";
   document.getElementById(bildID).style.width=weit+"px";
 }

}

function exist(search){
  if (document.getElementById(search)) return true;
}

/*test*/
  var minus=150;
  var auto=true;
  var mitte = 0;
  var rechts = 0;
  var links = 0;
  var html = 0;   //659
  var body = 0;
  var bHead = 0;
  var bFoot=0;
  var screenHeight = screen.availHeight-minus; //794


  if (exist('html')){html=document.all['html'].offsetHeight;}
  if (exist('html')){if ( html < screenHeight && auto==true){document.getElementById('html').style.height = screenHeight;}}

  if (exist('html')){html=document.all['html'].offsetHeight;}
  if (exist('body')){body=document.all['body'].offsetHeight;}
  if (exist('body')){if ( body < html && auto==true){document.getElementById('body').style.height = html-20;}}
  
  if (exist('links')){
  if (exist('body')){body=document.all['body'].offsetHeight;}
  if (exist('bHead')){bHead=document.all['bHead'].offsetHeight;}
  if (exist('bFoot')){bFoot=document.all['bFoot'].offsetHeight;}
    if (links<body) {document.getElementById('links').style.height = body-bHead-bFoot-10;}
  }

  if (exist('rechts')){
  if (exist('body')){body=document.all['body'].offsetHeight;}
  if (exist('bHead')){bHead=document.all['bHead'].offsetHeight;}
  if (exist('bFoot')){bFoot=document.all['bFoot'].offsetHeight;}
    if (rechts<body) {document.getElementById('rechts').style.height = body-bHead-bFoot-10;}
  }

  



/*end test*/

/*  var minus=200; //keine margin-Angaben für body
  var auto=true;
  
  // Um Abstände zu anderen Höhenbereichen zu erhalten, könnte man mit ermittlung der autoHöhe einige Pixel addieren
  
  //Grundkörper anpassen
  var screenHeight = screen.availHeight-minus;
  var html = 0;
  if (exist('html')){html=document.all['html'].offsetHeight;}
  if (exist('html')){if ( html < screenHeight && auto==true){document.getElementById('html').style.height = screenHeight;}}
  
  //Bodybereich anpassen
  var html = 0;
  var head = 0;
  var foot = 0;
  if (exist('html')){html=document.all['html'].offsetHeight;}
  if (exist('head')){head=document.all['head'].offsetHeight;}
  if (exist('foot')){foot=document.all['foot'].offsetHeight;}
  if (exist('body')){document.getElementById('body').style.height = html-(head+foot);}
  
  //im Bodybereich den bBody anpassen
  var body = 0;
  var bHead = 0;
  var bFoot = 0;
  if (exist('body')){body=document.all['body'].offsetHeight;}
  if (exist('bHead')){bHead=document.all['bHead'].offsetHeight;}
  if (exist('bFoot')){bFoot=document.all['bFoot'].offsetHeight;}
  if (exist('bBody')){document.getElementById('bBody').style.height = body-(bHead+bFoot);}
   
  //im bBody links,rechts,mitte anpassen
  var bBody = 0;
  if (exist('bBody')){bBody=document.all['bBody'].offsetHeight;}
  if (exist('links')){document.getElementById('links').style.height = bBody;}
  if (exist('rechts')){document.getElementById('rechts').style.height = bBody;}
  if (exist('mitte')){document.getElementById('mitte').style.height = bBody;}
  
  //im bBody -> mitte den Inhaltsbereich anpassen
  var mitte = 0;
  var mitteKopf = 0;
  var mitteFoot = 0;
  if (exist('mitte')){mitte=document.all['mitte'].offsetHeight;}
  if (exist('mitteKopf')){mitteKopf=document.all['mitteKopf'].offsetHeight;}
  if (exist('mitteFoot')){mitteFoot=document.all['mitteFoot'].offsetHeight;}
  if (exist('mitteBody')){document.getElementById('mitteBody').style.height = mitte-(mitteKopf+mitteFoot);}
*/
//-->

