<!--
isFlashUpgrading = false;

function writeFlashTagNow(movie, width, height, bgcolor, name, paramstring, baseUrl) {
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" WIDTH="' + width + '" HEIGHT="' + height + '" id="' + name + '" swfLiveConnect="true">');
	source = movie
	
	document.write('  <PARAM NAME=movie VALUE="' + source + '">');
	document.write('  <PARAM NAME=quality VALUE=high>'); 
	document.write('  <PARAM NAME=menu VALUE=false>'); 
	document.write('  <PARAM NAME=bgcolor VALUE="#' + bgcolor + '">');
	if (baseUrl) {
		document.write('   <PARAM NAME="BASE" VALUE="' + baseUrl + '">');
	}

	document.write('  <param name="wmode" value="transparent" />'); 
	document.write('  <PARAM NAME=FlashVars VALUE="' + paramstring + '">');
	document.write('  <EMBED src="' + source + '" FlashVars="' + paramstring + '" quality=high menu=false bgcolor=#' + bgcolor);
	if (baseUrl) {
		document.write(' BASE="' + baseUrl + '"');
	}
	document.write(' WIDTH="' + width + '" HEIGHT="' + height + '" name="' + name + '" swfLiveConnect="true"  wmode="transparent" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>');
	document.write('</OBJECT>');
}

function thisMovie(movie_name) {
	// IE and Netscape refer to the movie object differently.
	// This function returns the appropriate syntax depending on the browser.
	if (document.layers) {
		return window[movie_name];
	} else {
		return document[movie_name];
	}
}
	
function PassFlash(movie_name){
	if(hasReqestedVersion)
		thisMovie(movie_name).SetVariable("_root.trackingProject", s_account);
}

function writeFlashUpgrade(width, height, bgcolor, swf)
{
	if(isFlashUpgrading)
		return;
	
	isFlashUpgrading = true;
	
	if(swf.indexOf("receiver.swf") != -1 && height == 1 && width == 1)
	{
		height=30;
		width=500;
	}
	
	document.title = document.title.slice(0, 47) + " - Flash Player Installation";
	var MMdoctitle = document.title;

	var productInstallOETags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
	+ 'width="'+width+'" height="'+height+'"'
	+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
	+ '<param name="movie" value="/assets/swf/playerProductInstall.swf?MMredirectURL='+MMredirectURL+'&MMplayerType=ActiveX&MMdoctitle='+MMdoctitle+'" />'
	+ '<param name="quality" value="high" /><param name="bgcolor" value="#'+bgcolor+'" />'
	+ '<param name="wmode" value="transparent" />'
	+ '<embed src="/assets/swf/playerProductInstall.swf?MMredirectURL='+MMredirectURL+'&MMplayerType=PlugIn" quality="high" bgcolor="#000000" '
	+ 'width="'+width+'" height="'+height+'" name="detectiontest" aligh="middle"'
	+ 'play="true"'
	+ 'loop="false"'
	+ 'quality="high"'
	+ 'allowScriptAccess="sameDomain"'
	+ 'type="application/x-shockwave-flash"'
	+ 'wmode="transparent"'
	+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
	+ '<\/embed>'
	+ '<\/object>';
	
	//var container = document.body;
	//container.innerHTML = productInstallOETags;
	
	document.write(productInstallOETags);
}

function writeNoFlash(width, height, swf)
{
	if(swf.indexOf("receiver.swf") != -1 && height == 1 && width == 1)
	{
		height=30;
		width=500;
	}
	
	if(swf.indexOf("logos.swf") == -1)
	{
		var alternateContent = ''
		+ '<div style="width:' + width + 'px; height:' + height + 'px; background-color:#FFFFFF; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:7pt; color:#156EC1; font-weight:bold;">'
		+ 'This content requires the Adobe Flash Player.  Please click <a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">here</a> to install the Flash Player.'
		+ '</div>';
	}
	else
	{
		var alternateContent = ''
		+ '<img src="/assets/images/space.gif" height="' + height + '" width="' + width + '"/>';
	}
	
	document.write(alternateContent);  // insert non-flash content
}

// -->