function getCookie(name){

    var i=0  //Suchposition im Cookie

    var suche = name+"="

    while (i<document.cookie.length){

        if (document.cookie.substring(i, i+suche.length)==suche){

            var ende = document.cookie.indexOf(";", i+suche.length)

            ende = (ende>-1) ? ende : document.cookie.length

            var cook = document.cookie.substring(i+suche.length, ende)

            return unescape(cook)

        }

        i++

     }

     return null

}



// this function is called by actionscript as a ExternalInterface call, as soon as door is closed 

    function gotoSelectedPage(gotoUrl, newStart){

        //var url = gotoUrl + "&flashstart=" + newStart;

        //window.open(url, '_self');

        document.cookie = 'startCookie='+newStart+';';

        window.open(gotoUrl, '_self');

    }

    function MM_openBrWindow(theURL,winName,features) { //v2.0

      //window.open('../cms/'+theURL,winName,features);
       if (navigator.appName.indexOf("Explorer") > -1){
         window.open('../cms/'+theURL,winName,features);
       }else{
         window.open(theURL,winName,features);
       }
      return false;

    }

    function ladenPopup(){
        //Navigation = window.open("laden/Gnters-Laden.html", "Laden", "height=800,width=470,scrollbars=1");
        //Navigation.focus();
        if (navigator.appName.indexOf("Explorer") > -1){
          window.open("../cms/laden/Gnters-Laden.html", "Laden", "height=800,width=470,scrollbars=1");
        }else{
          window.open("laden/Gnters-Laden.html", "Laden", "height=800,width=470,scrollbars=1");
        }


    }