var Geral = {

	__construct: function() {
		_this = Geral;
		$.ifixpng('pics/pixel.gif');
		$('div.thumbs,img[@src$=.png]').ifixpng(); //png transparent no IEca
		$("input[type='text'],textarea").resetDefaultValue();
		_this.nav(); //trocar cor da borda
	},
	
	nav: function() {
		$("div#nav ul li").hover(
			function() {
				$(this).css("borderBottomColor","#fff");
			},
			function() {
				$(this).css("borderBottomColor","#803b4d");
			}
		);
	}

}


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

	$('.enviar').click(function(){
		$form = $('#formNews');
		$end = $form.attr('action');
		$.post($end,
				$form.serialize(),
				function(data){
					$('#resultNews').html(data);
				})
	})
	
	//Animação home
	$('#animacao1 .anima1').cycle({ 
	fx:      'fade',
    delay:   -2000,
	timeout: 9000,
	pager: '.bt-animacao',
	cleartypeNoBg: true
	
	});
	
	$('#animacao .anima').cycle({ 
	fx:'scrollHorz',
	timeout: 4000,
	next: '#seta-direita',
	prev: '#seta-esquerda',
	cleartypeNoBg: true	
	});	

	
	$('#animacao .anima').cycle({ 
	fx:      'fade',
    delay:   -2000,
	timeout: 5000,
	pager: '.bt-animacao',
	cleartypeNoBg: true
	
	});
	
});


	
	

