	// DECLARE LH MENU ARRAYS	// group arrays with individual page names	var index = new Array("default");	var services = new Array("services","rental","salescomm","stringseducation","insval");	var instbows = new Array("instbows","violins","violas","cellos","bows","mandolins","electric","special_offers_instruments");	var contemporary_makers = new Array("contemporary_makers");	var accessories = new Array("accessories","special_offers_accessories");	var stringsworks = new Array("stringsworks","restorers","repairs","maintenance","instcare","techniques");	var aboutus = new Array("aboutus","hitchin","contact","map");	var whatsnew = new Array("whatsnew");	var info = new Array("info","links","howtobuy","stringsart","newsletter_subscribe");	var view_cart = new Array("view_cart");		// the filename for each header link	var menugroupsname = new Array("default", "services", "instbows", "contemporary_makers", "accessories", "stringsworks", "aboutus", "whatsnew", "info", "view_cart");	// an array of group arrays	var menugroups = new Array(index, services, instbows, contemporary_makers, accessories, stringsworks, aboutus, whatsnew, info, view_cart);	// SUB-PAGE ARRAYS	var contemporary_makers_page = new Array("contemporary_maker_details");	var violins_page = new Array("violin_details");	var violas_page = new Array("viola_details");	var cellos_page = new Array("cello_details");	var bows_page = new Array("bow_details");	var mandolins_page = new Array("mandolin_details");	var electric_page = new Array("electric_details");	var accessories_page = new Array("accessories_strings_list", "accessories_cases_list", "accessories_others_list");	var newsletter_subscribe_page = new Array("newsletter_subscribe_thanks","remove-subscriber-confirm");	// the parent page filename	var subpagegroupsname = new Array("contemporary_makers", "violins", "violas", "cellos", "bows", "mandolins", "electric", "accessories", "newsletter_subscribe");	// an array of group arrays	var subpagegroups = new Array(contemporary_makers_page, violins_page, violas_page, cellos_page, bows_page, mandolins_page, electric_page, accessories_page, newsletter_subscribe_page);	// ensures all menu groups start off as closed	function initializeLHMenu()   {		var i, currentgroup = "", currentgroupindex=-1, subpageindex=-1;		// detect page name		thisloc=window.location.href;		thepos=thisloc.lastIndexOf("/")+1;		pagename=thisloc.substring(thepos);		// get rid of any querystring		thepos=pagename.indexOf("?");		if (thepos>-1) pagename=pagename.substring(0, thepos);		// get rid of file extension		pagename=pagename.substring(0,pagename.length-4);		// WORKING OUT WHERE THIS PAGE IS IN THE MENU		// it could be a sub-page of a parent page (which exists in the LH menu), so work out which parent this sub-page belongs to, if any		imatch=0;		j=0;		while (j<subpagegroups.length&&imatch==0)   {			i=0;			while (i<subpagegroups[j].length&&imatch==0)   {				if (subpagegroups[j][i]==pagename) {  imatch=1; subpageindex = j;  }				i++;				}			if (imatch==0) j++;			}		// if we have a match, this exists as a valid sub-page, so we need the parent page 		if (subpageindex!=-1) pagename = subpagegroupsname[subpageindex];		// now work out which group this page (or parent page) belongs to, if any		imatch=0;		j=0;		while (j<menugroups.length&&imatch==0)   {			i=0;			while (i<menugroups[j].length&&imatch==0)   {				if (menugroups[j][i]==pagename) {  imatch=1; currentgroupindex = j;  }				i++;				}			if (imatch==0) j++;			}		// if this page is in a group		if (currentgroupindex!=-1)   {			currentgroup = menugroupsname[currentgroupindex];			// now expand the group	and highlight selected item			objcurrentgroup=document.getElementById(currentgroup+"_group");			if (objcurrentgroup!=undefined)   {				objcurrentgroup.style.display="block";					if (navigator.appVersion.indexOf("MSIE")==-1)  {					objcurrentgroup.style.display="table-row";						}				// highlight the group header cell				document.getElementById(currentgroup).className="LHbuttonsublink";					}			// now highlight the menu item relating to this page			// ** customiseable colour			objpage=document.getElementById(pagename);			if (objpage.className=="LHbuttonsublinkLAST") objpage.className="LHbuttonsublinkLASTON";			else objpage.className="LHbuttonlinkON";			}		}