var Flash = function () {
	var o = {installed:0, version:[]}, description, oActiveX, nMajor, nMinor;
	if (navigator.plugins && typeof navigator.plugins["Shockwave Flash"] == "object") {
		o.pluginType = "npapi";
		description = navigator.plugins["Shockwave Flash"].description;
		if (typeof description != "undefined") {
			description = description.replace(/^.*\s+(\S+\s+\S+$)/, "$1");
			nMajor = parseInt(description.replace(/^(.*)\..*$/, "$1"), 10);
			nMinor = /r/.test(description) ? parseInt(description.replace(/^.*r(.*)$/, "$1"), 10) : 0;
			o.version = [nMajor, nMinor];
			o.installed = 1;
		}
	}
	else if (window.ActiveXObject) {
		o.pluginType = "ax";
		try {
			oActiveX = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		}
		catch (e) {
			try {
				oActiveX = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
				o.version = [6, 0];
				o.installed = 1;
				oActiveX.AllowScriptAccess = "always";
			}
			catch (e) {
				if (o.version[0] == 6) {o.installed=1; return; }
			}
			try {
				oActiveX = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			}
			catch (e) {
			}
		}
		if (typeof oActiveX == "object") {
			description = oActiveX.GetVariable("$version");
			if (typeof description != "undefined") {
				description = description.replace(/^\S+\s+(.*)$/, "$1").split(",");
				o.version = [parseInt(description[0], 10), parseInt(description[2], 10)];
				o.installed = 1;
			}
		}
	}
	return o;
}();

if(Flash.installed) {
	//flash‚ ‚č	
	var flashvars = {};
	params = {};
	params.wmode = "transparent";
	attributes = {};
	swfobject.embedSWF("imageplayer.swf", "flash_area1", "314", "271", "9.0.115", "", flashvars, params, attributes);
} else {
	//flash‚Č‚µ
	var pgimg = "";
	pgimg += "<script type=\"text/javaScript\" src=\"/top_bangumi/js/jquery-1.4.2.min.js\"></script>";
	pgimg += "<script type=\"text/javaScript\" src=\"/top_bangumi/js/programImg.js\"></script>";
	pgimg += "<link rel=\"styleSheet\" type=\"text/css\" href=\"/top_bangumi/css/programImg.css\" />";
	pgimg += "<div id=\"stillbnr\">";
	pgimg += "	<script type=\"text/javaScript\">programImg();</script>";
	pgimg += "</div>";
	document.write(pgimg);
}

