function BuildMenu (pv_sItem){
/* NoLink tells us which menu item should have a dead hot link.
0 - All should be hot.
1 - First item should not be hot, etc.
*/

	var sStr;
	var iStartPos = 0;
	var iEndPos;
	
	sStr =
		'<ul>'+
		'<li>Introduction</li>'+
		'<ul>'+			
		'<li><a href="portals.html">Web Portals</a></li>' +	
		'<li><a href="personal.html">Personal Portals</a></li>' +		
		'<li><a href="webpages.html">Web Pages</a></li>'+
		'</ul>'+
		'<li><a href="target.html">Target Audience</a></li>'+
		'<li><a href="objectives.html">Learning Objectives</a></li>'+
		'<li><a href="tools.html">Tools & Resources</a></li>'+
		'<li>Lessons</li>'+
		'<ul>'+
		'<li>Lesson 1:<br/><a href="roles.html">Defining goals</a></li>' +
		'<li>Lesson 2:<br/><a href="categories.html">Defining categories</a></li>' +
		'<li>Lesson 3:<br/><a href="arrangements.html">Laying out resources</a></li>' +
		'<li>Lesson 4:<br/><a href="maintenance.html">Maintaining a portal</a></li>' +
		'<li>Lesson 5:<br/><a href="security.html">Security and privacy issues</a></li>' +
		'</ul>'+
		'<li><a href="feedback.html">Feedback</a></li>'+
		'</ul>';
	
	if (pv_sItem == '') { //all hot
		sMenu = sStr;
	}
	else {
		iEndPos = sStr.indexOf (pv_sItem + '<'); // find the start of the item name
		iStartPos = sStr.lastIndexOf ('<a', iEndPos); // find the start of the "<a href" tag that comes before it

		sMenu = sStr.substring(0, iStartPos); // extract everything left of "<a href"

		sMenu += pv_sItem;  // Append the menu text
		sMenu += sStr.substr (iEndPos + pv_sItem.length + 4); // Extract the remainder of the string after the closing anchor tag
	}
	
	document.write (sMenu);	
	document.write ('<br/>');		
}



function BuildFooter () 
	{
		document.write (
			'<center>' +
			'<font size="1">'+			
			'This page was last updated on ' +document.lastModified+ '.<br>'+
			'<div>&copy; 2005 Glenda B. Claborne.</div>'+
			'</font>' +
			'</center>' ); 
	 }




