
//Flash9 È­ÀÏ Object ÅÂ±× »ðÀÔ(ÀÏ¹Ý)
function swf(id, src, w, h, wmode_div)
{

	var trans_str ="";

	if(wmode_div=="" || wmode_div==null){
		trans_str="windows";
	}else if(wmode_div=="opa"){
		trans_str="opaque";
	}else if(wmode_div=="tran"){
		trans_str="transparent";
	}else{
		trans_str="windows";
	}

	// -----------------------------------------------------------------------------
	// Globals
	// Major version of Flash required
	var requiredMajorVersion = 9;
	// Minor version of Flash required
	var requiredMinorVersion = 0;
	// Minor version of Flash required
	var requiredRevision = 28;
	// -----------------------------------------------------------------------------
	
	// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
	var hasProductInstall = DetectFlashVer(6, 0, 65);

	// Version check based upon the values defined in globals
	var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

	if ( hasProductInstall && !hasRequestedVersion ) {
		// DO NOT MODIFY THE FOLLOWING FOUR LINES
		// Location visited after installation is complete if installation is required
		var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
		var MMredirectURL = window.location;
		document.title = document.title.slice(0, 47) + " - Flash Player Installation";
		var MMdoctitle = document.title;

		
		AC_FL_RunContent(
			"src", "/js/playerProductInstall",
			"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
			"width", w,
			"height", h,
			"align", "middle",
			"id", id,
			"quality", "high",
			"bgcolor", "#ffffff",
			"wmode", trans_str,
			"name", id,
			"allowScriptAccess","always",
			"type", "application/x-shockwave-flash",
			"pluginspage", "http://www.adobe.com/go/getflashplayer"
		);
	} else if (hasRequestedVersion) {
		// if we've detected an acceptable version
		// embed the Flash Content SWF when all tests are passed

		AC_FL_RunContent(
				"src", src,
				"width", w,
				"height", h,
				"align", "middle",
				"id", id,
				"quality", "high",
				"bgcolor", "#ffffff",
				"wmode", trans_str,
				"name", id,
				"allowScriptAccess","always",
				"type", "application/x-shockwave-flash",
				"pluginspage", "http://www.adobe.com/go/getflashplayer"
		);
	} else {  // flash is too old or we can't detect the plugin
		var alternateContent = 'Alternate HTML content should be placed here. '
		+ 'This content requires the Adobe Flash Player. '
		+ '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
		document.write(alternateContent);  // insert non-flash content
	}
}


//µ¿¿µ»ó È­ÀÏ Object ÅÂ±× »ðÀÔ
function vod_mp(src, w, h)
{
	html = '';
	html += '<object id="mediaPlayer" codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,0902';
	html += 'type=application/x-oleobject height='+h+' standby="Loading Microsoft?Windows?Media Player components..." width='+w+' classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95>';
	html +=	'<param name="Filename" value="'+src+'">';
    html +=	'    		<param name="AutoStart" value="1">';
	html +=	'	        <param name="AutoSize" value="1">';
    html +=	'	    	<param name="AutoResize" value="1">';
	html +=	'    	    <param name="AnimationAtStart" value="1">';
    html +=	'    		<param name="TransparentAtStart" value="0">';
	html +=	'	        <param name="AutoRewind" value="0">';
    html +=	'	    	<param name="ShowDisplay" value="0">';
	html +=	'    	    <param name="ClickToPlay" value="1">';
	html +=	'        	<param name="EnableContextMenu" value="0">';
	html +=	'	        <param name="ShowPositionControls" value="0">';
    html +=	'    		<param name="ShowStatusBar" value="1">';
	html +=	'        <embed type="application/x-mplayer2"pluginspage ="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"';
    html +=	' 	    src="'+src+'" width='+w+' height='+h+'>';
    html +=	'    	</embed>';
	html +=	'		</object>';
	document.write(html);
}

