
$(function(){page=$('#pagehidden').val();if(page!="home"){$('body, html').animate({scrollTop:$('#main .content').offset().top},1000);}});;function slideShow(){$('.slide img').css({opacity:0.0});$('.slide img:first').css({opacity:1.0}).addClass('show');var qtd=$('.slide img').length;if(qtd>1)
setInterval('gallery()',7000);var qtd=$('.slide img').length;}
function gallery(){var current=($('.slide img.show')?$('.slide img.show'):$('.slide img:first'));var next=((current.next().length)?((current.next().hasClass('caption'))?$('.slide img:first'):current.next()):$('.slide img:first'));next.css({opacity:0.0}).addClass('show').animate({opacity:1.0},500);current.animate({opacity:0.0},1000).removeClass('show');}
$(function(){slideShow();});;
