function checkUserName ()
{
	var cookieuser = " ";
	if (document.cookie.indexOf("fbuid") != -1)
	{
	  document.write('&nbsp;&nbsp;&nbsp;<img style="position: relative; top: 5px;" src="http://media3.washingtonpost.com/wp-srv/global/images/icons/icon-facebook-16x16.png">');
	  document.write('<font face="verdana" size="-2" color="#FFCC33">');
	  if (document.cookie.indexOf("fbuname") != -1)
	  {
	  	var start = (document.cookie.indexOf("fbuname") + 8);
		var end = (document.cookie.indexOf(";",start)) == -1 ? document.cookie.length : document.cookie.indexOf(";",start);
	  	fbuser = document.cookie.substring(start,end);
	  }
	  document.write('&nbsp;<b>Hello '+fbuser+'</b>');
	  document.write('&nbsp;&nbsp;&nbsp;<a href="/ac2/wp-dyn?node=admin/registration/register&destination=manage&nextstep=gather"><font face="verdana" size="-2" color="#FFCC33"><b>Edit Profile</b></font></a>');
	  document.write('&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="/ac2/wp-dyn?node=admin/registration/login&destination=logout&nextstep=confirm"><font face="verdana" size="-2" color="#FFCC33"><b>Sign Out</b></a></font>');
	 
	}
	else if(document.cookie.indexOf("wpniuser") != -1){
	  var start = (document.cookie.indexOf("wpniuser") + 9);
	  var end = (document.cookie.indexOf(";",start)) == -1 ? document.cookie.length : document.cookie.indexOf(";",start);
	  cookieuser = document.cookie.substring(start,end);
	  if(cookieuser.indexOf("@") != -1) cookieuser = cookieuser.substring(0,cookieuser.indexOf("@"));
	  document.write('<font face="verdana" size="-2" color="#FFCC33"><b>');
	  document.write('&nbsp;&nbsp;&nbsp;Hello '+cookieuser+'</b>');
	  document.write('&nbsp;&nbsp;&nbsp;<a href="/ac2/wp-dyn?node=admin/registration/register&destination=manage&nextstep=gather"><font face="verdana" size="-2" color="#FFCC33"><b>Edit Profile</b></font></a>');
	  document.write('&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="/ac2/wp-dyn?node=admin/registration/login&destination=logout&nextstep=confirm"><font face="verdana" size="-2" color="#FFCC33"><b>Sign Out</b></a></font>');
	}
	else
	{
	  document.write('');
	 
	 }
}

function wpLogout(){
	window.location = '/ac2/wp-dyn?node=admin/registration/login&destination=logout&nextstep=confirm';
}