
	var linkurl = '';
		
	function sendSpotlight(src, type, cat, ord, links){
		linkurl = links;
		trackSpotlight(src, type, cat, ord)

		setTimeout("sendURL()", 1000);
			
	}
		
		
	function sendURL(){
		window.location.href = linkurl;
	}

	
	// generic spotlight tracking. parameters in string
	function trackSpotlight(src, type, cat, ord){
		var axel = Math.random()+"";
		var a = axel * 10000000000000;
		
		var spotObj;
		var spotObjVal = "<img src=\"http://ad.au.doubleclick.net/activity;src=" + src + ";type=" + type + ";cat=" + cat + ";ord=" + ord + ";num="+ a + "?\" WIDTH=1 HEIGHT=1 BORDER=0>";
		
		if (document.getElementById){
			spotObj = document.getElementById("spotlightImg");
			spotObj.innerHTML = '';
			spotObj.innerHTML = spotObjVal;
		}
		else if (document.layers){
			spotObj = document.layers["spotlightImg"];
			spotObj.document.open();
			spotObj.document.write(spotObjVal);
			spotObj.document.close();
		}
	}	
	

	if(document.all && !document.getElementById) {
		document.getElementById = function(id){ return document.all[id]};
	}
