/*
 **********************************************************************
 *  ½Ã½ºÅÛ ¸í		: ¿¥¾¾½ºÄù¾î À¥»çÀÌÆ®
 *  ÇÁ·Î±×·¥¸í		: mcsquareControl.js
 *  ÀÛ¼ºÀÚ 			: ¹é¿µ¼÷
 *  ÀÛ¼ºÀÏ 			: 2006/03/13
 *  °³  ¿ä			: ActiveX ÄÁÆ®·Ñ ¿ÜºÎ ÆÄÀÏ
 *  Æ¯ÀÌ»çÇ×		: 
 *  History			: 
 *  ¼öÁ¤ÀÏ			: 
 *  ¼öÁ¤ÀÚ			: 
 ***********************************************************************
 */

/* ======================================================================
Function :  ¸ÞÀÎÈ­¸é ÇÃ·¡½¬ 
Path	 :  /default.asp
========================================================================= */
function lfn_main(rpath,rwidth,rheight){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+rwidth+'" height="'+rheight+'" hspace="0" vspace="0" VIEWASTEXT>');
document.write('<param name="movie" value="'+rpath+'">');
document.write('<param name="quality" value="high">');
document.write('<PARAM NAME="wmode" VALUE="transparent">');
document.write('<embed src="'+rpath+'" width="'+rwidth+'" height="'+rheight+'" hspace="0" vspace="0"  wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>');

}
/*
function lfn_main(rpath,rwidth,rheight){
document.write('<OBJECT classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width = "550" height = "400" id = "movie" align = "">');
document.write('	<PARAM name = "movie" value = "'+rpath+'">');
document.write('	<PARAM name = "quality" value = "high">');
document.write('	<PARAM name = "bgcolor" value = "#FFFFFF">');
document.write('	<EMBED src = "'+rpath+'" quality = "high" bgcolor = "#FFFFFF"  width = "'+rwidth+'" height = "'+rheight+'" name = "movie" align = "" type = "application/x-shockwave-flash" pluginspage = "http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>');
}
*/
function lfn_main2(rpath,rwidth,rheight){
document.write('<OBJECT classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width = "550" height = "400" id = "movie" align = "">');
document.write('	<PARAM name = "movie" value = "'+rpath+'">');
document.write('	<PARAM name = "quality" value = "high">');
document.write('	<PARAM name = "bgcolor" value = "#FFFFFF">');
document.write('<PARAM NAME="wmode" VALUE="transparent">');
document.write(' <EMBED src = "movie.swf"  wmode="transparent" quality = "high"  bgcolor = "#FFFFFF"  width = "'+rwidth+'" height = "'+rheight+'" name = "movie" align = "" type = "application/x-shockwave-flash" pluginspage = "http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>');

}




/*
function _ubimode_asp_GetTagScript0(){
	var sTag = ''
		+ '<OBJECT id=MediaPlayer1 '
		+ '            codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,05,0809 '
		+ '            type=application/x-oleobject height=134 '
		+ '            standby="Loading Microsoft Windows Media Player components..." '
		+ '            width=200 classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95 '
		+ '            name=MediaPlayer1>'
		+ '                    <PARAM NAME="transparentAtStart" VALUE="True">'
		+ '                    <PARAM NAME="transparentAtStop" VALUE="False">'
		+ '                    <PARAM NAME="AnimationAtStart" VALUE="False">'
		+ '                    <PARAM NAME="Loop" VALUE="true">'
		+ '                    <PARAM NAME="AutoStart" VALUE="True">'
		+ '                    <PARAM NAME="AutoRewind" VALUE="true">'
		+ '                    <PARAM NAME="SendMouseClickEvents" VALUE="True">'
		+ '                    <PARAM NAME="DisplaySize" VALUE="0">'
		+ '                    <PARAM NAME="AutoSize" VALUE="False">'
		+ '                    <PARAM NAME="ShowDisplay" VALUE="False">'
		+ '                    <PARAM NAME="ShowControls" VALUE="False">'
		+ '                    <PARAM NAME="ShowTracker" VALUE="True">'
		+ '                    <PARAM NAME="FileName" VALUE="http://www.dyenc.co.kr/images/digitafocus-1.wmv">'
		+ '                    <PARAM NAME="Enabled" VALUE="1">'
		+ '                    <PARAM NAME="ShowPositionControls" VALUE="1">'
		+ '                    <PARAM NAME="ClickToPlay" VALUE="0">'
		+ '                    <PARAM NAME="CursorType" VALUE="1">'
		+ '                    <embed src="True" width="200" height="134" autostart="True" loop="true" transparentatstart="True" transparentatstop="False" animationatstart="False" autorewind="true" sendmouseclickevents="True" displaysize="0" autosize="False" showdisplay="False" showcontrols="False" showtracker="True" filename="mov/sample.asf" enabled="1" showpositioncontrols="1" clicktoplay="0" cursortype="1" name="MediaPlayer1" ></embed> '
		+ '                  </OBJECT>'
		+ '';
	document.write (sTag);
}
*/

/* ======================================================================
Function :  TV palyer 
Path	 :  /files/tv/vod_pop.asp
========================================================================= */
function lfn_vodPlay(){
document.write('<object id="mediaPlayer" width=320 height=240 classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Microsoft?Windows?Media Player components..." type="application/x-oleobject" VIEWASTEXT> ');
document.write('<param name="FileName" value="<%=vod_name%>"> ');
document.write('<PARAM NAME="AnimationAtStart" VALUE="false"> ');
document.write('<PARAM NAME="TransparentAtStart" VALUE="true"> ');
document.write('<PARAM NAME="AutoStart" VALUE="true"> ');
document.write('<PARAM NAME="AutoRewind" VALUE="true"> ');
document.write('<PARAM NAME="ShowDisplay" VALUE="false"> ');
document.write('<PARAM NAME="ShowStatusBar" VALUE="1"> ');
document.write('<PARAM NAME="ShowControls" VALUE="1"> ');
document.write('<PARAM NAME="ShowPositionControls" VALUE="1"> ');
document.write('<PARAM NAME="EnableContextMenu" VALUE="false"> ');
document.write('<embed type="application/x-mplayer2"pluginspage = "http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"src="<%=vod_name%>"width=320 height=240 displaysize=0 showcontrols=0 autostart=0></embed>  ');

}