var __INC_COOKIES = true;

function getCookie(c) {
  if (document.cookie.length>0) {
    ib=document.cookie.indexOf(c+"=");
    if (!(ib<0)) {
      ib+=(c.length+1);
      ie=document.cookie.indexOf(";",ib);
      if (ie<0)
        ie=document.cookie.length;
      return(unescape(document.cookie.substring(ib,ie)));
    }
  }
  return null;
}

function setCookie(c,v,e) {
  var ed=new Date(); ed.setTime(ed.getTime()+(e*3600*1000));
  document.cookie=c+"="+escape(v)+"; path=/; expires="+ed.toGMTString();
}

function delCookie(c) {
  if (getCookie(c))
    document.cookie=c+"=; path=/; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
