
// ÇÃ·¡½Ã 
function Swf_View(URL,SizeX,SizeY,LnkId,Frm,Flag)
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
    document.write('	width="'+SizeX+'" height="'+SizeY+'"  id="'+LnkId+'" align="middle">');
    document.write('	<param name="movie"     value="'+URL+'" />');
    document.write('	<param name="quality"   value="high" />');
    if ( Flag == null || Flag != 'N' )
    {
        document.write('	<param name="wmode"     value="transparent"/>');
    }
	document.write('	<param name="allowScriptAccess" value="always"/> ');
	document.write('	<param name="base" value="." />');
    document.write('	<embed base="." src="'+URL+'" quality="high" width="'+SizeX+'" height="'+SizeY+'" align="middle" ');
	 if ( Flag == null || Flag != 'N' )
    {
        document.write('       wmode="transparent" ');
    }
    document.write('	type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" swLiveConnect=true name="'+LnkId+'"  />'   );
    document.write('</embed></object>');
	
	if ( Frm == 'Y' ) {
		eval("window." + LnkId + " = document.forms[0]."+ LnkId +"; ");
	}
}

// ÇÃ·¡½Ã 
function Swf_View_Bic(URL,LnkId,Frm,Flag)
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
    document.write('	width="100%" height="100%"  id="'+LnkId+'" align="middle">');
    document.write('	<param name="movie"     value="'+URL+'" />');
    document.write('	<param name="quality"   value="high" />');
    if ( Flag == null || Flag != 'N' )
    {
        document.write('	<param name="wmode"     value="transparent"/>');
    }
	document.write('	<param name="allowScriptAccess" value="always"/> ');
	document.write('	<param name="base" value="." />');
    document.write('	<embed base="." src="'+URL+'" quality="high" width="100%" height="100%" align="middle" ');
	 if ( Flag == null || Flag != 'N' )
    {
        document.write('wmode="transparent" ');
    }
    document.write('	type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" swLiveConnect=true name="'+LnkId+'"  />'   );
    document.write('</embed></object>');
	
	if ( Frm == 'Y' ) {
		eval("window." + LnkId + " = document.forms[0]."+ LnkId +"; ");
	}
}

 
function cleanup() {
 __flash_unloadHandler = function(){
  externalProbSet = true;
  obj = document.getElementsByTagName('OBJECT');
  for (i=0;i<obj.length;i++){
   var theObj = eval(obj[i]);
   theObj.style.display = "none";
   for (var prop in theObj){
    if (typeof(theObj[prop]) == "function"){
     theObj[prop]=null
    }
   }
  }
 }
 if (window.onunload != __flash_unloadHandler){
  __flash_savedUnloadHandler = window.onunload;
  window.onunload = __flash_unloadHandler;
 }
}
window.onbeforeunload=cleanup;


// µ¿¿µ»ó
function playIt(){
	if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) {
		MediaPlayer1.Play();
	}
}

function pauseIt(){
	if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) {			
		MediaPlayer1.Pause();
	} 
}

function stopIt(){
	if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) {
		MediaPlayer1.Stop();
		MediaPlayer1.CurrentPosition=0;
	} 
}
function Wmv_View(URL,SizeX,SizeY,Flag)
{
    document.write('<object id="MediaPlayer1" classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Microsoft?Windows?Media Player components..." type="application/x-oleobject" ' );
    document.write(' width="'+SizeX+'" height="'+SizeY+'" >'                                 );
	document.write('	<param name="transparentAtStart" value="True" />'	);
	document.write('	<param name="transparentAtStop" value="True" />'	);
	document.write('	<param name="AnimationAtStart" value="False" />'	);
	document.write('	<param name="AutoStart" value="true" />'	);
	document.write('	<param name="AutoRewind" value="true" />'	);
	document.write('	<param name="DisplaySize" value="0" />'	);
	document.write('	<param name="AutoSize" value="false" />'	);
	document.write('	<param name="ShowDisplay" value="false" />'	);
	document.write('	<param name="ShowStatusBar" value="false" />'	);
	if ( Flag == null || Flag != 'F' ) {
       document.write('	<param name="ShowControls" value="true" />'	);
    } else {
        document.write('	<param name="ShowControls" value="false" />'	);
  	}	
	document.write('	<param name="EnableContextMenu" value="False" />'	);
	document.write('	<param name="FileName" value="'+URL+'" />'	);
	document.write('	<param name="Volume" value="0" />'	);
    document.write('	<embed src="'+URL+'"  displaysize=0 showcontrols=0 autostart=0 '	);
    document.write('	width="'+SizeX+'" height="'+SizeY+'"name="MediaPlayer1" '	);
    document.write('	type="application/x-mplayer2" pluginspage = "http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" />'   );
    document.write('	</embed></object>	'	);
}

function Wmv_Lstn(URL,SizeX,SizeY)
{
    document.write('	<embed src="'+URL+'" loop=true playcount=infinite width="'+SizeX+'" height="'+SizeY+'"></embed>	'	);
}