	var continueSwap = true;

	var swapCompleted = true;



	YAHOO.util.Event.addListener('nav-toggle', 'click', openMenu);

	YAHOO.util.Event.addListener('church', 'mouseover', showChurch);

	YAHOO.util.Event.addListener('building-relationships', 'mouseover', showBuildingRelationships);

	YAHOO.util.Event.addListener('youth-development', 'mouseover', showYouthDevelopment);

	YAHOO.util.Event.addListener('life-lines', 'mouseover', showLifeLines);

	YAHOO.util.Event.addListener('growing-people', 'mouseover', showGrowingPeople);

	YAHOO.util.Event.addListener('summary', 'mouseover', stopMenuSwap);

	YAHOO.util.Event.addListener(['church', 'building-relationships', 'youth-development', 'life-lines', 'growing-people', 'summary'], 'mouseout', delayMenuSwap);



	function openMenu() {

		YAHOO.util.Event.removeListener('nav-toggle', 'click', openMenu);

		// open menu

		YAHOO.util.Dom.setStyle(getElementsByClass('nav-button', document, 'a'), 'opacity', 0);

		YAHOO.util.Dom.setStyle('root-menu', 'height', 0);

		YAHOO.util.Dom.setStyle('root-menu', 'display', 'block');

		YAHOO.util.Dom.setStyle('nav-toggle', 'visibility', 'hidden');

		var animOpen = new YAHOO.util.Anim('root-menu', { height: {from: 0, to: 280} }, 1, YAHOO.util.Easing.easeBoth);

		animOpen.onComplete.subscribe(showMenu);

		animOpen.animate();

	}

	

	function showMenu() {

		YAHOO.util.Dom.setStyle(getElementsByClass('nav-button', document, 'a'), 'display', 'block');

		YAHOO.util.Dom.setStyle('summary', 'display', 'block');

		var animReveal = new YAHOO.util.Anim(getElementsByClass('nav-button', document, 'a'), { opacity: {from: 0, to: 0.7}}, 0.5, YAHOO.util.Easing.easeNone);

		animReveal.onComplete.subscribe(defaultText);

		animReveal.animate();

		YAHOO.util.Event.addListener('nav-toggle', 'click', openMenu);

	}



	function animateSwap(html) {

		continueSwap = false;

		$('summary').innerHTML = html;

	}



	function showChurch() {

		animateSwap($('churchSummary').innerHTML);

	}



	function showBuildingRelationships() {

		animateSwap($('buildingRelationshipsSummary').innerHTML);

	}



	function showYouthDevelopment() {

		animateSwap($('youthDevelopmentSummary').innerHTML);

	}



	function showLifeLines() {

		animateSwap($('lifeLinesSummary').innerHTML);

	}



	function showGrowingPeople() {

		animateSwap($('growingPeopleSummary').innerHTML);

	}

	

	function showLSM() {

		animateSwap($('lsmSummary').innerHTML);

	}

	

	function defaultText() {

		if (continueSwap) {

			showDefault();

		}

		swapCompleted = true;

	}



	

	function delayMenuSwap() {

		continueSwap = true;

		if (swapCompleted) {

			swapCompleted = false;

			setTimeout('defaultText()', 500);

		}

	}

	

	function stopMenuSwap() {

		continueSwap = false;

	}



	function go()

	{

		box = document.getElementById("quickjumpform").navi;

		destination = box.options[box.selectedIndex].value;

		if (destination) location.href = destination;	

	}

