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');
		
		
		$.post($end,
			   $form.serialize(),
			   function(data){
				   		$('#osx-modal-data p').html(data);
				   })
	})
	
	$('#menudropdown01').hide();
	$('ul li:eq(0), #menudropdown01').hover(function(){
		$('#menudropdown01').show();	
		
	},
	function(){
		$('#menudropdown01').hide();
		
	});
	
	
	$('#menudropdown02').hide();
	$('ul li:eq(3), #menudropdown02').hover(function(){
		$('#menudropdown02').show();	
		
	},
	function(){
		$('#menudropdown02').hide();
		
	});
	
		$('dl#noticia-dropdown dd').hide();
	$('dl#noticia-dropdown dt').css('cursor','pointer');
	$('dl#noticia-dropdown dt').click(function(){
		$(this).next().slideToggle();
		$(this).toggleClass('seta');
		$(this).siblings('dl#servicos dt').removeClass('seta');
		return false;							  
	});
	
	$('.anima-int').cycle({ 
	fx:      'fade',
	timeout: 25000 ,
	delay:   -2000,
	width: 412,
	height: 462,
	pager: '#bt-animacao',
	cleartypeNoBg: true
	
	});
	
		$('.j-img').cycle({ 
	fx:      'fade',
	timeout: 5000 ,
	delay:   0,
	width: 891,
	height: 385,
	pager: '#bt-animacao',
	cleartypeNoBg: true
	
	});



});


