function Cookie(n,v,e){if(v!=null)cky(n,encode(v),e);var i=0,b,d=document.cookie.split(';');for(;i<d.length;i++){b=Trim(d[i]).indexOf(n+'=');if(b==0)v=decode(Trim(d[i]).substr(b+n.length+1))}
return v||''}
function cky(n,v,e){document.cookie=n+'='+v+';path=/'+(e!=null?';expires='+Now(e):'')}
function encode(v,n){return(n==null?'':'&'+n+'=')+escape((v+'').replace(/\+/g,'%2B').replace(/\ /g,'+'))}
function decode(v){return v==null?'':unescape((v+'').replace(/\+/g,' '))}
function Int(n){return Math.floor(n)}
function Trim(v){return v==null?v:(v+'').replace(/^\s+/g,'').replace(/\s+$/g,'')}
function Now(v){return v==null?new Date():new Date(new Date().valueOf()+v*86400000)}
function CInt(v){return parseInt(v,10)}
function CDate(v){return typeof(v)=='object'?v:Date.parse(v)}
function InCsv(h,n){return(','+h+',').indexOf(','+n+',')>=0}
advise={a:[],add:function(n,f){if(!this.a[n])this.a[n]=[];this.a[n][this.a[n].length]=f},fire:function(n,o){var i,r=false;this.t=Now();if(n=this.a[n])for(i=n.length;i>0;i--)r|=typeof(n[i-1])=='string'?eval(n[i-1]+'(o,r)'):n[i-1](o,r);return r},remove:function(n){this.a[n]=null}}
function Ini(){if(!w_)alert('Page is loading');return w_==1}
onresize=function(){advise.fire('onresize')}
onload=function(){if((w_=Cookie('e'))>'')alert(w_);Cookie('e','');w_=1;advise.fire('onload')}
var st_=Now(),w_
