// LZDX Navigation

		function init() {
			if (TransMenu.isSupported()) {
				TransMenu.initialize();

				// hook all the highlight swapping of the main toolbar to menu activation/deactivation
				// instead of simple rollover to get the effect where the button stays hightlit until
				// the menu is closed.
				document.getElementById("main").onmouseover = function() { ms.hideCurrent(); this.className = "hover"; }
				document.getElementById("main").onmouseout = function() { this.className = ""; }

				menu1.onactivate = function() { document.getElementById("results").className = "hover"; };
				menu1.ondeactivate = function() { document.getElementById("results").className = ""; };

				document.getElementById("rules").onmouseover = function() { ms.hideCurrent(); this.className = "hover"; }
				document.getElementById("rules").onmouseout = function() { this.className = ""; }

				document.getElementById("contact").onmouseover = function() { ms.hideCurrent(); this.className = "hover"; }
				document.getElementById("contact").onmouseout = function() { this.className = ""; }

				document.getElementById("faq").onmouseover = function() { ms.hideCurrent(); this.className = "hover"; }
				document.getElementById("faq").onmouseout = function() { this.className = ""; }

                

			}

	var stretchers = $$('div.accordion');
	stretchers.each(function(item){
		item.setStyles({'height': '0', 'overflow': 'hidden'});
	});
		
		var togglers = $$('h3.toggler');
		
		var bgFx = [];
		
	
		var myAccordion = new Fx.Accordion(togglers, stretchers, { opacity: false, start: false, width: true, transition: Fx.Transitions.sineOut,
			
			onActive: function(toggler, i){
				toggler.getFirst().setStyle('background-position', '0 29px');
				toggler.setStyle('background-position', '0 29px');
			},
		
			onBackground: function(toggler, i){
				toggler.setStyle('background-position', '0 0');
			}
		});
		
		//anchors
		function checkHash(){
			var found = false;
			$$('h3.toggler a').each(function(link, i){
				if (window.location.hash.test(link.hash)){
					myAccordion.showThisHideOpen(i);
					found = true;
				}
			});
			return found;
		}

		if (!checkHash()) myAccordion.showThisHideOpen(0);
		

		}
