/*
 * menuExpandable3.js - implements an expandable menu based on a HTML list
 * Author: Dave Lindquist (http://www.gazingus.org)
 */

function initMenu() {
            initializeMenu("foodMenu", "foodActuator");
        
var currentMenu = null;

if (!document.getElementById)
    document.getElementById = function() { return null; }
}
function initializeMenu(menuId, actuatorId) {
    var menu = document.getElementById(menuId);
    var actuator = document.getElementById(actuatorId);

    if (menu == null || actuator == null) return;

    //if (window.opera) return; // I'm too tired

    actuator.parentNode.style.backgroundImage = "url(/img/plus.gif)";
    actuator.onclick = function() {
        var display = menu.style.display;
        this.parentNode.style.backgroundImage =
            (display == "block") ? "url(/img/plus.gif)" : "url(/img/minus.gif)";
        menu.style.display = (display == "block") ? "none" : "block";

        return false;
    }
}

function rbreadCrumbs(base,delStr,defp,cStyle,tStyle,dStyle,nl) {// by Paul Davis - http://www.kaosweaver.com
  loc=window.location.toString();subs=loc.substr(loc.indexOf(base)+base.length+1).split("/");
   if (nl==1) document.write("<br>")
  document.write('<span class="'+tStyle+'">'+document.title+'</span>  '+'<span class="'+dStyle+'">'+delStr+'</span> ');
  for (i=(subs.length-2);i>-0;i--) { subs[i]=makeCaps(unescape(subs[i]));
  document.write('<a href="'+getLoc(subs.length-i-2)+defp+'" class="'+cStyle+'">'+subs[i]+'</a>  '+'<span class="'+dStyle+'">'+delStr+'</span> ');}
  document.write('<a href="'+getLoc(subs.length-1)+defp+'" class="'+cStyle+'">Home</a>  ');
}
function makeCaps(a) {
  g=a.split(' ');for (l=0;l<g.length;l++) g[l]=g[l].toUpperCase().slice(0,1)+g[l].slice(1);
  return g.join(" ");
}
function getLoc(c) {
  var d="";if (c>0) for (k=0;k<c;k++) d=d+"../"; return d;
}