//――――――――――――――――――――――――――――――――――――――
// 作成者:るび〜  ACCESS R  http://www5e.biglobe.ne.jp/~access_r/
//――――――――――――――――――――――――――――――――――――――

//――――――――――――――――――――――――――――――――――――――
// ユーザが設定する部分はここから！！
//――――――――――――――――――――――――――――――――――――――
	//画像のファイル名を指定して下さい
	//(閉まっているフォルダが、folder1.gif・開いているフォルダが、folder2.gifとなります。
imagefile = new Array("img/link.gif", "img/link_on.gif");
imagefile2 = new Array("img/link2.gif", "img/link2_on.gif");
//――――――――――――――――――――――――――――――――――――――
// ユーザが設定する部分はここまで！！
//――――――――――――――――――――――――――――――――――――――
	//画像をキャッシュします
image = new Array(imagefile.length);
for(count = 0; count < (imagefile.length - 1); count++){
	image[count] = new Image();
	image[count].src = imagefile[count];
}

function ImageChange(id){
	if(window.document.images[id].src.indexOf(imagefile[0]) != -1){
		window.document.images[id].src  = imagefile[1];
	}else{
		window.document.images[id].src  = imagefile[0];
	}
}

function ImageChange2(id){
	if(window.document.images[id].src.indexOf(imagefile2[0]) != -1){
		window.document.images[id].src  = imagefile2[1];
	}else{
		window.document.images[id].src  = imagefile2[0];
	}
}

function Display(id){
	if(document.all){
		if(document.all(id).style.display == "block"){
			document.all(id).style.display = "none";
		}else if(document.all(id).style.display == "none"){
			document.all(id).style.display = "block";
		}
	}else if(document.getElementById){
		if(document.getElementById(id).style.display == "block"){
			document.getElementById(id).style.display = "none";
		}else if(document.getElementById(id).style.display == "none"){
			document.getElementById(id).style.display = "block";
		}
	}
}

