
function callSpotlight(sTrack,src,type)
{
	//alert("callSpotlight");
	var axel = Math.random()+"";
	var nRnd = axel * 10000000000000;
	if(src == null || src == "") src = "1352258";
	if(type == null || type == "") type = "cokec468";
	var floodlightTag = "http://fls.doubleclick.net/activityi;src="+src+";type="+type+";cat=" + sTrack + ";ord="+ nRnd + "?"; 
	
	//alert(floodlightTag);
	if(document.getElementById("DCLK_FLDiv"))
	{
		var flDiv=document.getElementById("DCLK_FLDiv");
	}else{
		var flDiv=document.body.appendChild(document.createElement("div"));
		flDiv.setAttribute("id","DCLK_FLDiv");
		flDiv.style.position="absolute";
		flDiv.style.visibility="hidden";
		flDiv.style.top="0px";
	}
	flDiv.innerHTML='<iframe id="DCLK_FLIframe" src="' + floodlightTag + '" WIDTH=1 HEIGHT=1 FRAMEBORDER=0></iframe>';
}

function callSearchRevTag(type,src)
{
	var tagDiv = document.getElementById("SRTAG_"+type);
	if(!tagDiv)
	{
		var flDiv = document.getElementById("SRTAG_FLDiv");
		if(!flDiv)
		{
			flDiv=document.body.appendChild(document.createElement("div"));
			flDiv.setAttribute("id","SRTAG_FLDiv");
			flDiv.style.position="absolute";
			flDiv.style.visibility="hidden";
			flDiv.style.top="0px";
		}
		
		tagDiv = flDiv.appendChild(document.createElement("div"));
		tagDiv.setAttribute("id","SRTAG_"+type);
		tagDiv.style.position="absolute";
		tagDiv.style.visibility="hidden";
		tagDiv.style.top="0px";
	}
	tagDiv.innerHTML="<img src='"+src+"' width='1' height='1' border='0'/>";
}

function callSearchRevTag_byType(type)
{
	var src = "https://s1.srtk.net/www/delivery/ti.php?trackerid=699&cb=430680013&_sr_amount=0&_sr_page="+type;
	callSearchRevTag(type,src);
}

<!--

function Tracker(id, content, subcontent, redirect)
{
	this.group = content;
	this.subgroup = subcontent;
	this.title = content + " - " + subcontent;
	this.content = content + "," + subcontent;
	this.id = id;
	this.documentURL = id + ".html";
	
	if ( redirect == "FALSE" ){
		this.redirect = "";
		this.newWindow = 0;
	}
	
	else if ( redirect.indexOf("javascript:") == 0 ){
		this.redirect = redirect;
		this.newWindow = 2;
	}
	
	else {
		this.redirect = redirect;
		this.newWindow = 0;
	}
	
}

var Trackers = new Array();	

function doTrackingFlash ( aArgument ) {
	doTracking(aArgument[0], aArgument[1] );

}

function doTracking ( sParam, sArgument ) {
	var bDebug = false;
	var bTrackButtons = true;
	var bTrack = true;
	var oTrack = Trackers[sParam];
	var sRedirect = oTrack.redirect;
	if ( bDebug ){
       alert(oTrack.content + " - " + oTrack.documentURL + " - " + sRedirect + " - " + oTrack.title + " - " + oTrack.newWindow);
   }	
/*	
	if ( sArgument != "" && sArgument != undefined )
		sRedirect = sArgument;
		
	if ( bTrackButtons && bTrack && sParam.indexOf(".btn") > -1 )
		doCMTracking (oTrack.content, oTrack.documentURL, sRedirect, oTrack.title, oTrack.newWindow);
	if ( bTrack && sParam.indexOf(".btn") == -1 )	
		doCMTracking (oTrack.content, oTrack.documentURL, sRedirect, oTrack.title, oTrack.newWindow);*/
		
	//dcsMultiTrack("DCS.dcsuri",oTrack.documentURL,"WT.ti",oTrack.title,"WT.cg_n",oTrack.group,"WT.cg_s",oTrack.subgroup);
	dcsMultiTrack("DCS.dcsuri",oTrack.documentURL,"WT.ti",oTrack.title,"WT.cg_n",oTrack.group,"WT.cg_s",oTrack.subgroup);
}
// -->


function doMyCokeTracking(tag,offSite,WT_z_ua,WT_pi,group) {
	var hn=location.hostname?(location.hostname.split(":")[0]):"";
	var pr=location.protocol||"";
	if ((hn.length>0)&&(pr.indexOf("http")==0)){
		var tiType = "Onsite:";
		var dlType = "1";
		var pth = location.pathname;
		if(offSite == true || offSite == "true")
		{
			tiType = "Offsite:";
			dlType = "24";
		}
		else
		{
			pth.replace(hn,"");
		}
		
		var qry=location.search?location.search.substring(location.search.indexOf("?")+1,location.search.length):"";
		var pth=pth?((pth.indexOf("/")!=0)?"/"+pth:pth):"/";
		var auxWT_cg_s=_tag.WT.cg_s;
		if(WT_z_ua != null && WT_pi != null)
		{
			dcsMultiTrack("DCS.dcssip",hn,"DCS.dcsuri",pth,"DCS.dcsqry",WebTrends.trimoffsiteparams?"":qry,"DCS.dcsref",window.location,"WT.ti",tiType+hn+pth+((qry != "")?("?"+qry):""),"WT.dl",dlType,"WT.cg_s",tag,"WT.z_ua",WT_z_ua,"WT.pi",WT_pi);
		}
		else
		{
			dcsMultiTrack("DCS.dcssip",hn,"DCS.dcsuri",pth,"DCS.dcsqry",WebTrends.trimoffsiteparams?"":qry,"DCS.dcsref",window.location,"WT.ti",tiType+hn+pth+((qry != "")?("?"+qry):""),"WT.dl",dlType,"WT.cg_s",tag);
		}
		_tag.WT.cg_s=auxWT_cg_s;
	}
}