var toggle = true; var site_root = 'http://www.develop.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'.) * (open defaults to true for all nodes.) * * 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', 'Game Development',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('pshome_node', 'development_branch', 'PlayStation®Home', site_root+'home', 'PlayStation®Home'); 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('guidelines_node', 'publications_branch', 'Content guidelines', site_root+'guidelines', 'Content guidelines'); menu.add('presentations_node', 'publications_branch', 'Presentations', site_root+'presentations', 'Presentations'); 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('industrial_placement_engineer','jobs_branch','Ind Placement Engineer',site_root+'placement_engineer','Industrial Placement Engineer'); 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('map_node', 'root', 'Find us', site_root+'map', 'Find us'); menu.add('links_node', 'root', 'Links', site_root+'links', 'Links'); document.write(menu);