jQuery(document).ready(function() {
	jQuery('#dicasBusca').submit(function() {
		document.location.href = './dicas/'+ jQuery("[name='dicas']", this).val();
		
		return false;
	});
});jQuery(document).ready(function() {
	jQuery('#dicasBusca').submit(function(e) {
		document.location.href = 'http://'+ CFG_URL + '/dicas/'+ jQuery("[name='dicas']", this).val();
		
		e.stopPropagation();
		e.preventDefault();
		
		return false;
	});
});

jQuery(document).ready(function() {

	//carrregando...
	
	//$(".content-menuLateral ul li:first").addClass("on").show(); //Activate first tab
	//$(".container_dicas div:first").show(); //Show first tab content

	$(".content-menuLateral ul li").mouseover(function(){
		$(this).addClass("over").show();
	})
	
	$(".content-menuLateral ul li").mouseout(function(){
	$(this).removeClass("over").show();
	})
	
	//opção de click
	$(".content-menuLateral ul li").click(function() {
		$(".container_dicas div.dica").hide(); //Hide all content
		$(".content-menuLateral ul li").removeClass("on"); //Remove any "active" class
		$(this).addClass("on"); //Add "active" class to selected tab
		
		var activeTab = $(this).attr("class");//Find the href attribute value to identify the active tab + content
		activeTab = activeTab.split(' ')
		$('.'+activeTab[0]).fadeIn(); //Fade in the active ID content
		return false;
		
		
		
	});
	
	$('#texto p').each(function(i){
		if(i%2!=0&&i){
			$(this).addClass('odd');
		}
	});
	
	//$('#texto p:last').removeClass('odd');
	//$('#texto p:odd').css('padding-bottom', '10px')
	//$('#texto p').addClass('odd');
	
	
	//var getContent = $('.txtDica').val();
	//$('.content-menuLateral ul li.'+getContent).click();
	
	
});

