﻿// This file is to write Spotlight Tags on Click event.  Functions copied from gloUtilities.js
//  BP000795			11/01/2005		Original Version

//Function copied from gloUtilities.js - BP000795 - 11/01/2005
// Guidelines  - Write two Valriables "blnAddSpotlight" and "blnHttps" which would be used in this function
//				 blnAddSpotlight = (!(DowCorning.Web.Utilities.IsInternalIP))
//				 IF DowCorning.Web.HTTPUtilities.GetServerVariableValue("HTTPS") == "off" THEN blnHttps = false
//				 imageId 	 -  Pass Image Id to which Spotlight Tag is to be added.s
function WriteSpotlightTag(imageId, category, type)
{
	if(blnAddSpotlight)
	{
		var axel = Math.random()+"";
		var a = axel * 10000000000000;
		var start = "http";
		if(blnHttps)
		{
			start = "https";
		}
		else
		{
		}
		var imageControl = document.getElementById(imageId);
		imageControl.src = start + "://ad.doubleclick.net/activity;src=756405;type=" + type + ";cat=" + category + ";ord=1;num=" + a + "?";	
	}
	else
	{
		//Internal - Do Nothing
	}
}