/*--------------------------------------------------|
| This script creates the left tree menu for the    |
| Adams State College web site.                     |
|                                                   |
| Created: 16.07.2004  Bob Shinn -- DublinBlue.com  |
|                                                   |
| The tree menu is based upon:                      |
|                                                   |
| dTree 2.05 | www.destroydrop.com/javascript/tree/ |
|---------------------------------------------------|
| Copyright (c) 2002-2003 Geir Landrö               |
|                                                   |
| This script can be used freely as long as all     |
| copyright messages are intact.                    |
|                                                   |
| Updated: 17.04.2003                               |
|--------------------------------------------------*/

d = new dTree('d');

// Configure the tree menu
d.config.folderLinks=true;    // Determines if the folders are links as well
d.config.useIcons=true;       // Determines if the tree is drawn with icons
d.config.useLines=false;       // Determines if the tree is drawn with lines
d.config.useStatusText=true;   // Displays node names in the statusbar instead of the url
d.config.closeSameLevel=true;  // Only one node can be expanded at a time. openAll/closeAll functions won't work
d.config.useCookies=false;      // Determines if the tree uses cookies to remember its state
d.config.useSelection=true;    // Determines if nodes can be selected/hilighted
d.config.divClass='treemenu';  // Chooses the class that will be used to display the tree menu
				
// Function add() -- Adds a node to the tree menu (must be called before the tree is drawn)
// Syntax: add(id, pid, name, url, title, target, icon, iconOpen, open)
// where:
//    id       = Int     -- unique menu identifier
//    pid      = Int     -- id of parent menu item (the value for the root node must 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
//    icon     = String  -- image file to use as the icon (uses the default if not specified)
//    iconOpen = String  -- image file to use as the open icon (uses the default if not specified)
//    open     = Boolean -- determines if the node is open
				
// Create the tree menu nodes
d.add(0,-1,'About Adams State','/about/','Find out about Adams State');
d.add(1,-1,'Academics','/academics/','Academics at Adams State');
d.add(2,-1,'Admissions','/admissions/','Find out how to be admitted');
d.add(3,-1,'Athletics','/athletics/','Athletics at Adams State');
d.add(4,-1,'Student Life','/student_life/','Find out about Student Life at Adams State');
d.add(5,-1,'Supporting ASC','/development/','Find out about how you can help ASC');
d.add(6,-1,'Admin &amp; Resources','/administration/','go to the Adminstration and Resources Section');

if (clearLeftMenu)
	d.clearCookie();

// Write the tree menu to the page
document.write(d);