function OFloodLight(){

	//this was used in order to dynamically fire during the viewing of a page(video start/stop)
	this.fireFloodlight = function(sCat, sNamePlate){
		var axel = Math.random()+"";
		var a = axel * 10000000000000;
		var strsrc = 'http://fls.doubleclick.net/activityi;src=690327;type=ctruck;cat=' + sCat + ';u1=' + sNamePlate + ';u6=0;ord='+ a + '?';
		var objIFrame = document.getElementById("IfrmFlood");

		if(objIFrame){
			objIFrame.src = strsrc;
        }else{
            this.createFloodLight(sCat, sNamePlate, true);
        }
	};

	this.createFloodLight = function(sCat, sNamePlate, delayedFloodlight){
		var axel = Math.random()+"";
		var a = axel * 10000000000000;
		var strsrc = '<iframe src="http://fls.doubleclick.net/activityi;src=690327;type=ctruck;cat=' + sCat + ';u1=' + sNamePlate + ';u6=0;ord='+ a + '?" width="1" height="1" frameborder="0" id="IfrmFlood"></iframe>';

        //added delayedFloodlight in order to capture a floodlight call onClick
		if (delayedFloodlight || window.navigator.userAgent.search(/Firefox/) > 0){
			/* Code exception for firefox */
			var node  = document.createElement("div");
			node.innerHTML = strsrc;
			document.body.appendChild(node);
		 }else {
			document.write(strsrc);
		}
	};
}

var oFloodLight = new OFloodLight();
