jQuery.noConflict();
jQuery(document).ready(function(){ 
    jQuery("ul.sf-menu").supersubs({ 
        minWidth:    12,                                // minimum width of sub-menus in em units 
        maxWidth:    27,                                // maximum width of sub-menus in em units 
        extraWidth:  1                                  // extra width can ensure lines don't sometimes turn over 
                                                        // due to slight rounding differences and font-family 
    }).superfish({ 
        delay:       400,                               // delay on mouseout 
        animation:   {opacity:'show',height:'show'},    // fade-in and slide-down animation 
        speed:       'fast',                            // faster animation speed 
        autoArrows:  true,                              // allow generation of arrow mark-up 
        dropShadows: true                               // enable drop shadows 
    }); 
});

/* fix for menu item being selected, or dropdown menu being open, when
 * returning to a page using the browser 'back' button and using recent
 * versions of jQuery
 * (see http://forum.jquery.com/topic/superfish-menus-open-when-click-back-button)
 */
jQuery(window).unload(function() {
    jQuery('ul.sf-menu li.current').hideSuperfishUl();
});

