// CEO »çÀÌÆ® ¹è°æ °ü·Ã

function bg01() {
    var bg = ('/ceo/img/bg01.jpg')
    document.body.background=bg

}
function bg02() {
    var bg = ('/ceo/img/bg02.jpg')
    document.body.background=bg

}
function bg03() {
    var bg = ('/ceo/img/bg03.jpg')
    document.body.background=bg

}
function bg04() {
    var bg = ('/ceo/img/bg04.jpg')
    document.body.background=bg

}

//.. menu script


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

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);

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);

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}




//.. popup script

function popup(page,name,x,y){
	opt = "toolbar=no,alwaysRaised=no,location=no,status=no,menubar=no,scrollbars=no,width="+x+",height="+y+",resizable=no,hotkey=no,dependent=no,screenX=0,screenY=0, top=0, left=0"
	window.open(page,name,opt)
	}

function popups(page,name,x,y){
	opt = "toolbar=no,alwaysRaised=no,location=no,status=no,menubar=no,scrollbars=yes,width="+x+",height="+y+",resizable=no,hotkey=no,dependent=no,screenX=0,screenY=0, top=0, left=0"
	window.open(page,name,opt)
	}

	function search(page,name,x,y){
	opt = "toolbar=yes,alwaysRaised=no,location=no,status=yes,menubar=yes,scrollbars=yes,width="+x+",height="+y+",resizable=no,hotkey=no,dependent=no,screenX=0,screenY=0, top=0, left=0"
	window.open(page,name,opt)
	}


function pop_life() {
	window.open("/cyberpr/library/life.aspx","pop_life","width=720,height=500,top=0,left=0,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,");
}


function mbar(form)
       {
       var document
               =''+form.item.options[form.item.selectedIndex].value;
       open(document,'_self');
       form.item.selectedIndex=0;
       form.item.blur();
        }

//.. swf script

//.. media main

function toraymedia(add, widthx, heighty){
document.write (' <object id="Player" name="MediaPlayer1" width='+widthx+' height='+heighty+' classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,05,0809" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" VIEWASTEXT> <param name="transparentAtStart" value="True"> <param name="transparentAtStop" value="False"> <param name="AnimationAtStart" value="False"> <param name="loop" value="True"> <param name="AutoStart" value="True"> <param name="AutoRewind" value="true"> <param name="SendMouseClickEvents" value="True"> <param name="DisplaySize" value="0"> <param name="AutoSize" value="False"> <param name="ShowDisplay" value="False"> <param name="ShowControls" value="False"> <param name="ShowTracker" value="True"> <PARAM name="URL" value="/lib/mov/cyber/mov.wmv"><param name="Enabled" value="1"> <param name="EnableContextMenu" value="0"> <param name="EnablePositionControls" value="1"> <param name="EnableFullScreenControls" value="1"> <param name="ShowPositionControls" value="1"> <param name="Mute" value="0"> <param name="Rate" value="1"> <param name="SAMILang" value=""><param name="uiMode" value="none"> <param name="SAMIStyle" value=""> <param name="SAMIFileName" value=""> <param name="ClickToPlay" value="0"> <param name="CursorType" value="1"> </object>')
}


function toraymedia02(add, widthx, heighty){
document.write ('<OBJECT ID="Player"CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width=320 height=240><PARAM name="autoStart" value="True"><PARAM name="URL" value="/lib/mov/cyber/mov.wmv"><param name="uiMode" value="none"> <param name="transparentAtStart" value="True"></OBJECT> ')
}




//.. swf

function toray(add, widthx, heighty){
	var add;
	var widthx;
	var heighty;

	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+widthx+'" height="'+heighty+'"><param name=movie value="'+add+'"> <param name=quality value=high> <param name=menu value=false> <embed src="'+add+'" quality=high menu=false pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+widthx+'" height="'+heighty+'"></embed></object>')
}


function toraytrans(add, widthx, heighty){
	var add;
	var widthx;
	var heighty;

	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+widthx+'" height="'+heighty+'"><param name=movie value="'+add+'"> <param name=quality value=high> <param name=menu value=false> <param name=wmode value=transparent> <embed src="'+add+'" quality=high menu=false wmode=transparent pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+widthx+'" height="'+heighty+'"></embed></object>')
}


function torayTmenu(add, widthx, heighty){
	var add;
	var widthx;
	var heighty;

	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+widthx+'" height="'+heighty+'" id="Tmenu_id"><param name=movie value="'+add+'"> <param name=quality value=high> <param name=menu value=false> <embed src="'+add+'" quality=high menu=false pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+widthx+'" height="'+heighty+'"></embed></object>')
}




/* ¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë
	¡Ý ¸Þ´º Object Á¤ÀÇ
¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë*/

function objmenuItem(code, title, url, comment){	// MenuItem Object »ý¼º
	this.code = code;			// ÆäÀÌÁö ÄÚµå
	this.title = title;			// ¸Þ´º TEXT
	this.url = url;				// ÀÌµ¿ÇÒ URL
	this.comment = comment;		// Ç³¼± µµ¿ò¸»
}


/* ¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë
	¡Ý Config Menu ¹è¿­ ÀÌ¸§
¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë*/
glarrmenuname	= "TSI";


/* ¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë
	¡Ý ½Ç µ¥ÀÌÅÍ ÀÔ·Â ºÎºÐ ( ÆäÀÌÁöÄÚµå, ¸Þ´º TEXT, ÀÌµ¿ÇÒ URL, Ç³¼± µµ¿ò¸»
¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë*/
var TSI = new Array();




/* ¸ÞÀÎ */
TSI[0]				= new objmenuItem("00_00_00", "Home", "http://www.TSI.com/main/index/default.asp", "Home");



/* TSI ¼Ò°³ */
TSI[1]				= new objmenuItem("01_00_00", "È¸»ç¼Ò°³", "/company/company/company01.aspx", "È¸»ç¼Ò°³");

TSI[1][0]			= new objmenuItem("01_01_00", "È¸»ç¼Ò°³", "/company/company/company01.aspx", "È¸»ç¼Ò°³");
TSI[1][0][0]		= new objmenuItem("01_01_01", "CEO ÀÎ»ç¸»", "/company/company/company01.aspx", "CEO ÀÎ»ç¸»");
TSI[1][0][1]		= new objmenuItem("01_01_02", "È¸»ç°³¿ä", "/company/company/company02.aspx", "È¸»ç°³¿ä");
TSI[1][0][2]		= new objmenuItem("01_01_03", "ºñÁ¯",	"/company/company/company03.aspx", "ºñÁ¯");
TSI[1][0][3]		= new objmenuItem("01_01_04", "¿¬Çõ",	"/company/company/company04.aspx", "¿¬Çõ");
TSI[1][0][4]		= new objmenuItem("01_01_05", "´ë¿Ü¼ö»ó",	"/company/company/company05.aspx", "´ë¿Ü¼ö»ó");

TSI[1][1]			= new objmenuItem("01_02_00", "±â¾÷¹®È­", "/company/culture/culture01.aspx", "±â¾÷¹®È­");
TSI[1][1][0]		= new objmenuItem("01_02_01", "±â¾÷ÀÌ³ä", "/company/culture/culture01.aspx", "±â¾÷ÀÌ³ä");
TSI[1][1][1]		= new objmenuItem("01_02_02", "±â¾÷°¡Ä¡", "/company/culture/culture02.aspx", "±â¾÷°¡Ä¡");
TSI[1][1][2]		= new objmenuItem("01_02_03", "À±¸®°æ¿µ", "/company/culture/culture03.aspx", "À±¸®°æ¿µ");
TSI[1][1][3]		= new objmenuItem("01_02_04", "»çÈ¸°øÇå", "/company/culture/culture04.aspx", "»çÈ¸°øÇå");

TSI[1][2]			= new objmenuItem("01_03_00", "»ç¾÷¿µ¿ª", "/company/field/field.aspx", "»ç¾÷¿µ¿ª");

TSI[1][3]			= new objmenuItem("01_04_00", "»ç¾÷Àå¼Ò°³", "/company/market/market01.aspx", "»ç¾÷Àå¼Ò°³");
TSI[1][3][0]		= new objmenuItem("01_04_01", "±¹³»", "/company/market/market01.aspx", "±¹³»");
TSI[1][3][1]		= new objmenuItem("01_04_02", "ÇØ¿Ü", "/company/market/market02.aspx", "ÇØ¿Ü ");

TSI[1][4]			= new objmenuItem("01_05_00", "È¯°æ¾ÈÀüº¸°Ç°æ¿µ", "/company/environment/environment01.aspx", "È¯°æ¾ÈÀüº¸°Ç°æ¿µ");
TSI[1][4][0]		= new objmenuItem("01_05_01", "¹æÄ§°ú Ã¼°è", "/company/environment/environment01.aspx", "¹æÄ§°ú Ã¼°è");
TSI[1][4][1]		= new objmenuItem("01_05_02", "È°µ¿ ¹× ¼º°ú", "/company/environment/environment02_1.aspx", "È¯°æ°æ¿µÈ°µ¿");
TSI[1][4][2]		= new objmenuItem("01_05_03", "´ë¿Ü ÀÎÁõ ¹× ¼ö»ó", "/company/environment/environment03.aspx", "´ë¿Ü ÀÎÁõ ¹× ¼ö»ó");

TSI[1][5]		    = new objmenuItem("01_06_00", "Àç¹«Á¤º¸", "/company/financial/financial.aspx", "Àç¹«Á¤º¸");


/* Á¦Ç°¼Ò°³ */

TSI[2]				= new objmenuItem("02_00_00", "Á¦Ç°¼Ò°³", "/product/film/outline.aspx", "Á¦Ç°¼Ò°³");

TSI[2][0]			= new objmenuItem("02_01_00", "Æú¸®¿¡½ºÅÍ ÇÊ¸§", "/product/film/outline.aspx", "Æú¸®¿¡½ºÅÍ ÇÊ¸§");
TSI[2][0][0]		= new objmenuItem("02_01_01", "°³¿ä", "/product/film/outline.aspx", "°³¿ä");
TSI[2][0][1]		= new objmenuItem("02_01_02", "Æú¸®¿¡½ºÅÍ ÇÊ¸§", "/product/film/pf_use.aspx", "Æú¸®¿¡½ºÅÍ ÇÊ¸§");
TSI[2][0][2]		= new objmenuItem("02_01_03", "ÁõÂøÇÊ¸§",	"/product/film/vapor_use.aspx", "ÁõÂøÇÊ¸§");

TSI[2][1]			= new objmenuItem("02_02_00", "IT ¼ÒÀç", "/product/it/outline.aspx", "IT ¼ÒÀç");
TSI[2][1][0]		= new objmenuItem("02_02_01", "°³¿ä", "/product/it/outline.aspx", "°³¿ä");
TSI[2][1][1]		= new objmenuItem("02_02_02", "µð½ºÇÃ·¡ÀÌ¼ÒÀç", "/product/it/dis_use.aspx", "µð½ºÇÃ·¡ÀÌ¼ÒÀç");
TSI[2][1][2]		= new objmenuItem("02_02_03", "ÀüÀÚÁ¤º¸¼ÒÀç",	"/product/it/stuff_use.aspx", "ÀüÀÚÁ¤º¸¼ÒÀç");
TSI[2][1][3]		= new objmenuItem("02_02_04", "¸ÞÅ»·Î¾â",	"/product/it/loyal_use.aspx", "¸ÞÅ»·Î¾â");


TSI[2][2]			= new objmenuItem("02_03_00", "ºÎÁ÷Æ÷", "/product/spunbod/outline.aspx", "ºÎÁ÷Æ÷");
TSI[2][2][0]		= new objmenuItem("02_03_01", "°³¿ä", "/product/spunbod/outline.aspx", "°³¿ä");
TSI[2][2][1]		= new objmenuItem("02_03_02", "PP ºÎÁ÷Æ÷", "/product/spunbod/pp_use.aspx", "PP ºÎÁ÷Æ÷");
TSI[2][2][2]		= new objmenuItem("02_03_03", "PET ºÎÁ÷Æ÷",	"/product/spunbod/pet_use.aspx", "PET ºÎÁ÷Æ÷");

TSI[2][3]			= new objmenuItem("02_04_00", "Æú¸®¿¡½ºÅÍ ¼öÁö", "/product/chip/outline.aspx", "Æú¸®¿¡½ºÅÍ ¼öÁö");
TSI[2][3][0]		= new objmenuItem("02_04_01", "°³¿ä", "/product/chip/outline.aspx", "°³¿ä");
TSI[2][3][1]		= new objmenuItem("02_04_02", "Á¦Ç°¼Ò°³", "/product/chip/use.aspx", "Á¦Ç°¼Ò°³");

TSI[2][4]			= new objmenuItem("02_05_00", "Æú¸®¿¡½ºÅÍ ¿ø»ç", "/product/filament/outline.aspx", "Æú¸®¿¡½ºÅÍ ¿ø»ç");
TSI[2][4][0]		= new objmenuItem("02_05_01", "°³¿ä", "/product/filament/outline.aspx", "°³¿ä");
TSI[2][4][1]		= new objmenuItem("02_05_02", "Á¦Ç°¼Ò°³", "/product/filament/use.aspx", "Á¦Ç°¼Ò°³");


TSI[2][5]			= new objmenuItem("02_06_00", "»ýºÐÇØ¼º ¼öÁö", "/product/pla/outline.aspx", "»ýºÐÇØ¼º ¼öÁö");
TSI[2][5][0]		= new objmenuItem("02_06_01", "°³¿ä", "/product/pla/outline.aspx", "°³¿ä");
TSI[2][5][1]		= new objmenuItem("02_06_02", "Á¦Ç°¼Ò°³", "/product/pla/use.aspx", "Á¦Ç°¼Ò°³");


TSI[2][6]			= new objmenuItem("02_07_00", "µµ·¹ÀÌ¾¾", "/product/toray/outline.aspx", "µµ·¹ÀÌ¾¾");
TSI[2][6][0]		= new objmenuItem("02_07_01", "°³¿ä", "/product/toray/outline.aspx", "°³¿ä");
TSI[2][6][1]		= new objmenuItem("02_07_02", "¼¼¾ÈÅ¬·Î½º", "/product/toray/washing.aspx", "¼¼¾ÈÅ¬·Î½º");
TSI[2][6][2]		= new objmenuItem("02_07_03", "¿ÀÀÏÅ¬·Î½º", "/product/toray/oil.aspx", "¿ÀÀÏÅ¬·Î½º");
TSI[2][6][3]		= new objmenuItem("02_07_04", "¹ÙµðÅ¬·Î½º", "/product/toray/body.aspx", "¹ÙµðÅ¬·Î½º");
TSI[2][6][4]		= new objmenuItem("02_07_05", "·»ÁîÅ¬·Î½º", "/product/toray/lens.aspx", "·»ÁîÅ¬·Î½º");
TSI[2][6][5]		= new objmenuItem("02_07_06", "FAQ", "/product/toray/faq.aspx", "FAQ");
TSI[2][6][6]		= new objmenuItem("02_07_07", "µµ·¹ÀÌ¾¾ ¼Ò½Ä", "/product/toray/news_list.aspx", "µµ·¹ÀÌ¾¾ ¼Ò½Ä");


/* »çÀÌ¹öÈ«º¸½Ç */

TSI[3]				= new objmenuItem("03_00_00", "»çÀÌ¹öÈ«º¸½Ç", "/cyberpr/news/news_list.aspx", "»çÀÌ¹öÈ«º¸½Ç");

TSI[3][0]			= new objmenuItem("03_01_00", "TAK News", "/cyberpr/news/news_list.aspx", "TAK News");

TSI[3][1]			= new objmenuItem("03_02_00", "È«º¸ÀÚ·á½Ç", "/cyberpr/library/library01.aspx", "È«º¸ÀÚ·á½Ç");
TSI[3][1][0]		= new objmenuItem("03_02_01", "»ýÈ° ¼ÓÀÇ µµ·¹ÀÌÃ·´Ü¼ÒÀç", "/cyberpr/library/library01.aspx", "»ýÈ° ¼ÓÀÇ µµ·¹ÀÌÃ·´Ü¼ÒÀç");
TSI[3][1][1]		= new objmenuItem("03_02_02", "È«º¸¿µ»ó", "/cyberpr/library/library02.aspx", "È«º¸¿µ»ó");
TSI[3][1][2]		= new objmenuItem("03_02_03", "e-Ä«Å»·Î±×",	"/cyberpr/library/library03.aspx", "e-Ä«Å»·Î±×");
TSI[3][1][3]		= new objmenuItem("03_02_04", "½ºÅ©¸°¼¼ÀÌ¹ö",	"/cyberpr/library/library04.aspx", "½ºÅ©¸°¼¼ÀÌ¹ö");
TSI[3][1][4]		= new objmenuItem("03_02_05", "E-CARD",	"/cyberpr/ecard/ecard.aspx", "E-CARD");


TSI[3][2]			= new objmenuItem("03_03_00", "CI", "/cyberpr/ci/ci01.aspx", "CI");
TSI[3][2][0]		= new objmenuItem("03_03_01", "½Éº¼¸¶Å©", "/cyberpr/ci/ci01.aspx", "½Éº¼¸¶Å©");
TSI[3][2][1]		= new objmenuItem("03_03_02", "·Î°íÅ¸ÀÔ/½Ã±×´ÏÃÄ", "/cyberpr/ci/ci02.aspx", "·Î°íÅ¸ÀÔ/½Ã±×´ÏÃÄ");
TSI[3][2][2]		= new objmenuItem("03_03_03", "»ö»ó/°ø°£/±ÝÁö±ÔÁ¤",	"/cyberpr/ci/ci03.aspx", "»ö»ó/°ø°£/±ÝÁö±ÔÁ¤");





/* ¿¬±¸°³¹ß */

TSI[4]				= new objmenuItem("04_00_00", "¿¬±¸°³¹ß", "/rnd/intro/intro.aspx", "¿¬±¸°³¹ß");

TSI[4][0]			= new objmenuItem("04_01_00", "¿¬±¸¼Ò ¼Ò°³", "/rnd/intro/intro.aspx", "¿¬±¸¼Ò ¼Ò°³");

TSI[4][1]			= new objmenuItem("04_02_00", "¿¬±¸ºÐ¾ß", "/rnd/field/field01.aspx", "¿¬±¸ºÐ¾ß");
TSI[4][1][0]		= new objmenuItem("04_02_01", "°³¿ä", "/rnd/field/field01.aspx", "°³¿ä");
TSI[4][1][1]		= new objmenuItem("04_02_02", "¿¬±¸ºÐ¾ß", "/rnd/field/field02.aspx", "¿¬±¸ºÐ¾ß");
TSI[4][1][2]		= new objmenuItem("04_02_03", "±â¼úÇù·Â", "/rnd/field/field03.aspx", "±â¼úÇù·Â");

TSI[4][2]			= new objmenuItem("04_03_00", "¿¬±¸ÇöÈ²", "/rnd/condition/condition01.aspx", "¿¬±¸ÇöÈ²");
TSI[4][2][0]		= new objmenuItem("04_03_01", "°³¹ß½ÇÀû", "/rnd/condition/condition01.aspx", "°³¹ß½ÇÀû");
TSI[4][2][1]		= new objmenuItem("04_03_02", "Æ¯Çãº¸À¯ÇöÈ²", "/rnd/condition/condition02.aspx", "Æ¯Çãº¸À¯ÇöÈ²");



/* ÀÎÀçÃ¤¿ë */

TSI[5]			    = new objmenuItem("05_00_00", "ÀÎÀçÃ¤¿ë", "/recruit/foster/foster01.aspx", "ÀÎÀçÃ¤¿ë");

TSI[5][0]			= new objmenuItem("05_01_00", "ÀÎÀçÀ°¼º", "/recruit/foster/foster01.aspx", "ÀÎÀçÀ°¼º");
TSI[5][0][0]		= new objmenuItem("05_01_01", "ÀÎÀç»ó", "/recruit/foster/foster01.aspx", "ÀÎÀç»ó");
TSI[5][0][1]		= new objmenuItem("05_01_02", "ÀÎÀçÀ°¼º", "/recruit/foster/foster02_1.aspx", "ÀÎÀçÀ°¼º");


TSI[5][1]			= new objmenuItem("05_02_00", "ÀÎ»çÁ¦µµ", "/recruit/system/system01.aspx", "ÀÎ»çÁ¦µµ");
TSI[5][1][0]		= new objmenuItem("05_02_01", "ÀÎ»ç¿øÄ¢", "/recruit/system/system01.aspx", "ÀÎ»ç¿øÄ¢");
TSI[5][1][1]		= new objmenuItem("05_02_02", "Á÷±ÞÃ¼°è", "/recruit/system/system02.aspx", "Á÷±ÞÃ¼°è");
TSI[5][1][2]		= new objmenuItem("05_02_03", "º¸»óÃ¼°è", "/recruit/system/system03.aspx", "º¸»óÃ¼°è");
TSI[5][1][3]		= new objmenuItem("05_02_04", "Æò°¡Ã¼°è", "/recruit/system/system04.aspx", "Æò°¡Ã¼°è");
TSI[5][1][4]		= new objmenuItem("05_02_05", "Á÷¹«¼Ò°³", "/recruit/system/system05.aspx", "Á÷¹«¼Ò°³");


TSI[5][2]		    = new objmenuItem("05_03_00", "Ã¤¿ë¾È³»", "/recruit/info/letter.aspx", "Ã¤¿ë¾È³»");
TSI[5][2][0]		= new objmenuItem("05_03_01", "CEO Letter", "/recruit/info/letter.aspx", "CEO Letter");
TSI[5][2][1]		= new objmenuItem("05_03_02", "Ã¤¿ë ´º½º", "/recruit/info/news_list.aspx", "Ã¤¿ë ´º½º");
TSI[5][2][2]		= new objmenuItem("05_03_03", "Ã¤¿ëÇÁ·Î¼¼½º", "/recruit/info/process.aspx", "Ã¤¿ëÇÁ·Î¼¼½º");
TSI[5][2][3]		= new objmenuItem("05_03_04", "¿Â¶óÀÎ ÀÔ»çÁö¿ø", "/recruit/info/join_form.aspx", "¿Â¶óÀÎ ÀÔ»çÁö¿ø");
TSI[5][2][4]		= new objmenuItem("05_03_05", "FAQ", "/recruit/info/faq01.aspx", "FAQ");
TSI[5][2][5]		= new objmenuItem("05_03_06", "ÇÕ°ÝÈ®ÀÎ", "/recruit/info/pass_confirm.aspx", "ÇÕ°ÝÈ®ÀÎ");
TSI[5][2][6]		= new objmenuItem("05_03_07", "Áö¿øÀÚ Á¦¾È", "/recruit/info/proposal.aspx", "Áö¿øÀÚ Á¦¾È");
TSI[5][2][7]		= new objmenuItem("05_03_08", "We ¢¾ TAK", "/recruit/info/tsi.aspx", "We ¢¾ TAK");
TSI[5][2][7][0]		= new objmenuItem("05_03_08_01", "We ¢¾ TAK", "/recruit/info/tsi.aspx", "We ¢¾ TAK");
TSI[5][2][7][1]		= new objmenuItem("05_03_08_02", "¸ÇÅä¸µ", "/recruit/info/mento.aspx", "¸ÇÅä¸µ");


/* »çÀÌÆ®¸Ê */

TSI[6]				= new objmenuItem("06_00_00", "»çÀÌÆ®¸Ê", "/sitemap/sitemap.aspx", "»çÀÌÆ®¸Ê");
TSI[6][0]			= new objmenuItem("06_01_00", "»çÀÌÆ®¸Ê", "/sitemap/sitemap.aspx", "»çÀÌÆ®¸Ê");


/* ¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë
	¡Ý ¼ýÀÚ ÀÎÁö Ã¤Å©
¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë*/

function fnisnum(argvalue) {
	argvalue = argvalue.toString();
	if (argvalue.length == 0)
		return false;
	for (var n = 0; n < argvalue.length; n++)
		if (argvalue.substring(n, n+1) < "0" || argvalue.substring(n, n+1) > "9")
		return false;
	return true;
}


/* ¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë
	¡Ý ÇÏÀ§ ¹è¿­ÀÇ °¹¼ö Ã¤Å©
¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë*/

function fnobjlength(obj) {
	var count = 0;
	for (var i in obj){
		if (fnisnum(i))
		{count += 1;}
	}
	//alert(count);
	return count
}

/* ¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë
	¡Ý ÄÚµå°ªÀ» ¹Þ¾Æ¼­ ¹è¿­ÀÌ¸§À» µ¹·ÁÁÖ´Â ÇÔ¼ö
¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë*/

function fnobjmenu(code){
	var returnarrname;
	var arrname = glarrmenuname;
	var serchchk = false;
//	alert(code);

	function serchobj(code, arrname){
		for (var i = 0; i <  fnobjlength(eval(arrname)) ; i ++){
			if (serchchk == true) return;
			var rearrname = arrname + "[" + i + "]";
			if(eval(rearrname).code == code){
				returnarrname = rearrname;
				serchchk = true;
			}
			else if (eval(rearrname).code != code && fnobjlength(eval(rearrname)) != 0 && serchchk == false){
				serchobj(code, rearrname);
			}
		}
	}

	serchobj(code, arrname);
	return returnarrname;
}

/* ¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë
	¡Ý ÄÚµå°ªÀ» ¹Þ¾Æ¼­ ÇØ´çÆäÀÌÁö·Î ÀÌµ¿
¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë*/

function fngourl(code){
//	alert(code);
	document.location.href=eval(fnobjmenu(code)).url;
//	alert(fnobjmenu(code));
}


/* ¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë
	¡Ý ÆäÀÌÁöURLÀ» ¹Þ¾Æ¼­ »õÃ¢À¸·Î ¶ç¿ì±â. javascript:fnopenwin("http://www.skcnc4u.com/");
¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë*/

function fnopenwin(page){
	var  windo=eval('window.open("'+page+'")');
}

function fnopenwindow(code){
	window.open(eval(fnobjmenu(code)).url)
}

/* ¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë
	¡Ý TSI ÇöÀç À§Ä¡ °ü·Ã ÇÔ¼ö
¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë*/

function Setupmenu(code){
	document.getElementById('currlocation').innerHTML = fn_currlocatin(code);
	menuactive(code);
}

function fncurrlocatin(code){
	var parcode = code.split("_");
	var objname = "TSI"
	var returntext = " <a href='/index.html' title=\"Home\" class=\"location\"> Home </a> ";
	for (var i=0; i < 4 ; i++ ){
		for (var j=0; j < fnobjlength(eval(objname)); j ++ )
		{
			var menucode	=	eval(objname + "[" + j + "]" + ".code").split("_")
			if ( menucode[i] == parcode[i] ){
				if (i < 4 ){ var nexti	= i + 1; }else{nexti = i;}
				if ( parcode[nexti] != "00" && nexti != 4 && (  fnobjlength(eval(objname)) == 4 && fnobjlength(eval(objname)) != 5 && fnobjlength(eval(objname)) == 0  )){
					returntext = returntext + " > " + "<a href=" + eval(objname + "[" + j + "]" + ".url") +" title=\"" + eval(objname + "[" + j + "]" + ".comment") + "\" class=\"location2\">" + fnreplacebrtitle( eval(objname + "[" + j + "]" + ".title") , 2 ) + "</a>";
					break;
				}
				else{
					returntext = returntext + " > " + "<a href=" + eval(objname + "[" + j + "]" + ".url") +" title=\"" + eval(objname + "[" + j + "]" + ".comment") + "\" class=\"location\">" + fnreplacebrtitle( eval(objname + "[" + j + "]" + ".title") , 2 ) + "</b></a>";
					break;
				}
			}else if(eval(objname+".code") == code){
				break;
			}
		}
		objname = objname + "[" + j + "]";
	}
	if (document.getElementById('currlocation'))
	{document.getElementById('currlocation').innerHTML = returntext;
	}

}

function fncurrmeta(code){
	var parcode = code.split("_");
	var objname = "TSI"
	var returntext = " Home ";
	for (var i=0; i < 4 ; i++ ){
		for (var j=0; j < fnobjlength(eval(objname)); j ++ )
		{
			var menucode	=	eval(objname + "[" + j + "]" + ".code").split("_")
			if ( menucode[i] == parcode[i] ){
				if (i < 4 ){ var nexti	= i + 1; }else{nexti = i;}
				if ( parcode[nexti] != "00" && nexti != 4 ){
					returntext = returntext + " > " + fnreplacebrtitle( eval(objname + "[" + j + "]" + ".title") , 2 ) + " ";
					break;
				}
				else{
					returntext = returntext + " > " + fnreplacebrtitle( eval(objname + "[" + j + "]" + ".title") , 2 ) + " ";
					break;
				}
			}else if(eval(objname+".code") == code){
				break;
			}
		}
		objname = objname + "[" + j + "]";
	}
	if (document.getElementById('currlocation'))
	{document.getElementById('currlocation').innerHTML = returntext;
	}

}


function fnreplacebrtitle( title , chkbr ){  // chkbr = 1 ÀÌ¸é-> $br À» <br> ·Î, chkbr = 2 -> $br À» "" À¸·Î
	var retrunstr
	if (chkbr == 1)
	{
		retrunstr = title.replace("$br", "<br>");
	}else{
		retrunstr = title.replace("$br", "");
	}
	return retrunstr;
}



