(function($){
	$.fn.notificationBox = function(){

		this.css({
			top		: -this.outerHeight(),
			marginLeft	: -this.outerWidth()/2,
			position	: 'fixed',
			left		: '50%'
		});

		return this;
	}

	$.fn.notificationBoxShow = function(){

		this.stop().animate({top:0},{easing:'swing'});
		this.data('bounceShown',true);
		return this;
	}

	$.fn.notificationBoxHide = function(){

		this.stop().animate({top:-this.outerHeight()});
		this.data('bounceShown',false);
		return this;
	}

	$.fn.notificationBoxToggle = function(){

		if(this.data('bounceShown'))
			this.notificationBoxHide();
		else
			this.notificationBoxShow();

		return this;
	}

})(jQuery);
