/////////////////////////////////////////
// Äü¸µÅ© »ý¼º - ½ÃÀÛ
/////////////////////////////////////////
function readCookie() { 
	language=document.cookie 
	if(language.length>0) { 
		language=language.substring(language.indexOf("language=")+9,language.length) 
	}
	return language
} 

var stmnLEFT = 810; // ½ºÅ©·Ñ¸Þ´ºÀÇ ÁÂÃø À§Ä¡
var stmnBASE = 320;   // ½ºÅ©·Ñ¸Þ´º ÃÊ±â ½ÃÀÛÀ§Ä¡ (¾Æ¹«·¸°Ô³ª ÇØµµ »ó°üÀº ¾øÁö¸¸ stmnGAP1°ú ¾à°£ Â÷ÀÌ¸¦ ÁÖ´Â°Ô º¸±â ÁÁÀ½)

function InitializeStaticMenu() {
	STATICMENU.style.left = stmnLEFT;
	STATICMENU.style.top  = document.body.scrollTop + stmnBASE;
}

var strTemp = readCookie();
//alert(strTemp);
//document.write(strTemp);
var strUrl = window.location.href;

	document.write("<div id='STATICMENU' style='position:absolute;width:150px;height:400px;'>");
	document.write("  <table border='0' cellspacing='0' cellpadding='0' style='border:3 solid #E3E3E3;'>");
	
if (strTemp.indexOf("ENGLISH") == 0) {

	document.write("    <tr>");
	document.write("      <td align='left' height='30' colspan='2'><img src='/common/image/ln_icon02.gif' width='150' height='30' border='0'></td>");
	document.write("    </tr>");

	document.write("    <tr>");
	document.write("      <td align='left' width='20' height='30'>&nbsp;<img src='/common/image/ln_icon01.gif' width='11' height='11' border='0'></td>");
	document.write("      <td align='left' width='160'><a href='#'  onClick=\"MM_openBrWindow('/lab/new_product.htm','','width=500,height=436')\">New product</a></td>");
	document.write("    </tr>");

	document.write("    <tr>");
	document.write("      <td align='left' width='20' height='30'>&nbsp;<img src='/common/image/ln_icon01.gif' width='11' height='11' border='0'></td>");
	document.write("      <td align='left' width='160'><a href='#'  onClick=\"MM_openBrWindow('/info/info06_flash.htm','','width=800,height=548')\">Cyber tour</a></td>");
	document.write("    </tr>");

	document.write("    <tr>");
	document.write("      <td align='left' width='20' height='30'>&nbsp;<img src='/common/image/ln_icon01.gif' width='11' height='11' border='0'></td>");
	document.write("      <td align='left' width='160'><a href='#' onClick=\"MM_openBrWindow('/book/book.htm','pop','width=794,height=510')\")>Online brochure</a> <A HREF='/book/Brochure.pdf'  target='_blank'>[PDF]</A></td>");
	document.write("    </tr>");

	document.write("    <tr>");
	document.write("      <td align='left' width='20' height='30'>&nbsp;<img src='/common/image/ln_icon01.gif' width='11' height='11' border='0'></td>");
	document.write("      <td align='left' width='160'><a href='http://mail.i-das.com' target='_blank'>Groupware</a></td>");
	document.write("    </tr>");

	document.write("    <tr>");
	document.write("      <td align='left' height='30'>&nbsp;<img src='/common/image/ln_icon01.gif' width='11' height='11' border='0'></td>");
	document.write("      <td align='left'><a href='http://www.i-das.com/qasystem/insidedas.htm' target='_blank'>Management<br>system</a></td>");
	document.write("    </tr>");


} else {


	document.write("    <tr>");
	document.write("      <td align='left' height='30' colspan='2'><img src='/common/image/ln_icon02.gif' width='150' height='30' border='0'></td>");
	document.write("    </tr>");

	document.write("    <tr>");
	document.write("      <td align='left' width='20' height='30'>&nbsp;<img src='/common/image/ln_icon01.gif' width='11' height='11' border='0'></td>");
	document.write("      <td align='left' width='160'><a href='#'  onClick=\"MM_openBrWindow('/lab/new_product.htm','','width=500,height=436')\">½ÅÁ¦Ç°Á¤º¸</a></td>");
	document.write("    </tr>");

	document.write("    <tr>");
	document.write("      <td align='left' width='20' height='30'>&nbsp;<img src='/common/image/ln_icon01.gif' width='11' height='11' border='0'></td>");
	document.write("      <td align='left' width='160'><a href='#'  onClick=\"MM_openBrWindow('/info/info06_flash.htm','','width=800,height=548')\">»çÀÌ¹ö°ßÇÐ</a></td>");
	document.write("    </tr>");

	document.write("    <tr>");
	document.write("      <td align='left' width='20' height='30'>&nbsp;<img src='/common/image/ln_icon01.gif' width='11' height='11' border='0'></td>");
	document.write("      <td align='left' width='160'><a href='#' onClick=\"MM_openBrWindow('/book/book.htm','pop','width=794,height=510')\")>¿Â¶óÀÎºê·ç¼Å</a> <A HREF='/book/Brochure.pdf'  target='_blank'>[PDF]</A></td>");
	document.write("    </tr>");

	document.write("    <tr>");
	document.write("      <td align='left' width='20' height='30'>&nbsp;<img src='/common/image/ln_icon01.gif' width='11' height='11' border='0'></td>");
	document.write("      <td align='left' width='160'><a href='http://mail.i-das.com' target='_blank'>±×·ì¿þ¾î</a></td>");
	document.write("    </tr>");

	document.write("    <tr>");
	document.write("      <td align='left' width='20' height='30'>&nbsp;<img src='/common/image/ln_icon01.gif' width='11' height='11' border='0'></td>");
	document.write("      <td align='left' width='160'><a href='http://scm.i-das.com' target='_blank'>SCM</a></td>");
	document.write("    </tr>");

	document.write("    <tr>");
	document.write("      <td align='left' height='30'>&nbsp;<img src='/common/image/ln_icon01.gif' width='11' height='11' border='0'></td>");
	document.write("      <td align='left'><a href='http://ckd.i-das.com' target='_blank'>CKD</a></td>");
	document.write("    </tr>");

	document.write("    <tr>");
	document.write("      <td align='left' height='30'>&nbsp;<img src='/common/image/ln_icon01.gif' width='11' height='11' border='0'></td>");
	document.write("      <td align='left'><a href='http://www.i-das.com/qasystem/insidedas.htm' target='_blank'>°æ¿µ½Ã½ºÅÛ</a></td>");
	document.write("    </tr>");

	document.write("    <tr>");
	document.write("      <td align='left' height='30'>&nbsp;<img src='/common/image/ln_icon01.gif' width='11' height='11' border='0'></td>");
	document.write("      <td align='left'><a href='http://dev.i-das.com' target='_blank'>°³¹ßÁ¤º¸½Ã½ºÅÛ</a></td>");
	document.write("    </tr>");

	document.write("    <tr>");
	document.write("      <td align='left' height='30'>&nbsp;<img src='/common/image/ln_icon01.gif' width='11' height='11' border='0'></td>");
	document.write("      <td align='left'><a href='http://210.123.136.4/dbqis/index.aspx' target='_blank'>Çù·Â»ç Ç°ÁúÁ¤º¸</a></td>");
	document.write("    </tr>");
	
	document.write("    <tr>");
	document.write("      <td align='left' height='30'>&nbsp;<img src='/common/image/ln_icon01.gif' width='11' height='11' border='0'></td>");
	document.write("      <td align='left'><a href='http://gift.e-hyundai.com/das' target='_blank'>»ç¿øÀü¿ë¸ô</a></td>");
	document.write("    </tr>");
}

	document.write("  </table>");
	document.write("</div>");

//alert(strUrl.length);
if (strUrl.length < 60) {
	InitializeStaticMenu(); // ½ºÅ©·Ñ¸Þ´º¸¦ °¡µ¿ÇÏ´Â ÀÚ¹Ù½ºÅ©¸³Æ®
}

/////////////////////////////////////////
// Äü¸µÅ© »ý¼º - ³¡
/////////////////////////////////////////

//junp menu script
function GoGo(){ //v3.0
	var location=document.SubmenuForm.GoSite.options[document.SubmenuForm.GoSite.selectedIndex].value
	if (location != "") document.location = location;
}

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; ia.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&&id.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_showHideLayers() { //v6.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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function down(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == '_blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function clickshow(num) {
    for (i=0; i<5; i++) {
        menu=eval("document.all.submenu"+i+".style"); 
		menu_subtree=eval("document.all.submenu"+i+".name"); 
            if (num==i && menu_subtree !="none")     {
                if (menu.display=="block") {
                    menu.display="none"; 
                } else {
                    menu.display="block"; 
                }
            } else {
                if (menu.display=="block") {
                    menu.display="none"; 
				}
            }
	}
}

