(function($){
	"use strict";
$('.navbar-collapse a').click(function(){
    $(".navbar-collapse").collapse('hide');
});

// bxSlider
$(document).ready(function(){
  $('.bxslider').bxSlider({
  mode: 'fade',
  pager: true,
auto: true
});
});
// bxSlider
$(document).ready(function(){
  $('.bxslider_feiras').bxSlider({
		 mode: 'fade',
		pager: false,
		 auto: false
			
});
});

$(document).ready(function(){
    $('.bxslider_producao').bxSlider({
  slideMargin: 15,
         minSlides: 1,
  maxSlides: 8,
  slideWidth: 127,
 infiniteLoop: false,
  hideControlOnEnd: true,
         
        pager: false,
    //pagerType: 'short',
                             speed:700,
                            pause: 15000,
                            
    });
});
$(document).ready(function(){
    $('[data-toggle="tooltip"]').tooltip(); 
});

	//scroll to top
		$(window).scroll(function(){
			if ($(this).scrollTop() > 100) {
				$('.scrollup').fadeIn();
				} else {
				$('.scrollup').fadeOut();
			}
		});
		$('.scrollup').click(function(){
			$("html, body").animate({ scrollTop: 0 }, 1000);
				return false;
		});

$(window).scroll(function() {
  if ($(document).scrollTop() > 50) {
    $('nav').addClass('shrink');
  } else {
    $('nav').removeClass('shrink');
  }
});

})(jQuery);
function equalHeight(group) {
   tallest = 0;
   group.each(function() {
      thisHeight = jQuery(this).height();
      if(thisHeight > tallest) {
         tallest = thisHeight;
      }
   });
   group.height(tallest);
}
jQuery(document).ready(function() {
   equalHeight(jQuery(".box-info"));	
});

 jQuery(document).ready(function(){

 

        jQuery(".slidingDiv").hide();

        jQuery(".show_hide").show();

 

    jQuery('.show_hide').click(function(){

    jQuery(".slidingDiv").slideToggle();

    });

 

});
jQuery(document).ready(function(){

 

        jQuery(".slidingDivtwo").hide();

        jQuery(".show_hidetwo").show();

 

    jQuery('.show_hidetwo').click(function(){

    jQuery(".slidingDivtwo").slideToggle();

    });

 

});