// JavaScript Document

 WebFontConfig = {
    google: { families: [ 'Pompiere::latin' ] }
  };
  (function() {
    var wf = document.createElement('script');
    wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
      '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
    wf.type = 'text/javascript';
    wf.async = 'true';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(wf, s);
  })();


	$(document).ready(function() {
		
		
		// código para colocar o label dentro do input - é uma POG!
		 $('input[title]').each(function() {
			  if($(this).val() === '') {
				$(this).val($(this).attr('title')); 
			  }
			  
			  $(this).focus(function() {
				if($(this).val() === $(this).attr('title')) {
				 $(this).val(''); 
				}
			  });
			  
			  $(this).blur(function() {
				if($(this).val() === '') {
				 $(this).val($(this).attr('title'));
				}
			  });
		 });
		 
	
	  try{	
			$('.rnd').corner("4px");
	  }catch(e1){}	
	  
	  try{
			$('.sld').cycle({
				fx : 'fade',
				speed: 1200,
				timeout: 8000,
				pause: 1			
			});
	  }catch(e2){}
	  
	  try{
			$('.campodata').datepicker();

			$('.data_nasc').datepicker({
				changeMonth: true,
				changeYear: true,
				effect: 'blind',
				defaultDate: '-4m -30y',
				yearRange: '1920:2016'
			});	 
		
	  }catch(e3){}
	  try{
	$(".ampliar").fancybox({
		'scrolling'	: 'no',
		'padding'   : 0    });
	
	
	$("a.sbm").fancybox({
		'scrolling'		: 'no',
		'padding'       : 0,
		'titleShow'		: false,
		'onClosed'		: function() {
	    	$("#send_erro").hide();
			}
		});
		
			
	$("a.cmnt").fancybox({
		'scrolling'		: 'no',
		'padding'       : 0,
		'titleShow'		: false,
		'onClosed'		: function() {
	    	$("#send_erro").hide();
			}
		});	
		
	$("a.frm").fancybox({
		'scrolling'		: 'no',
		'padding'       : 0,
		'titleShow'		: false,
		'onClosed'		: function() {
	    	$("#send_erro").hide();
			}
		});	

 }catch(e4){}
  
});  
