Cufon.replace('.submenu-content h3, .destaque h3, .about h3, .main h2, .navSec h2, .navSec h3, .box-footer h2, .supplier h3, .container h2, .container .navbar h3, ');
jQuery(document).ready(function(){
    
	$('.box-footer.faq ul').cycle({
		timeout	: 8000
	});
     $('.destacable ul').cycle({
		timeout	: 8000,
		next: '#next',
		prev: '#prev'
	});
	
	
	
	$('a[href*=#]').click(function() {
        if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
            var $target = $(this.hash);
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
			if ($target.length) {
				var targetOffset = $target.offset().top;
				$('html,body').animate({scrollTop: targetOffset}, 1000);
			return false;
			}
        }
    });
	$('.menu ul li a').click(function () {
		$(this).addClass('activelink');
	});
	
	$('.main .list li p').hide();
	$('.main .list li h3').click(function() {
		$(this).parent().find('p').slideToggle('slow');
		if( $(this).css('background-position') == '100% 100%') {
			$(this).css('background-position','top right');
		} else {
			$(this).css('background-position','bottom right');
		}

	});
});
