function inittabigation(seq) {
	tab = document.getElementById("tnb");
	tab.menu = new Array();
	tab.current = null;
	tab.menuseq = 0;
	tabLen = tab.childNodes.length;
	var ovStop = null;
	ovStop = document.getElementById("ovStop");
	
	for (i = 0; i < tabLen; i++) {
		tabItem = tab.childNodes.item(i);
		if (tabItem.tagName != "LI")
			continue;

		tabAnchor = tabItem.getElementsByTagName("a").item(0);
		tabAnchor.submenu = tabItem.getElementsByTagName("ul").item(0);
		
		tabAnchor.onmouseover = tabAnchor.onfocus = function () {
			if (tab.current) {
				menuImg = tab.current.childNodes.item(0);
				if (ovStop.src != menuImg.src) menuImg.src = menuImg.src.replace("_over.gif", ".gif");
				if (tab.current.submenu)
					tab.current.submenu.style.display = "none";
				tab.current = null;
			}
			if (tab.current != this) {
				menuImg = this.childNodes.item(0);
				if (ovStop.src != menuImg.src) menuImg.src = menuImg.src.replace(".gif", "_over.gif");
				if (this.submenu)
					this.submenu.style.display = "block";
				tab.current = this;
			}
			tab.isOver = true;
		}
		tab.menuseq++;
		tab.menu[tab.menuseq] = tabAnchor;
	}
	if (tab.menu[seq])
		tab.menu[seq].onmouseover();
}


function imgChg(obj){
	var img = null;
	var imgName = null;
	
	
	
	if(obj != null){
		for(i=0; i<obj.childNodes.length; i++){
			if(obj.childNodes[i].nodeName == "IMG"){
				img = obj.childNodes[i];
			}
		}
	}

	if(img != null){
		imgName = img.src;
		if(imgName.indexOf("_over") > -1){
			img.src = imgName.replace(/_over\.gif/g, ".gif");
		}else{
			img.src = imgName.replace(/\.gif/g, "_over.gif");
		}
	}
}


//ex) tabOn(1,1);
moreLink = new Array(6);
moreClick = new Array(6);
for (i=0;i<6;i++) {
	moreLink[i] = new Array(6);
	moreClick[i] = new Array(6);
}
moreLink[0][0]="#null"; moreClick[0][0]=""; //
moreLink[0][1]="#null"; moreClick[0][1]=""; //
moreLink[0][2]="#null"; moreClick[0][2]=""; //
moreLink[1][0]="#null"; moreClick[1][0]=""; //
moreLink[1][1]="#null"; moreClick[1][1]=""; //
moreLink[1][2]="#null"; moreClick[1][2]=""; //
moreLink[1][3]="#null"; moreClick[1][3]=""; //


function tabOn(tabid,a) {
	for (i=1;i<=10;i++) {
		if(i<10){inn="0"+i;} else {inn=""+i;}
		tabMenu = document.getElementById("tab"+tabid+"m"+i);
		tabContent = document.getElementById("tab"+tabid+"c"+i);
		if (tabMenu) { 
			if (tabMenu.tagName=="IMG") { tabMenu.src = tabMenu.src.replace("_over.gif", ".gif"); } 
			if (tabMenu.tagName=="A") { tabMenu.className=""; } 
		}
		if (tabContent) { tabContent.style.display="none"; }
	}
	if(a<10){ann="0"+a;} else {ann=""+a;}
	tabMenu = document.getElementById("tab"+tabid+"m"+a);
	tabContent = document.getElementById("tab"+tabid+"c"+a);
//	alert(tabMenu.tagName);
	if (tabMenu) { 
		if (tabMenu.tagName=="IMG") { tabMenu.src = tabMenu.src.replace(".gif", "_over.gif"); } 
		if (tabMenu.tagName=="A") { tabMenu.className="on"; } 
	}
	if (tabContent) { tabContent.style.display="block"; }
	tabMore = document.getElementById("tab"+tabid+"more");
}



