// Config geral do sistema

function config() { this.base = '/'; }

config = new config();



// jQuery

jQuery(document).ready(function() {

	$('.item_conteudo .tit_item').click(

		function (e) {

			e.preventDefault();

			if($(this).hasClass('item_aberto')) {
				$( this ).parents( '.item_conteudo' ).find( 'div' ).slideUp();
				$(this).removeClass('item_aberto').addClass('item_fechado');
			} else {
				$( this ).parents( '.item_conteudo' ).find( 'div' ).slideDown();
				$(this).removeClass('item_fechado').addClass('item_aberto');
			}
		}

	);

	// carrousel

	$('.carrousel').jCarouselLite({

			btnNext: '.video_prox',

			btnPrev: '.video_ant',

			speed   : 1000,

			visible : 1

	});

	$('.carrousel_banner').jCarouselLite({

			btnNext: '.banner_pro',

			btnPrev: '.banner_ant',

			speed   : 2000,

			visible : 1

	});



	$('#simulate_value').numeric(',');

  $('#simulate_value').floatnumber(',',2);

	

});



// jQuery

jQuery(document).ready(function() {

	jQuery('.last').css('border','none');

	jQuery('.last').css('margin-right','0');

	jQuery('.last').css('padding-right','0');

	jQuery('.last').css('background','none');

	jQuery('.nomargin').css('margin','0');

	jQuery('.nomargin-right').css('margin-right','0');

	$('.topo ul li').hover(

		function () {

			$(this).addClass('hover');

			$(this).find('ul').show('fast');

		}, 

		function () {

			$(this).removeClass('hover');

			$(this).find('ul').hide('fast');

		}

	);

});



// ShadowBox

Shadowbox.init();
