////// IMAGE_ROLLOVER //////
function menuOn(imgEl)
{
	imgEl.src = imgEl.src.replace(".gif", "_on.gif");
}

function menuOut(imgEl)
{
	imgEl.src = imgEl.src.replace("_on.gif", ".gif");
}
function menuOnjpg(imgEl)
{
	imgEl.src = imgEl.src.replace(".jpg", "_on.jpg");
}

function menuOut(imgEl)
{
	imgEl.src = imgEl.src.replace("_on.gif", ".gif");
}
function menuOutjpg(imgEl)
{
	imgEl.src = imgEl.src.replace("_on.jpg", ".jpg");
}

function goMenu(Val,Sel)
{
	Sel.value = '';
	if (Val) location=Val;
	
}


//object ÆÄÀÏ ÆÐÄ¡ ´ëºñ 
  var paramInfo = new Array;
  
  function initParam()
  {
    var oldSize = paramInfo.length;
  
  	for (var i=0; i<oldSize; i++) {
  		paramInfo.length--;
  	}	
  }
  
  function setParam(paramName, paramValue)
  {
  	var idx = paramInfo.length;
  
  	paramInfo[idx] = [];
  	paramInfo[idx][0] = paramName;  
  	paramInfo[idx][1]= paramValue;
  }
  
  function playMedia(objID, objSource, objWidth, objHeight, objStyle)
  {
  	document.write('<OBJECT id="' + objID + '" name="' + objID + '" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" ');
  	document.write('WIDTH="' + objWidth + '" HEIGHT="' + objHeight + '" ' + objStyle + '>');
  
  	for (var i=0; i<paramInfo.length; i++) {
  		document.write('<PARAM NAME="' + paramInfo[i][0] + '" VALUE="'+ paramInfo[i][1] +'">');		
  	}	
  	
  	document.write('</OBJECT>');
  }
	
	
	/***************************************
* ÆË¾÷ ¶ç¿ì±â  
***************************************/
var win = null;
function win_pop(mypage,myname,w,h,scroll) {
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=no';
  win = window.open(mypage,myname,settings);
}

/***************************************
* ÆË¾÷ ¶ç¿ì±â 2
***************************************/
var win = null;
function win_pop2(mypage,myname,w,h,scroll) {
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2-100 : 0;
  settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=no, toolbar=no, status=no, menubar=no';
  win = window.open(mypage,myname,settings);
}

function go_OtherBTO(value)
{
	var openpopname = '';
	openpopname = window.name;

	switch(value)
	{
		case '1':	if (openpopname=='bto_1')
					{
						location.href = "../business/bto_1_1.asp";
					}
					else
					{
						win_pop2('../business/bto_1_1.asp','bto_1',820,760,'yes')
					}
					break;
		case '2':	if (openpopname=='bto_2')
					{
						location.href = "../business/bto_2_1.asp";
					}
					else
					{
						win_pop2('../business/bto_2_1.asp','bto_2',820,760,'yes')
					}
					break;
		case '3':	//alert("ÁØºñÁßÀÔ´Ï´Ù.")
					location.href="../business/down.asp?file=2009³â_DK UNC_È¸»ç¼Ò°³¼­_BTO.pdf"
					break;
	}
}

function go_BTOsubMenu(value)
{
	var openpopname = '';
	openpopname = window.name;

	if(openpopname=='bto_1')
	{
		switch (value)
		{
			case '1':	location.href = "../business/bto_1_1.asp";
						break;
			case '2':	location.href = "../business/bto_1_2.asp";
						break;
			case '3':	location.href = "../business/bto_1_3.asp";
						break;
			case '4':	location.href = "../business/bto_1_4.asp";
						break;
		}
	}
	else if(openpopname=='bto_2')
	{
		switch (value)
		{
			case '1':	location.href = "../business/bto_2_1.asp";
						break;
			case '2':	location.href = "../business/bto_2_2.asp";
						break;
			case '3':	location.href = "../business/bto_2_3.asp";
						break;
			case '4':	location.href = "../business/bto_2_4.asp";
						break;
			case '5':	location.href = "../business/bto_2_5.asp";
						break;
			case '6':	location.href = "../business/bto_2_6.asp";
						break;
		}
	}
}

/*¾àµµ ÆË¾÷*/
function winPop_Map(mapNo, w, h) {
	openPage = "../about/Print_Location.asp";
	settings = "height="+h+", width="+w+" left=0, top=0, scrollbars=no, status=yes, toolbar=no, menubar=no "

	openPage = openPage+"?mapNo="+mapNo;
	win = window.open(openPage, '', settings);
	win.focus();
}

/*¾àµµ ´Ù¿î·Îµå*/
function down_Map(mapNo){
	this.location = "downMap.asp?file=dkunc_map"+mapNo+".jpg";
}
