//
Da Counter - Web Counter
// Class definition
function Tracker() {
this.url = 'http://www.dacounter.com/ce/?_id=';
}
Tracker.prototype.urlencode = function (str) {
str = escape(str);
str = str.replace(new RegExp(/\//g), '%2F');
str = str.replace(new RegExp(/\+/g), '%2B');
return str;
}
Tracker.prototype.addToUrl = function (key, value){
this.url = this.url + '&' + key + '=' + this.urlencode(value);
}
Tracker.prototype.trackView = function (id){
if (document.all||document.getElementById||document.layers){
this.url = this.url + id;
w=window;
n=navigator;
s=screen;
d=document;
dj=n.javaEnabled();
dw=s.width;
dh=s.height;
dd=s.colorDepth;
dl=w.location;
dr=d.referrer;
dt=d.title;
now=new Date();
var tzo = (now.getTimezoneOffset())*(-1);
if ( (tzo/30)%2 == 1){
tzo -= 30;
tzh = tzo / 60;
tzm = '30';
}else{
tzh = tzo / 60;
tzm = '00';
}
if ( tzh < 10 && tzh > -10 ){
tzh='0'+tzh;
tzh=tzh.replace('0-','-0');
}
dz = tzh+':'+tzm;
// set fv
fv = '';
if (n.plugins && n.plugins.length) {
for (x = 0; x ';
document.write(code);
}
}
daTracker = new Tracker();