﻿var tree;
window.onload = function(){
tree = new YAHOO.widget.TreeView("treeData");
var root = tree.getRoot();
var node1 = new YAHOO.widget.TextNode("宮田ほたる祭り写真集", root, false);
var cNode1 = new YAHOO.widget.TextNode("平成17年", node1, false);
var cNode2 = new YAHOO.widget.TextNode("平成18年", node1, false);
var cNode3 = new YAHOO.widget.TextNode("平成19年", node1, false);
var cNode4 = new YAHOO.widget.TextNode("平成20年", node1, false);
var cNode5 = new YAHOO.widget.TextNode("平成21年", node1, false);
cNode1.href = "http://www.geocities.jp/yamanochikabe/sansaku/hotaru17/hotaru1700.html";
cNode2.href = "http://www.geocities.jp/yamanochikabe/sansaku/hotarumaturi18/hotarumaturi180617.html";
cNode3.href = "http://www.geocities.jp/yamanochikabe/sansaku/hotarumaturi19/hotarumaturi190616.html";
cNode4.href = "http://www.geocities.jp/yamanochikabe/sansaku/hotarumaturi20/hotarumaturi200621.html";
cNode5.href = "http://www.geocities.jp/yamanochikabe/sansaku/hotarumaturi21/hotarumaturi210620.html";
tree.draw();


/*image roll over*/

var rootNode = document.getElementById("mainMenu");	
var imgTag = rootNode.getElementsByTagName("img");
for(var i=0; i<imgTag.length;i++){
	imgTag[i].onmouseover = function(){
		this.src=this.src.split(".gif")[0]+"_over.gif";
		}
	imgTag[i].onmouseout = function(){
		this.src=this.src.split("_over.gif")[0]+".gif";
		}
	}


var rootNode2 = document.getElementById("matsuri");	
var imgTag2 = rootNode2.getElementsByTagName("img");
for(var i=0; i<imgTag2.length;i++){
	imgTag2[i].onmouseover = function(){
		this.src=this.src.split(".gif")[0]+"_over.gif";
		}
	imgTag2[i].onmouseout = function(){
		this.src=this.src.split("_over.gif")[0]+".gif";
		}
	}
}