
	function Right(str, n){
		if (n <= 0)
		   return "";
		else if (n > String(str).length)
		   return str;
		else {
		   var iLen = String(str).length;
		   return String(str).substring(iLen, iLen - n);
		}
	}


	// Set up the video players for the Videos & Podcasts page
	
	if (document.getElementById('mhVideoPage')) {
		var xDiv = document.getElementById('mhContents');
		xNodes = xDiv.getElementsByTagName('A');
		for (var i = 0;  i < xNodes.length; i++) {
			xNode = xNodes[i];
			if (xNode.href.indexOf('youtube') > 0) {
				xYouTubeID = Right(xNode.href, 11);
				xTitle = xNode.innerHTML.replace("'", "&acute;");
				xNode.href = "javascript:mhShowVideo('" + xYouTubeID + "','" + xTitle + "','yt')";
			};
			if (xNode.href.indexOf('.wmv') > 0) {
				xTitle = xNode.innerHTML.replace("'", "&acute;");
				xNode.href = "javascript:mhShowVideo('" + xNode.href + "','" + xTitle + "','wmv')";
			}
			if (xNode.href.indexOf('.mp3') > 0) {
				xTitle = xNode.innerHTML.replace("'", "&acute;");
				xNode.href = "javascript:mhShowVideo('" + xNode.href + "','" + xTitle + "','wmv')";
			}
		};
	};
	
