diff --git a/js/nav.js b/js/nav.js index 18d3fa9..2eddc74 100644 --- a/js/nav.js +++ b/js/nav.js @@ -2,13 +2,13 @@ function taskNavLevel(l1,l2,l3,l4) { if(l2) { //we have a secondary click, which implies we also have a primary nav selected //we may or may not have l3 or l4 though, so they are handled separately below - $("#secondarymenu").load(config.SFIABDIRECTORY+"/nav.php?level=1&id="+l1,null,function() { - $("#secondarymenu").show(); + $("#division-menu").load(config.SFIABDIRECTORY+"/nav.php?level=1&id="+l1,null,function() { + $("#division-menu").show(); // $("#tertiarymenu_accordion").accordion("destroy"); - $("#tertiarymenu").load(config.SFIABDIRECTORY+"/nav.php?level=2&id="+l2,null,function() { + $("#topic-menu").load(config.SFIABDIRECTORY+"/nav.php?level=2&id="+l2,null,function() { // $("#tertiarymenu_accordion").accordion({clearStyle: true, collapsible: true, active: false}); //"option", "collapsible", true); - $("#tertiarymenu").show(); + $("#topic-menu").show(); $(".primarynav-selected").removeClass("primarynav-selected"); $("#primary_nav_"+l1).addClass("primarynav-selected"); @@ -30,15 +30,15 @@ function taskNavLevel(l1,l2,l3,l4) { } else { //only the primary link clicked, so show the secondary, and thats it. - $("#secondarymenu").load(config.SFIABDIRECTORY+"/nav.php?level=1&id="+l1,null,function() { + $("#division-menu").load(config.SFIABDIRECTORY+"/nav.php?level=1&id="+l1,null,function() { $(".primarynav-selected").removeClass("primarynav-selected"); $("#primary_nav_"+l1).addClass("primarynav-selected"); //show the secondary - $("#secondarymenu").show(); + $("#division-menu").show(); //and hide the tertiary -// $("#tertiarymenu").hide(); +// $("#topic-menu").hide(); }); }