// Onestat counter code.
// version 0.2.0
// data 19-7/2005

function Statistics(){
	this.getCounter=function(){
		var st=getStatType(true),id=getStatValue(true),s="",orderprocessname="not found";vt=getViewType();
		var osp_URL="",osp_Title="",stBasic=(st=="onestatbasic"),list=false;
		var shop="http://www.mijnwinkel.nl/shop"+getVID()+"/";

		if (vt==8)orderprocessname="orderprocess1 - button (place order)";
		if (vt==5)orderprocessname="orderprocess2 - shopping cart";
		if (vt==6)orderprocessname="orderprocess3 - addressform (customer)";
		if (vt==11)orderprocessname="orderprocess4 - shippingmethod (choose)";
		if (vt==12)orderprocessname="orderprocess5 - paymethod (choose)";
		if (vt==7)orderprocessname="orderprocess6 - overview (control)";
		if (vt==9)orderprocessname="orders - total";
		//vt_LIST is gelijk aan 1 en vp_INFO =3

		if(self.isMoreInfoPage&&isMoreInfoPage()){
			list=true;
			if(stBasic)osp_URL=shop+"moreinfo"+getCID();
			// premium and business
			else osp_URL="moreinfo"+getCID()+" ("+(getArticleID()+getInfoTitle()).substring(0,27)+")";
		}
		else if(vt==vt_LIST){
			list=true;
			if(stBasic)osp_URL=shop+"productlist"+getCID();
			// premium and business
			else osp_URL="productlist"+getCID()+" ("+getName().substring(0,18)+")";
		}
		else if(!stBasic)osp_URL=orderprocessname;

		//if (getVID()==15109)alert(osp_URL);
		//if (getVID()==15109)alert(vt);
		
		osp_Title=osp_URL;
		if(osp_URL!=""){
			var CONTENTSECTION="";
			var CUSTOMDATA="";
			//ebusiness
			var osp_ACTION="";
			var osp_TRANSACTION="";
			var osp_AMOUNT="";
			var osp_PRODUCTCODE="";
			var osp_PRODUCTGROUP="";
			var osp_ADCAMPAIGN="";
			//end ebusiness
			var t=new Date();
			var p="http"+(document.URL.indexOf('https:')==0?'s':'')+"://stat.onestat.com/stat.aspx?tagver=2&sid="+id;
			p+="&url="+escape(osp_URL);
			p+="&ti="+escape(osp_Title);
			p+="&section="+escape(CONTENTSECTION);
			p+="&custom="+escape(CUSTOMDATA);
			//ebusiness
			p+="&cma="+escape(osp_ACTION);
			p+="&cmt="+escape(osp_TRANSACTION);
			p+="&cmm="+escape(osp_AMOUNT);
			p+="&cmp="+escape(osp_PRODUCTCODE);
			p+="&cmg="+escape(osp_PRODUCTGROUP);
			p+="&cmad="+escape(osp_ADCAMPAIGN);
			//end ebusiness		
			p+="&rf="+escape(window.document.referrer);
			p+="&tz="+escape(t.getTimezoneOffset());
			p+="&ch="+escape(t.getHours());
			p+="&js=1";
			p+="&ul="+escape(navigator.appName=="Netscape"?navigator.language:navigator.userLanguage);
			if(typeof(screen)=="object"){
			   p+="&sr="+screen.width+"x"+screen.height;p+="&cd="+screen.colorDepth;
			   p+="&jo="+(navigator.javaEnabled()?"Yes":"No");
			}
			if(stBasic&&list)s+='<table width=100% border=0><tr><td align=center><A HREF="http://www.onestat.com/aspx/login.aspx?sid='+id+'" target=_blank><IMG ID="ONESTAT_TAG" BORDER="0" SRC="'+p+'" ALT="This site tracked by OneStat.com. Get your own free website counter."></A></td></tr></table>';
			else s+='<img id="ONESTAT_TAG" border="0" width="1" height="1" src="'+p+'" />';
		}
		return s
	};
}
var __statistic=new Statistics();


