var toggle = false; var site_root = 'http://www.technology.scee.net/'; menu = new dTree ('menu', site_root+'dtree/img'); menu.config.useCookies = true; menu.config.useSelection = true; menu.config.useIcons = false; menu.config.useLines = true; menu.config.folderLinks = true; menu.config.closeSameLevel = false; function toggler(){ if(toggle==false){ menu.openAll(); toggle = true; }else{ menu.closeAll(); toggle = false; } } /****************************************************************************** * Basic form of dTree's add() function: * (There are other parameters like 'icon', 'iconOpen', 'isBold', and 'open'.) * * add(id, pid, name, url, title, target); * * id Number Unique identity number. (This can also be a unique string) * pid Number Number (can also be a unique string) refering to the parent node. * (The value of the pid for the root node has to be -1.) * name String Text label for the node. * url String Url for the node. * title String Title for the node. * target String Target for the node. * * Watch out for adding menu titles that are too long, as the * site menu div is only about 220px wide. Shorten menu titles if * they seem too long. For example, 'Developer Support Engineer' is * better displayed as 'Dev Support Engineer'. *******************************************************************************/ menu.add('root', -1, 'Home', site_root, 'Home page'); menu.add('development_branch', 'root', 'Development', site_root+'developer', 'Development', null, site_root+'dtree/img/ps_symbols_triangle.gif', site_root+'dtree/img/ps_symbols_triangle.gif'); menu.add('software_node', 'development_branch', 'Software',site_root+'software', 'Software'); menu.add('tm_node', 'development_branch', 'Tools & Middleware', site_root+'middleware', 'Tools & Middleware'); menu.add('peripherals_node', 'development_branch', 'Peripherals', site_root+'peripherals', 'Peripherals'); menu.add('psp_node', 'development_branch', 'PlayStation®Portable', site_root+'psp', 'PlayStation®Portable'); menu.add('ps3_node', 'development_branch', 'PLAYSTATION®3', site_root+'ps3', 'PLAYSTATION®3'); menu.add('umd_node', 'development_branch', 'UMD™ Video', site_root+'umd_video', 'UMD™ Video'); menu.add('blu-ray_node', 'development_branch', 'Blu-ray Disc™', site_root+'blu-ray_video', 'Blu-ray Disc™'); menu.add('publications_branch', 'root', 'Publications', site_root+'publications', 'Publications', null, site_root+'dtree/img/ps_symbols_circle.gif', site_root+'dtree/img/ps_symbols_circle.gif'); menu.add('articles_node', 'publications_branch', 'Articles', site_root+'articles', 'Articles'); menu.add('presentations_node', 'publications_branch', 'Presentations', site_root+'presentations', 'Presentations'); menu.add('ps2linux_branch', 'root', 'PS2 Linux', site_root+'ps2linux', 'PS2 Linux', null, site_root+'dtree/img/ps_symbols_cross.gif', site_root+'dtree/img/ps_symbols_cross.gif'); menu.add('linuxnews_node', 'ps2linux_branch', 'News', site_root+'linuxnews', 'PS2 Linux News'); menu.add('linuxproduct_node', 'ps2linux_branch', 'Product Info', site_root+'linuxproduct', 'PS2 Linux Product Info'); menu.add('linuxsupport_node', 'ps2linux_branch', 'Support', site_root+'linuxsupport', 'PS2 Linux Support'); menu.add('jobs_branch', 'root', 'Jobs', site_root+'jobs', 'Jobs', null,site_root+'dtree/img/ps_symbols_square.gif', site_root+'dtree/img/ps_symbols_square.gif'); menu.add('recruitment_node', 'jobs_branch', 'Vacancies', site_root+'recruitment', 'Recruitment'); menu.add('infrastructure_engineer_node', 'jobs_branch', 'Infrastructure Engineer', site_root+'infrastructure_engineer', 'Infrastructure Engineer Job'); menu.add('education_branch', 'root', 'Education', site_root+'education', 'Education', null, site_root+'dtree/img/ps_symbols_triangle.gif', site_root+'dtree/img/ps_symbols_triangle.gif'); menu.add('psp-edu_node','education_branch', 'PSP Development', site_root+'psp-edu', 'PSP Development'); menu.add('student_projects_node','education_branch', 'Student projects', site_root+'student_projects', 'Student Projects'); menu.add('psp_guidelines_node', 'root', 'PSP™ Guidelines', site_root+'psp_browser_guidelines', 'PSP™ Guidelines'); menu.add('map_node', 'root', 'Find us', site_root+'map', 'Find us'); menu.add('links_node', 'root', 'Links', site_root+'links', 'Links'); document.write(menu);