/* 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 ******* */ buildAllMenus=1; retainClickValue=0; _menuCloseDelay=500 // The time delay for menus to remain visible on mouse out _menuOpenDelay=500 // The time delay before menus open on mouse over _subOffsetTop=-5 // Sub menu top offset _subOffsetLeft=5 // Sub menu left offset // DEFINE any custom functions next.. /* See: http://www.milonic.com/forum/viewtopic.php?p=14348#14348 for a full explanation */ function mm_changeItemProperty(menuName, itemName, codeRef, newValue, updateDisplay) { menuName = menuName.toLowerCase(); for (i=0; i<_mi.length; i++) if (_mi[i][1].replace(/\ \;/ig,' ') == itemName && _m[_mi[i][0]][1] == menuName) break; if (i == _mi.length) return; _mi[i][codeRef] = newValue; if (updateDisplay) BDMenu(_mi[i][0]); } /* See: http://www.milonic.com/forum/viewtopic.php?t=4853&highlight=type+form for a full explanation */ function mm_changeMenuProperty(menuName, propertyRef, newValue) { var menuNum = getMenuByName(menuName); _m[menuNum][propertyRef] = newValue; BDMenu(menuNum); } // DEFINE the styles used by the various menues & sub menues with(TopMainMenuStyle=new mm_style()){ openonclick=0; closeonclick=1; oncolor="#ffffff"; onborder='0px solid #ffffff'; offcolor="#ffffff"; separatorcolor="#2D729D"; separatorsize="1"; padding=5; fontsize="75%"; fontstyle="normal"; fontfamily="Verdana, Tahoma, Arial"; headercolor="#FBDFB4"; headerbgcolor="none"; bordercolor="none"; } with(TopSubTwoHeaderStyle=new mm_style()){ followscroll=0; openonclick=0; closeonclick=1; fontsize="75%"; fontstyle="normal"; fontfamily="Verdana, Tahoma, Arial"; bgimage="/images/trans_BlueGrey.png"; align="right"; valign="middle"; bordercolor="#FFFFFF"; borderwidth="1px"; borderstyle="solid"; padding="2px"; onborder='0px solid #ffffff'; } with(TopPDFsByDepartmentStyle=new mm_style()){ openonclick=0; closeonclick=1; onbgcolor="#ccffcc"; oncolor="#000000"; offbgcolor="#cccccc"; offcolor="#99061C"; bordercolor="#292B4A"; borderstyle="solid"; borderwidth=1; padding=5; fontsize="12px"; fontstyle="normal"; fontweight="normal"; fontfamily="Verdana, Tahoma, Arial"; headercolor="#FFFFFF"; headerbgcolor="#292B4A"; imagepadding="0 20 0 10"; onborder='0px solid #ffffff'; } with(AdvancedSearchSubTabStyle=new mm_style()){ //closeonclick=1; retainClickValue=1; onbgcolor="#ccffcc"; oncolor="#000000"; offbgcolor="#cccccc"; offcolor="#0000CC"; bordercolor="#292B4A"; borderstyle="solid"; borderwidth=1; padding=5; fontsize="12px"; fontweight="normal"; fontfamily="Verdana, Tahoma, Arial"; headercolor="#FFFFFF"; headerbgcolor="#292B4A"; imagepadding="0 20 0 10"; onborder='0px solid #ffffff'; } /* These are variants of the TopMainMenuStyle */ TopSubOneMainMenuStyle=new copyOf(TopMainMenuStyle); TopSubOneMainMenuStyle.bgimage="/images/trans_BlueGrey.png"; //TopSubOneMainMenuStyle.menubgcolor="#cccccc"; TopSubOneMainMenuStyle.offcolor="#FFFFFF"; TopSubOneMainMenuStyle.offbgcolor="#FFFFFF"; TopSubOneMainMenuStyle.pageborder='1px solid #ffffff';; TopSubOneMainMenuStyle.padding="3 10 3 10"; TopSubOneMainMenuStyle.valign="bottom"; /* These are variants of the TopMainMenuStyle - One layer down */ TopSubTwoMainMenuStyle=new copyOf(TopSubOneMainMenuStyle); TopSubTwoMainMenuStyle.padding=5; TopSubOneMainMenuStyle.bgimage="/images/trans_BlueGrey.png"; TopSubTwoMainMenuStyle.overbgimage="/images/overSubTwoNav_bg.gif"; TopSubTwoMainMenuStyle.pagebgimage="/images/inverseSubTwoNav_bg.gif"; TopSubTwoMainMenuStyle.onbgcolor="none"; TopSubTwoMainMenuStyle.separatoralign="left"; //TopSubTwoMainMenuStyle.separatorwidth="221"; TopSubTwoMainMenuStyle.pageborder="none"; TopSubTwoMainMenuStyle.oncolor="#2847AA"; /* These are variants of the TopMainMenuStyle - Two layers down */ TopSubThreeMainMenuStyle=new copyOf(TopSubOneMainMenuStyle); TopSubThreeMainMenuStyle.openonclick=0; TopSubThreeMainMenuStyle.align="center"; TopSubThreeMainMenuStyle.offcolor="#FBDFB4"; TopSubThreeMainMenuStyle.offbgcolor="#292B4A"; TopSubThreeMainMenuStyle.oncolor="gold"; TopSubThreeMainMenuStyle.onbgcolor="#292B4A"; TopSubThreeMainMenuStyle.bgimage="none"; TopSubThreeMainMenuStyle.bordercolor="#292B4A"; TopSubThreeMainMenuStyle.borderstyle="solid"; TopSubThreeMainMenuStyle.borderwidth=0; TopSubThreeMainMenuStyle.imagepadding="0 15 0 15"; with(milonic=new menuname("Main Menu")){ position="absolute"; style=TopMainMenuStyle; top=62; left=300; alwaysvisible=1; orientation="horizontal"; aI("text=Home;url=/main/City%20Home.html;"); aI("text=City Council;showmenu=1;"); aI("text=City Hall;showmenu=2;"); aI("text=Major Projects;showmenu=3;"); aI("text=Community;showmenu=4;"); } with(milonic=new menuname("1")){ style=TopSubTwoMainMenuStyle; top=92; orientation="vertical"; aI("text=Meet the Councilmembers;url=/council/Meet%20the%20Council.html;"); aI("text=Agendas;url=/cityclerk/City%20Council%20Agendas.html;"); aI("text=Minutes;url=/cityclerk/City%20Council%20Minutes.html;"); aI("text=Subcommittees;showmenu=408;"); } with(milonic=new menuname("2")){ style=TopSubTwoMainMenuStyle; top=92; orientation="vertical"; aI("text=Departments;showmenu=9;"); aI("text=Document Library;url=/pages/advancedSearch.lasso?-token.selected=pdf;"); aI("text=General Info;url=/main/General%20Information.html;"); aI("text=Historical Information;url=/main/Historical%20Information.html;"); } with(milonic=new menuname("3")){ style=TopSubTwoMainMenuStyle; top=92; orientation="vertical"; aI("text=GP Millsite Reuse;url=/cdd/GPMillMain.html;"); aI("text=Wave Energy;url=/main/Wave%20Energy.html;"); } with(milonic=new menuname("4")){ style=TopSubTwoMainMenuStyle; top=92; orientation="vertical"; aI("text=Experience Fort Bragg;url=http://www.fortbragg.com;"); aI("text=Chamber of Commerce;url=http://www.mendocinocoast.com/;"); aI("text=City Parks;url=/main/City%20Parks.html;"); aI("text=Recreation District;url=http://www.mendocoastrec.org/;"); aI("text=Schools;showmenu=668;"); } with(milonic=new menuname("408")){ style=TopSubTwoMainMenuStyle; aI("text=Community Development Advisory Board;url=/council/Community%20Development%20Advisory%20Board.html;"); aI("text=Community Development Committee;url=/council/Community%20Development%20Committee.html;"); aI("text=Finance & Administration Committee;url=/council/Finance%20and%20Administration%20Committee.html;"); aI("text=Promotion Committee;url=/council/Promotion%20Committee.html;"); aI("text=Public Safety Committee;url=/council/Public%20Safety%20Committee.html;"); aI("text=Public Works & Facilities Committee;url=/council/Public%20Works%20Committee.html;"); aI("text=Planning Commission;url=/cdd/Planning%20Commissioners.html;"); } with(milonic=new menuname("9")){ style=TopSubTwoMainMenuStyle; aI("text=City Clerk;url=/cityclerk/Main.html;"); aI("text=City Council;url=/council/Main.html;"); aI("text=City Manager;url=/main/CM%20Office.html;"); aI("text=Community Development;url=/cdd/Main.html;"); aI("text=Finance;url=/finance/Main.html;"); aI("text=Human Resources;url=/hr/Main.html;"); aI("text=Police Dept;url=/police/Mission%20Statement.html;"); aI("text=Public Works;url=/publicworks/Main.html;"); } with(milonic=new menuname("668")){ style=TopSubTwoMainMenuStyle; aI("text=College of the Redwoods;url=http://www.redwoods.edu/mendocino/;"); aI("text=Fort Bragg Unified School District;url=http://www.fbusd.us;"); } // Simple search with(milonic=new menuname("TopSearch")){ style=TopSubTwoHeaderStyle; screenposition="left"; left="11"; top="91"; itemwidth=578; aI("type=header;rawcss=font-variant:small-caps;text=
Do a simple search of this site ... search every document in every department
;"); aI("openonclick=0;bgimage=/images/solidblue.gif;itemheight=60;text=As an alternative, try out our ADVANCED SEARCH  ;fontsize=75%;align=right;url=/pages/advancedSearch.lasso;"); } // Sub search (advanced) tab with(milonic=new menuname("AdvancedSearch")){ style=AdvancedSearchSubTabStyle; top="offset=68"; itemwidth=577; aI("text=The Advanced Search Form or whatever you're using for advanced search will open here..;align=right;"); } // Example, using TopMyCity of form when "type=header" with(milonic=new menuname("TopMyCity")){ style=TopSubTwoHeaderStyle; screenposition="left"; top="91"; itemwidth=577; //aI("type=header;rawcss=font-variant:small-caps;text=
Our Newsletter...
;"); } drawMenus();