// Utilities to be called via javascript: URLs in Flash

// Client 1x1 pixel tracking for games and specialized ads that can't do their own tracking
// Can't call getURL on these directly from Flash due to security.
// Argument is full URL of a 1x1 image.  The image is never displayed, just loaded.
function loadTrackingPixel(URLtoTrigger)
{
	if (!window.dcpix) window.dcpix = new Array();
	var i = window.dcpix.length;
	window.dcpix[i] = new Image();
	window.dcpix[i].src = URLtoTrigger;
}

// Sometimes we want to invoke more than one tracking pixel from the same page.
// IE 6 only performs the last getURL on a page.  Provide a way to track multiple
// pixels from a single javascript: URL.
function loadTrackingPixels()
{
	for (var i = 0; i < arguments.length; i++) {
		var URLtoTrigger = arguments[i];
		if (!window.dcpix) window.dcpix = new Array();
		var j = window.dcpix.length;
		window.dcpix[j] = new Image();
		window.dcpix[j].src = URLtoTrigger;
	}
}
