
	// Audio Player //
	
	function WriteAudioPlayer(pFile) {
		document.write('<object 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="25" height="17" class="SDAudio">');
		document.write('<param name="allowScriptAccess" value="sameDomain" />');
		document.write('<param name="movie" value="SDAudio.swf?thisFile=' + pFile + '" />');
		document.write('<param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />');
		document.write('<embed src="SDAudio.swf?thisFile=' + pFile + '" quality="high" bgcolor="#ffffff" width="25" height="17" class="SDAudio" allowScriptAccess="sameDomain" ');
		document.write('type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
	}
	
	// Create FLVPlayer Video Player //
	function CreateVideoPlayer(pPlayerID, pURL) {
		var x = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="502" height="321" id="FLVPlayer">' + 
				'<param name="movie" value="FLVPlayer_Progressive.swf" />' + 
				'<param name="salign" value="lt" />' +
				'<param name="quality" value="high" />' +
				'<param name="scale" value="noscale" />' +
				'<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=av/' + pURL + '&autoPlay=true&autoRewind=false" />' +
				'<embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=av/' + pURL + '&autoPlay=true&autoRewind=false" quality="high" scale="noscale" width="502" height="321" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />' +
				'</object>			';
		var xDiv = document.getElementById(pPlayerID);
		xDiv.innerHTML = x;				
	}
	
	// Create flowplayer video player //
	function CreateFlowPlayer(pPlayerID, pURL) {
		var x = '<a href="av/' + pURL + '.flv" style="display:block;width:480px;height:295px" id="FlowPlayer"></a>';
		var xDiv = document.getElementById(pPlayerID);
		xDiv.innerHTML = x;
		flowplayer("FlowPlayer", "flowplayer-3.1.5.swf");
	}
		
	//A YouTube embed //
	gDivID = '';
	function YouTubePlayer(pDivID, pPlayerID, pID) {
		var xVids = new Array (
			'<object width="480" height="295" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="http://www.youtube.com/v/arZqdNfn66M&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6&autoplay=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/arZqdNfn66M&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object>',
			'<object width="480" height="295" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="http://www.youtube.com/v/RwGzse0z718&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6&autoplay=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/RwGzse0z718&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object>',
			'<object width="480" height="295" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="http://www.youtube.com/v/vAtMF49bR28&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6&autoplay=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/vAtMF49bR28&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object>',
			'<object width="480" height="295" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="http://www.youtube.com/v/k1r4GX0GzxA&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6&autoplay=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/k1r4GX0GzxA&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object>',
			'<object width="460" height="295" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="http://www.youtube.com/v/osZs7xvn7Wo&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6&autoplay=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/osZs7xvn7Wo&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object>',
			'',
			'<div style="margin: 16px 0px 15px 0px; background-color: #266806"><object width="480" height="264"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=7196163&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=276907&amp;fullscreen=1&autoplay=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=7196163&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=276907&amp;fullscreen=1&autoplay=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="480" height="264"></embed></object></div>',
			'<div style="margin: 16px 0px 15px 0px; background-color: #266806"><object width="480" height="264"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=7196373&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=276907&amp;fullscreen=1&autoplay=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=7196373&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=276907&amp;fullscreen=1&autoplay=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="480" height="264"></embed></object></div>',
			'<object width="460" height="295" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="http://www.youtube.com/v/hQIRUobCQE8&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6&autoplay=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/hQIRUobCQE8&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object>',
			'<object width="480" height="295" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="http://www.youtube.com/v/sSnvre0kTTY&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6&autoplay=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/sSnvre0kTTY&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object>',
			'<object width="480" height="295" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="http://www.youtube.com/v/lVEmqT32fMI&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6&autoplay=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/lVEmqT32fMI&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object>',
			'<object width="480" height="295" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="http://www.youtube.com/v/SSAKY_nmtBI&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6&autoplay=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/SSAKY_nmtBI&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object>',
			'<object width="480" height="295" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="http://www.youtube.com/v/1vyHtYwQz-0&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6&autoplay=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/1vyHtYwQz-0&hl=en&fs=1&rel=0&color1=0x006699&color2=0x54abd6&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object>'
		);
		var xHold = new Array (
			'<object width="460" height="295" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="FLVPlayer_Progressive.swf" /><param name="salign" value="lt" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=av/Home2&autoPlay=true&autoRewind=false" /><embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=av/Home2&autoPlay=true&autoRewind=false" quality="high" scale="noscale" width="460" height="295" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>'
		);
		var x = xVids[pID-1];
		var xDiv = document.getElementById(pPlayerID);
		xDiv.innerHTML = x;				
		if (gDivID.length >= 1) {
			document.getElementById(gDivID).className = '';
		}
		document.getElementById(pDivID).className = 'White';
		gDivID = pDivID;
	}
	
	function Dud() {
		alert('hi');
		document.getElementById('TVPlayer').style.visibility = 'visible';
	}
	
	
	// Fix PNG Transparency in Win IE 5.5 & 6 -- http://homepage.ntlworld.com/bobosola. Updated 18-Jan-2006. //
	// <img src="xyz.png" alt="foo" width="10" height="20" onload="fixPNG(this)">                            //

function fixPNG(myImage) 
{
	var arVersion = navigator.appVersion.split("MSIE");
	var version = parseFloat(arVersion[1]);
	if ((version >= 5.5) && (version < 7) && (document.body.filters)) 
	{
	 var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
	 var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
	 var imgTitle = (myImage.title) ? 
							 "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' "
	 var imgStyle = "display:inline-block;" + myImage.style.cssText
	 var strNewHTML = "<span " + imgID + imgClass + imgTitle
								+ " style=\"" + "width:" + myImage.width 
								+ "px; height:" + myImage.height 
								+ "px;" + imgStyle + ";"
								+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
								+ "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>"
	 myImage.outerHTML = strNewHTML	  
	}
}



