function acclog() {
	document.write("<img src='http://hpcgi2.nifty.com/tanucraft/acc/acclog.cgi?");
	document.write("referrer="+document.referrer+"&");
	document.write("width="+screen.width+"&");
	document.write("height="+screen.height+"&");
	document.write("color="+screen.colorDepth+"' ");
	document.write("alt=''>");
}
function show_detailwindow(obj,size_w,size_h) {
	var fn = obj.src;
	var w = window.open("", "_blank", "width=" + size_w + "px" + ",height=" + size_h + "px,resizable=yes");
	w.document.open();
	w.document.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n");
	w.document.write("<html lang=\"ja\">\n");
	w.document.write("<head>\n");
	w.document.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=Shift_JIS\">\n");
	w.document.write("<meta http-equiv=\"Content-Language\" content=\"ja\">\n");
	w.document.write("<meta http-equiv=\"Content-Style-Type\" content=\"text/css\">\n");
	w.document.write("<title>[木工・家具] TanuCraft //詳細// </title>\n");
	w.document.write("</head>\n");
	w.document.write("<body>\n");
	w.document.write("<p style=\"font-size:95%;color:#444444;text-align:center;line-height:1.3em;\">\n");
	w.document.write("<img src=\""+ fn + "\" alt=\"詳細画像\"><br>\n");
	w.document.write("<span style=\"font-size:70%;color:#888888;\">Copyright &copy; 2006 TanuCraft. All Rights Reserved.</span><br>\n");
	w.document.write("<br>\n");
	w.document.write("<a href=\"javascript:window.close()\" title=\"閉じる\">close</a>\n");
	w.document.write("</p>\n");
	w.document.write("</body>\n");
	w.document.write("</html>\n");
	w.document.close();
}
function wirte_lastmodified() {
	var lmd,y,m,d
	lmd = new Date(document.lastModified);
	y = lmd.getYear();
	m = lmd.getMonth() + 1;
	d = lmd.getDate();
	if (y < 1900) {
		y=y+1900;
	}
	document.write('<span class="lastmodified">最終更新日：' + y + '/'+ m +'/'+ d + '</span>');
}
/* +++++++++++++++++++++++++++++*/
/*           Materials          */
/* +++++++++++++++++++++++++++++*/
function display_woodsample(obj,woodname) {
	var offset_y = 0;
	if (arguments.length == 3) {
		offset_y = arguments[2];
	} else {
		offset_y = 40;
	}
	var target_obj = document.getElementById("sample_photo");
	var pos_y = document.getElementById("position_y").innerHTML - offset_y;
	target_obj.style.backgroundImage = "url(woods/img/" + woodname + ".jpg)";
	target_obj.style.backgroundRepeat = "no-repeat";
	target_obj.style.position = "absolute";
	//target_obj.style.left = "425px";
	target_obj.style.top = pos_y + "px";
	target_obj.style.display = "block";

	obj.parentNode.style.backgroundColor = "#ffffff";
	obj.parentNode.style.backgroundImage = "url(img/cube_mark_line.gif)";
	obj.parentNode.style.backgroundRepeat = "repeat-x";
	obj.parentNode.style.backgroundPosition = "left center";
}
function hide_woodsample(obj) {
	document.getElementById("sample_photo").style.display = "none";
	obj.parentNode.style.backgroundColor = "#ffffff";
	obj.parentNode.style.backgroundImage = "url()";
}
/* +++++++++++++++++++++++++++++*/
/*           Products           */
/* +++++++++++++++++++++++++++++*/
function disp_title(obj) {
	obj.setAttribute("src","./thumbnail/" + obj.id + "_title.jpg");
}
function hide_title(obj) {
	obj.setAttribute("src","./thumbnail/" + obj.id + ".jpg");
}

