function placeChannelNavLogo() {
    var Registration = function(){}
    Registration.REGISTRATION_COOKIE = "wpniuser";
    Registration.PLUCK_COOKIE = "hd";
    Registration.FACEBOOK_UID_COOKIE= "fbuid";
    Registration.FACEBOOK_NAME_COOKIE= "fbuname";
    Registration.prototype.getEditProfileLink = function( txt )
    {
	return '<a href="/ac2/wp-dyn?node=admin/registration/manage&destination=manage&nextstep=gather">'+txt+'</a>';
    }
    Registration.prototype.getSignInLink = function( txt )
    {
	return '<a href="/ac2/wp-dyn?node=admin/registration/register&destination=login&nextstep=gather&application=reg30-globalnav&applicationURL=http://www.washingtonpost.com">'+txt+'</a>';
    }
    Registration.prototype.getSignOutLink = function( txt )
    {
	return '<a href="/ac2/wp-dyn?node=admin/registration/login&destination=logout&nextstep=confirm">'+txt+'</a>';
    }
    Registration.prototype.getRegisterLink = function( txt )
    {
	return '<a href="/ac2/wp-dyn?node=admin/registration/register&destination=register&nextstep=gather&application=reg30-globalnav&applicationURL=http://www.washingtonpost.com">'+txt+'</a>';
    }
    Registration.prototype.isSignedIn = function()
    {
	if( typeof this.signedIn == 'undefined' )
	    {
		this.signedIn = ( document.cookie.indexOf( Registration.REGISTRATION_COOKIE ) != -1 );
	    }
	return this.signedIn;
    }
    Registration.prototype.isFBUser = function()
    {
	if( typeof this.FBUser == 'undefined' )
	    {
		this.FBUser = ( document.cookie.indexOf( Registration.FACEBOOK_UID_COOKIE ) != -1 );
	    }
	return this.FBUser;
    }
    Registration.prototype.getPluckUserName = function()
    {
	if (document.cookie.indexOf(Registration.REGISTRATION_COOKIE) != -1)
	    {
		var start = (document.cookie.indexOf(Registration.REGISTRATION_COOKIE) + Registration.REGISTRATION_COOKIE.length + 1
			     );
		var end = (document.cookie.indexOf(";",start)) == -1 ? document.cookie.length : document.cookie.indexOf(";",start);

		this.pluckusername = document.cookie.substring(start,end);
		if( this.pluckusername.indexOf( "@" ) != -1 ) 
		    this.pluckusername = this.pluckusername.substring(0,this.pluckusername.indexOf("@"));
    
	    }
	return this.pluckusername;

    }
    Registration.prototype.getUserName = function()
    {
	if( typeof this.username == 'undefined' )
	    {
    
		if (document.cookie.indexOf(Registration.REGISTRATION_COOKIE) != -1)
		    {
			var start = (document.cookie.indexOf(Registration.REGISTRATION_COOKIE) + Registration.REGISTRATION_COOKIE.length + 1);
			var end = (document.cookie.indexOf(";",start)) == -1 ? document.cookie.length : document.cookie.indexOf(";",start);
			this.username = document.cookie.substring(start,end);
			if( this.username.indexOf( "@" ) != -1 ) this.username = this.username.substring(0,this.username.indexOf("@"));
		    }
	    }
	if (document.cookie.indexOf(Registration.FACEBOOK_UID_COOKIE) != -1)
	    {
		var start = (document.cookie.indexOf(Registration.FACEBOOK_NAME_COOKIE) + Registration.FACEBOOK_NAME_COOKIE.length + 1);
		var end = (document.cookie.indexOf(";",start)) == -1 ? document.cookie.length : document.cookie.indexOf(";",start);
		this.username = document.cookie.substring(start,end);
	    }

	if (document.cookie.indexOf(Registration.PLUCK_COOKIE) != -1)
	    {
		this.username = '<a href="http://www.washingtonpost.com/wp-srv/community/mypost/index.html?newspaperUserId='+Registration.prototype.getPluckUserName()+'">'+this.username+'</a>'; }

	return this.username;
    }
    Registration.prototype.getRawUserName = function()
    {
      if( typeof this.username == 'undefined' )
      {
        if (document.cookie.indexOf(Registration.REGISTRATION_COOKIE) != -1)
        {
          var start = (document.cookie.indexOf(Registration.REGISTRATION_COOKIE) + Registration.REGISTRATION_COOKIE.length + 1);
          var end = (document.cookie.indexOf(";",start)) == -1 ? document.cookie.length : document.cookie.indexOf(";",start);
          this.username = document.cookie.substring(start,end);
        }
        if (document.cookie.indexOf(Registration.FACEBOOK_UID_COOKIE) != -1)
            {
              var start = (document.cookie.indexOf(Registration.FACEBOOK_NAME_COOKIE) + Registration.FACEBOOK_NAME_COOKIE.length + 1);
              var end = (document.cookie.indexOf(";",start)) == -1 ? document.cookie.length : document.cookie.indexOf(";",start);
              this.username = document.cookie.substring(start,end);
         }
      }
        return this.username
    }

// ******************************


var reg = new Registration();

parseUrl = "http://www.washingtonpost.com";

ourUrl = document.location.href;

if( ourUrl.indexOf("blog.washingtonpost.com") != -1) parseUrl = "http://www.washingtonpost.com";



document.write('<link href="http://www.washingtonpost.com/wp-srv/ssi/globalnav/css/wp_global_nav.css" rel="stylesheet" media="all"/>');  
document.write('<div id="registrationLinks"><div id="signedIn" style="width:450px;padding:0 0 5px 0;position:relative;top:0px;left:15px;"><div class="greeting" style="color: #333333;float:left;padding-top:5px;">');
if (reg.isFBUser())
{
      document.writeln('<img src="http://media3.washingtonpost.com/wp-srv/global/images/icons/icon-facebook-16x16.png" >');
}
document.write('Hello '+ reg.getUserName() +' |&nbsp;</div> <div class="link" style="float:left;padding-top:5px;"> <a href="'+parseUrl+'/ac2/wp-dyn?node=admin/registration/manage&destination=manage&nextstep=gather">Change Preferences</a> | <a href="'+parseUrl+'/ac2/wp-dyn?node=admin/registration/login&destination=logout&nextstep=confirm">Sign Out</a> </div> </div> <div id="signedOut" style="width:250px;padding:0 0 5px 0;position:relative;top:0px;left:15px;"> <div style="float:left;"></div> <div class="signIn"> <b><a href="'+parseUrl+'/ac2/wp-dyn?node=admin/registration/register&destination=login&nextstep=gather&application=reg30-globalnav&applicationURL=http://www.washingtonpost.com">Sign In</a></b> | <a href="'+parseUrl+'/ac2/wp-dyn?node=admin/registration/register&destination=register&nextstep=gather&application=reg30-globalnav&applicationURL=http://www.washingtonpost.com">Register Now</a> </div> </div></div><div style="clear:both;"></div> <div id="wp_header_top" style="border-bottom:1px solid #bbcedd;"><div class="wp_logo" style="top:10px;padding-left:15px;"><a href="http://www.washingtonpost.com/?nav=globaltop"><img src="http://www.washingtonpost.com/wp-srv/images/homepage/logos/twp_logo_300.gif" width="300" height="47" border="0" alt="washingtonpost.com" /></a></div><div class="wp_print_subscribe" style="left:350px;text-align:left;width:250px;"> <a href="http://www.washingtonpost.com/wp-dyn/content/print/"><strong>TODAY\'S NEWSPAPER</strong></a><br><a href="https://subscription.washpost.com/subscriberservices/subscriber.portal?state=welcome&oscode=RPWS" title="Subscribe | Home Delivery Customer Service">Subscribe</a> | <a href="http://www.washingtonpost.com/wp-srv/registration/postpoints/">PostPoints</a> </div><div id="adTiff" style="display:none"><table cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right:1px"><img src="http://www.washingtonpost.com/wp-srv/hp/img/ad_vert.gif" border="0" alt="" /></td><td id="tiffTD"><script language="javascript" type="text/javascript" src="http://www.washingtonpost.com/wp-srv/ad/tiffany_manager.js"></script></td></tr></table></div></div>');


if( reg.isSignedIn() )
{
	document.getElementById('signedIn').style.display = 'block';
}
else
{
	document.getElementById('signedOut').style.display = 'block';
}
}

