I can get the menus to expand fine, better than i did in the past without any glitching... However, I cannot get it to return to the uncollapsed position with a second click.
Here is my js
/*Expanding Menus for Indexhibit *uses jquery * *Created by Ross Cairns Mar 2008 modified by Benjamin Ashcroft Jan 2009*/
function expandingMenu(num) {
var speed = 100;
var item_title = $("#menu ul").eq(num).children(":first");
var items = $("#menu ul").eq(num).children().filter(function (index) { return index > 0; });
/* hide items if not active */
if (items.is(".active") == false) {
items.hide();
}
/* add click functions + pointer to title */
item_title.css({cursor:"pointer"}).click(
function () {
items.show(speed);
}, function () {
items.hide(speed);
})
}
and here is the Webpage. Thank you for you time and consideration. and for saving my life.