<!-- Begin

// NOTE: If you use a ' add a slash before it like this \'

// USE lowercase FOR ALL OPTIONS ONLY

var showscroller		= "no"		//  SHOW SCROLLER
var showimage2		= "no"		//  SHOW SECOND SIDEBAR IMAGE
var linkstop 		= "no" 		//  START LINKS AT THE VERY TOP


document.write('<DIV id="menulocation" class="printhide">');
document.write('<TABLE cellpadding="0" cellspacing="0" border="0" width="154"><tr><td>');
   if (linkstop == "no") {
document.write('<img src="/picts/menu-top.jpg" width="154" height="20" class="menutrans"><br>');
}

// START LINKS //

document.write('</td></tr><tr><td nowrap>');
document.write('<a href="/index.html" class="menu">Home</a>');
document.write('</td></tr><tr><td nowrap>');

//added for search
document.write('<img src="/picts/menu-bottom.jpg" width="154" height="1"><br>');
document.write('</td></tr><tr><td nowrap>');
document.write('<form action="http://www.newbedford-ma.gov/searchnb.cfm" method="post">');
document.write('<input type="hidden" name = "startrow" value="1">');
document.write('<input type="hidden" name = "maxrows" value="25">');
document.write('<input type="submit" class = "searchbutj" value=" Search:">');
document.write('<input type="text" name="criteria" class="SHADEFORMSEARCH2" size="40">');
document.write('</td></tr><tr><td nowrap>');
document.write('</form>');
//end of added for search

//document.write('<form id="searchbox_012177973096290143107:bqw4f_jxefe" action="/nbresults.html">');
//document.write('<form id="searchbox_012177973096290143107:7zu782xj2kk" action="http://www.newbedford-ma.gov/nbresults.html">');

      // document.write('<input type="hidden" name="cx" value="012177973096290143107:bqw4f_jxefe" />');
        //  document.write('<input type="hidden" name="cof" value="FORID:11" />');
        //  document.write('<input name="q" type="text" class="SHADEFORM" size="40" />');
        //  document.write('<input name="sa" type="submit" class="searchbut" value="Search" />');
		//  document.write('</td></tr><tr><td nowrap>');
//document.write('</form>');
    document.write('<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_012177973096290143107%3Abqw4f_jxefe&lang=en"></script>');

document.write('<A href="/index.html" onMouseover="dropdownmenu(this, event, menu14)"');
document.write(' onMouseout="delayhidemenu()" class="menulabel"><span class="menulabel"><strong>Hot Topics</strong></span></a>');

document.write('</td></tr><tr><td nowrap>');
document.write('<br>');

document.write('<A href="/index.html" onMouseover="dropdownmenu(this, event, menu3)"');
document.write(' onMouseout="delayhidemenu()" class="menulabel"><span class="menulabel"><strong>Most Requested</strong></span></a>');

document.write('</td></tr><tr><td nowrap>');
document.write('<br>');
document.write('<A href="/index.html" onMouseover="dropdownmenu(this, event, menu15)"');
document.write(' onMouseout="delayhidemenu()" class="menulabel"><span class="menulabel"><strong>On-line Services</strong></span></a>');

// START SCROLLER HERE

   if (showscroller == "yes") {
document.write('<br><br>');
document.write('<span class="menulabel"><strong>Upcoming Events !</strong></span><br>');
document.write('<div align="center"><TABLE cellpadding="0" cellspacing="0" border="1"');
document.write('bordercolor="#9291AA" style="border-collapse:collapse"><tr><td>');
Tscroll_init (0)
document.write('</td></tr></table></div>')
}

//  End -->

document.write('</td></tr><tr><td nowrap>');
document.write('<br>');
document.write('<A href="/index.html" onMouseover="dropdownmenu(this, event, menu16)"');
document.write(' onMouseout="delayhidemenu()" class="menulabel"><span class="menulabel"><strong>Quick Links</strong></span></a>');

document.write('</td></tr><tr><td nowrap>');
document.write('<br>');

document.write('<span class="menulabel"><a href="/otherlinks/OnlineServices.html"><strong>Navigation Map</strong></a></span>');


document.write('<br><img src="/images/seal153.gif">');
document.write('</td></tr><tr><td nowrap><br><br>');
document.write('<span class="style1">');
document.write('&nbsp;New Bedford City Hall');
document.write('<br>&nbsp;133 William Street');
document.write('<br>&nbsp;New Bedford, MA 02740');
document.write('<br>&nbsp;www.newbedford-ma.gov');
document.write('<br>&nbsp;Tel:508-979-1400');
document.write('<br>&nbsp;Fax:508-991-6148');
document.write('<br>&nbsp;Business Hours:');
document.write('<br>&nbsp;Mon-Fri: 8 am - 4 pm');

// COPY AND PASTE THE NEXT TWO LINES TOO ADD A NEW LINK




// END LINKS //

document.write('</td></tr><tr><td>');
document.write('<img src="/picts/menu-bottom.jpg" width="154" height="1"><br>');
document.write('</td></tr><tr><td align="center">');

// START MENU IMAGES

   if (showimage2 == "yes") {
document.write('<img src="/picts/menu-picture-5.jpg" width="128" height="180" border="0"></a>');
}
document.write('</td></tr></table></DIV>');

//  End -->

// VERTICAL MENU CONTROLS //

//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="/Personnel/employ.html">Jobs Available</a>'
menu3[1]='<a href="/Assessors/RealProperty/RealpropertyLookup.cfm">Parcel Lookup</a>'
menu3[2]='<a href="/purchasing/rfp.html">City RFPs & IFBs</a>'
menu3[3]='<a href="/commserv/VolunteerApplicationFinal.pdf" target=_blank>Volunteer Application</a>'
menu3[4]='<a href="/Tourism/EventCalendar/EventCalendar0.cfm?CAT=ALL">Calendar of Events</a>'
menu3[5]='<a href="/upcoming/Public/PubMtg.html" z-index="9998" wmode = "opaque">Meeting Announcements</a>'
menu3[6]='<a href="/Council/2012/Counmtg2012.html?Board=Apbr&BoardName=Appointments&nbsp;and&nbsp;Briefings" z-index="9999" wmode = "opaque">City Council</a>'
menu3[7]='<a href="/upcoming/Public/publicmeetings12.html?Board=BOA&BoardName=Board&nbsp;of&nbsp;Assessors" z-index="9997" wmode = "opaque">Boards and Commissions</a>'
menu3[8]='<a href="http://www.municode.com/resources/gateway.aspx?productid=14347" target=_blank>Code of Ordinances</a>'
menu3[9]='<a href="/dpi/highways/roadwork.html">Road Work</a>'
menu3[10]='<a href="/Environmental/environmental_activities.html">Parker St. Site Activities</a>'
menu3[11]='<a href="/McCoy/sitemap/sitemap.html">Parker Street Waste Site</a>'
menu3[12]='<a href="/directory/department directory.html">City Directory</a>'


var menu14=new Array()
menu14[0]='<a href="/Mayor/Budget2012.pdf">Preliminary Budget 2012</a>'
menu14[1]='<a href="/dpi/Rte18.html">Route 18 Traffic</a>'
menu14[2]='<a href="/Health/overview.html">Lyme Disease Facts</a>'
menu14[3]='<a href="/health/information/2008/EDS_NBBOH11.13.08.pdf" target=_blank>Emerg. Dispensing Site</a>'
menu14[4]='<a href="/dpi/water/water_quality.html">Water Quality 2010</a>'
menu14[5]='<a href="/dpi/water/save_water.pdf" target=_blank>Prevent Water Waste</a>'
menu14[6]='<a href="/zoo/Buttonwood_Master_Plan.pdf" target=_blank>Buttonwood Master Plan</a>'
menu14[7]='<a href="/Mayor/Sustaining_New_Bedford.pdf" target=_blank>Sustaining New Bedford</a>'
menu14[8]='<a href="/planning/mills/mill_inventory.html">Historic Mill Inventory</a>'
menu14[9]='<a href="/Mayor/NBEDCstorefrontguide_08.pdf"  target="_blank">Storefront Guide</a>'


var menu15=new Array()
menu15[0]='<a href="/otherlinks/OnlineServices.html">Forms</a>'
menu15[1]='<a href="/treasurers/online_bill_payment.html">Pay On-Line</a>'
menu15[2]='<a href="/otherlinks/OnlineServices.html">City Area Maps</a>'
menu15[3]='<a href="/publicfacilities/parkrecreation/special_event_permit.html">Special Events Permit</a>'
menu15[4]='<a href="/otherlinks/OnlineServices.html">FAQs</a>'
menu15[5]='<a href="/otherlinks/OnlineServices.html">City Guides</a>'
menu15[6]='<a href="/otherlinks/OnlineServices.html">City Publications</a>'


var menu16=new Array()
menu16[0]='<a href="http://db.state.ma.us/ethics/quiz_MEthics/index.asp" target="_blank">Employee Ethic Test</a>'
menu16[1]='<a href="/otherlinks/QuickLinks.html">Photo Galleries</a>'
menu16[2]='<a href="/otherlinks/QuickLinks.html">NB Videos</a>'
menu16[3]='<a href="/Tourism/DestinationNB/transportation.html">Transportation</a>'
menu16[4]='<a href="/otherlinks/QuickLinks.html">Directions</a>'
menu16[5]='<a href="/Mayor/Customer_Service_Survey_fillable.pdf" target="_blank">Customer Survey</a>'
menu16[6]='<a href="mailto:webmaster@newbedford-ma.gov">Contact Us</a>'

var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=2 //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){
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", '150px')
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)
}
//END OF VERTICAL MENU CONTROLS
