/***********************************************
* 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="services/auto_bill_pay.html">Auto Bill Payments</a>'
menu1[1]='<a href="services/budget_billing.html">Budget Billing</a>'
menu1[2]='<a href="services/gift_certificates.html">Gift Certificates</a>'
menu1[3]='<a href="services/energy_audits.html">Energy Audits</a>'
menu1[4]='<a href="services/electric_safety.html">Electric Safety/Education Demonstrations</a>'
menu1[5]='<a href="services/service_maps.html">NWEC Service Maps</a>'
menu1[6]='<a href="services/how_to_read.html">How to read your bill</a>'
menu1[7]='<a href="services/tree_trimming.html">Tree Trimming</a>'
menu1[8]='<a href="services/energy_saving.html">Energy Saving Tips</a>'

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="programs/give_us_an_a.html">Give Us an "A"</a>'
menu2[1]='<a href="programs/water_heaters.html">Electric Water Heaters</a>'
menu2[2]='<a href="programs/geothermal.html">Geothermal Heating, Cooling and Hot Water</a>'
menu2[3]='<a href="programs/surge_suppressors.html">Surge Suppressors and Power Quality Equipment</a>'
menu2[4]='<a href="programs/twn.html">TWN Long Distance</a>'
menu2[5]='<a href="programs/products.html">Products available at your Co-op</a>'
menu2[6]='<a href="programs/operation_roundup.html">Operation Round-Up</a>'
menu2[7]='<a href="programs/take_action.html">Co-op Owners Grassroots - Take Action</a>'
menu2[8]='<a href="programs/cfl.html">CFL Recycling Program</a>'

var menu3=new Array()
menu3[0]='<a href="library/country_living.html">Country Living</a>'
menu3[1]='<a href="library/energy_articles.html">Energy Articles</a>'

var menu4=new Array()
menu4[0]='<a href="kids/give_us_an_a.html">Give Us an "A"</a>'
menu4[1]='<a href="kids/scholarship.html">Scholarship</a>'
menu4[2]='<a href="kids/youth_tour.html">Youth Tour</a>'
menu4[3]='<a href="http://nwec.apogee.net/kids/default.aspx" target="_blank">Apogee Kids Pages</a>'

var menu5=new Array()
menu5[0]='<a href="company/capital_credits.html">Capital Credits</a>'
menu5[1]='<a href="company/restore_power.html">How we restore power</a>'
menu5[2]='<a href="company/who_are_we.html">Who are we?</a>'
menu5[3]='<a href="company/links.html">Industry Links</a>'

var menu1a=new Array()
menu1a[0]='<a href="../services/auto_bill_pay.html">Auto Bill Payments</a>'
menu1a[1]='<a href="../services/budget_billing.html">Budget Billing</a>'
menu1a[2]='<a href="../services/gift_certificates.html">Gift Certificates</a>'
menu1a[3]='<a href="../services/energy_audits.html">Energy Audits</a>'
menu1a[4]='<a href="../services/electric_safety.html">Electric Safety/Education Demonstrations</a>'
menu1a[5]='<a href="../services/service_maps.html">NWEC Service Maps</a>'
menu1a[6]='<a href="../services/how_to_read.html">How to read your bill</a>'
menu1a[7]='<a href="../services/tree_trimming.html">Tree Trimming</a>'
menu1a[8]='<a href="../services/energy_saving.html">Energy Saving Tips</a>'

//Contents for menu 2, and so on
var menu2a=new Array()
menu2a[0]='<a href="../programs/give_us_an_a.html">Give Us an "A"</a>'
menu2a[1]='<a href="../programs/water_heaters.html">Electric Water Heaters</a>'
menu2a[2]='<a href="../programs/geothermal.html">Geothermal Heating, Cooling and Hot Water</a>'
menu2a[3]='<a href="../programs/surge_suppressors.html">Surge Suppressors and Power Quality Equipment</a>'
menu2a[4]='<a href="../programs/twn.html">TWN Long Distance</a>'
menu2a[5]='<a href="../programs/products.html">Products available at your Co-op</a>'
menu2a[6]='<a href="../programs/operation_roundup.html">Operation Round-Up</a>'
menu2a[7]='<a href="../programs/take_action.html">Co-op Owners Grassroots - Take Action</a>'
menu2a[8]='<a href="../programs/cfl.html">CFL Recycling Program</a>'

var menu3a=new Array()
menu3a[0]='<a href="../library/country_living.html">Country Living</a>'
menu3a[1]='<a href="../library/energy_articles.html">Energy Articles</a>'

var menu4a=new Array()
menu4a[0]='<a href="../kids/give_us_an_a.html">Give Us an "A"</a>'
menu4a[1]='<a href="../kids/scholarship.html">Scholarship</a>'
menu4a[2]='<a href="../kids/youth_tour.html">Youth Tour</a>'
menu4a[3]='<a href="http://nwec.apogee.net/kids/default.aspx" target="_blank">Apogee Kids Pages</a>'

var menu5a=new Array()
menu5a[0]='<a href="../company/capital_credits.html">Capital Credits</a>'
menu5a[1]='<a href="../company/restore_power.html">How we restore power</a>'
menu5a[2]='<a href="../company/who_are_we.html">Who are we?</a>'
menu5a[3]='<a href="../company/links.html">Industry Links</a>'

var menuwidth='165px' //default menu width
var menubgcolor='lightyellow'  //menu bgcolor
var disappeardelay=250  //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" 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