home="/ver01/main.php";

m0101="/ver01/sub0101.php";
m0102="/ver01/sub0102.php";
m0103="/ver01/sub0103.php";
m0104="/ver01/sub0104.php";
m0105="/ver01/sub0105.php";

m0201="http://www.efkausa.org/bbs/zboard.php?id=sub0201";
m0202="http://www.efkausa.org/bbs/zboard.php?id=sub0202";
m0203="http://www.efkausa.org/bbs/zboard.php?id=sub0203";


m0301="/ver01/sub0301.php";
m0302="/ver01/sub0302.php";
m0303="/ver01/sub0303.php";
m0304="/ver01/sub0304.php";
m0305="/ver01/sub0305.php";
m0306="/ver01/sub0306.php";

m0401="http://www.efkausa.org/bbs/zboard.php?id=sub0401";
m0402="http://www.efkausa.org/bbs/zboard.php?id=sub0402";
m0403="http://www.efkausa.org/bbs/zboard.php?id=sub0403";




function GoMenu(name) {    
  document.location.href = eval(name);
}

var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");
function CheckUIElements()
{
        var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;
        if ( bNetscape4plus ) { // ³×Ã÷ÄÉÀÌÇÁ ¿ë ¼³Á¤
                yMenuFrom   = document["scrollmenu"].top;
                yMenuTo     = top.pageYOffset + 278;   // À§ÂÊ À§Ä¡
        }
        else if ( bExplorer4plus ) {  // ÀÍ½ºÇÃ·Î·¯ ¿ë ¼³Á¤
                yMenuFrom   = parseInt (scrollmenu.style.top, 10);
                yMenuTo     = document.body.scrollTop + 278; // À§ÂÊ À§Ä¡
        }
        timeoutNextCheck = 500;
        if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) {
                setTimeout ("CheckUIElements()", timeoutNextCheck);
                return;
        }        if ( yButtonFrom != yButtonTo ) {
                yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 );
                if ( yButtonTo < yButtonFrom )
                        yOffset = -yOffset;
                if ( bNetscape4plus )
                        document["divLinkButton"].top += yOffset;
                else if ( bExplorer4plus )
                        divLinkButton.style.top = parseInt (divLinkButton.style.top, 10) + yOffset;
                timeoutNextCheck = 10;
        }
        if ( yMenuFrom != yMenuTo ) {
                yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
                if ( yMenuTo < yMenuFrom )
                        yOffset = -yOffset;
                if ( bNetscape4plus )
                        document["scrollmenu"].top += yOffset;
                else if ( bExplorer4plus )
                        scrollmenu.style.top = parseInt (scrollmenu.style.top, 10) + yOffset;
                timeoutNextCheck = 10;
        }
        setTimeout ("CheckUIElements()", timeoutNextCheck);
}
function OnLoad()
{
        var y;
        // ÇÁ·¹ÀÓ ¿¡¼­ ¹þ¾î³ª°Ô ÇÏ´Â ÇÔ¼öÀÔ´Ï´Ù. ÇÁ·¹ÀÓ¿¡ ³ÖÀ¸·Á¸é »èÁ¦ÇÏ¼¼¿ä
        if ( top.frames.length )
         //       top.location.href = self.location.href;
        // Æä¿¡Áö ·Îµù½Ã Æ÷Áö¼Ç
        if ( bNetscape4plus ) {
                document["scrollmenu"].top = top.pageYOffset + 100;
                document["scrollmenu"].visibility = "visible";
        }
        else if ( bExplorer4plus ) {
                scrollmenu.style.top = document.body.scrollTop + 100;
                scrollmenu.style.visibility = "visible";
        }
        CheckUIElements();
        return true;
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
