/******************************************************************************
	?
******************************************************************************/

//uOp[cCXg[?fBNg??pX
var installDirectory = "http://www.town.jouga.i-revo.jp/blogparts/";

//uOp[c???
function loadBlogParts(BlogSize){
	
	var blogURL;
	var htmlDocument;
	///////////uOp[cURLZbg
	blogURL = installDirectory + "blogparts_";
	
	blogURL += BlogSize;
	blogURL += ".swf";

	///////////uOp[c?TCYZbg
	var width = 400;
	var height = 435;
	
	switch(BlogSize){
		case "h":
			width = "160";
			height = "435";
		break;
		
		case "w":
			width = "300";
			height = "250";
		break;
	}
	
	var htmlDocument = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="' + width + '" height="' + height + '" id="blogparts" align="middle">';
	htmlDocument += '<param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" />';
	htmlDocument += '<param name="movie" value="' + blogURL + '" />';
	htmlDocument += '<param name="bgcolor" value="#000000" /><param  name="wmode"  value="transparent">';
	htmlDocument += '<param name="flashvars" value="installDirectory=' + installDirectory + '" />';
	htmlDocument += '<embed src="' + blogURL + '" flashvars="installDirectory=' + installDirectory + '" quality="high" bgcolor="#000000" wmode=transparent width="' + width + '" height="' + height + '" name="blogparts" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object><br />';
	document.write(htmlDocument);
	
}

