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];}
}


// »õÃ¢ ¶ç¿ì±â
// ÆÄ¶ó¹ÌÅÍ ¼³¸í
// name  : À©µµ¿ì Ã¢ ÀÌ¸§
// url   : »Ñ·ÁÁÙ ÆäÀÌÁö
// width : À©µµ¿ì Ã¢ ³ÐÀÌ
// height: À©µµ¿ì Ã¢ ³ôÀÌ
// toolbar : Åø¹Ù ³ªÅ¸³¾Áö ¿©ºÎ
// menubar : ¸Þ´º¹Ù ³ªÅ¸³¾Áö ¿©ºÎ
// statusbar : »óÅÂ¹Ù ³ªÅ¸³¾Áö ¿©ºÎ
// scrollbar : ½ºÅ©·Ñ¹Ù ³ªÅ¸³¾Áö ¿©ºÎ
// resizable : ¸®»çÀÌÁî ±â´É ¿©ºÎ
// ¿¹Á¦  : open_window('./test.asp', 'test', '' ,'' ,'200','100','','','','','')
function open_window(url, name, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  target = window.open(url, name, 'left='+left+', top='+top+', width='+width+', height='+height+', toolbar='+toolbar_str+', menubar=' +menubar_str+', status='+statusbar_str+', scrollbars='+scrollbar_str+', resizable='+resizable_str);
  target.focus();
}

function OpenAddr(value, value2){
	target = window.open("/admin/addrCheck.asp?gubun=" +value +"&gubun2=" +value2, "chkAddr", 'left=100, top=200, width=420, height=500, toolbar=no, menubar=no, status=no, scrollbars=yes, resizable=no,location=no,titlebar=no');
	target.focus();
}

function brochureOpen(){
  var url='/company/e-brochure.asp';
  window.open(url,"cyberbrochure","fullscreen,location=0,menubar=0,scrollbars=1, status=0,toolbar=0");  
  //window.open(url,"cyberbrochure","width="+(screen.width - 10)+",height="+(screen.height )+"left=0,top=0,fullscreen=yes,location=0,menubar=0,scrollbars=1, status=0,toolbar=0");  
//  fullscreen=yes,toolbar=0,menubar=0,scrollbars=no,resizable=no
//left=0,top=0,fullscreen=1,location=0,menubar=0,scrollbars=1, status=0,toolbar=0
}

function brochure() { window.open('/company/test.html',''); }
function customerOpen(){
  customerTarget = window.open("/customer/popup_customer.asp", "customer", 'left=100, top=200, width=617, height=600, toolbar=no, menubar=no, status=no, scrollbars=yes, resizable=no');
  customerTarget.focus();
}

function partnerOpen(){
  partnerTarget = window.open("/service/popup_partner.asp", "partner", 'left=100, top=200, width=600, height=620, toolbar=no, menubar=no, status=no, scrollbars=no, resizable=no');
  partnerTarget.focus();
}

//iframe ÀÇ Ã¢ Å©±â Á¶Àý 
// frmName :  iframeÀÇ ÀÌ¸§
/*
function reSize(frmName){	
	var objBody	    =	eval(frmName + ".document.body");
	var objFrame	=	document.all[frmName];
	objFrame.style.height = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight)
	objFrame.style.width = '100%'
}
*/

function reSize(){
  window.moveTo(50,50);
  var width;
  width = 40 + photoImg.width;

  var height;
  height = 100 + photoImg.height;

  // ÅØ½ºÆ® ¹Ú½ºº¸´Ù ÀÛ´Ù¸é,
  if (width>400) {
//	document.body.style.width = width;
  }
  
  if (width>300) {
    //window.screen.Height = height;
//	document.body.style.height = height;
  }  
  window.resizeTo(width, height);
}

function GoMenu(name, win) {
  if (eval(name) == "") {
		alert("¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù.");
		return;	
	} else {
		if (win == null) {
			document.location.href = eval(name);
		} else {
			window.open(eval(name), win);			
		}
	}
}

home = "/";

company="/company/";	//ÂüÁÁÀºÀÎÅÍ³Ý	
company01="/company/company_01.asp";     //¼Ò°³
company02="/company/company_02.asp";     //¹ßÀÚÃë
company03="/company/company_03.asp";     //»ç¶÷µé
company04="/company/company_04.asp";     //¿¬±¸¼Ò
company05="/company/company_05.asp";     //¿¬¶ôÃ³
company06="/company/newsList.asp";     //»õ¼Ò½Ä

service="/service/";           //ÂüÁÁÀº¼­ºñ½º
service01="/service/service01.asp";       //¼­ºñ½º
service02="/service/solution01.asp";       //¼Ö·ç¼Ç
service03="/service/methodology.asp";       //¹æ¹ý·Ð

portfolio="/portfolio/portfolioList.asp";         //ÂüÁÁÀºÀÛ¾÷½Ç
portfolio01="/portfolio/portfolioList.asp?yearGubun=1999";     //1999
portfolio02="/portfolio/portfolioList.asp?yearGubun=2000";     //2000 
portfolio03="/portfolio/portfolioList.asp?yearGubun=2001";     //2001
portfolio04="/portfolio/portfolioList.asp?yearGubun=2002";     //2002
portfolio05="/portfolio/portfolioList.asp?yearGubun=2003";     //2003
portfolio06="/portfolio/portfolioList.asp?yearGubun=2004";     //2004
portfolio07="/portfolio/portfolioList.asp?yearGubun=2005";     //2004

customer="/customer/";       //ÂüÁÁÀº°í°´
customer01="/customer/customerList.asp?gubun=10";   //SKÄ¿¹Â´ÏÄÉÀÌ¼Ç
customer02="/customer/customerList.asp?gubun=20";   //ÇÏ³ª·ÎÅë½Å
customer03="/customer/customerList.asp?gubun=30";   //ÇÏ³ª·Îµå¸²
customer04="/customer/customerList.asp?gubun=40";   //¿¬¼¼´ëÇÐ±³
customer05="/customer/customerList.asp?gubun=50";   //Çö´ë°Ç¼³


