function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function setCookie(name,wert,lebenInSekunden){
	var myTime = new Date();
	myTime.setTime(myTime.getTime()+lebenInSekunden*1000);
	var verfallszeit = myTime.toGMTString();
	var cookiestring = name + "=" + escape(wert);
	cookiestring += (verfallszeit)?"; expires=" + verfallszeit : "";
	document.cookie = cookiestring;
}
function windowOpen(seite){
    dx=screen.availWidth
    dy=screen.availHeight
    popup = window.open(seite,"popup"+dy+"","toolbar=0,location=0,menubar=0,status=0,resizable=1,width="+dx+",height="+dy+"");
    popup.moveTo(0,0);
	popup.resizeTo(screen.availWidth,screen.availHeight)
    popup.focus();
}
if (document.all || document.getElementById || document.layers) {
    if (document.layers) document.captureEvents(Event.RESIZE); //netscape 4.x
    window.onresize=mitten; //alle anderen
}
function getWinHeight() // based on a script by projectseven.com (PVII)
{
 if (window.innerWidth) { h = window.innerHeight; } // ns4
 else if(document.body)
 {
  h = document.body.clientHeight;
  if (document.body.offsetHeight == h && document.documentElement && document.documentElement.clientHeight)
  {
   h = document.documentElement.clientHeight;
  }
 }
 return h;
}
function mitten(){
	var krishna = document.getElementById("krishna");
	var hoehe = getWinHeight();
	var tempzero = hoehe/2-krishna.offsetHeight/2;
	if(tempzero<0)tempzero=0;
	setCookie("top",tempzero,24*3600*3);
	krishna.style.top=tempzero+"px";
	//if(isIE7){
		if(document.getElementById("navi"))document.getElementById("navi").scrollTop=st;
	//}
}