//check to the see if the user is signed in
	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);
          pluckuser = cookieuser;

// show their username and registration links
	  if(cookieuser.indexOf("@") != -1) cookieuser = cookieuser.substring(0,cookieuser.indexOf("@"));
          if (document.cookie.indexOf("fbuid") != -1)
        {
          
          var start = (document.cookie.indexOf("fbuname") + 8);
          var end = (document.cookie.indexOf(";",start)) == -1 ? document.cookie.length : document.cookie.indexOf(";",start);
          cookieuser = document.cookie.substring(start,end);
         }

     
	  if(document.cookie.indexOf("hd") != -1)
          { 
               if (document.cookie.indexOf("fbuid") != -1) 
                {
                  nav_reg_info = ('<span style="color:#333333;">&raquo;<img style="position: relative; top: 5px;" src="http://media3.washingtonpost.com/wp-srv/global/images/icons/icon-facebook-16x16.png" > Hello <A href="http://www.washingtonpost.com/wp-srv/community/mypost/index.html?newspaperUserId='+pluckuser+'">'+cookieuser+'</a>');
                  }
               else
                 {
			nav_reg_info = ('<span style="color:#333333;">&raquo; Hello <A href="http://www.washingtonpost.com/wp-srv/community/mypost/index.html?newspaperUserId='+pluckuser+'">'+cookieuser+'</a>');
		 } 
          }
      else
      {
           if (document.cookie.indexOf("fbuid") != -1)
                {
                  nav_reg_info = ('<span style="color:#333333;">&raquo;<img style="position: relative; top: 5px;" src="http://media3.washingtonpost.com/wp-srv/global/images/icons/icon-facebook-16x16.png"> Hello '+cookieuser); 
                  }
               else
                 {
                        nav_reg_info = ('<span style="color:#333333;">&raquo; Hello '+cookieuser); 
                 } 
       }
	  nav_reg_info += ('&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/ac2/wp-dyn?node=admin/registration/manage&destination=manage&nextstep=gather">Change Preferences</a>');
	  nav_reg_info += ('&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/ac2/wp-dyn?node=admin/registration/login&destination=logout&nextstep=confirm">Sign out</a></span>');
	}
//if they're not signed in, prompt them to sign in
	else
	{
	  nav_reg_info = ('&raquo; <a href="/ac2/wp-dyn?node=admin/registration/register&destination=login&nextstep=gather&application=reg30-globalnav&applicationURL=http://www.washingtonpost.com">Sign In</a>');
	  nav_reg_info += ('&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/ac2/wp-dyn?node=admin/registration/register&destination=register&nextstep=gather&application=reg30-globalnav&applicationURL=http://www.washingtonpost.com">Register Now</a>');
	 }
