﻿////// 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 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);
}
	/***************************************
* 썸네일 이미지  
***************************************/

 function changeImage(imageUrl)
 {
  if (document.images.middleImage)
   document.images.middleImage.src = imageUrl;
 }

/*약도 팝업*/
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=dksn_map"+mapNo+".jpg";
}
