var Geral = {

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

}

$(document).ready(function(){
	Geral.__construct();
	
	$("#anima-topo").cycle({
	fx: 'fade',
	delay: 1000,
	timeout: 3000
	});
	
	$("#animacao-home").cycle({
	fx: 'fade',
	delay: 1000,
	timeout: 3000
	});

	$('#animacao-interna .coluna .anima').cycle({
		fx: 'scrollHorz',
		continuous: true,
		next: '.seta-direita',
		prev: '.seta-esquerda',
		speed:	 30000,
		cleartypeNoBg: true,
		pause: true
	});
		
		$('#pausa').click(function(){
		$('#animacao-interna .coluna .anima').cycle('stop');
		return false;
	});

	//Abrir a imagem pequena dentro quadro médio
	$(".colunao img").css ();
	$(".foto-menor li a").click(function(){
		var linkfoto = $(this).attr("href");
		$(".colunao img").attr('src', linkfoto);
		return false;					 
	});
	

	$('#enviar').click(function(){
		$form = $('#form-contato');
		end = $form.attr('action');
		//alert(end);
		
		$.post(end,
			   $form.serialize(),
			   function(data){
				   		$('#osx-modal-data p').html(data);
				   })
	})

});


