function bakumonObj() {
	this.base_url = "www.nhk.or.jp/bakumon/";
	this.middle_url = "blogparts/";
	this.protocol = "http://";
};


bakumonObj.prototype.getSWF = function() {
	var swf = this.protocol + this.base_url + this.middle_url + 'index.swf';
	return swf;
}

bakumonObj.prototype.getContentUrl = function() {
	return document.URL;
}


bakumonObj.prototype.getWidth = function() {
	return 160;
}

bakumonObj.prototype.getHeight = function() {
	return 251;
}

var Bakumon = new bakumonObj();
doInsert();

function doInsert() {
	document.write("<div id='bakumonswf'></div>");
	document.write('<script type="text/javascript" charset="utf-8" src="' + Bakumon.protocol + Bakumon.base_url + 'js/bakumonbox.js"></script>');
}
