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

$(function(){

    $(" #fms ").hover(
        function(){
            $("#footer").css( {"overflow" : "visible" }  );
        },
        function(){
            //$("#footer").css( {"overflow" : "hidden" }  );
        }
    );
   /* $(" #fms .logos_white img ").addClass("png24");*/
    $("#footer").css( {"overflow" : "hidden" }  );
    $(" #fms .fms_j_block").hover(
        function(){
            $("#footer").css( {"overflow" : "visible" }  );
            $(" #fms .fms_j_block  ").stop().animate(
                {"top" : "120px"},
                "fast"
            ).attr("isshown" , "yes");
        } ,
        function(){            
            $(" #fms .fms_j_block  ").stop().animate(
                {"top" : "423px"},
                "fast" ,function(){$("#footer").css( {"overflow" : "hidden" }  );}
            ).attr("isshown" , "no");
            try {
                getMovieName("swf_fms").close_fms(); // 플래시의 인터페이스 호출 .
            } catch (exception) {        
            }   
        }    
     ).click(
      function(){
           
          if( $(" #fms .fms_j_block  ").attr("isshown") != "yes"  ){
              $("#footer").css( {"overflow" : "visible" }  );
               $(" #fms .fms_j_block  ").stop().animate(
                {"top" : "120px"},
                "fast"
            ).attr("isshown" , "yes");
          }else{
                $(" #fms .fms_j_block  ").stop().animate(
                {"top" : "423px"},
                "fast" , function(){$("#footer").css( {"overflow" : "hidden" }  );}
            ).attr("isshown" , "no");
          }           
        }
    );

    $(" .fms_company li ").hover(
        function(){            
            $(this).find("dt.fms_logo img").attr("src" , $(this).find("dt.fms_logo img").attr("onimg") );          
        } ,
        function(){
            $(this).find("dt.fms_logo img").attr("src" , $(this).find("dt.fms_logo img").attr("offimg") );           
        }
    );


   
});








function fmsLayer(state){
    
    var f = 3 ;
    if(state == "up"){
        f = 3;
    }
    if(state == "down"){
        f = 1;
        window.document.getElementById('popup_warningEmail_layer').style.display = 'none' ;
        window.document.getElementById('popup_rule_layer').style.display = 'none' ;
    }
    window.document.getElementById("footer").style.zIndex = f;
}

/* 수정요망. 좀 부적절한 액션.  */
function popup_email(state ,nodeID){
   // fmsLayer(state);
    if(state == "up"){
        $("#footer").css( {"overflow" : "visible" }  );
        window.document.getElementById(nodeID).style.display = 'block' ;
    }
    if(state == "down"){
        $("#footer").css( {"overflow" : "hidden" }  );
        window.document.getElementById(nodeID).style.display = 'none' ;
    }   
}


function fms_MouseOut() {
    try {
    getMovieName("swf_fms").close_fms();
    } catch (exception) {

    }

    
}