var floodlightSrc = "http://fls.doubleclick.net/activityi;src=1044889;type=lexus764;";

function getRandomNum() {
	var axel = Math.random()+"";
	var randomNum = axel * 10000000000000;
	return randomNum;
}

var pageNameObjArr = {
//	"test1": {active: true, floodVal: "src=123456;type=activity_name;cat=category;ux=ux_value;"},
//	"test2": {active: false, floodVal: "test2"},
    "FCV-landing": {active: true, floodVal: "cat=fcvla997;ord=1;num="+ getRandomNum() + "?"},
	"Homepage": {active: true, floodVal: "cat=lexus825;ord=1;num="+ getRandomNum() + "?"},

	"ES-anchor": {active: true, floodVal: "cat=flood525;ord=1;num="+ getRandomNum() + "?"},
	"IS-anchor": {active: true, floodVal: "cat=flood093;ord=1;num="+ getRandomNum() + "?"},
	"ISF-anchor": {active: true, floodVal: "cat=flood448;ord=1;num="+ getRandomNum() + "?"},
	"LS-anchor": {active: true, floodVal: "cat=flood702;ord=1;num="+ getRandomNum() + "?"},
	"RX-anchor": {active: true, floodVal: "cat=flood335;ord=1;num="+ getRandomNum() + "?"},
	"HSh-anchor": {active: true, floodVal: "cat=flood743;ord=1;num="+ getRandomNum() + "?"},

	"Inside-Hybrid": {active: true, floodVal: "cat=flood633;ord=1;num="+ getRandomNum() + "?"},
	"CPO": {active: true, floodVal: "cat=flood649;ord=1;num="+ getRandomNum() + "?"},
	"CPO-Overview": {active: true, floodVal: "cat=lexus288;ord=1;num="+ getRandomNum() + "?"},
	
	"ISC-fcvPage": {active: true, floodVal: "cat=iscfu828;ord=1;num="+ getRandomNum() + "?"},
	
	"HS-Microsite": {active: true, floodVal: "cat=hshla757;ord=1;num="+ getRandomNum() + "?"},

	"ACURA_MDX_vs_GX-Page": {active: true, floodVal: "cat=flood135;ord=1;num="+ getRandomNum() + "?"},
	"AUDI_Q7_vs_GX-Page": {active: true, floodVal: "cat=flood356;ord=1;num="+ getRandomNum() + "?"},
	"BMW_X5_vs_GX-Page": {active: true, floodVal: "cat=flood194;ord=1;num="+ getRandomNum() + "?"},
	"MERCEDES-BENZ_GL-CLASS_vs_GX-Page": {active: true, floodVal: "cat=flood798;ord=1;num="+ getRandomNum() + "?"},	
	"AllNewGX-Page": {active: true, floodVal: "cat=flood109;ord=1;num="+ getRandomNum() + "?"}
}

function floodlight(pageName) {
	var pageNameObj = pageNameObjArr[pageName];
	if(pageNameObj && pageNameObj.active) {
		document.getElementById('flDiv').innerHTML = '<iframe src="'+ floodlightSrc + pageNameObj.floodVal +'" width="1" height="1" frameborder="0"></iframe>';
	}
}
