// METATRAFFIC -- COPYRIGHT (C) 2002-2005, Metasun Software Corp.

var pagetitle = document.title; //INSERT CUSTOM PAGE NAME IN QUOTES
var action = ""; //ACTION CODE
var amount = "0"; //ACTION AMOUNT (LEAVE BLANK OR 0 IF NO AMOUNT)
var order = ""; //INSERT UNIQUE ORDER NUMBER
var metatrafficWTP = pagetitle; //Insert page name her
var scriptlocation = "/metatrafficCFB/track.asp";
var doNotTrack = 0;
var UsePageNameAsLogKey = 0; //Use the page name not page url as log entry key.

try {
   metatrafficWTP = MT_WTP;
   pagetitle = MT_WTP;
}catch (e){
	//do nothing}
try {
   scriptlocation = MT_scriptlocation + '/track.asp';
}catch (e){
	//do nothing}								
try {
   doNotTrack = MT_DoNotTrack;
}catch (e){
	//do nothing}
try {
   UsePageNameAsLogKey = MT_UsePageNameAsLogKey;
}catch (e){
	//do nothing}//alert(scriptlocation);
if (!doNotTrack){
//alert(metatrafficWTP + ', doNotTrack: ' +doNotTrack + ', UsePageNameAsLogKey: ' + UsePageNameAsLogKey);
//alert(scriptlocation);
//var pagedata = 'wtpageaskey='+ UsePageNameAsLogKey +'&wtp=' + metatrafficWTP + '&mtpt=' + escape(pagetitle) + '&mtac=' + escape(action) + '&mta=' + amount + '&mto=' + escape(order) + '&mtr=' + escape(document.referrer) + '&mtt=2&mts=' + window.screen.width + 'x' + window.screen.height + '&mtz=' + Math.random() 
var pagedata = 'wtpageaskey='+ UsePageNameAsLogKey + '&mtpt=' + escape(pagetitle) + '&mtac=' + escape(action) + '&mta=' + amount + '&mto=' + escape(order) + '&mtr=' + escape(document.referrer) + '&mtt=2&mts=' + window.screen.width + 'x' + window.screen.height + '&mtz=' + Math.random() 
document.write ('<img height=1 width=1 ');
document.write ('src="' + scriptlocation + '?' + pagedata + '" style="display:none;">');
//alert(scriptlocation + '?' + pagedata);
//document.location.href=scriptlocation + '?' + pagedata 
}


       