function DisplayAccountCenterLinks() {
	var cookieName = "NMNAME=";
	var cookies = document.cookie.split(';');
	var firstName = "";
	for (var cookieNumber = 0; cookieNumber < cookies.length; cookieNumber++) {
		var cookie = cookies[cookieNumber];
		while (cookie.charAt(0)==' ') { cookie = cookie.substring(1,cookie.length); }
		if (cookie.indexOf(cookieName) == 0) { 
			firstName = cookie.substring(cookieName.length,cookie.length);
		}
	}
	
	var html = "";
	if (firstName) {	
		firstName = firstName.replace(/\+/g," ");
		firstName = firstName.substr(0,20);
		html = "<a href='https://secure.nwsource.com/reg/seattletimes/'>Hi " + firstName + "</a> <span class='hspacing'>|</span> <a href='https://secure.nwsource.com/reg/seattletimes/logout.php'>Log out</a>";
	} else {
		html = "<a href='https://secure.nwsource.com/reg/seattletimes/'>Your account</a> <span class='hspacing'>|</span> <a href='https://secure.nwsource.com/reg/seattletimes/'>Log in</a>";
	}
	document.write(html);
}
