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(theURL,winName,features);



      return false;



    }

