<!-- Begin

function blockError(){return true;}
window.onerror = blockError;

function lasttoggle(n,move) {
	if (n <= nom) {
		menu = ('submenu' + n);
		//added this code because submenu is made local to the if statements if it's not here
		var submenu;
		//using the same code as above to differentiate between browsers
		if (navigator.appName=="Microsoft Internet Explorer"){
			if (document.layers) {
				submenu = document.layers[menu];
			} else if (document.all) {
				submenu = document.all(menu).style;
			}
		} else {
			//Assume FF
			//use the document.getElementById object
			submenu = document.getElementById(menu).style;
		}
		if (submenu.visibility == visible) {
			submenu.visibility = hidden;
			//added the code from below to the next line to ensure consistency
			if (usePictures) picclose(n); // Remove this if you don't use pictures
			for (var i = (n+1); i <= nom; i++) {
				//same code as before to differentiate between browsers
				if (navigator.appName=="Microsoft Internet Explorer"){
					if (document.layers) {
						document.layers[ttls[i]].top -= move;
						document.layers[subs[i]].top -= move;
					} else if (document.all) {
						document.all(ttls[i]).style.pixelTop -= move;
						document.all(subs[i]).style.pixelTop -= move;
					}
				} else {
					//FF is the browser
					//use document.getElementById(ttls/subs)
					//The .top property in css contains a "px" in it so js assumes it's a string hence you cannot just negate it you must first parse the value of .top
					var oldTop = document.getElementById(ttls[i]).style.top;//gets the old .top property
					var parsedTop = parseInt(oldTop);//converts it from string to integer and removes the "px"
					var newTop = parsedTop-move;//negates move
					document.getElementById(ttls[i]).style.top = newTop+"px";//resets it and adds the "px"
					//do the same for subs
					var oldTop = document.getElementById(subs[i]).style.top;//gets the old .top property
					var parsedTop = parseInt(oldTop);//converts it from string to integer and removes the "px"
					var newTop = parsedTop-move;//negates move
					document.getElementById(subs[i]).style.top = newTop+"px";//resets it and adds the "px"
				}
				
			}
		}
	}
}
// -->
