<!--
	var chkBan = -1;
	var chkUrl = "";
	var chkMaxNum = 10;

/* 2009.04.03 ±èÀç¼º ·Ñ¸µ¹è³Ê go stop flag ½ÃÀÛ*/
	var flag = 0;	
	function haha1(){		
		flag = 0;
	}
	function haha2(){		
		flag = 1;	
	}
/* 2009.04.03 ±èÀç¼º ·Ñ¸µ¹è³Ê go stop flag ³¡*/

	function goBanner(url) {
		window.open(url);
	}

	function rollingBan(chk) {
		if(chk == "left") {
			if(chkBan == 0) chkBan = chkMaxNum;
			else chkBan--;
		}

		if(chk == "right") {
			if(chkBan == chkMaxNum) chkBan = 0;
			else chkBan++;
		}		
		if(flag == 0)	{				
		}else{
			return false;
		}
		if(chkBan == 0) chkUrl ="<a href='javascript:void(0)' onClick='javascript:fnpGoView(\"2\", \"\", \"1563\");' target='' title='³ó¾÷¡¤³óÃÌ¡¤³ó¾÷ÀÎÀÇ ²Þ°ú Èñ¸ÁÀ» ´ãÀº ³óÇùÀÇ »ç¾÷±¸Á¶ °³Æí¹æÇâ »õÃ¢¿¡¼­ ¿­¸²' onfocus='haha2()'  onblur='haha1()'><img src='/renew/kor/image/main/77.jpg' class='hand' alt='³ó¾÷¡¤³óÃÌ¡¤³ó¾÷ÀÎÀÇ ²Þ°ú Èñ¸ÁÀ» ´ãÀº ³óÇùÀÇ »ç¾÷±¸Á¶ °³Æí¹æÇâ »õÃ¢¿¡¼­ ¿­¸²'/></a>";
		if(chkBan == 1) chkUrl = "<a href='http://nheri.re.kr/' target='_blank' title='³óÇù°æÁ¦¿¬±¸¼Ò È¨ÆäÀÌÁö¿¡ °¡ÀÔÇÏ½Ã¸é ¸ðµç º¸°í¼­¸¦ ¹«·á·Î º¸½Ç ¼ö ÀÖ½À´Ï´Ù. È¨ÆäÀÌÁö °¡ÀÔÇÏ±â »õÃ¢¿¡¼­ ¿­¸²' onfocus='haha2()'  onblur='haha1()'><img src='/renew/kor/image/main/80.jpg' class='hand' alt='³óÇù°æÁ¦¿¬±¸¼Ò È¨ÆäÀÌÁö¿¡ °¡ÀÔÇÏ½Ã¸é ¸ðµç º¸°í¼­¸¦ ¹«·á·Î º¸½Ç ¼ö ÀÖ½À´Ï´Ù. È¨ÆäÀÌÁö °¡ÀÔÇÏ±â »õÃ¢¿¡¼­ ¿­¸²' /></a>";
		if(chkBan == 2) chkUrl = "<a href='http://sobaekmarathon.go.kr' target='_blank' title='Á¦8È¸ ¿µÁÖ¼Ò¹é»ê ¸¶¶óÅæ´ëÈ¸ »õÃ¢¿¡¼­ ¿­¸²' onfocus='haha2()'  onblur='haha1()'><img src='/renew/kor/image/main/79.jpg' class='hand' alt='Á¦8È¸ ¿µÁÖ¼Ò¹é»ê ¸¶¶óÅæ´ëÈ¸ 2010³â 4¿ù 4ÀÏ »õÃ¢¿¡¼­ ¿­¸²' /></a>";
		if(chkBan == 3) chkUrl = "<a href='http://www.seonbifestival.com/' target='_blank' title='¿µÁÖ ¼±ºñ¹®È­ÃàÁ¦ »õÃ¢¿¡¼­ ¿­¸²' onfocus='haha2()'  onblur='haha1()'><img src='/renew/kor/image/main/78.jpg' class='hand' alt='¿µÁÖ ¼±ºñ¹®È­ÃàÁ¦ 4¿ù 23ÀÏ ºÎÅÍ 4¿ù 27ÀÏ±îÁö »õÃ¢¿¡¼­ ¿­¸²' /></a>";
		if(chkBan == 4) chkUrl = "<a href='http://tour.mokpo.go.kr/home/tour/' target='_blank' title='Èñ¸Á³ª´®,º½²ÉÀ¸·Î ÃÊ´ë 2010³â À¯´Þ»ê ²ÉÃàÁ¦ »õÃ¢¿¡¼­ ¿­¸²' onfocus='haha2()'  onblur='haha1()'><img src='/renew/kor/image/main/76.jpg' class='hand' alt='Èñ¸Á³ª´®,º½²ÉÀ¸·Î ÃÊ´ë 2010³â À¯´Þ»ê ²ÉÃàÁ¦ »õÃ¢¿¡¼­ ¿­¸²' /></a>";  
		if(chkBan == 5) chkUrl = "<a href='javascript:void(0)' onClick='javascript:fnpGoView(\"3\", \"\", \"114\");' title='»õº½ »õÈñ¸Á ÁÖÅÃÃ»¾àÁ¾ÇÕÀúÃà ³»Áý¸¶·Ã Âù½º °æÇ° ´ëÀÜÄ¡ »õÃ¢¿¡¼­ ¿­¸²' onfocus='haha2()'  onblur='haha1()'><img src='/renew/kor/image/main/75.jpg' class='hand' alt='»õº½ »õÈñ¸Á ÁÖÅÃÃ»¾àÁ¾ÇÕÀúÃà ³»Áý¸¶·Ã Âù½º °æÇ° ´ëÀÜÄ¡ »õÃ¢¿¡¼­ ¿­¸²' /></a>";
		if(chkBan == 6) chkUrl = "<a href='javascript:void(0)' onClick='javascript:fnpGoView(\"3\", \"\", \"112\");' title='NHº¸Çè ½Å»óÇ° Ãâ½Ã±â³ä 2010³â È£¶ûÀÌÇØ ¸ÂÀÌ »ïÃµ¸¸ÇÃ·¯½º ÀÌº¥Æ® »õÃ¢¿¡¼­ ¿­¸²' onfocus='haha2()'  onblur='haha1()'><img src='/renew/kor/image/main/73.jpg' class='hand' alt='NHº¸Çè ½Å»óÇ° Ãâ½Ã±â³ä 2010³â È£¶ûÀÌÇØ ¸ÂÀÌ »ïÃµ¸¸ÇÃ·¯½º ÀÌº¥Æ® »õÃ¢¿¡¼­ ¿­¸²' /></a>"; 
		if(chkBan == 7) chkUrl = "<a href='http://www.homin.go.kr' target='_blank' title='±â¾÷È£¹Î°ü »õÃ¢¿¡¼­ ¿­¸²' onfocus='haha2()'  onblur='haha1()'><img src='/renew/kor/image/main/68.jpg' class='hand' alt='±â¾÷È£¹Î°ü ±ÔÁ¦¾Ö·Î¸¦ ÁÖ¼¼¿ä Áß¼Ò±â¾÷ÀÇ ±ÔÁ¦¾Ö·Î »çÇ×À» ¹ß±¼ ¹× °³¼± ÇØ µå¸³´Ï´Ù. »õÃ¢¿¡¼­ ¿­¸²' /></a>";  
		if(chkBan == 8) chkUrl = "<a href='http://livestock.nonghyup.com/ebook/doyagi_jeon/EBook.htm' target='_blank' title='µµ¾ßÁöÀü »õÃ¢¿¡¼­ ¿­¸²' onfocus='haha2()'  onblur='haha1()'><img src='/renew/kor/image/main/67.jpg' class='hand' alt='µµ¾ßÁöÀü e-bookº¸±â »õÃ¢¿¡¼­ ¿­¸²' /></a>";  
		if(chkBan == 9) chkUrl = "<a href='http://banking.nonghyup.com/index_fx.html' target='_blank' title='ATM ÇØ¿Ü¼Û±Ý¼­ºñ½º »õÃ¢¿¡¼­ ¿­¸²' onfocus='haha2()'  onblur='haha1()'><img src='/renew/kor/image/main/63.jpg' class='hand' alt='ATM ÇØ¿Ü¼Û±Ý¼­ºñ½º »õÃ¢¿¡¼­ ¿­¸²' /></a>";  
		if(chkBan == 10) chkUrl = "<a href='javascript:void(0)' onClick='javascript:fnpGoView(\"2\", \"\", \"1180\");' target='' title='³óÇù °øÁö»çÇ× ³óÇù»çÄª »ç±âÀüÈ­ ÇÇÇØ ¿¹¹æ ¾È³» »õÃ¢¿¡¼­ ¿­¸²' onfocus='haha2()'  onblur='haha1()'><img src='/renew/kor/image/main/05.jpg' class='hand' alt='³óÇùÀº ÀüÈ­,¹æ¹®,±æ°Å¸® ´çÃ·ÆÇ¸Å¸¦ ÇÏÁö ¾Ê½À´Ï´Ù. »õÃ¢¿¡¼­ ¿­¸²'/></a>";

		document.getElementById("bannerImg").innerHTML = chkUrl;
	}

	function fnpGoView( type_code, type, seq) {
		
		document.frmGoUrl.seq.value=seq;
		
		if ( type_code == 1 )
			window.open("/renew/kor/main/mainPopupNewsView.do?type_code="+type_code+"&type="+type+"&seq="+seq,"pop","toolbar=no,width=797,height=668,overflow-x:hidden, overflow-y:scroll,status=no");
		else if ( type_code == 2 )
			window.open("/renew/kor/main/mainPopupNoticeView.do?type_code="+type_code+"&type="+type+"&seq="+seq,"pop","toolbar=no,width=797,height=668,scrollbars=auto,status=no");
		else if ( type_code == 3 )
			window.open("/renew/kor/main/mainPopupEventView.do?type_code="+type_code+"&type="+type+"&seq="+seq,"pop","toolbar=no,width=797,height=668,scrollbars=auto,status=no");
		else if ( type_code == 4 )
			window.open("/renew/kor/main/mainPopupEventResultView.do?type_code="+type_code+"&type="+type+"&seq="+seq,"pop","toolbar=no,width=797,height=668,scrollbars=auto,status=no");
		else if ( type_code == 5 )
			window.open("/renew/kor/main/mainPopupAirView.do?type_code="+type_code+"&type="+type+"&seq="+seq,"pop","toolbar=no,width=797,height=668,scrollbars=auto,status=no");
			
		//Document.frmGoUrl.submit()
		
	}
	
	function fnpGoAllView( type_code, type, seq) {
		
		document.frmGoUrl.seq.value=seq;
		
		if ( type_code == 1 )
			window.open("/renew/kor/main/mainPopupAllNewsView.do?type_code="+type_code+"&type="+type+"&seq="+seq,"pop","toolbar=no,width=797,height=668,overflow-x:hidden, overflow-y:scroll,status=no");
		else if ( type_code == 2 )
			window.open("/renew/kor/main/mainPopupAllNoticeView.do?type_code="+type_code+"&type="+type+"&seq="+seq,"pop","toolbar=no,width=797,height=668,scrollbars=auto,status=no");
		else if ( type_code == 3 )
			window.open("/renew/kor/main/mainPopupAllEventView.do?type_code="+type_code+"&type="+type+"&seq="+seq,"pop","toolbar=no,width=797,height=668,scrollbars=auto,status=no");
		else if ( type_code == 4 )
			window.open("/renew/kor/main/mainPopupAllEventResultView.do?type_code="+type_code+"&type="+type+"&seq="+seq,"pop","toolbar=no,width=797,height=668,scrollbars=auto,status=no");
		else if ( type_code == 5 )
			window.open("/renew/kor/main/mainPopupAllAirView.do?type_code="+type_code+"&type="+type+"&seq="+seq,"pop","toolbar=no,width=797,height=668,scrollbars=auto,status=no");
			
		//Document.frmGoUrl.submit()
		
	}

		function fnpGoList(type_code) {
		if ( type_code == 1 )
			window.open('/renew/kor/main/mainPopupAllList.do','pop','toolbar=no,width=797,height=668,overflow-x=hidden, overflow-y=scroll,status=no')
		else if ( type_code == 2 )
			window.open('/renew/kor/main/mainPopupNewsList.do','pop','toolbar=no,width=797,height=668,overflow-x=hidden, overflow-y=scroll,status=no')
		else if ( type_code == 3 )
			window.open('/renew/kor/main/mainPopupNoticeList.do','pop','toolbar=no,width=797,height=668,overflow-x=hidden, overflow-y=scroll,status=no')
		else if ( type_code == 4 )
			window.open('/renew/kor/main/mainPopupEventList.do','pop','toolbar=no,width=797,height=668,overflow-x=hidden, overflow-y=scroll,status=no')
		else if ( type_code == 5 )
			window.open('/renew/kor/main/mainPopupAirList.do','pop','toolbar=no,width=797,height=668,overflow-x=hidden, overflow-y=scroll,status=no')
		else if ( type_code == 6 )
			window.open('/renew/kor/main/mainPopupPublicList.do','pop','toolbar=no,width=797,height=668,overflow-x=hidden, overflow-y=scroll,status=no')
	}

	//ÇÏ´Ü ¹è³Ê ·Ñ¸µ

	var xhr = null;

	function getXMLHttpRequest() {
		if (window.ActiveXObject) {
			try {
				return new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e1) {
				try {
					return new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e2) {
					return null;
				}
			}
		} else if (window.XMLHttpRequest) {
			return new XMLHttpRequest();
		} else {
			return null;
		}
	}
	// ½ÃÀÛ½Ã ÆË¾÷	
	function notice_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 set_cookie(name, value, expirehours) 	
	{	
		 var today = new Date();	
		 today.setTime(today.getTime() + (60*60*1000*expirehours));	
		 document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + today.toGMTString() + ";";	
	}
	function fnGroup(level, gubun) {		
		//shkim start
		if ( notice_getCookie( "notice" ) != "checked" )
		{
		    //window.open('/renew/kor/popup.html','','width=329,height=318'); //ÀÎÅÍ³Ý¹ðÅ·°Å·¡·® DDOS°ø°Ý
			//window.open('/renew/kor/popup.html','','width=249,height=241'); 
		    document.all.theLayer.style.display = "block"; //·¹ÀÌ¾îÆË¾÷		       						
		}else{
				document.all.theLayer.style.display = "none"; 
		}
		//shkim end	
		
		// ½ÃÀÛ½Ã ÆË¾÷ end
		URL = "/renew/kor/xml/goBranch.xml"
		xhr = getXMLHttpRequest();//XMLHttpRequest °´Ã¼ ¾ò±â
		xhr.onreadystatechange = responseGubun;//ÄÝ¹é ÇÔ¼ö  µî·Ï
		xhr.open("GET", URL, true);//¿¬°á
		xhr.send(null);//Àü¼Û
	}
	
	function go_page() {	
		//opener.location.href = "http://www.nonghyup.com/renew/kor/cyber/notice/view.do?seq=1502&tPage=&searchType=&searchValue=";
		parent.location.href = "http://www.nonghyup.com/renew/kor/cyber/notice/view.do?seq=1502&tPage=&searchType=&searchValue=";
		document.all.theLayer.style.visibility="hidden";	
	}

	//////////////////////////////
	//shkim start ·¹ÀÌ¾î ½ºÅ©¸³Æ®	
	isIE=document.all;
	isNN=!document.all&&document.getElementById;
	isN4=document.layers;
	isHot=false;		
	function dd(e){
	  if (!ddEnabled) return;
	  whichDog.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx; 
	  whichDog.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety;
	  return false;  
	}		
	function hideMe(){
		document.all.theLayer.style.visibility="hidden";			
	}		
	function showMe(){
		document.all.theLayer.style.visibility="hidden";			
	}
	document.onmouseup=Function("ddEnabled=false");		
	function notice_setCookie( name, value, expiredays )
	{
		var todayDate = new Date();
	  todayDate.setDate( todayDate.getDate() + expiredays );
	  document.cookie = name + '=' + escape( value ) + '; path=/; expires=' + todayDate.toGMTString() + ';'
	 	return;
	}
	function setCookie( name, value) {
		var todayDate = new Date();
		todayDate.setDate( todayDate.getDate() + 1 );
		document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + "; "
	}		
	function register(){ 
		setCookie("toCheck_main", "1"); // ·¹ÀÌ¾î.	
		set_cookie("notice", "checked", 24);
				
	}
	// shkim end (layer popup)
		
	
/*
	function responseGubun() {
		if (xhr.readyState == 4) {//¿Ï·á
			if (xhr.status == 200) {//¿À·ù¾øÀÌ OK
				var xmlDom = xhr.responseXML;//¼­¹ö¿¡¼­ º¸³½ ³»¿ë ¹Þ±â
				adptTree = xmlDom.getElementsByTagName("Adpt");//1µª½º

				var goBranchTxt = '';
				var bdptTreeLine;
				var chkBdpt = 1;
				var bdptHeight=14;
				var cdptHeight=14;
				var sizeTemp = "";
				goBranchTxt += "<ul class='oneBox'>";
				for(i=0; i<adptTree.length; i++) {
					goBranchTxt += "<li class='oneList' onmouseover='eventTwo("+(i+1)+")' onmouseout='eventTwo("+(i+1)+")'>"+adptTree[i].getAttribute("name");
					goBranchTxt += "<div class='boxRel' id='twoBox_"+(i+1)+"' style='display:none;'>"; 
					bdptTree = adptTree[i].getElementsByTagName("Bdpt");
					bdptTreeLine = bdptTree.length/2;
					if(bdptTreeLine>=6){
						twoHeight="style='top:-"+(bdptTreeLine*bdptHeight)+"px;'";					
					 
					}else{						
		 
					    twoHeight="";
						if(bdptTreeLine<=4){
							sizeTemp=" oneSize";
						}else{
							sizeTemp="";
						}
						 
					}
					goBranchTxt += "<div class='twoBox'>";
					goBranchTxt += "<div class='title'><span><img src='/renew/kor/image/main/home_blet_two.gif' alt='o'>&nbsp;<a href='"+adptTree[i].getAttribute("lnk")+"'  target='_blank' title='»õÃ¢¿¡¼­ ¿­¸²'>"+adptTree[i].getAttribute("name")+"</a></span></div>"; 					
					goBranchTxt += "<div class='twoBox2"+sizeTemp+"' "+twoHeight+" >";
					goBranchTxt += "<div class='towBox2Top'>";
					goBranchTxt += "<ul>";

					 
					for(j=0; j<bdptTree.length; j++) {
						goBranchTxt += "<li onmouseover='eventThree(this,"+chkBdpt+")' onmouseout='eventThree(this,"+chkBdpt+")'><img src='/renew/kor/image/blet/blet_squ01.gif' /><a href='"+bdptTree[j].getAttribute("lnk")+"'  target='_blank' title='»õÃ¢¿¡¼­ ¿­¸²'>"+bdptTree[j].getAttribute("name")+"</a>";
 
						cdptTree = bdptTree[j].getElementsByTagName("Cdpt");
						cdptTreeLine = cdptTree.length;
						
						if(cdptTreeLine>=5){
						 				
						}else{	 
							threeHeight="";
				 
							
						}
						goBranchTxt += "<ul class='threeBox' id='threeBox_"+chkBdpt+"' style='display:none;"+threeHeight+"'>";
						if(cdptTree.length == 0) {
							alert(adptTree[i].getAttribute("name") + " " + bdptTree[j].getAttribute("name"));
						}
						for(k=0; k<cdptTree.length; k++) {
							goBranchTxt += "<li><a href='"+cdptTree[k].getAttribute("lnk")+"'  target='_blank' title='»õÃ¢¿¡¼­ ¿­¸²'>"+cdptTree[k].getAttribute("name")+"</a></li>";
						}
					 
						goBranchTxt += "</ul>";
						goBranchTxt += "</li>";
						chkBdpt++;
					}
					goBranchTxt += "</ul>";
					goBranchTxt += "</div>";
					goBranchTxt += "</div>";
					goBranchTxt += "</div>";
					goBranchTxt += "</li>";
				}
				goBranchTxt += "</ul>";

				var allHomepageTxt = document.getElementById("allHomepage");
				allHomepageTxt.innerHTML = goBranchTxt;
			} else {
				alert("Fail");
			}
		}
	}
*/
	function leapto_02() {
		var uid = new Date().getTime();
		var myindex = document.urlForm.location_02.selectedIndex;
		str = new String(document.urlForm.location_02.options[myindex].value);
		strarray = str.split(/\,/);
		if (strarray[0] == "_blank")
		{
			window.open(strarray[1], uid, "");
		}
		myindex = 0;
		document.urlForm.location_02.options[0].selected = true;
	}

	function leapto_03() {
		var uid = new Date().getTime();
		var myindex = document.urlForm.location_03.selectedIndex;
		str = new String(document.urlForm.location_03.options[myindex].value);
		strarray = str.split(/\,/);
		if (strarray[0] == "_blank")
		{
			window.open(strarray[1], uid, "");
		}
		myindex = 0;
		document.urlForm.location_03.options[0].selected = true;
	}

	function newList(){
								var ele=document.getElementById("newList");
								var ul_ele=ele.getElementsByTagName("ul");
									for(var i=0;i<ul_ele.length;i++){
										if(i!=0){ 
											ul_ele[i].style.display="none";
										}
									}  
								 tabEvent();
							}
							function tabEvent(){
									var imgTemp = document.getElementById("newList");
									var imgTag = imgTemp.getElementsByTagName('img');
								 
									for(var i=0;i<imgTag.length;i++){ 
										if( imgTag[i].className!="not_over"){  
										
											imgTag[i].onmouseover= function(){
										 
												change_src = this.src.replace("_off","_on");
												this.src = change_src;								 
											}

											imgTag[i].onmouseout= function(){
												change_src = this.src.replace("_on","_off");
												this.src = change_src;
											} 									
											
										}else{
											imgTag[i].onmouseover= function(){	}
											imgTag[i].onmouseout= function(){	} 
										}
									}						
							}
							function contentChange(str){
									var imgTemp = document.getElementById("newList");
									var imgTag = imgTemp.getElementsByTagName('img');
									for(var i=1;i<=imgTag.length;i++){
										if(i==str){
											document.getElementById("new_list_"+str).style.display='block';
											imgTag[i-1].className="not_over";									
											var change_src = imgTag[i-1].src.replace("_off","_on"); 
											imgTag[i-1].src = change_src; 

										}else{
											document.getElementById("new_list_"+i).style.display='none';
											imgTag[i-1].className="";
											var change_src = imgTag[i-1].src.replace("_on","_off");									 	
											imgTag[i-1].src = change_src; 
										} 
									}
									 tabEvent();
								 }
	function $(ele){
							var obj = document.getElementById(ele);
							return obj;
						}
						function eventHomePage(){
						 
							if($('allHomepage').style.display=="none"){
								$('viweHomepage').style.display = "block";	//¹è°æ
								$('allHomepage').style.display = "block";		//ÁÖ¼Ò ¸®½ºÆ®
								 
								 						 	
								$('openImg').src = "/renew/kor/image/main/btn_homepage_on.png"; 
								$('openImg').style.width ="110";
							}else{
								$('viweHomepage').style.display = "none";	
								$('allHomepage').style.display = "none";
							 								 	
								$('openImg').src = "/renew/kor/image/main/btn_homepage_off.png"; 
								$('openImg').style.width ="93";
							}
							return false;
						}
	function eventTwo(ele){
							if ($("twoBox_"+ele).style.display =="none"){
								$("twoBox_"+ele).style.display="block";	
							}else{
								$("twoBox_"+ele).style.display="none";	
							}
						}
	function eventThree(obj,ele){
		if ($("threeBox_"+ele).style.display =="none"){
			$("threeBox_"+ele).style.display="block";
			obj.className="on";	
		}else{
			$("threeBox_"+ele).style.display="none";	
			obj.className="";
		}
	}
	function eventThree_two(obj,ele,i){
		if ($("threeBox_"+ele).style.display =="none"){
			$("threeBox_"+ele).style.display="block";
			obj.className="on";	
		}else{
			$("threeBox_"+ele).style.display="none";	
			obj.className="";
		}
		eventTwo(i+1);

	}




	function selectOn(temp){ 	
							$("family_"+temp).style.display = 'block';		
						}
	function selectOff(temp){
							$("family_"+temp).style.display = 'none';
						}
	
						function gotarger(obj){ 
							// alert(obj.href);
							 window.open(obj.href,'_balnk') ;   
						}


function responseGubun() {
		if (xhr.readyState == 4) {//¿Ï·á
			if (xhr.status == 200) {//¿À·ù¾øÀÌ OK
				var xmlDom = xhr.responseXML;//¼­¹ö¿¡¼­ º¸³½ ³»¿ë ¹Þ±â
				adptTree = xmlDom.getElementsByTagName("Adpt");//1µª½º

				var goBranchTxt = '';
				var bdptTreeLine;
				var chkBdpt = 1;
				var bdptHeight=14;
				var cdptHeight=14;
				var sizeTemp = "";
				goBranchTxt += "<ul class='oneBox' >";
				for(i=0; i<adptTree.length; i++) {
					goBranchTxt += "<li class='oneList' onmouseover='eventTwo("+(i+1)+")' onmouseout='eventTwo("+(i+1)+")'>"+"<a href='' onfocus='eventTwo("+(i+1)+")' >"+adptTree[i].getAttribute("name")+"</a>";
					goBranchTxt += "<div class='boxRel' id='twoBox_"+(i+1)+"' style='display:none;'>"; 
					bdptTree = adptTree[i].getElementsByTagName("Bdpt");
					bdptTreeLine = bdptTree.length/2;
					if(bdptTreeLine>=6){
						twoHeight="style='top:-"+(bdptTreeLine*bdptHeight)+"px;'";					
					 
					}else{						
		 
					    twoHeight="";
						if(bdptTreeLine<=4){
							sizeTemp=" oneSize";
						}else{
							sizeTemp="";
						}
						 
					}
					goBranchTxt += "<div class='twoBox'>";
					goBranchTxt += "<div class='title'><span><img src='/renew/kor/image/main/home_blet_two.gif' alt='o'>&nbsp;<a href='"+adptTree[i].getAttribute("lnk")+"'  target='_blank' title='»õÃ¢¿¡¼­ ¿­¸²'>"+adptTree[i].getAttribute("name")+"</a></span></div>"; 					
					goBranchTxt += "<div class='twoBox2"+sizeTemp+"' "+twoHeight+" >";
					goBranchTxt += "<div class='towBox2Top'>";
					goBranchTxt += "<ul>";

					 
					for(j=0; j<bdptTree.length; j++) {

						
						goBranchTxt += "<li onmouseover='eventThree(this,"+chkBdpt+")' onmouseout='eventThree(this,"+chkBdpt+")'><img src='/renew/kor/image/blet/blet_squ01.gif' /><a href='"+bdptTree[j].getAttribute("lnk")+"'  target='_blank' title='»õÃ¢¿¡¼­ ¿­¸²' onfocus='eventThree(this,"+chkBdpt+")'>"+bdptTree[j].getAttribute("name")+"</a>";
						

						cdptTree = bdptTree[j].getElementsByTagName("Cdpt");
						cdptTreeLine = cdptTree.length;
						
						if(cdptTreeLine>=5){
						 				
						}else{	 
							threeHeight="";
				 
							
						}
						goBranchTxt += "<ul class='threeBox' id='threeBox_"+chkBdpt+"' style='display:none;"+threeHeight+"'>";
						if(cdptTree.length == 0) {
							alert(adptTree[i].getAttribute("name") + " " + bdptTree[j].getAttribute("name"));
						}
						for(k=0; k<cdptTree.length; k++) {
							if (k==cdptTree.length-1)
							{
								if(j==bdptTree.length-1)
								{
									if(i==adptTree.length-1){
										goBranchTxt += "<li><a href='"+cdptTree[k].getAttribute("lnk")+"'  target='_blank' title='»õÃ¢¿¡¼­ ¿­¸²' onblur='eventHomePage()'>"+cdptTree[k].getAttribute("name")+"</a></li>";						
									}else{
										goBranchTxt += "<li><a href='"+cdptTree[k].getAttribute("lnk")+"'  target='_blank' title='»õÃ¢¿¡¼­ ¿­¸²' onblur='eventThree_two(this,"+chkBdpt+","+i+")'>"+cdptTree[k].getAttribute("name")+"</a></li>";						
									}
								}else{
									goBranchTxt += "<li><a href='"+cdptTree[k].getAttribute("lnk")+"'  target='_blank' title='»õÃ¢¿¡¼­ ¿­¸²' onblur='eventThree(this,"+chkBdpt+")'>"+cdptTree[k].getAttribute("name")+"</a></li>";						
								}
							}else{
							goBranchTxt += "<li><a href='"+cdptTree[k].getAttribute("lnk")+"'  target='_blank' title='»õÃ¢¿¡¼­ ¿­¸²'>"+cdptTree[k].getAttribute("name")+"</a></li>";
							}
						}
					 
						goBranchTxt += "</ul>";
						goBranchTxt += "</li>";
						chkBdpt++;
					}
					goBranchTxt += "</ul>";
					goBranchTxt += "</div>";
					goBranchTxt += "</div>";
					goBranchTxt += "</div>";
					goBranchTxt += "</li>";
				}
				goBranchTxt += "</ul>";

				var allHomepageTxt = document.getElementById("allHomepage");
				allHomepageTxt.innerHTML = goBranchTxt;
			} else {
				alert("Fail");
			}
		}
	}

	// Ã¤¿ë°ü·Ã ·Ñ¸µ ¹è³Ê ½ºÅ©¸³Æ®	2009/12/15 ¹Ú»óÁø
	function rollingBan_job() {
		if( document.getElementById("banner_job1").style.display == 'block' ){
			document.getElementById("banner_job1").style.display = 'none';
			document.getElementById("banner_job2").style.display = 'block';
		}else{
			document.getElementById("banner_job1").style.display = 'block';
			document.getElementById("banner_job2").style.display = 'none';
		}
	}

//-->
