
SXW2008 = {
	description : "Script for SINAP Christmas Widget 2008. Based on sML JavaScript Library.",
	version     : 1.0,
	path        : "http://xmas.sinap.jp/widget/",
	language    : "ja",
	width       : 160,
	height      : 275
};

SXW2008.fp = { version : 0 };

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

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