﻿function __track__( path )
{
	var trackTag = false;
	
	// table to map Flash tracking paths to spotlight tracking data
	switch (path) 
	{
		case "sac":   				trackTag = "bodyg670";		break;
	}

	if( trackTag )
	{
		// set up some random garbage to prevent caching
		var axel = Math.random() + "";
		var a = axel * 10000000000000;

		// if we have a valid track instance then create a tracking image url and image HTML tag
		// then apply it to our tracking div
		var url = "http://ad.uk.doubleclick.net/activity;src=916690;type=bodyg563;cat=" + trackTag + ";ord=" + a + "?";
		var img = "<IMG SRC=\"" + url + "\" WIDTH=1 HEIGHT=1 BORDER=0>";

		// find the div on the HTML page that exists for tracking and write the image into it
		var tDiv = document.getElementById( 'track' );
		tDiv.innerHTML = img;
	}
	return true;
}