$(document).ready(function() {
var $menu = $(".navmenu--list");

        // jQuery-menu-aim: <meaningful part of the example>
        // Hook up events to be fired on menu row activation.
        $menu.menuAim({
            activate: activateSubmenu,
            deactivate: deactivateSubmenu
        });
        // jQuery-menu-aim: </meaningful part of the example>

        // jQuery-menu-aim: the following JS is used to show and hide the submenu
        // contents. Again, this can be done in any number of ways. jQuery-menu-aim
        // doesn't care how you do this, it just fires the activate and deactivate
        // events at the right times so you know when to show and hide your submenus.
        function activateSubmenu(row) {
            var $row = $(row),
            	submenuId = $row.data("submenuId"),
                $submenu = $("#" + submenuId);
                
            // Show the submenu
            $submenu.css({
                "opacity": "1",
                "left": "100%",
    			"pointer-events": "all"
            });
            
             $(".navmenu--list").css({
                "opacity": "1 !important"
                 });
            
            $(".navmenu--list.st-opened").css({
                "opacity": "1"
            });
            
            git // Keep the currently activated row's highlighted look
            $row.find("a").addClass("maintainHover");
        }

        function deactivateSubmenu(row) {
            var $row = $(row),
                submenuId = $row.data("submenuId"),
                $submenu = $("#" + submenuId);

            // Hide the submenu and remove the row's highlighted look
            $submenu.css({
                "opacity": "0",
                "left": "0",
    			"pointer-events": "none"
            });
            
             $(".navmenu--list").css({
                "opacity": "0 !important"
                 });
            
            $(".navmenu--list.st-opened").css({
                "opacity": "0"
            });
            
            $row.find("a").removeClass("maintainHover");
        }

        // Bootstrap's dropdown menus immediately close on document click.
        // Don't let this event close the menu if a submenu is being clicked.
        // This event propagation control doesn't belong in the menu-aim plugin
        // itself because the plugin is agnostic to bootstrap.
        $(".navmenu--list li").click(function(e) {
            e.stopPropagation();
        });

        $(document).click(function() {
            // Simply hide the submenu on any click. Again, this is just a hacked
            // together menu/submenu structure to show the use of jQuery-menu-aim.
            $(".popover").css("display", "none");
            $("a.maintainHover").removeClass("maintainHover");
        });
       
 });

@@ -1,35 +1,4 @@
-$(document).ready(function() %7B%0A
 var 
@@ -2804,13 +2804,8 @@
        %0A
- %7D);%0A

document ready removed