    $(document).ready(function() {
    	$('#galeria1').cycle({
            fx:        'fade',
			timeout: 10000,
			pager: '.numbers',
			pause: 1
			
        });
		$('#galeria2').cycle({
            fx:        'fade',
			timeout: 10000,
			pager: '.numbers2',
			pause: 1
			
        });
    	$('#fotomeiobanner').cycle({
            		fx: 'fade',
			timeout: 10000,
			pause: 1,
			random:  1
			
        });
	$('#meiofotos').cycle({
            		fx:        'fade',
            		speed:    300, 
    			timeout:  10000,
			next:   '.next',  
			prev:   '.previous',
			pager:  '#nav',
			pause: 1,
			pagerAnchorBuilder: function(idimagen, slide) {
        		// return selector string for existing anchor
			return '#nav li:eq(' + (idimagen) + ') a';
			pause: 1
			}
			
        });
		 $('#ultimasnoticiashome').cycle({
            fx:        'fade',
            speed:    2000,
			pause: 1
        });
		$('document').ready(
		function() {
		$('#consulta').each(function() {
		// configura valores dos labels
		$(this).attr('default', $(this).val());
		// configura evento de foco
		$(this).focus(function() {
		if ($(this).val()==$(this).attr('default')) {
		$(this).val('');
		}
		});
		// configura evento blur
		$(this).blur(function() {
		if ($(this).val() == '') {
		$(this).val($(this).attr('default'));
		}
		});
		});
		}
		);
		$("#nav-abas a").click(function(){
			$("#carrosselblogs").hide();
			var div = $(this).attr('href');
			$(div).show();
			return false;
			});
		$('.efeitofade').each(function () {
			var $span = $('span.hover', this).css('opacity', 0);
	  		$(this).hover(function () {
	    		$span.stop().fadeTo(500, 1);
	 		}, function () {
	   	$span.stop().fadeTo(500, 0);
	  		});
		});
    });

