<!--
var aImages = new Array;
var iIndex = 0;
var VL = new Object();

var strDomain="roi.vertical-leap.co.uk";

BadCaidError = new Error ("Vertical Leap Tracking Error: VLCampaignId must be an integer.");

function GetVar(){
	if (IsInteger(VLCampaignId) == true){
		VL.caid = VLCampaignId;
	}
	else {
		throw BadCaidError;
	}	
	if ((window.document.referrer != "")&&(window.document.referrer != "-")){
		if (!(navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) < 4)){
			VL.ref = window.document.referrer;
		}
	}
	VL.loc = window.document.location;
}

function IsInteger(s){   
	var i;
    for (i = 0; i < s.length; i++)
    {   
        // Check that current character is number.
        var c = s.charAt(i);
        if (((c < "0") || (c > "9"))) return false;
    }
    // All characters are numbers.
    return true;
}

function A(N,V){
	return "&" + N + "=" + Escape(V);
}

function Escape(S){
	if (typeof(RE) != "undefined"){
		var retStr = new String(S);
		for (R in RE){
			retStr = retStr.replace(RE[R],R);
		}
		return retStr;
	}
	else{
		return escape(S);
	}
}

function CreateImage(strSrc){
    //prompt("URL",strSrc);
    
	if (document.images){
		aImages[iIndex] = new Image;
		aImages[iIndex].src = strSrc;
		iIndex++;
	}
	else{
		document.write('<IMG BORDER="0" NAME="VLImg" WIDTH="1" HEIGHT="1" SRC="' + strSrc + '">');
	}
}

function GetTag(){

	var P = "http" + (window.location.protocol.indexOf('https:') == 0 ? 's' : '' ) + "://" + strDomain + "/Tracker.aspx?caid=" + VL.caid + A("ref", VL.ref) + A("loc", VL.loc);
	
	CreateImage(P);
}

try {
	GetVar();
	GetTag();
} 
catch (e) {
	//alert(e.name + " - " + e.message); 
} 
//-->
