////////////* MENU *////////////////
/* MENU SANTO EXPEDITO */
jQuery(document).ready(function () {
	jQuery(document).ready(function(){
        jQuery(".cont").hide();
        jQuery("img.menu_head").click(function(){
                jQuery(".cont").slideToggle(300);
        });

	});
	jQuery('ul.menu_body li a').mouseover(function () {
		jQuery(this).animate({ fontSize: "14px", paddingLeft: "20px" }, 50 );
    });
	jQuery('ul.menu_body li a').mouseout(function () {
		jQuery(this).animate({ fontSize: "14px", paddingLeft: "10px" }, 50 );
    });
});

/* MENU PARÓQUIA */	
jQuery(document).ready(function(){
	jQuery(".cont2").hide();
	jQuery("img.menu_head2").click(function(){
		jQuery(".cont2").slideToggle(300);
	});
	jQuery('ul.menu_body2 li a').mouseover(function () {
		jQuery(this).animate({ fontSize: "14px", paddingLeft: "20px" }, 50 );
    });
	jQuery('ul.menu_body2 li a').mouseout(function () {
		jQuery(this).animate({ fontSize: "14px", paddingLeft: "10px" }, 50 );
    });
});

/* MENU PASTORAIS */	
jQuery(document).ready(function(){
	jQuery(".cont3").hide();
	jQuery("img.menu_head3").click(function(){
		jQuery(".cont3").slideToggle(300);
	});
	jQuery('ul.menu_body3 li a').mouseover(function () {
		jQuery(this).animate({ fontSize: "14px", paddingLeft: "20px" }, 50 );
    });
	jQuery('ul.menu_body3 li a').mouseout(function () {
		jQuery(this).animate({ fontSize: "14px", paddingLeft: "10px" }, 50 );
    });
});

////////////* SLIDER */////////////
		
function formatText(index, panel) {
	return index + "";
};
    
jQuery(function () {
	jQuery('.anythingSlider').anythingSlider({
                easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
                autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
                delay: 5000,                    // How long between slide transitions in AutoPlay mode
                startStopped: false,            // If autoPlay is on, this can force it to start stopped
                animationTime: 1200,             // How long the slide transition takes
                hashTags: true,                 // Should links change the hashtag in the URL?
                buildNavigation: true,          // If true, builds and list of anchor links to link to each slide
            		pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
            		startText: "Go",                // Start text
    		        stopText: "Stop",               // Stop text
    		        navigationFormatter: formatText // Details at the top of the file on this use (advanced use)
	});
            
	jQuery("#slide-jump").click(function(){
		jQuery('.anythingSlider').anythingSlider(6);
	});        
});
/////////* CARROSEL *///////////
function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
}

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        auto: 5,
        wrap: 'last',
        initCallback: mycarousel_initCallback
    });
});
//////////* CONTATO */////////////
function valida_contato(){
	jQuery("#contato").validate({
		rules:{
			nome:{
				required: true, minlength: 3
			},
			email:{
				required: true, email: true
			},
			subject:{
				required: true
			},
			mensagem:{
				required: true, minlength: 5
			}
		},
		messages:{
			nome:{
				required: "INFORME SEU NOME",
				minlength: "SEU NOME DEVE TER PELOMENOS 3 CARACTERES"
			},
			email:{
				required: "INFORME SEU E-MAIL PARA CONTATO",				
				email: "INFORME UM E-MAIL VÁLIDO"
			},
			subject:{
				required: "INFORME O ASSUNTO DO CONTATO"
			},
			mensagem:{
				required: "ESCREVA SUA MENSAGEM",
				minlength: "A MENSAGEM DEVE TER PELOMENOS 5 CARACTERES"
			}
		}
	});
}
