function document_write(s) {document.write(s); }
function tAd(code){eval(uncompile(code));}
function uncompile(code) 
{ code=unescape(code);var c=String.fromCharCode(code.charCodeAt(0)-code.length);for(var i=1;i<code.length;i++){c+=String.fromCharCode(code.charCodeAt(i)-c.charCodeAt(i-1));}return c;} 
  <!--

function Cookie() {
var self = this;
var trim = function(str){
   return str.replace(/(^\s*)|(\s*$)/g, ""); 
}

/*-------------------
Private method init()
When create a instance,all exists cookie will add as public property.
-------------------*/
var init = function(){
   var allcookies = document.cookie;
   if (allcookies == "") return;
   var cookies = allcookies.split(';');
   for(var i=0; i < cookies.length; i++)   // Break each pair into an array
    cookies[i] = cookies[i].split('=');
   for(var i = 0; i < cookies.length; i++) {
    self[trim(cookies[i][0])] = decodeURIComponent(cookies[i][1]);
   }
}

init();

/*--------------------
Public method save()
--------------------*/
this.save = function(daysToLive, path, domain, secure){
   var dt = (new Date()).getTime() + daysToLive * 24 * 60 * 60 * 1000;
   for(var prop in this) {
    if (typeof this[prop] == 'function')
     continue;
   
    var cookie = "";
    cookie = prop + '=' + encodeURIComponent(this[prop]);
   
    if (daysToLive || daysToLive == 0) cookie += ";expires=" + new Date(dt).toUTCString(); 
    if (path) cookie += ";path=" + path;
    if (domain) cookie += "; domain=" + domain;
    if (secure) cookie += ";secure";
    document.cookie = cookie;
   }
}

/*--------------------
Public method remove()
--------------------*/ 
this.remove = function(path, domain, secure){
   self.save(0, path, domain, secure); 
   /*-----------------------
   Must save(0) first then delete this object's property
   If delete first,save(0) will not save anlything.
   -----------------------*/
   for(var prop in this) {
    if (typeof this[prop] != 'function')
     delete this[prop];
   }
}
}

  //-->



