<!-- Begin

function menuPreLoad()
	{
	MM_preloadImages('/images/navigation/UHome.png','/images/navigation/OHome.png', '/images/navigation/UNews.png','/images/navigation/ONews.png', '/images/navigation/UGallery.png','/images/navigation/OGallery.png', '/images/navigation/UGuitars.png','/images/navigation/OGuitars.png', '/images/navigation/UMusings.png','/images/navigation/OMusings.png', '/images/navigation/UAbout.png','/images/navigation/OAbout.png', '/images/navigation/UContact.png','/images/navigation/OContact.png');
	}

function createMenuElement(elementName, altText, url)
	{
	var path = document.location.href;
	path = path.toLowerCase();
	var selected = 	path.indexOf('/'+elementName.toLowerCase());
	var outputString = '';
	
	outputString = '<td><a href="'+url+'" target="_top" ';
	if (selected != -1)
		{
		outputString += '><img src="/images/navigation/O'+elementName+'.png"';
		}
	else
		{
		outputString += 'onclick="MM_nbGroup('+Char(39)+'down'+Char(39)+','+Char(39)+'group1'+Char(39)+','+Char(39)+elementName+Char(39)+','+Char(39)+'/images/navigation/O'+elementName+'.png'+Char(39)+',1)"';
		outputString += 'onmouseover="MM_nbGroup('+Char(39)+'over'+Char(39)+','+Char(39)+elementName+Char(39)+','+Char(39)+'/images/navigation/O'+elementName+'.png'+Char(39)+','+Char(39)+''+Char(39)+',1)"';
		outputString += 'onmouseout="MM_nbGroup('+Char(39)+'out'+Char(39)+')"';
		outputString += '"><img src="/images/navigation/U'+elementName+'.png"';
		}
	outputString += ' alt="'+altText+'" name="'+elementName+'" height="50" border="0" id="'+elementName+'" /></a></td>';
	//alert(outputString);
	document.write(outputString);
	}

function writeMenu(basePath)
	{	
		document.write('<form action="'+basePath+'sphider-1.3.5/search.php" method="get" name="menuSearch">');
  	document.write('<table border="0" cellpadding="0" cellspacing="0"><tr>');
		createMenuElement('Home', 'Home', basePath);
		createMenuElement('News', 	'News &amp; Information', basePath+'news');	
		createMenuElement('Gallery', 'Art Gallery', basePath+'gallery');
		createMenuElement('Guitars', 'Guitars Information', basePath+'guitars');
		createMenuElement('Musings', 'Thoughts &amp; Musings', basePath+'musings');		
		createMenuElement('About', 'About Patriot Guitar', basePath+'aboutus');
		createMenuElement('Contact', 'Contact Information', basePath+'contact');
		document.write('<td background="/images/navigation/Search-Bar.png" usemap="#searchMap" width="375px" border="0" />');				
		document.write('<input type="hidden" name"searchType" value="menuBar" />');
		document.write('<input type="hidden" name="search" value="1">');
		document.write('<table border="0"	cellpadding="0" cellspacing="0"><tr>');		
		document.write('<td width="140px;">&nbsp;</td>');
		document.write('<td><input name="query" type="text" size="15" maxlength="25" style="border:none; width:187px;font-size:11pt;"/></td>');
		document.write('<td><input type="image" src="/images/navigation/searchIcon.png" height="22px" alt="Search" style="position:; right-97px;"/></td>');
		document.write('</tr></table>');
		document.write('</td>');
		document.write('</tr></table>');
		document.write('</form>');
	};
	
//End -->