function tradeDoubler(type){

if(document.cookie){
	var TDUID = document.cookie
	var cookies = new Array();
	cookies = TDUID.split(";");
	
		for(i=0;i<cookies.length;i++){
			if(cookies[i].indexOf("TRADEDOUBLER")!=-1){
			start=cookies[i].indexOf("=");
			start++;
			end=cookies[i].length;
			var TDUIDVAL = cookies[i].substring(start,end);
				if(TDUIDVAL==-1){TDUIDVAL="";}
			}
		}
}
else{
TDUIDVAL="";
}

var leadNumber = Math.round(1000000000 * Math.random());
var tradeImage = "http://tbl.tradedoubler.com/report?organization=401321&event=4&leadNumber="+leadNumber+"&tduid="+TDUIDVAL;

document.images["td"].src = tradeImage;

if(type=="one"){
setTimeout("one()",2000);
}

if(type=="two"){
setTimeout("two()",2000);
}

if(type=="three"){
setTimeout("three()",2000);
}

if(type=="four"){
setTimeout("four()",2000);
}

}

function one(url){
window.parent.document.location.href="http://fr.sitestat.com/europcar/europcar-uk/s?nav.clickout.resaweb.travel_agents&ns_type=clickout&ns_url=http://www.europcar.co.uk/tools/frameset.html?https://res.europcar.com/ta?HEADER=FALSE&TD=true&DATECI.hour=10&ACRISS=CDMN"
}

function two(url)
{
	window.parent.document.location.href="http://fr.sitestat.com/europcar/europcar-uk/s?nav.clickout.resaweb.rates_and_reservation&ns_type=clickout&ns_url=http://www.europcar.co.uk/tools/frameset.html?https://res.europcar.com?HEADER=FALSE&TD=true&DATECI.hour=09&DATECO.hour=12&ACRISS=CDMN"
}

function three(url){
window.parent.document.location.href="http://www.europcar.co.uk/tools/frameset.html?https://res.europcar.com?HEADER=FALSE&TD=true&DATECI.hour=10&ACRISS=CDMN"
}
function four(url){
window.parent.document.location.href="http://fr.sitestat.com/europcar/europcar-uk/s?nav.clickout.resaweb.individual_business_travellers&ns_type=clickout&ns_url=http://www.europcar.co.uk/tools/frameset.html?https://res.europcar.com/bh?HEADER=FALSE&TD=true&DATECI.hour=10&ACRISS=CDMN"
}
