// JavaScript Document

//var playerH = 414;
//var playerW = 512;

	try {
		if ( playerV == "" ) {}
	} catch (e) {
		playerV = 0;
	}

var playerU = "http://mickey-web.net/script/"+ppath+"?d="+(new Date()).getTime().toString()+"&vid=" + playerV ;

var MM_contentVersion = 8;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
var words = navigator.plugins["Shockwave Flash"].description.split(" ");
for (var i = 0; i < words.length; ++i)
{
if (isNaN(parseInt(words[i])))
continue;
var MM_PluginVersion = words[i]; 
}
var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
&& (navigator.appVersion.indexOf("Win") != -1)) {
document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
document.write('on error resume next \n');
document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
document.write('</SCR' + 'IPT\> \n');
}
if ( MM_FlashCanPlay ) {
	/// 自動再生設定
	try {
		if ( mw_player_auto == true ) {}
	} catch (e) {
		mw_player_auto = false;
	}
	if ( window.location.href.indexOf("mickey-web.net/watch") > 0 || mw_player_auto == true ) {
		playerV += "&mode=self";
	} else {
		playerV += "&mode=outer";
	}

	/// コメント表示
	try {
		if ( mw_player_comment == "" ) {}
	} catch (e) {
		mw_player_comment = "";
	}

	/// タイトル表示
	try {
		if ( mw_player_title == "" ) {}
	} catch (e) {
		mw_player_title = "";
	}

	/// 初期音量
	try {
		if ( mw_player_vol == "" ) {}
	} catch (e) {
		mw_player_vol = "100";
	}
	
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+playerW+'" height="'+playerH+'">');
document.write('<param name="movie" value="'+playerU+'&vst=true" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="FlashVars" value="vol=' + mw_player_vol + '&mw_player_comment=' + mw_player_comment + '&mw_player_title=' + mw_player_title + '&vid=' + playerV + '&vst=true" />');
document.write('<param name="LOOP" value="false" />');
document.write('<param name="menu" value="false" />');
document.write('<param name="scale" value="showall" />');
document.write('<param name="allowScriptAccess" value="always" />');
document.write('<param name="allowFullScreen" value="true" />');
document.write('<param name="wmode" value="opaque" />');
document.write('<embed src="'+playerU+'" allowScriptAccess="always" allowFullScreen="true" FlashVars="vid='+playerV+'&vst=true" width="'+playerW+'" height="'+playerH+'" quality="high" loop="false" menu="false" scale="showall" wmode="opaque" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false">');
document.write('</embed>');
document.write('</object>');

} else {
document.write('<div id="playerr">');
document.write('動画の再生には最新の Adobe FlashPlayer 10 が必要です。<br />');
document.write('下記アドレスより、最新の Adobe FlashPlayer をインストールしてください。<br />');
document.write('<a href="http://get.adobe.com/jp/flashplayer/">http://get.adobe.com/jp/flashplayer/</a>');
document.write('</div>');
}
