//document.domain="goorm.com";

document.write('<table width="1000" height="41" border="0" cellpadding="0" cellspacing="0">');
document.write(' <tr>');
document.write(' <td width="814" background=http://cache.goorm.com/templates/global_v2/images/gnb/gnb_bg_2.gif>');
document.write(' <p style="float:left"><a href="http://www.goorm.com"><img src=http://cache.goorm.com/templates/global_v2/images/gnb/gnb_goorm_logo.gif alt="" width="196" height="41" usemap="#logo" /></a></p>');
document.write(' <p style="float:left; margin-left:10px; padding-top:6px">');
document.write(' <a href="http://bristol.goorm.com"><img src=http://cache.goorm.com/templates/global_v2/images/gnb/gnb_bristol_logo.gif width="76" height="26"></a>');
document.write(' <img src=http://cache.goorm.com/templates/global_v2/images/gnb/gnb_link_bar.gif width="7" height="26" style="margin: 0 8px"/>');
document.write(' <a href="http://krfighter.goorm.com"><img src=http://cache.goorm.com/templates/global_v2/images/gnb/gnb_keroro_logo.gif width="65" height="26"></a><a href="#"></a></p>');
document.write(' <p style="float:right">');
//if (location.host == 'krfighter.goorm.com' || location.host == 'event.goorm.com')
//{
document.write(' <!a href="http://krracing.goorm.com/cbtcenter/"><img src="http://goorm-dev.hscdn.com/gnb/gnb_banner_20080408.jpg" alt="이벤트"  align="top"/></a>');
//}
//else {
//document.write(' <a href="http://bristol.goorm.com/"><img src=http://cache.goorm.com/templates/global_v2/images/gnb/gnb_banner_right.gif alt="이벤트" width="227" height="41"  align="top"/></a>');
//}
document.write('</p>	</td>');
document.write(' <td width="186">');
document.write(' <p style="float:right">');
if (GNB_CheckLogin())
{
document.write(' <div id = "logout_status">');
document.write(' <a href="https://cert.goorm.com/member/logout.gm?backUrl=http://'+encodeURIComponent(location.host)+'/"><img src=http://cache.goorm.com/templates/global_v2/images/gnb/btn_gnbm_logout.gif  alt="로그아웃" width="52" height="18" align="top" style="margin: 2px 0 0 0"/></a>');
document.write(' <a href="https://cert.goorm.com/member/modifyCustMain.gm"><img src=http://cache.goorm.com/templates/global_v2/images/gnb/btn_gnbm_myinfo.gif  alt="정보수정" width="52" height="18" align="top" style="margin: 2px 0 0 0"/></a>');
document.write(' <a href="javascript:setHomePage();"><img src=http://cache.goorm.com/templates/global_v2/images/gnb/btn_gnbm_bookmark.gif alt="즐겨찾기" width="73" height="18" align="top" style="margin: 2px 0 0 0"/></a>');
document.write(' </div>');
}
else 
{
document.write(' <div id = "login_status">');
document.write(' &nbsp;&nbsp;<a href="https://cert.goorm.com/member/loginInput.gm?backUrl=http://'+encodeURIComponent(location.host)+'/index.php"><img src=http://cache.goorm.com/templates/global_v2/images/gnb/btn_gnbm_login.gif alt="로그인" width="44" height="18" align="top" style="margin: 2px 0 0 0"/></a>');
document.write(' <a href="https://cert.goorm.com/member/agreeContract.gm"><img src=http://cache.goorm.com/templates/global_v2/images/gnb/btn_gnbm_reg.gif  alt="회원가입" width="52" height="18" align="top" style="margin: 2px 0 0 0"/></a>');
document.write(' <a href="javascript:setHomePage();"><img src=http://cache.goorm.com/templates/global_v2/images/gnb/btn_gnbm_bookmark.gif alt="즐겨찾기" width="73" height="18" align="top" style="margin: 2px 0 0 0"/></a>');
document.write(' </div>');
}
document.write(' </p>');
document.write(' </td>');
document.write(' </tr>');
document.write('</table>');

function GNB_CheckLogin() {
	var search = 'AUTH_TICKET_KEY=';
	if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(search)
		if (offset != -1) {
			return true
		}
	}
	return false;
}


