	/***********************************************
	* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
	* This notice MUST stay intact for legal use
	* Visit http://www.dynamicdrive.com/ for full source code
	***********************************************/
	
	/*
	2006-12-05
	Note: This script has been edited by Tony Colter 
	(tony.colter@tonycolter.com) to work as a pop-right menu system 
	specifically for this site instead of the original pop-down 
	system that was in place.
	*/
	
	// Warn Mac IE Users
	if (navigator.appName == "Microsoft Internet Explorer"&& navigator.appVersion.indexOf("Mac") != -1 ) {
		alert("Warning: The navigation system at the left probably isn't working on your computer. This may be modified at a later date, but for now, please use the row of links at the bottom. Thank you.");
	}
	
	//Contents for "District" menu
	var menu1=new Array()
	menu1[0]='<a href="http://www.monaz.org/ss/churches.asp">Churches</a>' 
	menu1[1]='<a href="http://www.monaz.org/staff.htm">District Team Leaders</a>'
	menu1[2]='<a href="http://www.monaz.org/directions.htm">Contact Info. & Directions</a>'
	menu1[3]='<a href="http://www.monaz.org/Map.pdf">District Map</a>'
	menu1[4]='<a href="http://monaz-ds.blogspot.com/">BLOG - Michael Palmer, DS</a>'
	menu1[5]='<a href="http://modistnaz.blogspot.com/">BLOG - Missouri District</a>'
	menu1[6]='<a href="http://www.monaz.org/Messenger/Messenger.htm">The Messenger</a>'
	menu1[7]='<a href="http://www.eventslink.net/ems/index.php?CID=243">District Calendar</a>'
	menu1[8]='<a href="http://www.pinecrestcamp.org/">Pinecrest Campground</a>'
	//menu1[9]='<a href="/Assembly/2006/Pictures.htm">Assembly Pictures</a>'
	//menu1[10]='<a href="/Camp_Meeting/2007/Main.htm">Camp Meeting</a>'
	//menu1[11]='<a href="/assembly/2007/forms/main.htm">Pastor\'s Report Forms</a>'
	//menu1[12]='<a href="http://www.monaz.org/assembly/2007/2007-DSReport.pdf">Rev. Palmer\'s D.S\'s Report</a>'
	menu1[13]='<a href="http://www.monaz.org/forms/cam.htm">Clergy Appreication Month</a>'



	//Contents for "Sunday School" menu
	var menu2=new Array()
	menu2[0]='<a href="http://www.monaz.org/ss/">District SS Page</a>'
	menu2[1]='<a href="http://www.nazarene.org/ssm/">General SS Page</a>'
	menu2[2]='<a href="http://www.monaz.org/ss/monthly.asp">Sunday School Statistics</a>'
	menu2[3]='<a href="http://www.monaz.org/ss/login.asp">SS Monthly Reporting Login</a>'
	menu2[4]='<a href="http://www.monaz.org/forms/ssdrive.htm">2007 Fall S.S. Drive</a>'
	menu2[5]='<a href="http://www.modistkids.org/">Children\'s Ministries</a>'
	menu2[6]='<a href="http://web.mac.com/cherig/iWeb/Missouri%20District%20Children%27s%20Ministries/Camp.html">Middler and Pre-Teen Camp</a>'
	menu2[7]='<a href="http://www.pinecrestcamp.org/MensRetreat/">Men\'s Retreat</a>'
	menu2[8]='<a href="http://www.gcnc.org/~mowomen/index.php?page=retreat-07">Women\'s Retreat</a>'
	menu2[9]='<a href="http://www.monazsingles.org/">Single\'s Ministry</a>'
	menu2[10]='<a href="http://www.monaz.org/dssm/10waystoreachkids.pdf">"Kid Friendly Church List"</a>'
	//menu2[11]='<a href="http://www.monaz.org/DSSM/Talent/2006.htm">Children\'s Talent</a>'

	
	//Contents for "NYI" menu
	var menu3=new Array()
	menu3[0]='<a href="http://www.monyi.org">Main NYI Page</a>'
	menu3[1]='<a href="http://www.monyi.org/zones">NYI Zone Directory</a>'
	menu3[2]='<a href="http://www.moteencamp.com">Teen Camps</a>'
	menu3[3]='<a href="http://www.monyi.org/category/district-convention/">District Convention</a>'
	menu3[4]='<a href="http://www.monyi.org/blast/">BLAST</a>'
	menu3[5]='<a href="http://www.monyi.org/cog/">COG</a>'
	menu3[6]='<a href="http://www.monyi.org/category/newsletter/">NYI Newsletter</a>'
	//menu3[7]='<a href="/nyi/NYC/main.htm">NYC</a>'
	menu3[8]='<a href="http://www.monyi.org/max">MNU Max</a>'
	menu3[9]='<a href="http://www.monyi.org/scholarships/">MNU Scholarship</a>'
	menu3[10]='<a href="http://www.monyi.org/youthserve/">Youthserve</a>'
	menu3[11]='<a href="http://www.monyi.org/nyi/Quizzing">Quizzing</a>'
	menu3[12]='<a href="http://www.monyi.org/nyi/college-career">College &amp; Career</a>'
	menu3[13]='<a href="http://www.nyitoday.org/jfang.php">Teen Missions Project</a>'
	menu3[14]='<a href="http://www.monyi.org/category/pk-retreat/"P.K. Retreat</a>'
	//menu3[15]='<a href="http://www.monaz.org/Camp_Meeting/2007/Choir.htm">Camp Meeting Choir</a>'

			
	//Contents for "NMI" menu
	var menu4=new Array()
	menu4[0]='<a href="http://www.nazareneworldmission.org/">General NMI Site</a>'
	menu4[1]='<a href="http://www.nazarenemissions.org/default.aspx?pid=14">Prayer Mobilization Line</a>'
	menu4[2]='<a href="http://ext.nazarene.org/mpo/index.html">Missionary Profiles</a>'
	menu4[3]='<a href="http://www.monaz.org/forms/LINKS.pdf">District LINKS Booklet</a>'
	menu4[4]='<a href="http://www.indianschool.org/">Children\'s Mission Project</a>'
	menu4[5]='<a href="http://ext.nazarene.org/mpo/pb.exe?job=fp&rgn=NN&key=12329">Missionaries: Bruce and Cinda McKellips</a>'
	menu4[6]='<a href="http://www.hallupdate.blogspot.com/">Missionaries: Stan & Sherri Hall</a>'
	menu4[7]='<a href="http://greetings.riversongs.com/holidaycards/dontwait.html ">"Don\'t Wait" Video</a>'

	
	
	//Contents for "Nazarene" menu
	var menu5=new Array()
	menu5[0]='<a href="http://www.nazarene.org">Nazarene Headquarters</a>'
	//menu5[1]='<a href="http://nazarene.org/gensec/we_believe.html">Articles of Faith</a>'
	menu5[2]='<a href="http://www.ncnnews.org/">Nazarene News</a>'
	menu5[3]='<a href="http://www.nazdistricts.org/">Nazarene Districts Directory</a>'
	menu5[4]='<a href="http://www.nazarene.org/worship/index.html">Find A Local Church</a>'
	menu5[5]='<a href="http://www.nphdirect.com">Nazarene Publishing House</a>'
	menu5[6]='<a href="http://www.nph.com/nphweb/html/h2ol/index.jsp">Holiness Today</a>'
	menu5[7]='<a href="http://www.growmagazine.org/">GROW Magazine</a>'
	menu5[8]='<a href="http://www.mnu.edu/">Mid-America Nazarene University</a>'
	menu5[9]='<a href="http://www.nbc.edu/">Nazarene Bible College</a>'
	menu5[10]='<a href="http://www.nts.edu/">Nazarene Theological Seminary</a>'
	menu5[11]='<a href="http://nazhq020.nazarene.org/giving/login.html">Global Treasurer\'s Login</a>'

	//Contents for "Pastors" menu
	var menu6=new Array()
	menu6[0]='<a href="http://www.monaz.org/pastors/pop/main.htm">POP Registration</a>'
	//menu6[1]='<a href="http://www.monaz.org/pastors/fall_retreat/registration.htm">Pastor\'s Fall Retreat</a>'
	//menu6[2]='<a href="http://www.monaz.org/forms/Prayer_Retreat.htm">Pastor\'s Prayer Retreat</a>'
    menu6[3]='<a href="http://www.harvesternazarene.com/harvester/old/Monazclsstat.html">Board of Ministerial Studies</a>'
    //menu6[4]='<a href="http://www.monaz.org/forms/credentials/main.htm">Credentials Board Info.</a>'
    //menu6[5]='<a href="http://www.monaz.org/pastors/pop/iceberg.htm"><u>Iceberg</u> Order Form</a>'
    //menu6[7]='<a href="http://www.monaz.org/pastors/spring_advance/registration.htm">Spring Advance Registration</a>'	
 	//menu6[8]='<a href="http://www.monaz.org/pastors/directory_updates.htm">Pastor\'s Directory Info.</a>'
    //menu6[9]='<a href="/assembly/2007/forms/main.htm">Pastor\'s Report Forms</a>'

	//Contents for "Forms" menu
	var menu7=new Array()
	menu7[0]='<a href="http://www.monaz.org/forms/08Budgets.pdf">2008 Budgets</a>'
	menu7[1]='<a href="http://www.monaz.org/forms/reimbursments.pdf">Reimbursment Form</a>'
	menu7[2]='<a href="http://www.monaz.org/forms/cam.htm">Clergy Appreciation Month</a>'
	    menu6[6]='<a href="http://www.monaz.org/forms/media.pdf">DVDs and Videos</a>'

	
	var menuwidth='165px' //default menu width
	var menubgcolor='#ffffdf'  //menu bgcolor
	var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
	var hidemenu_onclick="yes" //hide menu when user clicks within menu?
	
	/////No further editting needed
	
	
	var ie4=document.all
	var ns6=document.getElementById&&!document.all
	
	if (ie4||ns6)
	document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
	
	function getposOffset(what, offsettype){
	var totaloffset=(offsettype=="left")? 23 : what.offsetTop;
	var parentEl=what.offsetParent;
	while (parentEl!=null){
	totaloffset=(offsettype=="left")? totaloffset+23 : totaloffset+parentEl.offsetTop;
	parentEl=parentEl.offsetParent;
	}
	return totaloffset;
	}
	
	
	function showhide(obj, e, visible, hidden, menuwidth){
	if (ie4||ns6)
	dropmenuobj.style.left=dropmenuobj.style.top=-500
	if (menuwidth!=""){
	dropmenuobj.widthobj=dropmenuobj.style
	dropmenuobj.widthobj.width=menuwidth
	}
	if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
	obj.visibility=visible
	else if (e.type=="click")
	obj.visibility=hidden
	}
	
	function iecompattest(){
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
	}
	
	function clearbrowseredge(obj, whichedge){
	var edgeoffset=0
	if (whichedge=="rightedge"){
	var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
	dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
	if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
	edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
	}
	else{
	var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
	var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
	dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
	if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
	edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
	if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
	edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
	}
	}
	return edgeoffset
	}
	
	function populatemenu(what){
	if (ie4||ns6)
	dropmenuobj.innerHTML=what.join("")
	}
	
	
	function dropdownmenu(obj, e, menucontents, menuwidth){
	if (window.event) event.cancelBubble=true
	else if (e.stopPropagation) e.stopPropagation()
	clearhidemenu()
	dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
	populatemenu(menucontents)
	
	if (ie4||ns6){
	showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
	dropmenuobj.x=getposOffset(obj, "left")
	dropmenuobj.y=getposOffset(obj, "top")
	dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
	dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
	}
	
	return clickreturnvalue()
	}
	
	function clickreturnvalue(){
		if (ie4||ns6) return false
		else return true
	}
	
	function contains_ns6(a, b) {
		while (b.parentNode)
		if ((b = b.parentNode) == a)
			return true;
			return false;
	}
	
	function dynamichide(e){
		if (ie4&&!dropmenuobj.contains(e.toElement))
			delayhidemenu()
		else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
			delayhidemenu()
	}
	
	function hidemenu(e){
		if (typeof dropmenuobj!="undefined"){
			if (ie4||ns6)
				dropmenuobj.style.visibility="hidden"
		}
	}
	
	function delayhidemenu(){
		if (ie4||ns6)
			delayhide=setTimeout("hidemenu()",disappeardelay)
	}
	
	function clearhidemenu(){
		if (typeof delayhide!="undefined")
			clearTimeout(delayhide)
	}
	
	if (hidemenu_onclick=="yes")
		document.onclick=hidemenu



