function openswf(swf, width, height, ver){
	if(!ver) ver = "10.0.0";
	if(!width) width = 640;
	if(!height) height = 480;
	var win_w = width + 20;
	var win_h = height + 20;
	var left = (window.screen.width-win_w)/2;
	var top = (window.screen.height-win_h)/2;
	var param = "width="+win_w+",height="+win_h+",scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left="+left+",top="+top;
	var win = window.open("","",param);
	var str = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n';
	str += '<html xmlns="http://www.w3.org/1999/xhtml">\n';
	str += '<head>\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n';
	str += '<script type="text/javascript" src="http://www.morocoshi.net/lib/swfobject/swfobject.js"></script>\n';
	str += '<script type="text/javascript" src="http://www.morocoshi.net/lib/prototype/prototype.js"></script>\n';
	str += '<script type="text/javascript" src="http://www.morocoshi.net/js/openerevent.js"></script>\n';
	str += '<title></title>\n';
	str += '</head>\n<body onload="init(\''+swf+'\', \''+width+'\', \''+height+'\', \''+ver+'\')">\n<div id="swf"></div>\n';
	str += '</body>\n</html>\n';
	win.document.open();
	win.document.write(str);
	win.document.close();
}