function chooseContent(){
	var contentVersion = 7;
	var flashCanPlay = true;

	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 pluginVersion = words[i];
			}
		var flashCanPlay = pluginVersion >= 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('flashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & contentVersion)))\n');
		document.write('</SCR' + 'IPT\> \n');
	}
	if ( flashCanPlay ) {	
		document.getElementById('lyrFlash').style.display = '';
		document.getElementById('lyrBkg').style.display = 'none';}
	else {
		document.getElementById('lyrFlash').style.display = 'none';
		document.getElementById('lyrBkg').style.display = '';}
}
function writeContent(o){
	var swf = o.swf;
	var width = (o.width == null) ? "100%" : o.width;
	var height = (o.height == null) ? "100%" : o.height;
	var bgColor = (o.bgColor == null) ? "#ffffff" : o.bgColor;
	var menu = (o.menu == null) ? false : o.menu;
	var mode = (o.mode == null) ? "transparent" : o.mode;
	var q = (o.quality == null) ? "high" : o.quality;
	var id = (o.id == null) ? "default_swf" : o.id;
	var contentVersion = (o.version == null) ? 7 : o.version;
	var release = (o.release == null) ? "6,0,35,0" : o.release;
	var flashVars = (o.flashVars == null) ? "" : o.flashVars;
	//-----------------------------------------------------------
	var flashCanPlay = true;
	

	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 pluginVersion = words[i];
			}
		var flashCanPlay = pluginVersion >= 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('flashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & contentVersion)))\n');
		document.write('</SCR' + 'IPT\> \n');
	}
	if ( flashCanPlay ) {	
		var out = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '
		+'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+release+'" '
		+'width="'+width+'" height="'+height+'" id="'+id+'" align="top">'
		+'<param name="movie" value="'+swf+'">'
		+'<param name="menu" value="'+menu+'"> '
		+'<param name="quality" value="'+q+'"> '
		+'<param name="wmode" value="'+mode+'"> '
		+'<param name="salign" value="t" />'
		+'<param name="bgcolor" value="'+bgColor+'"> '
		+'<param name="flashvars" value="'+flashVars+'"> '
		+'<embed src="'+swf+'" flashvars="'+flashVars+'" salign="top" menu="'+menu+'" quality="'+q+'" wmode="'+mode+'" '
		+' bgcolor="'+bgColor+'"  width="'+width+'" height="'+height+'" name="'+id+'" '
		+' align=""  type="application/x-shockwave-flash" swLiveConnect="true"'
		+' pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object> ';
		document.write(out);
  	} else {
		location='indexalt.html';
  	}
	
}
