function RunASX( moviePath, movieWidth, movieHeight, isMute ) {

	isMute = (isMute != '') ? isMute : false;

	var conf = {
		//1=true  0=false
		// ファイルのパス
		FileName             : moviePath,
		// 自動再生
		AutoStart            : 1,
		// 繰り返し回数
		PlayCount            : 1,
		// 音量
		//Volume               : 100,
		// ミュート
		Mute                 : isMute,
		// 情報の表示
		ShowDisplay          : 0,
		// ステータスバーの表示
		ShowStatusBar        : 1,
		// コントロールバーの表示
		// (ShowAudioControls、ShowPositionControlsを含む)
		ShowControls         : 1,
		// 音量ツマミの表示
		ShowAudioControls    : 1,
		// 再生ボタン等の表示
		ShowPositionControls : 1
	}

	var tag = '';

	tag += '<object';
	tag += ' id="MediaPlayer"';
	tag += ' classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"';
	tag += ' codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"';
	tag += ' standby="Loading Microsoft Windows Media Player components..."';
	tag += ' type="application/x-oleobject"';
	tag += ' width="' + movieWidth + '" height="' + movieHeight + '"';
	tag += '>';

	for (var key in conf) {
		tag += '<param name="' + key + '" value="' + conf[key] + '">';
	}

	tag += '<embed';
	tag += ' type="application/x-mplayer2"';
	tag += ' pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"';
	tag += ' width="' + movieWidth + '" height="' + movieHeight + '"';

	conf['Mute'] = (conf['Mute']) ? 1 : 0; 
	for (var key in conf) {
		if (key == 'FileName') tag += ' src="' + conf[key] + '"';
		tag += ' ' + key.toLowerCase() + '="' + conf[key] + '"';
	}

	tag += '>';
	tag += '</embed>';
	tag += '</object>';
	
	document.write(tag);

}





