

var manageNotifications = function() {

	$('#notifications .close').click(function(){
		$.unblockUI();
	}); 	
		if (typeof error_notify != 'undefined' && error_notify.title) {
		$('#notifications #title').html(error_notify['title']);
		$('#notifications #message').html(error_notify['message']);
	
		$.blockUI({
			message: $('#notifications'),
			css: {
				margin: 0,
				padding: 0,
				top: '25%',
				width: '398px',
				height: '284px',
				border: '3px solid #4FBF17',
				 textAlign:      'center'
			},
			overlayCSS:  { 
				backgroundColor: '#000', 
				opacity: 0.2,
			
			},
		});		
	}
}


var wait = function() {

	$('#notifications .close').click(function(){
		$.unblockUI();
	}); 	
		if (typeof error_notify != 'undefined' && error_notify.title) {
		$('#notifications #title').html(error_notify['title']);
		$('#notifications #message').html(error_notify['message']);
	
		$.blockUI({
			message: $('#notifications'),
			css: {
				margin: 0,
				padding: 0,
				top: '35%',
				width: '398px',
				height: '284px',
				color:          '#0b264b',
        		border:         '0px solid #aaa',
        		backgroundColor:'transparent',
       			cursor:         'wait',
       			textAlign:      'center'
			},
			overlayCSS:  { 
				backgroundColor: '#092241', 
				opacity: 1,
				top: '156px',
				height:'100%'
			},
		});		
	}
}