function allblur() {
	for (i = 0; i < document.links.length; i++)
		document.links[i].onfocus = document.links[i].blur;
}

function online()
{
   window.open("/career/pop_online_record.aspx","online","height=500,width=717,location=0,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0")
}

//top Button
 var divMenu = null;
var layerHeight = 350; // È­¸é»óÀÇ ·¹ÀÌ¾î ³ôÀÌ.

function CheckUIElements(){
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

	yMenuFrom   = parseInt (divMenu.style.top, 10);
	yMenuTo     = document.body.scrollTop + layerHeight; // ·¹ÀÌ¾î Y ÁÂÇ¥

	timeoutNextCheck = 500;

	if ( yMenuFrom != yMenuTo ) {
		yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );

		if ( yMenuTo < yMenuFrom ) {
			yOffset = -yOffset;
		}

		divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;

		timeoutNextCheck = 10;
	}

	setTimeout ("CheckUIElements()", timeoutNextCheck);
}

function stalkerLayerFromTop(stalkerLayer, stalkerLayerHeight) {
	if (stalkerLayer == "" || stalkerLayer == null) {
		return false;
	}

	stalkerLayerHeight = stalkerLayerHeight;
	divMenu = stalkerLayer;
	divMenu.style.top = document.body.scrollTop + layerHeight;  //ÀÍ½ºÇÃ·Î·¯¿ë ·¹ÀÌ¾î Y ÁÂÇ¥
	divMenu.style.visibility = "visible";
	CheckUIElements();
	return true;
}

// flash, media
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 playFlash(objID, objSource, objWidth, objHeight, objStyle, cabVersion, embedAttr)
{
	document.write('<OBJECT id="' + objID + '" name="' + objID + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');

	if (cabVersion != '') {
		document.write('codebase="' + self.window.document.protocol + '"://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + cabVersion + '" ');
	}
	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('<embed src="' + objSource + '" width="' + objWidth + '" height="' + objHeight + '" ' + embedAttr + '>');
	document.write('</OBJECT>');
}

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>');
}

function showFlashObject(objID, objSource, objWidth, objHeight, objQuality, objWmode, objBgcolor)
{
	//page url
	var pageUrl = self.window.location.href;
	if(pageUrl.substring(0,5) == 'https') {
		swfUrl = "https";
	} else {
		swfUrl = "http";
	}
	/* Default Value Setting */
	if (objID == "") objID = 'ShockwaveFlash1';
	if (objWidth == "") objWidth = '0';
	if (objHeight == "") objHeight = '0';
	if (objQuality == "") objQuality = 'best';
	if (objWmode == "") {
		objWmode = 'transparent';
	}
	/*
	else {
		objWmode = '';
	}
	*/

	/* Flash 8.0 version */
	document.write('<OBJECT id="' + objID + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('type="application/x-shockwave-flash" ');
	document.write('data="' + objSource + '" ');
	document.write('codebase="' + swfUrl +'://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" ');
	document.write('WIDTH="' + objWidth + '" HEIGHT="' + objHeight + '">');
	document.write('<PARAM NAME=menu value=false>');
	document.write('<PARAM NAME=allowScriptAccess value=always>');
	document.write('<PARAM NAME=wmode value="'+ objWmode +'">');
	document.write('<PARAM NAME=movie VALUE="'+ objSource +'">');
	document.write('<PARAM NAME=quality VALUE="'+ objQuality +'">');
	document.write('<PARAM NAME=bgcolor VALUE="'+ objBgcolor +'">');
	document.write('<embed allowScriptAccess="always" swLiveConnect="true" src="' + objSource + '" menu="false" quality="' + objQuality + '" wmode="' + objWmode + '" bgcolor="' + objBgcolor + '" width="' + objWidth + '" height="' + objHeight + '" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer">');
	document.write('</OBJECT>');
}

function showFlashObject2(objID, objSource, objWidth, objHeight, objQuality, objWmode, objBgcolor, arrParaname, arrParavalue, embWidth, embHeight)
{
	/* Default Value Setting */
	if (objID == "") objID = 'ShockwaveFlash1';
	if (objWidth == "") objWidth = '0';
	if (objHeight == "") objHeight = '0';
	if (objQuality == "") objQuality = 'best';
	if (objWmode == "") {
		objWmode = 'transparent';
	}

	/* Flash 8.0 version */
	document.write('<OBJECT id="' + objID + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('type="application/x-shockwave-flash" ');
	document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ');
	document.write('WIDTH="' + objWidth + '" HEIGHT="' + objHeight + '">');

	for(var i=0; i<arrParaname.length ; i++){
		document.write('<PARAM NAME="' + arrParaname[i] + '" VALUE="' + arrParavalue[i] + '">');
	}

	document.write('<embed allowScriptAccess="always" swLiveConnect="true" src="' + objSource + '" menu="false" quality="' + objQuality + '" wmode="' + objWmode + '" bgcolor="' + objBgcolor + '" width="' + embWidth + '" height="' + embHeight + '" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer">');
	document.write('</OBJECT>');
}

function showObject(objID, objWidth, objHeight, objAlign, classID, arrParaname, arrParavalue)
{
	document.write('<OBJECT id="' + objID + '" classid="' + classID + '" width="' + objWidth + '" height="' + objHeight + '" ');

	if (objAlign == "")
		document.write(' VIEWASTEXT>');
	else
		document.write('align="' + objAlign + '" VIEWASTEXT>');

	for(var i=0; i<arrParaname.length ; i++){
		document.write('<PARAM NAME="' + arrParaname[i] + '" VALUE="' + arrParavalue[i] + '">');
	}
	document.write('</OBJECT>');
}


/////////COMMON POPUP////////////////////////////////////////////////////////////
//1_NCRC MAP
function ncrcMap()
{
   window.open("/company/pop_map.html","map","height=489,width=569,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0")
}




