/*** 
This is the menu creation code - place it right after the body tag
Menu logic lives in external script file "dhtmlmenus.js"
Menu styles live in external css file "menus.css"
Both files are referenced in the <head></head> of each template
**/

var oM=new makeCM("oM")
oM.pxBetween=0
oM.fromTop=140
oM.fromLeft=8
oM.menuPlacement="center"
oM.wait=600
oM.fillImg="/images/space.gif"
oM.zIndex=100 
oM.resizeCheck=1
oM.zIndex=100  

oM.onlineRoot=""
oM.offlineRoot=""

oM.rows=1

//Background bar properties
oM.useBar=0
oM.barWidth="100%" 
oM.barHeight="menu"
oM.barX=0
oM.barY="menu"
oM.barClass="clBar" 
oM.barBorderX=0
oM.barBorderY=0
oM.barBorderClass="clB1"


//Level properties
//oM.level[1]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)

oM.level[0]=new cm_makeLevel()
oM.level[0].width=0 //width for each layer is set in the makeMenu function call below
oM.level[0].height=27
oM.level[0].regClass="clT" 
oM.level[0].overClass="clTover"  
oM.level[0].borderX=0
oM.level[0].borderY=0
oM.level[0].borderClass="clB1" 
oM.level[0].rows=0
oM.level[0].align="bottom"
oM.level[0].offsetX=0
oM.level[0].offsetY=0
oM.level[0].arrow=0
oM.level[0].arrowWidth=0
oM.level[0].arrowHeight=0

for (i=1;i<=2;i++)
{
	oM.level[i]=new cm_makeLevel()
	oM.level[i].width=175
	oM.level[i].height=17
	oM.level[i].regClass="clS" 
	oM.level[i].overClass="clSover" 
	oM.level[i].borderX=1
	oM.level[i].borderY=1
	oM.level[i].borderClass="clB1"
	oM.level[i].rows=0
	oM.level[i].align="right"
	oM.level[i].offsetX=-1
	oM.level[i].offsetY=0
    oM.level[i].arrow="/images/bullet.gif"
	oM.level[i].arrowWidth=6
	oM.level[i].arrowHeight=9
}


        oM.makeMenu('top0','','Board of Fire Commissioners','/Fire_Commissioners/','',128,'','/images/bofc_0.jpg','/images/bofc_1.jpg')
                oM.makeMenu('0sub10','top0','Fire District #1','/Fire_Commissioners/dist1.htm','',124,'','','','','','right','','','','forceWindowScroll()','')
                oM.makeMenu('0sub11','top0','Fire District #2','/Fire_Commissioners/dist2.htm','',124,'','','','','','right','','','','forceWindowScroll()','')
                oM.makeMenu('0sub12','top0','Fire District #3','/Fire_Commissioners/dist3.htm','',124,'','','','','','right','','','','forceWindowScroll()','')
                oM.makeMenu('0sub13','top0','Joint Board of Fire Commissioners','/Fire_Commissioners/joint.htm','',124,29,'','','','','right','','','','forceWindowScroll()','')

        oM.makeMenu('top1','','Bureau of Fire Safety','/Bureau_Safety/','',182,'','/images/bofs_0.jpg','/images/bofs_1.jpg')
		oM.makeMenu('1sub10','top1','Kids Page','/Bureau_Safety/kids.htm','',178,'','','','','','right','','','','forceWindowScroll()','')
		oM.makeMenu('1sub11','top1','Events','/Bureau_Safety/events.htm','',178,'','','','','','right','','','','forceWindowScroll()','')
		oM.makeMenu('1sub12','top1','Staff','/Bureau_Safety/staff.htm','','178','','','','','','right','','','','forceWindowScroll()','')
		oM.makeMenu('1sub13','top1','Fire Ordinance','/Bureau_Safety/fire_ordinance.htm','',178,'','','','','','right','','','','forceWindowScroll()','')
		oM.makeMenu('1sub14','top1','Fire Prevention/Protection','/Bureau_Safety/prevention.htm','',178,'','','','','','right','','','','forceWindowScroll()','')
		oM.makeMenu('1sub15','top1','Home Resale Detector Inspections','/Bureau_Safety/detector.htm','',178,29,'','','','','right','','','','forceWindowScroll()','')
		oM.makeMenu('1sub16','top1','New Resident/Business Information','/Bureau_Safety/res_biz_info.htm','',178,29,'','','','','right','','','','forceWindowScroll()','')
		oM.makeMenu('1sub17','top1','New Construction Code Information','/Bureau_Safety/codes.htm','',178,29,'','','','','right','','','','forceWindowScroll()','')
		oM.makeMenu('1sub18','top1','Forms/Applications','/Bureau_Safety/forms.htm','',178,'','','','','','right','','','','forceWindowScroll()','')		
		oM.makeMenu('1sub19','top1','Fire Prevention Links','/Bureau_Safety/fire_prev_links.htm','',178,'','','','','','right','','','','forceWindowScroll()','')

        oM.makeMenu('top2','','Fire Training Academy','/Training/','',174,'','/images/ftc_0.jpg','/images/ftc_1.jpg')
		oM.makeMenu('2sub10','top2','About the Academy','/Training/about.htm','',170,'','','','','','right','','','','forceWindowScroll()','')
		oM.makeMenu('2sub11','top2','Directions/Location','/Training/location.htm','',170,'','','','','','right','','','','forceWindowScroll()','')
		oM.makeMenu('2sub12','top2','Upcoming Courses','/Training/courses.htm','',170,'','','','','','right','','','','forceWindowScroll()','')
		oM.makeMenu('2sub13','top2','Registration Information','/Training/info.htm','',170,'','','','','','right','','','','forceWindowScroll()','')
		oM.makeMenu('2sub14','top2','Use of Facility','/Training/use.htm','',170,'','','','','','right','','','','forceWindowScroll()','')


	
        oM.makeMenu('top3','','Fire Companies','/firecos.htm','',134,'','/images/fc_0.jpg','/images/fc_1.jpg')
		oM.makeMenu('3sub10','top3','Breton Woods Station 21','/Station_21/','',105,29,'','','','','right','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub10','Officers & Members','/Station_21/members.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub10','History','/Station_21/history.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub10','Apparatus','/Station_21/apparatus.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub10','Last Call','/Station_21/last_call.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub10','How to Join','/Station_21/join.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub10','Contact Us','/Station_21/contact.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub10','Ladies Auxiliary','/Station_21/ladies_aux.htm','',130,'','','','','','','','','','forceWindowScroll()','')
		oM.makeMenu('3sub11','top3','Pioneer Hose Station 22','/Station_22/','',105,29,'','','','','right','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub11','Officers & Members','/Station_22/members.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub11','History','/Station_22/history.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub11','Apparatus','/Station_22/apparatus.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub11','Last Call','/Station_22/last_call.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub11','How to Join','/Station_22/join.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub11','Contact Us','/Station_22/contact.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub11','Ladies Auxiliary','/Station_22/ladies_aux.htm','',130,'','','','','','','','','','forceWindowScroll()','')
		oM.makeMenu('3sub12','top3','Laurelton &nbsp;&nbsp;&nbsp; Station  23','/Station_23/','',105,29,'','','','','right','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub12','Officers & Members','/Station_23/members.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub12','History','/Station_23/history.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub12','Apparatus','/Station_23/apparatus.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub12','Last Call','/Station_23/last_call.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub12','How to Join','/Station_23/join.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub12','Contact Us','/Station_23/contact.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub12','Ladies Auxiliary','/Station_23/ladies_aux.htm','',130,'','','','','','','','','','forceWindowScroll()','')
		oM.makeMenu('3sub13','top3','Herbertsville Station 24','/Station_24/','',105,29,'','','','','right','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub13','Officers & Members','/Station_24/members.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub13','History','/Station_24/history.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub13','Apparatus','/Station_24/apparatus.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub13','Last Call','/Station_24/last_call.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub13','How to Join','/Station_24/join.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub13','Contact Us','/Station_24/contact.htm','',130,'','','','','','','','','','forceWindowScroll()','')
			oM.makeMenu('','3sub13','Ladies Auxiliary','/Station_24/ladies_aux.htm','',130,'','','','','','','','','','forceWindowScroll()','')

		oM.makeMenu('top4','','Speciality Teams','/special.htm','',148,'','/images/st_0.jpg','/images/st_1.jpg')
			oM.makeMenu('4sub10','top4','Technical Rescue','/Tech_Rescue/','',144,'','','','','','left','','','','forceWindowScroll()','')
			oM.makeMenu('4sub11','top4','Underwater Recovery','/Underwater/','',144,'','','','','','left','','','','forceWindowScroll()','')


oM.construct();

var xx,yy

function getCoords(e){
	xx=(bw.ns4 || bw.ns6)?e.pageX:event.x||event.clientX
  yy=(bw.ns4 || bw.ns6)?e.pageY:event.y||event.clientY
}

//Capturing onmousemove event
if(bw.ns4) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove=getCoords;

function forceWindowScroll()
{
	var docHeight,mouseY;
	docHeight = (bw.ns4 || bw.ns6)?window.innerHeight:document.body.clientHeight;
	mouseY = yy; //var yy is set in getCoords function above
	if((docHeight-mouseY) < 35) setTimeout("window.scrollBy(0,35)",100);
}

function openpicWindow(url,name){
	popupWin = window.open(url,name,"width=650,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
}