﻿/*========================================================================= BOTÕES*/
$(document).ready(function() {
  $('.btns').append('<span class="hover"></span>').each(function () {
		var $span = $('> span.hover', this).css('opacity', 0);
		$(this).hover(function () {
			$span.stop().fadeTo(600, 1);
		}, function () {
	$span.stop().fadeTo(600, 0);
		});
	});
});




jQuery.easing['BounceEaseOut'] = function(p, t, b, c, d) {
    if ((t/=d) < (1/2.75)) {
        return c*(7.5625*t*t) + b;
    } else if (t < (2/2.75)) {
        return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
    } else if (t < (2.5/2.75)) {
        return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
    } else {
        return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
    }
};
$(document).ready(function() {
	if ($('#banner')[0] != null) {
		$('#banner_content').cycle({ 
			fx:     'scrollRight', 
			timeout: 5000,
			easing: 'easeInOutBack'
			//pager: '#banner_pager'
		 });
	}
});
