/* -----------------------------------------------------------------
  function for Flash Movies and alternative imagery
 ----------------------------------------------------------------- */
		
		// FLASH MOVIE
			var MM_contentVersion = 6;
			var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
			if ( plugin ) {
					var words = navigator.plugins["Shockwave Flash"].description.split(" ");
				    for (var i = 0; i < words.length; ++i)
				    {
					if (isNaN(parseInt(words[i])))
					continue;
					var MM_PluginVersion = words[i]; 
				    }
				var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
			}
			else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
			   && (navigator.appVersion.indexOf("Win") != -1)) {
				document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
				document.write('on error resume next \n');
				document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
				document.write('</SCR' + 'IPT\> \n');
			}
			
			
function flashMovie(version, filepath, width, height, bgcolor, id, mtop, mleft) {
	var swf = '';
		swf += '<object';
		swf += ' width="'+width+'"';
		swf += ' height="'+height+'"';
		swf += ' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
		swf += ' style="margin-top: '+mtop+'px; margin-left: '+mleft+'px;"';
		swf += ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+version+',0,0,0" align="absmiddle" id="'+id+'">';
		swf += '<param name="movie" value="'+filepath+'">';
		swf += '<param name="wmode" value="transparent">';
		swf += '<param name="bgcolor" value="'+bgcolor+'">';
		swf += '<param name="quality" value="high">';
			swf += '<embed src="'+filepath+'"';
			swf += ' align="absmiddle"';
			swf += ' width="'+width+'"';
			swf += ' height="'+height+'"';
			swf += ' wmode="transparent"';
			swf += ' bgcolor="'+bgcolor+'"';
			swf += ' quality="high"';
			swf += ' type="application/x-shockwave-flash"';
			swf += ' style="margin-top: '+mtop+'px;"';
			swf += ' pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">';
			swf += '<\/embed>';
		swf += '<\/object>';
		
	document.write(swf);	
}

function marquee(loop, scrollamount, txt) {
	var marquee = '';
		marquee += '<marquee loop="'+loop+'"';
		marquee += ' scrollamount="'+scrollamount+'">';
		marquee += txt;
		marquee += '<\/marquee>';
	
	document.write(marquee);
}