/*
Milonic DHTML Menu - JavaScript Website Navigation System.
Copyright 2004 (c) Milonic Solutions Limited. All Rights Reserved.
Version 5+ Data File structure is the property of Milonic Solutions Ltd and must only be used in Milonic DHTML Products
This is a commercial software product, please visit http://www.milonic.com/ for more information.
See http://www.milonic.com/license.php for Commercial License Agreement
All Copyright statements must always remain in place in all files at all times
*******  PLEASE NOTE: THIS IS NOT FREE SOFTWARE, IT MUST BE LICENSED FOR ALL USE  *******
*/


_menuCloseDelay=300           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=300            // The time delay before menus open on mouse over. NOTE: Doesn't work with <area>. See myPopUp() in pleasanton.js.
_subOffsetTop=10              // Sub menu top offset
_subOffsetLeft=-10            // Sub menu left offset

// http://www.milonic.com/styleproperties.php

/* Main Menu style */
with(menuStyle=new mm_style()){
padding=4;

onbgcolor="#999999";/*bg color*/
oncolor="#ffffff";/*font color*/
offbgcolor="#ffffff";/*bg*/
offcolor="#000000";/*font*/
pagebgcolor="#ff9900";
pagecolor="#ffffff";
borderwidth=1;
separatorsize="0";
fontstyle="normal";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.2)";
}

/* How do I? style */
with(menuDdStyle=new mm_style()){
padding=3;
fontsize="11px";

onbgcolor="#999999";/*bg color*/
oncolor="#ffffff";/*font color*/
offbgcolor="#ffffff";/*bg*/
offcolor="#000000";/*font*/
pagebgcolor="#ff9900";
pagecolor="#ffffff";
borderwidth=1;
separatorsize="0";
fontstyle="normal";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.2)";
}

/* Keep until deployed on pleasanton server */
with(milmenu=new menuname("Main Menu")){
style=menuStyle;
top=-500;
left=-500;
alwaysvisible=1;
orientation="horizontal";
aI("text=MILONIC;url=/;status=Back To Home Page;");
}

// Initialize menu cooridinates.
var mtop=166;
var mcommunityleft=21;
var mbusinessleft=221;
var mgovernmentleft=405;
var mservicesleft=518;

// Check for sub menu. Set top coor.
if (_issubmenu){
    mtop=71;
    mcommunityleft=161;
    mbusinessleft=310;
    mgovernmentleft=445;
    mservicesleft=485;
}

// NOTE: Change pleasanton.js printParentLink() if any of these links change!!!

// Community menu.
with(milmenu=new menuname("Community")){
style=menuStyle;
left=mcommunityleft;
top=mtop;
overflow="scroll";
aI("text=Pleasanton Community;url=/community/pleasanton/;");
aI("text=Building a Community of Character;url=/community/character/;");
aI("text=New to Pleasanton;url=/community/new/;");
aI("text=Getting Involved;url=/community/involved/;");
aI("text=Visiting Pleasanton;url=/community/visiting/;");
aI("text=Refuse and Recycling;url=/services/residential/refuse-and-recycling.html;");
aI("text=Newsroom;url=/services/news/;");
aI("text=Arts and Entertainment;url=/community/arts/;");
aI("text=Community Calendar;url=/community/calendar/;");
aI("text=Community Links Page;url=/community/links/;");
aI("text=Community Programs/Grants;url=/community/grants/;");
aI("text=Pleasanton Military Support Program;url=/community/military/military-support-program.html;");
aI("text=Affordable Housing;url=/community/housing/;");
}

// Business menu.
with(milmenu=new menuname("Business")){
style=menuStyle;
left=mbusinessleft;
top=mtop;
overflow="scroll";
aI("text=Economic Development;url=/business/development/;");
aI("text=Business Resource Center;url=/business/brc/index-brc.html;");
aI("text=Business Events;url=/business/business-events.html;");
aI("text=Planning Services;url=/business/planning/;");
aI("text=Building Inspection Services;url=/business/building/;");
aI("text=Business License/Renewal;url=/business/license/;");
aI("text=City Bids;url=/business/bids/;");
aI("text=Demographics;url=/business/demographics/demographics.html;");
}

// Government menu.
with(milmenu=new menuname("Government")){
style=menuStyle;
left=mgovernmentleft;
top=mtop;
overflow="scroll";
aI("text=Your City Government;url=/government/city/;");
aI("text=Mayor and City Council;url=/government/council/;");
aI("text=Commissions/Agencies;url=/government/representatives/;");
aI("text=City Meetings;url=/government/meetings/;");
aI("text=Search City Records;url=/government/search/;");
aI("text=City Departments;url=/government/departments/;");
aI("text=Campaign Reports;url=http://www.netfile.com/agency/cop/;");
}

// Services menu.
with(milmenu=new menuname("Services")){
style=menuStyle;
left=mservicesleft;
top=mtop;
overflow="scroll";
aI("text=Library;url=/services/library/;");
aI("text=Employment;url=/services/employment/;");
aI("text=Residential Services;url=/services/residential/;");
aI("text=Parks, Recreation and Sports;url=/services/recreation/;");
aI("text=Senior Services;url=/services/senior/;");
aI("text=Youth Services;url=/services/youth/;");
aI("text=Police Services;url=/services/police/;");
aI("text=Fire Services;url=/services/fire/;");
aI("text=Finance and Budget;url=/services/finance/;");
aI("text=Traffic Information;url=/services/traffic/;");
aI("text=Transportation;url=/services/transportation/;");
aI("text=Utility Billing and Utilities;url=/services/utility/");
aI("text=Pleasanton Pioneer Cemetery;url=/services/residential/cemetery.html;");
aI("text=E-Services;url=/services/e/;");
aI("text=Contact Us;url=/services/contact/;");
}

// How do I menu.
with(milmenu=new menuname("HowDoI")){
style=menuDdStyle;
overflow="scroll";
menuwidth="220";

aI("text=Renew my Business License online?;url=https://secure.ci.pleasanton.ca.us/BLWeb");
aI("text=Contact Pleasanton Garbage Service?;url=/community/faq/#garbage;");
aI("text=Find the Planning Application form?;url=/pdf/devapp.pdf");
aI("text=View the Municipal Code?;url=http://qcode.us/codes/pleasanton/");
aI("text=Access the Parcel Zoning Map Search?;url=/business/planning/parcelzoningmap.asp");
aI("text=Get a marriage license?;url=/community/faq/#marriage;");
aI("text=Contact the District Attorney?;url=/community/faq/#attorney;");
aI("text=Contact elected representatives?;url=/community/faq/#representatives;");
aI("text=Contact the Fairgrounds?;url=/community/faq/#fairgrounds;");
aI("text=Apply for a Business License?;url=/community/faq/#business;");
aI("text=Contact the health inspector?;url=/community/faq/#health;");

}
drawMenus();
