
/***********************************************
* Slashdot Menu script- By DimX
* Submitted to Dynamic Drive DHTML code library: http://www.dynamicdrive.com
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
**javascript solution for using multiple menus on one page - John Scheuer
**THIS IS BEING USED FOR THE LEFT NAVIGATION FOR THE CATALOG
***********************************************/

var myMenu;
var wO = function(){
myMenu = new SDMenu("left_menu"); // ID of the menu element
// Default values...
myMenu.speed = 3; // Menu sliding speed (1 - 5 recomended)
myMenu.remember = true; // Store menu states (expanded or collapsed) in cookie and restore later
myMenu.oneSmOnly = true; // One expanded submenu at a time
myMenu.markCurrent = true; // Mark current link / page (link.href == location.href)
myMenu.collapseAll(); // Collapse all submenus

myMenu.init();
};

var mySecondMenu;
var wOO = function() {
mySecondMenu = new SDMenu("right_menu"); // ID of the menu element
// Default values...
mySecondMenu.speed = 3; // Menu sliding speed (1 - 5 recomended)
mySecondMenu.remember = true; // Store menu states (expanded or collapsed) in cookie and restore later
mySecondMenu.oneSmOnly = true; // One expanded submenu at a time
mySecondMenu.markCurrent = true; // Mark current link / page (link.href == location.href)
mySecondMenu.collapseAll(); // Collapse all submenus

mySecondMenu.init();
};
if (window.addEventListener){
  window.addEventListener('load', wO, false);
  window.addEventListener('load', wOO, false); 
} else if (window.attachEvent){
  window.attachEvent('onload', wO);
  window.attachEvent('onload', wOO);
}
