<?php
$class = array(
	1=>'cc',
	2=>'cc',
	3=>'cc',
	4=>'cc',
	5=>'cc',
	6=>'cc',
	7=>'cc',
	8=>'cc',
	9=>'cc',
	10=>'cc',
);
$class1 = array(
	1=>'dd',
	2=>'dd',
	3=>'dd',
	4=>'dd',
	5=>'dd',
	6=>'dd',
	7=>'dd',
	8=>'dd',
	9=>'dd',
	10=>'dd',
);
$menu[$p2]=$menu1[$p2];
$class[$p2]=$class1[$p2];
?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="<?=$g4['path']?>/style.css">
<style type="text/css">
.cc                  {FONT-SIZE: 8pt; COLOR: #FFFFFF; FONT-FAMILY: ; TEXT-DECORATION: none; line-height: 12pt; font-weight:bold}
.cc:link        {FONT-SIZE: 8pt; COLOR: #FFFFFF; FONT-FAMILY: ; TEXT-DECORATION: none; line-height: 12pt; font-weight:bold}
.cc:visited    {FONT-SIZE: 8pt; COLOR: #FFFFFF; FONT-FAMILY: ; TEXT-DECORATION: none; line-height: 12pt; font-weight:bold}
.cc:hover    {FONT-SIZE: 8pt; COLOR: #FFFFFF; FONT-FAMILY: ; TEXT-DECORATION: none; linae-height: 12pt; font-weight:bold}

.dd                  {FONT-SIZE: 8pt; COLOR: #FF6600; TEXT-DECORATION: none; line-height: 12pt; font-weight:bold}
.dd:link        {FONT-SIZE: 8pt; COLOR: #FF6600; TEXT-DECORATION: none; line-height: 12pt; font-weight:bold}
.dd:visited    {FONT-SIZE: 8pt; COLOR: #FF6600; TEXT-DECORATION: none; line-height: 12pt; font-weight:bold}
.dd:hover    {FONT-SIZE: 8pt; COLOR: #FF6600; TEXT-DECORATION: none; line-height: 12pt; font-weight:bold}
</style>
<!--링크테두리없애기-->
<script language=javascript>  
function bluring(){  
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();}  
document.onfocusin=bluring;  
</script>
<!--링크테두리없애기끝-->
</head>

<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">

<? include "css.php" ?>

			<div align="center">

			<table border="0" width="880" id="table10" cellspacing="0" cellpadding="0">
				<tr>
					<td>
					<table border="0" width="100%" id="table11" cellspacing="0" cellpadding="0">
						<tr>
							<td align="left">

<a href="<?=$g4['path']?>/">

<img border="0" src="<?=$g4['path']?>/NSolution_r1_c2.jpg"></a></td>
							<td align="right">

							<table border="0" id="table18" cellpadding="2">
							<? if (!$member['mb_id']) { ?>
                            <!-- 로그인 이전 -->
								<tr>
									<td><a href="<?=$g4['bbs_path']?>/login.php?url=<?=$urlencode?>">
									<?php echo $lang['a2'];?></a></td>
									<td>
									<img border="0" src="<?=$g4['path']?>/images/m_01.gif"></td>
									<td><a href="<?=$g4['bbs_path']?>/register.php">
									<?php echo $lang['a3'];?></a></td>
									<td>
									<img border="0" src="<?=$g4['path']?>/images/m_01.gif"></td>
									<td>
									<a href="javascript:window.external.AddFavorite('http://127.0.0.1/nboard/index.php',%20'<?php echo $lang['01'];?>')">
									<?php echo $lang['a1'];?></a></td>
									<td>
									<img border="0" src="<?=$g4['path']?>/images/m_01.gif"></td>
									<td>
									<a href="<?=$g4['path']?>/?nhn1=cn">
									<font color="#FF6600">中国语</font></a></td>
									<td>
									<img border="0" src="<?=$g4['path']?>/images/m_01.gif"></td>
									<td>
									<a href="<?=$g4['path']?>/?nhn1=kr">
									<font color="#FF6600">한국어</font></a></td>
									<td>
									<img border="0" src="<?=$g4['path']?>/images/m_01.gif"></td>
									<td>
									<a href="<?=$g4['path']?>/?nhn1=en">
									<font color="#FF6600">English</font></a></td>
								</tr>
							<? } else { ?>
                            <!-- 로그인 이후 -->
							</table>

							<table border="0" id="table12" cellpadding="2">
								<tr>
									<td><a href="<?=$g4['bbs_path']?>/logout.php">
									<?php echo $lang['a4'];?></a></td>
									<td>
									<img border="0" src="<?=$g4['path']?>/images/m_01.gif"></td>
									<td><a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php">
									<?php echo $lang['a5'];?></a></td>
									<td>
									<img border="0" src="<?=$g4['path']?>/images/m_01.gif"></td>
									<td>
									<a href="javascript:window.external.AddFavorite('http://127.0.0.1/nboard/index.php',%20'<?php echo $lang['01'];?>')">
									<?php echo $lang['a1'];?></a></td>
									<td>
									<img border="0" src="<?=$g4['path']?>/images/m_01.gif"></td>
									<td>
									<a href="<?=$g4['path']?>/?nhn1=cn">
									<font color="#FF6600">中国语</font></a></td>
									<td>
									<img border="0" src="<?=$g4['path']?>/images/m_01.gif"></td>
									<td>
									<a href="<?=$g4['path']?>/?nhn1=kr">
									<font color="#FF6600">한국어</font></a></td>
									<td>
									<img border="0" src="<?=$g4['path']?>/images/m_01.gif"></td>
									<td>
									<a href="<?=$g4['path']?>/?nhn1=en">
									<font color="#FF6600">English</font></a></td>
								</tr>
							<? } ?>
							</table>
							</td>
						</tr>
					</table>
					</td>
				</tr>
				<tr>
					<td background="<?=$g4['path']?>/images/NSolution_r2_c2.jpg" height="40">
					<table border="0" width="100%" id="table13" cellspacing="3" cellpadding="3">
						<tr>
							<td align="center"><a href="<?=$g4['path']?>/" class="<?php echo $class[1]; ?>"><?php echo $lang['02'];?></a></td>
							<td align="center"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=B11&wr_id=1" class="<?php echo $class[2]; ?>"><?php echo $lang['a6'];?></a></td>
							<td align="center"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=B12" class="<?php echo $class[4]; ?>"><?php echo $lang['a8'];?></a></td>
							<td align="center"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=B13" class="<?php echo $class[3]; ?>"><?php echo $lang['a7'];?></a></td>
							<td align="center"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=B21" class="<?php echo $class[5]; ?>"><?php echo $lang['a9'];?></a></td>
							<td align="center"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=B22" class="<?php echo $class[7]; ?>"><?php echo $lang['a10'];?></a></td>
							<td align="center"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=B23" class="<?php echo $class[8]; ?>"><?php echo $lang['a11'];?></a></td>
							<td align="center"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=B31&wr_id=1" class="<?php echo $class[6]; ?>"><?php echo $lang['a12'];?></a></td>
						</tr>
					</table>
					</td>
				</tr>
				<tr>
					<td height="3"></td>
				</tr>
				<tr>
					<td bgcolor="#E7E7E7" height="30">
					<table border="0" width="100%" id="table14" cellspacing="0" cellpadding="0">
						<tr>
							<td width="10">
							&nbsp;</td>
							<td>
							<script language="JavaScript"> 
today=new Date();
var hours = today.getHours();
var minutes = today.getMinutes();
var seconds = today.getSeconds();
var timeValue = "" + ((hours >12) ? hours -12 :hours); timeValue += ((minutes < 10) ? ":0" : ":") + minutes+"";
timeValue += (hours >= 12) ? "pm" : "am";
function initArray(){
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i]  }
var d=new initArray("<?php echo $lang['15'];?>","<?php echo $lang['16'];?>","<?php echo $lang['17'];?>","<?php echo $lang['18'];?>","<?php echo $lang['19'];?>","<?php echo $lang['20'];?>","<?php echo $lang['21'];?>"); document.write("",today.getYear(),"<?php echo $lang['14'];?>","",today.getMonth()+1,"<?php echo $lang['13'];?>","",today.getDate(),"<?php echo $lang['12'];?>",d[today.getDay()+1]," ",timeValue);  //-->
</script> 

							</td>
							<td align="right">
			<table border="0" id="table16" cellspacing="1">
			<form name="fsearchbox" method="get" onSubmit="return fsearchbox_submit(this);" style="margin:0px;">
			<input type="hidden" name="sfl" value="wr_subject||wr_content">
            <input type="hidden" name="sop" value="and">
				<tr>
					<td>
										
<script type="text/javascript">
function fsearchbox_submit(f)
{
    if (f.stx.value.length < 2) {
        alert("<?php echo $lang['87'];?>");
        f.stx.select();
        f.stx.focus();
        return false;
    }

    // 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
    var cnt = 0;
    for (var i=0; i<f.stx.value.length; i++) {
        if (f.stx.value.charAt(i) == ' ')
            cnt++;
    }

    if (cnt > 1) {
        alert("<?php echo $lang['88'];?>");
        f.stx.select();
        f.stx.focus();
        return false;
    }

    f.action = "<?=$g4['bbs_path']?>/search.php";
    return true;
}
</script>
					<select size="1" name="D1" class="nhn1">
					<option><?php echo $lang['a13'];?></option>
					</select></td>
					<td>
					<input type="text" name="stx" size="31" class="nhn2"></td>
					<td>
					<input type="submit" value="<?php echo $lang['04'];?>" name="B31" class="btn01"></td>
					<td>
					&nbsp;</td>
				</tr>
			</form>
			</table>
							</td>
						</tr>
					</table>
					</td>
				</tr>
				<tr>
					<td height="10">

</td>
				</tr>
			</table>
			
			</div>
			
</body>

</html>