//soFlashObject
function soFlashObject() {
	this.majorVer = 0;
	this.minorVer = 0;
	this.revision = 0;
	this.beta = 0;
	this.tgtMajorVer = 1;
	this.tgtMinorVer = 0;
	this.tgtRevision = 0;
	this.altHtml = 'Please download the latest version of the free <a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">Flash Player</a>';
	this.w = 200;
	this.h = 200;
	this.param = {};
	this.param.allowScriptAccess = 'sameDomain';
	this.param.quality = 'high';
	this.param.menu = 'false';
	this.verChk();
};

soFlashObject.prototype.verChk = function() {
	var np = navigator.plugins,nm = navigator.mimeTypes,mt = 'application/x-shockwave-flash',p=[0,0,0,0];
	if(nm && nm[mt] && nm[mt].enabledPlugin) {
		for(var i=0; i< np.length; i++) {
			p = np[i].description;
			if(p.indexOf('Flash') >= 0) {
				p = p.split(' ').join('').replace('ShockwaveFlash','');
				if(p.indexOf('r') >= 0) p = String(p.replace('r','.') + '.0').split('.');
				else if(p.indexOf('b') >= 0) p = p.replace('b','.0.').split('.');
				break;
			}
		}
	} else if(window.ActiveXObject) {
		try {
			var f = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
			p = f.GetVariable('$version').split(' ')[1].split(',');
		} catch(e) {};
	}
	with(this) {majorVer = Number(p[0]);minorVer = Number(p[1]);revision = Number(p[2]);beta = Number(p[3])};
};

soFlashObject.prototype.flaHtml = function() {
	if(!this.src) return false;
	if(!this.id) this.id = this.src.substring(0,this.src.indexOf('.'));
	var temp1 = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="'+this.w+'" height="'+this.h+'" id="'+this.id+'" align="middle">';
	var temp2 = '<param name="wmode" value="transparent" /><embed width="'+this.w+'" height="'+this.h+'" wmode="transparent" name="'+this.id+'" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"';
	temp1 += this.objParam('movie',this.src);
	temp2 += this.embParam('src',this.src);
	for(var prop in this.param) {temp1 += this.objParam(prop,this.param[prop]);temp2 += this.embParam(prop,this.param[prop])};
	temp1 += temp2 + ' /></object>';
	return temp1;
};

soFlashObject.prototype.objParam=function(a,b) {return '<param name="'+a+'" value="'+b+'" />'};
soFlashObject.prototype.embParam=function(a,b) {return ' '+a+'="'+b+'"'};
soFlashObject.prototype.enable=function() {var a = this.majorVer * 10000 + this.minorVer * 1000 + this.revision;var b = this.tgtMajorVer * 10000 + this.tgtMinorVer * 1000 + this.tgtRevision;return (a >= b)};
soFlashObject.prototype.flaWrite=function() {document.write(this.flaHtml())};
soFlashObject.prototype.altWrite=function() {document.write(this.altHtml)};
soFlashObject.prototype.write=function() {if(this.enable()) {this.flaWrite()} else {this.altWrite()}};
soFlashObject.prototype.getHtml=function() {if(this.enable()) {return this.flaHtml()} else {return this.altHtml}};

//create FlashObject
bb_flash = new soFlashObject();
bb_flash.w = 912;
bb_flash.h = 126;
bb_flash.src = 'bb_menu.swf?update=0809';
bb_flash.param.FlashVars = 'myURL=' + location.href;
bb_flash.tgtMajorVer = 8;
bb_flash.altHtml = '<div id="menuL"><img src="img/index_info.jpg" width="200" height="120" id="indexInfo" /><a href="index.html"><img src="img/menu_mainlogo.jpg" width="159" height="102" border="0" id="mainLogo" class="imgover" /></a></div><div id="menuR"><div id="line1"><a href="intro1.html"><img src="img/menu_btn_intr.gif" width="60" height="18" border="0" alt="はじめに" class="imgover" /></a><a href="story1.html"><img src="img/menu_btn_stry.gif" width="73" height="18" border="0" alt="ストーリー" class="imgover" /></a><a href="characters.html"><img src="img/menu_btn_chra.gif" width="63" height="18" border="0" alt="登場人物" class="imgover" /></a><a href="gallery.html"><img src="img/menu_btn_glry.gif" width="71" height="18" border="0" alt="ギャラリー" class="imgover" /></a><a href="blogparts.html"><img src="img/menu_btn_blog.gif" width="88" height="18" border="0" alt="ブログパーツ" class="imgover" /></a><a href="/navi02/news/program/bb/" target="_blank"><img src="img/menu_btn_news.gif" width="60" height="18" border="0" alt="ニュース" class="imgover" /></a></div><div id="line2"><a href="/applause/schedule/bb.html" target="_blank"><img src="img/menu_btn_sche.gif" width="85" height="18" border="0" alt="スケジュール" class="imgover" /></a><a href="http://wwy00.shiki.gr.jp/onlineticket/stageList.do" target="_blank"><img src="img/menu_btn_tikt.gif" width="53" height="18" border="0" alt="チケット" class="imgover" /></a><a href="/theatres/index.html" target="_blank"><img src="img/menu_btn_thtr.gif" width="63" height="18" border="0" alt="劇場情報" class="imgover" /></a><a href="/applause/cast/bb.html" target="_blank"><img src="img/menu_btn_cast.gif" width="113" height="18" border="0" alt="キャスト・スタッフ" class="imgover" /></a><a href="/family/bb/story.html" target="_blank"><img src="img/menu_btn_fmly.gif" width="68" height="18" border="0" alt="ファミリー" class="imgover" /></a><a href="/attention/200/sa_200_comment.cgi?3042+0+" target="_blank"><img src="img/menu_btn_200.gif" width="103" height="18" border="0" alt="200字コメント" class="imgover" /></a></div></div>';
bb_flash.write();
