/************************************************************************
 * the next 3 functions are for keeping the navigation highlighted      *
 ************************************************************************/
function extractPageName(hrefString)
{
	var arr = hrefString.split('/');
	//return  (arr.length<2) ? hrefString : arr[arr.length-2].toLowerCase() + arr[arr.length-1].toLowerCase();    
	return  (arr.length<2) ? hrefString : arr[arr.length-1].toLowerCase();               
}

function setActiveMenu(arr, crtPage)
{
	for (var i=0; i<arr.length; i++)
	{
		if(extractPageName(arr[i].href) == crtPage)
		{
			if (arr[i].parentNode.tagName != "DIV")
			{
//	  	        alert(arr[i].tagName + ', ' + arr[i].className + ', ' + arr[i].parentNode.tagName + ', ' + arr[i].parentNode.className + ', ' + extractPageName(arr[i].href) + ', ' + crtPage);
				arr[i].className = "current";
				arr[i].parentNode.className = "current";
//	  	        alert(arr[i].tagName + ', ' + arr[i].className + ', ' + arr[i].parentNode.tagName + ', ' + arr[i].parentNode.className + ', ' + extractPageName(arr[i].href) + ', ' + crtPage);
			}
		}
	}
}

function setPage()
{
	hrefString = document.location.href ? document.location.href : document.location;

	if (document.getElementById("menunav")!=null){
//        alert(extractPageName(hrefString));
		setActiveMenu(document.getElementById("menunav").getElementsByTagName("a"), extractPageName(hrefString));
	}
}

// NOTE: If you use a ' add a slash before it like this \'
var menuside		= "left"	// MENU SIDE | left | right | center
var fixwrap		= "no"		// MAKE yes ONLY IF MENUS ARE WRAPPING
var menuwidth		= "900"		// TOTAL MENU WIDTH TO FIX WRAP

document.write('<table cellpadding="0" cellspacing="0" border="0" class="menutable"><tr><td class="printhide" align="'+menuside+'">');
document.write('<table cellpadding="0" cellspacing="0" border="0"><tr><td>');
//document.write('<div id="nav">');
document.write('<ul id="menunav">');

// START MENU LINKS - EDIT BELOW THIS AREA

document.write('<li style="width: 100px;"><a href="index.html">Home</a></li>');

document.write('  <li style="width: 150px;"><a href="scottsbio.htm">Scott&acute;s Bio</a>'); 
document.write('  </li>');

document.write('  <li style="width: 150px;"><a href="presentations.htm">Speaking</a>'); 
document.write('  </li>');

document.write('  <li style="width: 150px;"><a href="meetingplanners.htm">Meeting Planners</a>'); 
//document.write('    <ul>');
//document.write('      <li><a href="PDF/Electronic.pdf" target="_blank">Electronic Brochure</a></li>'); 
//document.write('      <li><a href="PDF/av%20req.pdf" target="_blank">AV Requirements</a></li>');
//document.write('      <li><a href="PDF/Scott-Burrows-Introduction-2009.pdf" target="_blank">Introduction</a></li>'); 
//document.write('      <li><a href="PDF/2009Promoletter.pdf" target="_blank">Promotional Letter </a></li>');
//document.write('      <li><a href="PDF/learning%20outcomes.pdf" target="_blank">Learning Outcomes</a></li>'); 
//document.write('      <li><a href="PDF/short%20bio.pdf" target="_blank" class="style75">Scotts BIO</a></li>');
//document.write('    </ul>');
document.write('  </li>');

document.write('  <li style="width: 160px;"><a href="scottclients.htm">Clients</a>'); 
document.write('    <ul>');
document.write('      <li><a href="scottest.htm">Testimonials</a></li>'); 
document.write('      <li><a href="pdftestimonials.htm">Client letters</a></li>');
document.write('    </ul>');
document.write('  </li>');

document.write('  <li style="width: 150px;"><a href="FORMgallery1.htm">Impact Store</a></li>'); 

document.write('  <li style="width: 120px;"><a href="contact.htm">Contact</a>');
document.write('    <ul>');
document.write('      <li><a href="scottsite_map.htm">Site Map</a></li>')
document.write('      <li><a href="links.htm">Recommended Links</a></li>');
document.write('    </ul>');
document.write('  </li>');

// END LINKS //

document.write('</ul>');
//document.write('</div>');
document.write('</td></tr></table>');
   if (fixwrap == "yes") {
document.write('<img src="picts/spacer.gif" width="'+menuwidth+'" height="1"><br>');
}
document.write('</td></tr></table>');

// END -->
// Set the page menu navigation to ON
setPage()