function showPlayer(player){

	var players = document.getElementById("players");
	var all = players.getElementsByTagName("div");
	for(var i=0;i<all.length;i++){
		all[i].style.display = "none";
	}
	var thisPlayer = document.getElementById(player);
	thisPlayer.style.display = "block";
}

function playReal(file){
	real.SRC=file.value;
	real.DoPlay();
}

var WMVFile = "";

//windowsý�岥�������Ƶ
function playWMV(file){
	var media = document.getElementById("WMP");
	media.URL = file.value;
	media.controls.play();
	WMVFile = file.value;
}

//windowsý�岥����ȫ����ʾ
function WMPFullScreen(){
	var media = document.getElementById("WMP");
	var openWin = window.open("","Windows媒体播放器","toolbar=no, menubar=no,resizable=no");
	
	openWin.title = "Windows媒体播放器";
	openWin.moveTo(0,0);
	openWin.resizeTo(screen.availWidth,screen.availHeight);

	var mWidth= screen.width - 30;
	var mHeight = screen.height - 100;

	openWin.document.write("<object id=\"WMP\" classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'  width=" + mWidth + " height=" + mHeight + " codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby=Loading Microsoft? Windows Media? Player components... type=application/x-oleobject>"); 
	openWin.document.write("<param name='URL' value='" + WMVFile + "'> ");
	openWin.document.write("<PARAM NAME='UIMode' VALUE='full'>");
	openWin.document.write("<PARAM NAME='AutoStart' VALUE='true'>");
	openWin.document.write("<PARAM NAME='Enabled' VALUE='true'>"); 
	openWin.document.write("<PARAM NAME='enableContextMenu' VALUE='true'>"); 
	openWin.document.write("<param name='WindowlessVideo' VALUE='true'>");
	openWin.document.write("</object>");
	openWin.document.close();
}