<!--
// MAIN MENU ====================================
  if (document.images) {
    m_01b=new Image(28,213)
    m_01b.src="images/nds_nav_hm_ms.jpg"
    m_02b=new Image(28,213)
    m_02b.src="images/nds_nav_abt_ms.jpg"
    m_03b=new Image(28,213)
    m_03b.src="images/nds_nav_memb_ms.jpg"
    m_04b=new Image(28,213)
    m_04b.src="images/nds_nav_award_ms.jpg"
    m_05b=new Image(37,161)
    m_05b.src="images/nds_nav_scholar_ms.jpg"
    m_06b=new Image(28,213)
    m_06b.src="images/nds_nav_intern_ms.jpg"
	m_07b=new Image(28,213)
    m_07b.src="images/nds_nav_events_ms.jpg"
	m_08b=new Image(28,213)
    m_08b.src="images/nds_nav_news_ms.jpg"
	m_09b=new Image(28,213)
    m_09b.src="images/nds_nav_museum_ms.jpg"
	m_10b=new Image(28,213)
    m_10b.src="images/nds_nav_buy_ms.jpg"
	m_11b=new Image(28,213)
    m_11b.src="images/nds_nav_cont_ms.jpg"
	m_12b=new Image(28,213)
    m_12b.src="images/nds_nav_impact_ms.jpg"
	m_13b=new Image(28,213)
    m_13b.src="images/nds_nav_donate_ms.jpg"
    m_14b=new Image(28,213)
    m_14b.src="images/nds_nav_links_ms.jpg"

  } else {
    m_01b=""
    document.nds01=""
    m_02b=""
    document.nds02=""
    m_03b=""
    document.nds03=""
    m_04b=""
    document.nds04=""
    m_05b=""
    document.nds05=""
    m_06b=""
    document.nds06=""
	m_07b=""
    document.nds07=""
	m_08b=""
    document.nds08=""
	m_09b=""
    document.nds09=""
	m_10b=""
    document.nds10=""
	m_11b=""
    document.nds11=""
	m_12b=""
    document.nds12=""
	m_13b=""
    document.nds13=""
    m_14b=""
    document.nds14=""

  }

// SUB-MENU  ====================================
// About NDS
var menu1 = new Array()
menu1[0]='<a href="mission_statement.php">Our Mission</a>'
menu1[1]='<a href="nds_history.php">History of National Dairy Shrine</a>'
menu1[2]='<a href="past_presidents.php">NDS Past Presidents / Secretaries</a>'

// Membership
var menu2 = new Array()
menu2[0]='<a href="membership_information.php">Membership Information</a>'
menu2[1]='<a href="signup_membership.php">Sign-Up for Membership</a>'
menu2[2]='<a href="state_membership_chair.php">State Membership Chair</a>'

// Awards
var menu3 = new Array()
menu3[0]='<a href="download_award_app.php">Download Award Applications</a>'
menu3[1]='<a href="past_honorees.php">View Honorees of the Past</a>'

// Scholarships
var menu4 = new Array()
menu4[0]='<a href="download_scholarship_app.php">Download Scholarship Applications</a>'
menu4[1]='<a href="past_scholarship.php">View Past Scholarship Winners</a>'

// Internship Programs
var menu5 = new Array()
menu5[0]='<a href="internship_opportunities.php">Internship Opportunities</a>'
menu5[1]='<a href="apply_internship.php">Post an Internship</a>'

// Newsletters
var menu6 = new Array()
menu6[0]='<a href="pdf_chronicles/0212_NDS_Chronicle_WEB.pdf" target="_blank">Current Newsletters</a>'
menu6[1]='<a href="chronical_archives.php">Chronical Archives</a>'

// NDS Museum
var menu7 = new Array()
menu7[0]='<a href="about_museum.php">About NDS Museum</a>'
menu7[1]='<a href="museum_hours.php">Museum Hours</a>'

// Online Store
var menu8 = new Array()
menu8[0]='<a href="products.php">View Available Products</a>'
menu8[1]='<a href="order_form_notecards.php">Notecards</a>'
menu8[2]='<a href="order_form_hist.php">History of Dairy Marketing <br> &nbsp; in America</a>'
menu8[3]='<a href="order_form_50yrs.php">First 50 Years</a>'
menu8[4]='<a href="order_form_pins.php">Pins</a>'

// Contact Us
var menu9 = new Array()
menu9[0]='<a href="email_nds.php">E-mail NDS Office</a>'
menu9[1]='<a href="officers_committee.php">Officers / Exec. Committee</a>'

		
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=-20 //horizontal offset of menu from default location. (0-5 is a good value)

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width: 160px" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="top")? 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
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-obj.offsetWidth < 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 menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
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")+obj.offsetWidth+horizontaloffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"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)
}
// -->
