// MEMBER CENTER

document.write('<div class="dashboardbox_membercenter">');
document.write('<div class="dashboard">&raquo;&nbsp;MEMBER CENTER</div>');
document.write('<div style="padding:5px;width:inherit">');

// Process our cookie for the dashboard
var insiteCookie = "tacoma_user_auth";
var myCookie = "tacoma_dat";
var cookieString = readCookie(myCookie);
var myKey, myVal = "";
var userName = 'Guest';

if (cookieString) {
	myKey = "first_name"
	myVal = parseCookie(cookieString, myKey);
	if (myVal) {  
		userName = myVal;
	}
}

if (GetCookie(insiteCookie) && !GetCookie(insiteCookie).match("threshold")) {
	document.write('<div class="uinfo2"><b>Welcome, ' + userName + '</b></div>');
	document.write('<div style="width:inherit" class="uinfo">&#8226;&nbsp;<a href="http://www.thenewstribune.com/reg-bin/tint.cgi?mode=edit">Our Newsletters</a><br />');
	document.write('&#8226;&nbsp;<a href="http://www.thenewstribune.com/reg-bin/tint.cgi?mode=edit">Edit your account</a><br />');
	document.write('&#8226;&nbsp;<a href="http://www.thenewstribune.com/reg-bin/tint.cgi?mode=change_password">Change password</a><br />');
	document.write('&#8226;&nbsp;<a href="http://www.thenewstribune.com/reg-bin/tint.cgi?mode=logout">Log out </a><br />');
	document.write('&#8226;&nbsp;<a href="https://secure.thenewstribune.com/circulation/subscribe/">Subscribe to The News Tribune</a><br /><br />');
	document.write('</div>');
} else {
	document.write('<div class="uinfo2">&nbsp;<b>Welcome, Guest</b></div>');
	document.write('<div style="width:inherit"><table border="0" cellspacing="4" cellpadding="0">');
	document.write('<form name="LoginForm" action="http://www.thenewstribune.com/reg-bin/int.cgi" method="post">');
	document.write('<input type="hidden" name="mode" value="login_done" /><input type="hidden" name="rurl" value="" /><input type="hidden" name="error_url" value="/static/login/" />');
	document.write('<tr><td width="40%" align="left" valign="top"><span class="uinfo">Member ID</span></td><td width="60%" align="left" valign="top"><div align="left"><input type="text" name="user_name" value="" size="12" style="font: 10px arial,helvetica"></div></td></tr>');
	document.write('<tr> <td width="40%" align="left" valign="top"><span class="uinfo">Password</span></td><td width="60%" align="left" valign="top"><div align="left"><input type="password" name="password" value="" size="12" style="font: 10px arial,helvetica"></div></td></tr>');
	document.write('<tr><td width="40%" align="left" valign="top"><span class="dashboard_updated">Remember me:</span></td><td width="60%" align="left" valign="top"><div align="left"><input type=checkbox checked value="1" name="remember" /><input type="submit" name="Submit" value="Go" style="font: 10px arial,helvetica" /></div></td></tr>');
		document.write('<tr><td colspan="2" align="center" valign="top" class="uinfo"><a href="http://dwb.thenewstribune.com/user_registration/why">FAQ</a> ');
		document.write('&#8226; <a href="http://www.thenewstribune.com/reg-bin/int.cgi?mode=request_password">Password reminder </a><div style="padding-top:6px"><span class="dashboard_updated">NOT A MEMBER? <a href="http://www.thenewstribune.com/reg-bin/int.cgi?mode=register">Sign up!</a></span></div><div style="padding-top:6px"><span class="dashboard_updated"><a href="https://secure.thenewstribune.com/circulation/subscribe/">Subscribe to<br />The News Tribune</a></span><br /></div></td></tr>');
		document.write('</form></table></div>');
 } 

document.write('</div></div>');

// end MEMBER CENTER