////// 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';
  settings = 'height='+h+',width='+w+',top=10,left=10,scrollbars='+scroll+',resizable=no';
  win = window.open(mypage,myname,settings);
  win.focus();
}

	/***************************************
* ÀÌ¹ÌÁö º¯°æ
***************************************/

 function changeImage(imageUrl)
 {
  if (document.images.middleImage)
   document.images.middleImage.src = imageUrl;
 }
 
/***************************************
* ÆË¾÷ 2
***************************************/
 function window_open(ref){
	window.open('pop_img.asp?idx='+ref,'','width=528, height=725,toolbar=no,scrollbars=yes,resizable=no,status=yes');
}

/***************************************
* openList
***************************************/
var firstListOpen = false;

function openlist(toplist)
{
  
  var ch = document.all[toplist].style.display;

	if (ch=='none')
	{	
		if(!firstListOpen){
			firstListOpen = true;
		}

		document.all[toplist].style.display='';
} else 
	{	
		document.all[toplist].style.display='none';
	}
}





/***************************************
* ÄÚ¸àÆ®
***************************************/
var firstCommentOpen = false;

function openComment()
{
  var ch = document.all["CommentList"].style.display;

	if (ch=='none')
	{	
		if(!firstCommentOpen){
			firstCommentOpen = true;
		}

		document.all["CommentList"].style.display='';
} else 
	{	
		document.all["CommentList"].style.display='none';
	}
	
	
  var ch2 = document.all["CommentWrite"].style.display;

	if (ch2=='none')
	{	
		if(!firstCommentOpen){
			firstCommentOpen = true;
		}

		document.all["CommentWrite"].style.display='';
} else 
	{	
		document.all["CommentWrite"].style.display='none';
	}
}




/***************************************
* 
***************************************/
var firstCommentOpen = false;

function openBlogComment(CommentList,CommentWrite)
{
  var ch = document.all[CommentList].style.display;

	if (ch=='none')
	{	
		if(!firstCommentOpen){
			firstCommentOpen = true;
		}

		document.all[CommentList].style.display='';
} else 
	{	
		document.all[CommentList].style.display='none';
	}
	
	
  var ch2 = document.all[CommentWrite].style.display;

	if (ch2=='none')
	{	
		if(!firstCommentOpen){
			firstCommentOpen = true;
		}

		document.all[CommentWrite].style.display='';
} else 
	{	
		document.all[CommentWrite].style.display='none';
	}
}


/*20091020 - ¾àµµ ÆË¾÷*/
function winPop_Map(mapNo, w, h) {
	openPage = "../company/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();
}

/*20091020 - ¾àµµ ´Ù¿î·Îµå*/
function down_Map(mapNo){
	this.location = "downMap.asp?file=dksteel_map"+mapNo+".jpg";
}