// JavaScript Document

/*******************************************************************
          Written by  :  Kyle Bottorff
		  				 Owner, Lead Design
					     www.erisluminal.com
									
		  Date        :  04.03.2009
					 
		  Description :  Determines if the user is using IE 6.0
		  				 or older.  If they are, the image menus
						 will be downgraded to a text-only display.
						 
						 
		  Notice	  :  Use of this script is permitted only with
						 written consent of ErisLuminal.
*******************************************************************/



/*******************************************************************
                     Variables declared
*******************************************************************/

//Change your TEXT ONLY menu labels here
var menu = new Array(5);
menu[0] = "About";
menu[1] = "Products";
menu[2] = "Ordering";
menu[3] = "Contact";
menu[4] = "Nursery View";

//Modify for template and formatting changes only
var menuStyle = '<p style="margin:15px 0 0 0; padding:0">';
var menuStyleEnd = "</p>";
var imgPrint = '<img src="img/nav/menu';
var imgPrintEnd = '.png" alt="Menu" border="0" />';

//Do not modify these declarations
var internetExplorer = "Microsoft Internet Explorer";
var unsupportedIE = "MSIE";
var userBrowser = navigator;
var userAgentInfo;
var userAgentVer;
var msieLoc;



/*******************************************************************
                         Main Script
*******************************************************************/

if (userBrowser.appName == internetExplorer)
{
	userAgentInfo = userBrowser.userAgent;
	userAgentInfo = userAgentInfo.toUpperCase();
	msieLoc = userAgentInfo.indexOf("MSIE");
	msieLoc += 5;
	userAgentVer = userAgentInfo.substr(msieLoc,3);
	
	if (userAgentVer < 7.0)
	{
		document.write(menuStyle + menu[menuNum] + menuStyleEnd);
	}
	else
	{
		document.write(imgPrint + menuNum + imgPrintEnd);
	}
}

else
{
	document.write(imgPrint + menuNum + imgPrintEnd);
}
