var _uacct="UA-157848-1"; var _userv=1; var _ufsc=1; var _udn="auto"; var _uhash="on"; var _utimeout="1800"; var _ugifpath="/__utm.gif"; var _utsp="|"; var _uflash=1; var _utitle=1; var _ulink=0; var _uanchor=0; var _utcp="/"; var _uctm=1; var _ucto="15768000"; var _uccn="utm_campaign"; var _ucmd="utm_medium"; var _ucsr="utm_source"; var _uctr="utm_term"; var _ucct="utm_content"; var _ucid="utm_id"; var _ucno="utm_nooverride"; var _uOsr=new Array(); var _uOkw=new Array(); _uOsr[0]="google"; _uOkw[0]="q"; _uOsr[1]="yahoo"; _uOkw[1]="p"; _uOsr[2]="msn"; _uOkw[2]="q"; _uOsr[3]="aol"; _uOkw[3]="query"; _uOsr[4]="aol"; _uOkw[4]="encquery"; _uOsr[5]="lycos"; _uOkw[5]="query"; _uOsr[6]="ask"; _uOkw[6]="q"; _uOsr[7]="altavista"; _uOkw[7]="q"; _uOsr[8]="search"; _uOkw[8]="q"; _uOsr[9]="netscape"; _uOkw[9]="s"; _uOsr[10]="cnn"; _uOkw[10]="query"; _uOsr[11]="looksmart"; _uOkw[11]="qt"; _uOsr[12]="about"; _uOkw[12]="terms"; _uOsr[13]="mamma"; _uOkw[13]="query"; _uOsr[14]="alltheweb"; _uOkw[14]="q"; _uOsr[15]="gigablast"; _uOkw[15]="q"; _uOsr[16]="voila"; _uOkw[16]="kw"; _uOsr[17]="virgilio"; _uOkw[17]="qs"; _uOsr[18]="live"; _uOkw[18]="q"; _uOsr[19]="baidu"; _uOkw[19]="wd"; _uOsr[20]="alice"; _uOkw[20]="qs"; var _uOno=new Array(); var _uRno=new Array(); var _uff,_udh,_udt,_ubl=0,_udo="",_uu,_ufns=0,_uns=0,_ur="-",_ufno=0,_ust=0,_ubd=document,_udl=_ubd.location,_udlh="",_uwv="1"; var _ugifpath2="http://www.google-analytics.com/__utm.gif"; if (_udl.hash) _udlh=_udl.href.substring(_udl.href.indexOf('#')); if (_udl.protocol=="https:") _ugifpath2="https://ssl.google-analytics.com/__utm.gif"; if (!_utcp || _utcp=="") _utcp="/"; function urchinTracker(page) { if (_udl.protocol=="file:") return; if (_uff && (!page || page=="")) return; var a,b,c,v,z,k,x="",s="",f=0; var nx=" expires=Sun, 18 Jan 2038 00:00:00 GMT;"; var dc=_ubd.cookie; _udh=_uDomain(); if (!_uVG()) return; _uu=Math.round(Math.random()*2147483647); _udt=new Date(); _ust=Math.round(_udt.getTime()/1000); a=dc.indexOf("__utma="+_udh); b=dc.indexOf("__utmb="+_udh); c=dc.indexOf("__utmc="+_udh); if (_udn && _udn!="") { _udo=" domain="+_udn+";";} if (_utimeout && _utimeout!="") { x=new Date(_udt.getTime()+(_utimeout*1000)); x=" expires="+x.toGMTString()+";";} if (_ulink) { if (_uanchor && _udlh && _udlh!="") s=_udlh+"&"; s+=_udl.search; if(s && s!="" && s.indexOf("__utma=")>=0) { if (!(_uIN(a=_uGC(s,"__utma=","&")))) a="-"; if (!(_uIN(b=_uGC(s,"__utmb=","&")))) b="-"; if (!(_uIN(c=_uGC(s,"__utmc=","&")))) c="-"; v=_uGC(s,"__utmv=","&"); z=_uGC(s,"__utmz=","&"); k=_uGC(s,"__utmk=","&"); if ((k*1) != ((_uHash(a+b+c+z+v)*1)+(_udh*1))) {_ubl=1;a="-";b="-";c="-";z="-";v="-";} if (a!="-" && b!="-" && c!="-") f=1; else if(a!="-") f=2;} } if(f==1) { _ubd.cookie="__utma="+a+"; path="+_utcp+";"+nx+_udo; _ubd.cookie="__utmb="+b+"; path="+_utcp+";"+x+_udo; _ubd.cookie="__utmc="+c+"; path="+_utcp+";"+_udo;} else if (f==2) { a=_uFixA(s,"&",_ust); _ubd.cookie="__utma="+a+"; path="+_utcp+";"+nx+_udo; _ubd.cookie="__utmb="+_udh+"; path="+_utcp+";"+x+_udo; _ubd.cookie="__utmc="+_udh+"; path="+_utcp+";"+_udo; _ufns=1;} else if (a>=0 && b>=0 && c>=0) { _ubd.cookie="__utmb="+_udh+"; path="+_utcp+";"+x+_udo;} else { if (a>=0) a=_uFixA(_ubd.cookie,";",_ust); else a=_udh+"."+_uu+"."+_ust+"."+_ust+"."+_ust+".1"; _ubd.cookie="__utma="+a+"; path="+_utcp+";"+nx+_udo; _ubd.cookie="__utmb="+_udh+"; path="+_utcp+";"+x+_udo; _ubd.cookie="__utmc="+_udh+"; path="+_utcp+";"+_udo; _ufns=1;} if (_ulink && v && v!="" && v!="-") { v=_uUES(v); if (v.indexOf(";")==-1) _ubd.cookie="__utmv="+v+"; path="+_utcp+";"+nx+_udo;} _uInfo(page); _ufns=0; _ufno=0; _uff=1;} function _uInfo(page) { var p,s="",dm="",pg=_udl.pathname+_udl.search; if (page && page!="") pg=_uES(page,1); _ur=_ubd.referrer; if (!_ur || _ur=="") { _ur="-";} else { dm=_ubd.domain; if(_utcp && _utcp!="/") dm+=_utcp; p=_ur.indexOf(dm); if ((p>=0) && (p<=8)) { _ur="0";} if (_ur.indexOf("[")==0 && _ur.lastIndexOf("]")==(_ur.length-1)) { _ur="-";} } s+="&utmn="+_uu; if (_ufsc) s+=_uBInfo(); if (_uctm) s+=_uCInfo(); if (_utitle && _ubd.title && _ubd.title!="") s+="&utmdt="+_uES(_ubd.title); if (_udl.hostname && _udl.hostname!="") s+="&utmhn="+_uES(_udl.hostname); s+="&utmr="+_ur; s+="&utmp="+pg; if (_userv==0 || _userv==2) { var i=new Image(1,1); i.src=_ugifpath+"?"+"utmwv="+_uwv+s; i.onload=function() {_uVoid();} } if (_userv==1 || _userv==2) { var i2=new Image(1,1); i2.src=_ugifpath2+"?"+"utmwv="+_uwv+s+"&utmac="+_uacct+"&utmcc="+_uGCS(); i2.onload=function() { _uVoid();} } return;} function _uVoid() { return;} function _uCInfo() { if (!_ucto || _ucto=="") { _ucto="15768000";} if (!_uVG()) return; var c="",t="-",t2="-",t3="-",o=0,cs=0,cn=0,i=0,z="-",s=""; if (_uanchor && _udlh && _udlh!="") s=_udlh+"&"; s+=_udl.search; var x=new Date(_udt.getTime()+(_ucto*1000)); var dc=_ubd.cookie; x=" expires="+x.toGMTString()+";"; if (_ulink && !_ubl) { z=_uUES(_uGC(s,"__utmz=","&")); if (z!="-" && z.indexOf(";")==-1) { _ubd.cookie="__utmz="+z+"; path="+_utcp+";"+x+_udo; return "";} } z=dc.indexOf("__utmz="+_udh); if (z>-1) { z=_uGC(dc,"__utmz="+_udh,";");} else { z="-";} t=_uGC(s,_ucid+"=","&"); t2=_uGC(s,_ucsr+"=","&"); t3=_uGC(s,"gclid=","&"); if ((t!="-" && t!="") || (t2!="-" && t2!="") || (t3!="-" && t3!="")) { if (t!="-" && t!="") c+="utmcid="+_uEC(t); if (t2!="-" && t2!="") { if (c != "") c+="|"; c+="utmcsr="+_uEC(t2);} if (t3!="-" && t3!="") { if (c != "") c+="|"; c+="utmgclid="+_uEC(t3);} t=_uGC(s,_uccn+"=","&"); if (t!="-" && t!="") c+="|utmccn="+_uEC(t); else c+="|utmccn=(not+set)"; t=_uGC(s,_ucmd+"=","&"); if (t!="-" && t!="") c+="|utmcmd="+_uEC(t); else c+="|utmcmd=(not+set)"; t=_uGC(s,_uctr+"=","&"); if (t!="-" && t!="") c+="|utmctr="+_uEC(t); else { t=_uOrg(1); if (t!="-" && t!="") c+="|utmctr="+_uEC(t);} t=_uGC(s,_ucct+"=","&"); if (t!="-" && t!="") c+="|utmcct="+_uEC(t); t=_uGC(s,_ucno+"=","&"); if (t=="1") o=1; if (z!="-" && o==1) return "";} if (c=="-" || c=="") { c=_uOrg(); if (z!="-" && _ufno==1) return "";} if (c=="-" || c=="") { if (_ufns==1) c=_uRef(); if (z!="-" && _ufno==1) return "";} if (c=="-" || c=="") { if (z=="-" && _ufns==1) { c="utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)";} if (c=="-" || c=="") return "";} if (z!="-") { i=z.indexOf("."); if (i>-1) i=z.indexOf(".",i+1); if (i>-1) i=z.indexOf(".",i+1); if (i>-1) i=z.indexOf(".",i+1); t=z.substring(i+1,z.length); if (t.toLowerCase()==c.toLowerCase()) cs=1; t=z.substring(0,i); if ((i=t.lastIndexOf(".")) > -1) { t=t.substring(i+1,t.length); cn=(t*1);} } if (cs==0 || _ufns==1) { t=_uGC(dc,"__utma="+_udh,";"); if ((i=t.lastIndexOf(".")) > 9) { _uns=t.substring(i+1,t.length); _uns=(_uns*1);} cn++; if (_uns==0) _uns=1; _ubd.cookie="__utmz="+_udh+"."+_ust+"."+_uns+"."+cn+"."+c+"; path="+_utcp+"; "+x+_udo;} if (cs==0 || _ufns==1) return "&utmcn=1"; else return "&utmcr=1";} function _uRef() { if (_ur=="0" || _ur=="" || _ur=="-") return ""; var i=0,h,k,n; if ((i=_ur.indexOf("://"))<0) return ""; h=_ur.substring(i+3,_ur.length); if (h.indexOf("/") > -1) { k=h.substring(h.indexOf("/"),h.length); if (k.indexOf("?") > -1) k=k.substring(0,k.indexOf("?")); h=h.substring(0,h.indexOf("/"));} h=h.toLowerCase(); n=h; if ((i=n.indexOf(":")) > -1) n=n.substring(0,i); for (var ii=0;ii<_uRno.length;ii++) { if ((i=n.indexOf(_uRno[ii].toLowerCase())) > -1 && n.length==(i+_uRno[ii].length)) { _ufno=1; break;} } if (h.indexOf("www.")==0) h=h.substring(4,h.length); return "utmccn=(referral)|utmcsr="+_uEC(h)+"|"+"utmcct="+_uEC(k)+"|utmcmd=referral";} function _uOrg(t) { if (_ur=="0" || _ur=="" || _ur=="-") return ""; var i=0,h,k; if ((i=_ur.indexOf("://")) < 0) return ""; h=_ur.substring(i+3,_ur.length); if (h.indexOf("/") > -1) { h=h.substring(0,h.indexOf("/"));} for (var ii=0;ii<_uOsr.length;ii++) { if (h.toLowerCase().indexOf(_uOsr[ii].toLowerCase()) > -1) { if ((i=_ur.indexOf("?"+_uOkw[ii]+"=")) > -1 || (i=_ur.indexOf("&"+_uOkw[ii]+"=")) > -1) { k=_ur.substring(i+_uOkw[ii].length+2,_ur.length); if ((i=k.indexOf("&")) > -1) k=k.substring(0,i); for (var yy=0;yy<_uOno.length;yy++) { if (_uOno[yy].toLowerCase()==k.toLowerCase()) { _ufno=1; break;} } if (t) return _uEC(k); else return "utmccn=(organic)|utmcsr="+_uEC(_uOsr[ii])+"|"+"utmctr="+_uEC(k)+"|utmcmd=organic";} } } return "";} function _uBInfo() { var sr="-",sc="-",ul="-",fl="-",je=1; var n=navigator; if (self.screen) { sr=screen.width+"x"+screen.height; sc=screen.colorDepth+"-bit";} else if (self.java) { var j=java.awt.Toolkit.getDefaultToolkit(); var s=j.getScreenSize(); sr=s.width+"x"+s.height;} if (n.language) { ul=n.language.toLowerCase();} else if (n.browserLanguage) { ul=n.browserLanguage.toLowerCase();} je=n.javaEnabled()?1:0; if (_uflash) fl=_uFlash(); return "&utmsr="+sr+"&utmsc="+sc+"&utmul="+ul+"&utmje="+je+"&utmfl="+fl;} function __utmSetTrans() { var e; if (_ubd.getElementById) e=_ubd.getElementById("utmtrans"); else if (_ubd.utmform && _ubd.utmform.utmtrans) e=_ubd.utmform.utmtrans; if (!e) return; var l=e.value.split("UTM:"); var i,i2,c; if (_userv==0 || _userv==2) i=new Array(); if (_userv==1 || _userv==2) { i2=new Array(); c=_uGCS();} for (var ii=0;ii=2;ii--) { try { var fl=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+ii+"');"); if (fl) { f=ii + '.0'; break;} } catch(e) {} } } return f;} function __utmLinker(l,h) { if (!_ulink) return; var p,k,a="-",b="-",c="-",z="-",v="-"; var dc=_ubd.cookie; if (!l || l=="") return; var iq = l.indexOf("?"); var ih = l.indexOf("#"); if (dc) { a=_uES(_uGC(dc,"__utma="+_udh,";")); b=_uES(_uGC(dc,"__utmb="+_udh,";")); c=_uES(_uGC(dc,"__utmc="+_udh,";")); z=_uES(_uGC(dc,"__utmz="+_udh,";")); v=_uES(_uGC(dc,"__utmv="+_udh,";")); k=(_uHash(a+b+c+z+v)*1)+(_udh*1); p="__utma="+a+"&__utmb="+b+"&__utmc="+c+"&__utmz="+z+"&__utmv="+v+"&__utmk="+k;} if (p) { if (h && ih>-1) return; if (h) { _udl.href=l+"#"+p;} else { if (iq==-1 && ih==-1) _udl.href=l+"?"+p; else if (ih==-1) _udl.href=l+"&"+p; else if (iq==-1) _udl.href=l.substring(0,ih-1)+"?"+p+l.substring(ih); else _udl.href=l.substring(0,ih-1)+"&"+p+l.substring(ih);} } else { _udl.href=l;} } function __utmLinkPost(f,h) { if (!_ulink) return; var p,k,a="-",b="-",c="-",z="-",v="-"; var dc=_ubd.cookie; if (!f || !f.action) return; var iq = f.action.indexOf("?"); var ih = f.action.indexOf("#"); if (dc) { a=_uES(_uGC(dc,"__utma="+_udh,";")); b=_uES(_uGC(dc,"__utmb="+_udh,";")); c=_uES(_uGC(dc,"__utmc="+_udh,";")); z=_uES(_uGC(dc,"__utmz="+_udh,";")); v=_uES(_uGC(dc,"__utmv="+_udh,";")); k=(_uHash(a+b+c+z+v)*1)+(_udh*1); p="__utma="+a+"&__utmb="+b+"&__utmc="+c+"&__utmz="+z+"&__utmv="+v+"&__utmk="+k;} if (p) { if (h && ih>-1) return; if (h) { f.action+="#"+p;} else { if (iq==-1 && ih==-1) f.action+="?"+p; else if (ih==-1) f.action+="&"+p; else if (iq==-1) f.action=f.action.substring(0,ih-1)+"?"+p+f.action.substring(ih); else f.action=f.action.substring(0,ih-1)+"&"+p+f.action.substring(ih);} } return;} function __utmSetVar(v) { if (!v || v=="") return; if (!_udo || _udo == "") { _udh=_uDomain(); if (_udn && _udn!="") { _udo=" domain="+_udn+";";} } if (!_uVG()) return; var r=Math.round(Math.random() * 2147483647); _ubd.cookie="__utmv="+_udh+"."+_uES(v)+"; path="+_utcp+"; expires=Sun, 18 Jan 2038 00:00:00 GMT;"+_udo; var s="&utmt=var&utmn="+r; if (_userv==0 || _userv==2) { var i=new Image(1,1); i.src=_ugifpath+"?"+"utmwv="+_uwv+s; i.onload=function() { _uVoid();} } if (_userv==1 || _userv==2) { var i2=new Image(1,1); i2.src=_ugifpath2+"?"+"utmwv="+_uwv+s+"&utmac="+_uacct+"&utmcc="+_uGCS(); i2.onload=function() { _uVoid();} } } function _uGCS() { var t,c="",dc=_ubd.cookie; if ((t=_uGC(dc,"__utma="+_udh,";"))!="-") c+=_uES("__utma="+t+";+"); if ((t=_uGC(dc,"__utmb="+_udh,";"))!="-") c+=_uES("__utmb="+t+";+"); if ((t=_uGC(dc,"__utmc="+_udh,";"))!="-") c+=_uES("__utmc="+t+";+"); if ((t=_uGC(dc,"__utmz="+_udh,";"))!="-") c+=_uES("__utmz="+t+";+"); if ((t=_uGC(dc,"__utmv="+_udh,";"))!="-") c+=_uES("__utmv="+t+";"); if (c.charAt(c.length-1)=="+") c=c.substring(0,c.length-1); return c;} function _uGC(l,n,s) { if (!l || l=="" || !n || n=="" || !s || s=="") return "-"; var i,i2,i3,c="-"; i=l.indexOf(n); i3=n.indexOf("=")+1; if (i > -1) { i2=l.indexOf(s,i); if (i2 < 0) { i2=l.length;} c=l.substring((i+i3),i2);} return c;} function _uDomain() { if (!_udn || _udn=="" || _udn=="none") { _udn=""; return 1;} if (_udn=="auto") { var d=_ubd.domain; if (d.substring(0,4)=="www.") { d=d.substring(4,d.length);} _udn=d;} if (_uhash=="off") return 1; return _uHash(_udn);} function _uHash(d) { if (!d || d=="") return 1; var h=0,g=0; for (var i=d.length-1;i>=0;i--) { var c=parseInt(d.charCodeAt(i)); h=((h << 6) & 0xfffffff) + c + (c << 14); if ((g=h & 0xfe00000)!=0) h=(h ^ (g >> 21));} return h;} function _uFixA(c,s,t) { if (!c || c=="" || !s || s=="" || !t || t=="") return "-"; var a=_uGC(c,"__utma="+_udh,s); var lt=0,i=0; if ((i=a.lastIndexOf(".")) > 9) { _uns=a.substring(i+1,a.length); _uns=(_uns*1)+1; a=a.substring(0,i); if ((i=a.lastIndexOf(".")) > 7) { lt=a.substring(i+1,a.length); a=a.substring(0,i);} if ((i=a.lastIndexOf(".")) > 5) { a=a.substring(0,i);} a+="."+lt+"."+t+"."+_uns;} return a;} function _uTrim(s) { if (!s || s=="") return ""; while ((s.charAt(0)==' ') || (s.charAt(0)=='\n') || (s.charAt(0,1)=='\r')) s=s.substring(1,s.length); while ((s.charAt(s.length-1)==' ') || (s.charAt(s.length-1)=='\n') || (s.charAt(s.length-1)=='\r')) s=s.substring(0,s.length-1); return s;} function _uEC(s) { var n=""; if (!s || s=="") return ""; for (var i=0;i0) r=a.substring(i+1,i2); else return ""; if ((i=a.indexOf(".",i2+1))>0) t=a.substring(i2+1,i); else return ""; var c=new Array('A','B','C','D','E','F','G','H','J','K','L','M','N','P','R','S','T','U','V','W','X','Y','Z','1','2','3','4','5','6','7','8','9'); return c[r>>28&m]+c[r>>23&m]+c[r>>18&m]+c[r>>13&m]+"-"+c[r>>8&m]+c[r>>3&m]+c[((r&7)<<2)+(t>>30&3)]+c[t>>25&m]+c[t>>20&m]+"-"+c[t>>15&m]+c[t>>10&m]+c[t>>5&m]+c[t&m];} function _uIN(n) { if (!n) return false; for (var i=0;i"9") && (c!=".")) return false;} return true;} function _uES(s,u) { if (typeof(encodeURIComponent) == 'function') { if (u) return encodeURI(s); else return encodeURIComponent(s);} else { return escape(s);} } function _uUES(s) { if (typeof(decodeURIComponent) == 'function') { return decodeURIComponent(s);} else { return unescape(s);} } function _uVG() { if((_udn.indexOf("www.google.") == 0 || _udn.indexOf(".google.") == 0 || _udn.indexOf("google.") == 0) && _utcp=='/') { return false;} return true;} if (location.href.indexOf('coolersport.info')>-1) urchinTracker(location.href.replace(/.*\/csite/,'')); ajaxCS = function() { this.id = ajaxCS.ajaxObjects.length; this.httpObj = this.createHttpRequestObject(); this.cache = new Array(); this.isProcessing = false; this.waitfor = 50; this.statusId = ''; this.statusLoad = ''; this.statusFinish = ''; } ajaxCS.httpObjVersion = ''; /* * Create an instance of XMLHttpRequest based on client browser type */ ajaxCS.prototype.createHttpRequestObject = function() { var httpObj; try { httpObj = new XMLHttpRequest(); } catch(e) { if (ajaxCS.httpObjVersion!='') { try { httpObj = new ActiveXObject(ajaxCS.httpObjVersion); } catch (e) {} } else { var XmlHttpVersions = new Array('MSXML2.XMLHTTP.6.0','MSXML2.XMLHTTP.5.0','MSXML2.XMLHTTP.4.0','MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP','Microsoft.XMLHTTP','MSXML2.XMLHTTP'); for (var i=0; i-1) { func(_this.httpObj.responseXML); } else { func(_this.httpObj.responseText); } } catch(e) { alert('Error retrieving response data.\nMethod: '+method+'\nURL: '+url+'\nError message: ' + e.message); } } else { try { func('Error: '+_this.httpObj.status); } catch(e) { alert('Bad handler function.\nMethod: '+method+'\nURL: '+url+'\nError message: ' + e.message); } } if (_this.cache.length<4) { _this.isProcessing = false; if (_this.statusId) { try { document.getElementById(_this.statusId).innerHTML = _this.statusFinish; } catch(e) {} } } else { _this.isProcessing = true; setTimeout('ajaxCS.ajaxObjects['+_this.id+'].CDownloadUrl()', _this.waitfor); } } }; try { this.httpObj.open(method, url, true); if (parameters!=null) { this.httpObj.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); this.httpObj.setRequestHeader("Content-length", parameters.length); this.httpObj.setRequestHeader("Connection", "close"); this.httpObj.send(parameters); } else { this.httpObj.send(''); } } catch(e) { alert('Error connecting to server: ' + e.message); } } /* * AJAX requests queue */ ajaxCS.prototype.load = function(method, url, parameters, func) { this.cache.push(method, url, parameters, func); if (!this.isProcessing) this.CDownloadUrl(); } /* * Set waiting time between ajax calls */ ajaxCS.prototype.setWait = function(waitfor) { this.waitfor = waitfor; } /* * Set loading status */ ajaxCS.prototype.setStatus = function(statusId, statusLoad, statusFinish) { this.statusId = statusId; this.statusLoad = statusLoad; this.statusFinish = statusFinish; } /* * ajaxCS objects collection */ ajaxCS.ajaxObjects = new Array(); ajaxCS.createInstance = function() { var c = new ajaxCS(); ajaxCS.ajaxObjects.push(c); return c; } /* * Usage: ajaxcs = ajaxCS.createInstance(); * ajaxcs.load( method, url, parameters, function(xmldoc) {}); */ String.prototype.escape = function() { return escape(this).replace(/\+/g,'%2B'); } String.prototype.htmlquote = function() { return this.replace(/\'/g,''').replace(/\"/g,'"'); } String.prototype.unquote = function() { return this.replace(/\'/g,'\\u0027').replace(/\"/g,'\\u0022'); } String.prototype.unhtml = function() { return this.replace(//g,'>'); } String.prototype.trim = function() { return this.replace(/^\s*|\s*$/g, ''); } var _0cf=0;var _0aa="";var _0aw=8;function _0l(s){return _0e(_0h(_0r(s),s.length*_0aw));};function _0c(s){return _0d(_0h(_0r(s),s.length*_0aw));};function _0t(s){return _0f(_0h(_0r(s),s.length*_0aw));};function _0k(_0cI,data){return _0e(_0g(_0cI,data));};function _0b(_0cI,data){return _0d(_0g(_0cI,data));};function _0s(_0cI,data){return _0f(_0g(_0cI,data));};function _0q(){return _0l("abc")=="a9993e364706816aba3e25717850c26c9cd0d89d";};function _0h(x,_0cU){x[_0cU>>5]|=0x80<<(24-_0cU%32);x[((_0cU+64>>9)<<4)+15]=_0cU;var w=Array(80);var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;var e=-1009589776;for(var i=0;i16)_0af=_0h(_0af,_0cI.length*_0aw);var _0cr=Array(16),_0dT=Array(16);for(var i=0;i<16;i++){_0cr[i]=_0af[i]^0x36363636;_0dT[i]=_0af[i]^0x5C5C5C5C;}var hash=_0h(_0cr.concat(_0r(data)),512+data.length*_0aw);return _0h(_0dT.concat(hash),512+160);};function _0n(x,y){var _0cV=(x&0xFFFF)+(y&0xFFFF);var _0dy=(x>>16)+(y>>16)+(_0cV>>16);return(_0dy<<16)|(_0cV&0xFFFF);};function _0m(_0dE,_0aB){return(_0dE<<_0aB)|(_0dE>>>(32-_0aB));};function _0r(_0eT){var _0ad=Array();var _0dd=(1<<_0aw)-1;for(var i=0;i<_0eT.length*_0aw;i+=_0aw)_0ad[i>>5]|=(_0eT.charCodeAt(i/_0aw)&_0dd)<<(32-_0aw-i%32);return _0ad;};function _0f(_0ad){var _0eT="";var _0dd=(1<<_0aw)-1;for(var i=0;i<_0ad.length*32;i+=_0aw)_0eT+=String.fromCharCode((_0ad[i>>5]>>>(32-_0aw-i%32))&_0dd);return _0eT;};function _0e(_0ae){var _0ce=_0cf?"0123456789ABCDEF":"0123456789abcdef";var _0eT="";for(var i=0;i<_0ae.length*4;i++){_0eT+=_0ce.charAt((_0ae[i>>2]>>((3-i%4)*8+4))&0xF)+_0ce.charAt((_0ae[i>>2]>>((3-i%4)*8))&0xF);}return _0eT;};function _0d(_0ae){var _0eW="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var _0eT="";for(var i=0;i<_0ae.length*4;i+=3){var _0fa=(((_0ae[i>>2]>>8*(3-i%4))&0xFF)<<16)|(((_0ae[i+1>>2]>>8*(3-(i+1)%4))&0xFF)<<8)|((_0ae[i+2>>2]>>8*(3-(i+2)%4))&0xFF);for(var j=0;j<4;j++){if(i*8+j*6>_0ae.length*32)_0eT+=_0aa;else _0eT+=_0eW.charAt((_0fa>>6*(3-j))&0x3F);}}return _0eT;};var _0x={_0dI:null,_0cm:function(o,oRoot,_0dl,_0dg,_0dm,_0dh,_0ab,_0ac,_0bx,_0by){o.onmousedown=_0x.start;o._0ch=_0ab?false:true;o._0ff=_0ac?false:true;o.root=oRoot&&oRoot!=null?oRoot:o;if(o._0ch&&isNaN(parseInt(o.root.style.left)))o.root.style.left="0px";if(o._0ff&&isNaN(parseInt(o.root.style.top)))o.root.style.top="0px";if(!o._0ch&&isNaN(parseInt(o.root.style.right)))o.root.style.right="0px";if(!o._0ff&&isNaN(parseInt(o.root.style.bottom)))o.root.style.bottom="0px";o._0dl=typeof _0dl!='undefined'?_0dl:null;o._0dm=typeof _0dm!='undefined'?_0dm:null;o._0dg=typeof _0dg!='undefined'?_0dg:null;o._0dh=typeof _0dh!='undefined'?_0dh:null;o._0fi=_0bx?_0bx:null;o._0fn=_0by?_0by:null;o.root.onDragStart=new Function();o.root.onDragEnd=new Function();o.root.onDrag=new Function();},start:function(e){var o=_0x._0dI=this;e=_0x._0bD(e);var y=parseInt(o._0ff?o.root.style.top:o.root.style.bottom);var x=parseInt(o._0ch?o.root.style.left:o.root.style.right);o.root.onDragStart(x,y);o._0cN=e.clientX;o._0cO=e.clientY;if(o._0ch){if(o._0dl!=null)o._0dj=e.clientX-x+o._0dl;if(o._0dg!=null)o._0de=o._0dj+o._0dg-o._0dl;}else{if(o._0dl!=null)o._0de=-o._0dl+e.clientX+x;if(o._0dg!=null)o._0dj=-o._0dg+e.clientX+x;}if(o._0ff){if(o._0dm!=null)o._0dk=e.clientY-y+o._0dm;if(o._0dh!=null)o._0df=o._0dk+o._0dh-o._0dm;}else{if(o._0dm!=null)o._0df=-o._0dm+e.clientY+y;if(o._0dh!=null)o._0dk=-o._0dh+e.clientY+y;}document.onmousemove=_0x._0bl;document.onmouseup=_0x._0bn;return false;},_0bl:function(e){e=_0x._0bD(e);var o=_0x._0dI;var ey=e.clientY;var ex=e.clientX;var y=parseInt(o._0ff?o.root.style.top:o.root.style.bottom);var x=parseInt(o._0ch?o.root.style.left:o.root.style.right);var _0dG,_0dH;if(o._0dl!=null)ex=o._0ch?Math.max(ex,o._0dj):Math.min(ex,o._0de);if(o._0dg!=null)ex=o._0ch?Math.min(ex,o._0de):Math.max(ex,o._0dj);if(o._0dm!=null)ey=o._0ff?Math.max(ey,o._0dk):Math.min(ey,o._0df);if(o._0dh!=null)ey=o._0ff?Math.min(ey,o._0df):Math.max(ey,o._0dk);_0dG=x+((ex-o._0cN)*(o._0ch?1:-1));_0dH=y+((ey-o._0cO)*(o._0ff?1:-1));if(o._0fi)_0dG=o._0fi(y);else if(o._0fn)_0dH=o._0fn(x);_0x._0dI.root.style[o._0ch?"left":"right"]=_0dG+"px";_0x._0dI.root.style[o._0ff?"top":"bottom"]=_0dH+"px";_0x._0dI._0cN=ex;_0x._0dI._0cO=ey;_0x._0dI.root.onDrag(_0dG,_0dH);return false;},_0bn:function(){document.onmousemove=null;document.onmouseup=null;_0x._0dI.root.onDragEnd(parseInt(_0x._0dI.root.style[_0x._0dI._0ch?"left":"right"]),parseInt(_0x._0dI.root.style[_0x._0dI._0ff?"top":"bottom"]));_0x._0dI=null;},_0bD:function(e){if(typeof e=='undefined')e=window.event;if(typeof e.layerX=='undefined')e.layerX=e.offsetX;if(typeof e.layerY=='undefined')e.layerY=e.offsetY;return e;}};function _0a(_0cu,_0aW,_0cJ,_0bF,_0ck){if(arguments.length==0)return;this._0cu=_0cu;this.index=_0ck;this._0Z=_0a._0Z;this._0cz=false;this._0cK='auto';this._0aC=document.createElement('div');this._0aC.className="cDialogBox";this._0aC._0ba=this;var _0cd=document.createElement('table');_0cd.setAttribute('cellSpacing','0');_0cd.setAttribute('cellPadding','3');_0cd.setAttribute('border','0');_0cd.setAttribute('width','100%');var _0cb=document.createElement('tr');this._0ap=document.createElement('td');this._0ap.setAttribute('valign','top');this._0ap.setAttribute('align','left');this._0ap.className="cDialogBoxCaption";this._0ap.innerHTML="Default Caption";_0cb.appendChild(this._0ap);var _0ax=document.createElement('td');_0ax.setAttribute('valign','top');_0ax.className="cDialogBoxCaption";_0ax.setAttribute('align','right');var _0ay=document.createElement('a');_0ay.setAttribute('href','');_0ay.onclick=function(){eval('_0a._0v['+_0ck+'].setVisible(false);');return(false);};_0ay.className="cDialogBoxClose";_0ay.innerHTML='X';_0ax.appendChild(_0ay);_0cb.appendChild(_0ax);var _0cc=document.createElement('tbody');_0cc.appendChild(_0cb);_0cd.appendChild(_0cc);this._0ca=document.createElement('div');this._0ca.className="cDialogBoxHeader";this._0ca.appendChild(_0cd);this._0aD=document.createElement('div');this._0aD.className="cDialogBoxContent";this._0ag=document.createElement('div');this._0ag.className="cDialogBoxButtons";if(_0cJ!=null&&_0bF!=null&&_0cJ.length==_0bF.length){this._0az=new Array(_0cJ.length);for(i=0;i<_0cJ.length;i++){this._0az[i]=document.createElement('input');this._0az[i].setAttribute('type','button');this._0az[i].setAttribute('value',_0cJ[i]);if(_0bF[i]==null){this._0az[i].onclick=function(){eval('_0a._0v['+_0ck+'].setVisible(false);');}}else{this._0az[i].onclick=_0bF[i];}this._0ag.appendChild(this._0az[i]);}if(_0aW>=0&&_0aW<_0cJ.length){this._0aA=this._0az[_0aW];}else{this._0aA=this._0az[0];}}else{this._0aA=document.createElement('input');this._0aA.setAttribute('type','button');this._0aA.setAttribute('value','OK');this._0aA.onclick=function(){eval('_0a._0v['+_0ck+'].setVisible(false);');};this._0ag.appendChild(this._0aA);}this._0aC.appendChild(this._0ca);this._0aC.appendChild(this._0aD);this._0aC.appendChild(this._0ag);this._0ak=document.createElement('div');this._0ak.className="cDialogBoxOverlay";this._0ak.style.zIndex=_0a._0al;this._0ak.style.display='none';this._0aC.style.zIndex=_0a._0al+100;this._0aC.style.display='none';document.body.appendChild(this._0ak);document.body.appendChild(this._0aC);_0x._0cm(this._0ca,this._0aC,0,null,0,null);};_0a._0Z=true;_0a._0al=10000;_0a.prototype.setTitle=function(title){this._0ap.innerHTML=title;};_0a.prototype.setContent=function(content){this._0aD.innerHTML=content;};_0a.prototype.setWidth=function(width){this._0aC.style.width=width+'px';};_0a.prototype.setPosition=function(_0el,_0dY){var top=_0el;var left=_0dY;var margin=20;var scroll=_0i();if(document.all){if(left+this._0aC.offsetWidth>document.body.clientWidth+scroll._0fj)left=document.body.clientWidth-this._0aC.offsetWidth+scroll._0fj;if(top+this._0aC.offsetHeight+margin>document.body.clientHeight+scroll._0fo)top=document.body.clientHeight-this._0aC.offsetHeight+scroll._0fo;}else{if(left+this._0aC.offsetWidth>window.innerWidth+scroll._0fj)left=window.innerWidth-this._0aC.offsetWidth+scroll._0fj-margin;if(top+this._0aC.offsetHeight+margin>window.innerHeight+scroll._0fo)top=window.innerHeight-this._0aC.offsetHeight+scroll._0fo-margin;}this._0aC.style.top=top+'px';this._0aC.style.left=left+'px';};_0a.prototype.setVisible=function(showIt){var left,top,_0ek;if(showIt){_0ek=_0j();}var scroll=_0i();if(this._0cu){this._0ak.style.display=showIt?"block":"none";if(showIt){this._0cK=document.body.style.overflow;document.body.style.overflow='hidden';window.scrollTo(scroll._0fj,scroll._0fo);}else{document.body.style.overflow=this._0cK;}}this._0aC.style.display=showIt?"block":"none";if(showIt){this._0eB();if(this._0Z){scroll._0fj=(_0ek._0fh-this._0aC.offsetWidth)/2+scroll._0fj;scroll._0fo=(_0ek._0fg-this._0aC.offsetHeight)/2+scroll._0fo;this._0aC.style.left=scroll._0fj+'px';this._0aC.style.top=scroll._0fo+'px';}this._0aA.focus();}this._0cz=showIt;};_0a._0v=new Array();_0a.prototype._0eB=function(){var c=_0a._0al;for(i=0;i<_0a._0v.length;i++){if(i!=this.index&&_0a._0v[i]._0cz&&_0a._0v[i]._0ak.style.zIndex>=c)c=parseInt(_0a._0v[i]._0ak.style.zIndex)+1000;}this._0ak.style.zIndex=c;this._0aC.style.zIndex=c+100;};function _0j(){var _0fj,_0fo;if(window.innerHeight&&window.scrollMaxY){_0fj=document.body.scrollWidth;_0fo=window.innerHeight+window.scrollMaxY;}else if(document.body.scrollHeight>document.body.offsetHeight){_0fj=document.body.scrollWidth;_0fo=document.body.scrollHeight;}else{_0fj=document.body.offsetWidth;_0fo=document.body.offsetHeight;}var _0fh,_0fg;if(self.innerHeight){_0fh=self.innerWidth;_0fg=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){_0fh=document.documentElement.clientWidth;_0fg=document.documentElement.clientHeight;}else if(document.body){_0fh=document.body.clientWidth;_0fg=document.body.clientHeight;}if(_0fo<_0fg){_0dU=_0fg;}else{_0dU=_0fo;}if(_0fj<_0fh){_0dV=_0fh;}else{_0dV=_0fj;}_0Y={_0dV:_0dV,_0dU:_0dU,_0fh:_0fh,_0fg:_0fg};return _0Y;};function _0i(){var _0fj,_0fo;if(self.pageYOffset){_0fj=self.pageXOffset;_0fo=self.pageYOffset;}else if(document.documentElement&&document.documentElement.scrollTop){_0fj=document.documentElement.scrollLeft;_0fo=document.documentElement.scrollTop;}else if(document.body){_0fj=document.body.scrollLeft;_0fo=document.body.scrollTop;}_0X={_0fj:_0fj,_0fo:_0fo};return _0X;};function CreateCDialog(_0dq){var _0aj=new _0a(_0dq,null,null,_0a._0v.length);_0a._0v.push(_0aj);return _0aj;};function CreateCDialog(_0dq,_0aW,_0cJ,_0bF){var _0aj=new _0a(_0dq,_0aW,_0cJ,_0bF,_0a._0v.length);_0a._0v.push(_0aj);return _0aj;};function SLCal(name,_0bC,_0cC,_0as,_0dJ){if(!SLCal.prototype._0cn){SLCal.prototype._0y=this._0cG(19,2,1700);SLCal.prototype._0B=this._0cG(31,12,2199);SLCal.prototype._0F=new Date();SLCal.prototype._0aI=this._0bL(this._0F.getDate(),this._0F.getMonth()+1,this._0F.getFullYear());SLCal.prototype._0bf=CreateCDialog(true,1,[this._DELETE_,this._CLOSE_],[SLCal._0aX,null]);SLCal.prototype._0bf.setWidth(300);SLCal.prototype._0bf._0Z=true;SLCal.prototype._0bc=CreateCDialog(false,1,[this._ADDNEW_,this._CLOSE_],[function(){SLCal._0N();},null]);SLCal.prototype._0bc.setWidth(300);SLCal.prototype._0bc._0Z=false;SLCal.prototype._0be=CreateCDialog(true,0,[this._ADDNEW_,this._CANCEL_],[SLCal._0dS,null]);SLCal.prototype._0be.setWidth(400);SLCal.prototype._0be._0Z=true;SLCal.prototype._0be.setTitle(this._ADDNEW_);SLCal._0bd=CreateCDialog(true,1,[this._OK_,this._CANCEL_],[SLCal._0aY,null]);SLCal._0bd.setWidth(230);SLCal._0bd._0Z=true;SLCal._0bd.setTitle(this._DELETE_);SLCal._0bg=CreateCDialog(true,1,[this._LOGIN_,this._CLOSE_],[SLCal._0bi,null]);SLCal._0bg.setWidth(200);SLCal._0bg._0Z=true;SLCal._0bg.setTitle(this._LOGIN_);SLCal._0bh=CreateCDialog(true,0,[this._CLOSE_],[null]);SLCal._0bh.setWidth(230);SLCal.prototype._0cn=true;}this._0dJ=_0dJ;this._0an=name;this._0cy=false;this._FIRSTDAY_=(_0bC>-1&&_0bC<7)?_0bC:0;this._SMALLCALENDAR_=_0cC;this._CELLHEIGHT_=_0as;this._0dZ=name+'popupDayInfo';this._0ci=false;this._0cM='';this._0cL='';this._0aK=this._0F.getMonth()+1;this._0aL=this._0F.getFullYear();this._0aJ;this._0bR();};SLCal.prototype.setName=function(_0dB){if(_0dB)this._0an=_0dB;};SLCal._0au=function(){if(SLCal._0ao.length>0){SLCal._0w(SLCal._PROCESSURL_,'act=islogged',function(_0fk){for(i=0;i[-]';}else{document.getElementById('SLCalLoginLogout'+i).innerHTML=' [+]';}}catch(e){SLCal._0ao[i]._0cy=false;}}}});}};SLCal._0eG=function(){var html='';html+='';html+='';html+='
'+SLCal.prototype._USERNAME_+'
'+SLCal.prototype._PASSWORD_+'
';SLCal._0bg.setContent(html);SLCal._0bg.setVisible(true);};SLCal._0bi=function(){var u=document.getElementById('SLCalUsername').value;var p=document.getElementById('SLCalPassword').value;if(u==''||p==''){SLCal._0bh.setTitle(SLCal.prototype._ERROR_);SLCal._0bh.setContent(SLCal.prototype._USERPASSREQUIRED_);SLCal._0bh.setVisible(true);}else{document.getElementById('SLCalUsername').value='';document.getElementById('SLCalPassword').value='';SLCal._0w(SLCal._PROCESSURL_,'act=login&u='+_0l(u)+'&p='+_0l(p),function(_0fk){if(_0fk=='ok'){SLCal._0bg.setVisible(false);SLCal._0au();SLCalLoaddata();}else{if(_0fk.substring(0,6)=='error:')_0fk=_0fk.substring(6);var _0bp=SLCal.prototype._ERROROCCURRED_.replace(/##/g,_0fk);SLCal._0bh.setTitle(SLCal.prototype._ERROR_);SLCal._0bh.setContent(_0bp);SLCal._0bh.setVisible(true);}});}};SLCal._0bj=function(){SLCal._0w(SLCal._PROCESSURL_,'act=logout',function(_0fk){if(_0fk=='ok'){SLCal._0au();SLCalLoaddata();}else{if(_0fk.substring(0,6)=='error:')_0fk=_0fk.substring(6);var _0bp=SLCal.prototype._ERROROCCURRED_.replace(/##/g,_0fk);SLCal._0bh.setTitle(SLCal.prototype._ERROR_);SLCal._0bh.setContent(_0bp);SLCal._0bh.setVisible(true);}});};SLCal._0dS=function(){var _0ej=document.getElementById('SLCal_private_value').value;var _0br=document.getElementById('SLCal_etype_value').value;var _0aR=document.getElementById('SLCal_day1').value;var _0dt=document.getElementById('SLCal_month1').value;var _0fq=document.getElementById('SLCal_year1').value;var _0aS=document.getElementById('SLCal_day2').value;var _0du=document.getElementById('SLCal_month2').value;var _0fr=document.getElementById('SLCal_year2').value;if(_0br>0&&_0br<5){var _0eX=new Date(_0fr,_0du-1,_0aS);if(_0aS!=_0eX.getDate()||_0du-1!=_0eX.getMonth()||_0fr!=_0eX.getFullYear()||_0fr<1700||_0fr>2199){SLCal._0bh.setTitle(SLCal.prototype._ERROR_);SLCal._0bh.setContent(SLCal.prototype._INVALIDDATE_);SLCal._0bh.setVisible(true);return;}}else if(_0br==7&&(_0fr<1700||_0fr>2199)){SLCal._0bh.setTitle(SLCal.prototype._ERROR_);SLCal._0bh.setContent(SLCal.prototype._INVALIDDATE_);SLCal._0bh.setVisible(true);return;}if(_0br==5){_0fq=_0ds;_0aR=document.getElementById('SLCal_etype5_1').value;_0dt=document.getElementById('SLCal_etype5_2').value;_0aS='0';_0du='0';_0fr='0';}var reg=new RegExp("\u000D\u000A","g");var _0eZ=escape(document.getElementById("SLCal_title").value.replace(/^\s*|\s*$/g,''));if(_0eZ.length<1){SLCal._0bh.setTitle(SLCal.prototype._ERROR_);SLCal._0bh.setContent(SLCal.prototype._TITLEISREQUIRED_);SLCal._0bh.setVisible(true);return;}var _0di=document.getElementById("SLCal_message").value.replace(reg,'
');_0di=_0di.replace(/\n/g,'
');_0di=_0di.replace(/^\s*|\s*$/g,'');_0di=escape(_0di);var _0em='act=add&p='+_0ej+'&e='+_0br+'&d1='+_0aR+'&m1='+_0dt+'&y1='+_0fq+'&d2='+_0aS+'&m2='+_0du+'&y2='+_0fr+'&t='+_0eZ+'&m='+_0di;SLCal._0w(SLCal._PROCESSURL_,_0em,function(_0fk){if(_0fk=='ok'){SLCal.prototype._0be.setVisible(false);SLCalLoaddata();}else{if(_0fk.substring(0,6)=='error:')_0fk=_0fk.substring(6);var _0bp=SLCal.prototype._ERROROCCURRED_.replace(/##/g,_0fk);SLCal._0bh.setTitle(SLCal.prototype._ERROR_);SLCal._0bh.setContent(_0bp);SLCal._0bh.setVisible(true);}});};SLCal._0N=function(){SLCal._0ao[SLCal.prototype._0ex]._0N();};SLCal._0aX=function(){if(!SLCal.prototype._0cB){SLCal._0bh.setTitle(SLCal.prototype._ERROR_);SLCal._0bh.setContent(SLCal.prototype._LOGINFIRST_);SLCal._0bh.setVisible(true);}else if(SLCal.prototype._0ez==''){SLCal._0bh.setTitle(SLCal.prototype._ERROR_);SLCal._0bh.setContent(SLCal.prototype._CANNOTDELETEEXT_);SLCal._0bh.setVisible(true);}else{SLCal._0bd.setContent(SLCal.prototype._CONFIRMDELETE_);SLCal._0bd.setVisible(true);}};SLCal._0aY=function(){SLCal._0bd.setVisible(false);SLCal._0w(SLCal._PROCESSURL_,'act=del&k='+SLCal.prototype._0ez,function(_0fk){var _0Q=0;if(_0fk.substring(0,3)=='ok:'){_0Q=parseInt(_0fk.substring(3));if(_0Q<1)_0fk='No event was deleted';}if(_0Q>0){SLCal.prototype._0bf.setVisible(false);SLCalLoaddata();}else{if(_0fk.substring(0,6)=='error:')_0fk=_0fk.substring(6);var _0bp=SLCal.prototype._ERROROCCURRED_.replace(/##/g,_0fk);SLCal._0bh.setContent(_0bp);SLCal._0bh.setVisible(true);}});};SLCal.prototype._CALTITLE_='_MM_ _Y_';SLCal.prototype._DAY_='Day';SLCal.prototype._MONTH_='Month';SLCal.prototype._YEAR_='Year';SLCal.prototype._TODAY_='TODAY';SLCal.prototype._LASTMONTH_='Previous month';SLCal.prototype._LASTYEAR_='Previous year';SLCal.prototype._NEXTMONTH_='Next month';SLCal.prototype._NEXTYEAR_='Next year';SLCal.prototype._REFRESH_='Reload data';SLCal.prototype._PRIVATETITLE_='Private event';SLCal.prototype._PRIVATEMESSAGE_='You must be logged in to see this event\'s content';SLCal.prototype._LOGINFIRST_='You must be logged in to be able to take this action';SLCal.prototype._TIME_='Time';SLCal.prototype._LOCATION_='Location';SLCal.prototype._DESCRIPTION_='Description';SLCal.prototype._LEAP_='leap';SLCal.prototype._LEAPSHORT_='L';SLCal.prototype._LUNAR_='Lunar Calendar';SLCal.prototype._LUNARSHORT_='lunar';SLCal.prototype._GOODHOURS_='Good hours';SLCal.prototype._EVENTSCOPE_='Public event?';SLCal.prototype._PUBLIC_='Yes';SLCal.prototype._PRIVATE_='No (only me can view it)';SLCal.prototype._EVENTTYPE_='Event type';SLCal.prototype._NOREPEAT_='No repeat';SLCal.prototype._DAILY_='Daily';SLCal.prototype._WEEKLY_='Weekly';SLCal.prototype._MONTHLY_='Monthly';SLCal.prototype._YEARLY_='Yearly';SLCal.prototype._SPECIAL_='Special';SLCal.prototype._NOREPEAT2_='No repeat (lunar)';SLCal.prototype._YEARLY2_='Yearly (lunar)';SLCal.prototype._PERIOD_='Period';SLCal.prototype._FROM_='From';SLCal.prototype._TO_='to';SLCal.prototype._SPECIALTEMPLATE_='_ORDER_ _WEEKDAY_ of _MONTHNAME_';SLCal.prototype._EVENTTITLE_='Title';SLCal.prototype._EVENTMESSAGE_='Message';SLCal.prototype._ERROR_='Error';SLCal.prototype._ERROROCCURRED_='Error occurred. Please try again or check following error.

(Error message: ##)

';SLCal.prototype._CONFIRMDELETE_='Do you really want to delele this event?';SLCal.prototype._CANNOTDELETEEXT_='Cannot delete this external event';SLCal.prototype._OUTOFSCOPE_='No data for the required period of time';SLCal.prototype._INVALIDDATE_='The date you have entered is invalid or out of range';SLCal.prototype._TITLEISREQUIRED_='Title is required';SLCal.prototype._WRONGMONTH_='Invalid month value (1-12)';SLCal.prototype._WRONGYEAR_='Invalid year value (only accept 1700-2199)';SLCal.prototype._EVENTSOFTHEDAY_='Events of the day:';SLCal.prototype._ADDNEW_='Add new';SLCal.prototype._DELETE_='Delete';SLCal.prototype._OK_='OK';SLCal.prototype._LOGIN_='Login';SLCal.prototype._LOGOUT_='Logout';SLCal.prototype._CANCEL_='Cancel';SLCal.prototype._CLOSE_='Close';SLCal.prototype._USERNAME_='Username';SLCal.prototype._PASSWORD_='Password';SLCal.prototype._USERPASSREQUIRED_='Both username and password are required';SLCal.prototype._DECORATION_='';SLCal.prototype._MONTHNAME_=["January","February","March","April","May","June","July","August","September","October","November","December"];SLCal.prototype._WEEKDAY_=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];SLCal.prototype._WEEKDAYSHORT_=["S","M","T","W","T","F","S"];SLCal.prototype._ORDER_=["First","Second","Third","Forth","Fifth","Sixth"];SLCal.prototype._CAN_=["Giap","At","Binh","Dinh","Mau","Ky","Canh","Tan","Nham","Quy"];SLCal.prototype._CHI_=["Ti","Suu","Dan","Mao","Thin","Ty","Ngo","Mui","Than","Dau","Tuat","Hoi"];SLCal._MAXTITLE_=35;SLCal._EVENTSURL_='process.php?act=getevents';SLCal._PROCESSURL_='process.php';SLCal._EVENTS_=null;SLCal._0ao=new Array();SLCal.prototype._0ex=0;SLCal.prototype._0ez='';SLCal.prototype._0ey=null;SLCal.prototype._0cn=false;SLCal.prototype._0cB=false;SLCal.prototype._0_0u="\u00C2m l\u1ECBch Vi\u1EC7t Nam - Version 0.5"+"\n\u00A9 2004 H\u1ED3 Ng\u1ECDc \u0110\u1EE9c [http://come.to/duc]";SLCal.prototype._0z=new Array("110100101100","001101001011","110011010010","101100110100","001011001101","010010110011");SLCal.prototype._0A=document.all?true:false;SLCal.prototype._0I=new Array(0x62a4b0,0x4caa50,0x37b457,0x5c6b40,0x46ada0,0x305b64,0x569370,0x424970,0x2cc971,0x5064b0,0x3a6aa8,0x5eda50,0x4a5aa0,0x32aec5,0x58a6e0,0x4492f0,0x3052e2,0x52c960,0x3dd49a,0x62d4a0,0x4cd550,0x365b57,0x5c56a0,0x46a6d0,0x3295d4,0x5692d0,0x40a95c,0x2ad4b0,0x50b2a0,0x38b5a8,0x5ead50,0x4a4da0,0x34aba4,0x58a570,0x4452b0,0x2eb273,0x546930,0x3c6abb,0x626aa0,0x4cab50,0x394b57,0x5c4b60,0x46a570,0x3252e4,0x56d160,0x3ee93c,0x64d520,0x4edaa0,0x3b5b29,0x5e56d0,0x4a4ae0,0x34a5d5,0x5aa2d0,0x42d150,0x2cea52,0x52b520,0x3cd6ab,0x60ada0,0x4c55d0,0x384bb6,0x5e45b0,0x46a2b0,0x30d2b4,0x56aa50,0x41b52c,0x646b20,0x4ead60,0x3a55e9,0x609370,0x4a4570,0x34a575,0x5a52b0,0x446a50,0x2d5a52,0x525aa0,0x3dab4b,0x62a6e0,0x4c92e0,0x36c6e6,0x5ca560,0x46d4a0,0x2eeaa5,0x54d550,0x4056a0,0x2ad5a1,0x4ea5d0,0x3b52d9,0x6052b0,0x4aa950,0x32d555,0x58b2a0,0x42b550,0x2e6d52,0x524da0,0x3da5cb,0x62a570,0x4e51b0,0x36a977,0x5c6530,0x466a90);SLCal.prototype._0J=new Array(0x30baa3,0x56ab50,0x422ba0,0x2cab61,0x52a370,0x3c51e8,0x60d160,0x4ae4b0,0x376926,0x58daa0,0x445b50,0x3116d2,0x562ae0,0x3ea2e0,0x28e2d2,0x4ec950,0x38d556,0x5cb520,0x46b690,0x325da4,0x5855d0,0x4225d0,0x2ca5b3,0x52a2b0,0x3da8b7,0x60a950,0x4ab4a0,0x35b2a5,0x5aad50,0x4455b0,0x302b74,0x562570,0x4052f9,0x6452b0,0x4e6950,0x386d56,0x5e5aa0,0x46ab50,0x3256d4,0x584ae0,0x42a570,0x2d4553,0x50d2a0,0x3be8a7,0x60d550,0x4a5aa0,0x34ada5,0x5a95d0,0x464ae0,0x2eaab4,0x54a4d0,0x3ed2b8,0x64b290,0x4cb550,0x385757,0x5e2da0,0x4895d0,0x324d75,0x5849b0,0x42a4b0,0x2da4b3,0x506a90,0x3aad98,0x606b50,0x4c2b60,0x359365,0x5a9370,0x464970,0x306964,0x52e4a0,0x3cea6a,0x62da90,0x4e5ad0,0x392ad6,0x5e2ae0,0x4892e0,0x32cad5,0x56c950,0x40d4a0,0x2bd4a3,0x50b690,0x3a57a7,0x6055b0,0x4c25d0,0x3695b5,0x5a92b0,0x44a950,0x2ed954,0x54b4a0,0x3cb550,0x286b52,0x4e55b0,0x3a2776,0x5e2570,0x4852b0,0x32aaa5,0x56e950,0x406aa0,0x2abaa3,0x50ab50);SLCal.prototype._0K=new Array(0x3c4bd8,0x624ae0,0x4ca570,0x3854d5,0x5cd260,0x44d950,0x315554,0x5656a0,0x409ad0,0x2a55d2,0x504ae0,0x3aa5b6,0x60a4d0,0x48d250,0x33d255,0x58b540,0x42d6a0,0x2cada2,0x5295b0,0x3f4977,0x644970,0x4ca4b0,0x36b4b5,0x5c6a50,0x466d40,0x2fab54,0x562b60,0x409570,0x2c52f2,0x504970,0x3a6566,0x5ed4a0,0x48ea50,0x336a95,0x585ad0,0x442b60,0x2f86e3,0x5292e0,0x3dc8d7,0x62c950,0x4cd4a0,0x35d8a6,0x5ab550,0x4656a0,0x31a5b4,0x5625d0,0x4092d0,0x2ad2b2,0x50a950,0x38b557,0x5e6ca0,0x48b550,0x355355,0x584da0,0x42a5b0,0x2f4573,0x5452b0,0x3ca9a8,0x60e950,0x4c6aa0,0x36aea6,0x5aab50,0x464b60,0x30aae4,0x56a570,0x405260,0x28f263,0x4ed940,0x38db47,0x5cd6a0,0x4896d0,0x344dd5,0x5a4ad0,0x42a4d0,0x2cd4b4,0x52b250,0x3cd558,0x60b540,0x4ab5a0,0x3755a6,0x5c95b0,0x4649b0,0x30a974,0x56a4b0,0x40aa50,0x29aa52,0x4e6d20,0x39ad47,0x5eab60,0x489370,0x344af5,0x5a4970,0x4464b0,0x2c74a3,0x50ea50,0x3d6a58,0x6256a0,0x4aaad0,0x3696d5,0x5c92e0);SLCal.prototype._0L=new Array(0x46c960,0x2ed954,0x54d4a0,0x3eda50,0x2a7552,0x4e56a0,0x38a7a7,0x5ea5d0,0x4a92b0,0x32aab5,0x58a950,0x42b4a0,0x2cbaa4,0x50ad50,0x3c55d9,0x624ba0,0x4ca5b0,0x375176,0x5c5270,0x466930,0x307934,0x546aa0,0x3ead50,0x2a5b52,0x504b60,0x38a6e6,0x5ea4e0,0x48d260,0x32ea65,0x56d520,0x40daa0,0x2d56a3,0x5256d0,0x3c4afb,0x6249d0,0x4ca4d0,0x37d0b6,0x5ab250,0x44b520,0x2edd25,0x54b5a0,0x3e55d0,0x2a55b2,0x5049b0,0x3aa577,0x5ea4b0,0x48aa50,0x33b255,0x586d20,0x40ad60,0x2d4b63,0x525370,0x3e49e8,0x60c970,0x4c54b0,0x3768a6,0x5ada50,0x445aa0,0x2fa6a4,0x54aad0,0x4052e0,0x28d2e3,0x4ec950,0x38d557,0x5ed4a0,0x46d950,0x325d55,0x5856a0,0x42a6d0,0x2c55d4,0x5252b0,0x3ca9b8,0x62a930,0x4ab490,0x34b6a6,0x5aad50,0x4655a0,0x2eab64,0x54a570,0x4052b0,0x2ab173,0x4e6930,0x386b37,0x5e6aa0,0x48ad50,0x332ad5,0x582b60,0x42a570,0x2e52e4,0x50d160,0x3ae958,0x60d520,0x4ada90,0x355aa6,0x5a56d0,0x462ae0,0x30a9d4,0x54a2d0,0x3ed150,0x28e952);SLCal.prototype._0M=new Array(0x4eb520,0x38d727,0x5eada0,0x4a55b0,0x362db5,0x5a45b0,0x44a2b0,0x2eb2b4,0x54a950,0x3cb559,0x626b20,0x4cad50,0x385766,0x5c5370,0x484570,0x326574,0x5852b0,0x406950,0x2a7953,0x505aa0,0x3baaa7,0x5ea6d0,0x4a4ae0,0x35a2e5,0x5aa550,0x42d2a0,0x2de2a4,0x52d550,0x3e5abb,0x6256a0,0x4c96d0,0x3949b6,0x5e4ab0,0x46a8d0,0x30d4b5,0x56b290,0x40b550,0x2a6d52,0x504da0,0x3b9567,0x609570,0x4a49b0,0x34a975,0x5a64b0,0x446a90,0x2cba94,0x526b50,0x3e2b60,0x28ab61,0x4c9570,0x384ae6,0x5cd160,0x46e4a0,0x2eed25,0x54da90,0x405b50,0x2c36d3,0x502ae0,0x3a93d7,0x6092d0,0x4ac950,0x32d556,0x58b4a0,0x42b690,0x2e5d94,0x5255b0,0x3e25fa,0x6425b0,0x4e92b0,0x36aab6,0x5c6950,0x4674a0,0x31b2a5,0x54ad50,0x4055a0,0x2aab73,0x522570,0x3a5377,0x6052b0,0x4a6950,0x346d56,0x585aa0,0x42ab50,0x2e56d4,0x544ae0,0x3ca570,0x2864d2,0x4cd260,0x36eaa6,0x5ad550,0x465aa0,0x30ada5,0x5695d0,0x404ad0,0x2aa9b3,0x50a4d0,0x3ad2b7,0x5eb250,0x48b540,0x33d556);SLCal.prototype._0C=function(dd,_0dn,_0fu,_0cR,_0cD){return{_0aQ:dd,_0dr:_0dn,_0fp:_0fu,_0cR:_0cR,_0cD:_0cD}};SLCal.prototype._0cG=function(dd,_0dn,_0fu){var a=Math.floor((14-_0dn)/12);var y=_0fu+4800-a;var m=_0dn+12*a-3;var _0cD=dd+Math.floor((153*m+2)/5)+365*y+Math.floor(y/4)-Math.floor(y/100)+Math.floor(y/400)-32045;return _0cD;};SLCal.prototype._0cH=function(_0cD){var Z,A,_0U,B,C,D,E,dd,_0dn,_0fw,F;Z=_0cD;if(Z<2299161){A=Z;}else{_0U=Math.floor((Z-1867216.25)/36524.25);A=Z+1+_0U-Math.floor(_0U/4);}B=A+1524;C=Math.floor((B-122.1)/365.25);D=Math.floor(365.25*C);E=Math.floor((B-D)/30.6001);dd=Math.floor(B-D-Math.floor(30.6001*E));if(E<14){_0dn=E-1;}else{_0dn=E-13;}if(_0dn<3){_0fw=C-4715;}else{_0fw=C-4716;}return new Array(dd,_0dn,_0fw);};SLCal.prototype._0aV=function(_0fu,k){var _0dv,_0eo,_0dM,_0cS,_0cT,_0eQ,_0aH,j,_0dn;var _0cZ=new Array();_0dv=new Array(29,30);_0eo=new Array(12);_0dM=k>>17;_0cS=k&0xf;_0cT=_0dv[k>>16&0x1];_0eQ=this._0cG(1,1,_0fu);_0aH=_0eQ+_0dM;j=k>>4;for(i=0;i<12;i++){_0eo[12-i-1]=_0dv[j&0x1];j>>=1;}if(_0cS==0){for(_0dn=1;_0dn<=12;_0dn++){_0cZ.push(this._0C(1,_0dn,_0fu,0,_0aH));_0aH+=_0eo[_0dn-1];}}else{for(_0dn=1;_0dn<=_0cS;_0dn++){_0cZ.push(this._0C(1,_0dn,_0fu,0,_0aH));_0aH+=_0eo[_0dn-1];}_0cZ.push(this._0C(1,_0cS,_0fu,1,_0aH));_0aH+=_0cT;for(_0dn=_0cS+1;_0dn<=12;_0dn++){_0cZ.push(this._0C(1,_0dn,_0fu,0,_0aH));_0aH+=_0eo[_0dn-1];}}return _0cZ;};SLCal.prototype._0bW=function(_0fw){var _0fs;if(_0fw<1800){_0fs=this._0I[_0fw-1700];}else if(_0fw<1900){_0fs=this._0J[_0fw-1800];}else if(_0fw<2000){_0fs=this._0K[_0fw-1900];}else if(_0fw<2100){_0fs=this._0L[_0fw-2000];}else{_0fs=this._0M[_0fw-2100];}return this._0aV(_0fw,_0fs);};SLCal.prototype._0bB=function(_0cD,_0cZ){if(_0cD>this._0B||_0cD_0cD){return this._0C(0,0,0,0,_0cD);}var i=_0cZ.length-1;while(_0cD<_0cZ[i]._0cD){i--;}var _0dL=_0cD-_0cZ[i]._0cD;_0eq=this._0C(_0cZ[i]._0aQ+_0dL,_0cZ[i]._0dr,_0cZ[i]._0fp,_0cZ[i]._0cR,_0cD);return _0eq;};SLCal.prototype._0bL=function(dd,_0dn,_0fw){var _0cZ,_0cD;_0cZ=this._0bW(_0fw);_0cD=this._0cG(dd,_0dn,_0fw);if(_0cD<_0cZ[0]._0cD){_0cZ=this._0bW(_0fw-1);}return this._0bB(_0cD,_0cZ);};SLCal.prototype._0dX=function(q){var _0eq=new Array();if(q.length<2)return _0eq;var s=q.substring(1,q.length);var _0W=s.split("&");var i,j;for(i=0;i<_0W.length;i++){var a=_0W[i].split("=");for(j=0;j0){for(_0ck=0;_0ck<_0W.length;_0ck++){if(_0W[_0ck]=="mm"){this._0aK=parseInt(_0W[_0ck+1]);}else if(_0W[_0ck]=="yy"){this._0aL=parseInt(_0W[_0ck+1]);}}this._0aI=this._0bL(this._0F.getDate(),this._0aK,this._0aL);}};SLCal.prototype.getMonth=function(_0dn,_0fu){var _0da,_0db,_0eY,_0cE,_0cF,_0do,_0fv,result,i;if(_0dn<12){_0do=_0dn+1;_0fv=_0fu;}else{_0do=1;_0fv=_0fu+1;}_0cE=this._0cG(1,_0dn,_0fu);_0cF=this._0cG(1,_0do,_0fv);_0da=this._0bW(_0fu);_0eY=_0da[0]._0cD;result=new Array();if(_0eY<=_0cE){for(i=_0cE;i<_0cF;i++){result.push(this._0bB(i,_0da));}}else if(_0cE<_0eY&&_0cF<_0eY){_0da=this._0bW(_0fu-1);for(i=_0cE;i<_0cF;i++){result.push(this._0bB(i,_0da));}}else if(_0cE<_0eY&&_0eY<=_0cF){_0db=this._0bW(_0fu-1);for(i=_0cE;i<_0eY;i++){result.push(this._0bB(i,_0db));}for(i=_0eY;i<_0cF;i++){result.push(this._0bB(i,_0da));}}return result;};SLCal.prototype._0bI=function(_0cY){if(_0cY._0aQ==0){return "";}var cc=this._0bG(_0cY);var s=this._DAY_+' '+cc[0]+', '+this._MONTH_+' '+cc[1]+', '+this._YEAR_+' '+cc[2];return s;};SLCal.prototype._0bV=function(_0fp){return this._CAN_[(_0fp+6)%10]+" "+this._CHI_[(_0fp+8)%12];};SLCal.prototype._0bG=function(_0cW){var _0aT,_0dw,_0ft;_0aT=this._CAN_[(_0cW._0cD+9)%10]+" "+this._CHI_[(_0cW._0cD+1)%12];_0dw=this._CAN_[(_0cW._0fp*12+_0cW._0dr+3)%10]+" "+this._CHI_[(_0cW._0dr+1)%12];if(_0cW._0cR==1){_0dw+=' ('+this._LEAP_+')';}_0ft=this._0bV(_0cW._0fp);return new Array(_0aT,_0dw,_0ft);};SLCal.prototype._0bJ=function(_0cW,_0eO,_0eP,_0eR){var s;var _0aU=this._WEEKDAY_[(_0cW._0cD+1)%7];s=_0aU+" "+_0eO+"/"+_0eP+"/"+_0eR;s+=" (";s=s+this._DAY_+' '+_0cW._0aQ+' '+this._MONTH_+' '+_0cW._0dr;if(_0cW._0cR==1){s=s+' '+this._LEAP_;}return s+' '+this._LUNAR_;};SLCal.prototype._0bU=function(){var s=this._0bJ(this._0aI,this._0F.getDate(),this._0F.getMonth()+1,this._0F.getFullYear());s+=' '+this._YEAR_+' '+this._0bV(this._0aI._0fp);return s;};SLCal.prototype._0bH=function(){this._0F=new Date();var _0H=this._0F.getHours();var _0E=this._0F.getMinutes();var _0G=this._0F.getSeconds();var _0et=((_0H<10)?"0"+_0H:_0H);var _0eu=((_0E<10)?"0"+_0E:_0E);return _0et+":"+_0eu;};SLCal.prototype._0bK=function(_0cD){var _0av=(_0cD+1)%12;var _0bX=this._0z[_0av%6];var _0eq="";var _0aE=0;for(var i=0;i<12;i++){if(_0bX.charAt(i)=='1'){_0eq+=this._CHI_[i];if(_0aE++<5)_0eq+=', ';}}return _0eq;};SLCal.prototype._0ei=function(){var i,j,k,_0eL,_0cW,_0aq,_0eM,_0cX;this._0aJ=this.getMonth(this._0aK,this._0aL);if(this._0aJ.length==0)return;var _0cQ=this._0aJ[0];var emptyCells=(_0cQ._0cD+this._FIRSTDAY_)%7;var _0D=this._0bV(_0cQ._0fp);var _0dp=[1,-1,4,2,0,-2,-4];var _0ep='';_0ep+='';var j=this._FIRSTDAY_+_0dp[this._FIRSTDAY_];if(this._SMALLCALENDAR_){for(var i=0;i<=6;i++){_0ep+=('');}}else{for(var i=0;i<=6;i++){_0ep+=('');}}_0ep+=('');for(i=0;i<6;i++){if(7*i>=emptyCells+this._0aJ.length)break;_0ep+=('');for(j=0;j<7;j++){k=7*i+j;if(k=emptyCells+this._0aJ.length){_0ep+=this._0ee();}else{_0eL=k-emptyCells+1;_0cQ=this._0aJ[k-emptyCells];_0ep+=this._0ed(_0cQ,_0eL,this._0aK,this._0aL);}}_0ep+='';}_0ep+='
'+this._WEEKDAYSHORT_[(i+j)%7]+''+this._WEEKDAY_[(i+j)%7]+'
';return _0ep;};SLCal.prototype._0dz=function(_0dc){var _0fu=this._0aL;var _0dn=this._0aK;if(_0dn+_0dc>12){_0fu+=Math.floor((_0dn+_0dc)/12);_0dn=(_0dn+_0dc)%12;if(_0dn==0){_0dn=12;_0fu--;}}else if(_0dn+_0dc<1){_0fu-=Math.abs(Math.ceil((_0dn+_0dc)/12))+1;_0dn=12+(_0dn+_0dc)%12;}else{_0dn+=_0dc;}if(_0fu>2199||_0fu<1700){SLCal._0bh.setContent(this._OUTOFSCOPE_);SLCal._0bh.setVisible(true);}else{this._0aK=_0dn;this._0aL=_0fu;var t=document.getElementById('SLCalLoginLogout'+this._0dJ).innerHTML;this._0fb();document.getElementById('SLCalLoginLogout'+this._0dJ).innerHTML=t;}};SLCal.prototype._0dA=function(){this._0aK=this._0F.getMonth()+1;this._0aL=this._0F.getFullYear();var t=document.getElementById('SLCalLoginLogout'+this._0dJ).innerHTML;this._0fb();document.getElementById('SLCalLoginLogout'+this._0dJ).innerHTML=t;};SLCal.prototype._0bP=function(){return '';};SLCal.prototype._0bM=function(){return '';};SLCal.prototype._0bQ=function(){return '«';};SLCal.prototype._0bN=function(){return '»';};SLCal.prototype._0bT=function(){return ''+this._TODAY_+'';};SLCal.prototype._0eg=function(){var _0dw=this._CALTITLE_.replace(/_MM_/g,this._MONTHNAME_[this._0aK-1]);_0dw=_0dw.replace(/_M_/g,this._0aK);_0dw=_0dw.replace(/_Y_/g,this._0aL);return ''+_0dw+'';};SLCal.prototype._0eh=function(){var _0ep="";_0ep+=this._0bQ()+' '+this._0bP();_0ep+=' '+this._0bT();_0ep+=' '+this._0bM()+' '+this._0bN()+' ®';return _0ep;};SLCal.prototype._0ee=function(){return '
 
 
\n';};SLCal.prototype._0ed=function(_0cY,_0eN,_0eP,_0eR){var _0aq='daycell';var _0eM='t2t6';var _0cX='am';var _0bk=(_0cY._0cD+1)%7;if(_0bk==0){_0eM='cn';}else if(_0bk==6){_0eM='t7';}if(_0eN==this._0F.getDate()&&_0eP==this._0F.getMonth()+1&&_0eR==this._0F.getFullYear()){_0aq='today';}if(_0cY._0aQ==1&&_0cY._0dr==1){_0aq='tet';}if(_0cY._0cR==1){_0cX='am2';}var _0cW=_0cY._0aQ;if(_0eN==1||_0cW==1){_0cW=_0cY._0aQ+'/'+_0cY._0dr;}var _0V='event,'+_0cY._0aQ+','+_0cY._0dr+','+_0cY._0fp+','+_0cY._0cR;_0V+=','+_0cY._0cD+','+_0eN+','+_0eP+','+_0eR+', \''+_0aq+'\'';var _0ep='';_0ep+='
'+_0eN+'
';if(!this._SMALLCALENDAR_){_0ep+='
'+_0cW+'
';_0ep+='
 
';}else{_0ep+='';}return _0ep;};SLCal.prototype._0ef=function(){return '';};SLCal.prototype.showMonthSelect=function(){var _0dC=this._CALTITLE_.replace(/_MM_|_M_/g,'');_0dC=_0dC.replace(/_Y_/g,'');document.getElementById(this._0an+'_monthheader').innerHTML=_0dC;};SLCal.prototype._0bY=function(){m=parseInt(document.getElementById(this._0an+'_newmonth').value);y=parseInt(document.getElementById(this._0an+'_newyear').value);if(m<1||m>12){SLCal._0bh.setContent(this._WRONGMONTH_);SLCal._0bh.setVisible(true);return;}if(y<1700||y>2199){SLCal._0bh.setContent(this._WRONGYEAR_);SLCal._0bh.setVisible(true);return;}this._0aK=m;this._0aL=y;var t=document.getElementById('SLCalLoginLogout'+this._0dJ).innerHTML;this._0fb();document.getElementById('SLCalLoginLogout'+this._0dJ).innerHTML=t;};SLCal.prototype._0fb=function(){try{this._0cg(this._0dJ);document.getElementById(this._0an+'_monthheader').innerHTML=this._0eg();document.getElementById(this._0an+'_monthnavi').innerHTML=this._0eh();document.getElementById(this._0an+'_monthcontent').innerHTML=this._0ei();document.getElementById(this._0an+'_monthfooter').innerHTML=this._0ef();this._0cy=true;this.showEvents();SLCal._0au();}catch(e){this._0cy=false;}};SLCal.prototype.showCalendar=function(){try{this._0cg(this._0dJ);var _0eT='
'+this._0eg()+'
';_0eT+='';if(this._DECORATION_!='')_0eT+='
'+this._DECORATION_+'
';_0eT+='
'+this._0ei()+'
';_0eT+='
'+this._0ef()+'
';document.getElementById(this._0an).innerHTML=_0eT;this._0cy=true;this.showEvents();SLCal._0au();}catch(e){this._0cy=false;}};SLCal.prototype._0cg=function(){this._0bc.setVisible(false);};SLCal.prototype._0T=function(e,dd,_0dn,_0fu,_0cR,_0cD,_0ev,_0eK,_0eV,_0ar){var _0ea,_0ec;if(this._0ci){this._0ci=false;return;}scrollTop=(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop);scrollLeft=(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft);if(this._0A){_0ea=event.clientX+scrollLeft;_0eb=event.clientY+scrollTop;}else{_0ea=e.pageX;_0eb=e.pageY;}var _0cW=this._0C(dd,_0dn,_0fu,_0cR,_0cD);var t=this._WEEKDAY_[(_0cD+1)%7]+' '+_0ev+'/'+_0eK+'/'+_0eV+' ('+dd+'/'+_0dn+(_0cR==1?this._LEAPSHORT_:'')+' '+this._LUNARSHORT_+')';var cc=this._0bG(_0cW);var s='';s+='
'+this._DAY_+'
'+cc[0]+'
    '+this._MONTH_+'
'+cc[1]+'
    '+this._YEAR_+'
'+cc[2]+'
';s+='
'+this._GOODHOURS_+': '+this._0bK(_0cD);var _0bw=document.getElementById(this._0an+'_day'+_0eK+'_'+_0ev).innerHTML;if(_0bw!='')s+='
'+this._EVENTSOFTHEDAY_+'
'+_0bw;this._0bc.setTitle(t);this._0bc.setContent(s);if(this._0cM!=''&&this._0cL!=''){if(document.getElementById(this._0cM)&&document.getElementById(this._0cM).className=="activecell")document.getElementById(this._0cM).className=this._0cL;}this._0cM=this._0an+'_cell'+_0eK+'_'+_0ev;this._0cL=_0ar;document.getElementById(this._0cM).className="activecell";this._0ey={dd:dd,_0dn:_0dn,_0fu:_0fu,_0cR:_0cR,_0ev:_0ev,_0eK:_0eK,_0eV:_0eV};SLCal.prototype._0ex=this._0dJ;this._0bc.setPosition(scrollTop,scrollLeft);this._0bf.setVisible(false);this._0bc.setVisible(true);this._0bc.setPosition(_0eb+16,_0ea+12);};SLCal._0eA=function(){SLCal._0ao[SLCal._0aG]._0ci=false;};SLCal._0bA=function(_0bq,dd,_0dn,_0fu){var _0aM=false;var _0aN=false;var _0aO=false;var _0aP='inline';var s=''+dd+'/'+_0dn+'/'+_0fu+'';if(_0bq!=0&&_0bq!=6)s=SLCal.prototype._FROM_+' '+s;if(_0bq>5)s+=' '+SLCal.prototype._LUNARSHORT_;document.getElementById('SLCal_etype_value').value=_0bq;document.getElementById('SLCal_etype0_7').style.display=_0bq!=5?'inline':'none';document.getElementById('SLCal_etype5').style.display=_0bq==5?'inline':'none';document.getElementById('SLCal_day1').value=dd;document.getElementById('SLCal_month1').value=_0dn;document.getElementById('SLCal_year1').value=_0fu;document.getElementById('dmy1').innerHTML=s;if(_0bq==0||_0bq==6){_0aM=true;_0aN=true;_0aO=true;_0aP='none';}else if(_0bq==1||_0bq==2){}else if(_0bq==3){_0aM=true;}else if(_0bq==4||_0bq==7){_0aM=true;_0aN=true;}else if(_0bq==5){}document.getElementById('SLCal_day2').value=dd;document.getElementById('SLCal_month2').value=_0dn;document.getElementById('SLCal_year2').value=_0fu;document.getElementById('SLCal_day2').disabled=_0aM;document.getElementById('SLCal_month2').disabled=_0aN;document.getElementById('SLCal_year2').disabled=_0aO;document.getElementById('SLCal_date2').style.display=_0aP;document.getElementById('SLCal_AL').style.display=_0bq==7?'inline':'none';};SLCal.prototype._0N=function(){this._0cg();var _0cj='
';_0cj+='';_0cj+='';_0cj+=' ';_0cj+=' ';_0cj+='';_0cj+='';_0cj+=' ';_0cj+=' ';_0cj+=' ';_0cj+='';_0cj+='';_0cj+=' ';_0cj+=' ';_0cj+='';_0cj+='';_0cj+=' ';_0cj+=' ';_0cj+='';_0cj+='';_0cj+=' ';_0cj+=' ';_0cj+='';_0cj+='';this._0be.setContent(_0cj);this._0be.setVisible(true);};SLCal.prototype.showEventContent=function(_0cI,title,message,_0bm){SLCal.prototype._0ez=_0cI;this._0cg();this._0ci=true;var _0dK=_0bm==''?'':' ('+_0bm+')';if(SLCal._MAXTITLE_>0&&title.length>SLCal._MAXTITLE_){this._0bf.setTitle(title.substring(0,title.lastIndexOf(' ',SLCal._MAXTITLE_))+'...');}else{this._0bf.setTitle(title);}if(message=='')this._0bf.setContent(title+_0dK);else this._0bf.setContent(title+_0dK+'
'+message);this._0bf.setVisible(true);SLCal._0aG=this._0dJ;setTimeout("SLCal._0eA()",500);};SLCal.prototype.showEvents=function(){if(!this._EVENTS_||!this._0cy)return;var s='';var _0bv,_0bk,_0eS,_0cE,_0cF,html,title,message,_0bu;var _0bt=new Array();var _0dx=this._0aL*100+this._0aK;var _0eU=new Array(this._0aJ.length+1);for(i=0;i<=this._0aJ.length;i++){_0eU[i]='';}for(i=0;i'+title+'';}else{html='
'+title+'
';}switch(_0bv[2]){case 0:if(_0bv[4]==this._0aK&&_0bv[5]==this._0aL){_0eU[_0bv[3]]+=html;}break;case 1:_0cE=this._0cG(_0bv[3],_0bv[4],_0bv[5]);if(_0cEthis._0aJ[this._0aJ.length-1]._0cD)_0cF=this._0aJ[this._0aJ.length-1]._0cD;for(j=_0cE;j<=_0cF;j++){_0eU[j-this._0aJ[0]._0cD+1]+=html;}break;case 2:if(_0bv[5]*100+_0bv[4]<=_0dx&&_0bv[8]*100+_0bv[7]>=_0dx){_0cE=this._0cG(_0bv[3],_0bv[4],_0bv[5]);_0cF=this._0cG(_0bv[6],_0bv[7],_0bv[8]);_0bk=_0cE%7;_0eS=1;for(j=this._0aJ[0]._0cD;j<=this._0aJ[this._0aJ.length-1]._0cD;j+=_0eS){if(j%7==_0bk){_0eS=7;if(j>=_0cE&&j<=_0cF){_0eU[j-this._0aJ[0]._0cD+1]+=html;}}}}break;case 3:if(_0bv[5]*100+_0bv[4]<=_0dx&&_0bv[8]*100+_0bv[7]>=_0dx){_0eU[_0bv[3]]+=html;}break;case 4:if(_0bv[4]==this._0aK&&_0bv[5]<=this._0aL&&_0bv[8]>=this._0aL){_0eU[_0bv[3]]+=html;}break;case 5:if(_0bv[5]==this._0aK){for(j=0;j<7;j++){if((this._0aJ[j]._0cD+1)%7==_0bv[3]){_0eU[j+1+(_0bv[4]-1)*7]+=html;break;}}}break;case 6:if(_0bv[4]==this._0aJ[0]._0dr||_0bv[4]==this._0aJ[this._0aJ.length-1]._0dr){for(j=0;j=this._0aJ[j]._0fp){_0eU[j+1]+=html;j+=29;}}break;}}for(i=1;i<=this._0aJ.length;i++){if(this._SMALLCALENDAR_)document.getElementById(this._0an+'_dayvalue'+this._0aK+'_'+i).style.textDecoration=_0eU[i]==''?'none':'underline';document.getElementById(this._0an+'_day'+this._0aK+'_'+i).innerHTML=_0eU[i];}};function CreateSLCal(name,_0bC,_0cC,_0as){var c=new SLCal(name,_0bC,_0cC,_0as,SLCal._0ao.length);SLCal._0ao.push(c);return c;};SLCal._0S=ajaxCS.createInstance();SLCal._0w=function(_0fd,_0dW,_0bE){SLCal._0S.load('post',_0fd,_0dW,_0bE);};function SLCalLoaddata(){SLCal._0S.load('get',SLCal._EVENTSURL_,null,function(_0fk){var i,j,_0dD;var tags=['key','private','etype','day1','month1','year1','day2','month2','year2','title','message'];var _0cB=_0fk.documentElement.getElementsByTagName('config')[0].getAttribute("islogged");var _0fl=_0fk.documentElement.getElementsByTagName('event');SLCal.prototype._EVENTS_=new Array(_0fl.length);for(i=0;i<_0fl.length;i++){var _0bs=new Array(tags.length);for(j=0;j');document.write('
');document.write('
');document.write('
');document.write('');document.write('');document.write('');document.write('');document.write('');document.write('1');document.write('');document.write('');document.write('
');document.write('
');document.write('
');document.write('');document.write('');document.write('');document.write('');document.write('
');document.write('');document.write('
');document.write('
Make a shout
');document.write('
Enter your name in the first text box and your message in the second one then click .: Send :. button.
');document.write('
Insert emoticons
');document.write('
Place the cursor in the second text box where you want to insert an emoticon then click :) button and click on appropriate icon.
');document.write('
Search old messages
');document.write('
Click S button and enter your search query. You can search by date, time, shouter, message or even ip address.
');document.write('
Page navigation
');document.write('
Use or buttons to move to previous or next page respectively. Or click P button to jump to any page.
');document.write('
');document.write('
CShout
');};CShout.prototype._0eH=function(id){if(document.getElementById(id).style.display=='block'){document.getElementById(id).style.display='none';}else{document.getElementById('sb_smileylist').style.display='none';document.getElementById('sb_searchquery').style.display='none';document.getElementById('sb_loginform').style.display='none';document.getElementById('sb_pagenav').style.display='none';document.getElementById('sb_help').style.display='none';document.getElementById(id).style.display='block';}};CShout.prototype._0eG=function(_0ct){var _0cs='none',_0cw='none';if(_0ct==1)_0cw='inline';else _0cs='inline';document.getElementById("u").style.display=_0cs;document.getElementById("p").style.display=_0cs;document.getElementById("login").style.display=_0cs;document.getElementById("logout").style.display=_0cw;};CShout.prototype.show=function(){if(this._0cp>0)return;if(this._0R.httpObj){if(this._0cP<0||this._0cP>1)this._0cP=0;var _0aF=['',' style="width:'+this.width+'px;height:'+this.height+'px;overflow:auto;overflow-x:hidden;"',' style="width:'+this.width+'px;overflow:auto;overflow-x:hidden;"'];document.write('
');document.write('
');if(this._0co=='top')this._0eF();document.write('
');if(this._0co=='bottom')this._0eF();document.write('
');document.write('
');this._0bS();this._0bO(1);this._0cp++;}else{var html=document.getElementById('nojs').innerHTML;html=html.replace(/</g,'<').replace(/>/g,'>');document.write(html);document.getElementById('nojsmessage').style.display='none';}};CShout.prototype._0fc=function(){var _0eT='';for(var i=1;i'+i+' ';else _0eT+=''+i+' ';}document.getElementById('sb_pagenav').innerHTML=_0eT;};CShout.prototype._0cv=function(_0fe){var _0dF="0123456789";var _0er=true;if(_0fe==""){return false;}for(i=0;i<_0fe.length&&_0er==true;i++){if(_0dF.indexOf(_0fe.charAt(i))<0){_0er=false;}}return _0er;};CShout.prototype._0eI=function(status){var _0bb=false;if(status){document.getElementById('shoutit').value=status;document.getElementById('shoutit').style.color=this._0ah[1];_0bb=true;}else{document.getElementById('shoutit').value='.: Send :.';document.getElementById('shoutit').style.color=this._0ah[0];}ids=['shoutit','sb_show_smileys','sb_show_search','sb_show_login','sb_show_pages','sb_prev_page','sb_next_page'];for(i=0;ithis.pages){this.page=this.pages;}this._0eI('Loading...');this._0R.load('get',this._0fd+'?page='+this.page,null,this._0bZ);};CShout.prototype._0bZ=function(_0fk){try{var _0bz=_0fk.documentElement.getElementsByTagName('fe');if(_0bz.length==0){var _0bo=_0fk.documentElement.getElementsByTagName('e');var _0eE=_0fk.documentElement.getElementsByTagName('s');var _0cl=_0fk.documentElement.getElementsByTagName('info')[0];var _0cA=(_0cl.getAttribute('islogged')=='1')?true:false;var _0ai='';var _0es=0;var html='';for(i=0;i<_0bo.length;i++){html+='
'+_0bo[i].childNodes[0].nodeValue+'
';}document.getElementById('sb_show_login').style.color=cshout._0P[parseInt(_0cl.getAttribute('islogged'))];cshout._0eG(parseInt(_0cl.getAttribute('islogged')));cshout.pages=parseInt(_0cl.getAttribute('pages'));document.getElementById('sb_pageno').innerHTML=cshout.page;document.getElementById('shout').value='Message';for(i=0;i<_0eE.length;i++){k=_0eE[i].getAttribute('k');n=_0eE[i].getAttribute('n');d=_0eE[i].getAttribute('d');t=_0eE[i].getAttribute('t');_0cq=_0eE[i].getAttribute('ip');s=_0eE[i].childNodes[0].nodeValue;if(_0cA)_0ai='xip';if(n.length>cshout._0eD)html+='
'+_0ai+n.substring(0,cshout._0eD-3)+'…';else html+='';html+='
'+s+'
';_0es=(_0es==0)?1:0;}document.getElementById('sb_shouts').innerHTML=html;cshout._0fc();}else{alert(_0bz[0].childNodes[0].nodeValue);}cshout._0eI();}catch(e){alert('Error occurred while processing data.\nError message:\n'+e.message+'\n'+_0fk);}};CShout.prototype._0bS=function(){document.getElementById('sb_smileylist').innerHTML='
Loading smileys...
';this._0R.load('get',this._0fd+'?act=smileys',null,function(_0fk){try{var _0fm=_0fk.documentElement.getElementsByTagName('sm');var html='';cshout._0eJ=new Array();for(i=0;i<_0fm.length;i++){src=_0fm[i].getAttribute('s');text=_0fm[i].getAttribute('t').replace(/\'/,'\\u0027').replace(/\"/,'\\u0022');if(src){_0eT='
';}else{_0eT=''+text+' ';}html+=_0eT;cshout._0eJ.push(new Array(text,_0eT));}document.getElementById('sb_smileylist').innerHTML='
'+this._EVENTSCOPE_+'   
'+this._EVENTTYPE_+'
';_0cj+='
';_0cj+='
';_0cj+='
';_0cj+='

';_0cj+=' ';_0cj+='
'+this._PERIOD_+'
'+this._0ey._0ev+'/'+this._0ey._0eK+'/'+this._0ey._0eV+'';_0cj+='
';_0cj+='
'+this._EVENTTITLE_+'
'+this._EVENTMESSAGE_+'
'+html+'
';}catch(e){alert('Error occurred while getting smileys.\nError message:\n'+e.message+'\n'+_0fk);}});};CShout.prototype._0eC=function(){cshout._0eI('Shouting...');this._0R.load('get',this._0fd+'?act=shout&name='+document.getElementById('name').value.escape()+'&shout='+document.getElementById('shout').value.escape(),null,this._0bZ);};CShout.prototype._0ew=function(){this._0eI('Searching...');this._0R.load('get',this._0fd+'?act=search&q='+document.getElementById('q').value.escape(),null,this._0bZ);};CShout.prototype._0bi=function(){this._0eI('Logging in...');this._0R.load('post',this._0fd,'act=login&u='+_0l(document.getElementById('u').value)+'&p='+_0l(document.getElementById('p').value),function(_0fk){document.getElementById('p').value='pass';var _0bz=_0fk.documentElement.getElementsByTagName('fe');if(_0bz.length>0){if(_0bz[0].childNodes[0].nodeValue=='ok'){cshout._0bO(cshout.page);document.getElementById('sb_show_login').style.color=cshout._0P[0];cshout._0eH('sb_loginform');}else{alert(_0bz[0].childNodes[0].nodeValue);}}else{alert('Unexpected error.');}cshout._0eI();});};CShout.prototype._0bj=function(){this._0eI('Logging out...');this._0R.load('post',this._0fd,'act=logout',function(_0fk){var _0bz=_0fk.documentElement.getElementsByTagName('fe');if(_0bz.length>0){if(_0bz[0].childNodes[0].nodeValue=='ok'){cshout._0bO(cshout.page);document.getElementById('sb_show_login').style.color=cshout._0P[1];cshout._0eH('sb_loginform');}else{alert(_0bz[0].childNodes[0].nodeValue);}}else{alert('Unexpected error.');}cshout._0eI();});};CShout.prototype._0aZ=function(k){this._0eI('Deleting...');this._0R.load('get',this._0fd+'?act=del&k='+k,null,function(data){cshout._0bO(cshout.page);cshout._0eI();});};CShout.prototype._0at=function(_0cq){window.open('http://www.geobytes.com/IpLocator.htm?GetLocation&ipaddress='+_0cq);};CShout.prototype._0O=function(s){if(document.getElementById('shout').value=='Message')document.getElementById('shout').value=s;else document.getElementById('shout').value+=s;};cshout=new CShout();