﻿<!--
document.onkeydown = F5KeyDown;

//var imageDomain = "http://image.prfilm.co.kr/cjinternet";
var imageDomain = "http://c2.img.netmarble.kr/web/4g/CJI/image";

/***************************************
* DEXT Upload Prgress Bar
***************************************/
function fShowProgress()
{
	strAppVersion = navigator.appVersion;

  if (strAppVersion.indexOf('MSIE') != -1 && strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1) > 4) {
    winstyle = "dialogWidth=385px; dialogHeight:150px; center:yes";
    window.showModelessDialog("/Common/Progress/show_progress.asp?nav=ie",'_blank', winstyle);
  }
  else {
    winpos = "left=" + ((window.screen.width-380)/2) + ",top=" + ((window.screen.height-110)/2);
    winstyle="width=380,height=110,status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no,copyhistory=no," + winpos;
    window.open("/Common/Progress/show_progress.asp?nav=ns",'_blank',winstyle);
  }

	return true;
}

/***************************************
* 프레임에서 새로고침(F5)시 현재 페이지 유지
***************************************/ 
function F5KeyDown()
{
  if(event.keyCode == 116)
  {
    window.event.keyCode = "";
    location.href = location.href;
    return false;
  }
}

/***************************************
* top button 
***************************************/ 
ScroolTop = function(className, id) {
  this.IE = document.all ? 1 : 0;
  this.NN = document.layer ? 1 : 0;
  this.N6 = document.getElementById ? 1 : 0;
  if(this.IE) this.layer = document.all(id);
  else if(this.NN) this.layer = document.layer[id];
  else if(this.N6) this.layer = document.getElementById(id);
  else return;
  this.className = className;
  this.top = this.oldY = parseInt(this.layer.style.top,10);
  setInterval(this.className + ".move()", 10);
}
ScroolTop.prototype.move = function() {
    var diffY = (this.IE) ? document.body.scrollTop+this.top : self.pageYOffset+this.top; // 표준에는 document.documentElement.scrollTop
    if(diffY != this.oldY) {
        var percentY = .1 * (diffY - this.oldY);
        percentY = (percentY > 0) ? Math.ceil(percentY) : Math.floor(percentY);

        this.oldY += percentY;
        this.layer.style.top = this.oldY + "px";
    }
}

function goTop(orix,oriy,desx,desy) {
  var Timer;
  var winHeight = document.body.scrollTop;
  if(Timer) clearTimeout(Timer);
  startx = 0;
  starty = winHeight;
  if(!orix || orix < 0) orix = 0;
  if(!oriy || oriy < 0) oriy = 0;
  var speed = 7;
  if(!desx) desx = 0 + startx;
  if(!desy) desy = 0 + starty;
  desx += (orix - startx) / speed;
  if (desx < 0) desx = 0;
  desy += (oriy - starty) / speed;
  if (desy < 0) desy = 0;
  var posX = Math.ceil(desx);
  var posY = Math.ceil(desy);
  window.scrollTo(posX, posY);
  if((Math.floor(Math.abs(startx - orix)) < 1) && (Math.floor(Math.abs(starty - oriy)) < 1)){
    clearTimeout(Timer);
    window.scroll(orix,oriy);
  }else if(posX != orix || posY != oriy){
    Timer = setTimeout("goTop("+orix+","+oriy+","+desx+","+desy+")",15);
  }else{
    clearTimeout(Timer);
  }
}


/***************************************
* 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 menuOn_1(imgEl)
{
	imgEl.src = imgEl.src.replace(".gif", "_on.gif");
}

function menuOut_1(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;
  }


/***************************************
* Flash 스크립트 
***************************************/
function fFlash(argSrc, argSwfPath, argXmlPath, argWidth, argHeight, argCode, argID, argWMode, argStart, argBG)
{
  var strTEMP;

  strTEMP ='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ' ;

  if(argID)
	strTEMP = strTEMP + ' ID="' + argID + '" ' ;

  strTEMP = strTEMP + ' width="'+ argWidth + '" height="' + argHeight + '">';
  strTEMP = strTEMP + '<param name="movie" value="' + argSwfPath + '/flash/' + argSrc + '?page_code=' + argCode + '&basic_path=http://' + argXmlPath + '/XML/&swf_path='+ argSwfPath + '/&firstStart=' + argStart + '">';
  strTEMP = strTEMP + '<param name="quality" value="high">';
  strTEMP = strTEMP + '<param name="memu" value="false">';
  strTEMP = strTEMP + '<param name="allowScriptAccess" value="always">';

  if(argBG)
	strTEMP = strTEMP + '<param name="bgcolor" value="' + argBG + '">';
  else	
	strTEMP = strTEMP + '<param name="bgcolor" value="#FFFFFF">';

  if(argWMode)
	strTEMP = strTEMP + '<param name="wmode" value="' + argWMode + '">';
  else
	strTEMP = strTEMP + '<param name="wmode" value="transparent">';
  
  strTEMP = strTEMP + '<embed allowScriptAccess="always" src="' + argSwfPath + '/flash/' + argSrc + '?page_code=' + argCode + '&basic_path=http://' + argXmlPath + '/XML/&swf_path='+ argSwfPath +'/&firstStart=' + argStart + '"';

  if(argID)
	strTEMP = strTEMP + ' ID="' + argID + '" ' ;

  strTEMP = strTEMP + ' width="' + argWidth + '" height="'+ argHeight + '" quality="high" menu=false pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" '; 

  if(argWMode)
	strTEMP = strTEMP + 'wmode="' + argWMode + '"';
  else
	strTEMP = strTEMP + 'wmode="transparent"';


  strTEMP = strTEMP + '></embed></object>';

  document.write(strTEMP);
//alert(strTEMP);
}

function fbFlash(argSrc, argSwfPath, argXmlPath, argWidth, argHeight, argCode, argID, argWMode)
{
  var strTEMP;

  strTEMP ='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ' ;

  if(argID)
	strTEMP = strTEMP + ' ID="' + argID + '" ' ;

  strTEMP = strTEMP + ' width="'+ argWidth + '" height="' + argHeight + '">';
  strTEMP = strTEMP + '<param name="movie" value="' + argSwfPath + '/flash/' + argSrc + '?page_code=' + argCode + '&book_path=' + argSwfPath + '/flash/05_CONTENTS/">';
  strTEMP = strTEMP + '<param name="quality" value="high">';
  strTEMP = strTEMP + '<param name="memu" value="false">';
  strTEMP = strTEMP + '<param name="allowScriptAccess" value="always">';

  if(argWMode)
	strTEMP = strTEMP + '<param name="wmode" value="' + argWMode + '">';
  else
	strTEMP = strTEMP + '<param name="wmode" value="transparent">';
  
  strTEMP = strTEMP + '<embed allowScriptAccess="always" src="' + argSwfPath + '/flash/' + argSrc + '?page_code=' + argCode + '&book_path=' + argSwfPath + '/flash/05_CONTENTS/"';

  if(argID)
	strTEMP = strTEMP + ' ID="' + argID + '" ' ;

  strTEMP = strTEMP + ' width="' + argWidth + '" height="'+ argHeight + '" quality="high" menu=false pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" '; 

  if(argWMode)
	strTEMP = strTEMP + 'wmode="' + argWMode + '"';
  else
	strTEMP = strTEMP + 'wmode="transparent"';


  strTEMP = strTEMP + '></embed></object>';

  document.write(strTEMP);
//alert(strTEMP);
}

/***************************************
* 팝업 띄우기  
***************************************/
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 fscreen () {
window.open('/pr/pop_sabo.asp' ,'window','fullscreen,scrollbars');
}
function fullScreen(theURL){
window.open(theURL,'','fullscreen=yes');
}


function qnaClick(tid){
	var objBoxQ = tid.getElementsByTagName("dt");
	var objBoxA = tid.getElementsByTagName("dd");
	

	var temp = 0;
	for(i=0;i<objBoxQ.length;i++){
		objBoxQ[i].targetEl = objBoxA[i];
		if(!objBoxQ[i].targetEl) 
			continue;

		objBoxQ[i].targetEl.style.display = "none";
		objBoxQ[i].onclick = function () {
			if (tid.current == this) {
				this.targetEl.style.display = "none";
				tid.current = null;
			} else {
				if (tid.current) {
					tid.current.targetEl.style.display = "none";
				}
				this.targetEl.style.display = "block";
				tid.current = this;
			}
			return false;
		}

			
	}

}
/***************************************
* 화보 플래시 닫기
***************************************/
function close_win()
{
	window.close();
}


/***************************************
* 지도 인쇄하기   
***************************************/
 var initBody 
 function beforePrint(){ 
  initBody = document.body.innerHTML; 
  document.body.innerHTML = idPrint.innerHTML; 
 } 
 function afterPrint(){ 
  document.body.innerHTML = initBody; 
 } 
 function printArea() { 
  window.print(); 
 } 
 window.onbeforeprint = beforePrint; 
 window.onafterprint = afterPrint; 

//-->


//-->
/***************************************
* Footer 영문 법적고지 팝업 
***************************************/
function TermsOfUse(){
	window.open('/eng/util/ruleus.asp','','width=500px,height=843px,toolbars=no,scrollbars=no,resizable=no');
}


/*Tab*/
function c_tab(no,total,lname) {
	if (no == "") no = "01";

	for(var i=1;i <= total;i++){
	var tlayer = eval("document.all."+lname+"0"+i);
	
	if(tlayer)
	tlayer.style.display = 'none';
	}
	
	eval("document.all."+lname+no+".style.display = 'block';");
}