//  Joust Outliner Version 2.4.1
//  (c) Copyright 1996-1999, Alchemy Computing Limited. All rights reserved.
//  This code may be freely copied and distributed provided that it is accompanied by this header.
//
//  Do not modify anything between here and the "End of Joust" marker other than the "Initialise" function
//  unless you know what you are doing.  You can find the latest version of Joust and all associated files and
//  help at http://www.alchemy-computing.co.uk/joust/.  If you have any questions/problems visit the 
//  Joust User Forum at http://www.customforum.com/joust/

//-----------------------------------------------------------------------
// This code is called by index.html.  It is used to initialize the menu.
// The rest of this function, which will be dynamically created by a 
// database, will consist of addEntry and addChild function calls, the
// closing brace for the function, and the line self.defaultStatus="";
//-----------------------------------------------------------------------

function initOutlineIcons(imgStore) {
	var ip = 'images/menu/';
	ip += (theBrowser.platform == 'Mac') ? 'mac/' : ((theBrowser.platform == 'OS/2') ? 'os2/' : 'win/');
	
	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.
	imgStore.add('Folder', ip + 'folderclosed.gif', 18, 16);
        imgStore.add('FolderSelected', ip + 'folderopen.gif', 18, 16);
	
	var di = 'images/menu/';
	if ((theBrowser.code == 'NS') || (theBrowser.code == 'MSIE')) {
		di += theBrowser.code.toLowerCase() + '_doc';
		imgStore.add('Document', di + '.gif', 18, 16);
		imgStore.add('DocumentMouseOver', di + '_mo.gif', 18, 16);
		imgStore.add('DocumentSelected', di + '_sel.gif', 18, 16);
	} else {
		imgStore.add('Document', di + 'doc.gif', 18, 16);
	}
}

function initialise() {
	// Tell joust where to find the various index files it needs
	index1 = 'index.html';
	index2 = 'index2.html';
	index3 = 'index3.html';

	// Set up parameters to control menu behaviour
	theMenu.autoScrolling = true;	
	theMenu.modalFolders = false;
	theMenu.linkOnExpand = true;
	theMenu.toggleOnLink = false;
	theMenu.showAllAsLinks = true;
	theMenu.savePage = true;
	theMenu.tipText = "status";
	theMenu.selectParents = false;
	theMenu.name = "theMenu";
	theMenu.container = "self.menu";
	theMenu.reverseRef = "parent";
	theMenu.contentFrame = "text";
	theMenu.defaultTarget = "text";

	// Initialise all the icons
	initOutlineIcons(theMenu.imgStore);

// The rest of this function will be dynamically created by database.
// Now set up the menu with a whole lot of addEntry and addChild function calls
var node15=null;
node15=theMenu.addEntry(-1,"Folder","Introduction","links/node15.html","Introduction");
var node27=null;
node27=theMenu.addChild(node15,"Document","What is Matlab?","links/node27.html","What is Matlab?");
var node28=null;
node28=theMenu.addEntry(node27,"Document","Topics to Start Learning","links/node28.html","Topics to Start Learning");
var node29=null;
node29=theMenu.addEntry(node28,"Document","Demos","links/node29.html","Demos");
var node1=null;
node1=theMenu.addEntry(node15,"Folder","Colon Operator","links/node1.html","Colon Operator");
var node2=null;
node2=theMenu.addChild(node1,"Document","Counting to 10","links/node2.html","Counting to 10");
var node5=null;
node5=theMenu.addEntry(node2,"Document","Creating General Vectors","links/node5.html","Creating General Vectors");
var node12=null;
node12=theMenu.addEntry(node5,"Document","Vector with Elements from 0 to pi.","links/node12.html","Vector with Elements from 0 to pi.");
var node16=null;
node16=theMenu.addEntry(node1,"Folder","Vectors","links/node16.html","Vectors");
var node30=null;
node30=theMenu.addChild(node16,"Document","Row and Column Vectors","links/node30.html","Row and Column Vectors");
var node31=null;
node31=theMenu.addEntry(node30,"Document","Naming Vectors","links/node31.html","Naming Vectors");
var node32=null;
node32=theMenu.addEntry(node31,"Document","Accessing Single Elements","links/node32.html","Accessing Single Elements");
var node33=null;
node33=theMenu.addEntry(node32,"Document","Accessing Multiple Elements","links/node33.html","Accessing Multiple Elements");
var node34=null;
node34=theMenu.addEntry(node33,"Document","Changing Single Elements","links/node34.html","Changing Single Elements");
var node35=null;
node35=theMenu.addEntry(node34,"Document","Changing Multiple Elements","links/node35.html","Changing Multiple Elements");
var node3=null;
node3=theMenu.addEntry(node16,"Folder","Images","links/node3.html","Images");
var node6=null;
node6=theMenu.addChild(node3,"Document","Image Representation (Part I)","links/node6.html","Image Representation (Part I)");
var node7=null;
node7=theMenu.addEntry(node6,"Document","Image Representation (Part II)","links/node7.html","Image Representation (Part II)");
var node13=null;
node13=theMenu.addEntry(node7,"Document","Scaling an Image from 0 to 255","links/node13.html","Scaling an Image from 0 to 255");
var node14=null;
node14=theMenu.addEntry(node13,"Document","Tutorial for Lab 5","links/node14.html","Tutorial for Lab 5");
var node17=null;
node17=theMenu.addEntry(node3,"Folder","Functions","links/node17.html","Functions");
var node36=null;
node36=theMenu.addChild(node17,"Document","What are Functions?","links/node36.html","What are Functions?");
var node37=null;
node37=theMenu.addEntry(node36,"Document","Creating Functions (I)","links/node37.html","Creating Functions (I)");
var node38=null;
node38=theMenu.addEntry(node37,"Document","Creating Function (II)","links/node38.html","Creating Function (II)");
var node39=null;
node39=theMenu.addEntry(node38,"Document","Functions vs. Scripts","links/node39.html","Functions vs. Scripts");
var node40=null;
node40=theMenu.addEntry(node39,"Document","Editing, Saving, Using...","links/node40.html","Editing, Saving, Using...");
var node41=null;
node41=theMenu.addEntry(node40,"Document","Style","links/node41.html","Style");
var node18=null;
node18=theMenu.addEntry(node17,"Folder","FOR Loops","links/node18.html","FOR Loops");
var node42=null;
node42=theMenu.addChild(node18,"Document","What is a FOR Loop?","links/node42.html","What is a FOR Loop?");
var node43=null;
node43=theMenu.addEntry(node42,"Document","Parts of a FOR Loop","links/node43.html","Parts of a FOR Loop");
var node44=null;
node44=theMenu.addEntry(node43,"Document","Converting a Summation","links/node44.html","Converting a Summation");
var node20=null;
node20=theMenu.addEntry(node18,"Folder","Frequency Response","links/node20.html","Frequency Response");
var node46=null;
node46=theMenu.addChild(node20,"Document","FREQZ Example I","links/node46.html","FREQZ Example I");
var node47=null;
node47=theMenu.addEntry(node46,"Document","FREQZ Example II","links/node47.html","FREQZ Example II");
var node21=null;
node21=theMenu.addEntry(node20,"Folder","PEZ (Pole-Zero Editor)","links/node21.html","PEZ (Pole-Zero Editor)");
var node48=null;
node48=theMenu.addChild(node21,"Document","Introduction to PEZ","links/node48.html","Introduction to PEZ");
var node49=null;
node49=theMenu.addEntry(node48,"Document","Adding a Pole","links/node49.html","Adding a Pole");
var node50=null;
node50=theMenu.addEntry(node49,"Document","Adding a Zero","links/node50.html","Adding a Zero");
var node51=null;
node51=theMenu.addEntry(node50,"Document","Positioning with the Mouse","links/node51.html","Positioning with the Mouse");
var node52=null;
node52=theMenu.addEntry(node51,"Document","Exact Positioning","links/node52.html","Exact Positioning");
var node22=null;
node22=theMenu.addEntry(node21,"Folder","Sampling Theory","links/node22.html","Sampling Theory");
var node53=null;
node53=theMenu.addChild(node22,"Document","Understanding Sampling","links/node53.html","Understanding Sampling");
var node54=null;
node54=theMenu.addEntry(node53,"Document","Simulating a Sinusoid","links/node54.html","Simulating a Sinusoid");
var node55=null;
node55=theMenu.addEntry(node54,"Document","Example I","links/node55.html","Example I");
var node56=null;
node56=theMenu.addEntry(node55,"Document","Example I (cont)","links/node56.html","Example I (cont)");
var node57=null;
node57=theMenu.addEntry(node56,"Document","Applying Example to Labs","links/node57.html","Applying Example to Labs");
var node58=null;
node58=theMenu.addEntry(node57,"Document","Sampling Issues","links/node58.html","Sampling Issues");
var node59=null;
node59=theMenu.addEntry(node58,"Document","Example II","links/node59.html","Example II");
var node23=null;
node23=theMenu.addEntry(node22,"Folder","Paths","links/node23.html","Paths");
var node60=null;
node60=theMenu.addChild(node23,"Document","What are Paths?","links/node60.html","What are Paths?");
var node61=null;
node61=theMenu.addEntry(node60,"Document","Running Files Without Using Path","links/node61.html","Running Files Without Using Path");
var node62=null;
node62=theMenu.addEntry(node61,"Document","Running Files Using Path","links/node62.html","Running Files Using Path");
var node24=null;
node24=theMenu.addEntry(node23,"Folder","Scripts","links/node24.html","Scripts");
var node63=null;
node63=theMenu.addChild(node24,"Document","What are Scripts?","links/node63.html","What are Scripts?");
var node64=null;
node64=theMenu.addEntry(node63,"Document","Creating Scripts","links/node64.html","Creating Scripts");
var node65=null;
node65=theMenu.addEntry(node64,"Document","Example","links/node65.html","Example");
var node66=null;
node66=theMenu.addEntry(node65,"Document","Example (cont)","links/node66.html","Example (cont)");
var node25=null;
node25=theMenu.addEntry(node24,"Folder","Variables","links/node25.html","Variables");
var node67=null;
node67=theMenu.addChild(node25,"Document","Creating Variables","links/node67.html","Creating Variables");
var node68=null;
node68=theMenu.addEntry(node67,"Document","The Matlab Workspace","links/node68.html","The Matlab Workspace");
var node69=null;
node69=theMenu.addEntry(node68,"Document","Important Details","links/node69.html","Important Details");
var node26=null;
node26=theMenu.addEntry(node25,"Folder","Vectorization","links/node26.html","Vectorization");
var node70=null;
node70=theMenu.addChild(node26,"Document","Summations","links/node70.html","Summations");
var node72=null;
node72=theMenu.addEntry(node70,"Document","Vectorizing Summations","links/node72.html","Vectorizing Summations");
var node71=null;
node71=theMenu.addEntry(node72,"Document","Matrix Example","links/node71.html","Matrix Example");
var node73=null;
node73=theMenu.addEntry(node71,"Document","&quot;Matrix Dimensions Must Agree&quot;","links/node73.html","&quot;Matrix Dimensions Must Agree&quot;");
}
self.defaultStatus="";
