\n'); } //helper routines to read and write cookies function SetCookie (name,value,expires,path,domain,secure) { document.cookie = name + "=" + escape (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function ReadCookie(cookieName) { var theCookie=""+document.cookie; var ind=theCookie.indexOf(cookieName); if (ind==-1 || cookieName=="") return ""; var ind1=theCookie.indexOf(';',ind); if (ind1==-1) ind1=theCookie.length; return unescape(theCookie.substring(ind+cookieName.length+1,ind1)); } function useflash() { return (ReadCookie("useflashmenu") == 1); } //INTERFACE NAAR FLASH var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1; // Handle all the FSCommand messages in a Flash movie function flash_detector_DoFSCommand(command, args) { var flash_detectorObj = InternetExplorer ? flash_detector : document.flash_detector; // Place your code here... if (command == "setFlashCookie") { //One day expiration time var today = new Date(); var expiry = new Date(today.getTime() + 60 * 60 * 1000 * 24 * 365); SetCookie("useflashmenu","1",expiry); } }