function getBomulCookie( name )									// ÄíÅ° °¡Á®¿À±â
{
        var nameOfCookie = name + "=";
        var x = 0;
        while ( x <= document.cookie.length )
        {
                var y = (x+nameOfCookie.length);
                if ( document.cookie.substring( x, y ) == nameOfCookie ) {
                        if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
                                endOfCookie = document.cookie.length;
                        return unescape( document.cookie.substring( y, endOfCookie ) );
                }
                x = document.cookie.indexOf( " ", x ) + 1;
                if ( x == 0 )
                        break;
        }
        return "";
}

//getBomulCookie("BOMULWEBID"))
var protocolDomain = (("https:" == document.location.protocol) ? "https://www.bomul.com" : "http://www.bomul.com");
strBomulGnb = '';
strBomulGnb = strBomulGnb + '		<div style="width:100%; height:85px; margin:0px; font-size:11px; color:#737780; background:url(\''+protocolDomain+'/images/header/bg_gnb.gif\');">';
//strBomulGnb = strBomulGnb + '		<div style="width:100%; height:85px; margin:0px; font-size:11px; color:#737780; background:url(\''+protocolDomain+'/images/header/header_bg_0815.gif\');">';

/*
if(protocolDomain+'/' == document.location || protocolDomain+'/index.html' == document.location || protocolDomain+'/index_test.html' == document.location){
strBomulGnb = strBomulGnb + '		<div style="width:960px; height:85px; margin:0px auto; background:url(\''+protocolDomain+'/images/header/header_0105.gif\');">';
}
*/

/* gnb_top_menu */
strBomulGnb = strBomulGnb + '			<div style="width:960px; height:15px; margin:0px auto; padding-top:10px; font-size:11px; text-align:right;">';
if(!getBomulCookie("BOMULWEBID")){
strBomulGnb = strBomulGnb + '				<a href="'+protocolDomain+'/member/login_form.html?return_url=' + encodeURIComponent(document.location) + '" target="_top">·Î±×ÀÎ</a>';
}
if(getBomulCookie("BOMULWEBID")){
strBomulGnb = strBomulGnb + '				<a href="'+protocolDomain+'/member/logout.html" target="_top">·Î±×¾Æ¿ô</a>';
}
if(!getBomulCookie("BOMULWEBID")){
strBomulGnb = strBomulGnb + '				&nbsp;<a href="'+protocolDomain+'/member/member_join1.html" target="_top">È¸¿ø°¡ÀÔ</a>';
}
strBomulGnb = strBomulGnb + '				&nbsp;<a href="'+protocolDomain+'/mypage/" target="_top">¸¶ÀÌÆäÀÌÁö</a>';
strBomulGnb = strBomulGnb + '				&nbsp;<a href="'+protocolDomain+'/center/" target="_top">°í°´¼¾ÅÍ</a>';
strBomulGnb = strBomulGnb + '			</div>';
/* // gnb_top_menu */
/* gnb_bottom_menu */
strBomulGnb = strBomulGnb + '			<div style="width:960px; height:34px; margin:0px auto; padding-top:12px; text-valign:bottom;">';

/* ÀÚµ¿¿Ï¼º ½ºÅ©¸³Æ® */
//strBomulGnb = strBomulGnb + '			<script type="text/javascript" src="'+protocolDomain+'/item/search_text/atc2.js"></script>';
/* ÀÚµ¿¿Ï¼º ½ºÅ©¸³Æ® ³¡ */

strBomulGnb = strBomulGnb + '				<form name=searchForm target="_top" onsubmit="return searchKey(false);">';
if(protocolDomain+'/' == document.location || protocolDomain+'/index.html' == document.location || protocolDomain+'/index_test.html' == document.location){	// ¸ÞÀÎ Çì´õ

strBomulGnb = strBomulGnb + '				<div style="float:left; width:456px; height:34px; margin-left:209px; display:inline;">';
strBomulGnb = strBomulGnb + '					<div class="gnb_logo" style=float:left; width:145px; height:34px;">';
strBomulGnb = strBomulGnb + '						<a href="/" target="_top"><img src="'+protocolDomain+'/images/header/img_logo.png" border="0" width="145" height="34" alt="bomul" class="png24"></a>';
strBomulGnb = strBomulGnb + '					</div>';
strBomulGnb = strBomulGnb + '					<div style="float:right; width:304px; height:33px; margin-top:1px; display:inline;">';
strBomulGnb = strBomulGnb + '						<table width="304" height="33" border="0" cellspacing="0" cellpadding="0" style="background:url(\''+protocolDomain+'/images/header/search_bg.gif\');">';
strBomulGnb = strBomulGnb + '							<tbody>';
strBomulGnb = strBomulGnb + '								<tr>';
strBomulGnb = strBomulGnb + '									<td width="266"><input type="text" name="keyword_str" id="keyword_str" class="search_text" style="width:250px; height:15px; margin:3px 8px; border:0px; font-weight:bold;" tabindex="1"></td>';
strBomulGnb = strBomulGnb + '									<td width="38"><a href="javascript:searchKey(true);"><img src="'+protocolDomain+'/images/header/search_btn.gif" border="0" width="36" height="31" alt="µ¸º¸±â" class="search_btn" style="margin:1px;"></a></td>';
strBomulGnb = strBomulGnb + '								</tr>';
strBomulGnb = strBomulGnb + '							</tbody>';
strBomulGnb = strBomulGnb + '						</table>';

/* ÀÚµ¿¿Ï¼º */
/*
strBomulGnb = strBomulGnb + '						<div id="atc" style="position:absolute; width:266; z-index:99999; OVERFLOW: hidden; text-overflow:ellipsis; height:400;">';
strBomulGnb = strBomulGnb + '							<table width="266">';
strBomulGnb = strBomulGnb + '								<tr><td valign="top"><iframe id="atcFrame" name="hFrame" src="'+protocolDomain+'/item/search_text/sj2.html?pp=M" style="display:none" frameborder="0" scrolling="no" width="266px"></iframe></td></tr>';
strBomulGnb = strBomulGnb + '							</table>';
strBomulGnb = strBomulGnb + '						</div>';
strBomulGnb = strBomulGnb + '						<script type="text/javascript">document.getElementById("keyword_str").setAttribute("autocomplete","off");</script>';
*/
/* ÀÚµ¿¿Ï¼º */

strBomulGnb = strBomulGnb + '					</div>';

strBomulGnb = strBomulGnb + '				</div>';

}else{															// ¼­ºê Çì´õ

strBomulGnb = strBomulGnb + '				<div style="float:left; width:446px; height:34px; display:inline;">';
strBomulGnb = strBomulGnb + '					<div style="float:left; width:145px; height:34px;">';
strBomulGnb = strBomulGnb + '						<a href="/" target="_top"><img src="'+protocolDomain+'/images/header/img_logo.png" border="0" width="145" height="34" alt="bomul" class="png24"></a>';
strBomulGnb = strBomulGnb + '					</div>';
strBomulGnb = strBomulGnb + '					<div style="float:right; width:294px; height:28px; margin:3px 0px; display:inline;">';
strBomulGnb = strBomulGnb + '						<table width="294" height="28" border="0" cellspacing="0" cellpadding="0" style="background:url(\''+protocolDomain+'/images/header/search_bg_sub.gif\');">';
strBomulGnb = strBomulGnb + '							<tbody>';
strBomulGnb = strBomulGnb + '								<tr>';
strBomulGnb = strBomulGnb + '									<td width="266"><input type="text" name="keyword_str" id="keyword_str" class="search_text_sub" style="width:250px; height:15px; margin:3px 8px; border:0px; font-weight:bold;" tabindex="1"></td>';
strBomulGnb = strBomulGnb + '									<td width="28"><a href="javascript:searchKey(true);"><img src="'+protocolDomain+'/images/header/search_btn_sub.gif" border="0" width="26" height="26" alt="µ¸º¸±â" class="search_btn_sub" style="margin:1px;"></a></td>';
strBomulGnb = strBomulGnb + '								</tr>';
strBomulGnb = strBomulGnb + '							</tbody>';
strBomulGnb = strBomulGnb + '						</table>';

/* ÀÚµ¿¿Ï¼º */
/*
strBomulGnb = strBomulGnb + '		              <div id="atc" style="position:absolute; width:266; z-index:99999; OVERFLOW: hidden; text-overflow:ellipsis; height:400;">';
strBomulGnb = strBomulGnb + '			          <table width="266">';
strBomulGnb = strBomulGnb + '				          <tr><td valign="top"><iframe id="atcFrame" name="hFrame" src="'+protocolDomain+'/item/search_text/sj2.html?pp=M" style="display:none" frameborder="0" scrolling="no" width="266px"></iframe></td></tr>';
strBomulGnb = strBomulGnb + '			          </table>';
strBomulGnb = strBomulGnb + '			          </div>';
strBomulGnb = strBomulGnb + '			          <script type="text/javascript">document.getElementById("keyword_str").setAttribute("autocomplete","off");</script>';
*/
/* ÀÚµ¿¿Ï¼º */

strBomulGnb = strBomulGnb + '					</div>';
strBomulGnb = strBomulGnb + '				</div>';
}
strBomulGnb = strBomulGnb + '				</form>';


strBomulGnb = strBomulGnb + '				<div style="float:right; width:160px; height:33px; margin-top:1px; display:inline;">';
strBomulGnb = strBomulGnb + '					<a href="'+protocolDomain+'/mypage/pds/upload_pds.html" target="_top"><img src="'+protocolDomain+'/images/header/ban_pds_upload.gif" border="0" width="160" height="33" alt="ÀÚ·á¿Ã¸®±â"></a>';
strBomulGnb = strBomulGnb + '				</div>';

strBomulGnb = strBomulGnb + '			</div>';
/* // gnb_bottom_menu */

/*
if(protocolDomain+'/' == document.location || protocolDomain+'/index.html' == document.location || protocolDomain+'/index_test.html' == document.location){
strBomulGnb = strBomulGnb + '		</div>';
}
*/

strBomulGnb = strBomulGnb + '		</div>';
document.write(strBomulGnb);