var __stat = false;
function __Update()
{
  __stat.Update(true);
}
function __Exit()
{
    __stat.Update(false);
}
function Statistic(id)
{
    if(!__stat){
        this.ID = 0;
        this.Timer;
        this.baseUrl="http://www.customer-supports.com/Processor.aspx?f=1&"
        this.Callback = function(args, data)
        {
        	args.ID = data;
        }
        this.Tracker=function(url, ref, callback, args)
        {
            var url = this.baseUrl+'UserID='+id+'&Url='+encodeURIComponent(url)+'&Ref='+encodeURIComponent(ref)+'&Rd='+Math.random();
            PowerGet(url, callback, args);
        }
        this.Update = function(flag)
        {
            if(parseInt(this.ID)>0){
               PowerGet(this.baseUrl+"id="+this.ID+'&Rd='+Math.random());
            } 
            if(!flag)
            {
                clearInterval(this.Timer);
            }
        }
        this.Tracker(document.location, document.referrer, this.Callback, this);
        this.Timer= setInterval('__Update();',60000);
        AddEventListener('onunload', __Exit);
    }
}