function fenster_oeffnen(w,h){

	Fenster1 = window.open("","Infos", "width="+w+",height="+h+",left=100,top=200,scrollbars=yes");
 	Fenster1.focus();

}

function fenster_oeffnen_news(w,h){

	Fenster2 = window.open("","Aktuell", "width="+w+",height="+h+",left=100,top=200,scrollbars=yes");
 	Fenster2.focus();

}

function cookieSetzen(nr){

anfang = document.cookie;

anfang2 = anfang.substring(anfang.indexOf("=")+1,anfang.indexOf("=")+2);

// alert(anfang . anfang2);

var ablauf = new Date();
var infuenfTagen = ablauf.getTime() + (24 * 60 * 60 * 1000);
ablauf.setTime(infuenfTagen);
document.cookie = "ende="+nr;
document.cookie = "anfang="+anfang2;

 /* if(anfang.indexOf("=") > -1){
     document.cookie = "anfang="+anfang2+"; expires=" + ablauf.toGMTString();
 } */
}

function cookieLoeschen(){

var ablauf = new Date();
var infuenfTagen = ablauf.getTime() + (24 * 60 * 60 * 1000);
ablauf.setTime(infuenfTagen);
document.cookie = "ende=";
document.cookie = "anfang=";

/* document.cookie = "ende=; expires=" + ablauf.toGMTString();
document.cookie = "anfang=; expires=" + ablauf.toGMTString(); */

}

function flashbug(){

 if (navigator.cookieEnabled == true) {

    imglength = document.images.length;

    if(navigator.userAgent.indexOf("MSIE") > -1){

        if(document.images[imglength-1].complete == true){
          document.getElementById("flash_navi").style.visibility = "visible";
          document.getElementById("flash_navi").style.top = 0 + "px";
        }

    }else{
         document.getElementById("flash_navi").style.visibility = "visible";
          document.getElementById("flash_navi").style.top = 0 + "px";
    }

  }

}