
// *************************************************************************************
// Pull Down Menu Navigation Javascript
// Usage: * In the head of your document put this script & the library script you wish to
//          associate with it.
//        * In the body of your document you need a pull down menu (select form object)
//          with the following:
//                  Form Name = PullDownNav
//                  Select Name = MenuIndex
//         * The options in your select do not need values, this script uses a library for that
//           to provide a better level of abstraction & reusability.
//         * You also need to add an onChange event to the Select like this: onChange="PullDownMenu"
//         * The library script contains a single array named "PageLocations" and it looks like this:
//             	var PageLocations = new Array('page1.htm', 'page2.htm', ...);
//         * You need to change the page locations to your own pages and they have to be relative
//           to the current page.
//         
// Notes: * The library can change from page to page (i.e. this script is recyclable). All
//          you need to do is change the library BUT the library array has to always be
//          named "PageLocations"
//        * Currently the script is pretty simple and basic. Your page links (in the PageLocations
//          array) have to be relative to the current page. So this limits the utility of this
//          script pretty much to groups of pages all in the same directory.
//
// Future: * Build in an option to make page locations relative to the site root.
//         * Test to see how this would work with other form objects (lists, radio buttons, etc.)
//
// Version: 0.90
// Date: 15DEC2002
// Author: Eric Zander (eric_zander@yahoo.com)
//
// NOTE: This script is free... please send me an email letting me know you're using it and what you think.
//
// ** Isn't it funny that I use a gazillion lines to explain and document this script
//    which is essentially only two lines? :-)
//
// *************************************************************************************



function PullDownMenu() {
	top.location.href = PageLocations[document.PullDownNav.MenuIndex.selectedIndex];
	}