// requires "prototype.js"

if (window.name == "introswf") {
	document.write("<style type=\"text/css\">\n");
	document.write("#introswf-show-title { display: none; }\n");
	document.write("#introswf-show-close { display: block; position: absolute; bottom: 1em; text-align: center; width: 800px; }\n");
	document.write("#introswf-show-close-button { color: gray; text-decoration: underline; }\n");
	document.write("#introswf-show-close-button:hover { color: red; text-decoration: underline; }\n");
	document.write("</style>\n");
}

swfobject.registerObject("introswf-show-fflash", "9.0.0");

Event.observe(window, "load", function () {
	if (window.name == "introswf") {
		var c = document.getElementById("introswf-show-close");
		if (c) {
			var a = document.createElement("a");
			if (a) {
				a.id = "introswf-show-close-button";
				a.href = "#";
				a.onclick = function () { window.close(); };
				a.innerText = "閉じる";
				c.appendChild(a);
			}
		}
	}
});
