//  setted by HTML
// __cdata  -- Cookie data
// __cldays -- Cookie limit
// __cname  -- Cookie name
var gd = function () { return document.location.hostname.toString();}; // get domian
var gc = function () { rtn = ''; k = __cname + "="; c = document.cookie + ';'; s = c.indexOf(k); if (s != -1){ e = c.indexOf(";", s); rtn = c.substring(s + k.length, e);}; return rtn;}; // get Cookie
var cw = function () { if(!navigator.cookieEnabled) {return;}; c = gc(); if (c != '') { __cdata = c }; e = new Date(); e.setTime(e.getTime() + (__cldays * 1000 * 60 * 60 * 24)); e = e.toGMTString(); s = __cname + "=" + __cdata + ";expires=" + e + ";domain=" + gd () + ";path=/;"; document.cookie = s;} ();
