//<!-- Statistics Flash Code v3.14 - All rights reserved -->
function ITC(bu){
this.BU=bu;
this.IT="&f="+escape(document.location);
document.cookie="itc=t";
this.DN=(typeof DOCUMENTNAME!=this.ud)?DOCUMENTNAME:'';
this.DG=(typeof DOCUMENTGROUP!=this.ud)?DOCUMENTGROUP:'';
this.ME=(typeof MEMBERID!=this.ud)?MEMBERID:'';
this.AC=(typeof ACTION!=this.ud)?ACTION:'';
this.AM=(typeof AMOUNT!=this.ud)?AMOUNT:0;
if(typeof FLASHURL!=this.ud)this.FU=FLASHURL;
if(this.ME!='')this.IT+="&m="+escape(MEMBERID);
if(this.DG!='')this.IT+="&c="+escape(DOCUMENTGROUP);
if(this.DN!='')this.IT+="&b="+escape(DOCUMENTNAME);
else if(document.title.length>0)this.IT+="&b="+escape(document.title);
this.BU+="&g="+escape(this.na?navigator.language:navigator.userLanguage);
this.BU+="&h="+escape((navigator.javaEnabled()?'Y':'N'));
this.BU+="&j="+escape(screen.width+'x'+screen.height);
this.BU+="&k="+escape((this.ie)?screen.colorDepth:screen.pixelDepth);
this.BU+="&l="+((document.cookie.indexOf("itc=")>=0)?"true":"false");
if(this.CAMPAIGN!='')this.IT+="&cp="+escape(this.CM);
if(this.CP!='')this.IT+="&cp="+escape(this.getCampaign(this.CP));
if(this.PR!='')this.IT+="&scp="+escape(this.PR);
if(this.PP!='')this.IT+="&scp="+escape(this.getCampaign(this.PP));
this.IT+="&d="+escape((new Date()).toGMTString());
};
ITC.prototype=new Object();
ITC.prototype.ud="undefined";
ITC.prototype.na=(navigator.appName=="Netscape");
ITC.prototype.ie=(navigator.appName.substring(0,9)=="Microsoft");
ITC.prototype.img=new Image();
ITC.prototype.olt=(window.onload)?true:false;
ITC.prototype.IT='';
ITC.prototype.AC='';
ITC.prototype.AM=0;
ITC.prototype.ME='';
ITC.prototype.DN='';
ITC.prototype.DG='';
ITC.prototype.CM='';
ITC.prototype.CP='';
ITC.prototype.PR='';
ITC.prototype.PP='';
ITC.prototype.FU='FLASH';
ITC.prototype._e=function(){
this.setReferrer(false);
return true;
};
ITC.prototype.enter=function(){
                      this.img.src=this.BU+this.IT;
                      //alert(this.img.src);
                      //setTimeout("__WS.img.src=__WS.BU+__WS.IT;",2);
                    };
ITC.prototype.setReferrer=function(b){
r="";
if((navigator.userAgent.indexOf('Mac')>=0)&&(navigator.userAgent.indexOf('MSIE 4')>=0))r=document.referrer;
else{
if(b){
window.e=window.onerror;
window.onerror=this._e;
r=(document.location==top.location)?document.referrer:top.document.referrer;
}else this.IT+="&nr=t";
window.onerror=window.e;
}if(r.length>0)this.IT+="&e="+escape(r);
};
ITC.prototype.getCampaign=function(a){
var x="campaign";
var z=location.search;
var i=z.indexOf("?"+x+"=");
var j=z.indexOf("&"+x+"=");
if((i==0)||(j>-1)){
var k=(i==0)?0:j;
var l=z.indexOf('&',k+1);
return z.substring(k+2+x.length,(l>-1)?l:z.length);
}return'';
};
ITC.prototype.gh=function(x){
var h=(x.host)?x.host:document.location.host;
var i=h.indexOf(":");
return(i>=0)?h.substring(0,i):h;
};
ITC.prototype.gpr=function(x){
var y=(x.protocol)?x.protocol:document.location.protocol;
var i=y.indexOf(":");
return(i>=0)?y:y+":";
};
ITC.prototype.gp=function(x){
var y=(x.pathname)?x.pathname:document.location.pathname;
var i=y.indexOf("/");
return(i==0)?y:"/"+y;
};
ITC.prototype.exitlink=function(url){
this.IT='';
this.IT+=(this.DG!='')?"&c="+escape(this.DG):"";
this.IT+=(this.DN!='')?"&b="+escape(this.DN):"";
this.IT+=(this.FU!='')?"&f="+escape(this.FU):"&f=FLASH";
this.IT+=(url!='')?"&el="+escape(url):"";
if(this.na)setTimeout("__WS.img.src=__WS.BU+__WS.IT;",1);
else this.img.src=this.BU+this.IT;
};
ITC.prototype.download=function(url){
var _url=url;
if(document.links.length>0){
var oh=document.links[0].href;
document.links[0].href=url;
_url=this.gpr(document.links[0])+'//'+this.gh(document.links[0])+this.gp(document.links[0]);
document.links[0].href=oh;
}this.IT='';
this.IT+=(this.DG!='')?"&c="+escape(this.DG):"";
this.IT+=(this.DN!='')?"&b="+escape(this.DN):"";
this.IT+=(this.FU!='')?"&f="+escape(this.FU):"&f=FLASH";
this.IT+=(_url!='')?"&fn="+escape(_url):"";
if(this.na)setTimeout("__WS.img.src=__WS.BU+__WS.IT;",1);
else this.img.src=this.BU+this.IT;
};

ITC.prototype.page=function(docName,docGroup,memberid,action,amount){
  //alert("enter __WS.page('"+docName+"','"+docGroup+"','"+memberid+"','"+action+"','"+amount+"')");
  this.DN=(typeof docName!=this.ud)?docName:'';
  this.DG=(typeof docGroup!=this.ud)?docGroup:'';
  this.ME=(typeof memberid!=this.ud)?memberid:'';
  this.AC=(typeof action!=this.ud)?action:'';
  this.AM=(typeof amount!=this.ud)?amount:0;
  this.IT='';
  this.IT+=(this.CM!='')?"&cp="+escape(this.CM):"";

  //alert('ITC.prototype.page : this.CP : ['+this.CP+']');
  this.CP = this.getCampaign(this.CP);
  //alert('ITC.prototype.page : this.CP : ['+this.CP+']');

  this.IT+=(this.CP!='')?"&cp="+escape(this.getCampaign(this.CP)):"";
  //alert('ITC.prototype.page : this.IT : ['+this.IT+']');

  this.IT+=(this.PR!='')?"&scp="+escape(this.PR):"";
  this.IT+=(this.PP!='')?"&scp="+escape(this.getCampaign(this.PP)):"";
  this.IT+=(this.ME!='')?"&m="+escape(this.ME):"";
  this.IT+=(this.DG!='')?"&c="+escape(this.DG):"";
  this.IT+=(this.DN!='')?"&b="+escape(this.DN):"";
  this.IT+=(this.FU!='')?"&f="+escape(this.FU):"&f=FLASH";
  this.IT+=(this.AC=='')?"":"&x="+escape(this.AC);
  this.IT+=(this.AM==0)?"":"&xa="+escape(this.AM);
  this.IT+="&random="+Math.random();

  //alert('ITC.prototype.page : this.IT : ['+this.IT+']');

  if(this.na)
  {
    setTimeout("__WS.img.src=__WS.BU+__WS.IT;",1);
    //setTimeout("alert(__WS.img.src);",2);
    //setTimeout("location.href=__WS.img.src;",10);
  }
  else
  {
    this.img.src=this.BU+this.IT;
    //alert(this.img.src);
    //location.href=this.img.src;
  }
}

var strHostName = window.location.host;

var __WS=new ITC('http://'+strHostName+'/flashtracking.asp?a=1');
__WS.setReferrer(true);
__WS.enter();
if(!__WS.na||(parseInt(navigator.appVersion)<5))document.write("<\!--");

//<!-- End of Statistics Flash Code -->
