//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="http://www.mymdforum.com/donsstore.htm">About Dons Store</a>'
menu1[1]='<a href="http://www.mymdforum.com/whois.htm">Who is Don Vickers</a>'

		
//Contents for menu 2
var menu2=new Array()
menu2[0]='<a target="_blank" href="http://astore.amazon.com/theonramppubl-20?_encoding=UTF8&node=2">Metal Detectors</a>'
menu2[1]='<a target="_blank" href="http://astore.amazon.com/theonramppubl-20?_encoding=UTF8&node=1">Detecting Accessories</a>'
menu2[2]='<a target="_blank" href="http://astore.amazon.com/theonramppubl-20?_encoding=UTF8&node=4">Coin Collecting</a>'
menu2[3]='<a target="_blank" href="http://astore.amazon.com/donsbooks04-20?_encoding=UTF8&node=1">Metal Detecting Books</a>'
menu2[4]='<a target="_blank" href="http://astore.amazon.com/donsbooks04-20?_encoding=UTF8&node=3">Civil War Books</a>'
menu2[5]='<a target="_blank" href="http://astore.amazon.com/donsbooks04-20?_encoding=UTF8&node=5">Coin Collecting Books</a>'
menu2[6]='<a target="_blank" href="http://astore.amazon.com/donsbooks04-20?_encoding=UTF8&node=7">Ghost Town Books</a>'


//Contents for menu 5
var menu5=new Array()
menu5[0]='<a href="http://www.mymdforum.com/pproperty.htm">How to Get Permission on Private Property</a>'
menu5[1]='<a href="http://www.mymdforum.com/cleancoins.htm">How to Clean your Found Coins</a>'
menu5[2]='<a href="http://www.mymdforum.com/bring.htm">What to Bring Metal Detecting</a>'

//Contents for menu 4
var menu4=new Array()
menu4[0]='<a href="http://www.mymdforum.com/news/quest.htm">FMDAC Newsletters</a>'
menu4[1]='<a href="http://www.mymdforum.com/news/chapternews.htm">Chapter Newsletters</a>'

//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="http://www.mymdforum.com/contacts.htm">FMDAC Contacts</a>'
menu3[1]='<a href="http://www.mymdforum.com/contactus/officers.htm">FMDAC Officers</a>'
menu3[2]='<a href="http://www.mymdforum.com/contactus/chapterpresidents.htm">FMDAC Board</a>'
menu3[3]='<a href="http://www.mymdforum.com/contactus/nonboardcontacts.htm">FMDAC Non-Board</a>'
menu3[4]='<a href="http://www.senate.gov/general/contact_information/senators_cfm.cfm">U.S. Senators</a>'
menu3[5]='<a href="http://www.house.gov/writerep">U.S. Representatives</a>'

//Contents for menu 6
var menu6=new Array()
menu6[0]='<a target="_blank" href="http://www.mwas.org">Mid-Western Artifact Society Club</a>'
menu6[1]='<a target="_blank" href="http://www.FMDAC.org">Federation of Metal Detecting</a>'
menu6[2]='<a href="http://www.mymdforum.com/parks.htm">State Parks</a>'
menu6[3]='<a target="_blank" href="http://www.fmdac.org/mymap/default.html">Locations of Metal Detecting Clubs</a>'


//Contents for menu 7
var menu7=new Array()
menu7[0]='<a href="http://www.mymdforum.com/hunts/treasurehunts.htm">Hunts</a>'
menu7[1]='<a href="http://www.mymdforum.com/hunts/huntwinners.htm">2007 Spring Winners</a>'
menu7[2]='<a href="http://www.mymdforum.com/hunts/2007-May-Convention/photos/2007-convention.html">2007 Spring Photo Show</a>'
menu7[3]='<a href="http://www.mymdforum.com/hunts/06-fall-winners.htm">2006 Fall Winners</a>'
menu7[4]='<a href="http://www.mymdforum.com/hunts/2006-Fall-Convention/images-2006/2006-convention.html">2006 Fall Photo Show</a>'
menu7[5]='<a href="http://www.mymdforum.com/community/photoalbum.htm">2005 Photo Album</a>'

//Contents for menu 8
var menu8=new Array()
menu8[0]='<a href="http://www.mymdforum.com/join.htm">Join US</a>'
menu8[1]='<a target="_blank" href="http://www.mymdforum.com/forms/08-Membership-Application.pdf">Club Membership</a>'
menu8[2]='<a target="_blank" href="http://www.mymdforum.com/forms/roster1.xls">Club Roster 1</a>'
menu8[3]='<a target="_blank" href="http://www.mymdforum.com/forms/roster2.xls">Club Roster 2</a>'
menu8[4]='<a target="_blank" href="http://www.mymdforum.com/forms/indmemb.pdf">Independent Membership</a>'

//Contents for menu 9
var menu9=new Array()
menu9[0]='<a href="http://www.mymdforum.com/news/quest.htm">FMDAC Newsletters</a>'
menu9[1]='<a href="http://www.mymdforum.com/news/chapternews.htm">Chapter Newsletters</a>'

//Contents for menu 10
var menu10=new Array()
menu10[0]='<a href="http://www.mymdforum.com/community/corpsponsora.html">Corporation</a>'
menu10[1]='<a href="http://www.mymdforum.com/community/corpsponsorb.html">Distributors</a>'
menu10[2]='<a href="http://www.mymdforum.com/community/dealersponsor.html">Dealers</a>'
menu10[3]='<a href="http://www.mymdforum.com/community/individualsponsor.html">Individual</a>'
menu10[4]='<a href="http://www.mymdforum.com/community/sponsors.htm">Sponsor Program</a>'
menu10[5]='<a target="_blank" href="http://www.mymdforum.com/forms/08-FMDAC-Sponsorship-Application.pdf">Sponsor Form</a>'
menu10[6]='<a href="http://www.mymdforum.com/community/questprogram.html">Advertising Program</a>'

//Contents for menu 11
var menu11=new Array()
menu11[0]='<a href="http://www.arra-access.com/arra/home.html">ARRA-Americans for Responsible Recreational Access</a>'
menu11[1]='<a href="http://www.allianceforamerica.org">AFA-Alliance For America</a>'
menu11[2]='<a href="http://www.landrights.org">ALRA-American Land Rights Association</a>'
menu11[3]='<a href="http://www.plp2.org/index.htm">PLP-Public Lands For The People</a>'
menu11[4]='<a href="http://www.sharetrails.org">BRC-Blue Ribbon Coalition</a>'
menu11[5]='<a href="http://www.nlrl.org">NLRL-National Land Rights League</a>'
menu11[6]='<a href="http://www.asaa-persimmonpress.com/index.html">ASSA-American Society For Amateur Archaeology</a>'
menu11[7]='<a href="http://www.blm.gov/nhp/index.htm">BLM-Bureau Of Land Management</a>'
menu11[8]='<a href="http://www.fs.fed.us/">United States Forest Service</a>'
menu11[9]='<a href="http://www.nps.gov/">National Parks Service</a>'
menu11[10]='<a href="http://www.nps.gov/phso/archeology/ARPADOC.htm">Archaeological Resources Protection Act</a>'
menu11[11]='<a href="http://www.cr.nps.gov/local-law/43cfr7.htm">Archaeological Resources Protection Act Regulation</a>'

var menuwidth='400px' //default menu width
var menubgcolor='white'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editing 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")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : 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 windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
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
