// Index menu has different CSS so needs a separate array $_WORK_NAV = array ( new MenuItem("portfolio", "/portfolio/", null, "first", "b"), new MenuItem("clients", "/clients.php", null, "last", "c") ); $_INT_NAV = array ( new MenuItem("typography", "/typography.php", null, "first", "d"), new MenuItem("illustration", "/illustration.php", null, "", "e"), new MenuItem("photography", "/photography.php", null, "", "f"), new MenuItem("travel", "/travel/", null, "last", "g") ); $_MAIN_NAV = array ( new MenuItem("background", "/background.php", null, "first", "h"), new MenuItem("contact", "/contact.php", null, "end", "i") ); // Alwyas make sure there's no comma on last link class MenuItem { var $label; var $href; var $childMenu; var $style; var $access; function MenuItem($label, $href, $childMenu = null, $style = "", $accesskey) { $this->label = $label; $this->href = $href; $this->childMenu = $childMenu; $this->style = $style; $this->accesskey = $accesskey; } function getLabel() { return $this->label; } function getHref() { return $this->href; } function getChildMenu() { return $this->childMenu; } function getStyle() { return $this->style; } function getAccess() { return $this->accesskey; } } function treeMenu($array) { $menuItemFormat = '