jQuery.fn.notifications = function(params) {
	params = $.extend({
		display: 'block',
		position: 'absolute',
		zIndex: '20000',
		padding: '20px',
		backgroundColor: '#456686',
		color: '#243443'        
	}, params);
	
	this.append('<p class="notification">'+params.data+'</p>');
	
	var element = $('.notification');
	
	element.css({
		display: params.display,
		position: params.position,
		zIndex: params.zIndex,
		top: '50%',
		left: '50%',
		padding: params.padding,
		backgroundColor: params.backgroundColor,
        mozBorderRadius: '5px',
        webkitBorderRadius: '5px',
        borderRadius: '5px',
        mozBoxShadow: '0 0 5px black',
        webkitBoxShadow: '0 0 5px black',
        boxShadow: '0 0 5px black'
	}).css({
		marginLeft:-element.outerWidth()/2+'px',
		marginTop:-element.outerHeight()/2+'px'
	}).delay(1600).fadeOut(400, function() { element.remove(); });

	return this;
};
