http://www.baltimore...,1772981.column var afterLoginLocation = ''; var defaultLocation = $('articlePromoLink').href; var wasClicked = false; if (!!window.carnival) { new memberNav( '#articlePromoLink', function() { //user is logged in if(!!afterLoginLocation && afterLoginLocation != '' && afterLoginLocation != 'default'){ $('articlePromoLink').onclick = function(){ carnival.utils.listener.fire('_carnival_'+afterLoginLocation); wasClicked = true; return false; } } }, function(){ //user is not logged in if(!!afterLoginLocation && afterLoginLocation != ''){ $('articlePromoLink').onclick = function(){ carnival.modal.popit(location.protocol+'//'+carnival.configuration('currentDomain')+'/'+signon.folder+'/site/registration/modal.signon'); wasClicked = true; carnival.user.afterLogin( function(){ if(!!afterLoginLocation && afterLoginLocation != '' && afterLoginLocation != 'default'){ carnival.utils.listener.fire('_carnival_'+afterLoginLocation); } else if(wasClicked){ window.location = defaultLocation; } } ); return false; } }//if } ).writeNav(); }//iftextSize()