ot_d=document;ot_un="undefined";
if(typeof otgoal!==ot_un){ot_goal=escape(otgoal);if(ot_goal.indexOf('%u')!=-1)ot_goal=escape(ot_goal);ot_goal='&otgoal='+ot_goal;}else ot_goal='';
if(typeof otclv!==ot_un)ot_clv='&otclv='+otclv;else ot_clv='';
ot_b="http"+(ot_d.URL.indexOf('https:')==0?'s://':'://')+'www.z-webservices.com:8081';
if (typeof ot_ti===ot_un) {
ot_ti=ot_d.title;
}
ot_ti=escape(ot_ti);if (ot_ti.indexOf('%u')!=-1) ot_ti=escape(ot_ti);
ot_cd=(new Date("December 31, 2023")).toGMTString();ot_cld=new Date();ot_fv=false;ot_ac=false;
if(typeof(top.document)=="object") ot_r=top.document;else ot_r=ot_d;
if(ot_d.referrer.indexOf(ot_r.location.hostname)==-1)ot_r=ot_d;
if(ot_d.cookie.indexOf('machine-id') != -1){
ot_ac=true;
}else{
if(ot_d.cookie.indexOf('machine-id')==-1){f_sc("machine-id","38.107.179.232:1327741217",ot_cd,"/");}
if(ot_d.cookie.indexOf('machine-id') != -1) ot_ac=true;
}
ot_rc=f_rc("machine-id");ot_lc=escape((typeof ot_url===ot_un)?ot_d.location:ot_url);ot_t0=1327741217;

function f_log() {
 ot_im=new Image(1,1);
 ot_im.src=ot_b+'/webstats/statscollect.php?p=1&mid='+ot_rc
  +'&fv='+ot_fv+'&si=www.agw.pt&ti='+ot_ti
  +ot_goal+ot_clv
  +'&sh='+screen.height+'&sw='+screen.width
  +'&sc='+screen.colorDepth
  +'&lc='+ot_lc+'&ref='+escape(ot_r.referrer)
  +'&t0='+ot_t0+'&cld='+escape(ot_cld);

}

function f_sc(n,v,h,p,d,s){
 ot_fv=true;
 ot_d.cookie=n+'='+escape(v)+((h)?(';expires='+h):'')+((p)?';path='+p:'')+((d)?';domain='+d:'')+((s && (s==true))?'; secure':'');
}

function f_rc(n){
 if(ot_d.cookie==''){return false;}else{
  var fc,ot_lc;var tbc=ot_d.cookie;fc=tbc.indexOf(n);var NN2Hack=fc+n.length;
  if((fc != -1) && (tbc.charAt(NN2Hack)=='=')){
  fc += n.length+1;ot_lc=tbc.indexOf(';',fc);
   if(ot_lc==-1)ot_lc=tbc.length;return unescape(tbc.substring(fc,ot_lc));
  }else{return false;}
 }
}

function ot_f() {
 e=event.srcElement;
 ep=e.parentElement;
 if (ep==null) return;
 if (ep.tagName=="A" || ep.tagName=="AREA") e = ep; else {
  if (ep.parentElement) {
   epp=ep.parentElement;
   if (epp.tagName=="A" || epp.tagName=="AREA") e = epp;
  }
 }
 isA=(e.tagName=="A" || e.tagName=="AREA")?1:0;
 isL=(isA && e.href)?1:0;
 if (!isL||e.href.indexOf("ot_evt")!=-1) return;
 ot_i=e.href.indexOf(ot_d.domain);
 if ((ot_i<9&&ot_i!=-1) || e.href.indexOf("/")==1) return;
 ot_im=new Image(1,1);
 ot_im.src=ot_b+'/webstats/statscollect.php?p=3&mid='+ot_rc+'&si=www.agw.pt&ms='+escape(e.href)+'&lc='+ot_lc+'&ti='+ot_ti+'&t0='+ot_t0;
}

function _j(m){
var n=new Date();n=n.getTime()+m;
if(m>15){while(true){m=new Date();if(m.getTime()>n)return;}}
else{n+="";return n.substring(n.length-m,n.length);}
}

function ot_evt(m,c){
if(m===undefined)m="unknown";
//if(typeof m=="object"){m="unload";return;}
if(c==undefined)c=0;
m=escape(m+"|"+c+"|"+_j(5));if (m.indexOf('%u')!=-1) m=escape(m);
ot_im=new Image(1,1);
ot_im.src=ot_b+'/webstats/statscollect.php?p=2&mid='+ot_rc+'&si=www.agw.pt&ms='+m+'&lc='+ot_lc+'&ti='+ot_ti+'&t0='+ot_t0;
_j(250);
}

if (ot_d.getElementById && ot_d.createElement){
 if (window.attachEvent){
  window.attachEvent("onunload",ot_evt);
  ot_d.attachEvent("onclick",ot_f);
 }
}
f_log();

