
/***********************************************
* AnyLink Vertical Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/


//menu 1
var menu1=new Array()
menu1[0]='<a href="/html/leadership_alumnifeedback.cfm"><strong> Alumni Feedback Form </strong></a>'
menu1[1]='<a href="/html/leadership_bclp.cfm"><strong> Blandin Community Leadership Program </strong></a>'
menu1[2]='<a href="/html/leader_bclp_impact.cfm"><img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> Impact Stories</a>'
menu1[3]='<a href="/html/leader_bclp_brochures.cfm"><img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> Brochures</a>'
menu1[4]='<a href="/html/leader_bclp_apply.cfm"><img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> Application Process</a>'
menu1[5]='<a href="/news/newsroom.cfm"><img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> News Releases</a>'
menu1[6]='<a href="/html/leader_comm_leader.cfm"><img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> Community Leader</a>'
menu1[7]='<a href="/html/leader_bclp_staff.cfm"><img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> Staff Roster</a>'
menu1[8]='<a href="/html/leader_bclp_preretreat.cfm"><img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> Pre-Retreat Assignments</a>'
menu1[9]='<a href="/html/leader_bclp_comm_served.cfm"><img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> Communities Served</a>'
menu1[10]='<a href="/html/leadership_pil.cfm"><strong> BCLP: Partners in Leadership </strong></a>'
menu1[11]='<a href="/html/leader_pil_impact.cfm"><img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> Impact Stories</a>'
menu1[12]='<a href="/html/leader_pil_apply.cfm"><img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> Application Process</a>'
menu1[13]='<a href="/news/newsroom.cfm"><img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> News Releases</a>'
menu1[14]='<a href="/html/leadership_resources.cfm"><strong> Resources </strong></a>'
menu1[15]='<a href="/bfleader/Bfleader.cfm"><strong> Trainer Materials </strong></a>'

//menu 2
var menu2=new Array()
menu2[0]='<a href="/html/grants.cfm">About Blandin Foundation Grant Making</a>'
menu2[1]='<a href="/html/grants2_recent.cfm">Recent Grants</a>'
menu2[2]='<a href="/html/grants2_commitment.cfm">Our Commitment and Funding Priorities</a>'
menu2[3]='<a href="/html/grants2_evaluation.cfm">Evalution Outcomes</a>'
menu2[4]='<a href="/html/grants2_scholarships.cfm">Education and Early Childhood</a>'
menu2[5]='<a href="/html/grants2_eligibility.cfm">Grant Eligibiility, Requirements and other Information</a>'
menu2[6]='<a href="/html/grants2_app_process.cfm">Applying for a Blandin Foundation Grant</a>'
menu2[7]='<a href="/html/grants2_info.cfm">Information for Current Grantees</a>'
menu2[8]='<a href="/html/grants2_examples.cfm">Examples of Strategic Grants</a>'
menu2[9]='<a href="/html/children.cfm"><strong> Children First </strong> </a>'
menu2[10]='<a href="/html/child_earlycoal.cfm"><img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> Early Childhood Coalition</a>'
menu2[11]='<a href="/html/child_earlycoal_meeting.cfm"><img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" />  Meeting Schedules</a>'
menu2[12]='<a href="/html/child_events.cfm"><img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> Upcoming Events</a>'
menu2[13]='<a href="/html/child_babysteps.cfm"><img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> Baby Steps Boutique</a>'
menu2[14]='<a href="/html/child_stepahead.cfm"><img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> Step Ahead Parent Room</a>'
menu2[15]='<a href="/html/child_invest_early.cfm"><img src="/images/arrow.gif" alt=">" width="8" height="10" border="0" /> Invest Early</a>'

//menu 3
var menu3=new Array()
menu3[0]='<a href="/html/public_bb_cbr.cfm"> Broadband Community Resource Program</a>'
menu3[1]='<a href="/html/public_bb_ls_oafs.cfm"> Light Speed and Open Access Feasibility Study Programs</a>'
menu3[2]='<a href="http://blandinonbroadband.wordpress.com/">Blandin on Broadband Blog</a>'
menu3[3]='<a href="http://www.blandinfoundation.org/bsite/bbsite.html"><em>Get Broadband</em> Program</a>'
menu3[4]='<a href="/html/public_bb_conferences.cfm">Conferences &amp; Events</a>'
menu3[5]='<a href="/bsite/enewsletter.htm">Broadband Newsletter</a>'
menu3[6]='<a href="/html/public_bb_resources.cfm">Reports &amp; Resources</a>'

//menu 4
var menu4=new Array()
menu4[0]='<a href="/html/public_vital_projects_08a.cfm">Projects</a>'
menu4[1]='<a href="http://vfvc.wordpress.com">VFVC Blog</a>'
menu4[2]='<a href="/html/public_vital_conf_new.cfm">Conferences &amp; Events</a>'
menu4[3]='<a href="/html/public_vital_news_main.cfm">VFVC Newsletter</a>'
menu4[4]='<a href="/html/public_vital_links.cfm">Resources &amp; Publications</a>'

// menu 5
// var menu5=new Array()
// menu5[0]='<a href="/html/child_earlycoal.cfm">Early Childhood Coalition</a>'
// menu5[1]='<a href="/html/child_events.cfm">Upcoming Events</a>'
// menu5[2]='<a href="/html/child_babysteps.cfm">Baby Steps Boutique</a>'
// menu5[3]='<a href="/html/child_stepahead.cfm">Step Ahead Parent Room</a>'
// menu5[4]='<a href="/html/child_labor.cfm">Labor and My Baby (LAMB)</a>'
// menu5[5]='<a href="/html/child_invest_early.cfm">Invest Early</a>'



var menuwidth='165px'
var menubgcolor='white'
var disappeardelay=300
var hidemenu_onclick="no"
		
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=-40 //horizontal offset of menu from default location. (0-5 is a good value)

/////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: 160px" 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
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)
}
