<!-- #include virtual = "/common/lib/dbcon.asp" -->
<!-- #include virtual = "/common/lib/func.asp" -->
<%
Dim location_page
location_page = "/manager/index.asp"

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="robots" content="noindex, nofollow" />
	<title><%=site_name%></title>
<% if location_page = Request.ServerVariables("path_info") Then %>
	<link rel="Stylesheet" type="text/css" href="/manager/common/css/main_layout.css" />
<% else %>
	<link rel="Stylesheet" type="text/css" href="/manager/common/css/sub_layout.css" />
<% End If %>

	<link rel="Stylesheet" type="text/css" href="/manager/common/css/all.css" />
	<script type="text/javascript" src="/common/js/common_design.js"></script>
	<script type="text/javascript" src="/common/js/fusioncharts.js"></script>
	<script type="text/javascript" src="/common/js/common_dev.js"></script>

	<link rel="Stylesheet" type="text/css" href="/common/js/jquery-ui.css" />
	<script type="text/javascript" src="/common/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="/common/js/jquery.cookie.js"></script>
	<script type="text/javascript" src="/common/js/jquery-ui.min.js"></script>


<%
security_ad_cms()	'관리자 페이지 체크
%>
	<script type="text/javascript" src="/manager/content/01info/site_info_client.asp"></script>
</head>

<body class="<%=skin%>">

<!-- 전체싸는 박스 -->
<div id="wrapper">

	<!-- 스킵네비게이션 -->
	<div id="skipnavigation">
	<h1>스킵 네비게이션</h1>
	<ul>
	<li><a href="#contents" title="본문으로 바로가기" tabindex="<%=getTabIndex()%>" >본문으로 바로가기</a></li>
	<li><a href="#big_menu" title="대메뉴로 바로가기" tabindex="<%=getTabIndex()%>">대메뉴로 바로가기</a></li>
<% If location_page <> Request.ServerVariables("path_info") then%>
	<li><a href="#sidebar" title="서브메뉴로 바로가기" tabindex="<%=getTabIndex()%>">서브메뉴로 바로가기</a></li>
<% End If %>
	</ul>
	</div>
	<!-- //스킵네비게이션 -->

	<hr />

	<!-- 상단 영역-->
	<div id="head">
		<div id="top_color"></div>
		<!-- 사이트 바로가기 -->
		<div id="website_move">
			<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="120" height="45">
			<param name="movie" value="/manager/img/<%=skin%>/sitelink.swf?url=<%=Request.ServerVariables("HTTP_HOST")%>" />
			<param name="wmode" value="transparent" />
			</object>
			<!--[if !IE]> <-->
			<object type="application/x-shockwave-flash" data="/manager/img/<%=skin%>/sitelink.swf?url=<%=Request.ServerVariables("HTTP_HOST")%>" width="120" height="45">
			<param name="wmode" value="transparent" />
			<a href="javascript:window.open('<%=Request.ServerVariables("HTTP_HOST")%>');" title="Web-Site 바로가기 새창에서 열림"  tabindex="<%=getTabIndex()%>">WEB-SITE</a>
			이 콘텐츠는 Flash로 제작되었습니다.<br />이 콘텐츠를 보려면 <a href="http://www.adobe.com/kr/products/flashplayer/">Flash Player</a>(무료)가 필요합니다.
			</object>
			<!--> <![endif]-->
		</div>
		<!-- //사이트 바로가기 -->

		<!--로고 -->
		<div id="logo"><a href="/manager" title="YOUR BEST E-SERVICE PARTNER 'NNINC' Home Manager" accesskey="h" tabindex="<%=getTabIndex()%>"><img src="/manager/img/logo.gif" width="189" height="74" alt="YOUR BEST E-SERVICE PARTNER 'NNINC' Home Manager" /></a></div>
		<!--//로고 -->

		<!-- 탑메뉴+자주쓰는 메뉴 -->
		<script type="text/javascript">
			function often_menu()
			{
				var link_url = document.getElementById("often").value;
				if(link_url) document.location.href = link_url;
				else alert("이동할 자주쓰는 메뉴를 선택해 주세요");
			}	
		</script><noscript><p>자바스크립트(자주쓰는 메뉴)</p></noscript>

		<div id="often_wrap">
			<div id="often_menu">
				<ul>
				<li class="first-child"><a href="/manager/" accesskey="h" tabindex="<%=getTabIndex()%>">홈</a></li>
				<li class="first"><a href="/manager/logout.asp" tabindex="<%=getTabIndex()%>">로그아웃</a></li>
				<!-- <li>
					<select name="often" id="often" tabindex="<%=getTabIndex()%>">
						<option selected="selected" value="">자주쓰는 메뉴</option>
						<option value="">======================</option>
						<%
						sql = "SELECT ct_idx, ct_name, ct_url  FROM manager_favorites WHERE ct_chk = 'Y' AND ct_m_id = '"& SESSION("ss_m_id") & "' ORDER BY ct_code ASC"
						Set rs = dbcon.execute( sql )
						If rs.bof Or rs.eof Then
							list_data = null
						Else
							list_data = rs.getrows
						End if
						Set rs = Nothing
						If Not( IsNull( list_data ) ) then
							For i = 0 To UBound(list_data, 2)
								Call arr2Value("ct_idx, ct_name, ct_url", "list_data", i)
						%>
						<option value="<%=ct_url%>"><%=ct_name%></option>
						<%
							next
						End if
						%>
					</select>
				</li> -->
				</ul>
			</div>
			<!-- <div id="often_menu_right">
				<div id="bt03"><a href="javascript:often_menu()"  tabindex="<%=getTabIndex()%>"><span>이동</span></a></div>
			</div> -->
		</div>
		<!-- //자주쓰는 메뉴 -->


		<div id="menu_<%=skin%>">
			<a name="big_menu"></a>
			<h2 class="hidden">대메뉴</h2>
			<ul>
			<%
			sql = "SELECT ct_idx, ct_name, ct_codeno  FROM manager_menu WHERE ct_depth=1 and ct_chk = 'Y' ORDER BY ct_code ASC"
			Set rsmm_d1 = dbcon.execute( sql )
			
			If Not( rsmm_d1.bof Or rsmm_d1.eof ) Then
				z= 1
				Do until rsmm_d1.eof
					mmd1_ct_idx		= rsmm_d1("ct_idx")
					mmd1_ct_name	= rsmm_d1("ct_name")
					mmd1_ct_codeno	= rsmm_d1("ct_codeno")

					'2단계 codeno
					mmd1_ct_codeno2 = get_menu2_url( mmd1_ct_codeno,SESSION("ss_g_num"))

					if mmd1_ct_codeno2 <> "#" Then	'있으면 3단계에서 찾고

						mmdi_url = get_menu3_url( mmd1_ct_codeno2, SESSION("ss_g_num"))

					else		'없으면 ..그냥 #처리
						mmdi_url ="#"
					End if
					If mmdi_url = "#" Then mmdi_url = "javascript:alert('접근권한이 없습니다.');"
%>
				<li class="menu<%=z%>"><a href="<%=mmdi_url%>" title="<%=mmd1_ct_name%>"  tabindex="<%=getTabIndex()%>"><img src="/manager/img/<%=skin%>/m0<%=z%>.gif" alt="<%=mmd1_ct_name%>" /></a></li>
<%
					rsmm_d1.movenext
					z = z + 1
				Loop
			Else
				response.write "<li></li>"
			End If
			
			Set rsmm_d1 = nothing
			%>
			</ul>

			<div id="menu_right">
			<h2 class="hidden">색상 스킨</h2>
				<ul>
				<li><a href="javascript:SetSkin('blue');" title="파란색 스킨" tabindex="<%=getTabIndex()%>"><img src="/manager/img/skin01.gif" width="10" height="10" alt="파란색 스킨" /></a></li>
				<li><a href="javascript:SetSkin('orange');" title="주황색 스킨" tabindex="<%=getTabIndex()%>"><img src="/manager/img/skin02.gif" width="10" height="10" alt="주황색 스킨" /></a></li>
				<li><a href="javascript:SetSkin('sky');" title="하늘색 스킨" tabindex="<%=getTabIndex()%>"><img src="/manager/img/skin03.gif" width="10" height="10" alt="하늘색 스킨" /></a></li>
				<li><a href="javascript:SetSkin('green');" title="녹색 스킨" tabindex="<%=getTabIndex()%>"><img src="/manager/img/skin04.gif" width="10" height="10" alt="녹색 스킨" /></a></li>
				<li><a href="javascript:SetSkin('gray');" title="회색 스킨" tabindex="<%=getTabIndex()%>"><img src="/manager/img/skin05.gif" width="10" height="10" alt="회색 스킨" /></a></li>
				</ul>
			</div>
		</div>
		<div id="top_bg_<%=skin%>">&nbsp;</div>

	</div>
	<!-- //상단 영역 -->

	<hr />
