function OpenMoviePlayer( type, source, movietitle ){
	var sHTML = '';
	var width = 500;
	var height = 500;
	if (type == 'avi' || type == 'mpg'  || type == 'wmv'){
		sHTML = '<object classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" standby="Loading Microsoft Windows Media Player components..."'
			  + ' width="'+ width +'" height="'+ height +'">'
			  + '<param name="Filename" value="'+ source +'">'
			  + '<param name="AnimationAtStart" value="true">'
			  + '<param name="stretchToFit" vale="false">'
			  + '<param name="uiMode" value="full">'
			  + '<param name="playCount" value="1">'
			  + '<param name="enabled" value="true">'
			  + '<param name="AutoStart" value="true">'
			  + '<param name="TransparentAtStart" value="false">'
			  + '<param name="ShowControls" value="true">'
			  //+ '<param name="ShowStatusBar" value="true">'
			  //+ '<param name="ShowDisplay" value="true">'
			  + '<param name="PlayCount" value="true">'
			  + '<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" width="'+ width +'" height="'+ height +'" src="'+ source +'" showcontrols="true" autostart="true" enabled="true" uimode="1" stretchtofit="false" playeveryframe="false"/>'
			  + '</object>'
	} else if (type == 'mov'){
		sHTML = '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"'
			  + ' width="'+ width +'" height="'+ height +'">'
			  + '<param name="target" value="QuickTimePlayer">'
			  + '<param name="href" value="'+ source +'">'
			  + '<param name="autoplay" value="true">'
			  + '<param name="loop" value="true">'
			  + '<param name="cache" value="true">'
			  + '<param name="targetcache" value="true">'
		      + '<param name="bgcolor" value="#000000">'
			  + '<param name="src" value="'+ source +'">'
			  + '<param name="controller" value="true">'
			  + '<param name="pluginspage" value="http://www.apple.com/quicktime/download/">'
			  + '<embed src="'+ source +'" width="'+ width +'" height="'+ height +'" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/" controller="true" loop="true" bgcolor="#000000" cache="true" targetcache="true" autoplay="true" href="'+ source +'" target="QuickTimePlayer"/>'
			  + '</object>'
	} else if (type == 'rm'){
		sHTML = '<object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"'
			  + ' width="'+ width +'" height="'+ (height-31) +'">'
			  + '<param name="controls" value="ImageWindow">'
			  + '<param name="MaintainAspect" value="true">'
			  + '<param name="Center" value="true">'
			  + '<param name="AutoStart" value="true">'
			  + '<param name="BackgroundColor" value="#000000">'
			  + '<param name="Console" value="video1">'//Real
			  + '<param name="src" value="'+ source +'">'
			  + '<param name="NoLogo" value="true">'
			  + '<embed backgroundcolor="#000000" maintainaspect="true" center="true" controls="ImageWindow" console="video1" src="'+ source +'" width="'+ width +'" height="'+ (height-31) +'" autostart="true"/>'//type="audio/x-pn-realaudio-plugin"
			  + '</object>'
			  + '<object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"'
			  + ' width="'+ width +'" height="31">'
			  + '<param name="src" value="'+ source +'">'
			  + '<param name="Console" value="video1">'
			  + '<param name="controls" value="ControlPanel">'
			  + '<embed controls="ControlPanel" console="video1" width="'+ width +'" height="31"/>'//type="audio/x-pn-realaudio-plugin"
			  + '</object>';
	}
	/*win = new dWindow();
	win.init('movie_player', width, height, ImgPath, sHTML );
	win.Open();*/
	win = makePopUp('',width-20,height-20);
	win.document.open("text/html");
	win.document.write('<html><head><title>'+movietitle+'</title></head><body bgcolor="#000000" style="margin:0px;padding:0px">'+sHTML+'</body></html>');
	win.document.close();
	return false;
}
