/***********************************************
* 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="http://www.masoncontractors.org/aboutus/aboutmcaa/index.php" title="About MCAA">About MCAA</a>'
menu1[1]='<a href="http://www.masoncontractors.org/aboutus/becomeamember/index.php" title="Become a Member">Become a Member</a>'
menu1[2]='<a href="http://www.masoncontractors.org/aboutus/mcaaboard/index.php" title="MCAA Board">MCAA Board</a>'
menu1[3]='<a href="http://www.masoncontractors.org/aboutus/executivestaff/index.php" title="Executive Staff">Executive Staff</a>'
menu1[4]='<a href="http://www.masoncontractors.org/aboutus/chapterinformation/index.php" title="Chapter Information">Chapter Information</a>'
menu1[5]='<a href="http://www.masoncontractors.org/aboutus/reportofthepresident/index.php" title="Report of the President">Report of the President</a>'
menu1[6]='<a href="http://www.masoncontractors.org/aboutus/keyaccomplishments/index.php" title="Key Accomplishments">Key Accomplishments</a>'
menu1[7]='<a href="http://www.masoncontractors.org/aboutus/industrydocuments/index.php" title="Industry Documents">Industry Documents</a>'
menu1[8]='<a href="http://www.masoncontractors.org/directoryofmembers/index.php" title="Find a Contractor">Find a Contractor</a>'
/* menu1[9]='<a href="http://www.masoncontractors.org/blog/" title="Executive Director&#39;s Blog">Executive Director&#39;s Blog</a>' */
menu1[10]='<a href="http://www.masoncontractors.org/aboutus/privacypolicy/index.php" title="Privacy Policy">Privacy Policy</a>'
menu1[11]='<a href="http://www.masoncontractors.org/aboutus/contactus/index.php" title="Contact Us">Contact Us</a>'

//Contents for menu 2
var menu2=new Array()
menu2[0]='<a href="http://www.masoncontractors.org/aboutmasonry/historyofmasonry/index.php" title="History of Masonry">History of Masonry</a>'
menu2[1]='<a href="http://www.masoncontractors.org/aboutmasonry/whymasonry/index.php" title="Why Masonry">Why Masonry</a>'
menu2[2]='<a href="http://www.masoncontractors.org/aboutmasonry/greenbuildingsystem/index.php" title="Green Building System">Green Building System</a>'
menu2[3]='<a href="http://www.masoncontractors.org/aboutmasonry/masonryglossary/index.php" title="Masonry Glossary">Masonry Glossary</a>'
menu2[4]='<a href="http://www.masoncontractors.org/aboutmasonry/masonryfacts/index.php" title="Masonry Facts">Masonry Facts</a>'
menu2[5]='<a href="http://www.masoncontractors.org/aboutmasonry/imagegallery/index.php" title="Image Gallery">Image Gallery</a>'
	
//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="http://www.masoncontractors.org/newsandevents/masonryheadlines/index.php" title="Masonry Headlines">Masonry Headlines</a>'
menu3[1]='<a href="http://www.masoncontractors.org/newsandevents/masonryheadlines/popular.php" title="Masonry Headlines">Most Viewed Headlines</a>'
menu3[2]='<a href="http://www.masoncontractors.org/newsandevents/eventcalendar/index.php" title="Event Calendar">Event Calendar</a>'
menu3[3]='<a href="http://convention.masoncontractors.org/" title="MCAA Convention">MCAA Convention</a>'
menu3[4]='<a href="http://www.masoncontractors.org/newsandevents/midyearmeeting/index.php" title="Midyear Meeting">Midyear Meeting</a>'
menu3[5]='<a href="http://www.masoncontractors.org/newsandevents/competitions/index.php" title="Competitions">Competitions</a>'
menu3[6]='<a href="http://www.masoncontractors.org/auction/index.php" title="Online Auction">Online Auction</a>'
menu3[7]='<a href="http://www.masonrymagazine.com/" title="Masonry Magazine">Masonry Magazine</a>'

//Contents for menu 4
var menu4=new Array()
menu4[0]='<a href="http://www.masonrysystems.org/" title="MasonrySystems.org">Masonry Systems</a>'
menu4[1]='<a href="http://www.masoncontractors.org/codesandstandards/technicalresources/index.php" title="Masonry Technical Resources">Masonry Technical Resources</a>'
menu4[2]='<a href="http://www.masoncontractors.org/codesandstandards/masonrymailbag/index.php" title="Masonry Mailbag">Masonry Mailbag</a>'
menu4[3]='<a href="http://www.masoncontractors.org/codesandstandards/wallbracingfaq/index.php" title="Wall Bracing FAQ">Wall Bracing FAQ</a>'
menu4[4]='<a href="http://www.masoncontractors.org/codesandstandards/modelordinances/index.php" title="Model Ordinances">Model Ordinances</a>'
	
//Contents for menu 5
var menu5=new Array()
menu5[0]='<a href="http://www.masoncontractors.org/governmentaffairs/legislativeconference/index.php" title="Masonry Legislative Conference">Masonry Legislative Conference</a>'
menu5[1]='<a href="http://www.masoncontractors.org/governmentaffairs/legislativeissues/index.php" title="Position Papers">Position Papers</a>'
menu5[2]='<a href="http://www.masoncontractors.org/governmentaffairs/regulatoryissues/index.php" title="OSHA Issues">OSHA Issues</a>'
menu5[3]='<a href="http://www.masoncontractors.org/governmentaffairs/letterstocongress/index.php" title="Letters to Congress">Letters to Congress</a>'
menu5[4]='<a href="http://www.masoncontractors.org/governmentaffairs/macpac/index.php" title="MACPAC">MACPAC</a>'
menu5[5]='<a href="http://www.masoncontractors.org/governmentaffairs/contactcongress/index.php" title="Contact Congress">Contact Congress</a>'
menu5[6]='<a href="http://www.masoncontractors.org/governmentaffairs/votingandregistration/index.php" title="Voting &amp; Registration">Voting &amp; Registration</a>'
	
//Contents for menu 6
var menu6=new Array()
menu6[0]='<a href="http://certification.masoncontractors.org/" title="Masonry Certification Program">Masonry Certification Program</a>'
menu6[1]='<a href="http://www.masoncontractors.org/newsandevents/educationalprograms/index.php" title="Educational Programs">Educational Programs</a>'
menu6[2]='<a href="http://certification.masoncontractors.org/education/index.php" title="Upcoming Education">Upcoming Education</a>'
menu6[3]='<a href="http://certification.masoncontractors.org/education/online.php" title="Online Education">Online Education</a>'
menu6[4]='<a href="http://www.masoncontractors.org/safety/safetylibrary/index.php" title="Safety Library">Safety Library</a>'
/* menu6[5]='<a href="http://www.masoncontractors.org/safety/oshamcaaalliance/index.php" title="OSHA-MCAA Alliance">OSHA-MCAA Alliance</a>' */
menu6[6]='<a href="http://www.masoncontractors.org/safety/oshacorrespondence/index.php" title="OSHA Correspondence">OSHA Correspondence</a>'
menu6[7]='<a href="http://www.masoncontractors.org/safety/onsiteconsultation/index.php" title="Onsite Consultation">Onsite Consultation</a>'

//Contents for menu 7
var menu7=new Array()
menu7[0]='<a href="http://careers.masoncontractors.org/" title="Career Center">Career Center</a>'
menu7[1]='<a href="http://careers.masoncontractors.org/post.cfm" title="Employers">Employers</a>'
menu7[2]='<a href="http://careers.masoncontractors.org/hr/jobs/" title="Post a Job">Post a Job</a>'
menu7[3]='<a href="http://careers.masoncontractors.org/search.cfm" title="Job Seekers">Job Seekers</a>'
menu7[4]='<a href="http://careers.masoncontractors.org/search" title="Search for Jobs">Search for Jobs</a>'
menu7[5]='<a href="http://careers.masoncontractors.org/apply/advertise.cfm" title="Post a Resume">Post a Resume</a>'
menu7[6]='<a href="http://www.masoncontractors.org/masonrycareers/findatrainingprogram/index.php" title="Find a Training Program">Find a Training Program</a>'
menu7[7]='<a href="http://www.masoncontractors.org/masonrycareers/careerinformation/index.php" title="Career Information">Career Information</a>'
menu7[8]='<a href="http://www.masoncontractors.org/masonrycareers/recruitingandtraining/index.php" title="Recruiting &amp; Training">Recruiting &amp; Training</a>'
menu7[9]='<a href="http://www.masoncontractors.org/masonrycareers/workforcedevelopmentinitiatives/index.php" title="Workforce Initiatives">Workforce Initiatives</a>'
	
//Contents for menu 8
var menu8=new Array()
menu8[0]='<a href="http://www.masoncontractors.org/resources/mcaabookstore/index.php" title="MCAA Bookstore">MCAA Bookstore</a>'
menu8[1]='<a href="http://www.masoncontractors.org/resources/buyersguide/index.php" title="Buyer&#39;s Guide">Buyer&#39;s Guide</a>'
menu8[2]='<a href="http://www.masoncontractors.org/resources/memberproductdiscounts/index.php" title="Product Discounts for Members">Product Discounts for Members</a>'
menu8[3]='<a href="http://www.masoncontractors.org/resources/mediacenter/index.php" title="Masonry Media Center">Masonry Media Center</a>'
menu8[4]='<a href="http://www.masoncontractors.org/resources/businessresources/index.php" title="Business Resources">Business Resources</a>'
menu8[5]='<a href="http://www.masoncontractors.org/resources/websitedesignservices/index.php" title="Website Design Services">Website Design Services</a>'
menu8[6]='<a href="http://www.masoncontractors.org/resources/advertisinginformation/index.php" title="Advertising Information">Advertising Information</a>'
menu8[8]='<a href="http://www.masoncontractors.org/resources/masonrymessageboard/index.php" title="Masonry Message Board">Masonry Message Board</a>'
menu8[9]='<a href="http://www.masoncontractors.org/resources/downloads/index.php" title="Downloads">Downloads</a>'
menu8[10]='<a href="http://www.masoncontractors.org/resources/industrylinks/index.php" title="Industry Links">Industry Links</a>'
		
var menuwidth='165px' //default menu width
var menubgcolor='#444444'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="no" //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")? 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="-500px"
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