// *****************************************************************************
// **                                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='menu.html';

// 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                             **
// *****************************************************************************


// Home
if (page=='main') {
thisMenu = new Array();
parent.location.href = 'index.html';
}

// General
if (page=='general') {
thisMenu = new Array();
thisMenu[0] = new subMenu('&nbsp;Population','general/population.html');
thisMenu[1] = new subMenu('&nbsp;Geography','general/geography.html');
thisMenu[2] = new subMenu('&nbsp;Caves','general/cave.html');
thisMenu[3] = new subMenu('&nbsp;Colours & Emblems','general/colours.html');
thisMenu[4] = new subMenu('&nbsp;History','general/history.html');
thisMenu[5] = new subMenu('&nbsp;Politics','general/politics.html');
thisMenu[6] = new subMenu('&nbsp;Fur Trade','general/fur.html');
thisMenu[7] = new subMenu('&nbsp;Mangoes','general/mango.html');
thisMenu[8] = new subMenu('&nbsp;Timeline','general/timeline.html');
thisMenu[9] = new subMenu('&nbsp;Knots','general/knots.html');
thisMenu[10] = new subMenu('&nbsp;WYSKA','general/wyska.html');


}

// Residents
if (page=='residents') {
thisMenu = new Array();
thisMenu[0] = new subMenu('&nbsp;Residents & Staff','residents/index.html');
thisMenu[1] = new subMenu('&nbsp;Headwoman Staff','residents/headwoman.html');
thisMenu[2] = new subMenu('&nbsp;Steward Staff','residents/steward.html');
thisMenu[3] = new subMenu('&nbsp;Residents','residents/residents.html');
thisMenu[4] = new subMenu('&nbsp;Groundcrew','residents/groundcrew.html');
}

// Riders
if (page=='riders') {
thisMenu = new Array();
thisMenu[0] = new subMenu('&nbsp;Duties','riders/index.html');
thisMenu[1] = new subMenu('&nbsp;Behaviour','riders/behaviour.html');
thisMenu[2] = new subMenu('&nbsp;Threadfall & Formations','riders/threadfall.html');
thisMenu[3] = new subMenu('&nbsp;Measurements','riders/measurements.html');
thisMenu[4] = new subMenu('&nbsp;Wingleader Handbook','riders/wingleaderhandbook.pdf');
}

// Wings
if (page=='wings') {
thisMenu = new Array();
thisMenu[0] = new subMenu('&nbsp;Firedance','http://southern.silvertree.org/firedance/');
thisMenu[1] = new subMenu('&nbsp;Sunblaze','sunblaze/index.html');
thisMenu[2] = new subMenu('&nbsp;Starflame','http://imara.iwarp.com/starflame/main.html');
}

// Weyrlings
if (page=='weyrlings') {
thisMenu = new Array();
thisMenu[0] = new subMenu('&nbsp;Current Class','weyrlings/index.html');
thisMenu[1] = new subMenu('&nbsp;Expectations','weyrlings/expectations.html');
thisMenu[2] = new subMenu('&nbsp;Schedule','weyrlings/schedule.html');
thisMenu[3] = new subMenu('&nbsp;The WLMs','weyrlings/wlm.html');
thisMenu[4] = new subMenu('&nbsp;You\'re a Weyrling','weyrlings/you.html');
thisMenu[5] = new subMenu('&nbsp;Dragon Code','weyrlings/dragoncode.html');
thisMenu[6] = new subMenu('&nbsp;RP Ideas','weyrlings/rp.html');
thisMenu[7] = new subMenu('&nbsp;Mentor Program','weyrlings/mentor/index.html');
thisMenu[8] = new subMenu('&nbsp;Riding Straps','weyrlings/straps.html');
thisMenu[9] = new subMenu('&nbsp;Knowing Pern','weyrlings/pern.html');
thisMenu[10] = new subMenu('&nbsp;Wings & Things','weyrlings/wings.html');
thisMenu[11] = new subMenu('&nbsp;Dragon Injuries','weyrlings/fromweyrlingtorider.pdf');
thisMenu[12] = new subMenu('&nbsp;Fighting Threadfall','weyrlings/threadfall.html');
thisMenu[13] = new subMenu('&nbsp;Mating Flights','weyrlings/matingflights.html');
thisMenu[14] = new subMenu('&nbsp;Graduation','weyrlings/graduation.html');
thisMenu[15] = new subMenu('&nbsp;WLM Only','weyrlings/lectures/index.html');

}

// Search
if (page=='icsearch') {
thisMenu = new Array();
thisMenu[0] = new subMenu('&nbsp;Timetable','icsearch/index.html');
thisMenu[1] = new subMenu('&nbsp;FAQ','icsearch/searchfaq.html');
thisMenu[2] = new subMenu('&nbsp;Applying','icsearch/application.html');
thisMenu[3] = new subMenu('&nbsp;What Colour?','icsearch/whatcolour.html');
thisMenu[4] = new subMenu('&nbsp;The Clutching','icsearch/clutching.html');
thisMenu[5] = new subMenu('&nbsp;Candidacy','icsearch/candidacy.html');
thisMenu[6] = new subMenu('&nbsp;The Hatching','icsearch/hatch.html');
}

// Search Co - Running Hatching and Clutch Sire bits are still on server but links commented out.
if (page=='search') {
thisMenu = new Array();
thisMenu[0] = new subMenu('&nbsp;Information','search/index.html');
thisMenu[1] = new subMenu('&nbsp;Coordinators','searchco/coordinators.html');
thisMenu[2] = new subMenu('&nbsp;Searchriders','searchco/searchrider.html');
//thisMenu[3] = new subMenu('&nbsp;Running a Hatching','searchco/runninghatching.pdf');
//thisMenu[4] = new subMenu('&nbsp;How to be a Clutch Sire','searchco/howtobeaclutchsire.pdf');
thisMenu[3] = new subMenu('&nbsp;Dragon Designing','searchco/dragondesigning.pdf');
}

// Hatching
if (page=='hatch') {
thisMenu = new Array();
thisMenu[0] = new subMenu('&nbsp;Hatching Records','hatch/sowhatch.html');
thisMenu[1] = new subMenu('&nbsp;Dragons Hatched!','hatch/index.html');
}

// Miscellaneous
if (page=='misc') {
thisMenu = new Array();
thisMenu[0] = new subMenu('&nbsp;OOC Facts','misc/facts.html');
thisMenu[1] = new subMenu('&nbsp;Songs','misc/songs.html');
}

// Logs
if (page=='logs') {
thisMenu = new Array();
thisMenu[0] = new subMenu('&nbsp;Flights','logs/flight/index.html');
thisMenu[1] = new subMenu('&nbsp;Clutchings','logs/clutch/index.html');
thisMenu[2] = new subMenu('&nbsp;Hatchings','logs/hatchings/index.html');
thisMenu[3] = new subMenu('&nbsp;Graduations','logs/graduation/index.html');
thisMenu[4] = new subMenu('&nbsp;Threadfalls','logs/threadfall/index.html');
thisMenu[5] = new subMenu('&nbsp;Events','logs/events/index.html');
thisMenu[6] = new subMenu('&nbsp;General','logs/general/index.html');
}

// Links
if (page=='links') {
thisMenu = new Array();
thisMenu[0] = new subMenu('&nbsp;Pern Links','links/index.html');
thisMenu[1] = new subMenu('&nbsp;MUSH Links','links/mush.html');
thisMenu[2] = new subMenu('&nbsp;Webrings','links/webrings.html');
}

// Guestbook
if (page=='guestbook') {
thisMenu = new Array();
thisMenu[0] = new subMenu('&nbsp;Sign','http://callisto.guestworld.tripod.lycos.com/wgb/wgbsign.dbm?owner=SouthernWeyr');
thisMenu[1] = new subMenu('&nbsp;View','http://callisto.guestworld.tripod.lycos.com/wgb/wgbview.dbm?owner=SouthernWeyr');
}

// Email
if (page=='email') {
thisMenu = new Array();
thisMenu[0] = new subMenu('&nbsp;Email','mailto:southern-weyrleaders@silvertree.org');
thisMenu[1] = new subMenu('&nbsp;Mailing List','mailto:southern-subscribe@yahoogroups.com');
}
