function loading(){
	 $.blockUI({ 
		 message:'<h1>Carregando...</h1>',	  
		 fadeIn: 1, 
            fadeOut: 1, 
			showOverlay: true,
		css: { 
            border: 'none', 
            padding: '15px', 
			width: '290px',
			height:'40px',
			position: 'fixed',
			top:'50%',
			left:'50%',
			'margin-left': '-' + (290 / 2) + 'px',
            'margin-top': '-' + (40 / 2) + 'px',
			'background-image': 'url(/admin/imagens/icones/loading.gif)',
			'background-repeat':'no-repeat',
			'background-position':'15px 20px',
            backgroundColor: '#000', 
            '-webkit-border-radius': '7px', 
            '-moz-border-radius': '7px', 
			'font-family':'arial',
            opacity: .8, 
            color: '#fff'
        } }); 	
}

function msg(msg_,msg_color,url_){
			 $.blockUI({ 
		 message:msg_,	  
		 fadeIn: 230, 
            fadeOut: 230, 
			showOverlay: false,
			timeout:2500,
			centerY: false,
		css: { 
            border: 'none', 
            padding: '15px', 
			'padding-left': '55px',
			width:'auto',
			top:'10px',
			left:'',
			right:'10px',
			'text-align':'right',
			'background-image': 'url(/imagens/check48.png)',
			'background-repeat':'no-repeat',
			'background-position':'5px 5px',
            'background-color': msg_color, 
            '-webkit-border-radius': '10px', 
            '-moz-border-radius': '10px', 
			'font-family':'arial',
			'font-size':'24px',
            opacity: .9, 
            color: '#fff'
        } }); 	 
			 if(url_!=""){
				setTimeout(function() { 
           window.location.href=url_;
        }, 2500);}
 }
