$(document).ready(function(){  
     
     $("div.settings-btn").mouseover(function() { //When trigger is hovered...  
  
        //Following events are applied to the subnav itself (moving subnav up and down)  
        $(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click  
        $("div.settings-btn").addClass('settings-btn-selected');
        
        $(this).parent().hover(function() {  
        }, function(){  
            $(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
            $("div.settings-btn").removeClass('settings-btn-selected');
        });  
        //Following events are applied to the trigger (Hover events for the trigger)  
        }); 
     
 
    
  
}); 
