﻿// 중국어 사이트에서 쓰는 js 는 UTF-8 형식으로.. 저장해야 한다..

function top_logo(){
    document.write("<table width=\"200\" height=\"118\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">");
    document.write("    <tr>");
    document.write("        <td class=\"p_t47 p_l20\" valign=\"top\"><a href=\"javascript:goW3sli('/index.html');\" onFocus='this.blur();'><img src='"+MENU_IMAGE_COMMON_PATH+"left/img_logo_en.gif'></a></td>");
    document.write("    </tr>");
    document.write("</table>");

}

function top(d1,d2,d3){
    var isMember = (emGetCookie("LOG_FLAG")=="LOGIN") ? true : false;
    var MAINMENU_IMAGE_COMMON_PATH = "/img/main/";

    var depth1 = "";
    var depth2 = "";
    var depth3 = "";
    if(d1 == null || d1 == undefined){
        depth1 = "";
    }else{
        depth1 = d1;
    }

    if(d2 == null || d2 == undefined){
        depth2 = "";
    }else{
        depth2 = d2;
    }

    if(d3 == null || d3 == undefined){
        depth3 = "";
    }else{
        depth3 = d3;
    }

    document.write("<table width='730' border='0' cellpadding='0' cellspacing='0'>                                                                                  ");
    document.write(" <tr>                                                                                                                                       ");
    document.write("  <td height='34px'>                                                                                                                      ");
	/*
    document.write("  <td class='search_botline ar'>                                                                                                                      ");
    document.write(getWelcomeText()                                                                                                        );
    if(isMember){
        document.write("  <a href='javascript:logout();' onfocus='this.blur();'><img src='"+MAINMENU_IMAGE_COMMON_PATH+"btn_logout.gif' class='m_r10 m_l5'  align='absmiddle'></a>                                                ");
    }else{
        document.write("  <a href='javascript:login();' onfocus='this.blur();'><img src='"+MAINMENU_IMAGE_COMMON_PATH+"btn_logincenter.gif' class='m_r10 m_l5'  align='absmiddle'></a>                                                ");
    }
    document.write("  <a href='javascript:mypage()' onfocus='this.blur();'><img src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu01.gif' onmouseover=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu01on.gif' ");
    document.write("     onmouseout=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu01.gif'  align='absmiddle'></a>                                                                 ");

    if(isMember){
        document.write("  <a href='javascript:member02()' onfocus='this.blur();'><img src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu07.gif' onmouseover=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu07on.gif' ");
        document.write("     onmouseout=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu07.gif'  align='absmiddle'></a>                                                                 ");
    }else{
        document.write("  <a href='javascript:member()' onfocus='this.blur();'><img src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu02.gif' onmouseover=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu02on.gif' ");
        document.write("     onmouseout=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu02.gif'  align='absmiddle'></a>                                                                 ");
    }

    document.write("  <a href='javascript:sitemap()' onfocus='this.blur();'><img src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu03.gif' onmouseover=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu03on.gif' ");
    document.write("     onmouseout=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu03.gif'  align='absmiddle'></a>                                                                 ");
    document.write("  <a href='javascript:company()' onfocus='this.blur();'><img src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu04.gif' onmouseover=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu04on.gif' ");
    document.write("     onmouseout=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu04.gif'  align='absmiddle'></a>                                                                 ");
    document.write("  <a href='javascript:company_en()' onfocus='this.blur();'><img src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu05.gif' onmouseover=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu05on.gif' ");
    document.write("     onmouseout=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu05.gif'  align='absmiddle'></a>                                                                 ");
    document.write("  <a href='javascript:company_ch()' onfocus='this.blur();'><img src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu06.gif' onmouseover=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu06on.gif' ");
    document.write("     onmouseout=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu06.gif' align='absmiddle'></a>                                                                 ");
    document.write("  <a href=\"javascript:goW3sli('/search/searchMainIC.jsp');\" onfocus='this.blur();'><img src='"+MAINMENU_IMAGE_COMMON_PATH+"btn_search.gif' class='m_l14'  align='absmiddle'></a>                                                     ");
	*/
    document.write("  </td>                                                                                                                                     ");
    document.write(" </tr>                                                                                                                                      ");
    document.write(" <tr>                                                                                                                                           ");
    document.write("  <td>                                                                                                                                          ");
    if (d1 == "comkr" || d1 == "ceokr") {
        GNBFlash('/img/gnb/fla/nav_3dp_company','psub','730','88','#ffffff','none',depth1,depth2,depth3);
    }else if(d1 == "comen" || d1 == "ceoen"){
       GNBFlash('/img/gnb/fla/nav_3dp_company_en','psub','730','88','#ffffff','none',depth1,depth2,depth3);
    }else if(d1 == "comch" || d1 == "ceoch"){
       GNBFlash('/img/gnb/fla/nav_3dp_company_ch','psub','730','88','#ffffff','none',depth1,depth2,depth3);
    } else {
        GNBFlash('/img/gnb/fla/nav_3dp','psub','730','88','#ffffff','none',depth1,depth2,depth3);
    }
    document.write("  </td>                                                                                                                                     ");
    document.write(" </tr>                                                                                                                                      ");
    document.write("</table>                                                                                                                                    ");
}

function topMain(d1,d2,d3){
    var isMember = (emGetCookie("LOG_FLAG")=="LOGIN") ? true : false;
    var MAINMENU_IMAGE_COMMON_PATH = "/img/main/";

    var depth1 = "";
    var depth2 = "";
    var depth3 = "";
    if(d1 == null || d1 == undefined){
        depth1 = "";
    }else{
        depth1 = d1;
    }

    if(d2 == null || d2 == undefined){
        depth2 = "";
    }else{
        depth2 = d2;
    }

    if(d3 == null || d3 == undefined){
        depth3 = "";
    }else{
        depth3 = d3;
    }
    document.write("<tr>                                                                                  ");
    document.write("  <td align='right' height='34px'>   ");
    /*                                                                               ");
    document.write("   <table width='680' border='0' cellpadding='0' cellspacing='0'>   ");
    document.write("    <tr> ");
    document.write("     <td height='34px'>    ");

    document.write(getWelcomeText()                                                                                                        );
    if(isMember){
        document.write("  <a href='javascript:logout();' onfocus='this.blur();'><img src='"+MAINMENU_IMAGE_COMMON_PATH+"btn_logout.gif' class='m_r10 m_l5'  align='absmiddle'></a>                                                ");
    }else{
        document.write("  <a href='javascript:login();' onfocus='this.blur();'><img src='"+MAINMENU_IMAGE_COMMON_PATH+"btn_logincenter.gif' class='m_r10 m_l5'  align='absmiddle'></a>                                                ");
    }
    document.write("  <a href='javascript:mypage()' onfocus='this.blur();'><img src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu01.gif' onmouseover=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu01on.gif' ");
    document.write("     onmouseout=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu01.gif'  align='absmiddle'></a>                                                                 ");

    if(isMember){
        document.write("  <a href='javascript:member02()' onfocus='this.blur();'><img src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu07.gif' onmouseover=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu07on.gif' ");
        document.write("     onmouseout=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu07.gif'  align='absmiddle'></a>                                                                 ");
    }else{
        document.write("  <a href='javascript:member()' onfocus='this.blur();'><img src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu02.gif' onmouseover=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu02on.gif' ");
        document.write("     onmouseout=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu02.gif'  align='absmiddle'></a>                                                                 ");
    }

    document.write("  <a href='javascript:sitemap()' onfocus='this.blur();'><img src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu03.gif' onmouseover=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu03on.gif' ");
    document.write("     onmouseout=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu03.gif'  align='absmiddle'></a>                                                                 ");
    document.write("  <a href='javascript:company()' onfocus='this.blur();'><img src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu04.gif' onmouseover=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu04on.gif' ");
    document.write("     onmouseout=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu04.gif'  align='absmiddle'></a>                                                                 ");
    document.write("  <a href='javascript:company_en()' onfocus='this.blur();'><img src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu05.gif' onmouseover=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu05on.gif' ");
    document.write("     onmouseout=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu05.gif'  align='absmiddle'></a>                                                                 ");
    document.write("  <a href='javascript:company_ch()' onfocus='this.blur();'><img src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu06.gif' onmouseover=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu06on.gif' ");
    document.write("     onmouseout=this.src='"+MAINMENU_IMAGE_COMMON_PATH+"top_menu06.gif' align='absmiddle'></a>                                                                 ");
    document.write("  <a href=\"javascript:goW3sli('/search/searchMainIC.jsp');\" onfocus='this.blur();'><img src='"+MAINMENU_IMAGE_COMMON_PATH+"btn_search.gif' class='m_l14'  align='absmiddle'></a>                                                     ");
    document.write("     </td>                                                                                                                                     ");
    document.write("    </tr>                                                                                                                                      ");
    document.write("  </table>                                                                                                                                    ");
	*/
    document.write("</td>  ");
    document.write("</tr>  ");
    document.write("<tr> ");
    document.write("   <td class='ar'>    ");
    if (d1 == "comkr" || d1 == "ceokr") {
        GNBFlash('/img/gnb/fla/nav_sub_company','psub','900','88','#ffffff','none',depth1,depth2,depth3);
    }else if(d1 == "comen" || d1 == "ceoen"){
        GNBFlash('/img/gnb/fla/nav_sub_company_en','psub','900','88','#ffffff','none',depth1,depth2,depth3);
    }else if(d1 == "comch" || d1 == "ceoch"){
        GNBFlash('/img/gnb/fla/nav_sub_company_ch','psub','900','88','#ffffff','none',depth1,depth2,depth3);
    } else {
        GNBFlash('/img/gnb/fla/nav_sub','psub','850','88','#ffffff','none',depth1,depth2,depth3);
    }
    document.write("   </td>                                                                            ");
    document.write("</tr>                                                                                  ");
}

function GNBFlash(swfname, id, width, height, bg, t, d1, d2, d3) {
    var objString ='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"  width="'+ width+'" height="'+height +'">';
    objString = objString + '<param name="movie" value="'+swfname+'.swf?hn='+d1+'&sn='+d2+'&cn='+d3+'">';
    objString = objString + '<param name="quality" value="high">';
    objString = objString + '<embed src="'+swfname+'.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="'+t+'" name="'+id+'" bgcolor="'+bg+'" width="'+ width +'" height="'+ height +'"></embed></object>';
    document.write(objString);
}