var CLxBLGParts = function()
{
	this._server = "http://layton-movie.jp/blogparts/";//"http://localhost/public_html/blogparts/";
	this._app = "js/blogUtils.js";
	this._swf = "swf/blogParts.swf";
	this._width = 150;
	this._height = 370;
};

CLxBLGParts.prototype = {
	include : function()
	{
		var _e = document.createElement('script');
		_e.type = 'text/javascript';
		_e.charset = 'utf-8';
		//_e.defer = true;
		_e.src = this._server+this._app;
		document.getElementsByTagName('head').item(0).appendChild(_e);
	},
	attach : function()
	{
		var _file = this._server+this._swf;
		var htm = '';
		htm += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ';
		htm += ' width="'+this._width+'" height="'+this._height+'">';
		htm += '<param name="movie" value="'+(_file)+'" >';
		htm += '<param name="quality" value="high" >';
		htm += '<param name="menu" value="false">';
		htm += '<param name="wmode" value="transparent">';
		htm += '<param name="allowScriptAccess" value="always">',
		htm += '<embed src="'+(_file)+'" quality="high" width="'+this._width+'" height="'+this._height+'" menu="false" wmode="transparent" allowScriptAccess="always" name="movieID" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">';
		htm += '</embed></object>'
		document.write(htm);
	},
	init : function()
	{
		this.include();
		this.attach();
	}
};

new CLxBLGParts().init();