﻿// JScript 파일

function sub_expand(intNum) {
    for(i=0;i<document.bimage.length;i++) { 
        document.bimage[i].src = "/img/common/arrow02.gif";
        document.all.sub_menu[i].style.display = "none";
        document.all._menu[i].style.color = "";
        document.all._menu[i].style.fontWeight = "";
    }
    document.bimage[intNum].src = "/img/common/arrow03.gif";
    document.all.sub_menu[intNum].style.display = "";
    
    document.all._menu[intNum].style.color = "#000000";
    document.all._menu[intNum].style.fontWeight = "bold";
}

function MouseOnBgColor(onTbl) {
	onTbl.style.backgroundColor='#e1e9f1'
}

function MouseOffBgColor(offTbl) {
	offTbl.style.backgroundColor = "#ffffff";
}

function LoadOnBgColor(onTbl) {
	document.getElementById('subProduct' +onTbl).style.backgroundColor='#e1e9f1'
}

function LoadOnSubMenu(onTbl) {
		document.getElementById('menuProduct' + onTbl).className = 'px9';
		document.getElementById('menuProduct' + onTbl).style.cursor = 'none';
}

function subExpand(strNum) {
	for(i=1;i<=3;i++) {
		document.getElementById('arrowProduct0' + i).src = '/img/common/arrow03.gif';
		document.getElementById('menuProduct0' + i).className = 'px11bold';
		document.getElementById('menuProduct0' + i).style.cursor = 'none';
		document.getElementById('subProduct0'+i).style.display = "none";
	}

	document.getElementById('menuProduct0' + strNum).className = 'px11bold_01';
	document.getElementById('arrowProduct0' + strNum).src = '/img/common/arrow02.gif';
	document.getElementById('subProduct0'+strNum).style.display = "";
}

var boolsubover = false;
var boolsubout = true;
var loadID;

function subBorderOut() {
	setTimeout("boolsubBorderOut()", 1500);
}

function boolsubBorderOut() {
	if (!boolsubover && boolsubout)
	{
		subLoad();
		LoadOnBgColor(loadID);
		//LoadOnSubMenu(loadID);
	}
}

function setSubOver() {
	boolsubover = true;
}

function setSubOut() {
	boolsubover = false;
}
