var Geral = {

	__construct: function() {
		_this = Geral;
		$("input[type='text'],input[type='password'],textarea").resetDefaultValue();
		$("a.lightbox").lightBox();
	}

}

$(document).ready(function(){
	Geral.__construct();

	$('#enviar').click(function(){
		$form = $('#form-contato');
		end = $form.attr('action');
		//alert(end);
		
		$.post(end,
			   $form.serialize(),
			   function(data){
				   		$('#osx-modal-data p').html(data);
				   })
	})

	$('.j-img').cycle({ 
	fx: 'fade',
	delay: 12000,
	pager: '#bt-animacao',
	cleartypeNoBg: true
	});
	
	$('#anima-second').cycle({
	fx: 'fade',
	timeout: 6000 ,
	next: '.proximo',
	prev: '.anterior'
	});
	
	$('.img-ani').cycle({
	fx: 'fade',
	timeout: 6000 ,
	next: '#seta-dir',
	prev: '#seta-esq'
	});
	
	$('#anima-imovel').cycle({ 
    fx:     'scrollHorz',
	next: '#seta-direita',
	prev: '#seta-esquerda',
	cleartypeNoBg: true,
    delay:  000 
	});

	$('.nav-ani-geral').cycle({ 
    fx:     'scrollHorz',
	next: '#arrowRight',
	prev: '#arrowLeft',
	cleartypeNoBg: true,
    delay:  000 
	});

	$('.anima-sidebar02').cycle({ 
	fx:'fade',
	pause: 1,
	timeout: 4000,
	cleartypeNoBg: true	
	});	

});


