$(document).ready(function() {

   $("ul#nav li:has(ul)").hover(function() { 
            $(this).children("ul").css('display', 'block'); 
            
//            $(this).children("a:first").css("background-color","#fff");
//            $(this).children("a:first").css("color","#183057");
       }, 
       function() { 
            $(this).children("ul").css('display', 'none'); 
//            $(this).children("a:first").css("background-color","#183057");
//            $(this).children("a:first").css("color","#fff");
       }
   );
   

		$("#bookmarks li a").click(function()
			{
				$("#bookmarks .active").removeClass("active");
				$(this).parent().addClass("active");

				var element_index = $("#bookmarks a").index(this);

				$("#bookmarks_content div:visible").hide();
				$("#bookmarks_content div").eq(element_index).show();

				return false;
			});

});



