var root = "";
var n = navigator.appName; //ie='Microsoft Internet Explorer', ff='Netscape'
var ie = (n == 'Microsoft Internet Explorer');

document.title = "(ÁÖ)¹ÙÀÌÅØ¾¾½ºÅÛ";

//
//flash activeX Àû¿ë½Ã ¶óÀÎ Á¦°Å
//NF_fm(src,id,w,h,t,m)		¡æ Flash Movie. src:ÆÄÀÏ °æ·Î, id:ÇÃ·¡½Ã ¹«ºñ ¾ÆÀÌµð, w:³Êºñ, h:³ôÀÌ, t:¹è°æ Åõ¸í¿©ºÎ(Y:Åõ¸í, N:ºÒÅõ¸í), m:¸Þ´º Ç¥½Ã¿©ºÎ(Y:Ç¥½Ã, N:¹ÌÇ¥½Ã)
//
function NF_fm(src, id, w, h, t, m) {	
	var s = '';
	var s_id = '';
	var s_t = '';
	(id == "") ? s_id="swf" : s_id = id;
	(t == "Y") ? s_t = '<param name="wmode" value="transparent">' : s_t='';
	(m == "Y") ? m = 'true' : m = 'false';

	s += '<object type="application/x-shockwave-flash" ';
	s += 'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ';
	s += 'codebase="http://fpdownload.macromedia.com/';
	s += 'pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"';
	s += 'id="'+s_id+'" width="'+w+'" height="'+h+'">';

	s += '<param name="movie" value="'+root+src+'">';
	s += '<param name="quality" value="high">';	
	s += s_t;
	s += '<param name="menu" value="'+m+'">';
	s += '<param name="swliveconnect" value="true">';

	s += '<embed src="'+root+src+'" quality="high" menu="'+m+'" ';
	s += 'width="'+w+'" height="'+h+'" swliveconnect="true" ';
	s += 'id="'+s_id+'" name="'+s_id+'" type="application/x-shockwave-flash" ';
	s += 'pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';

	s += '<\/object>';
	document.write(s);
}

//·Î±×¾Æ¿ô
function nfLogout(){
	parent.classFrame.location.href = "/common/member_common_exec.asp?mode=logout&to_url=/main.asp";
}

//Iframe ¸®»çÀÌÂ¡
function nfResize(name) {
	var oBody	=	eval(name+".document.body");
	var oFrame	=	eval("document.all."+name);
	oFrame.style.height = oBody.scrollHeight + (oBody.offsetHeight - oBody.clientHeight) + 50;

	location.href = "#top";
}

//Iframe ¸®»çÀÌÂ¡, tap¿ë
function nfResize2(name) {
	var oBody	=	eval(name+".document.body");
	var oFrame	=	eval("document.all."+name);
	oFrame.style.height = oBody.scrollHeight + (oBody.offsetHeight - oBody.clientHeight) + 50;
}

//Iframe ¸®»çÀÌÂ¡ : Firefox¿ë
function nfResizeFF(name) {
	var oFrame	=	document.getElementById(name);
	var oBody	=	oFrame.contentDocument.body;
	
	var newHeight = oBody.offsetHeight + 50;
	oFrame.style.height = newHeight +"px";

	location.href = "#top";
														//alert(newHeight);
}

//
// nfSlide : ½½¶óÀÌµù ÇÔ¼ö
// tg : ÀÌµ¿ ´ë»ó
// tgX : x¹æÇâ ¸ñÇ¥ÁöÁ¡
// speed : ¼Óµµ, 0 ~ 1 »çÀÌÀÇ °ª
// Àû¿ë : var timer = setInterval('nfSlide(0, 0.1)', 10);
//
function nfSlide(tg, tgX, speed){
	var obj = document.getElementById(tg);
	var x = Number(obj.style.left.replace("px",""));
	
	x = x + (tgX - x)*speed;
	if (x >= tgX)
	{
		clearInterval(timer);
	} else {
		obj.style.left = x + "px";
	}


}

