
function TipAFriendDoneGUIUpdate(guid)
{
   messageUpdate('messageUpdateTip'+guid)
}

function ProfileDoneGUIUpdate(usertype)
{
    messageUpdate('messageUpdateProfile');
    (function(){ $$('.navTabs li')[0].fireEvent('click'); }).delay(2000);
    ProfileJSReload();
}

function messageUpdate(obj)
{
	var messageObj = $(obj);
	var changeTransition = Fx.Transitions.Quint.easeOut;
	var duration = 500;
	
    if($type(messageObj) == 'element') {
    
        messageObj.setStyle('opacity',0.0)
        var messageEffect = new Fx.Elements(messageObj, {duration: duration, transition: changeTransition});
        messageEffect.start({
		    '0': { 
		        'opacity':0.9,
			    'height': 63
			    }	
	    }).chain(function() {
		    this.start.delay(1000, this, {
			    '0': { 
			        'opacity':0.0,
                    'height': 0
				    }	
		    });
        });		
    }	
}
