function writeCookie(b,d,c){try{if(c){var a=new Date;a.setTime(a.getTime()+c*864E5);var e="; expires="+a.toGMTString()}else e="";document.cookie=b+"="+d+e+"; path=/"}catch(f){err(f)}}function readCookie(b){try{b=b+"=";for(var d=document.cookie.split(";"),c=0;c<d.length;c++){for(var a=d[c];a.charAt(0)==" ";)a=a.substring(1,a.length);if(a.indexOf(b)==0)return a.substring(b.length,a.length)}return null}catch(e){err(e)}}function deleteCookie(b){writeCookie(b,"",-1)}
function enabledCookies(){if(typeof navigator.cookieEnabled=="undefined"){writeCookie("t",0,0);return readCookie("t")!==null}else return navigator.cookieEnabled};

