//<![CDATA[

////////////// Left Menu µ¿ÀÛ Ã³¸® ///////////////
var Monpro = "";
function leftRollover(sub, a) {
    document.getElementById("lMenu" + a).src = "/tectran/img/leftTle" + sub + "n" + a + "on.gif";
    Monpro = a;
}
function mOver(sub, b) {
    if (b != Monpro) {
        document.getElementById("lMenu" + b).src = "/tectran/img/leftTle" + sub + "n" + b + "on.gif";
    }
}
function mOut(sub, c) {
    if (c != Monpro) {
        document.getElementById("lMenu" + c).src = "/tectran/img/leftTle" + sub + "n" + c + ".gif";
    }
}
////////////// Left Menu µ¿ÀÛ Ã³¸® ///////////////


function top2menuView(a) //2Â÷¸Þ´ºº¸±â
{
	if(this.id){
		eidStr = this.id;
		eidNum=eidStr.substring(eidStr.lastIndexOf("m",eidStr.length)+1,eidStr.length);
		a = parseInt(eidNum);
	}
	top2menuHideAll();
	top1Menu = document.getElementById("top1m"+a);
	top2Menu = document.getElementById("top2m"+a);
	//if(a<10){ann='0'+a;} else {ann=''+a;}
	ann=a;
	if (a=0) { //¸ÞÀÎÀº2Â÷¸Þ´ºÈ°¼ºÈ­¾ÈÇÔ
	} else {
		if (top1Menu) {
			top1Menu.getElementsByTagName("img")[0].src="/tectran/img/topNavi" + ann + "on.gif";
			if (top2Menu) { top2Menu.style.display = 'inline'; }
		}
	}
}

function top2menuHide(a) //2Â÷¸Þ´º°¨Ãß±â
{
	if(this.id){
		eidStr = this.id;
		eidNum=eidStr.substring(eidStr.lastIndexOf("m",eidStr.length)+1,eidStr.length);
		a = parseInt(eidNum);
	}
	top2menuHideAll();
	top1Menu = document.getElementById("top1m"+a);
	top2Menu = document.getElementById("top2m"+a);
	top1MenuCurr = document.getElementById("top1m0");
	top2MenuCurr = document.getElementById("top2m0");
	//if(a<10){ann='0'+a;} else {ann=''+a;}
	ann=a;
	if (top1Menu) {
		top1Menu.getElementsByTagName("img")[0].src="/tectran/img/topNavi" + ann + ".gif";
		if (top2Menu) { top2Menu.style.display = 'none'; }
		if (top1MenuCurr) { top1MenuCurr.getElementsByTagName("img")[0].src = "/tectran/img/topNavi0on.gif"; }
		if (top2MenuCurr) { top2MenuCurr.style.display = 'inline'; }
	}
}

function top2menuHideAll() //2Â÷¸Þ´º¸ðµÎ°¨Ãß±â
{
	top1menuEl = document.getElementById("top1menu").getElementsByTagName("ul");
	for (i=1;i<=top1menuEl.length;i++)
	{
		top1Menu = document.getElementById("top1m"+i);
		top2Menu = document.getElementById("top2m"+i);
		//if(i<10){inn='0'+i;} else {inn=''+i;}
		inn=i;
		if (top1Menu) {
			top1Menu.getElementsByTagName("img")[0].src="/tectran/img/topNavi" + inn + ".gif";
			if (top2Menu) { top2Menu.style.display = 'none'; }
		}
	}
}

function initTopMenu() {
 	top1menuEl = document.getElementById("top1menu").getElementsByTagName("ul");
	for (i=1;i<=top1menuEl.length;i++){
		top1Menu = document.getElementById("top1m"+i);
		top2Menu = document.getElementById("top2m"+i);
		if (top1Menu) {
			top1Menu.onmouseover = top1Menu.onfocus = top2menuView;
			top1Menu.onmouseout = top2menuHide;
			if (top2Menu) {
				top2Menu.onmouseover = top2Menu.onfocus = top2menuView;
				top2Menu.onmouseout = top2menuHide;
			}
		}
	}
}
function top2Depover(a,b){
	var de2Str = document.getElementById("top2m"+a);
	var de2StrLi = de2Str.getElementsByTagName("li");
	for(var i=1;i<de2StrLi.length+1;i++){
		if(b==i){
		}
	}
}
function top2Depout(a,b){
	var str = document.getElementById("top2m"+a).getElementsByTagName("a")[b];
	str.style.color = "#";
	//str.style.fontWeight= "bold";
}
//]]>
