

function showToolbar()
{

// AddItem(id, text, hint, location, alternativeLocation);
// AddSubItem(idParent, text, hint, location, linktarget);
	
	var homeURL = document.menuNavBar.homeURL.value;
	menu = new Menu();
	menu.addItem("publicsectorid", "Store home", "public sector home",  null, homeURL);

//check for any products within the contract...
	var scmp = document.menuNavBar.scomputingFlag.value;
	var sprtn = document.menuNavBar.sprintingFlag.value;
	var sftw = document.menuNavBar.ssoftwareFlag.value;
	var computingURL = document.menuNavBar.computingURL.value;
	var printingURL = document.menuNavBar.printingURL.value;
	var spURL = document.menuNavBar.softPeripheralURL.value;
 
	
	if (scmp=="Y")
		{
		menu.addItem("computing", "Computing", "computing",  null, computingURL);
		//menu.addSubItem("computing", "Computing", "computing",  computingURL);	
		}

	if (sprtn=="Y")
		{
		menu.addItem("printingid", "Printing and digital imaging", "printing",  null, printingURL);
	//	menu.addSubItem("printingid", "Printing and digital imaging", "printing",  printingURL );
		}
	
	if (sftw=="Y")
		{
		menu.addItem("softwareid", "Supplies & Accessories", "Supplies & Accessories",  null, spURL);
	//	menu.addSubItem("softwareid", "Software and peripherals", "software and peripherals",  spURL);
		}

	var icnt;
	icnt=0;
	var tArray;
	tArray = new Array();
	spArray = new Array();
	

	//add sub menu hard coded items..
        
	
	var counter = document.menuNavBar.scounter.value;
	
 	
	for (icnt=0;icnt<counter;icnt++)
	{
		tArray[icnt] = document.menuNavBar["p" + icnt].value;	
		
		
	
			if (document.menuNavBar["staticLinkFlag" + icnt].value != "Y")	
			  {
				if (document.menuNavBar["smod" + icnt].value%2 == 0)
				  {
				//	menu.addSubItem("computing", tArray[icnt], tArray[icnt].toString(),  document.menuNavBar["navURL" + icnt].value, "_top");
				  }
				  else
				  {
				//	menu.addSubItem("printingid", tArray[icnt], tArray[icnt],  document.menuNavBar["navURL" + icnt].value, "_top");
				  }
			   }
			else
			   {
				   if (tArray[icnt].toString() != "Software & Peripherals")
					{	
				  //	 menu.addSubItem("softwareid", tArray[icnt], tArray[icnt], document.menuNavBar["staticURL" + icnt].value, "_top");
					}
			   }			  
	}
	
	menu.showMenu();
}