function playsound(soundfile){
	document.write('<div style="position: absolute; left: -500px; top: -500px">');
	document.write('<object width="300" height="42">');
	document.write('<param name="src" value="resources/sounds/' + soundfile + '">');
	document.write('<param name="autoplay" value="true">');
	document.write('<param name="controller" value="true">');
	document.write('<param name="bgcolor" value="#FF9900">');
	document.write('<embed src="resources/sounds/' + soundfile + '" autostart="true" loop="false" width="300" height="42" controller="true" bgcolor="#FF9900"></embed>');
	document.write('</object>');
	document.write('</div>');
}
function playvideo(videofile, videowidth, videoheight){
	videoheight = videoheight + 45;
	document.write('<OBJECT id="mediaPlayer" width="' + videowidth + '" height="' + videoheight + '"');
    document.write('classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"');
    document.write('codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"');
    document.write('standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">');
    document.write('<param name="fileName" value="resources/videos/' + videofile + '">');
    document.write('<param name="animationatStart" value="true">');
    document.write('<param name="transparentatStart" value="false">');
    document.write('<param name="autoStart" value="true">');
    document.write('<param name="showControls" value="true">');
    document.write('<param name="loop" value="false">');
    document.write('<EMBED type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" id="mediaPlayer" name="mediaPlayer" displaysize="4" autosize="-1" showcontrols="true" showtracker="-1" width="' + videowidth + '" height="' + videoheight + '" src="resources/videos/' + videofile + '" autostart="true" designtimesp="5311" loop="false"></EMBED>');
	document.write('</OBJECT>');
}
function homepageflash(){
	document.write('<OBJECT id=ring1_small codeBase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0 height=107 width=99 align=middle classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000>');
	document.write('<PARAM NAME="_cx" VALUE="2619">');
	document.write('<PARAM NAME="_cy" VALUE="2831">');
	document.write('<PARAM NAME="FlashVars" VALUE="">');
	document.write('<PARAM NAME="Movie" VALUE="resources/ring/ring1_small.swf">');
	document.write('<PARAM NAME="Src" VALUE="resources/ring/ring1_small.swf">');
	document.write('<PARAM NAME="WMode" VALUE="Transparent">');
	document.write('<PARAM NAME="Play" VALUE="-1">');
	document.write('<PARAM NAME="Loop" VALUE="-1">');
	document.write('<PARAM NAME="Quality" VALUE="High">');
	document.write('<PARAM NAME="SAlign" VALUE="">');
	document.write('<PARAM NAME="Menu" VALUE="0">');
	document.write('<PARAM NAME="Base" VALUE="">');
	document.write('<PARAM NAME="AllowScriptAccess" VALUE="sameDomain">');
	document.write('<PARAM NAME="Scale" VALUE="ShowAll">');
	document.write('<PARAM NAME="DeviceFont" VALUE="0">');
	document.write('<PARAM NAME="EmbedMovie" VALUE="0">');
	document.write('<PARAM NAME="BGColor" VALUE="E1EAE7">');
	document.write('<PARAM NAME="SWRemote" VALUE="">');
	document.write('<PARAM NAME="MovieData" VALUE="">');
	document.write('<PARAM NAME="SeamlessTabbing" VALUE="1">');
	document.write('<PARAM NAME="Profile" VALUE="0">');
	document.write('<PARAM NAME="ProfileAddress" VALUE="">');
	document.write('<PARAM NAME="ProfilePort" VALUE="0">');
	document.write('<PARAM NAME="AllowNetworking" VALUE="all">');
	document.write('<embed src="resources/ring/ring1_small.swf" menu="false" quality="high" wmode="transparent" bgcolor="#e1eae7" width="99" height="107" name="ring1_small" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</OBJECT>');
}
