 
 
 /************************************************************************
  * embed a video player
  ***********************************************************************/
 function embedVideoPlayer(width, height, source, id) {
 
 		var embedVid = "";
 		var elID = (id != undefined) ? id : "vidPlayer";
		embedVid += '<object id="vidPlayer" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" type="application/x-oleobject" width="' + width + '" height="' + height + '" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" standby="Loading Microsoft Windows Media Player components..."> ';
		embedVid += '	<param name="url" value="' + source + '" /> <param name="autostart" value="false" /> <param name="ShowStatusBar" value="true" /> <param name="volume" value="100" /> ';
		embedVid += '	<!--[if !IE]> <--> ';
		embedVid += '	<object width="' + width + '" height="' + height + '" type="application/x-mplayer2" > ';
		embedVid += '		<param name="fileName" value="' + source + '" /> <param name="autostart" value="0" /> <param name="ShowStatusBar" value="1" /> <param name="volume" value="100" /> ';
		embedVid += '	</object> ';
		embedVid += '	<!--> <![endif]--> ';
		embedVid += '</object>	';
		document.write(embedVid);
 
 }
 
  /************************************************************************
  * make the video player full screen
  * @param wmvPlayer is string name of player id
  ***********************************************************************/
  function enterFullScreen(wmvPlayer) {
  	
  	var player = document.getElementById(wmvPlayer);
  	//if (player.DisplaySize == 3) {
  		player.fullScreen = true;
  	//}  	
  }
  
  
function popupSLPlayer(video)
{
	window.open(themeDir + "../../learn/slVideo.aspx?video=" + video, "_blank", "location=0,status=0,scrollbars=0,width=328,height=315,resizable=0;");
	return false;
}
