var Geral = {

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

}

$(document).ready(function(){
	Geral.__construct();
	
	
	$('.j-img').cycle({ 
	fx:      'fade',
	timeout: 9000 ,
    delay:   -2000,
	pager: '#bt-animacao'	
	});
	
	$('.j-img2').cycle({ 
	fx:      'fade',
	timeout: 22000 ,
    delay:   -2000,
	pager: '#bt-animacao'	
	});
	
	$('.j-img3').cycle({ 
	fx:      'fade', 
	cleartypeNoBg: true,
	timeout: 3000 ,
    delay: -3000 ,
	next: '.arrow_Rt',
	prev: '.arrow_Lt'
	});
	
	
	$('.anima-empree').cycle({ 
	fx:      'fade', 
	cleartypeNoBg: true,
	timeout: 6000 ,
    delay: -3000 ,
	next: '.arrow_Rt',
	prev: '.arrow_Lt'
	});
	

	$('.anima-empree02').cycle({ 
	fx:      'fade', 
	cleartypeNoBg: true,
	timeout: 6000 ,
    delay: -3000 ,
	next: '.arrow_Rt02',
	prev: '.arrow_Lt02'
	});
	
	
	$('.anima-empree03').cycle({ 
	fx:      'fade', 
	cleartypeNoBg: true,
	timeout: 6000 ,
    delay: -3000 ,
	next: '.arrow_Rt03',
	prev: '.arrow_Lt03'
	});

	$('#enviar').click(function(){
		$form = $('#form-contato');
		end = $form.attr('action');
		//alert(end);
		
		$.post(end,
			   $form.serialize(),
			   function(data){
				   		$('#osx-modal-data p').html(data);
				   })
	})
	
	$('#bt-ok').click(function(){
		$form = $('#form-contato');
		$end = $form.attr('action');
		$email = $('.input-informativo').val();
		$('#xopcao').attr('value','add');
			
		$.post($end,
				$form.serialize(),
				function(data){
					$('#resultNews').html(data);
				})
	})	

});


