

			
			var went = false;
			
			function SetClass(id, className) {
				//alert(id + ' ' + className);
				var e = document.getElementById(id);
				if (e != null) e.className = className;
			}
			
			
			var open_l2id, open_lnid, tclose_level2, tclose_leveln;
			var closeTimeout = 300;
			
			function OpenLevel2(subid) {
				SetClass(open_l2id, 'nav-leveln');
				open_l2id = subid;
				SetClass(open_l2id, 'nav-level2 nav-level2-over');
				clearTimeout(tclose_level2);
			}

			function OpenLeveln(subid) {
				SetClass(open_lnid, 'nav-leveln');
				open_lnid = subid;
				SetClass(open_lnid, 'nav-leveln nav-leveln-over');
				clearTimeout(tclose_leveln);
			}
			
			function CloseLevel2() {
				//if (open_lnid != null) { CloseLeveln(); }
				
				tclose_level2 = setTimeout(function() { SetClass(open_l2id, 'nav-level2'); open_l2id = null;}, closeTimeout);
			}

			function CloseLeveln() {
				tclose_leveln = setTimeout(function() { SetClass(open_lnid, 'nav-leveln'); open_lnid = null; }, closeTimeout);
			}
			

			function Go(url) {
				if (went == true) return false;
				went = true;
				document.location.href = url;
				return false;
			}
			
			function ToggleExpando(li, body, classname) {
				var eli = document.getElementById(li);
				var ebody = document.getElementById(body);
				
				if (eli == null || ebody == null) return;
			
				ebody.style.display = (ebody.style.display == 'none') ? '' : 'none';
			
				if (ebody.style.display == 'none')
					eli.className = classname;
				else
					eli.className = classname + ' open';
			}