	function WriteHomeEnvPlayer() {
		document.write('<object class="PeacePlayerX" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"');
		document.write('width="250" height="121" align="left">');
		document.write('<param name="allowScriptAccess" value="always" />');
		document.write('<param name="movie" value="HomeEnvPlayer.swf" />');
		document.write('<param name="quality" value="high" />');
		document.write('<embed class="PeacePlayerX" src="HomeEnvPlayer.swf" quality="high" width="250" height="121" align="left" allowScriptAccess="always"');
		document.write('type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		document.write('</object>');
	}

	function WritePeacePlayer() {
		document.write('<object class="PeacePlayerX" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"');
		document.write('width="260" height="121" align="left">');
		document.write('<param name="allowScriptAccess" value="always" />');
		document.write('<param name="movie" value="PeacePlayer.swf" />');
		document.write('<param name="quality" value="high" />');
		document.write('<embed class="PeacePlayerX" src="PeacePlayer.swf" quality="high" width="260" height="121" align="left" allowScriptAccess="always"');
		document.write('type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		document.write('</object>');
	}

	function WriteEnvironmentPlayer() {
	    document.write('<object class="PeacePlayerX" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"');
	    document.write('width="260" height="121" align="left">');
	    document.write('<param name="allowScriptAccess" value="always" />');
	    document.write('<param name="movie" value="EnvironmentPlayer.swf" />');
	    document.write('<param name="quality" value="high" />');
	    document.write('<embed class="PeacePlayerX" src="EnvironmentPlayer.swf" quality="high" width="260" height="121" align="left" allowScriptAccess="always"');
	    document.write('type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	    document.write('</object>');
	}

	function WriteSmallPlayer(pFile, pPath) {
		document.write('<object class="SmallPlayerX" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
		document.write('width="32" height="19" class="SDAudio">');
		document.write('<param name="allowScriptAccess" value="sameDomain" />');
		document.write('<param name="movie" value="' + pPath + 'SmallPlayer.swf?thisFile=' + pFile + '" />');
		document.write('<param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />');
		document.write('<embed class="SmallPlayerX" src="' + pPath + 'SmallPlayer.swf?thisFile=' + pFile + '" quality="high" bgcolor="#ffffff" width="32" height="19" class="SDAudio" allowScriptAccess="sameDomain" ');
		document.write('type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
	}

	// Video Player //

	function getDocHeight() {
	    var D = document;
	    return Math.max(
			Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
			Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
			Math.max(D.body.clientHeight, D.documentElement.clientHeight)
		);
	}

	function mhShowVideo(pID) {
	    var xEmbed = document.getElementById('Video' + pID).value;
	    document.getElementById('mhVideoPlayer').innerHTML = xEmbed.replace('&quot', '"');

	    // Set up the blue background
	    var xVideoBlue = document.getElementById('mhVideoBlue');
	    xVideoBlue.style.height = getDocHeight().toString() + 'px';
	    xVideoBlue.style.visibility = 'visible';

	    // Center the video player window
	    var xVideoWindow = document.getElementById('mhVideoWindow');
	    xVideoWindow.style.left = ((document.documentElement.clientWidth - 485) / 2).toString() + 'px';
	    xVideoWindow.style.top = (document.documentElement.scrollTop + 20).toString() + 'px';

	    // Show the video player window
	    xVideoWindow.style.visibility = 'visible';
	}

	function mhCloseVideo() {
	    document.getElementById('mhVideoPlayer').innerHTML = ''
	    document.getElementById('mhVideoWindow').style.visibility = 'hidden';
	    document.getElementById('mhVideoBlue').style.visibility = 'hidden';
	}
