// Floodlight object code
function OFloodLight(){
	var sSrc = "" // "690333"
	var sType ="" //"lngen2"
	
	this.createFloodLight = createFloodLight;
	this.fireFloodlight = fireFloodlight;
	
	function fireFloodlight(sCat, sNamePlate){
		var strsrc = 'https://fls.doubleclick.net/activityi;src=' + sSrc  + ';type=' + sType  + ';cat=' + sCat + ';u1=' + sNamePlate + ';ord=?'
		var objIFrame = document.getElementById("IfrmFlood");
		
		if(objIFrame){
			objIFrame.src = strsrc;
		} else {
			createInlineFloodLight(sCat, sNamePlate)	
		}
	}
		
	function createFloodLight(sCat, sNamePlate){
		var axel = Math.random()+"";
		var a = axel * 10000000000000;

		if (window.navigator.userAgent.search(/Firefox/) > 0){
			// Code  for firefox (during load)
			createInlineFloodLight(sCat, sNamePlate);
		 }else {
		 	// Code for ie (during load)
			document.write('<IFRAME SRC="https://fls.doubleclick.net/activityi;src=' + sSrc  + ';type=' + sType  + ';cat=' + sCat + ';u1=' + sNamePlate + ';ord='+ a + '?" WIDTH=1 HEIGHT=1 FRAMEBORDER=0 id=IfrmFlood></IFRAME>');
		}
	}
	
	function createInlineFloodLight(sCat, sNamePlate){
		var axel = Math.random()+"";
		var a = axel * 10000000000000;
		var node  = document.createElement("div")
		node.innerHTML = '<IFRAME SRC="https://fls.doubleclick.net/activityi;src=' + sSrc  + ';type=' + sType  + ';cat=' + sCat + ';u1=' + sNamePlate + ';ord='+ a + '?" WIDTH=1 HEIGHT=1 FRAMEBORDER=0 id=IfrmFlood></IFRAME>'
		document.body.appendChild(node)
	}
}

oFloodLight = new OFloodLight()
	