
//Mascara para inputs
jQuery(function($){
  //Form de Solicitar Informações, Contato 
  $("#telefone").mask("(99) 9999-9999");
  $("#fax").mask("(99) 9999-9999");
  
  //Cadastro de Cliente
  $("#cli_telefone").mask("(99) 9999-9999");
  $("#cli_fax").mask("(99) 9999-9999");
  $("#cli_cep").mask("99999-999");
  
  //Inscrição Online
  $("#ins_dtnascimento").mask("99/99/9999");
  $("#ins_cpf").mask("999.999.999-99");
  $("#ins_rg").mask("99.999.999-*");
  $("#ins_telefonecomercial").mask("(99) 9999-9999");
  $("#ins_celular").mask("(99) 9999-9999");
  $("#ins_cnpj").mask("99.999.999/9999-99");
  $("#ins_cepempresa").mask("99999-999");
  $("#ins_cepentrega").mask("99999-999");
  $("#ins_faxempresa").mask("(99) 9999-9999");
  $("#ins_telefoneentrega").mask("(99) 9999-9999");
  $("#ins_telefoneempresa").mask("(99) 9999-9999");
  
  
});


//Lightbox Init
$(function() {
    $('#galeria_fotos a').lightBox();
});

//Init Frame em Lightbox
function window_visa(){
    var GB_ANIMATION = true;
    
      $(document).ready(function(){
          //var t = this.title || $(this).text() || this.href;
          GB_show('Termo de Autorização VISA','termo-cartao-visa.php',325,480);
          return false;
          
        //$("a.greybox").click(function(){
        //  var t = this.title || $(this).text() || this.href;
        //  GB_show(t,this.href,470,600);
        //  return false;
        //});
        
      });
}

//Exibir imagem dos produtos do carrinho
$(document).ready( function() {
	
    $("#img_pagseguro").hide();
    $('#info').mouseover( function(){
		$(this).next('#img_pagseguro').fadeIn('fast');
		
		$(this).mouseout( function(){
			
			$(this).next('#img_pagseguro').fadeOut('fast');
		});
	});
});