/***********************************************
* 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
***********************************************/

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="/content/bls.html" title="The aims of the Society, its Honorary Members and Officers">About the BLS</a>'
menu1[1]='<a href="/content/blsmembership.html" title="What the Society does, its categories of membership and subscription rates">Membership</a>'
menu1[2]='<a href="/content/renewals.html" title="Renewing your membership">Renewals</a>'
menu1[3]='<a href="/content/documents/applicationForm.doc" title="A form" target="_blank">Membership Form</a>'
menu1[4]='<a href="/content/constitution.html" title="The Constitution of the Society">Constitution</a>'
menu1[5]='<a href="/content/geninf.html" title="Advice about identification, collecting, chemicals and the BLS mapping scheme">Information</a>'
menu1[6]='<a href="/content/events.html" title="Details of forthcoming BLS meetings, workshops and other courses">Meetings & Events</a>'
menu1[7]='<a href="/content/funds.html" title="The purpose of the fund, conditions and how to apply">Funds and Grants</a>'
menu1[8]='<a href="/content/obituaries.html" title="Obituaries of members of the Society">Obituaries</a>'

//Contents for menu 2
var menu2=new Array()
menu2[0]='<a href="/content/checklist.html" title="The official BLS list of accepted names of 2272 lichens and lichenicolous fungi, as text, xls and csv files. The introduction to the checklist loads rapidly. The list itself may take up to a minute to load">List of Lichens</a>'
menu2[1]='<a href="/content/synlist.html" title="A list of over 4447 lichen synonyms and misapplied names. The introduction to the list of synonyms loads rapidly. The list itself may take up to a minute to load">Synonyms</a>'
menu2[2]='<a href="http://www.brad.ac.uk/acad/envsci/research/herbarium/database.php" target="_blank" title="List of Published Distribution Maps of Lichens of the British Isles">Distribution Maps</a>'
menu2[3]='<a href="/content/herbarium.html" title="The BLS and BM herbaria have authenticated specimens for loan">Herbaria - BLS, BM</a>'

//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="/content/chemical.html" title="Easily obtainable alternatives are suggested">Identification Reagents</a>'
menu3[1]='<a href="/content/referees.html" title="Listing of members with particular responsibilities and interests">Local Contacts</a>'
menu3[2]='<a href="/content/lichenid.html" title="A multi-access computer key to the Lichens of Great Britain and Ireland">Lichen Identifier</a>'
menu3[3]='<a href="/content/public.html#dow" title="ID Downloads">ID Downloads</a>'

//Contents for menu 4
var menu4=new Array()
menu4[0]='<a href="/content/public.html" title="Whats available from the Society">Publications</a>'
menu4[1]='<a href="/content/librar.html" title=" The Societys library is housed at the Collections Resources Store of Leicester Museums Service">BLS Library</a>'
menu4[2]='<a href="/content/refren.html" title="A list of publications, mostly related to the British lichen flora, in nine categories">References</a>'
menu4[3]='<a href="/content/survey.html" title=" A catalogue of unpublished lichen surveys of Great Britain and Ireland (listed by county), reports on priority species and related grey literature">Grey Literature</a>'
menu4[4]='<a href="/content/others.html" title="Ties, sweatshirts and other items with the BLS logo, as well as handlenses.">Items for Sale</a>'


//Contents for menu 5
var menu5=new Array()
menu5[0]='<a href="/content/proj.html" title=" Ten simple projects for students of all of ages">Projects for Schools</a>'
menu5[1]='<a href="/content/sumschol.html" title="Support for student to conduct research on lichens during the summer vacatio">Vacation Scholarship</a>'
menu5[2]='<a href="http://internt.nhm.ac.uk/jdsml/nature-online/lichen-id-guide/index.dsml" target="_blank" title="A guide to lichens on twigs. This site provides a user-friendly guide to over 60 lichens which can be found growing on twigs. With the help of our fully illustrated multi-access key we hope you will find identification of these unique organisms easy and fun">Lichen Twig Project</a>'


//Contents for menu 6
var menu6=new Array()
menu6[0]='<a href="/content/chlich.html" title="A 1994 article about the importance of the churchyard habitat.">Churchyard Lichens</a>'
menu6[1]='<a href="/content/documents/chyard.pdf" title="The churchyard lichen card for recording lichens in individual churchyards">Recording Card - Churchyards</a>'
menu6[2]='<a href="/content/churchyard.html" title="A comprehensive article of general interest about lichens in churchyards, with references and contacts">Fact Sheet</a>'
menu6[3]='<a href="/content/diocesan.html" title="List of lichen contacts for each diocese">Diocesan Contacts</a>'
menu6[4]='<a href="/content/mmade.html" title="How to encourage (and remove) lichens">Man Made Surfaces</a>'
menu6[5]='<a href="/content/churchconservation.html" title="Churchyard Lichens and their Conservation">Churchyard Conservation</a>'

//Contents for menu 7
var menu7=new Array()
menu7[0]='<a href="/content/databases.html" title="An outline of the comprehensive data recording system which has been adopted by the BLS">Databases</a>'
menu7[1]='<a href="/content/documents/chyard.pdf" title="The churchyard lichen card for recording lichens in individual churchyards in the British Isles">Recording Card - Churchyards</a>'
menu7[2]='<a href="/content/documents/general.pdf" title="The master lichen card for recording lichens in the British Isles">Recording Card - Master</a>'
menu7[3]='<a href="/content/documents/eumap.pdf" title="A 20 page .pdf file">European Guide for Mapping</a>'


		
var menuwidth='150px' //default menu width
var menubgcolor='#e5e5e5'  //menu bgcolor
var disappeardelay=500  //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" class="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 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