domMenu_data.set('domMenu_main', new Hash( 1, new Hash( 'contents', 'Home', 'uri', '?op=frontpage', 1, new Hash( 'contents', 'My Profile', 'uri', '?op=profile'), 2, new Hash( 'contents', 'Change Password', 'uri', '?op=passwordreset'), 3, new Hash( 'contents', 'Invite A Friend', 'uri', '?op=invite'), 4, new Hash( 'contents', 'Preferences', 'uri', '?op=preferences'), 5, new Hash( 'contents', 'User Agreement', 'uri', '?op=useragreement'), 6, new Hash( 'contents', 'Log Out', 'uri', '?op=logout') ), 2, new Hash( 'contents', 'Forums', 'uri', '?op=forums', getCategory()) { if ($cnt!=1) { echo ","; } echo "\n $cnt, new Hash('contents', '" . $f->getName () . "', 'uri', '?op=viewforum&forumid=" . $f->getForumId() . "')"; $cnt++; } } $cats = Forum::getAllCategories(); foreach ($cats as $c) { if (!$c) { continue; } echo ",\n $cnt, new Hash('contents', '$c'"; $cnt++; $cnt2=1; foreach ($forums as $f) { if ($f->getCategory() && $f->getCategory() == $c) { echo ","; echo "\n $cnt2, new Hash('contents', '" . $f->getName () . "', 'uri', '?op=viewforum&forumid=" . $f->getForumId() . "')"; $cnt2++; } } echo "\n )"; } echo "\n"; ?> ), 3, new Hash( 'contents', 'Users', 'uri', '?op=userSearch', 1, new Hash( 'contents', 'Search Users', 'uri', '?op=userSearch'), 2, new Hash( 'contents', 'Browse Users', 'uri', '?op=userBrowse') ), 4, new Hash( 'contents', 'Stories', 'uri', '?op=storyBrowse', 1, new Hash( 'contents', 'Search Stories', 'uri', '?op=storySearch'), 2, new Hash( 'contents', 'Browse Stories', 'uri', '?op=storyBrowse'), 3, new Hash( 'contents', 'Post A Story', 'uri', '?op=storyPost') ), 5, new Hash( 'contents', 'Chat', 'uri', '?op=chatlist', 1, new Hash( 'contents', 'List Rooms', 'uri', '?op=chatlist'), 2, new Hash( 'contents', 'Create New Room', 'uri', '?op=chatnew') ), 6, new Hash( 'contents', 'Wiki', 'uri', '?op=wikilist', 1, new Hash( 'contents', 'Topic List', 'uri', '?op=wikilist'), 2, new Hash( 'contents', 'Random Page', 'uri', '?op=randompage') $space) { echo ",\n$cnt, new Hash( 'contents', '" . $space['name'] . "', 'uri', '?op=wikilist#space" . $id . "')"; $cnt++; } ?> ) )); domMenu_settings.set('domMenu_main', new Hash( 'openMouseoverMenuDelay', 100, 'menuBarWidth', '1%', 'menuElementClass', 'topmenu', 'subMenuBarClass', 'menu', 'subMenuElementClass', 'menuentry', 'subMenuMinWidth', '150', 'expandMenuArrowUrl', 'img/arrow.gif', 'closeMouseoverMenuDelay', 300 ));