raw/ace/assets/js/uncompressed/jquery.gritter.js
function(e, unique_id, params, unbind_events){

			var params = params || {},
				fade = (typeof(params.fade) != 'undefined') ? params.fade : true,
				fade_out_speed = params.speed || this.fade_out_speed,
				manual_close = unbind_events;

			this['_before_close_' + unique_id](e, manual_close);
			
			// If this is true, then we are coming from clicking the (X)
			if(unbind_events){
				e.unbind('mouseenter mouseleave');
			}
			
			// Fade it out or remove it
			if(fade){
			
				e.animate({
					opacity: 0
				}, fade_out_speed, function(){
					e.animate({ height: 0 }, 300, function(){
						Gritter._countRemoveWrapper(unique_id, e, manual_close);
					})
				})
				
			}
			else {
				
				this._countRemoveWrapper(unique_id, e);
				
			}
						
		}
function(e, unique_id, params, unbind_events){

			var params = params || {},
				fade = (typeof(params.fade) != 'undefined') ? params.fade : true,
				fade_out_speed = params.speed || this.fade_out_speed,
				manual_close = unbind_events;

			this['_before_close_' + unique_id](e, manual_close);
			
			// If this is true, then we are coming from clicking the (X)
			if(unbind_events){
				e.unbind('mouseenter mouseleave');
			}
			
			// Fade it out or remove it
			if(fade){
			
				e.animate({
					opacity: 0
				}, fade_out_speed, function(){
					e.animate({ height: 0 }, 300, function(){
						Gritter._countRemoveWrapper(unique_id, e, manual_close);
					})
				})
				
			}
			else {
				
				this._countRemoveWrapper(unique_id, e);
				
			}
						
		}
function ( e , unique_id , params , unbind_events ) { var params = params || { } , fade = ( typeof ( params . fade ) != 'undefined' ) ? params . fade : true , fade_out_speed = params . speed || this . fade_out_speed , manual_close = unbind_events ; this [ '_before_close_' + unique_id ] ( e , manual_close ) ; // If this is true, then we are coming from clicking the (X) if ( unbind_events ) { e . unbind ( 'mouseenter mouseleave' ) ; } // Fade it out or remove it if ( fade ) { e . animate ( { opacity : 0 } , fade_out_speed , function ( ) { e . animate ( { height : 0 } , 300 , function ( ) { Gritter . _countRemoveWrapper ( unique_id , e , manual_close ) ; } ) } ) } else { this . _countRemoveWrapper ( unique_id , e ) ; } }
Fade out an element after it's been on the screen for x amount of time
@private
@param {Object} e The jQuery element to get rid of
@param {Integer} unique_id The id of the element to remove
@param {Object} params An optional list of params to set fade speeds etc.
@param {Boolean} unbind_events Unbind the mouseenter/mouseleave events if they click (X)
Fade out an element after it s been on the screen for x amount of time