// Config geral do sistema
function config() { this.base = '/site/'; }
config = new config();

// jQuery
jQuery(document).ready(function() {
	$('.item_conteudo a').click(
		function () {
			$(this).next().next().toggle('normal');
			if($(this).hasClass('item_aberto')) {
				$(this).removeClass('item_aberto').addClass('item_fechado');
			} else {
				$(this).removeClass('item_fechado').addClass('item_aberto');
			}
			return false;
		}
	);
	// 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();
