var NUrl_Auth_Dr = "";
var hCICK=GetCookie("hCICK");
var redir=location.href;
if(redir=="")	{redir="http://zone.hanafos.com/";}
var arryDomain = "" ;
var strDomin ="" ;
arryDomain = redir.split(".hanafos.com");
strDomin = arryDomain[0].split("http://");
NUrl_Auth_Dr = strDomin[1];
/*
var dmToEnd=dmURL.replace("://","***").indexOf("/");
if (dmToEnd>-1){
	dmURL=dmURL.substr(0,dmToEnd);
}
*/
if (dmURL=="http://signup3.hanafos.com") {
	dmURL = "http://www.hanafos.com/";
}
document.write("<style type='text/css'>");
document.write("@import url(http://www.hanafos.com/gnb/2008/css/gnb_utf.css);");
document.write("</style>");
document.write("<script type='text/javascript'>");
document.write("function changeIt(ImageToChange, ImageToShow){ ");
document.write("	if (document.images){ document[ImageToChange].src = ImageToShow; } ");
document.write("} ");
document.write("function bar(message){ ");
document.write("  if (document.images){ window.status = message; return true } ");
document.write("}");
document.write("function tabCha(num){");
document.write("	if(num == 1){		");
document.write("		document.getElementById('apDiv1').style.display='';");
document.write("	} else{");
document.write("		document.getElementById('apDiv1').style.display='none';");
document.write("	}");
document.write("}");

document.write("function searchAction(sfrm){	");
document.write("	var targeturl;");
document.write("	targeturl = 'http://kr.hanafos.search.yahoo.com/search/hanafos/combo?whr=search&dist=gnb&p=';");
document.write("	if(sfrm.p.value != '')	{	");
document.write("		sfrm.action = targeturl; ");
document.write("		sfrm.submit(); ");
//document.write("		window.top.location.href = targeturl;");
document.write("	} else {		");
document.write("			location.href = 'http://kr.hanafos.search.yahoo.com';");
document.write("	} ");
document.write("}");
document.write("</script>");
document.write("<!-- START 더보기 -->");

document.write("<div id='wrap_apDiv1'>");
document.write("<div id='apDiv1'  style='display:none;' onMouseOver=\"tabCha('1')\" onMouseOut=\"tabCha('0')\">");
document.write("	<ul class='more_one'>");
document.write("		<li><a target=_top href='http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^hfzone^zonGNB^GNB2010^sms&hdurl=http://smszone.hanafos.com/default.asp'  class='minignb'>문자</a></li>");
document.write("		<li><a target=_top href='http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^hfzone^zonGNB^GNB2010^unse&hdurl=http://unsezone.hanafos.com/' class='minignb'>운세</a></li>");
document.write("		<li><a target=_top href='http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^hfzone^zonGNB^GNB2010^coupon&hdurl=http://mybag.hanafos.com/main/NCouponList.do' class='minignb'>쿠폰</a></li>");
document.write("	</ul>");
document.write("	<ul class='more_two'>");
document.write("		<li><a target=_top href='http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^hfzone^zonGNB^GNB2010^news&hdurl=http://news.hanafos.com/' class='minignb'>뉴스</a></li>");
document.write("		<li><a target=_top href='http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^hfzone^zonGNB^GNB2010^naturae&hdurl=http://naturae.hanafos.com/' class='minignb'>네츄라</a></li>");
document.write("		<li><a href='http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^hfzone^zonGNB^GNB2010^mybag&hdurl=http://mybag.hanafos.com' target='_top' class='minignb'>내지갑</a></li>");
document.write("	</ul>");
document.write("	<ul class='more_three'>");
document.write("		<li><a href='http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^hfzone^zonGNB^GNB2010^oxstudy&hdurl=http://oxstudy.hanafos.com/' target='_top' class='minignb'>OX스터디</a></li>");
document.write("		<li><a target=_top href='http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^hfzone^zonGNB^GNB2010^pds&hdurl=http://pds.hanafos.com/' class='minignb'>공개자료실</a></li>");
document.write("		<li><a target=_top href='http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^hfzone^zonGNB^GNB2010^bbs&hdurl=http://news.hanafos.com/bbs/' class='minignb'>네티즌세상</a></li>");
document.write("	</ul>");
document.write("	<ul class='more_four'>");
document.write("		<li><a href='http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^hfzone^zonGNB^GNB2010^event&hdurl=http://event.hanafos.com/' target='_top' class='minignb'>이벤트</a></li>");
document.write("		<li><a target=_top href='http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^hfzone^zonGNB^GNB2010^anduhard&hdurl=http://anduhard.hanafos.com/webhard/Default.asp' class='minignb'>웹하드</a></li>");
document.write("	</ul>");
document.write("	<span class='color_pink'><a href='http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^hfzone^zonGNB^GNB2010^sitemap&hdurl=http://www.hanafos.com/sitemap/'>전체보기</a> <img src='http://www.hanafos.com/gnb/2008/img/bullet_pink.gif'/></span>");
document.write("</div>");
document.write("</div>");
document.write("<!-- END 더보기 -->");
document.write("<div id='gnb_yahoo'>");
document.write("<!-- 로그인후에 로그아웃버튼 img src='/img/btn_logout.gif -->");

if (hCICK.length < 5) {
	document.write("	<span class='login_btn right'><a target=_top href='http://xlogon.hanafos.com/signup/hanafos/www/signup0.asp?redir=http://www.hanafos.com/encDispatcher.asp?returl="+dmURL+"&ispopup=0'><img src='http://www.hanafos.com/gnb/2008/img/btn_login.gif' alt='로그인' /></a></span>");
}
else {
	document.write("	<span class='login_btn right'><a target=_top href='http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^hfzone^zonGNB^"+escape("닷컴GNB^로그아웃")+"log&hdurl=http://xlogon.hanafos.com/logout/Logout.asp?redir=http://kr.hanafos.search.yahoo.com/'><img src='http://www.hanafos.com/gnb/2008/img/btn_logout.gif' alt='로그아웃' /></a></span>");
}
document.write("	<ul>");

document.write("		<li><a href='http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^hfzone^zonGNB^GNB2010^pds&hdurl=http://pds.hanafos.com/' target='_top' class='minignb'>공개자료실</a></li>");
document.write("		<li><a href='http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^hfzone^zonGNB^GNB2010^qbic&hdurl=http://qbic.hanafos.com/' target='_top' class='minignb'>큐빅</a></li>");
document.write("		<li><a href='http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^hfzone^zonGNB^GNB2010^news&hdurl=http://news.hanafos.com/' target='_top' class='minignb'>뉴스</a></li>");
document.write("		<li><a href='http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^hfzone^zonGNB^GNB2010^movie&hdurl=http://movie.hanafos.com/' target='_top' class='minignb'>영화</a></li>");
document.write("		<li><a href='http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^hfzone^zonGNB^GNB2010^comic&hdurl=http://comic.hanafos.com/' target='_top' class='minignb'>만화</a></li>");
document.write("		<li><a href='http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^hfzone^zonGNB^GNB2010^7poker&hdurl=http://7poker.hanafos.com/start.asp' target='_blank' class='minignb'>게임</a></li>");
document.write("		<li><a href='http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^hfzone^zonGNB^GNB2010^shop&hdurl=http://shop.hanafos.com/' target='_top' class='minignb'>돈버는쇼핑</a></li>");
//document.write("		<li class='end'><a target=_top href='http://www.hanafos.com/sitemap/' class='minignb'>더보기</a></li>");
document.write("		<li class='end'><a href='http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^hfzone^zonGNB^GNB2010^sitemap&hdurl=http://www.hanafos.com/sitemap/' target='_top' class='minignb'>전체보기</a></li>");
/*document.write("		<li class='end'><a href='#' onmouseover=\"tabCha('1')\" class='minignb'>더보기 <img src='http://www.hanafos.com/gnb/2008/img/btn_more.gif' class='img_v pb_2'/></a></li>");*/
document.write("	</ul>");
/*document.write("	<span class='more_gnb'><a href='#' onmouseover=\"tabCha('1')\" class='minignb'>더보기 <img src='http://www.hanafos.com/gnb/2008/img/btn_more.gif' class='img_v pb_2'/></span></a>");*/
document.write("	<div id='gnb_utility'>");
document.write("	</div>");
document.write("</div>");
document.write("<div style='clear:both;height:0;font-size:0;line-height:0;'></div>");


function GetCookie(name) 
{   
	var arg = name + "=";   
	var alen = arg.length;   
	var clen = document.cookie.length;   
	var i = 0;   

	while (i < clen) 
	{ 
		var j = i + alen;     
		if (document.cookie.substring(i, j) == arg)       
		return getCookieVal (j);     
		i = document.cookie.indexOf(" ", i) + 1;     
		if (i == 0) break;   
	}   
	return("0") ; 
}

// Cookie 문자열을 읽어온다.
function getCookieVal(offset) 
{ 
	var endstr = document.cookie.indexOf (";", offset); 
	if (endstr == -1) 
		endstr = document.cookie.length; 
	return unescape(document.cookie.substring(offset, endstr)); 
}