
<!-- funcao header animation -->
$(document).ready(function() {
	setTimeout("wave1()", 0);
	setTimeout("wave2()", 0);
});

function wave1() {
	$('.img1').fadeTo(Math.floor(Math.random() * 2500)+1500, 1).delay(Math.floor(Math.random() * 5000)+800).fadeTo(1000, 0.1);
	$('.img2').show();
	$('.img3').show();
	$('.img4').show();
	$('.img6').show();
	$('.img7').show();
	$('.img9').show();
	$('.img11').show();
	setTimeout("wave1()", 5000);
}

function wave2() {
	$('.img5').fadeTo(Math.floor(Math.random() * 2000)+2000, 1).delay(Math.floor(Math.random() * 4000)+1200).fadeTo(1000, 0.1);
	$('.img8').fadeTo(Math.floor(Math.random() * 3500)+500, 1).delay(Math.floor(Math.random() * 3000)+1400).fadeTo(1000, 0.1);
	$('.img10').fadeTo(Math.floor(Math.random() * 3000)+1000, 1).delay(Math.floor(Math.random() * 4000)+1200).fadeTo(1000, 0.1);
	$('.img12').fadeTo(Math.floor(Math.random() * 2800)+1200, 1).delay(Math.floor(Math.random() * 5000)+500).fadeTo(1000, 0.1);
	setTimeout("wave2()", 5000);
}





<!-- funcao home img animation -->
function slideSwitch() {
    var $active = $('#slideshow IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');

    var $next =  $active.next().length ? $active.next()
        : $('#slideshow IMG:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    setInterval( "slideSwitch()", 5000 );
});




<!-- funcao cufon -->
//Cufon.replace('.fl', { fontFamily: 'TodaySHOP-XLight' });
//Cufon.replace('.fm', { fontFamily: 'TodaySHOP-Medium' });




<!-- funcao menu effect -->
$(document).ready(function() {
	$('#menuProd').append('<span class="hover"></span>').each(function () {
		var $span = $('> span.hover', this).css('opacity', 0);
		$(this).hover(function () {
			$span.stop().fadeTo(300, 1);
		}, function () {
			$span.stop().fadeTo(300, 0);
		});
	});
});





<!-- funcao abre/fecha div -->
$(document).ready(function(){
	$(".toggle_container").hide(); 
	$("p.trigger").click(function(){
		$(this).toggleClass("active").next().slideToggle(300);
	});
});



