// *****************************************************************************
// **                                SETTINGS                                 **
// *****************************************************************************

// 'linka' use this if part of the URL is the same in ALL the links
// In this example all the files are in a subfolder called 'pages'
linka='';

// the filename of the page the menu appears in eg 'menu.html'
thisPage='nav.htm';

// Do you want to use images for the category bullets?
// If so then specify the path to your images folder from the menu page
imgPath='images/';

// do you want to use images for the category bullets?
lev1img='no';					// insert yes or no

// give image names and dimensions
lev1OpName='open.gif';			// open image name
lev1OpHeight='10';				// image height
lev1OpWidth='10';				// image width

lev1ClosName='closed.gif';		// closed image name
lev1ClosHeight='10';			// image height
lev1ClosWidth='10';				// image width

// do you want to use images for the sub-category bullets?
lev2img='no';		// insert yes or no

// give image names and dimensions
lev2Name='bullet.gif';			// image name
lev2Height='10';				// image height
lev2Width='16';					// image width

// do you want to use a text character for the sub-category bullets?
lev2Char='no';		// insert yes or no

// set bullet character for level 2 bullets
bullet = '&#155; ';

// base target - the frame that the links are targetting
base = 'mainFrame';

// *****************************************************************************
// **                             END OF SETTINGS                             **
// *****************************************************************************

// pulls 'page' variable out of URL - do not alter
	var x = 0
	page = location.search.substr(1).split("?")
	for (x=0;x<=page.length;x++) {
		eval(page)
		}
page = escape(page);
page = page.slice(7);

// do not alter this bit
function subMenu(name,linkb) {
 this.name = name;
 this.linkb = linkb;
}
document.write('<BASE target="' + base + '">');

// *****************************************************************************
// **                             BUILD MENU DATA                             **
// *****************************************************************************

// Facilities
if (page=='facilities') {
thisMenu = new Array();
thisMenu[0] = new subMenu('LEEG Lab','facilities/leeg.htm');
thisMenu[1] = new subMenu('Genomics Center','facilities/genomics.htm');
}

// Projects
if (page=='projects') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Metapopulation Dynamics','projects/dynamics/index.htm');
thisMenu[1] = new subMenu('Population Genetic Structure','projects/structure/index.htm');
thisMenu[2] = new subMenu('Behavioral Ecology','projects/behavioral/index.htm');
thisMenu[3] = new subMenu('Hybridization Studies','projects/hybridization/index.htm');
thisMenu[4] = new subMenu('Population-level Phylogenetic Analysis','projects/phylogenetic/index.htm');
thisMenu[5] = new subMenu('Speciation','projects/speciation/index.htm');
}

// Molecular Tools
if (page=='mol') {
thisMenu = new Array();

}

// Associated Faculty
if (page=='faculty') {
thisMenu = new Array();

}

// Students
if (page=='students') {
thisMenu = new Array();
thisMenu[0] = new subMenu('Helen Neville Arsenault','students/arsenault/index.htm');
thisMenu[1] = new subMenu('Yair Chaver','students/chaver/index.htm');
thisMenu[2] = new subMenu('Elizabeth Peacock','students/peacock/index.htm');
thisMenu[3] = new subMenu('Hillary Robison','students/robison/index.htm');
thisMenu[4] = new subMenu('Eric Simandle','students/simandle/index.htm');
thisMenu[5] = new subMenu('John C. Tull','students/tull/index.htm');
}

// Bioinformatics
if (page=='bio') {
thisMenu = new Array();
}

// Links
if (page=='links') {
thisMenu = new Array();
thisMenu[0] = new subMenu('BRRC','links/brrcLink.htm');
thisMenu[1] = new subMenu('EECB','links/eecbLink.htm');
}