var Geral = {

	__construct: function() {
		_this = Geral;
		$.ifixpng('pics/pixel.gif');
		$('img[src$=.png]').ifixpng(); //png transparent no IEca
		$("input[type='text'],input[type='password'],textarea").resetDefaultValue();
		$("input[type='text']").addClass("text");
		$("#mainContent > div.top div.bot").append("<div class='clear'></div>");
		$("a.lightbox").lightBox();
	}
}

$(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('fast', 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');
	});***/

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

});

