<!--This opens on page unload and load and hides all the submenus-->

		function initMenu() {			
					menu1.style.display = "none"
					menu2.style.display = "none"
				    menu3.style.display = "none"
					menu4.style.display = "none"
		}
		/* and this is the end of it*/
/*
this stuff doesn't work: trying to combine a mouseover targeting the other elements. Must be possible.
		
		function out1() {
					menu2.style.display = "none" {return true}
				    menu3.style.display = "none" {return true}
		}

		function out2() {
					menu1.style.display = "none"
				    menu3.style.display = "none"
		}


		function out3() {
					menu1.style.display = "none"
					menu2.style.display = "none"
		}
end of non-working stuff  
*/

/**********************************************************
OK so I had to write separate functions in the end. Bummer, as I'm sure they can be combined using an array but I'll have to do some reading first!!!

And here they are. One per element, called by the OnMouseOver event in each element.
**********************************************************/
function expand1(menu1)
{
		menu1.style.display = "block";
		menu2.style.display = "none";
		menu3.style.display = "none";
		menu4.style.display = "none"
		}

function expand2(menu2)
{
		menu2.style.display = "block";
		menu1.style.display = "none";
		menu3.style.display = "none";
		menu4.style.display = "none"

		}

function expand3(menu3)
{
		menu3.style.display = "block";
		menu1.style.display = "none";
		menu2.style.display = "none";
		menu4.style.display = "none"

		}
function expand4(menu4)
{
		menu4.style.display = "block";
		menu1.style.display = "none";
		menu2.style.display = "none";
		menu3.style.display = "none"

		}
/******************************************************************************************
		<!--This is the previous script, more elegant but doesn't shut the ones you don't want open->

		function toggleMenu(currMenu) {
			if (document.getElementById) {
				thisMenu = document.getElementById(currMenu).style
				if (thisMenu.display == "block") {
					thisMenu.display = "none"
				}
				else {
					thisMenu.display = "block"
				}
				return false
			}
			else {
				return true
			}
		}
******************************************************************************************/



	   function newWindow() {
	   alertWindow = window.open("alert.gif", "Moving", "width=400,height=200")
	   }