
var id_save;var security_save;
function Click_Id_Save(){if (id_save==false){id_save=true;}else{id_save=false;}}
function checkkey(e, frm)
{if (e.keyCode == 13){if (frm.puserid.value.length < 1){frm.puserid.focus();return;}
else if ( frm.ppasswd.value.length < 1 ){frm.ppasswd.focus();return false;}
else{MemberSubFormCheck(frm);}}else{return;}}

String.prototype.trim = function()
{
 return this.replace(/(^\s*)|(\s*$)/g, "");
}
function Click_Security_Save(){if (security_save==false) security_save=true;else security_save=false;}
function MemberSubFormCheck(frm) {
    var imgObj = new Image();
	 
	if (frm.puserid.value.trim() == ""){alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏÁö ¾Ê¾Ò½À´Ï´Ù.");frm.puserid.focus();return false;}
	if (frm.ppasswd.value.trim() == ""){alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏÁö ¾Ê¾Ò½À´Ï´Ù.");frm.ppasswd.focus();return false;}
	if ( id_save==true ){setCookieValue("hanafosFC","puserid",frm.puserid.value.trim() ,365,".hanafos.com");setCookieValue("hanafosFC","id_save","1" ,365,".hanafos.com");}
	else{setCookieValue("hanafosFC","puserid"," ",365,".hanafos.com");setCookieValue("hanafosFC","id_save","0",365,".hanafos.com");}
	 if ( security_save==true ){setCookieValue("hanafosFC","security_save","1",365,".hanafos.com");}else{setCookieValue("hanafosFC","security_save","0",365,".hanafos.com");}
	 if(document.MemberSubForm.security_save.checked == false){document.RealForm.userid.value = frm.puserid.value.trim();document.RealForm.passwd.value = frm.ppasswd.value.trim();

	 imgObj.src = "http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^mainal^htmainpg^loginB^loginbutton&hdurl=http://image.hanafos.com/blank.gif"; 
	 
	 //document.getElementById("if1").src = "http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^mainal^htmainpg^loginB^loginbutton&hdurl=http://www.hanafos.com/hdtemp.htm";
	 document.RealForm.submit();
	}else{document.RealForm_ssl.userid.value = frm.puserid.value.trim();document.RealForm_ssl.passwd.value = frm.ppasswd.value.trim();document.RealForm_ssl.isencrypted.value = "no";
	//document.getElementById("if1").src = "http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^mainal^htmainpg^loginB^loginbutton&hdurl=http://www.hanafos.com/hdtemp.htm";
	imgObj.src = "http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^mainal^htmainpg^loginB^loginbutton&hdurl=http://image.hanafos.com/blank.gif"; 
	document.RealForm_ssl.submit();
	
	}
}

var keytext = "";
var keyword = "";
var userinput = 0;
var eventurl = "";




function Action_intro(v){	
	var ctag="htmainpg";	
	
	if(v=="my")	{ ctag="mypage"; } 
	
	var targeturl; 
	var sfrm = this.document.search;
	var clickDomain = "http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^mainal^"+ctag+"^°Ë»ö^°Ë»ö¹öÆ°&hdurl=http://image.hanafos.com/blank.gif";
	var img = new Image();
	img.src = clickDomain; 	
	var Domain = "http://search.hanafos.com";	

	Domain = sfrm.skindList[sfrm.skindList.selectedIndex].value;
	
	if(sfrm.query.value != "")	{	
		if (sfrm.query.value == keytext && userinput == 0) { 
			var imgObj = new Image(); 
			imgObj.src = "http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^mainal^htmainpg^top^searchpop&hdurl=http://image.hanafos.com/blank.gif"; 
			SetCookie('searchpop', '1', 1);
			//location.href=Domain+"query="+keywork;
			location.href=eventurl;

		}else {	
			targeturl= Domain ;
			
			if(sfrm.skindList[sfrm.skindList.selectedIndex].tg == "shop"){
				targeturl="http://shop.hanafos.com/redir.asp?http://enuri.hanafos.com/search/Searchlist.jsp?keyword="+escape(sfrm.query.value);	
				location.href=targeturl;
			}else{
				if(sfrm.skindList[sfrm.skindList.selectedIndex].tg == "new")
					sfrm.target = "_blank"; 
			
				sfrm.action = targeturl; 
				sfrm.submit(); 
			}
			
		} 
	} else if(document.search.query.style.backgroundImage.length )	{ 
		targeturl= Domain ;
		sfrm.query.value = $("derived").value; 
		sfrm.action = targeturl; 
		sfrm.submit(); 
	} else {		
		location.href=Domain+"query="; 
	} 
}

function imgSearchBtnClick(idx,isHanaro) {
	var sfrm = this.document.search;
	
	var tg="ht";
	
	if (sfrm.query.value==keytext && userinput==0) {
		sfrm.query.value="";
	}
	var pUrl="http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^mainal^htmainpg^";
	var idx=eval(idx);
	if (sfrm.query.value=="") {
		var Turl="";
		if(idx==1) {
			Turl=pUrl+"°ø¹ésearch¹öÆ°^µ¿¿µ»ó&hdurl=http://search.hanafos.com/video/default.asp";
		}
		else if(idx==2) {
			Turl=pUrl+"°ø¹ésearch¹öÆ°^ÀÚ·á½Ç&hdurl=http://search.hanafos.com/filesearch/default.asp";
		}
		else if(idx==3) {
			Turl=pUrl+"°ø¹ésearch¹öÆ°^Áö½Ä&hdurl=http://search.hanafos.com/know/default.asp";
		}
		else if(idx==5) {
			Turl=pUrl+"°ø¹ésearch¹öÆ°^°Ô½ÃÆÇ&hdurl=http://search.hanafos.com/FadSearch/default.asp";
		}
		else if(idx==20) {
			Turl=pUrl+"°ø¹ésearch¹öÆ°^ºí·Î±×&hdurl=http://search.hanafos.com/blog/default.asp";
		}
		else if(idx==8) {
			Turl=pUrl+"°ø¹ésearch¹öÆ°^ÀÌ¹ÌÁö&hdurl=http://search.hanafos.com/image/default.asp";
		}
		else if(idx==7) {
			Turl=pUrl+"°ø¹ésearch¹öÆ°^´º½º&hdurl=http://search.hanafos.com/news/default.asp";
		}
		else if(idx==4) {
			Turl=pUrl+"°ø¹ésearch¹öÆ°^»çÀü&hdurl=http://kr.dic.yahoo.com/";
		}
		else if(idx==9) {	
			if(tg=="ht") {
				Turl=pUrl+"°ø¹ésearch¹öÆ°^¼îÇÎ&hdurl=http://shop.hanafos.com/";
			}
			else{	
				Turl=pUrl+"°ø¹ésearch¹öÆ°^¼îÇÎ&hdurl=http://shop.hanafos.com/";
			}
		}
		else if(idx==10) {
			Turl=pUrl+"°ø¹ésearch¹öÆ°^ÆÄÀÏ°Ë»ö&hdurl=http://search.qbic.hanafos.com/search/NNMain.asp";	
		}
		else if(idx==14) {
			Turl=pUrl+"°ø¹ésearch¹öÆ°^À¯Çà°Ë»ö&hdurl=http://news.hanafos.com/bbs/";
		}
		else {
			Turl=pUrl+"°ø¹ésearch¹öÆ°^±âº»&hdurl=http://search.hanafos.com/";
		} 

		if(idx==4)
			window.open(Turl,"","");
		else
			top.location.href=Turl;				

	}
	else {
		var sch_tt="";
		var directory="";
		switch(idx) {
			case 1:
				godirectory="/video/sc_Videoall.asp";
				sch_tt="µ¿¿µ»ó";
				break;
			case 2:
				godirectory="/fileSearch/SC_FileSearch_All.asp";
				sch_tt="ÀÚ·á½Ç";
				break;
			case 3:
				godirectory="/know/sc_know.asp";
				sch_tt="Áö½Ä";
				break;
			case 5:
				godirectory="/FadSearch/SC_FadSearch_All.asp";
				sch_tt="°Ô½ÃÆÇ";
				break;
			case 8:
				godirectory="/Image/SC_Image_Simple.asp";
				sch_tt="ÀÌ¹ÌÁö";
				break;
			case 7:
				godirectory="/News/SC_News.asp";
				sch_tt="´º½º";
				break;
			case 4:
				godirectory="http://kr.dic.yahoo.com/";
				sch_tt="»çÀü";
				break;
			case 9:
				godirectory="/Shopping/SC_Shopping.asp";
				sch_tt="¼îÇÎ";
				break;
			case 10:
				godirectory="/FileSearch/SC_FileSearch_All.asp";
				sch_tt="ÆÄÀÏ°Ë»ö";
				break;
			case 14:
				godirectory="/FadSearch/SC_FadSearch_All.asp";
				sch_tt="À¯Çà°Ë»ö";
				break;
			case 20:
				godirectory="/blog/SC_blogSearch_All.asp";
				sch_tt="ºí·Î±×";
				break;
		}
		var targeturl;
		var sfrm = this.document.search;
		var imgObj = new Image();
		imgObj.src=pUrl+"Å°¿öµåsearch¹öÆ°^"+sch_tt+"&hdurl=http://image.hanafos.com/blank.gif";
		var Domain = "http://search.hanafos.com";
		
		if(idx==9) {
			targeturl="http://shop.hanafos.com/redir.asp?http://enuri.hanafos.com/search/Searchlist.jsp?keyword="+escape(sfrm.query.value);	location.href=targeturl;
		}
		else {
				if(idx==4) {
					targeturl= godirectory;
					window.open(targeturl,"","");
				}
				else{
					targeturl= Domain + godirectory;
					sfrm.action = targeturl;sfrm.submit();
				}


		}	
	}
}

function getData(){getClub.location.href="http://www.hanafos.com/dev_include/MygetClubInfo_v1.asp?gFlag=get";}
    
function goClub(){  	
var gcVal=getClub.frmClub.selClub[getClub.frmClub.selClub.selectedIndex].value;
if (gcVal=="blog"){parent.location.href="http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^mainal^htmainpg^·Î±×ÀÎÈÄ¿µ¿ª^ºí·Î±×&hdurl=http://blog.hanafos.com/";
}else if (gcVal=="pds"){parent.location.href = "http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^mainal^htmainpg^·Î±×ÀÎÈÄ¿µ¿ª^°³ÀÎÀÚ·á½Ç&hdurl=http://qbic.hanafos.com/NNGateMain.asp?userid=&domain=hanafos";
}else if (gcVal=="main"){parent.location.href = "http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^mainal^htmainpg^·Î±×ÀÎÈÄ¿µ¿ª^Å¥ºò¸ÞÀÎ&hdurl=http://club.qbic.com/";
}else if (gcVal=="qbclub"){parent.location.href = "http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^mainal^htmainpg^·Î±×ÀÎÈÄ¿µ¿ª^Å¥ºòÅ¬·´¸ÞÀÎ&hdurl=http://qbic.hanafos.com/community/NDMain.asp";
}else if(gcVal!=""){parent.location.href = "http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^mainal^htmainpg^·Î±×ÀÎÈÄ¿µ¿ª^Å¥ºòÅ¬·´&hdurl=http://club.qbic.com/"+getClub.frmClub.selClub.value;}}
   
function goUrl(path,name,width,height,scroll){window.open(path, name , "width=" + width + ",height=" + height + ",scrollbars=" + scroll + ", toolbar=no, directories=no,location=no, status=yes, menubar=no, resizable=no");}

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 "";}

function setCookie2(name, value, expiredays, domain){var todayDate = new Date();todayDate.setDate( todayDate.getDate() + expiredays );document.cookie = name + "=" + escape( value ) + "; path=/;domain="+ domain +"; expires=" + todayDate.toGMTString() + ";"}

function SetCookie(name, value, expiredays){var todayDate = new Date();todayDate.setDate( todayDate.getDate() + expiredays );document.cookie = name + "=" + escape( value ) + "; path=/;domain=.hanafos.com; expires=" + todayDate.toGMTString() + ";"}

function getCookie2( 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");}  

function setCookieValue(name1, name2, value, expiredays, domain)
{var strCookie1	= getCookie2(name1);var strCookie2	= name2 + "=";var strBefore	= "";var strAfter	= "";var strValue	= "";var isPrint		= false;
if(domain == ""){domain = self.location.hostname;}	
if("0" == strCookie1){strValue = name2 + "=" + value;}else if(-1 == strCookie1.indexOf("=")) {strValue = name2 + "=" + value;}else if(-1 == strCookie1.indexOf(strCookie2)) {strValue = strCookie1 + "&" + name2 + "=" + value;
}else {strBefore = strCookie1.substring(0,strCookie1.indexOf(strCookie2) -1);strAfter  = strCookie1.substring(strCookie1.indexOf(strCookie2) ,strCookie1.length);
if (strAfter.indexOf("&") ==0){strValue  = strCookie1 + "&" + name2 + "=" + value;}else {strAfter  = strAfter.substring(strAfter.indexOf("&") ,strAfter.length);strValue  = strBefore + strAfter + "&" + name2 + "=" + value;}}
setCookie2(name1, strValue, expiredays,domain);if(isPrint){ alert("New Cookie is : " + name1 + "=" + strValue);}}

function getCookieVal(offset){var endstr = document.cookie.indexOf (";", offset);if (endstr == -1){endstr = document.cookie.length;}return unescape(document.cookie.substring(offset, endstr));} 

function getCookieValue(name1, name2){
var arryfCookie, reArrysCookie, cookieResult,pdi, pdj;
cookieResult = "";name1 = getCookie2(name1);name2 = name2.toLowerCase();arryfCookie = name1.split("&");
for (pdi in arryfCookie){if (parseInt(pdi) == pdi){reArrysCookie = arryfCookie[pdi].split("=");
for (pdj in reArrysCookie){if (parseInt(pdj) == pdj){if (reArrysCookie[pdj].toLowerCase() == name2){if (cookieResult == ""){cookieResult = reArrysCookie[1];
}else{cookieResult = cookieResult + "," + reArrysCookie[1];}}}}}}return cookieResult;}

function delCookie(name, domain){var todayDate = new Date();if(domain == ""){domain = self.location.hostname;}todayDate.setDate( todayDate.getDate() - 1 );document.cookie = name + "=; path=/;domain="+ domain +"; expires=" + todayDate.toGMTString() + ";"}

var SearchProviderLink="";
function GetSearchProviderLink() {var  SearchProviderURL = "";	if(/MSIE 7.0|Firefox\/2.0/.test(navigator.userAgent)) {SearchProviderURL = "http://www.hanafos.com/ie7/search/";if(/MSIE/.test(navigator.userAgent)) {SearchProviderURL += "provider_ie7.xml";} else {SearchProviderURL += "provider.xml";}}	return SearchProviderURL;}
SearchProviderLink = GetSearchProviderLink();

function AddSearchProvider() {var imgObj = new Image();imgObj.src = "http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^mainal^htmainpg^top^provider&hdurl=http://image.hanafos.com/blank.gif";if(/MSIE/.test(navigator.userAgent)) {goUrl("http://www.hanafos.com/ie7/search/ProviderPop.htm","schprovpop",300,300,"no");} else {window.external.AddSearchProvider(SearchProviderLink);}}

function init(){


try{
	if (getCookieValue("hanafosFC","id_save") =="1") {
		id_save = true;
		document.MemberSubForm.puserid.style.backgroundImage="";
		document.MemberSubForm.ppasswd.style.backgroundImage='url(http://image.hanafos.com/mainimage/images_ver8/img_pw.gif)';
		document.MemberSubForm.ppasswd.style.backgroundRepeat='no-repeat';
		document.MemberSubForm.ppasswd.focus();
	}
	else{
		id_save = false;
		document.MemberSubForm.puserid.focus();
	}
	delCookie("id_save",".hanafos.com");
	delCookie("puserid",".hanafos.com");
	delCookie("id_save","");
	delCookie("puserid","");

	if (GetCookie("security_save")=="1" || getCookieValue("hanafosFC","security_save") =="1") {
		security_save = true;
	}
	else{
		security_save = false;
	}

	delCookie("security_save",".hanafos.com");delCookie("security_save","");
}catch(e){}


if (GetCookie("searchpop")!=1) {document.search.query.value = keytext;}
}

function Notice_Nav(id){id=eval(id);Notice_Step1.style.display='none';Notice_Step2.style.display='none';Notice_Step3.style.display='none';id.style.display='';}
//function ViewNotice(gid,cdid){var Notice_Viewer=window.open("http://www.hanafos.com/hdredir.htm?hdtitle=MA_Ntc-x01_Nt-Notic2&hdurl=http://notice.hanafos.com/n_view_new.asp?id="+gid+"&cdid="+cdid, "Notice_Viewer", "toolbar=no,location=no,directory=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=640,height=480");Notice_Viewer.focus();return;}
//function ListNotice(cdid){var Notice_Viewer=window.open("http://www.hanafos.com/hdredir.htm?hdtitle=MA_Ntc-t01_Nt-Notic1&hdurl=http://notice.hanafos.com/n_list_new.asp?cdid="+cdid, "Notice_Viewer", "toolbar=no,location=no,directory=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width=640,height=480");Notice_Viewer.focus();return;}
function ViewNotice(gid,cdid){location.href="http://clickstat.hanafos.com/hdredir.htm?hdtitle=PAG^mainal^htmainpg^notice^notice&hdurl=http://notice.hanafos.com/noticepage/PageDesc.asp?cdid="+cdid+"&gid="+gid;}
function ListNotice(cdid){location.href="http://www.hanafos.com/hdredir.htm?hdtitle=MA_Ntc-t01_Nt-Notic1&hdurl=http://notice.hanafos.com/noticepage/PageList.asp?cdid="+cdid;}

function ck_qbs(){if (qbs.tsWord.value==""){qbs.submit();}else{top.location.href='http://search.qbic.hanafos.com/search/NNSearch.asp?tsCondi=t&tssCondi=all&tsWord='+qbs.tsWord.value;}}

function Custom_Tab(id){id=eval(id);Custom_Tap1.style.display = 'none';Custom_Tap2.style.display = 'none';id.style.display='';}
function MM_jumpMenu(targ,selObj,restore){window.open( selObj.options[selObj.selectedIndex].value , "", "");if (restore) selObj.selectedIndex=0 ;}
function Enjoy_tab(id,lflag){
if ( id == "tab1" && playurl != "main_flash_vod.asp") {LoadSWF("main_flash_vod.asp",lflag);playurl = 	"main_flash_vod.asp";$("vodtab").style.background = "url(http://image.hanafos.com/mainimage/images_ver8/btn_movie2_on.gif) no-repeat 0 0";$("vodtab").style.color = "#FFFFFF";$("vodtab").style.textDecoration = "none";$("comictab").style.background = "url(http://image.hanafos.com/mainimage/images_ver8/btn_movie2.gif) no-repeat 0 0";$("comictab").style.color = "#595959";$("comictab").style.letterSpacing = "-1px";$("comictab").style.padding = "38px 0 0 5px";$("comictab").style.height = "71px";$("vodplay").style.display="";$("comicplay").style.display="none";}else if ( id == "tab2" && playurl != "main_flash_comic.asp") {LoadSWF("main_flash_comic.asp",lflag);playurl = "main_flash_comic.asp";$("comictab").style.background = "url(http://image.hanafos.com/mainimage/images_ver8/btn_movie2_on.gif) no-repeat 0 0";$("comictab").style.color = "#FFFFFF";$("comictab").style.textDecoration = "none";	$("vodtab").style.background = "url(http://image.hanafos.com/mainimage/images_ver8/btn_movie2.gif) no-repeat 0 0";
$("vodtab").style.color = "#595959";$("vodtab").style.letterSpacing = "-1px";$("vodtab").style.padding = "38px 0 0 5px";$("vodtab").style.height = "71px";$("vodplay").style.display="none";$("comicplay").style.display="";}}





function Noti_tab(id){
	var default_margintop;
	default_margintop = "0px";

	if (navigator.appName.indexOf("Netscape")==-1) {
		default_margintop = "2px";
	}
	else{
		default_margintop = "1px";
	}

	if ( id == "tab1") {
		$("evt").style.borderBottom = "none";

		$("evt").style.padding = "0 0 0 5px";
		$("evt").style.marginTop = "0px";
		$("evt").style.background = "url(http://image.hanafos.com/mainimage/images_ver8/tab_left.gif) no-repeat 0 0";
		$("evt").style.height="19px";
		$("spnEvt").style.padding="2px 5px 0 0";
		$("spnEvt").style.background="url(http://image.hanafos.com/mainimage/images_ver8/tab_right.gif) no-repeat right 0";
		$("spnEvt").style.lineHeight="19px";
		$("hf").style.padding="5px 5px 0 5px";
		$("hf").style.marginTop=default_margintop;
		$("hf").style.height="12px";
		$("hf").style.lineHeight="19px";
		$("hf").style.borderBottom="none";
		$("hf").style.fontSize="11px";
		$("hf").style.textDecoration="none";
		$("hf").style.fontFamily="µ¸¿ò";
		$("hf").style.letterSpacing="-1px";
		$("hf").style.borderLeft="1px solid #e9e9e9";
		$("hf").style.borderRight="1px solid #e9e9e9";

		$("hf").style.borderTop="1px solid #e9e9e9";
		$("hf").style.background="#e9e9e9";
		$("spnHF").style.padding="0 0 0 0";
		$("spnHF").style.background="#e9e9e9";
		$("spnHF").style.lineHeight="10px";
		$("ht").style.padding="5px 5px 0 5px";
		$("ht").style.marginTop=default_margintop;
		$("ht").style.height="12px";
		$("ht").style.lineHeight="90%";
		$("ht").style.borderBottom="none";
		$("ht").style.fontSize="11px";
		$("ht").style.textDecoration="none";
		$("ht").style.fontFamily="µ¸¿ò";
		$("ht").style.letterSpacing="-1px";
		$("ht").style.borderLeft="1px solid #e9e9e9";
		$("ht").style.borderRight="1px solid #e9e9e9";
		$("ht").style.borderTop="1px solid #e9e9e9";
		$("ht").style.background="#e9e9e9";
		$("spnHT").style.padding="0 0 0 0";
		$("spnHT").style.background="#e9e9e9";

		$("spnHT").style.lineHeight="10px";
		$("articles_event").style.display="block";
		$("articles_hanafoscom").style.display="none";
		$("articles_hanarotelecom").style.display="none";
	}else if ( id == "tab2") {
		$("hf").style.borderBottom = "none";
		$("hf").style.padding = "0 0px 0 5px";
		$("hf").style.marginTop = "0px";
		$("hf").style.background = "url(http://image.hanafos.com/mainimage/images_ver8/tab_left.gif) no-repeat 0 0";
		$("hf").style.height="19px";
		$("spnHF").style.padding="2px 5px 0 0";
		$("spnHF").style.background="url(http://image.hanafos.com/mainimage/images_ver8/tab_right.gif) no-repeat right 0";
		$("spnHF").style.lineHeight="19px";
		$("evt").style.padding="5px 5px 0 5px";
		$("evt").style.marginTop=default_margintop;
		$("evt").style.height="12px";
		$("evt").style.lineHeight="90%";

		$("evt").style.borderBottom="none";
		$("evt").style.fontSize="11px";
		$("evt").style.textDecoration="none";
		$("evt").style.fontFamily="µ¸¿ò";
		$("evt").style.letterSpacing="-1px";

		$("evt").style.borderLeft="1px solid #e9e9e9";
		$("evt").style.borderRight="1px solid #e9e9e9";
		$("evt").style.borderTop="1px solid #e9e9e9";
		$("evt").style.background="#e9e9e9";
		$("spnEvt").style.padding="0 0 0 0";
		$("spnEvt").style.background="#e9e9e9";
		$("spnEvt").style.lineHeight="10px";
		$("ht").style.padding="5px 5px 0 5px";
		$("ht").style.marginTop=default_margintop;
		$("ht").style.height="12px";
		$("ht").style.lineHeight="90%";
		$("ht").style.borderBottom="none";
		$("ht").style.fontSize="11px";
		$("ht").style.textDecoration="none";
		$("ht").style.fontFamily="µ¸¿ò";
		$("ht").style.letterSpacing="-1px";
		$("ht").style.borderLeft="1px solid #e9e9e9";
		$("ht").style.borderRight="1px solid #e9e9e9"
		;
		$("ht").style.borderTop="1px solid #e9e9e9";
		$("ht").style.background="#e9e9e9";
		$("spnHT").style.padding="0 0 0 0";
		$("spnHT").style.background="#e9e9e9";
		$("spnHT").style.lineHeight="10px";
		$("articles_event").style.display="none";
		$("articles_hanafoscom").style.display="block";

		$("articles_hanarotelecom").style.display="none";
	}
	else if ( id == "tab3") {$("ht").style.borderBottom = "none";
		$("ht").style.padding = "0 0px 0 5px";
		$("ht").style.marginTop = "0px";
		$("ht").style.background = "url(http://image.hanafos.com/mainimage/images_ver8/tab_left.gif) no-repeat 0 0";
		$("ht").style.height="19px";
		$("spnHT").style.padding="2px 5px 0 0";
		$("spnHT").style.background="url(http://image.hanafos.com/mainimage/images_ver8/tab_right.gif) no-repeat right 0";
		$("spnHT").style.lineHeight="19px";
		$("evt").style.padding="5px 5px 0 5px";
		$("evt").style.marginTop=default_margintop;
		$("evt").style.height="12px";
		$("evt").style.lineHeight="90%";

		$("evt").style.borderBottom="none";
		$("evt").style.fontSize="11px";
		$("evt").style.textDecoration="none";
		$("evt").style.fontFamily="µ¸¿ò";
		$("evt").style.letterSpacing="-1px";

		$("evt").style.borderLeft="1px solid #e9e9e9";
		$("evt").style.borderRight="1px solid #e9e9e9";
		$("evt").style.borderTop="1px solid #e9e9e9";
		$("evt").style.background="#e9e9e9";
		$("spnEvt").style.padding="0 0 0 0";
		$("spnEvt").style.background="#e9e9e9";
		$("spnEvt").style.lineHeight="10px";
		$("hf").style.padding="5px 5px 0 5px";
		$("hf").style.marginTop=default_margintop;
		$("hf").style.height="12px";
		$("hf").style.lineHeight="90%";
		$("hf").style.borderBottom="none";
		$("hf").style.fontSize="11px";
		$("hf").style.textDecoration="none";
		$("hf").style.fontFamily="µ¸¿ò";
		$("hf").style.letterSpacing="-1px";
		$("hf").style.borderLeft="1px solid #e9e9e9";
		$("hf").style.borderRight="1px solid #e9e9e9";

		$("hf").style.borderTop="1px solid #e9e9e9";
		$("hf").style.background="#e9e9e9";
		$("spnHF").style.padding="0 0 0 0";
		$("spnHF").style.background="#e9e9e9";
		$("spnHF").style.lineHeight="10px";
		$("articles_event").style.display="none";
		$("articles_hanafoscom").style.display="none";

		$("articles_hanarotelecom").style.display="block";
	}
}

function $() {var elements = new Array();for (var i = 0; i < arguments.length; i++) {var element = arguments[i];if (typeof element == 'string'){element = document.getElementById(element);}if (arguments.length == 1){return element;}elements.push(element);}return elements;}

function layerclose() {if(document.getElementById("chkclose").checked) {setCookie2("loginlayer",0,50,"www.hanafos.com");$("member").style.display="";$("popup").style.display="none";}}

function more(divid, cnt, kind) {var activeNum = parseInt($("activeDiv"+divid).value);var nowActiveNum;if (kind == "next") {if (activeNum == cnt) {nowActiveNum = 0;}	else {nowActiveNum = activeNum + 1;}}else if (kind == "prev") {	if (activeNum == 0) {nowActiveNum = cnt;}else {nowActiveNum = activeNum - 1;}}	$(divid+activeNum).style.display = "none";$(divid+nowActiveNum).style.display = "block";$("activeDiv"+divid).value = nowActiveNum;}
