function writeMainBanner(autostart){
	if (autostart == true){
		document.write('<OBJECT id="feature" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" height="228" width="700" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" viewastext>\n');
	    document.write('	<PARAM NAME="_cx" VALUE="18521">\n');	
	    document.write('	<PARAM NAME="_cy" VALUE="6033">\n');	
	    document.write('	<PARAM NAME="FlashVars" VALUE="autostart=true">\n');	
	    document.write('	<PARAM NAME="Movie" VALUE="feature.swf?1">\n');	
	    document.write('	<PARAM NAME="Src" VALUE="feature.swf?1">\n');	
	    document.write('	<PARAM NAME="WMode" VALUE="Transparent">\n');	
	    document.write('	<PARAM NAME="Play" VALUE="-1">\n');	
	    document.write('	<PARAM NAME="Loop" VALUE="-1">\n');	
	    document.write('	<PARAM NAME="Quality" VALUE="Best">\n');	
	    document.write('	<PARAM NAME="SAlign" VALUE="">\n');	
	    document.write('	<PARAM NAME="Menu" VALUE="-1">\n');	
	    document.write('	<PARAM NAME="Base" VALUE="">\n');	
	    document.write('	<PARAM NAME="Scale" VALUE="NoScale">\n');	
	    document.write('	<PARAM NAME="DeviceFont" VALUE="0">\n');	
	    document.write('	<PARAM NAME="EmbedMovie" VALUE="0">\n');	
	    document.write('	<PARAM NAME="BGColor" VALUE="000000">\n');	
	    document.write('	<PARAM NAME="SWRemote" VALUE="">\n');	
	    document.write('	<embed FlashVars="autostart=true" src="feature.swf?1" quality="best" scale="noscale" wmode="transparent" bgcolor="#000000" width="700" height="228" name="feature" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\n');	
	    document.write('	</embed>\n');	
	    document.write('</object>\n');
	} else {
		document.write('<OBJECT id="feature" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" height="228" width="700" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" viewastext>\n');
	    document.write('	<PARAM NAME="_cx" VALUE="18521">\n');	
	    document.write('	<PARAM NAME="_cy" VALUE="6033">\n');	
	    document.write('	<PARAM NAME="Movie" VALUE="feature.swf?1">\n');	
	    document.write('	<PARAM NAME="Src" VALUE="feature.swf?1">\n');	
	    document.write('	<PARAM NAME="WMode" VALUE="Transparent">\n');	
	    document.write('	<PARAM NAME="Play" VALUE="-1">\n');	
	    document.write('	<PARAM NAME="Loop" VALUE="-1">\n');	
	    document.write('	<PARAM NAME="Quality" VALUE="Best">\n');	
	    document.write('	<PARAM NAME="SAlign" VALUE="">\n');	
	    document.write('	<PARAM NAME="Menu" VALUE="-1">\n');	
	    document.write('	<PARAM NAME="Base" VALUE="">\n');	
	    document.write('	<PARAM NAME="AllowScriptAccess" VALUE="always">\n');	
	    document.write('	<PARAM NAME="Scale" VALUE="NoScale">\n');	
	    document.write('	<PARAM NAME="DeviceFont" VALUE="0">\n');	
	    document.write('	<PARAM NAME="EmbedMovie" VALUE="0">\n');	
	    document.write('	<PARAM NAME="BGColor" VALUE="000000">\n');	
	    document.write('	<PARAM NAME="SWRemote" VALUE="">\n');	
		document.write('	<embed swliveconnect="true" src="feature.swf?1" quality="best" scale="noscale" wmode="transparent" bgcolor="#000000" width="700" height="228" name="feature" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\n');	
	    document.write('	</embed>\n');	
	    document.write('</object>\n');
		}
}

function writeFlashCalendar(showBackground){
	if (showBackground){
			document.write('<OBJECT id="calendar" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" height="187" width="371" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" viewastext>\n');
	    document.write('	<PARAM NAME="_cx" VALUE="18521">\n');	
	    document.write('	<PARAM NAME="_cy" VALUE="6033">\n');	
	    document.write('	<PARAM NAME="FlashVars" VALUE="autostart=true">\n');	
	    document.write('	<PARAM NAME="Movie" VALUE="calendar.swf">\n');	
	    document.write('	<PARAM NAME="Src" VALUE="calendar.swf">\n');	
	    document.write('	<PARAM NAME="WMode" VALUE="Transparent">\n');	
	    document.write('	<PARAM NAME="Play" VALUE="-1">\n');	
	    document.write('	<PARAM NAME="Loop" VALUE="-1">\n');	
	    document.write('	<PARAM NAME="Quality" VALUE="Best">\n');	
	    document.write('	<PARAM NAME="SAlign" VALUE="">\n');	
	    document.write('	<PARAM NAME="Menu" VALUE="-1">\n');	
	    document.write('	<PARAM NAME="Base" VALUE="">\n');	
	    document.write('	<PARAM NAME="Scale" VALUE="NoScale">\n');	
	    document.write('	<PARAM NAME="DeviceFont" VALUE="0">\n');	
	    document.write('	<PARAM NAME="EmbedMovie" VALUE="0">\n');	
	    document.write('	<PARAM NAME="BGColor" VALUE="000000">\n');	
	    document.write('	<PARAM NAME="SWRemote" VALUE="">\n');	
	    document.write('	<embed FlashVars="showBackground=true" src="calendar.swf" quality="best" scale="noscale" wmode="transparent" bgcolor="#000000" width="371" height="187" name="calendar" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\n');	
	    document.write('	</embed>\n');	
	    document.write('</object>\n');
	} else {
		document.write('<OBJECT id="calendar" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" height="187" width="371" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" viewastext>\n');
	    document.write('	<PARAM NAME="_cx" VALUE="18521">\n');	
	    document.write('	<PARAM NAME="_cy" VALUE="6033">\n');	
	    document.write('	<PARAM NAME="Movie" VALUE="calendar.swf">\n');	
	    document.write('	<PARAM NAME="Src" VALUE="calendar.swf">\n');	
	    document.write('	<PARAM NAME="WMode" VALUE="Transparent">\n');	
	    document.write('	<PARAM NAME="Play" VALUE="-1">\n');	
	    document.write('	<PARAM NAME="Loop" VALUE="-1">\n');	
	    document.write('	<PARAM NAME="Quality" VALUE="Best">\n');	
	    document.write('	<PARAM NAME="SAlign" VALUE="">\n');	
	    document.write('	<PARAM NAME="Menu" VALUE="-1">\n');	
	    document.write('	<PARAM NAME="Base" VALUE="">\n');	
	    document.write('	<PARAM NAME="AllowScriptAccess" VALUE="always">\n');	
	    document.write('	<PARAM NAME="Scale" VALUE="NoScale">\n');	
	    document.write('	<PARAM NAME="DeviceFont" VALUE="0">\n');	
	    document.write('	<PARAM NAME="EmbedMovie" VALUE="0">\n');	
	    document.write('	<PARAM NAME="BGColor" VALUE="000000">\n');	
	    document.write('	<PARAM NAME="SWRemote" VALUE="">\n');	
		document.write('	<embed swliveconnect="true" src="calendar.swf" quality="best" scale="noscale" wmode="transparent" bgcolor="#000000" width="371" height="187" name="calendar" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\n');	
	    document.write('	</embed>\n');	
	    document.write('</object>\n');
	}
}

function writeFlashWH(showBackground){
	if (showBackground){
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" WIDTH="375" HEIGHT="201" id="whatshappening" ALIGN="">');
    document.write('	<PARAM NAME=movie VALUE="whatshappening/wh_goldenhorse_cap.swf">');	
    document.write('	<PARAM NAME=quality VALUE=best>');	
    document.write('	<PARAM NAME="FlashVars" VALUE="showBackground=true">');	
    document.write('	<PARAM NAME=wmode VALUE=transparent>');	
    document.write('	<EMBED FlashVars="showBackground=true" src="whatshappening/wh_goldenhorse_cap.swf" quality=best bgcolor=#666666 wmode=transparent WIDTH="375" HEIGHT="201" NAME="whatshappening" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');	
    document.write('</object>');
	} else {
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" WIDTH="375" HEIGHT="201" id="whatshappening" ALIGN="">');
    document.write('	<PARAM NAME=movie VALUE="whatshappening/wh_goldenhorse_cap.swf">');	
    document.write('	<PARAM NAME=quality VALUE=best>');	
    document.write('	<PARAM NAME=wmode VALUE=transparent>');	
    document.write('	<EMBED src="whatshappening/wh_goldenhorse_cap.swf" quality=best bgcolor=#666666 wmode=transparent WIDTH="375" HEIGHT="201" NAME="whatshappening" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');	
    document.write('</object>');
	}
}

function writeFlashPoll(showBackground){
	if (showBackground){
		document.write('<OBJECT id="poll" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" height="116" width="281" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" viewastext>\n');
	    document.write('	<PARAM NAME="_cx" VALUE="18521">\n');	
	    document.write('	<PARAM NAME="_cy" VALUE="6033">\n');	
	    document.write('	<PARAM NAME="FlashVars" VALUE="showBackground=true">\n');	
	    document.write('	<PARAM NAME="Movie" VALUE="poll.swf">\n');	
	    document.write('	<PARAM NAME="Src" VALUE="poll.swf">\n');	
	    document.write('	<PARAM NAME="WMode" VALUE="Transparent">\n');	
	    document.write('	<PARAM NAME="Play" VALUE="-1">\n');	
	    document.write('	<PARAM NAME="Loop" VALUE="-1">\n');	
	    document.write('	<PARAM NAME="Quality" VALUE="Best">\n');	
	    document.write('	<PARAM NAME="SAlign" VALUE="">\n');	
	    document.write('	<PARAM NAME="Menu" VALUE="-1">\n');	
	    document.write('	<PARAM NAME="Base" VALUE="">\n');	
	    document.write('	<PARAM NAME="Scale" VALUE="NoScale">\n');	
	    document.write('	<PARAM NAME="DeviceFont" VALUE="0">\n');	
	    document.write('	<PARAM NAME="EmbedMovie" VALUE="0">\n');	
	    document.write('	<PARAM NAME="BGColor" VALUE="000000">\n');	
	    document.write('	<PARAM NAME="SWRemote" VALUE="">\n');	
	    document.write('	<embed FlashVars="showBackground=true" src="poll.swf" quality="best" scale="noscale" wmode="transparent" bgcolor="#283557" width="270" height="110" name="poll" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\n');	
	    document.write('	</embed>\n');	
	    document.write('</object>\n');
	} else {
		document.write('<OBJECT id="poll" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" height="116" width="281" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" viewastext>\n');
	    document.write('	<PARAM NAME="_cx" VALUE="18521">\n');	
	    document.write('	<PARAM NAME="_cy" VALUE="6033">\n');	
	    document.write('	<PARAM NAME="Movie" VALUE="poll.swf">\n');	
	    document.write('	<PARAM NAME="Src" VALUE="poll.swf">\n');	
	    document.write('	<PARAM NAME="WMode" VALUE="Transparent">\n');	
	    document.write('	<PARAM NAME="Play" VALUE="-1">\n');	
	    document.write('	<PARAM NAME="Loop" VALUE="-1">\n');	
	    document.write('	<PARAM NAME="Quality" VALUE="Best">\n');	
	    document.write('	<PARAM NAME="SAlign" VALUE="">\n');	
	    document.write('	<PARAM NAME="Menu" VALUE="-1">\n');	
	    document.write('	<PARAM NAME="Base" VALUE="">\n');	
	    document.write('	<PARAM NAME="AllowScriptAccess" VALUE="always">\n');	
	    document.write('	<PARAM NAME="Scale" VALUE="NoScale">\n');	
	    document.write('	<PARAM NAME="DeviceFont" VALUE="0">\n');	
	    document.write('	<PARAM NAME="EmbedMovie" VALUE="0">\n');	
	    document.write('	<PARAM NAME="BGColor" VALUE="000000">\n');	
	    document.write('	<PARAM NAME="SWRemote" VALUE="">\n');	
		document.write('	<embed swliveconnect="true" src="poll.swf" quality="best" scale="noscale" wmode="transparent" bgcolor="#000000" width="270" height="110" name="poll" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">\n');	
	    document.write('	</embed>\n');	
	    document.write('</object>\n');
	}
}