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

}

$(document).ready(function(){
	Geral.__construct();
	
	$('#animacao .anima').cycle({ 
	fx:'scrollHorz',
	timeout: 4000,
	next: '#seta-direita',
	prev: '#seta-esquerda',
	cleartypeNoBg: true	
	});	
	
	$('h2.mostra').addClass('fechado').click(function(){
		$(this).toggleClass('aberto').next().slideToggle();
	});
	
	/**Newsletter**/
	$formNews 	= $('#formNews');
	$opcaoNews 	= $('#xopcao');
	$result 	= $('#result');
	
	$('.bt-remover').click(function(){
		$opcaoNews.attr('value','del');
		$.post($formNews.attr('action'),
				$formNews.serialize(),
				function(data){
					$result.html(data);
				})		
	});
	
	$('.bt-cadastrar').click(function(){
		$opcaoNews.attr('value','add');
		$.post($formNews.attr('action'),
				$formNews.serialize(),
				function(data){
					$result.html(data);
				})		
	});
	/****************/
	
});
