function MakeFlashString(source,id,width,height,wmode, otherParam)
{	
	return "<embed src="+source+" quality=high wmode="+wmode+" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+width+" height="+height+"></embed>";
}

function MakeObjectString(classid, codebase, name, id, width,height, param)
{
	return "<object classid="+classid+" codebase="+codebase+" name="+name+" width="+width+" height="+height+" id="+id+"><param name=wmode value="+wmode+" />"+param+"</object>";
}


// innerHTML Type
function SetInnerHTML(target, code)
{ 
	target.innerHTML = code; 
}

// Direct Write Type
function DocumentWrite(src)
{
	document.write(src);
}


//Áñ°ÜÃ£±â ½ºÅ©¸³Æ®
function bookmark(){
window.external.AddFavorite('http://workesl.com', 'Work ESL')
}


//Å¾¸Þ´º URL

function menu(Arg){
   var Arg;
 if (Arg == "a1"){
  location.href="/s11.php";//È¸»ç¼Ò°³
	   }else if (Arg == "a2"){
	  location.href="/s12.php";//Ã£¾Æ¿À½Ã´Â±æ

 }else if (Arg == "b1"){
  location.href="/s21.php";//Ã¤¿ëÁ¶°Ç
	   }else if (Arg == "b2"){
	  location.href="/s22.php";//Ã¤¿ëÀýÂ÷
	   }else if (Arg == "b3"){
	  location.href="/s23.php";//ÁøÇà¼ø¼­
	   }else if (Arg == "b4"){
	  location.href="/s24.php";//°­»çÀÚ°Ý
	   }else if (Arg == "b5"){
	  location.href="/s25.php";//ÃÊÃ»±¸ºñ¼­·ù
	   }else if (Arg == "b6"){
	  location.href="/s26.php";//ºñÀÚ¾È³»

 }else if (Arg == "c1"){
  location.href="/bbs/board.php?bo_table=notice";//Work ESL news
 }else if (Arg == "c2"){
  location.href="/bbs/board.php?bo_table=qa";//Apply  Q & A
 }else if (Arg == "c3"){
  location.href="/bbs/board.php?bo_table=member";//Membership LifeCare
 }else if (Arg == "c4"){
  location.href="/bbs/board.php?bo_table=s34";//±³»çÁ¤º¸


 }else if (Arg == "d1"){
  location.href="/index_e.php";//Membership LifeCare


  
 }else if (Arg == "e1"){
  location.href="/s12.php";//Contact us
 }else if (Arg == "e2"){
  location.href="/es12.php";//ENG Contact us
 }else if (Arg == "f1"){
  location.href="javascript:bookmark()";//Áñ°ÜÃ£±âÃß°¡
 }


 else if (Arg == "ea1"){
  location.href="/es11.php";//company
 }else if (Arg == "ea2"){
  location.href="/es12.php";//map
 }



 else if (Arg == "eb1"){
  location.href="/es21.php";//Ã¤¿ëÁ¶°Ç
	   }else if (Arg == "eb2"){
	  location.href="/es22.php";//Ã¤¿ëÀýÂ÷
	   }else if (Arg == "eb3"){
	  location.href="/es23.php";//ÁøÇà¼ø¼­
	   }else if (Arg == "eb4"){
	  location.href="/es24.php";//°­»çÀÚ°Ý
	   }else if (Arg == "eb5"){
	  location.href="/es25.php";//ÃÊÃ»±¸ºñ¼­·ù
	   }else if (Arg == "eb6"){
	  location.href="/es26.php";//ºñÀÚ¾È³»

 }else if (Arg == "ec1"){
  location.href="/bbs/board.php?bo_table=enotice";//Work ESL news
 }else if (Arg == "ec2"){
  location.href="/bbs/board.php?bo_table=eqa";//Apply  Q & A
 }else if (Arg == "ec3"){
  location.href="/bbs/board.php?bo_table=emember";//Membership LifeCare
 }else if (Arg == "ec4"){
  location.href="/bbs/board.php?bo_table=es34";//hotjob


 }else if (Arg == "ed1"){
  location.href="/index.php";//Membership LifeCare


  
 }
}



//SUB FLASH Link
function GoMenu(name) {
    if (eval(name) == "") {
        alert("¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù.");
        return;    
    } else {
		document.location.href = eval(name);
	}
}


var smenu01_1="/s11.php";  //È¸»ç¼Ò°³
var smenu01_2="/s12.php";  //Ã£¾Æ¿À½Ã´Â±æ

var smenu02_1="/s21.php";  //Ã¤¿ëÁ¶°Ç
var smenu02_2="/s22.php";  //Ã¤¿ëÀýÂ÷
var smenu02_3="/s23.php";  //ÁøÇà¼ø¼­
var smenu02_4="/s24.php";  //°­»çÀÚ°Ý
var smenu02_5="/s25.php";  //ÃÊÃ»±¸ºñ¼­·ù
var smenu02_6="/s26.php";  //ºñÀÚ¾È³»

var smenu03_1="/bbs/board.php?bo_table=s34";  //±³»çÁ¤º¸
var smenu03_2="/bbs/board.php?bo_table=notice";  //Work ESL news
var smenu03_3="/bbs/board.php?bo_table=qa";  //Apply  Q & A
var smenu03_4="/bbs/board.php?bo_table=member";  //Membership LifeCare

//English sub
var esmenu01_1="/es11.php";  //È¸»ç¼Ò°³
var esmenu01_2="/es12.php";  //Ã£¾Æ¿À½Ã´Â±æ

var esmenu02_1="/es21.php";  //Ã¤¿ëÁ¶°Ç
var esmenu02_2="/es22.php";  //Ã¤¿ëÀýÂ÷
var esmenu02_3="/es23.php";  //ÁøÇà¼ø¼­
var esmenu02_4="/es24.php";  //°­»çÀÚ°Ý
var esmenu02_5="/es25.php";  //ÃÊÃ»±¸ºñ¼­·ù
var esmenu02_6="/es26.php";  //ºñÀÚ¾È³»

var esmenu03_1="/bbs/board.php?bo_table=es34";  //job info
var esmenu03_2="/bbs/board.php?bo_table=enotice";  //Work ESL news
var esmenu03_3="/bbs/board.php?bo_table=eqa";  //Apply  Q & A
var esmenu03_4="/bbs/board.php?bo_table=emember";  //Membership LifeCare





var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "1");
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "1");

function always_pos()
{
        var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;

        if ( bNetscape4plus ) { // ³×Ã÷ÄÉÀÌÇÁ ¿ë ¼³Á¤
                yMenuFrom   = document["scrollmenu"].top;
                yMenuTo     = top.pageYOffset + 235;   // È­¸é À§ÂÊÀ¸·Î ºÎÅÍÀÇ À§Ä¡
        }
        else if ( bExplorer4plus ) {  // ÀÍ½ºÇÃ·Î·¯ ¿ë ¼³Á¤
                yMenuFrom   = parseInt (scrollmenu.style.top, 10);
                yMenuTo     = document.body.scrollTop + 235; // È­¸é À§ÂÊÀ¸·Î ºÎÅÍÀÇ À§Ä¡
        }

        timeoutNextCheck = 500;

        if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) {
                setTimeout ("always_pos()", 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 ("always_pos()", timeoutNextCheck);
}
function OnLoad()
{
        var y;

        // ÇÁ·¹ÀÓ ¿¡¼­ ¹þ¾î³ª°Ô ÇÏ´Â ÇÔ¼öÀÔ´Ï´Ù. ÇÁ·¹ÀÓ¿¡ ³ÖÀ¸·Á¸é »èÁ¦ÇÏ¼¼¿ä
        if ( top.frames.length )
         //       top.location.href = self.location.href;

        // Æä¿¡Áö ·Îµù½Ã Æ÷Áö¼Ç
        if ( bNetscape4plus ) {
                document["scrollmenu"].top = top.pageYOffset + 93;
                document["scrollmenu"].visibility = "visible";
        }
        else if ( bExplorer4plus ) {
                scrollmenu.style.top = document.body.scrollTop + 93;
                scrollmenu.style.visibility = "visible";
        }

        always_pos();
        return true;
}
//¹Ù·Î°¡±â
function goUrl(url,target) {
  if(url != 0) { 
    window.open(url,target);
    }
}


//Sitemap slide
var show = 0;
function site(obj) {
	if(obj.style.visibility=='visible'){		
		obj.style.visibility='hidden';
	}else{
		obj.style.visibility='visible';
	}
}


/*=======================================±âÁ¸ ÇÃ·¡½¬ Ãâ·Â ½ºÅ©¸³Æ® ½ÃÀÛ ==================================================*/
function flash_write(strSrc, strW, strH )
{
	document.write('<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="'+strW+'" HEIGHT="'+strH+'" id="company_flash_sub_v1" ALIGN="">');
	document.write('<PARAM NAME=movie VALUE="'+strSrc+'"> ');
	document.write('<PARAM NAME=menu VALUE=false> ');
	document.write('<PARAM NAME=quality VALUE=high> ');
	document.write('<PARAM NAME=wmode VALUE=transparent> ');
	document.write('<PARAM NAME=bgcolor VALUE=#CCCCCC> ');
	document.write('<EMBED src="'+strSrc+'" menu=false quality=high wmode=transparent bgcolor=#CCCCCC  WIDTH="'+strW+'" HEIGHT="'+strH+'" NAME="company_flash_sub_v1" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
	document.write('</OBJECT>');
}
/*=======================================±âÁ¸ ÇÃ·¡½¬ Ãâ·Â ½ºÅ©¸³Æ® Á¾·á ==================================================*/