/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


function lnb_MouseOut() {
    try {
     getMovieName("swf_lnb").close_lnb();
    } catch (exception) {

    }
}

function getMovieName(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName]
   }
   else {
       return document[movieName]
   }
}
function init(){
}

function lnbLayer(state){
        var z = 10 ;
        if(state == "up"){z = 390;}
        if(state == "down"){z = 1;}
        window.document.getElementById("header").style.zIndex = z;
}

$(function(){
    $(" #header ").hover(
        function(){
            $("#header  ").css( {  "overflow" : "visible" } );
            
        },
        function(){
          
        }
    );


});
function popup_directions_edu(){
    
    var popup_direction_node = window.document.getElementById('popup_directions_edu_layer');
    if('block' == popup_direction_node.style.display){
        popup_direction_node.style.display = 'none';
    }else{
        popup_direction_node.style.display = 'block';
    }
    
}


/*  뭐라고 하지... 탑 부분 header 의 lnb 영역. 플래시가 보여지지 않을때. 자바스크립트 이용 영역.   */

$(function(){

    $(".lnb_j_block").css( {"top" : "-195px"} );
    $("#header").css({"overflow" : "hidden"});
    $(".lnb_j_block .lnb_down").click(
        function(){

            if($(" .lnb_down img").attr("src") !=  $(" .lnb_down img").attr("goupimg") ) {
                $("#header").css({"overflow" : "visible"});
                $(" .lnb_down img").attr("src" , $(" .lnb_down img").attr("goupimg")   );
                $(".lnb_j_block").stop().animate( {"top" : "-23px"} , "fast"  );
            }else{
                $(" .lnb_down img").attr("src" , $(" .lnb_down img").attr("godownimg")   );
                $(".lnb_j_block").stop().animate( {"top" : "-195px"} , "fast" ,function(){$("#header").css({"overflow" : "hidden"});} );
            }            
            return false;
        }       
    );
    $(".lnb_text  ").hover(
        function(){}
        ,
        function(){
             $(" .lnb_down img").attr("src" , $(" .lnb_down img").attr("godownimg")   );
             $(".lnb_j_block").stop().animate( {"top" : "-195px"} , "fast" ,function(){$("#header").css({"overflow" : "hidden"});} );
        }
    );    
})
