/* ÁÂÃø Äü¸Þ´º ½ºÅ©·ÑÀ» À§ÇÑ ½ºÅ©¸³Æ® */
/*
var stmnGAP1 = 326;
var stmnGAP2 = 326;
var stmnBASE = -40;
var stmnActivateSpeed = 200;
var stmnScrollSpeed = 10;
var stmnTimer;

function RefreshStaticMenu()
{
		var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;

		stmnStartPoint = parseInt(document.getElementById("STATICMENU").style.top, 10);
		stmnEndPoint = document.documentElement.scrollTop + stmnGAP2;

		if (stmnEndPoint < stmnGAP1) {stmnEndPoint = stmnGAP1;}

		stmnRefreshTimer = stmnActivateSpeed;

		if ( stmnStartPoint != stmnEndPoint ) {
				stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 );
				document.getElementById("STATICMENU").style.top = parseInt(document.getElementById("STATICMENU").style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount );
				stmnRefreshTimer = stmnScrollSpeed;
		}

		stmnTimer = setTimeout ("RefreshStaticMenu();", stmnRefreshTimer);
}
*/


/* ÅÇ¸Þ´º ¸¶¿ì½º¿À¹ö*/
function imageOver(imgs) {
 imgs.src = imgs.src.replace("off.gif", "on.gif");
}
function imageOut(imgs) {
 imgs.src = imgs.src.replace("on.gif", "off.gif");
}


/* ÆË¾÷ ·¹ÀÌ¾î */
/* layer show/hide */
function layerShow(imgLayer) {
	document.getElementById(imgLayer).style.display = "block";
}
function layerHide(imgLayer) {
	document.getElementById(imgLayer).style.display = "none";
}

/* layer move */
function layerMove(imgLayer) {
	var layerObj = document.getElementById(imgLayer);
	if(document.getElementById("wrap")) {

		with (layerObj.style) {
			position = "absolute";
			left = 292;
			top = 442;
		}
	} else {
		with (layerObj.style) {
			position = "absolute";
			left = 0;
			top = 0;
		}
	}
}

function popupLayer2(imgLayer,dis) {
	if(dis == "show") {
		document.getElementById(imgLayer).style.visibility = "visible";
		layerMove(imgLayer);
		alpha.apply();

	} else if(dis == "hide") {
		document.getElementById(imgLayer).style.visibility = "hidden";
		alpha.clear();
	}
	return false;
}




function layerShow(chartLayer) {
	document.getElementById(chartLayer).style.display = "block";
}
function layerHide(chartLayer) {
	document.getElementById(chartLayer).style.display = "none";
}

/* layer move */
function layerMove(chartLayer) {
	var layerObj = document.getElementById(chartLayer);
	if(document.getElementById("wrap")) {

		with (layerObj.style) {
			position = "absolute";
			left = 310;
			top = 442;
		}
	} else {
		with (layerObj.style) {
			position = "absolute";
			left = 0;
			top = 0;
		}
	}
}






/* ºñÈ°¼ºÈ­ ·¹ÀÌ¾î */
// ¾ËÆÄ·¹ÀÌ¾î ¿Â    : alpha.apply('»ö»ó','Åõ¸íµµ')  [ »ö»ó ¹× Åõ¸íµµ ¹ÌÁöÁ¤½Ã µðÆúÆ®´Â Èò»ö¿¡ 50% ÀÔ´Ï´Ù ¿¹) alpha.apply() ]
// ¾ËÆÄ·¹ÀÌ¾î ¿ÀÇÁ  : alpha.clear()
alpha = new Object;
alpha = {
	clear  : function() {
				alpha.create().style.display = "none"
				document.getElementsByTagName('HTML')[0].style.overflow = "";
				
			},
	apply  : function(co,op) {
				var Alpha = alpha.create()
				var alphacolor = co ? co : "#000"
				var opa = op ? op : "40"
				document.getElementsByTagName('HTML')[0].style.overflow = "";
				
				with (Alpha.style) {
					//width      = document.getElementById("allwrap").scrollWidth + "px";
					//height     = document.getElementById("allwrap").scrollHeight + "px";
					width      = document.body.scrollWidth + "px";
					height     = document.body.scrollHeight + "px";
					background = alphacolor;
					filter     = "alpha(opacity=" + opa + ")";
					opacity    = opa / 100;
					display    = "block";					
				}			
			},
	create : function() {
				if (!document.getElementById('alpha')) {
					var alphaDiv = document.createElement('div');
					alphaDiv.setAttribute('id', 'alpha');
					with(alphaDiv.style) {
						display  = "none";
						position = "absolute";
						top      = "0";
						left     = "0";
						zIndex   = "90";
					}
					document.body.appendChild(alphaDiv);
					window.onresize = alpha.resize;
				}
				return document.getElementById('alpha')
			},
	resize : function() {
				var Alpha = alpha.create()
				with (Alpha.style) {
					width      = document.body.scrollWidth + "px";
					height     = document.body.scrollHeight + "px";
				}
			}
}

function popupLayer(layerId,dis) {
	if(dis == "show") {
		layerShow(layerId);
		layerMove(layerId);
		alpha.apply();
	} else if(dis == "hide") {
		layerHide(layerId);
		alpha.clear();
	}
	return false;
}


/* ÀÌ¿Ã¶ó½ºÆÐÄ¡ */
function swf_include(swfUrl,swfWidth,swfHeight,swfName,flashVars){
	// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
	var flashStr=
	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+swfWidth+"' height='"+swfHeight+"' id='"+swfName+"' align='middle' />"+
	"<param name='allowScriptAccess' value='always' />"+
	"<param name='allowFullScreen' value='true' />"+
	"<param name='movie' value='"+swfUrl+"' />"+
	"<param name='FlashVars' value='"+flashVars+"' />"+
	"<param name='loop' value='false' />"+
	"<param name='wmode' value='transparent' />"+
	"<param name='quality' value='high' />"+
    "<param name='scale' value='noscale' />"+
	"<embed src='"+swfUrl+"' FlashVars='"+flashVars+"' wmode='transparent' quality='best' menu='false' width='"+swfWidth+"' height='"+swfHeight+"' name='"+swfName+"' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";

	// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	document.write(flashStr);
}

/* Äü¸Þ´º*/
function sTop() {
	var topBan = document.documentElement.scrollTop;
	document.getElementById("menu1").style.top = topBan +287+"px";
	setTimeout("sTop()",10);
}



// png ÆÄÀÏ Åõ¸í Ã³¸® 
function setPng24(obj) {
    obj.width=obj.height=1;
    obj.className=obj.className.replace(/\bpng24\b/i,'');
    obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
    obj.src='';
    return '';
}



/* ÆË¾÷*/

function popup_01(){
cuteLittleWindow = window.open('/new/email_pop.html', 'littleWindow', 'location=no,width=420,height=500'); 
}

function popup_02(){
cuteLittleWindow = window.open('/new/acc_pop.html', 'littleWindow', 'scrollbars=yes,location=no,width=420,height=500'); 
}


function brocher_01(){
cuteLittleWindow = window.open('/new/cyber_info/ebrocher_pop.html', 'littleWindow', 'location=no,width=882,height=651'); 
}

function brocher_02(){
cuteLittleWindow = window.open('/new/cyber_info/ebrocher_pop_cha.html', 'littleWindow', 'location=no,width=882,height=651'); 
}

function brocher_03(){
cuteLittleWindow = window.open('/new/cyber_info/ebrocher_pop_eng.html', 'littleWindow', 'location=no,width=882,height=651'); 
}


function main_movie(){
cuteLittleWindow = window.open('/new/main/movie_pop.html', 'littleWindow', 'location=no,width=385,height=319'); 
}


/*function main_work(){
cuteLittleWindow = window.open('/new/main/main_pop.html', 'littleWindow', 'location=no,width=800,height=411'); 
}*/
/*function main_work(){
	cuteLittleWindow = window.open('/new/main/main_pop.html', 'littleWindow', 'location=no,width=400,height=200'); 
}*/


function main_work(){
cuteLittleWindow = window.open('http://59.16.10.214/01_HOME/main_pop.asp', 'littleWindow', 'scrollbars=yes,location=no,width=817,height=411'); 
}



/*
	//ÆË¾÷¶ç¿ì±â
	function getCookie( name ){
		var nameOfCookie = name + "=";
		var x = 0;
		while ( x <= document.cookie.length )
		{
		var y = (x+nameOfCookie.length);
		if ( document.cookie.substring( x, y ) == nameOfCookie ) {
		if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
		endOfCookie = document.cookie.length;
		return unescape( document.cookie.substring( y, endOfCookie ) );
		}
		x = document.cookie.indexOf( " ", x ) + 1;
		if ( x == 0 )
		break;
		}
		return "";
		}
		if ( getCookie( "Notice" ) != "done" ) {
		noticeWindow  =  window.open('/new/sunkwang_pop.html','eventpop','width=400,height=260,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,left=0,top=100');
		noticeWindow.opener = self;

		}

window.onload = getCookie();

*/