
SSW2009 = {
	description : "Script for SINAP SUMMER Widget 2009. Based on sML JavaScript Library.",
	version     : 1.0,
	path        : "http://summer.sinap.jp/09/res/images/swf/widget.swf",
	width       : 160,
	height      : 275,
	fpversion   : 9
};

SSW2009.fp = { version : 0 };

try {
	if(navigator.plugins && navigator.mimeTypes.length) {
		SSW2009.fp.fPI = navigator.plugins["Shockwave Flash"];
		if(SSW2009.fp.fPI && SSW2009.fp.fPI.description) SSW2009.fp.version = SSW2009.fp.fPI.description.replace(/^[^\d]+(\d+\.\d+)\s*(r(\d+))*\.*$/, "$1.$3").split(".")[0];
	} else {
		SSW2009.fp.fAX = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
		if(SSW2009.fp.fAX) SSW2009.fp.version = SSW2009.fp.fAX.GetVariable("$version").split(" ")[1].split(",")[0];
	}
} catch(e) {}

(function() {
	if(SSW2009.fp.version < SSW2009.fpversion) return;
	document.write([
		'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"',
		' width="' + SSW2009.width + '"',
		' height="' + SSW2009.height + '"',
		' style="margin-left:auto; margin-right:auto; width:' + SSW2009.width + 'px; height:' + SSW2009.height + 'px; text-align:center;"',
		'>',
		'<param name="movie" value ="' + SSW2009.path + '">',
		'<param name="quality" value ="high">\n',
		'<embed type="application/x-shockwave-flash"',
		' src="' + SSW2009.path + '"',
		' width="' + SSW2009.width + '"',
		' height="' + SSW2009.height + '"',
		' quality="high"',
		' style="margin-left:auto; margin-right:auto; width:' + SSW2009.width + 'px; height:' + SSW2009.height + 'px; text-align:center;"',
		' />',
		'</object>'
	].join(''));
})();