//==============================================================================
// 1. ±â   ´É   ¸í : ·¹ÀÌ¾î °øÅëÇÔ¼ö
// 2. ÀÛ   ¼º   ÀÚ : ÇÔ²²ÇÏ´Â e¼¼»ó ¼ÒÇÁÆ®¹ë¸®(softvalley.co.kr)
// 3. ÀÛ ¼º  ÀÏ ÀÚ : 2007.02.07
// 4. ÃÖ ±Ù º¯°æÀÏ : 
// 8. ¶ó ÀÌ ¼¾ ½º  : All right reserved Softvalley, ¼Ò½º¸¦ ¼öÁ¤ÇÏÁö ¸¶¼¼¿ä.
//                   (alltry@softvalley.co.kr)
//==============================================================================

/* ÇØ´ç Div·¹ÀÌ¾î¸¦ °¨Ãß°í ¿­°í ÇÏ´Â ±âº»±â´É */
function  fncToggleLayer(objname) {
    var objDiv = document.getElementById(objname)
//    alert(objDiv.length);
    tmp = objDiv.style.display;
    if ((tmp=="block") || (tmp=="")) {
        objDiv.style.display="none"
        try {
            document.images["Img_"+objname].src="plus.gif";
        } catch(e) {}
        
    } else {
        objDiv.style.display="block"    
        try {
            document.images["Img_"+objname].src="minus.gif";        
         } catch(e) {}
    }
}


/* Ã¥°¥ÇÇ È£Ãâ±â´É */
function fncLayerChangeShow(layername,objNum,showNum) {
        var  menuObj=new fncLayerMenuObj(layername,"",objNum);
        menuObj.hide();
        menuObj.show(showNum);
}


/* 
    Ã¥°¥ÇÇÇüÅÂÀÇ ·¹ÀÌ¾î º¸ÀÌ±â(obj¼±¾ð)
    lname:·¹ÀÌ¾î¸í
    iname:ÀÌ¹ÌÁö
    n: ·¹ÀÌ¾î°¹¼ö
*/
function fncLayerMenuObj(lname,iname,n) {

    this.layerName          =lname;
    this.imageName          =iname;
    this.layerLen           =n;
    
    
    this.hide               =hide;
    this.show               =show;
        
    /* ¸ðµÎ °¨Ãß±â */
    function hide() {
        try {
            for (var i=0;i<this.layerLen;i++) {
                document.getElementById(this.layerName+(i+1)).style.display="none";
            }
        } catch(e) {}
    }    
    
    /* ÇØ´ç¹øÈ£·Î º¯°æ */
    function show(n) {
        try {
            name=this.layerName+ "" + n;
            document.getElementById(name).style.display="block";
        } catch(e) {
        }
    }    
}   


/* ¸Þ´º·¹ÀÌ¾î¼³Á¤ACTION */
function fncLayerPopMenuShow(obj) {
    var idMenuList;
    x = event.x;
    y = event.y;

    if (NS6){
        idMenuList=document.getElementById(obj).style;
        idMenuList.left = x + "px";
        idMenuList.top= y + "px";            
        idMenuList.visibility="visible";
        idMenuList.zindex=1;         
    } else if (IE) {
        idMenuList=document.getElementById(obj).style;
        idMenuList.pixelLeft = x;
        idMenuList.pixelTop=    y;            
        idMenuList.visibility = "visible";
        idMenuList.zindex=1; 
    } else if (NS) {
        idMenuList=document.layers[obj];        
        idMenuList.left = x+"px";
        idMenuList.top= y+"px";    
        idMenuList.visibility = "show";
        idMenuList.zindex=1;         
    }
}

function fncLayerPopMenuHide(obj) {
    var idMenuList;
    if (NS6){
        idMenuList=document.getElementById(obj).style;
        idMenuList.left = "1px";
        idMenuList.top="1px";            
        idMenuList.visibility="hidden";
        idMenuList.zindex=0;         
    } else if (IE) {
        idMenuList=document.getElementById(obj).style;
        idMenuList.pixelLeft = 1;
        idMenuList.pixelTop=    1;            
        idMenuList.visibility = "hidden";
        idMenuList.zindex=0; 
    } else if (NS) {
        idMenuList=document.layers[obj];        
        idMenuList.left = "1px";
        idMenuList.top="1px";    
        idMenuList.visibility = "hidden";
        idMenuList.zindex=0;         
    }
}

/* 
    ±ò²ûÀÌ¼±ÅÃ: Å×ÀÌºí ¸¶¿ì½ºÀ§Ä¡½Ã, ±ò²ûÇÑ Å¬¸¯¸¦ À§ÇÑ ÇÔ¼ö 
*/
function fncStyleTableOver(tbl) {
    tbl.style.background="#66cccc";
    tbl.style.cursor="hand";
}
function fncStyleTableOut(tbl) {
    tbl.style.background="#ffffff";
}
