
function WriteHomepageMovieTag(movieUrl, bandwidth)
{	
	WriteMovieTag(movieUrl, 618, 224, false, 'flashMovieHolder');
}

function WriteSecureHomepageMovieTag(movieUrl)
{
	WriteMovieTag(movieUrl, 618, 224, true, 'flashMovieHolder');
}

function WriteMovieTag(movieUrl, width, height, secure, containerId)
{
	var httpSecuritySuffix = '';

	if (secure == true)
		httpSecuritySuffix = 's';

	var html = '';
	html += "<object id=\"flashMovie\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http" + httpSecuritySuffix + "://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"" + width + "\" height=\"" + height + "\" VIEWASTEXT>";
	html += "<param name=\"movie\" value=\"" + movieUrl + "\">";
	html += "<param name=\"wmode\" value=\"transparent\">";
	html += "<embed name=\"flashMovie\" src=\"" + movieUrl + "\" width=\"" + width + "\" height=\"" + height + "\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" wmode=\"transparent\">";
	html += "</object>";

	document.getElementById(containerId).innerHTML = html;
}
