// get cookie value
function getcookie(cookiename) {
	var cookiestring = "" + document.cookie;

	// cookie first
	var index1 = cookiestring.indexOf(cookiename);
	if (index1 == -1 || cookiename == "") {
		return "";
	}

	// cookie end
	var index2 = cookiestring.indexOf(';',index1);
	if (index2 == -1) {
		index2 = cookiestring.length; 
	}

	return cookiestring.substring(index1+cookiename.length+1, index2);
}

if (typeof(tNum) == "undefined") {
	tNum = "";
}
	var islogin = getcookie('zbrushinfo');
	
	var reurl="" + window.location;
	
	var reurl = reurl.replace("http://www.zbrush.co.kr","");
	

	topmenu =" <table border='0' cellspacing='0' cellpadding='0'>";
	topmenu +="<tr>";
	
	if(islogin == "")
	{
	    topmenu +="<td width='42'><a href='../join/Login.aspx?ReturnUrl="+reurl+"' class='top'>LOGIN</a></td>";
	    topmenu +="<td width='35'><a href='../join/Join.aspx' class='top'>&nbsp;JOIN</a></td>";
	}
	else
	{
	    topmenu +="<td width='80'><a href='../join/UserModify.aspx' class='top'>MEMBER INFO</a></td>";
	    topmenu +="<td width='50'><a href='../join/Logout.aspx'; class='top'>LOGOUT</a></td>";
	}
	
	topmenu +="<td width='45'><a href='../sitemap/sitemap.html' class='top'>SITEMAP</a></td>";
	topmenu +="	</td>";
	topmenu +="</tr>";
	topmenu +="</table>";
	
	document.write(topmenu);
