<?
session_start();
include $_SERVER["DOCUMENT_ROOT"] . "/common/conf/config.inc.php";

if(!$_SESSION[$_SITE["DOMAIN"]]["SESSIONID"]){
        $_SESSION[$_SITE["DOMAIN"]]["SESSIONID"] = md5(rand().microtime());//쇼핑몰 고유 세션 아이디
}

//하루에 한번만 로그를 기록함
include $_SERVER["DOCUMENT_ROOT"] . "/module/log/log.lib.php";
if($_COOKIE["websight_log_count"]!="1"){
        setcookie("websight_log_count", "1", time()+(86400), "/", $_SITE["DOMAIN"]);
        $dblink = SetConn($_conf_db["main_db"]);
        insertLog();
}

if ($handle = opendir($_SERVER["DOCUMENT_ROOT"] . "/images/")) {
	$cc=0;
	while (false !== ($sns_file = readdir($handle))) {
		if (strpos($sns_file, 'sns_link') !== false) {
			$sns_icon = $sns_file;
		}
	}
}
?>
<? if($mNum=="") $mNum=0 ?>
<? if($sNum=="") $sNum=0 ?>
<!DOCTYPE html>
<html lang="ko">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=Edge">
	<meta name="viewport" id="viewport" content="width=1280px">
    <title><?=$arrSetInfo["list"][0]["shop_name"]?></title>
	<meta name="subject" content="<?=$arrSetInfo["list"][0]["shop_title"]?>">
	<meta name="description" content="<?=$arrSetInfo["list"][0]["shop_content"]?>">
	<meta name="keywords" content="<?=$arrSetInfo["list"][0]["shop_keyword"]?>">

	<?if($arrSetInfo["list"][0]["shop_navermeta"]!=""){?>
	<meta name="naver-site-verification" content="<?=$arrSetInfo["list"][0]["shop_navermeta"]?>"/> 
	<?}?>

	<meta property="og:type" content="website">
	<meta property="og:title" content="<?=$arrSetInfo["list"][0]["shop_title"]?>">
	<meta property="og:description" content="<?=$arrSetInfo["list"][0]["shop_content"]?>">
	<?if($sns_icon!=""){?>
	<meta property="og:image" content="http://<?=$arrSetInfo["list"][0]["shop_url"]?>/images/<?=$sns_icon?>">
	<?}?>
	<meta property="og:url" content="http://<?=$arrSetInfo["list"][0]["shop_url"]?>/">

	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
	<link rel="stylesheet" type="text/css" href="../css/style.css">
	<link rel="stylesheet" type="text/css" href="../css/notosanskr.css">
	<link rel="stylesheet" type="text/css" href="../css/notosanssc.css">
	<link rel="stylesheet" type="text/css" href="../css/animate.css">
	
	<script type="text/javascript" src="../js/jquery-1.11.1.min.js"></script> 
	<script type="text/javascript" src="../js/jquery.easing.1.3.js"></script>	
	<script type="text/javascript" src="../js/jquery.gnb.js"></script> 
	<script type="text/javascript" src="../js/jquery.bxslider.js"></script>
	<script type="text/javascript" src="../js/jquery.js"></script>

	<script type="text/javascript" src="/fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script>
	<script type="text/javascript" src="/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
	<link rel="stylesheet" type="text/css" href="/fancybox/source/jquery.fancybox.css?v=2.1.5" media="screen">
</head>
<body id="<? if($main=="main"): ?>main<? else: ?>sub<? endif ?>" class="bg">
<div id="wrapper">
	<h1 class="hide">IT Solution</h1>
	<div id="skipToContent">
		<? if($main=="main"): ?>
		<a href="#container">본문 바로가기</a>
		<a href="#gnb">주메뉴 바로가기</a>
		<? else: ?>
		<a href="#contArea">본문 바로가기</a>
		<a href="#gnb">주메뉴 바로가기</a>
		<a href="#lnb">서브메뉴 바로가기</a>
		<? endif ?>
	</div>

	<!-- // header -->
    <div id="header">
		<div class="contain">
			<p class="logo"><a href="/index.php"><img src="../images/common/logo.jpg" alt="IT Solution"></a></p>
			<div class="top-bar">
				<div class="util">
					<ul>
						<li><strong>고객센터</strong> 1661-0577 (365일 24시간)</li>
						<li><img src="../images/common/top_skype.png" alt="스카이프">itsolution-idc@outlook.kr</li>
					</ul>
				</div>
			</div>
			<div id="gnb">
				<h2 class="hide">주메뉴</h2>
				<ul>
					<li class="m1"><a href="../sub/sub01_01.php">About US</a>
						<div class="submenu">
							<ul>
								<li><a href="../sub/sub01_01.php">인사말</a></li>
								<li><a href="../sub/sub01_02.php">회사소개</a></li>
							</ul>
						</div>
					</li>
					<li class="m2"><a href="../sub/sub02_01.php">Hosting</a>
						<div class="submenu">
							<ul>
								<li><a href="../sub/sub02_01.php">신청절차</a></li>
								<li><a href="../sub/sub02_02.php">제품안내</a></li>
							</ul>
						</div>
					</li>
					<li class="m3"><a href="../sub/sub03_01.php">Service</a>
						<div class="submenu">
							<ul>
								<li><a href="../sub/sub03_01.php">회선서비스</a></li>
								<li><a href="../sub/sub03_02.php">기타서비스</a></li>
							</ul>
						</div>
					</li>
					<li class="m4"><a href="../sub/sub04_01.php">Support</a>
						<div class="submenu">
							<ul>
								<li><a href="../sub/sub04_01.php">공지사항</a></li>
								<li><a href="../sub/sub04_02.php">자료실</a></li>
							</ul>
						</div>
					</li>
				</ul>				
			</div>
			<script type="text/javascript">
				jQuery(document).ready(function(){	
					jQuery('#gnb').gnb({ d1: <?=$mNum?> , d2: <?=$sNum?> });
				});
			</script>			
		</div>
		<div class="bg-submenu"></div>
	</div>
	<!-- header //-->
    
    <hr>
