/*
* Copyright (C) Isao Nakata.
* この作品は、クリエイティブ・コモンズの帰属 - 非営利 - 派生禁止ライセンスの下で
* ライセンスされています。
* この使用許諾条件を見るには、
* http://creativecommons.org/licenses/by-nc-nd/2.0/jp/
* をチェックするか、クリエイティブ･コモンズに郵便にてお問い合わせください。
* 住所は：559 Nathan Abbott Way, Stanford, California 94305, USA です。
*/
/*──────────────────────────────────────*/
/* イメージフォルダの取得
/*──────────────────────────────────────*/
dname = depth_path + "image";
/*──────────────────────────────────────*/
/* 配列確保
/*──────────────────────────────────────*/
image_on = new Array();
image_off = new Array();
/*──────────────────────────────────────*/
/* ON
/*──────────────────────────────────────*/
image_on["tm_gaiyo"] = new Image();
image_on["tm_jiseki"] = new Image();
image_on["tm_link"] = new Image();
image_on["tm_contact"] = new Image();

image_on["sm_top"] = new Image();

image_on["tm_gaiyo"].src = dname + "/tmenu/gaiyo_on.gif";
image_on["tm_jiseki"].src = dname + "/tmenu/jiseki_on.gif";
image_on["tm_link"].src = dname + "/tmenu/link_on.gif";
image_on["tm_contact"].src = dname + "/tmenu/contact_on.gif";

image_on["sm_top"].src = dname + "/smenu/top_on.gif";
/*──────────────────────────────────────*/
/* OFF
/*──────────────────────────────────────*/
image_off["tm_gaiyo"] = new Image();
image_off["tm_jiseki"] = new Image();
image_off["tm_link"] = new Image();
image_off["tm_contact"] = new Image();

image_off["sm_top"] = new Image();

image_off["tm_gaiyo"].src = dname + "/tmenu/gaiyo_off.gif";
image_off["tm_jiseki"].src = dname + "/tmenu/jiseki_off.gif";
image_off["tm_link"].src = dname + "/tmenu/link_off.gif";
image_off["tm_contact"].src = dname + "/tmenu/contact_off.gif";

image_off["sm_top"].src = dname + "/smenu/top_off.gif";
/*──────────────────────────────────────*/
/* ON
/*──────────────────────────────────────*/
function JSImageOn(image_name){
	document.images[image_name].src = image_on[image_name].src;
	return;
}
/*──────────────────────────────────────*/
/* OFF
/*──────────────────────────────────────*/
function JSImageOff(image_name){
	document.images[image_name].src = image_off[image_name].src;
	return;
}
