fixMozillaZIndex=false; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop = -5;
_subOffsetLeft = 0;

//ie fix
var browser=navigator.appName;
if (browser=="Microsoft Internet Explorer"){
 _subOffsetTop = 0;
 _subOffsetLeft = -3;
}

with(menuStyle=new mm_style()){
bordercolor="#003300";
borderstyle="on";
borderwidth=2;
fontfamily="Arial,Verdana, Tahoma";
fontsize="89%";
fontstyle="normal";
headerbgcolor="#003300";
headercolor="#003300";
offbgcolor="#003300";
offcolor="#ffffff";
onbgcolor="#ffffff";
oncolor="#003300";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=5)";
padding=5;
pagebgcolor="#003300";
pagecolor="white";
separatorcolor="#oc875d";
separatorsize=1;
subimage="images/arrow.gif";
subimagepadding=2;
}

with(milonic=new menuname("about")){
overflow="scroll";
style=menuStyle;
aI("text=How We Deliver Power To You;url=/HowPowerIsDeliveredToYou.asp");
aI("text=Our History;url=/History.asp");
aI("text=Service Area;url=/ServiceArea.asp");
aI("text=Board of Directors;url=/Directors.asp");
aI("text=MEC Staking Engineers;url=/StakingEngineers.asp");
aI("text=MEC Area Servicemen;url=/AreaServicemen.asp");
aI("text=MEC Employees;url=/Employees.asp");
aI("text=Membership Booklet (PDF);url=/files/misc/MembershipBooklet.2009.pdf;target=_blank");
aI("text=Bylaws (PDF);url=/files/misc/ByLaws.2009.pdf;target=_blank");
aI("text=Capital Credits Outstanding;url=/CapitalCredits.asp");
aI("text=MEC News;url=/News.asp");
aI("text=MEC Newsletter;url=/newsletters.asp;");
aI("text=Board Meeting Minutes;url=/meetingminutes.asp;");


}

with(milonic=new menuname("rates")){
overflow="scroll";
style=menuStyle;
aI("text=MEC Rates;url=/Rates.asp;");
aI("text=Rebates;url=/Rebates.asp");
aI("text=Rebates Application;url=/RebateApp.asp");
aI("text=Automatic Bill Pay;url=/autoPay.asp;");
aI("text=Credit Card Bill Payment;url=/creditCard.asp;");
aI("text=Budget Billing;url=/BudgetBilling.asp");
aI("text=Temporary Service Charges;url=/TemporaryServiceCharges.asp");
aI("text=Meter Loop Charges;url=/MeterLoopCharges.asp");
aI("text=Line Extension Charges;url=/LineExtensionCharges.asp");
aI("text=How To Read Your Bill;url=/HowToReadYourBill.asp");
aI("text=Estimated Bill Calculator;url=/BillCalculator.asp;");

}

//aI("text=About MEC;showmenu=about;");

with(milonic=new menuname("apps")){
overflow="scroll";
style=menuStyle;
//aI("text=HomE Program (PDF);url=/files/Menard_HomE.pdf;target=_blank");
aI("text=Long Distance Phone Service;url=/longDistance.asp");
aI("text=Surge Protection;showmenu=sp;");
aI("text=Line Clearance \&amp\; Tree Trimming;showmenu=tree;");
aI("text=Member Owned Distributed Generation;url=/MemberOwnedDistributedGeneration.asp");
aI("text=Co-Op Connections Card;url=/CoopCardList.asp;showmenu=coopcard");
aI("text=Youth Programs;showmenu=yp;");
//aI("text=Why Are Costs Rising?;url=/About/FAQRisingCostOfEnergy.asp;")

}

with (milonic = new menuname("sp")) {
    overflow = "scroll";
    style = menuStyle;
    aI("text=Programs;url=/SPInformation.asp");
    aI("text=Devices;url=/SPDevices.asp");
    aI("text=Device Order Form;url=/SPDeviceOrder.asp");
}

with (milonic = new menuname("tree")) {
    overflow = "scroll";
    style = menuStyle;
    aI("text=Trimming Methods;url=/TreeInfo.asp");
    aI("text=Trimming Programs;url=/TreeProgram.asp");
    aI("text=Request Form;url=/TreeRequest.asp");
}

with (milonic = new menuname("coopcard")) {
    overflow = "scroll";
    style = menuStyle;
    aI("text=Merchant Sign-Up Form (PDF);url=/files/misc/CoopConnectionParticipantContract.pdf;target=_blank;");
}

with (milonic = new menuname("yp")) {
    overflow = "scroll";
    style = menuStyle;
    aI("text=Youth Programs;url=/YouthPrograms.asp");
    //aI("text=Youth To Washington Application (PDF);url=/files/YouthDay_YouthTour_2011.pdf;target=_blank;");
    aI("text=Scholarships;url=/Scholarship.asp");
}


with(milonic=new menuname("energy")){
overflow="scroll";
style=menuStyle;
aI("text=Average Appliance Usage;url=/ApplianceUsage.asp");
//aI("text=Home Energy Savings;url=http://www.touchstoneenergysavers.com/homeSavings.html;target=_blank;");
//aI("text=Business Energy Savings;url=http://www.touchstoneenergysavers.com/businessSavers.html;target=_blank;");
aI("text=Energy Efficiency;url=http://www.togetherwesave.com;target=_blank;");
//aI("text=Renewable Energy;url=http://www.touchstoneenergysavers.com/renewable.html;target=_blank;");
aI("text=Other Energy Savings Tips (PDF);url=/files/misc/Other%20Energy%20Savings%20Tips.pdf;target=_blank;");
aI("text=Backup Generators;url=/BackUpGenerators.asp");
aI("text=When Your Electricity Goes Off;showmenu=off;");
//aI("showmenu=Rates;text=Shelby Electric Rates;")

}

with (milonic = new menuname("off")) {
    overflow = "scroll";
    style = menuStyle;
    aI("text=How To Report An Outage;url=/ReportingOutages.asp");
    aI("text=Safety During An Outage;url=/SafeOutages.asp");
    aI("text=How We Restore Outages;url=/RestoringOutages.asp");
}

with(milonic=new menuname("links")){
overflow="scroll";
style=menuStyle;
aI("text=Useful Websites;url=/Links.asp");

}

with(milonic=new menuname("contact")){
overflow="scroll";
style=menuStyle;
aI("text=How To Contact Us;url=/Contact.asp");
aI("text=How To Report An Outage;url=/ReportingOutages.asp");
aI("text=Board Members;url=/board/index.asp");
aI("text=Website Admin;url=/admin/index.asp");


}



drawMenus();


