var Geral = {

	__construct: function() {
		_this = Geral;
		$("input[type='text'],input[type='password'],textarea").resetDefaultValue();
		$("a.lightbox").lightBox();
	}

}

$(document).ready(function(){
	Geral.__construct();
	

	
	$(".anima-patrocianadores").cycle({
		 fx: 'scrollHorz',
		 delay: 2000,
		 timeout: 5000,
		 prev: '.seta-cima',
		 next: '.seta-baixo'
	});
	
	$(".anima-patrocinio").cycle({
		 fx: 'scrollHorz',
		 delay: 2000,
		 timeout: 8000,
		 prev: '.seta-esquerda',
		 next: '.seta-direita'
	});
	
	$(document).ready(function(){
	Geral.__construct();
	

		// acordeon
	$('dl#navigation dd').hide();
	$('dl#navigation dt').css('cursor','pointer');
	$('dl#navigation dt').click(function(){
			
		$(this).next().slideToggle();
		
		});
	
	// Animação de visualização de fotos
	$("ul.fotos li img").fadeTo('', 0.6);
	$("ul.fotos li img").hover(function(){
		$(this).fadeTo('fast', 1);
	}, 
	function(){
		$(this).fadeTo('slow', 0.6);	
	});
	
	$(".foto img").css('display','none').slideDown();
	$("ul.fotos li a").click(function(){
		var linkfoto = $(this).attr("href");
		$(".foto img").attr('src', linkfoto);
		$(".foto img").fadeIn('slow');
		return false;					 
	});// Fim Animação
	
	
	
		// ANIMAÇÃO PRINCIPAL


	/***$('ul.page li:eq(0) a').css('background', '#000');
	$('ul.page li:eq(0) a').click(function(){
		$('.lista-topbar').stop().fadeTo('', 0.5).scrollTo('#ani-imagens li:eq(0)', 800 ).fadeTo('', 1);
		$('ul.page li a').css('background', 'none');
		$(this).css('background', '#000');
	});
	$('ul.page li:eq(1) a').click(function(){
										   
		$('.lista-topbar').stop().fadeTo('', 0.5).scrollTo( '#ani-imagens li:eq(1)', 800 ).fadeTo('', 1);	
		$('ul.page li a').css('background', 'none');
		$(this).css('background', '#000');
	});
	$('ul.page li:eq(2) a').click(function(){
		$('.lista-topbar').stop().fadeTo('', 0.5).scrollTo( '#ani-imagens li:eq(2)', 800 ).fadeTo('', 1);	
		$('ul.page li a').css('background', 'none');
		$(this).css('background', '#000');
	});
	$('ul.page li:eq(3) a').click(function(){
		$('.lista-topbar').stop().fadeTo('', 0.5).scrollTo( '#ani-imagens li:eq(3)', 800 ).fadeTo('', 1);	
		$('ul.page li a').css('background', 'none');
		$(this).css('background', '#000');
	});***/

	$('.nav-ani-geral').cycle({ 
    fx:     'scrollHorz',
	next: '#arrowRight',
	prev: '#arrowLeft',
	cleartypeNoBg: true,
    delay:  000 
	});
	
	$('.content1').cycle({ 
    fx:     'scrollVert',
	next: '#arrowDown',
	prev: '#arrowUp',
	cleartypeNoBg: true,
    delay:  -9000 
	});
	
	$('#ani-imagens').cycle({ 
    fx:     'fade',
	timeout: 9500,
	pager: '.num'
	});
	

});


	
});


