/* Javascript página principal */

$(document).ready(function(){

    $("#date").mask("99/99/9999");
    $("#fone").mask("(99) 9999-9999");
    $("#celular").mask("(99) 9999-9999");
	//jquery.opacity
		
	try {
	
		$(".telefone").mask("(99) 9999-9999");	
		$(".data_registro").mask("99/99/9999");	
		
		$("#topo .logoBuscaAtalhos .buscaAtalhos #atalhos .btnLogin a").fadeTo("fast", 0.6); 
		$("#topo .logoBuscaAtalhos .buscaAtalhos #atalhos .btnLogin a").hover(function(){
		$(this).fadeTo("fast", 1.0); 
		},function(){
		   $(this).fadeTo("fast", 0.6); 
		});
	
		$("#videos a.btnPlay").fadeTo("fast", 0.2); 
		$("#videos a.btnPlay").hover(function(){
		$(this).fadeTo("fast", 0.7); 
		},function(){
		   $(this).fadeTo("fast", 0.2); 
		});
	
	} catch(e) {
		
	}

});
    // campo newsletter
function ajax_loading(campo) 
{
	$(campo).block({
		message: "<img src=\""+ UrlSite + "/_imgs/ajax-loader.gif\" alt=\"\" />",
		css : {margin: 0, padding: 0, border: 'none', background: 'none', height:"150px"},
		overlayCSS: { background:'#fff',  opacity: '0.9', height:"150px" }
	});
}

function ajax_loading_close(tipo) 
{
	$(tipo).unblock();
	return false;
}
