function initOutlineIcons(imgStore) {
	var ip = '../player_graphics/joust/';	//For Bug Fix #235
	
	imgStore.add('iconPlusTop', ip + 'plustop.gif', 18, 16);
	imgStore.add('iconPlus', ip + 'plus.gif', 18, 16);
	imgStore.add('iconPlusBottom', ip + 'plusbottom.gif', 18, 16);
	imgStore.add('iconPlusOnly', ip + 'plusonly.gif', 18, 16);
	imgStore.add('iconMinusTop', ip + 'minustop.gif', 18, 16);
	imgStore.add('iconMinus', ip + 'minus.gif', 18, 16);
	imgStore.add('iconMinusBottom', ip + 'minusbottom.gif', 18, 16);
	imgStore.add('iconMinusOnly', ip + 'minusonly.gif', 18, 16);
	imgStore.add('iconLine', ip + 'line.gif', 18, 16);
	imgStore.add('iconBlank', ip + 'blank.gif', 18, 16);
	imgStore.add('iconJoinTop', ip + 'jointop.gif', 18, 16);
	imgStore.add('iconJoin', ip + 'join.gif', 18, 16);
	imgStore.add('iconJoinBottom', ip + 'joinbottom.gif', 18, 16);

	//Add folder and document images to the imgStore.
	var di = '../player_graphics/joust/';	//For Bug Fix #235
	if ((theBrowser.code == 'NS') || (theBrowser.code == 'MSIE')) {
		imgStore.add('Folder', ip + 'folderclosed.gif', 18, 16);
		imgStore.add('FolderSelected', ip + 'folderopenred.gif', 18, 16);

		imgStore.add('Document', di + 'doc.gif', 18, 16);
		imgStore.add('DocumentMouseOver', di + 'doc.gif', 18, 16);
		imgStore.add('DocumentSelected', di + 'docred.gif', 18, 16);
	} else {
		imgStore.add('Folder', ip + 'folderclosed.gif', 18, 16);
		imgStore.add('FolderSelected', ip + 'folderclosed.gif', 18, 16);

		imgStore.add('Document', di + 'doc.gif', 18, 16);
		imgStore.add('DocumentMouseOver', di + 'doc.gif', 18, 16);
		imgStore.add('DocumentSelected', di + 'doc.gif', 18, 16);
	}
}


function initialise() {
	// If you only want to turn off DHTML for MSIE and NS6 browsers then use the following code:
    if (theBrowser.slowDHTML) {theBrowser.hasDHTML = false;}

	// Tell joust where to find the various index files it needs
	index1 = 'index.html';
	index2 = 'index.html';
	index3 = 'index.html';
	
	theMenu = new Menu(); // This allows us to call initialise again and again, and have generateTree below work properly
	// Set up parameters to control menu behaviour
	theMenu.autoScrolling = true;	
	theMenu.modalFolders = false;
	theMenu.linkOnExpand = false;
	theMenu.toggleOnLink = false;
	theMenu.showAllAsLinks = true;
	theMenu.savePage = true;
	theMenu.tipText = "text"; //uses menu item's name as ToolTip text
	theMenu.selectParents = true;
	theMenu.name = "theMenu";
	theMenu.container = "self.menu";
	theMenu.reverseRef = "parent";
	theMenu.contentFrame = "text";
	theMenu.defaultTarget = "text";
	
	// Initialise all the icons
	initOutlineIcons(theMenu.imgStore);

	window.courseLanguages[window.courseLanguage].generateTree(); // generate the tree for teh current language
	// Expands the menu so all nodes are visible. Comment out so tree starts collapsed
	// theMenu.openAll(); 
}


self.defaultStatus = "";	


