	// ¹è³Ê Ã³À½ À§Ä¡¸¦ À§ÇÑ ½ºÅ©¸³Æ®
	
	function HideDiv()
	{
		var layer_start = document.getElementById("main_banner");
		layer_start.style.position = "absolute";
		layer_start.style.top = "-89px";
		layer_start.style.height = "67px";
	}


	function pageInit(){
		showLayer('2'); 
		show_Div();
		
		fillup();
	}

	function hide_Div(){
	  document.all["div0"].style.display="none";
	  document.all["div1"].style.display="block";
	}
	function show_Div(){
	  document.all["div0"].style.display="block";
	  document.all["div1"].style.display="none";
	}

	function fn_viewSba(seq){
		location.href="http://sba.seoul.kr/kr/notice/notice_view.jsp?idx="+seq;
	}
	function fn_view(seq){
	
		document.getElementById("seq").value=seq;
		document.getElementById("query").value="seq";
		document.frm.action="/potal/html/notice/notice_view.do";
		document.frm.submit();
	}
	function fn_list(){
		document.frm.action="/potal/html/notice/notice_list.do";
		document.frm.submit();
	}



	function fillup()
	{
		if (iedom)
		{
			cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
			cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
			cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
			actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth
			cross_slide2.style.left=actualwidth+slideshowgap+"px"
		}
		else if (document.layers)
		{
			ns_slide=document.ns_slidemenu.document.ns_slidemenuorange
			ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
			ns_slide.document.write(leftrightslide)
			ns_slide.document.close()
			actualwidth=ns_slide.document.width
			ns_slide2.left=actualwidth+slideshowgap
			ns_slide2.document.write(leftrightslide)
			ns_slide2.document.close()
		}
		lefttime=setInterval("slideleft()",30)
	}

	function slideleft()
	{
		if (iedom)
		{
			if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
				cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"
			else
				cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px"
			if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
				cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"
			else
				cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px"
		}
		else if (document.layers)
		{
			if (ns_slide.left>(actualwidth*(-1)+8))
				ns_slide.left-=copyspeed
			else
				ns_slide.left=ns_slide2.left+actualwidth+slideshowgap
			if (ns_slide2.left>(actualwidth*(-1)+8))
				ns_slide2.left-=copyspeed
			else
				ns_slide2.left=ns_slide.left+actualwidth+slideshowgap
		}
	}
	
	function slideright()
	{
		if (iedom)
		{
			if (parseInt(cross_slide.style.left)<(actualwidth+8))
				cross_slide.style.left=parseInt(cross_slide.style.left)+copyspeed+"px"
			else
				cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth*(-1)+slideshowgap+"px"
			if (parseInt(cross_slide2.style.left)<(actualwidth+8))
				cross_slide2.style.left=parseInt(cross_slide2.style.left)+copyspeed+"px"
			else
				cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth*(-1)+slideshowgap+"px"
		}
		else if (document.layers)
		{
			if (ns_slide.left>(actualwidth*(-1)+8))
				ns_slide.left-=copyspeed
			else
				ns_slide.left=ns_slide2.left+actualwidth+slideshowgap
			if (ns_slide2.left>(actualwidth*(-1)+8))
				ns_slide2.left-=copyspeed
			else
				ns_slide2.left=ns_slide.left+actualwidth+slideshowgap
		}
	}

	function right()
	{
		if(lefttime)
		{
			clearInterval(lefttime)
			clearInterval(righttime)
			righttime=setInterval("slideright()",30)
		}
	}
	
	function left()
	{
		if(righttime)
		{
			clearInterval(lefttime)
			clearInterval(righttime)
			lefttime=setInterval("slideleft()",30)
		}
	}
	
	var curBannerIdx = 1;
	function fn_main_banner_move(act)
	{
		var bobj = document.getElementsByName("div_main_banner");
		var maxCnt = bobj.length;
		
		if(act=="up"){
			if(curBannerIdx<=1)	return;
			
			bobj[curBannerIdx].className = "main_banner_img hide";
			bobj[--curBannerIdx].className = "main_banner_img show";
		} 
		else if(act=="down"){
			if(curBannerIdx>=maxCnt)	return;
			
			bobj[curBannerIdx].className = "main_banner_img hide";
			bobj[++curBannerIdx].className = "main_banner_img show";
		}
	}
	
	var mainNoticeView =  new Array(1, 1, 1, 1, 1, 1, 1);
	function mainNoticeUp(cat)
	{
	
		var ind = cat-1;
	
		var maxcnt = document.getElementById("mainnotice_" + cat).value;
		if( maxcnt<=1 || mainNoticeView[ind] <= 1 ){
			return false;
		}
		else {
			var obj = document.getElementById("mainntc_" + cat + "_" + mainNoticeView[ind] );
			if(obj)	obj.className = "hide";
	
			mainNoticeView[ind]--;
			var obj = document.getElementById("mainntc_" + cat + "_" + mainNoticeView[ind] );
			if(obj)	obj.className = "show";
		}
		return false;
	}
	
	function mainNoticeDown(cat)
	{
	
		var ind = cat-1;
	
		var maxcnt = document.getElementById("mainnotice_" + cat).value;
		if( maxcnt<=1 || mainNoticeView[ind] >= maxcnt ){
			return false;
		}
		else {
			var obj = document.getElementById("mainntc_" + cat + "_" + mainNoticeView[ind] );
			if(obj)	obj.className = "hide";
	
			mainNoticeView[ind]++;
			var obj = document.getElementById("mainntc_" + cat + "_" + mainNoticeView[ind] );
			if(obj)	obj.className = "show";
		}
		return false;
	}
