//Menu object creation
topMTA=new makeCM("topMTA") //Making the menu object. Argument: menuname

//Menu properties   
topMTA.pxBetween=25
topMTA.fromLeft=210
topMTA.fromTop=52 
topMTA.rows=1 
topMTA.menuPlacement="left"
                                                             
topMTA.offlineRoot="" 
topMTA.onlineRoot="" 
topMTA.resizeCheck=1 
topMTA.wait=200 
topMTA.fillImg=""
topMTA.zIndex=0

//Background bar properties
topMTA.useBar=0
topMTA.barWidth="900"
topMTA.barHeight="menu" 
topMTA.barClass="topMTABar"
topMTA.barX=0 
topMTA.barY=200
topMTA.barBorderX=0
topMTA.barBorderY=0
topMTA.barBorderClass=""

//Level properties - ALL properties have to be specified in level 0
topMTA.level[0]=new cm_makeLevel()
topMTA.level[0].width=150
topMTA.level[0].height=22 
topMTA.level[0].regClass="topMTALevel0"
topMTA.level[0].overClass="topMTALevel0over"
topMTA.level[0].borderX=0
topMTA.level[0].borderY=0
topMTA.level[0].borderClass="topMTALevel0border"
topMTA.level[0].offsetX=8
topMTA.level[0].offsetY=0
topMTA.level[0].rows=0
topMTA.level[0].arrow=0
topMTA.level[0].arrowWidth=0
topMTA.level[0].arrowHeight=0
topMTA.level[0].align="bottom"

//SUB LEVEL[1] PROPERTIES
topMTA.level[1]=new cm_makeLevel()
topMTA.level[1].width=134
topMTA.level[1].height=21
topMTA.level[1].regClass="topMTALevel1"
topMTA.level[1].overClass="topMTALevel1over"
topMTA.level[1].align="right" 
topMTA.level[1].offsetX=-20
topMTA.level[1].offsetY=10
topMTA.level[1].borderClass="topMTALevel1border"

//SUB LEVEL[2] PROPERTIES
topMTA.level[2]=new cm_makeLevel()
topMTA.level[2].width=130
topMTA.level[2].height=19
topMTA.level[2].regClass="topMTALevel2"
topMTA.level[2].overClass="topMTALevel2over"
topMTA.level[2].align="right" 
topMTA.level[2].offsetX=0
topMTA.level[2].offsetY=0
topMTA.level[2].borderClass="topMTALevel2border"

/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/
topMTA.makeMenu('top1','','Schedules','http://www.mta.info/mta/schedules.htm','','','','/images/tab_sched.gif','/images/tab_sched_on.gif')
  topMTA.makeMenu('sub11','top1','NYC Transit','http://www.mta.info/nyct/service/subsch.htm')
  topMTA.makeMenu('sub12','top1','Long Island Rail Road','http://www.mta.info/lirr/html/ttn/lirrtt.htm')
  topMTA.makeMenu('sub13','top1','Long Island Bus','http://www.mta.info/libus/routes/routes.htm')
  topMTA.makeMenu('sub14','top1','Metro-North Railroad','http://www.mta.info/mnr/html/planning/schedules/index.html')
	
topMTA.makeMenu('top2','','Maps','http://www.mta.info/mta/maps.htm','','','','/images/tab_maps.gif','/images/tab_maps_on.gif')
	topMTA.makeMenu('sub21','top2','NYC Transit','http://www.mta.info/nyct/maps/')
		topMTA.makeMenu('sub210','sub21','Downtown Manhattan','http://www.mta.info/nyct/maps/mapdown.pdf')
		topMTA.makeMenu('sub211','sub21','Subway','http://www.mta.info/nyct/maps/submap.htm')
		topMTA.makeMenu('sub212','sub21','Manhattan Bus','http://www.mta.info/nyct/maps/manbus.pdf')
		topMTA.makeMenu('sub214','sub21','Brooklyn Bus','http://www.mta.info/nyct/maps/busbkln.pdf')
		topMTA.makeMenu('sub215','sub21','Bronx Bus','http://www.mta.info/nyct/maps/busbx.pdf')
		topMTA.makeMenu('sub216','sub21','Queens Bus','http://www.mta.info/nyct/maps/busqns.pdf')
		topMTA.makeMenu('sub217','sub21','Staten Island Bus','http://www.mta.info/nyct/maps/bussi.pdf')
		topMTA.makeMenu('sub218','sub21','Express Bus','http://www.mta.info/nyct/maps/expmap.pdf')
		topMTA.makeMenu('sub219','sub21','Staten Island Railway','http://www.mta.info/nyct/maps/simap.htm')
	topMTA.makeMenu('sub22','top2','Long Island Rail Road','http://www.mta.info/lirr/html/lirrmap.htm')
	topMTA.makeMenu('sub23','top2','Metro-North Railroad','http://www.mta.info/mnr/html/mnrmap.htm')
	topMTA.makeMenu('sub24','top2','Bridges &amp; Tunnels','http://www.mta.info/bandt/html/btmap.htm')
	
topMTA.makeMenu('top3','','Service Advisories','http://www.mta.info/mta/alerts.htm','','','','/images/tab_service.gif','/images/tab_service_on.gif')
	topMTA.makeMenu('sub31','top3','NYC Transit','http://www.mta.info/nyct/service/advisory.htm')
	topMTA.makeMenu('sub32','top3','Long Island Rail Road','http://www.mta.info/lirr/service.htm')
	topMTA.makeMenu('sub33','top3','Long Island Bus','http://www.mta.info/libus/bus_info/advisory.htm')
	topMTA.makeMenu('sub34','top3','Metro-North Railroad','http://www.mta.info/mnr/html/serviceupdates.htm')
	topMTA.makeMenu('sub35','top3','Bridges &amp; Tunnels','http://www.mta.info/bandt/traffic/advmain.htm')

//Leave this line - it constructs the menu
topMTA.construct()