
// 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)">                            //
	
	var arVersion = navigator.appVersion.split("MSIE")
	var version = parseFloat(arVersion[1])
	
	function fixPNG(myImage) 
	{
		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	  
		}
	}
	

// 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(pEmbed, pTitle, pType) {
		document.getElementById('mhVideoTitle').innerHTML = pTitle;
		if (pType == 'yt') {
			xEmbed = '<object width="445" height="364" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="http://www.youtube.com/v/' + pEmbed 
				+ '&hl=en&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>'
				+ '<embed src="http://www.youtube.com/v/' + pEmbed + '&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" '
				+ 'allowfullscreen="true" width="445" height="364"></embed></object>';
		}
		if (pType == 'wmv') {
			xEmbed = '<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="445" height="364">'
				+ '<param name="Filename" value="' + pEmbed + '">'
				+ '<embed id="m1" name="m1" src="' + pEmbed + '" type="application/x-mplayer2" width="445" height="364"></embed></object>';
		}
		document.getElementById('mhVideoPlayer').innerHTML = xEmbed;
	
		// 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';
	}
