$(document).ready(function() {
	$('#menu ul li ul').css('visibility','hidden');
	$('#menu ul li ul').css('position','absolute');
	$("#menu li").hover(function() {
	
		$('a:first',this).addClass("hover");
		$('ul:first',this).css('visibility','visible');
		
	}, function() {
	
		$('a:first',this).removeClass("hover");
		$('ul:first',this).css('visibility','hidden');
		
	});

	$("#ferramentas ul li a").hover(function() {
			$(".tool1 a").removeClass("active");
			$(".tool2 a").removeClass("active");
			$(".tool3 a").removeClass("active");
			$(".tool4 a").removeClass("active");
			$(this).addClass("active");
	}, function() {
			$(this).removeClass("active");
	});		
	
	$('.tool1 a').hover(function(){
	$('.escondivel').hide();
	$('#tool1').show();
	}, function() {
			$('.escondivel').hide();
	});

	$('.tool2 a').hover(function(){
	$('.escondivel').hide();
	$('#tool2').show();
	}, function() {
			$('.escondivel').hide();
	});	
	
	$('.tool3 a').hover(function(){
	$('.escondivel').hide();
	$('#tool3').show();
	}, function() {
			$('.escondivel').hide();
	});	
	
	$('.tool4 a').hover(function(){
	$('.escondivel').hide();
	$('#tool4').show();
	}, function() {
			$('.escondivel').hide();
	});	

	$('.tool5 a').hover(function(){
	$('.escondivel').hide();
	$('#tool5').show();
	}, function() {
			$('.escondivel').hide();
	});	
	
	
	
		$("#quickNav").click(function() {
			$("#box-acesso").fadeIn("slow");
		});
		
		$("#box-acesso, #menu_ri ul").hover(function() {
			/**/
		}, function(){
			$(this).fadeOut("slow");
		});

	// Menu RI
	
		$("#btnSeg").click(function() {
			$("#menu_ri ul").fadeIn("slow");
		});

	// Servicos de RI
	
		$("#services li a").mouseover(function(){
			$("#services p").text(""+ $(this).text() +"");
		});
	
});


