/**
*** Copyright (C) 2009 - 2009 HORIGUCHI Junshi.
*** All rights reserved.
**/

function acclog() {
	if (!(document.domain == "" || document.domain == "localhost" || document.domain == "127.0.0.1")) {
		document.write("<p class='c_acclog'><img src='http://www.idd.tamabi.ac.jp/~j46059/cgi-bin/acc/acclog.cgi?");
		document.write("referrer=" + document.referrer + "&");
		document.write("width=" + screen.width + "&");
		document.write("height=" + screen.height + "&");
		document.write("color=" + screen.colorDepth + "'/></p>");
	}
	return;
}

function player(path, resource, width, height) {
	base = "./";
	if (!(document.domain == "" || document.domain == "localhost" || document.domain == "127.0.0.1")) {
		if (document.domain != "www.idd.tamabi.ac.jp") {
			base = "http://www.idd.tamabi.ac.jp/~j46059/" + path;
		}
	}
	document.write("<p>");
	document.write("<object width='" + width + "' height='" + height + "' classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' codebase='http://www.apple.com/qtactivex/qtplugin.cab'>");
	document.write("<param name='src' value='" + base + resource + "'/>");
	document.write("<param name='controller' value='true'/>");
	document.write("<param name='autoplay' value='true'/>");
	document.write("<param name='scale' value='aspect'/>");
	document.write("<embed width='" + width + "' height='" + height + "' type='video/quicktime' pluginspage='http://www.apple.com/quicktime/download/'");
	document.write("src='" + base + resource + "'");
	document.write("controller='true'");
	document.write("autoplay='true'");
	document.write("scale='aspect'>");
	document.write("</embed>");
	document.write("</object>");
	document.write("</p>");
	return;
}
