var __login = 0;
if(document.cookie==""){ __thisCookie = ""; }
else{ __thisCookie = document.cookie.split("; "); }

for(i=0; i < __thisCookie.length; i++) {
	if(__thisCookie[i].split("=")[0] == "login"
	&& __thisCookie[i].split("=")[1] == "hangame" 
	&& __thisCookie[i].split("=")[2] != "" )
	{
		__login = 1;
	}
}

if(__login == 0) 
	document.write("<nobr><a href=http://www.naver.co.jp/ target=_top class=headfoot>ネイバー</a>　・　<a href=http://plus.hangame.co.jp/ target=_top class=headfoot>知識plus</a>　<font color=9E9EA4>|</font>　<a href=http://id2.naver.co.jp/id/login.php target=_top class=headfoot>ログイン</a></nobr>");
else 
	document.write("<nobr><a href=http://www.naver.co.jp/ target=_top class=headfoot>ネイバー</a>　・　<a href=http://plus.hangame.co.jp/ target=_top class=headfoot>知識plus</a>　<font color=9E9EA4>|</font>　<a href=http://id2.naver.co.jp/id/logout.php target=_top class=headfoot>ログアウト</a></nobr>");

