﻿pub="http://www.nhncorp.com/nhn200512";
recruit="http://recruit.nhncorp.com";


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function openWin(url) {
        window.open(url, "viewWin");
}

function goRelSub(stat){
	tarimg  = '../img/common/location_on.gif' ;																												
	tarimg2 = '../img/common/location_off.gif' ;		
	
	if (stat == 1){ 
		document.all.divQuick.style.visibility = "visible"; 
		document.all.rp_quick.src = tarimg ;
	}
	else if (stat == 0){ 
		document.all.divQuick.style.visibility = "hidden"; 
		document.all.rp_quick.src = tarimg2 ;
	}	
}

//COMMON HTML =======================================================
function TopNavi() {
//document.writeln("<table width='940' border='0' cellpadding='0' cellspacing='0'>");
//document.writeln("<tr> ");
document.writeln("  <div style='height:300px'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='940' height='300'>");
document.writeln("            <param name='movie' value='../img/common/sub.swf'>");
document.writeln("            <param name='quality' value='high'><param name='flashvars' value='mainNum="+mainNum+"&subNum="+subNum+"'>");
document.writeln("            <embed src='../img/common/sub.swf' flashvars='mainNum="+mainNum+"&subNum="+subNum+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='940' height='300'></embed>");
document.writeln("          </object></div>");
//document.writeln("</tr>");
//document.writeln("</table>");
}
function Footer() {
document.writeln("				<table border='0' cellpadding='0' cellspacing='0' width='100%'>");
document.writeln("				<tr><td height='65'></td></tr>");
document.writeln("				<tr><td bgcolor='#CCCCCC' colspan='2'></td></tr>");
document.writeln("				<tr><td height='10'></td></tr>");
document.writeln("				<tr>");
document.writeln("					<td>");
                    					<!--- 071115 수정 --->
document.writeln("						<a href='../01company/06contactus.html'><img src='../img/index/ft_btn_01.gif' width='39' height='11' border='0'></a><img src='../img/index/ft_btn_split.gif' width='15' height='10'><a href='../06default/01sitemap.html'><img src='../img/index/ft_btn_02.gif' width='38' height='11' border='0'></a><img src='../img/index/ft_btn_split.gif' width='15' height='10'><a href='http://www.miibeian.gov.cn/' target='_blank'><img src='../img/index/ft_btn_icp.gif' width='84' height='11' alt='' border='0'></a><br><br style='line-height:4px;'>");
                    					<!--- //071115 수정 --->
document.writeln("						<img src='../img/index/ft_btn_03.gif' width='293' height='9' border='0' align='absmiddle'>");
document.writeln("					</td>");
document.writeln("					<td align='right' valign='bottom'  style='padding-bottom:3'>");
document.writeln("						<a href='http://www.ourgame.com/' target='_blank'><img src='../img/index/ft_logo_ourgame.gif' width='89' height='25'   align='absmiddle'></a>");
document.writeln("						<a href='http://www.nciku.com/' target='_blank'><img src='../img/index/ft_logo_nciku.gif' width='89' height='25'   align='absmiddle'></a>");
document.writeln("					</td>");
document.writeln("				</tr>");
document.writeln("				<tr><td height='50'></td></tr>");
document.writeln("				</table>");
}

function ComInfo(){
document.writeln("		<table width='240' border='0' cellspacing='0' cellpadding='0'>");
document.writeln("		<tr><td height='25'></td></tr>");
document.writeln("		<tr><td><a href='"+pub+"/img/company/NHNinfo_kr.pdf' target='_blank'><img src='"+pub+"/img/common/btn_brochure.gif' width='113' height='24' ></a></td></tr>");
document.writeln("		<tr><td height='10'></td></tr>");
document.writeln("		<tr><td><a href='http://www.adobe.com/products/acrobat/readstep2.html' target='_blank'><img src='"+pub+"/img/common/btn_acrobat.gif' width='88' height='24'  hspace='5'></a></td></tr>");
document.writeln("		</table>");
}
		
function CommonRight_main() {
document.writeln("		<table width='240' border='0' cellspacing='0' cellpadding='0'>");
document.writeln("		<tr><td height='5'></td></tr>");
document.writeln("		<tr>");
document.writeln("			<td width='79'><a onfocus='blur()' onmouseover='goRelSub(1)' onmouseout='goRelSub(0)'><img src='"+pub+"/img/common/location_off.gif' name='rp_quick' width='79' height='20' border='0' align='absmiddle' style='cursor:hand'></a></td>");
document.writeln("			<td width='62'><img src='"+pub+"/img/common/loc_02.gif' width='62' height='20'></td>");
document.writeln("			<td width='44'><a href=javascript:page_go(0);><img src='"+pub+"/img/common/loc_03.gif' width='44' height='20' border='0'></a></td>");
document.writeln("			<td width='3'><img src='"+pub+"/img/common/loc_04.gif' width='3' height='20'></td>");
document.writeln("			<td width='52'><a href=javascript:page_go(1)><img src='"+pub+"/img/common/loc_05.gif' width='52' height='20' border='0'></a></td>");
document.writeln("		</tr>");
document.writeln("		</table>");
document.writeln("		<div id='divQuick' style='position:absolute;top:435;left:690;width:79;visibility:hidden' onmouseover='goRelSub(1)' onmouseout='goRelSub(0)'>");
document.writeln("		<table width='79' cellpadding='0' cellspacing='0' border='0' bgcolor='#FFFFFF' style='border:0px'>");
document.writeln("		<tr><td><a href='http://www.nhncorp.jp' target='_blank' onfocus='blur()'><img src='"+pub+"/img/common/location_list1.gif' width='79' height='20' border='0'></a></td></tr>");
document.writeln("		<tr><td><a href='http://www.nhnusainc.com' target='_blank' onfocus='blur()'><img src='"+pub+"/img/common/location_list2.gif' width='79' height='20' border='0'></a></td></tr>");
document.writeln("		<tr><td><!--a href='#' onfocus='blur()'--><img src='"+pub+"/img/common/location_list3.gif' width='79' height='20' border='0'><!--/a--></td></tr>");
document.writeln("		</table>");
document.writeln("		</div>");

document.writeln("              <table width='240' border='0' cellspacing='0' cellpadding='0'>");
document.writeln("              <tr><td height='5'></td></tr>");
document.writeln("              <tr><td><a href='http://story.nhncorp.com/' target='_blank'><img src='"+pub+"/img/common/title_story.gif' width='240' height='35'></a></td></tr>");
document.writeln("              </table>");

}

document.writeln ('<script language="javascript" src="../commonRight.js">\</script>');

function TopButton() {
document.writeln("		<div id='STATICMENU' style='width:55px; position:relative; z-index:1;'> ");
document.writeln("		<table border='0' cellpadding='0' cellspacing='0'><tr><td><img src='../img/common/btn_top_bg1.gif'></td></tr>");
document.writeln("		<tr>");
document.writeln("			<td><a href='#'><img src='../img/common/btn_top.gif' alt='top' border='0'></a></td>");
document.writeln("		</tr>");
document.writeln("		<tr><td><img src='../img/common/btn_top_bg2.gif'></td></tr>");
document.writeln("		</table>");
document.writeln("		</div>");
}
//=====================================================================

//1Depth Menu rollOn 
function ImgPreLoad(imgTitle, imageNum) {
		imageNum++;
		rollOn = new Array(imageNum);
		rollOff = new Array(imageNum);
		for (j = 1; j <= imageNum; j++) {
			if (j < 10) {
				tmp = "0";
			} else {
				tmp ="";
			}
			rollOn[j] = new Image();
			rollOn[j].src = imgTitle + tmp + j + "_on.gif";
			rollOff[j] = new Image();
			rollOff[j].src = imgTitle + tmp + j + ".gif";
		}
	}
	function imgOn(Num) {
    if (rollOn[Num] != null) {	
				document["B"+Num].src = rollOn[Num].src;
		}
	}
	function imgOff(Num) {
		if (rollOn[Num] != null) {
			if (Num != _MCurrentOn) {
				document["B"+Num].src = rollOff[Num].src;
			}
      else {  
      document["B"+Num].src = rollOn[Num].src;
      }
		}
	}
	
var stmnLEFT = 0; // left position
var stmnGAP1 = 40; // header margin
var stmnGAP2 = -60; // top margin
var stmnBASE = 40; // default position
var stmnActivateSpeed = 1; // move speed
var stmnScrollSpeed = 1; // scroll speed

var stmnTimer;

function RefreshStaticMenu()
{
		var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;

		stmnStartPoint = parseInt(STATICMENU.style.top, 10);
		stmnEndPoint = document.body.scrollTop + stmnGAP2;
		if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1;

		stmnRefreshTimer = stmnActivateSpeed;

		if ( stmnStartPoint != stmnEndPoint ) {
				stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 );
				STATICMENU.style.top = parseInt(STATICMENU.style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount );
				stmnRefreshTimer = stmnScrollSpeed;
		}

		stmnTimer = setTimeout ("RefreshStaticMenu();", stmnRefreshTimer);
}



function InitializeStaticMenu()
{
				STATICMENU.style.top = document.body.scrollTop + stmnBASE;
				RefreshStaticMenu();

		STATICMENU.style.left = stmnLEFT;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_popupMsg(msg) { //v1.0
  alert(msg);
}

//Popup 		
function popup(Fn,Win, X, Y, Scroll){
l = (screen.width) ?	(screen.width- X) / 2	: 0;
t = (screen.height) ?	(screen.height- Y) / 2 : 0;	
	NewWindow=window.open(Fn,Win,'width='+X+',height='+Y+',top='+t+',left='+l+',scrollbars='+Scroll+',toolbar=no,location=no,directories=no,status=no,resizable=no,menubar=no');
}


<!-- [점선 없애기] 시작 ###########################################################################-->
function allblur() {
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
}
document.onfocusin = allblur;
<!-- [점선 없애기] 끝 ###########################################################################-->

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_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_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];}
}

<!-- rolling_banner Click -->
function goLink(addr)
{
	window.open(addr,'rolling_banner');
}

<!-- Loading Message -->
function hiddenLoadingMsg() {
        layerRef                = 'document.all';
        styleSwitch     = '.style';
        layerID                 = 'LOADINGMESSAGE';
        eval(layerRef + '["' + layerID + '"]' + styleSwitch + '.visibility="hidden"');
}

function viewLoadingMsg(v_width,v_height) {
        document.writeln ("<DIV ID='LOADINGMESSAGE' STYLE='position:absolute; visibility:visible'>");
        document.writeln ("<table border='0' width='" + v_width + "' height='" + v_height + "' cellspacing='0' cellpadding='0' align='left'>");
        document.writeln ("<tr>");
        document.writeln ("<td width='100%' align='center' valign='top' bgcolor='#FFFFFF' style='PADDING-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-BOTTOM: 0px; COLOR: #FFFFFF; PADDING-TOP: 100px;' background='"+pub+"/img/common/blank.gif'>");
        document.writeln ("<img src='"+pub+"/img/common/loading.gif'>");
        document.writeln ("</td>");
        document.writeln ("</tr>");
        document.writeln ("</table>");
        document.writeln ("</DIV>");
}
