if(navigator.appName.indexOf("Netscape") > -1 && 
navigator.appVersion.substr(0,1) <= "4")
 parent.location.href="netscape4.html";

 
 
 
if (navigator.appVersion.indexOf("2.") != -1){
	check = false;
	}
if ((navigator.appVersion.indexOf("3.") != -1) && (navigator.appName.indexOf("Explorer") != -1)){
	check = false;
	}
else
 {
	check = true;
	}
if (check == true){
	image1 = new Image();
	image1.src = "img/start_karte.gif";
	image1on = new Image();
	image1on.src = "img/start_karte2.gif";
	image1alt = new Image();
	image1alt.src = "img/start_karte2.gif";
	
	image1 = new Image();
	image1.src = "img/start_karte.gif";
	image1on = new Image();
	image1on.src = "img/start_karte2.gif";
	image1alt = new Image();
	image1alt.src = "img/start_karte2.gif";
	
	image3 = new Image();
	image3.src = "img/nav_patienten_1.gif";
	image3on = new Image();
	image3on.src = "img/nav_patienten_0.gif";
	image3alt = new Image();
	image3alt.src = "img/nav_patienten_0.gif";
	
	image4 = new Image();
	image4.src = "img/nav_forschung_1.gif";
	image4on = new Image();
	image4on.src = "img/nav_forschung_0.gif";
	image4alt = new Image();
	image4alt.src = "img/nav_forschung_0.gif";
	
	image5 = new Image();
	image5.src = "img/nav_mitarbeiter_1.gif";
	image5on = new Image();
	image5on.src = "img/nav_mitarbeiter_0.gif";
	image5alt = new Image();
	image5alt.src = "img/nav_mitarbeiter_0.gif";
	
	image6 = new Image();
	image6.src = "img/nav_presse_1.gif";
	image6on = new Image();
	image6on.src = "img/nav_presse_0.gif";
	image6alt = new Image();
	image6alt.src = "img/nav_presse_0.gif";
	
	image7 = new Image();
	image7.src = "img/nav_ueberuns_1.gif";
	image7on = new Image();
	image7on.src = "img/nav_ueberuns_0.gif";
	image7alt = new Image();
	image7alt.src = "img/nav_ueberuns_0.gif";
	

	
}
imagealt = ""
function imageon(name){
	if (imagealt != name){
        	document[name].src = eval(name + "on.src");
	}
}
function imageoff(name){
	if (imagealt != name){
        	document[name].src = eval(name + ".src");
	}
}
function on(name){
        if (check == true){
	imageon(name);
	}
}
function off(name){
        if (check == true){
	imageoff(name);
	}
}
function alt(name){
	if (check == true){
	document[name].src = eval(name + "alt.src");
	if (imagealt != name){
		if (imagealt != ""){
			document[imagealt].src = eval(imagealt + ".src");
		}
	}
	imagealt = name
	}
}
 
 
 
 
function opendetailwindow() { 
    window.open('','detailwindow','toolbar=no,scrollbars=yes,resizable=no,width=680,height=480');
  }
  
  
 
var expDays = 1; // number of days the cookie should last

var page = "ukm_frohesfest.php";
var windowprops = "width=600,height=280,left=50,top=50,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=yes";

function GetCookie (name)
{
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {

var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function SetCookie (name, value)
{
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name)
{
var exp = new Date();
exp.setTime (exp.getTime() - 1);
var cval = GetCookie (name);
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
var exp = new Date();
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
function amt(){
var count = GetCookie('count')
if(count == null) {
SetCookie('count','1')
return 1
}
else {
var newcount = parseInt(count) + 1;
DeleteCookie('count')
SetCookie('count',newcount,exp)
return count
   }
}
function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

function checkCount() {
var count = GetCookie('count');
if (count == null) {
count=1;
SetCookie('count', count, exp);

window.open(page, "", windowprops);

}
else {
count++;
SetCookie('count', count, exp);
   }
} 



 

function rtl_isdn(w,h,site) {
        x = screen.availWidth/2-w/2;
        y = screen.availHeight/2-h/2;
        var popupWindow = window.open(
            '','','width='+w+',height='+h+',left='+x+',top='+y+',screenX='+x+',screenY='+y);
        popupWindow.document.write(site);
      }
	  
	  
function rtl_dsl(w,h,site) {
        x = screen.availWidth/2-w/2;
        y = screen.availHeight/2-h/2;
        var popupWindow = window.open(
            '','','width='+w+',height='+h+',left='+x+',top='+y+',screenX='+x+',screenY='+y);
        popupWindow.document.write(site);
      }

	  
	  
	  
	  
	  
	  
	  
	  
	  
	  if (document.layers)  {

     ns = 1; ie = 0; 

} else {

     ns = 0; ie = 1;

     }

	 
var i = 1;

var test = "demo";

function zeigeEbeneNr(ebene_nr){

    verbergen(eval('"' + test + i +'"'));

    zeigen(eval('"' + test + ebene_nr +'"'));

    i = ebene_nr; 

    }






	
	
function zeigen(name) {

if (ns) {

    document.layers[''+name].visibility = "show";		

    }

    else {

    document.all[''+name].style.visibility = "visible"

    }

}



function verbergen(name) {

if (ns){

    document.layers[''+name].visibility = "hide"

    }

    else {

    document.all[''+name].style.visibility = "hidden"

    }

}



function oeffnefenster (url) {
 fenster=window.open(url, "_blank", "width=400,height=400,status=yes,scrollbars=no,resizable=yes");
 fenster.focus();
 return false;
}