$(document).ready(function(){  

     //$("ul.dropdown").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled (Adds empty span tag after ul.subnav*)  
   
     $("ul.navi li a").mouseover(function() { //When trigger is clicked...  
   
         //Following events are applied to the subnav itself (moving subnav up and down)  
         $(this).parent().find("div.dropdown").slideDown('fast').show(); //Drop down the subnav on click  
   
         $(this).parent().find("div.dropdown").hover(function() {  
         }, function(){  
             $(this).parent().find("div.dropdown").slideUp('fast'); //When the mouse hovers out of the subnav, move it back up  
         });   
     });  
   
 });  
