browser = navigator.appName.toLowerCase();
hie = document.body.clientHeight;
hmoz = window.innerHeight;


hnavi = 133;
hcontent = 185;
hfooter = 23;

var hoehe;
var optnavi;
var optcontent;
var optfooter;
var optnavistart;

document.body.className="hasJS";

if (browser.indexOf("explorer") > -1 )
   {
     hoehe = hie;
   }

else
   {
     hoehe = hmoz;
   }
if ((hoehe > 544) && (hoehe < 920))
  {
    optnavi = hoehe - hnavi;
    optcontent = hoehe - hcontent;
    optfooter = hoehe - hfooter;
    optnavistart = optnavi-50;

  }

if ((hoehe <= 544) && (hoehe >0) )
  {
    optnavi = 412;
    optcontent = 355;
    optfooter = 522;
    optnavistart = 362;
  }
  

if (hoehe >= 920)
  {
    optnavi = 787;
    optcontent = 735;
    optfooter = 897;
    optnavistart = 737;
  }
  
if (hoehe == 0)
  {
    optnavi = 460;
    optcontent = 408;
    optfooter = 570;
    optnavistart = 410;
  }

//document.write("Navi: "+optnavi+"<br>");
//document.write("Content: "+optcontent+"<br>");
//document.write("Footer: "+optfooter+"<br>");
//document.write("Navistart: "+optnavistart+"<br>");
//


function ausrichten()
{
 	var id2="content";
 	var id3="footer";
 	var id4="navi";
 	var id5="navistart";

 	document.getElementById(id2).style.height = optcontent+"px";
 	document.getElementById(id3).style.top = optfooter+"px";
 	document.getElementById(id4).style.height = optnavi+"px";
	document.getElementById(id5).style.height = optnavistart+"px";
}


//Script zum Mail-Adress uncrypt

function UnCryptMailto(s, shift) {
var n=0;
var r="";
for(var i=0;i<s.length;i++) {
n=s.charCodeAt(i);
if (n>=8364) {n = 128;}
r += String.fromCharCode(n-(shift));
}
return r;
}
function linkTo_UnCryptMailto(s, shift) {
location.href=UnCryptMailto(s, shift);
}

function redirect() {
urlAnhang = location.search;
if(urlAnhang.indexOf("reload=true")==-1 && !document.all){
 document.location.href=document.location.href+"?reload=true";
   }
}

 

