//¹é±×¶ó¿îµå Ä³½¬¹ö±× IE6¿ë
//try { document.execCommand("BackgroundImageCache", false, true);} catch(err) {}

//Å¾¸Þ´º
function top2menuView(a) //2Â÷¸Þ´ºº¸±â
{
	if(this.id){
		eidStr = this.id;
		eidNum=eidStr.substring(eidStr.lastIndexOf("m",eidStr.length)+1,eidStr.length);
		a = parseInt(eidNum);
	}
	top2menuHideAll();
	top1Menu = document.getElementById("top1m"+a);
	top2Menu = document.getElementById("top2m"+a);
	if(a<10){ann='0'+a;} else {ann=''+a;}
	if (a==0) { //¸ÞÀÎÀº2Â÷¸Þ´ºÈ°¼ºÈ­¾ÈÇÔ
	} else {
		if (top1Menu) {
			top1Menu.getElementsByTagName("img")[0].src=top1Menu.getElementsByTagName("img")[0].src.replace("_off.gif","_on.gif");
			if (top2Menu) { 
				top2Menu.style.display = 'inline';
				}
		}
	}
}
function top2menuHide(a) //2Â÷¸Þ´º°¨Ãß±â
{
	if(this.id){
		eidStr = this.id;
		eidNum=eidStr.substring(eidStr.lastIndexOf("m",eidStr.length)+1,eidStr.length);
		a = parseInt(eidNum);
	}
	//top2menuHideAll();
	top1Menu = document.getElementById("top1m"+a);
	top2Menu = document.getElementById("top2m"+a);
	top1MenuCurr = document.getElementById("top1m"+d1n);
	top2MenuCurr = document.getElementById("top2m"+d1n);
	if(a<10){ann='0'+a;} else {ann=''+a;}
	if (top1Menu) {
		top1Menu.getElementsByTagName("img")[0].src=top1Menu.getElementsByTagName("img")[0].src.replace("_on.gif","._off.gif");
		if (top2Menu) { top2Menu.style.display = 'none'; }
		
		if (top1MenuCurr) {
			top1MenuCurr.getElementsByTagName("img")[0].src = top1MenuCurr.getElementsByTagName("img")[0].src.replace("_off.gif","_on.gif");
		}
		
		if (top2MenuCurr) { 
			top2MenuCurr.style.display = 'inline';
		}
	}
}

function top2menuHideAll() //2Â÷¸Þ´º¸ðµÎ°¨Ãß±â
{
	top1menuEl = document.getElementById("top1menu").childNodes;
	for (i=1;i<=top1menuEl.length;i++)
	{
		top1Menu = document.getElementById("top1m"+i);
		top2Menu = document.getElementById("top2m"+i);
		if(i<10){inn='0'+i;} else {inn=''+i;}
		if (top1Menu) {
			top1Menu.getElementsByTagName("img")[0].src=top1Menu.getElementsByTagName("img")[0].src.replace("_on.gif","_off.gif");
			if (top2Menu) { top2Menu.style.display = 'none'; }
		}
	}
}

function initTopMenu(d1,d2) {
	d1n = d1;
	d2n = d2;
	d1nn = (d1n<10) ? '0'+d1n : d1n;
	d2nn = (d2n<10) ? '0'+d2n : d2n;
 	var topmenu = document.getElementById("topmenu");
	//if(topmenu) topmenu.style.background = "url(../images/top_menu_"+d1nn+"_menubg.gif) no-repeat";
 	top1menuEl = document.getElementById("top1menu").childNodes;
	
	for (i=1;i<=top1menuEl.length;i++)
	{
		top1Menu = document.getElementById("top1m"+i);
		top2Menu = document.getElementById("top2m"+i);
		if (top1Menu) {
			top1Menu.onmouseover = top1Menu.onfocus = top2menuView;
			//top1Menu.onmouseout = top2menuHide;
			if (top2Menu) { 
				//top2Menu.onmouseover = top2Menu.onfocus = top2menuView;
				//top2Menu.onmouseout = top2menuHide;
			}
		}
	}
	top2MenuCurrAct = document.getElementById("top2m"+d1n+"m"+d2n);
	if (top2MenuCurrAct) {
		//top2MenuCurrAct.getElementsByTagName('a')[0].className = "active";
		top2MenuCurrAct.getElementsByTagName("a")[0].style.color="#3f3f3f";
	  top2MenuCurrAct.getElementsByTagName("a")[0].style.fontWeight="bold";
	}
	top2menuHide(d1);
}


//¸Þ´ºÀüÃ¼º¸±â
function displayToggle(arg) {
	obj = document.getElementById(arg);
	if(obj.style.display == "block") obj.style.display = "none";
	else obj.style.display = "block";
}

function displayOver() {
	this.style.display = 'block';
}

function displayOut() {
	this.style.display = 'none';
}


// »õÃ¢¶çÀ§±â
<!--
var win1Open = null

function displayImage(picName, windowName, windowWidth, windowHeight){
return window.open(picName,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + (parseInt(windowWidth)+20) + ",height=" + (parseInt(windowHeight)+15)) 
}

function winClose(){
if(win1Open != null) win1Open.close() 
}

function doNothing(){}
//-->

<!-- 
function displayImage(picName, windowName, windowWidth, windowHeight){
var winHandle = window.open("" ,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + windowWidth + ",height=" + windowHeight)
if(winHandle != null){
var htmlString = "<html><head><title>Picture</title></head>" 
htmlString += "<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>"
htmlString += "<a href=javascript:window.close()><img src=" + picName + " border=0 alt=Ã¢´Ý±â></a>"
htmlString += "</body></html>"
winHandle.document.open()
winHandle.document.write(htmlString)
winHandle.document.close()
} 
if(winHandle != null) winHandle.focus()
return winHandle
}
//-->

<!--
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

// -->



// ÀÌ¹ÌÁö ·Ñ¿À¹ö
function imgMenuOver(containderID) {
	var objwrap = document.getElementById(containderID);
	var imgMenu = objwrap.getElementsByTagName("a");

	for (i=0; i<imgMenu.length; i++) {
		if(imgMenu[i].getElementsByTagName("img").length == 0) continue;

		if (imgMenu[i].getElementsByTagName("img")[0].src.indexOf("_on.gif") != -1 ) {
			continue;
		}
		imgMenu[i].onmouseover = function() {
			subImage = this.getElementsByTagName("img")[0];
			if (subImage.src.indexOf("_on.gif") != -1) return false;
			subImage.src = subImage.src.replace("_off.gif","_on.gif");
		}
		imgMenu[i].onfocus = function() {
			subImage = this.getElementsByTagName("img")[0];
			if (subImage.src.indexOf("_on.gif") != -1) return false;
			subImage.src = subImage.src.replace("_off.gif","_on.gif");
		}
		imgMenu[i].onmouseout = function() {
			subImage = this.getElementsByTagName("img")[0];
			subImage.src = subImage.src.replace("_on.gif", "_off.gif");
		}
		imgMenu[i].onblur = function() {
			subImage = this.getElementsByTagName("img")[0];
			subImage.src = subImage.src.replace("_on.gif", "_off.gif");
		}
	}
}




/* ÀÌ¹ÌÁö ¿À¹ö ¾Æ¿ô */
function imageOver(imgEl) {
	imgEl.src = imgEl.src.replace("_off.gif", "_on.gif");
}
function imageOut(imgEl) {
	imgEl.src = imgEl.src.replace("_on.gif", "_off.gif");
}



// ÅÇ¸Þ´º °øÅëÀûÀ¸·Î »ç¿ë
//ex) tabOn(1,1);
function tabOn(tabid,a) {
	for (i=1;i<=10;i++) {
		if(i<10){inn="0"+i;} else {inn=""+i;}
		tabMenu = document.getElementById("tab"+tabid+"m"+i);
		tabContent = document.getElementById("tab"+tabid+"c"+i);
		tabMore = document.getElementById("tab"+tabid+"more"+i);
		if (tabMenu) { //°´Ã¼°¡Á¸ÀçÇÏ¸é
			if (tabMenu.tagName=="IMG") { tabMenu.src = tabMenu.src.replace("on.gif", "off.gif"); } //ÀÌ¹ÌÁöÀÏ¶§
			if (tabMenu.tagName=="A") { tabMenu.className=""; } //¾ÞÄ¿ÀÏ¶§
		}
		if (tabContent) { tabContent.style.display="none"; }
		if (tabMore) { tabMore.style.display="none"; }

	}
	if(a<10){ann="0"+a;} else {ann=""+a;}
	tabMenu = document.getElementById("tab"+tabid+"m"+a);
	tabContent = document.getElementById("tab"+tabid+"c"+a);
	tabMore = document.getElementById("tab"+tabid+"more"+a);
//	alert(tabMenu.tagName);
	if (tabMenu) { //°´Ã¼°¡Á¸ÀçÇÏ¸é
		if (tabMenu.tagName=="IMG") { tabMenu.src = tabMenu.src.replace("off.gif", "on.gif"); } //ÀÌ¹ÌÁöÀÏ¶§
		if (tabMenu.tagName=="A") { tabMenu.className="on"; } //¾ÞÄ¿ÀÏ¶§
	}
	if (tabContent) { tabContent.style.display="block"; }
	if (tabMore) { tabMore.style.display="block"; }
}


/* °ü·Ã»çÀÌÆ® »õÃ¢ */
function getSiteGo (num) {
	var obj = document.getElementById ("site_link"+num);
	
	if (obj.value != '') {window.open (obj.value);}
}

/* ÇÁ¸°Æ® */
function ContentsPrint2() {
	window.open('/board/print.asp', 'printform','width=718,height=500,menubar=1,resizable=1,scrollbars=1,status=1');
}
function ContentsPrint() {
	window.open('/print/print.asp', 'printform', 'width=718,height=500,menubar=1,resizable=1,scrollbars=1,status=1');	
}

function CyberPrint() {		
//	alert("CyberPrint");

		if(navigator.appName != "Microsoft Internet Explorer"){
			alert('Microsoft Internet Explorer¿¡¼­¸¸ Áö¿øÇÏ´Â ±â´ÉÀÔ´Ï´Ù.');
			return;
		}

	
	  var url;
	  var envwin;
	  envwin = "width=718,height=500,menubar=1,resizable=1,scrollbars=1,status=1";

	  tm = window.open("","printform",envwin);
	  tm.document.open();
		tm.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
		tm.document.write('<html xmlns="http://www.w3.org/1999/xhtml">');
		tm.document.write("<html><head><title>ÇÁ¸°Æ® È­¸é</title>");
		tm.document.write("<link rel='stylesheet' type='text/css' href='/common/css/print.css' />");
		tm.document.write("</head>");
		tm.document.write("<body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>");
		tm.document.write("<table border=0 cellpadding=0 cellspacing=0 width=100% height=30><img src=/images/sub/print_logo.gif alt='¼ö¿ø½Ã½Ã¼³°ü¸®°ø´Ü ÇÁ¸°Æ®È­¸é' /><tr>");
		tm.document.write("<td align=left style=padding:10px></td>");
		tm.document.write("<td align=right style=padding-right:10px><A HREF=\"#\"  onMouseOver=\"window.status=('print'); return true;\" onClick=\"return window.print()\"><img src=/images/sub/btn_contents_print.gif border=0 alt='ÇÁ¸°Æ®' /></a>");
		tm.document.write(" <a href=javascript:self.close()><img src=/images/sub/btn_contents_print_close.gif border=0 hspace=5 alt='´Ý±â' /></a></td></tr>");
		tm.document.write("<tr><td height='5' style='border-bottom:0px #d0d0d0 solid;'></td>");
		tm.document.write("<td height='5' style='border-bottom:0px #d0d0d0 solid;'></td>");
		tm.document.write("</tr></table>");
		tm.document.write("<table border=0 width=100%><tr><td><div id='content_center'><div id='subcontents'>");
		tm.document.write("<div id='contents'>");
		tm.document.write("<ul class='sitepath'>");
		tm.document.write("<li id='btn_print'><a href='#n' onclick='CyberPrint(); return false;' title='»õÃ¢'>");
		tm.document.write("<img src='/images/sub/btn_print.gif' alt='ÇÁ¸°Æ®ÇÏ±â' /></a></li>");
	    tm.document.write("<li><img src='/images/sub/icon_home.gif' alt=''>home > °í°´¸¶´ç > °í°´ÀÇ ¼Ò¸® > <span>»çÀÌ¹ö¹Î¿ø</span></li></ul>");
        tm.document.write("<h2><img src='/images/sub/title_sub05_01_01.gif' alt='»çÀÌ¹ö¹Î¿ø' ></h2><!-- ¼­ºê³»¿ë : ½ÃÀÛ -->");
		tm.document.write("<div id='sub05_01_ttl'>");
        tm.document.write("<p><img src='/images/sub05/sub05_01_ttl01.gif' alt='»çÀÌ¹ö¹Î¿øÀº °ø´Ü½Ã¼³¹°À» ÀÌ¿ëÇÏ½Ã¸é¼­ ´À²¼´ø ºÒÆí»çÇ×, °ÇÀÇ ¹× ¿ä±¸»çÇ× Á¦¾È µî ¿©·¯ºÐÀÇ ÀÇ°ßÀ» µè´Â °ø°£ÀÔ´Ï´Ù.' ></p>");
        tm.document.write("<p><img src='/images/sub05/sub05_01_ttl02.gif' alt='[°í°´¼­ºñ½º ¸®ÄÝÁ¦ ½ÃÇà] °ø´ÜÀÇ ±ÍÃ¥»çÀ¯·Î ÀÎÇÑ °í°´ ºÒÆí»çÇ×ÀÌ³ª ºÒÄ£Àý »çÇ× Á¢¼ö½Ã 5,000¿ø »ó´çÀÇ »óÇ°±ÇÀ¸·Î º¸»óÇØ µå¸®°Ú½À´Ï´Ù.' ></p>");
        tm.document.write("<ul>");
        tm.document.write("<li>±Û ÀÛ¼º½Ã <span>ÁÖ¹Îµî·Ï¹øÈ£, ÇÚµåÆù¹øÈ£ µî °³ÀÎÁ¤º¸</span>¸¦ ±âÀçÇÏ½Ã¸é Áï½Ã »èÁ¦ µÇ¿À´Ï ÀÔ·Â½Ã ÁÖÀÇÇÏ½Ã±â ¹Ù¶ø´Ï´Ù.</li>");
        tm.document.write("<li>Æ¯Á¤°³ÀÎ ¹× ´ÜÃ¼¿¡ ´ëÇÑ <span>ºñ¹æ, »ó¾÷¼º ±¤°í, ¿å¼³, Á¤Ä¡Àû ¼ºÇâ</span> ³»Àç µî °Ô½ÃÆÇ ¿î¿µÀÇ ÃëÁö¿¡ ¸ÂÁö ¾Ê°Å³ª <span>Å¸ÀÎÀÇ ÀÌ¸§<br />ÀÌ³ª ÀüÈ­¹øÈ£ »ç¿ë ¶Ç´Â ¿¬¶ôÃ³°¡ ºÒºÐ¸í</span>ÇÑ °æ¿ì¿¡µµ º°µµ Åëº¸¾øÀÌ »èÁ¦µË´Ï´Ù.</li>");
        tm.document.write("</ul></div>");
		tm.document.write(document.getElementById('cyber_contents').outerHTML);
		tm.document.write("</div><!--contents end-->");
		tm.document.write("</div></div></td></tr></table>");
		tm.document.write("<table border=0 cellpadding=0 cellspacing=0 width=100% height=30><tr>");
		tm.document.write("<td bgcolor=#f4f4f4 align=right style=padding-right:10px><A HREF=\"#\"  onMouseOver=\"window.status=('print'); return true;\" onClick=\"return window.print()\"><img src=/images/sub/btn_contents_print.gif border=0 alt='ÇÁ¸°Æ®'></a> ");
		tm.document.write(" <a href=javascript:self.close()><img src=/images/sub/btn_contents_print_close.gif border=0 hspace=5 alt='´Ý±â'></a></td>");
		tm.document.write("</tr></table>");
		tm.document.write("</body>");
		tm.document.write("</html>");	
		tm.document.close();
}

/* ¿ÞÂÊ ¼­ºê¸Þ´º */
function SubMenuOpenClose( SubMenuID, SubMenuImgID ) {

		var eleSubMenu = document.getElementById( SubMenuID );
		var eleSubMenuImg = document.getElementById( SubMenuImgID );
		var strDisplay = eleSubMenu.style.display;

		var setDisplay = "";
		var setAlt = "";
		var setSrc = "";

		if( strDisplay == 'none' ) {
			setDisplay = "block";
			setAlt = "¼­ºê¸Þ´º ´Ý±â";
			setSrc = eleSubMenuImg.src.replace('_open.gif','_close.gif');
		} else {
			setDisplay = "none";
			setAlt = "¼­ºê¸Þ´º ¿­±â";
			setSrc = eleSubMenuImg.src.replace('_close.gif','_open.gif');
		}

		eleSubMenu.style.display = setDisplay;
		eleSubMenuImg.alt = setAlt;
		eleSubMenuImg.src = setSrc;

	}

function imageOver(imgEl) {
	imgEl.src = imgEl.src.replace("_off.gif", "_on.gif");
}
function imageOut(imgEl) {
	imgEl.src = imgEl.src.replace("_on.gif", "_off.gif");
}
/* Select Go */
function goSelectUrl(num){
			var obj = document.getElementById('select'+num);
			if(obj.value == '' || obj.value == 'total'){
			}else{
				window.open(obj.value);
			}
}


/* ÆË¾÷Á¸*/
var popup_timer = null;
var popup_delay_time = 4000;
var popup_pause = false;
var popup_button_pause = false;
var select_popup_num = 1;
var popup_object_num = 8; 

function popup_open(url, target, width, height){
	if( url == '') return ;
	window.open(url, target, 'width='+width+',height='+height);
}

function popup_display(popupIDX, move) {
	if(!popupIDX)  {
		popupIDX = select_popup_num;
		if(popup_pause==true && !move) return;
		if(popup_button_pause==true && !move) return;
		if(!move) move = 'next';
		hide_popup(popupIDX);
	}else{
		hide_popup(select_popup_num);
	}
	if(move=='prev') {
		if(popupIDX==1) {
			popupIDX = popup_object_num;
		} else {
			popupIDX--;
		}
	} else if(move=='next') {
		if(popupIDX==popup_object_num) {
			popupIDX = 1;
		} else {
			popupIDX++;
		}
	} else if(move=='pause') {
		if(popup_button_pause==true) {
			popup_button_pause=false;	
			document.getElementById("popup_pause_img").src='images/main/btn_control_stop.gif';
			document.getElementById("popup_pause_img").alt='ÀÏ½ÃÁ¤Áö';
		} else if(popup_button_pause==false) {
			popup_button_pause=true;	
			document.getElementById("popup_pause_img").src='images/main/btn_control_play.gif';
			document.getElementById("popup_pause_img").alt='Àç»ý';
		}
	}
	show_popup(popupIDX);
	select_popup_num = popupIDX;



}

function hide_popup(num) {

	document.getElementById("popupzoneImage" + num).style.display = 'none';

	document.getElementById("popupzoneNumber" + num).src = 'images/main/btn_' + num + '_off.gif';

}

function show_popup(num) {

	document.getElementById("popupzoneImage" + num).style.display = 'block';

	document.getElementById("popupzoneNumber" + num).src = 'images/main/btn_' + num + '_on.gif';

}

function popup_scroll(count ) {
	popup_object_num = count;
	popup_timer = setInterval("popup_display()",popup_delay_time); 


//	document.getElementById("popupzoneImage1").style.display = 'block';



}

// ÆùÆ®Å©±â 

function setFontSize(a) {
	var defaultFontSize = 1;//em
	var minFontSize = 1;//em
	var maxFontSize = 2;//em
	obj = document.getElementById("wrapper");//È®´ëÃà¼Ò¿µ¿ª
	var objFontSize = obj.style.fontSize;
	if (!objFontSize) { objFontSize = parseFloat(defaultFontSize)+"em"; }
	var checkFontSize = (Math.round(12*parseFloat(objFontSize))+(a*2))/12;
	if (checkFontSize >= maxFontSize) { checkFontSize = maxFontSize; obj.style.fontSize = checkFontSize+"em"; alert("´õÀÌ»ó ´Ã¸± ¼ö ¾ø½À´Ï´Ù."); }
	else if (checkFontSize <= minFontSize) { checkFontSize = minFontSize; obj.style.fontSize = checkFontSize+"em"; alert("´õÀÌ»ó ÁÙÀÏ ¼ö ¾ø½À´Ï´Ù."); }
	else { obj.style.fontSize = checkFontSize+"em"; }
//	alert(checkFontSize);
}


//±ÛÀÚÅ©±â 2
//ex) onclick="setFontSize(+1);"	 onclick="setFontSize(-1);"
function setFontSize1(a) {
	var defaultFontSize = 1;//em
	var minFontSize = 1;//em
	var maxFontSize = 2;//em
	obj = document.getElementById("wrapper");//È®´ëÃà¼Ò¿µ¿ª
	var objFontSize = obj.style.fontSize;
	if (!objFontSize) { objFontSize = parseFloat(defaultFontSize)+"em"; }
	var checkFontSize = (Math.round(12*parseFloat(objFontSize))+(a*2))/12;
	if (checkFontSize >= maxFontSize) { checkFontSize = maxFontSize; obj.style.fontSize = checkFontSize+"em"; alert("´õÀÌ»ó ´Ã¸± ¼ö ¾ø½À´Ï´Ù."); }
	else if (checkFontSize <= minFontSize) { checkFontSize = minFontSize; obj.style.fontSize = checkFontSize+"em"; alert("´õÀÌ»ó ÁÙÀÏ ¼ö ¾ø½À´Ï´Ù."); }
	else { obj.style.fontSize = checkFontSize+"em"; }
//	alert(checkFontSize);
}

//±ÛÀÚÅ©±â 3
//ex) onclick="setFontSize(+1);"	 onclick="setFontSize(-1);"
function setFontSize2() {
	
	var defaultFontSize = 1;//em
	obj = document.getElementById("wrapper");//È®´ëÃà¼Ò¿µ¿ª
	var objFontSize = obj.style.fontSize;
	if (!objFontSize) { objFontSize = parseFloat(defaultFontSize)+"em"; }
	//var checkFontSize = (Math.round(12*parseFloat(objFontSize))+(a*2))/12;
	obj.style.fontSize = defaultFontSize+"em"; 
//	alert(checkFontSize);
}


//±ÛÀÚÅ©±â 4
//ex) onclick="setFontSize(+1);"	 onclick="setFontSize(-1);"
function setFontSize3() {
	
	var defaultFontSize = 1;//em
	obj = document.getElementById("wrapper");//È®´ëÃà¼Ò¿µ¿ª
	var objFontSize = obj.style.fontSize;
	if (!objFontSize) { objFontSize = parseFloat(defaultFontSize)+"em"; }
	//var checkFontSize = (Math.round(12*parseFloat(objFontSize))+(a*2))/12;
	obj.style.fontSize = defaultFontSize+"em"; 
//	alert(checkFontSize);
}

// ¸ÞÀÎ ÆË¾÷Á¸
<!--

	var popScrollerHeight = 127;		// ½ºÅ©·Ñ·¯ÀÇ ¼¼·Î
	var popTotalArea = 0;
	var pWait = true;
	var pMouseOver = false;
	var popScrollSpeed = 1;			// popchanging ¼Óµµ
	var popWaitTime = 4000;			// ¸ØÃß´Â ½Ã°£ ÆË¾÷Á¸
	var popTemp = 0;
	var popMovingAmount = popScrollerHeight * 1;	//height °ö¿¡ µû¶ó ½ºÅ©·Ñ¸µ µÇ´Â ·¹ÀÌ¾î Å©±â ÁöÁ¤
	var arrScrollContent2 = new Array();
	var poploop = 1;
	var popObjCnt;



	function startscroll2(totCnt) {			// ½ºÅ©·Ñ ½ÃÀÛ
		popObjCnt = totCnt;
		popchanging();

		if (!pMouseOver && pWait) {
			window.setInterval('popchanging()', popWaitTime);
		}
	}

	function popchanging() {// ½ÇÁ¦·Î ½ºÅ©·Ñ ÇÏ´Â ºÎºÐ

		if (!pMouseOver && pWait) {
			var imgNum = "";

			if(poploop < 10) imgNum = '0';
			imgNum = imgNum + poploop;

			var objName = "popbt" + imgNum;
			var viewObjName = "mainpop" + imgNum;
			var obj = document.getElementById(objName);
			var viewObj = document.getElementById(viewObjName);

			viewObj.style.visibility = 'visible';
			obj.src = "hdw10/contents/main/images/main/number_on_" + imgNum + ".gif";

			for(var i = 1; i <= popObjCnt; i++) {

				if(i == poploop) continue;
				imgNum = "";

				if(i < 10) imgNum = "0";

				imgNum = imgNum + i;

				var tmpobjName = "popbt" + imgNum;
				var tmpviewObjName = "mainpop" + imgNum;

				var tmpobj = document.getElementById(tmpobjName);
				var tmpviewObj = document.getElementById(tmpviewObjName);


				tmpviewObj.style.visibility = "hidden";

				tmpobj.src = "hdw10/contents/main/images/main/number_off_" + imgNum + ".gif";


			}

			poploop++;

			if(poploop > popObjCnt) poploop = 1;
		}
	}
//-->

<!--

	function goPage(url) {
		parent.top.location.href = url;
	}

	function popoverImage(imgNum) {

		var objName = "popbt" + imgNum;
		var viewObjName = "mainpop" + imgNum;
		var scrollNum = parseInt(imgNum) - 1;
		var obj = document.getElementById(objName);
		var viewObj = document.getElementById(viewObjName);

		obj.src = "hdw10/contents/main/images/main/number_on_" + imgNum + ".gif";

		if(imgNum == "08") {
			poploop = 8;

		} else if(imgNum == "09") {
			poploop = 9;

		} else {
			poploop = parseInt(imgNum);
		}

		viewObj.style.visibility = "visible";

		for(var i = 1; i <= popObjCnt; i++) {
			if(i == poploop) continue;
			imgNum = "";

			if(i < 10) imgNum = "0";

			imgNum = imgNum + i;

			var tmpobjName = "popbt" + imgNum;
			var tmpviewObjName = "mainpop" + imgNum;
			var tmpobj = document.getElementById(tmpobjName);

			var tmpviewObj = document.getElementById(tmpviewObjName);
			tmpviewObj.style.visibility = "hidden";

			tmpobj.src = "hdw10/contents/main/images/main/number_off_" + imgNum + ".gif";
		}

		pMouseOver = true;
	}


	function popoutImage(imgNum) {

		if(pWait) {
			var objName = "popbt" + imgNum;
			var viewObjName = "mainpop" + imgNum;
			var obj = document.getElementById(objName);
			var viewObj = document.getElementById(viewObjName);
			var movingObj = document.getElementById("mainpop00");

			obj.src = "hdw10/contents/main/images/main/number_off_" + imgNum + ".gif";
			viewObj.style.visibility = "hidden";
			movingObj.style.visibility = "visible";

//			poploop = 1;

			pMouseOver = false;
			popchanging();
		}
	}

	function startpopchanging() {		// ½ºÅ©·Ñ Àç½ÃÀÛ
		pWait = true;
		popoutImage("01");
	}

	function stopscroll() {		// ½ºÅ©·Ñ Á¤Áö
		pWait = false;
	}
  
//-->


//½ºÅ©·Ñ·¹ÀÌ¾î

//----------------------------------------------
//Floating v1.1 Source By Bermann
//dobermann75@gmail.com
//----------------------------------------------

//new Floating(Àû¿ëÇÒ°³Ã¼ , XÃà¿©¹é , YÃà¿©¹é , ¹Ì²ô·¯Áö´Â¼Óµµ:ÀÛÀ»¼ö·Ïºü¸§..±âº»20 , ºü¸£±â:ÀÛÀ»¼ö·ÏºÎµå·¯¿ò..±âº»10);

function Floating(FloatingObj,MarginX,MarginY,Percentage,setTime) {
	this.FloatingObj = FloatingObj;
	this.MarginX = (MarginX) ? MarginX : 0;
	this.MarginY = (MarginY) ? MarginY : 0;
	this.Percentage = (Percentage) ? Percentage : 20;
	this.setTime = (setTime) ? setTime : 10;
	this.FloatingObj.style.position = "absolute";
	this.Body = null;
	this.setTimeOut = null;
	this.Run();
}

Floating.prototype.Run = function () {
	if ((document.documentElement.scrollLeft + document.documentElement.scrollTop) > (document.body.scrollLeft + document.body.scrollTop)) {
		this.Body = document.documentElement;
	} else {
		this.Body = document.body;
	}

	var This = this;
	var FloatingObjLeft = (this.FloatingObj.style.left) ? parseInt(this.FloatingObj.style.left,10) : this.FloatingObj.offsetLeft;
	var FloatingObjTop = (this.FloatingObj.style.top) ? parseInt(this.FloatingObj.style.top,10) : this.FloatingObj.offsetTop;
	var DocLeft = this.Body.scrollLeft + this.MarginX;
	var DocTop = this.Body.scrollTop + this.MarginY;

	var MoveX = Math.abs(FloatingObjLeft - DocLeft);
	MoveX = Math.ceil(MoveX / this.Percentage);
	var MoveY = Math.abs(FloatingObjTop - DocTop);
	MoveY = Math.ceil(MoveY / this.Percentage);

	if (FloatingObjLeft < DocLeft) {
	//	this.FloatingObj.style.left = FloatingObjLeft + MoveX + "px";
	} else {
		this.FloatingObj.style.left = FloatingObjLeft - MoveX + "px";
	}

	if (FloatingObjTop < DocTop) {
		this.FloatingObj.style.top = FloatingObjTop + MoveY + "px";
	} else {
		this.FloatingObj.style.top = FloatingObjTop - MoveY + "px";
	}

	window.clearTimeout(this.setTimeOut);
	this.setTimeOut = window.setTimeout(function () { This.Run(); },this.setTime);
}

//¹è³Ê
function BannerZone() {
	
	this.init = function( CreateName, ZoneName, ControlName, Height ) {
		
		// »ý¼ºµÈ °´Ã¼ ÀÌ¸§
		this.CreateName = CreateName;
		// Á¸ ÀÌ¸§
		this.ZoneName = ZoneName;
		// Á¸ ÄÁÆ®·Ñ ÀÌ¸§
		this.ControlName = ControlName;
		// Á¸ ³ôÀÌ
		this.Height = Height;

		// ÇöÀç ¹è³Ê
		this.CurrentPop = 0

		// Á¸ ¿ÀºêÁ§Æ®
		this.Zone = document.getElementById(this.ZoneName).getElementsByTagName("ul")[0].getElementsByTagName("li");
		// Á¸ ÄÁÆ®·Ñ ¿ÀºêÁ§Æ®
		this.Control = document.getElementById(this.ControlName).getElementsByTagName("li");

		// ¹è³Ê ³»¿ë ¼ö
		if( this.Zone.length % 6 > 0 )
			this.Length = Math.round(this.Zone.length / 6);
		else
			this.Length = Math.round(this.Zone.length / 6)-1;

		// ÀÌÀü¹öÆ°
		this.PrevButton = this.Control[0].getElementsByTagName("img")[0];
		// ´ÙÀ½¹öÆ°
		this.NextButton = this.Control[1].getElementsByTagName("img")[0];
		
		// ÀÌÀü¿¨Ä¿
		this.PrevAnchor = this.Control[0].getElementsByTagName("a")[0];
		// ´ÙÀ½¿¨Ä¿
		this.NextAnchor = this.Control[1].getElementsByTagName("a")[0];

		// function ¿¡¼­ »ç¿ëÇÒ °´Ã¼ ÀúÀå
		var PopupZoneThis = this;

		// ÀÌº¥Æ® ¼³Á¤ --------------------------------------------------------------------------------------------

		// ÀÌÀü¹öÆ° On
		this.PrevAnchor.onclick = function() {
			eval( PopupZoneThis.CreateName + ".Prev()" );
		};

		// ´ÙÀ½¹öÆ° On
		this.NextAnchor.onclick = function() {
			eval( PopupZoneThis.CreateName + ".Next()" );
		};


		// ³»¿ë ÀÌº¥Æ® -----------------------------------------------------------------------------------------

		//for( var LoopI=0; LoopI<=this.Length; LoopI++ ) {

		//	this.PopupLink = this.Zone[LoopI].getElementsByTagName("a")[0];
		//	this.PopupLink.LoopI = LoopI;
		//	this.PopupLink.CreateName = this.CreateName;
		//	this.PopupLink.onfocus = function() {
		//		eval( this.CreateName + ".On(" + this.LoopI + ")" );
		//	};

		//}

	};
	
	// ÀÌÀü
	this.Prev = function() {
		if( this.Length >= 0 ) {
			this.CurrentPop = ( this.CurrentPop <= 0 ) ? this.Length : --this.CurrentPop;
			this.Move();
		}
	};

	// ´ÙÀ½
	this.Next = function() {
		if( this.Length >= 0 ) {
			this.CurrentPop = ( this.CurrentPop >= this.Length ) ? 0 : ++this.CurrentPop;
			this.Move();
		}
	};
	
	// È°¼ºÈ­
	this.On = function( intPop ) {
		this.CurrentPop = intPop;
		this.Move();
	};

	// ÀÌµ¿
	this.Move = function() {
		var tmpTop = 0 - this.CurrentPop * this.Height;
		document.getElementById(this.ZoneName).style.top = tmpTop+ "px";
	};
	
}

//¼­ºêÅÜ¸Þ´º
function initTabMenu(tabContainerID) {
	var tabContainer = document.getElementById(tabContainerID);
	var tabAnchor = tabContainer.getElementsByTagName("a");
	var i = 0;

	for(i=0; i<tabAnchor.length; i++) {
		if (tabAnchor.item(i).className == "tab")
			thismenu = tabAnchor.item(i);
		else
			continue;

		thismenu.container = tabContainer;
		thismenu.targetEl = document.getElementById(tabAnchor.item(i).href.split("#")[1]);
		thismenu.targetEl.style.display = "none";
		thismenu.imgEl = thismenu.getElementsByTagName("img").item(0);		
		thismenu.onfocus = tabMenuClick;
		thismenu.onclick = tabMenuClick;
		
		if (!thismenu.container.first)
			thismenu.container.first = thismenu;
	}
	if (tabContainer.first)
		tabContainer.first.onfocus();
		tabContainer.first.onclick();
}
function tabMenuClick() {
	currentmenu = this.container.current;
	if (currentmenu != this) {
		if (currentmenu) {
			currentmenu.targetEl.style.display = "none";
			if (currentmenu.imgEl) {
				currentmenu.imgEl.src = currentmenu.imgEl.src.replace("_on.gif", ".gif");
			} else {
				currentmenu.className = currentmenu.className.replace(" on", "");
			}
		}

		this.targetEl.style.display = "block";
		if (this.imgEl) {
			this.imgEl.src = this.imgEl.src.replace(".gif", "_on.gif");
		} else {
			this.className += " on";
		}
		this.container.current = this;
	}
	return false;
}

//ÇÃ·¡½¬ ¿¬µ¿	
function flashWrite(url,w,h,id,bg,vars,win){
 // ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
 var flashStr=
 "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
 "<param name='allowScriptAccess' value='always' />"+
 "<param name='movie' value='"+url+"' />"+
 "<param name='FlashVars' value='"+vars+"' />"+
 "<param name='wmode' value='"+win+"' />"+
 "<param name='menu' value='false' />"+
 "<param name='quality' value='high' />"+
 "<param name='bgcolor' value='"+bg+"' />"+
 "<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
 "</object>";
 // ÇÃ·¡½Ã ÄÚµå Ãâ·Â
 document.write(flashStr);
}

//¼¿·ºÆ®¸Þ´º_¹Ù·Î°¡±â
function goUri(uri,target) { 
	if(uri!="") { window.open(uri,target); }
}
//¸ñ·Ï»óÀÚ¹Ù·Î°¡±â
function goSelect(form,target) {
	var myindex=form.uri.selectedIndex
	myUri = form.uri.options[myindex].value;
	if(myUri!="") { window.open(myUri,target); }
}

