/*****************************************************************************
Default browsercheck - Leave this one
******************************************************************************/
function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion; this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6||this.ie7;
	this.mac=this.agent.indexOf("Mac")>-1
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie7 || this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.dom)
	return this
}
var bw=new lib_bwcheck() //Making browsercheck object

var mDebugging=2 

oCMenu=new makeCoolMenu("oCMenu") 
oCMenu.useframes=0 
oCMenu.frame="FrmMain"
oCMenu.useNS4links=1 
oCMenu.checkselect=1
oCMenu.offlineUrl=""
oCMenu.onlineUrl="http://www.meadowlands.org/mrcc/"


oCMenu.pagecheck=1
oCMenu.checkscroll=0
oCMenu.resizecheck=1 
oCMenu.wait=100 

oCMenu.usebar=1 
oCMenu.barcolor="transparent" 
oCMenu.barwidth="100%" 
oCMenu.barheight="menu" 
oCMenu.barx=0 
oCMenu.bary="menu"
oCMenu.barinheritborder=0 

oCMenu.rows=1
oCMenu.fromleft=0
oCMenu.fromtop=92 
oCMenu.pxbetween=0

oCMenu.menuplacement="left"

oCMenu.level[0]=new Array() 
oCMenu.level[0].width=150 
oCMenu.level[0].height=20 
oCMenu.level[0].bgcoloroff="transparent"
oCMenu.level[0].bgcoloron="transparent" 
oCMenu.level[0].textcolor="black"
oCMenu.level[0].hovercolor="black" 
oCMenu.level[0].style="font-family:arial,helvetica; font-size:12px"
oCMenu.level[0].border=0 
oCMenu.level[0].bordercolor="" 
oCMenu.level[0].offsetX=1 
oCMenu.level[0].offsetY=-1 
oCMenu.level[0].NS4font="arial,helvetica"
oCMenu.level[0].NS4fontSize="2"
oCMenu.level[0].NS4fontColor="white"
oCMenu.level[0].align="bottom" 

oCMenu.level[1]=new Array() 
oCMenu.level[1].width=150
oCMenu.level[1].height=20
oCMenu.level[1].bgcoloroff="#6DACDE"
oCMenu.level[1].bgcoloron="black"
oCMenu.level[1].textcolor="black"
oCMenu.level[1].hovercolor="white"
oCMenu.level[1].style="padding:2px; font-family:arial,helvetica; font-size:12px"
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].border=1 
oCMenu.level[1].bordercolor="#000000"
oCMenu.level[1].NS4font="arial,helvetica"
oCMenu.level[1].NS4fontSize="2"
oCMenu.level[1].NS4fontColor="black"

oCMenu.level[2]=new Array() 
oCMenu.level[2].width=150
oCMenu.level[2].height=20
oCMenu.level[2].bgcoloroff="#003300"
oCMenu.level[2].bgcoloron="black"
oCMenu.level[2].textcolor="black"
oCMenu.level[2].hovercolor="white"
oCMenu.level[2].style="padding:2px; font-family:arial,helvetica; font-size:12px"
oCMenu.level[2].align="bottom" 
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].border=1 
oCMenu.level[2].bordercolor="#000000"
oCMenu.level[2].NS4font="arial,helvetica"
oCMenu.level[2].NS4fontSize="2"
oCMenu.level[2].NS4fontColor="black"

/*Variables for each menu item: (** means that they have to be spesified!)
name: The name of the item. This must be unique for each item. Do not use spaces or strange charachters in this one! **
parent: The name of the menuitem you want this to "connect" to. This will be a submenu of the item that have the name you place in here. ** for all other then the topitems
text: The text you want in the item. ** (except if you use images) 
link: The page you want this item to link to.
target: The target window or frame you want the link to go to (Default is same window if you're not using frames, and the mainframe if you're using frames)
width: The width of the element. If not spesified it will get the default width spesified above.
height: The height of the element. If not spesified it will get the default height spesified above.
img1: The "off" image for element if you want to use images.
img2: The image that appears onmouseover if using images.
bgcoloroff: The background color for this item. If not spesified it will get the default background color spesified above.
bgcoloron: The "on" background color for this item. If not spesified it will get the default "on" background color spesified above.
textcolor: The text color for this item. If not spesified it will get the default text color spesified above.
hovercolor: The "on" text color for this item. If not spesified it will get the default "on" text color spesified above. Netscape4 ignores this
onclick: If you want something to happen when the element is clicked (different from going to a link) spesifiy it here.
onmouseover: This will happen when you mouseover the element. Could be status text, another imageswap or whatever.
onmouseout: This will happen when you mouseout the element.

Remember you can have as many levels/sublevels as you want. Just make sure you spesify the correct "parent" for each item.
To set styles for each level see above.
*/


oCMenu.makeMenu('top1','','','http://www.meadowlands.org/mrcc/strategicvision.html','_top',89,22,'http://www.meadowlands.org/mrcc/images/menu/about_us_off.jpg','http://www.meadowlands.org/mrcc/images/menu/about_us_on.jpg')
	oCMenu.makeMenu('sub11','top1','Our Mission','http://www.meadowlands.org/mrcc/strategicvision.html','_top',170,'','','','003300','000000','white','white')
	oCMenu.makeMenu('sub12','top1','Board of Directors','http://www.meadowlands.org/mrcc/bdofdirectors.html','_top',170,'','','','003300','000000','white','white')
	oCMenu.makeMenu('sub13','top1','Working for You','http://www.meadowlands.org/mrcc/workingforyou.html','_top',170,'','','','003300','000000','white','white')
	oCMenu.makeMenu('sub14','top1','Organizational Chart','http://www.meadowlands.org/mrcc/images/Org_Chart_2-16-09.pdf','_blank',170,'','','','003300','000000','white','white')
	oCMenu.makeMenu('sub15','top1','Contact Us','http://www.meadowlands.org/mrcc/contact.html','_top',170,'','','','003300','000000','white','white')

oCMenu.makeMenu('top2','','','http://www.meadowlands.org/mrcc/advocacy.html','_top',77,22,'http://www.meadowlands.org/mrcc/images/menu/advocacy_off.jpg','http://www.meadowlands.org/mrcc/images/menu/advocacy_on.jpg')
	oCMenu.makeMenu('sub20','top2','Economic Development','http://www.meadowlands.org/mrcc/busdevelopment.html','_top',170,'','','','003300','000000','white','white')
	oCMenu.makeMenu('sub22','top2','Legislative Update','http://www.meadowlands.org/mrcc/legislativeupdate.html','_top',170,'','','','003300','000000','white','white')

oCMenu.makeMenu('top3','','','http://www.meadowlands.org/mrcc/memberbenefits.html','_top',89,22,'http://www.meadowlands.org/mrcc/images/menu/membership_off.jpg','http://www.meadowlands.org/mrcc/images/menu/membership_on.jpg')
	oCMenu.makeMenu('sub30','top3','Member Benefits','http://www.meadowlands.org/mrcc/memberbenefits.html','_top','168','','','','003300','000000','white','white')
	oCMenu.makeMenu('sub31','top3','Membership Application','http://www.meadowlands.org/mrcc/membershipapplication.html','_top','168','','','','003300','000000','white','white')
	oCMenu.makeMenu('sub32','top3','Committees','http://www.meadowlands.org/mrcc/committees.html','_top','168','','','','003300','000000','white','white')
	oCMenu.makeMenu('sub33','top3','New Members','http://MeadowlandsNJCOC.weblinkconnect.com/CWT/EXTERNAL/WCPAGES/WCDIRECTORY/directory.aspx?ACTION=newmembers','_top','168','','','','003300','000000','white','white')
	oCMenu.makeMenu('sub34','top3','Izod Family Fun Pass','http://www.meadowlands.org/mrcc/FamilyFunPass.html','_top','168','','','','003300','000000','white','white')
	oCMenu.makeMenu('sub35','top3','Affinity Program','http://www.meadowlands.org/mrcc/affinityprogram.html','_top','168','','','','003300','000000','white','white')
	oCMenu.makeMenu('sub36','top3','For Members Only','http://MeadowlandsNJCOC.weblinkconnect.com/cwt/EXTERNAL/WCPAGES/WCPortal/PortalLogin.aspx','_top','168','','','','003300','000000','white','white')

oCMenu.makeMenu('top4','','','http://meadowlandsnjcoc.weblinkconnect.com/CWT/External/WCPages/WCDirectory/DirectoryStartPage.aspx','_top',139,22,'http://www.meadowlands.org/mrcc/images/menu/business_directory_off.jpg','http://www.meadowlands.org/mrcc/images/menu/business_directory_on.jpg')

oCMenu.makeMenu('top5','','','http://meadowlandsnjcoc.weblinkconnect.com/cwt/External/WCPages/WCEvents/EventsStartPage.aspx?OE=True','_top',58,22,'http://www.meadowlands.org/mrcc/images/menu/events_off.jpg','http://www.meadowlands.org/mrcc/images/menu/events_on.jpg')
	oCMenu.makeMenu('sub50','top5','Chamber Programs & Events Calendar','http://MeadowlandsNJCOC.weblinkconnect.com/cwt/External/WCPages/WCEvents/EventsStartPage.aspx?OE=True','_top','','34','','','003300','000000','white','white')
	oCMenu.makeMenu('sub51','top5','Member & Community Events Calendar','http://MeadowlandsNJCOC.weblinkconnect.com/cwt/External/WCPages/WCEvents/CommunityStartPage.aspx?CE=True','_top','','34','','','003300','000000','white','white')

oCMenu.makeMenu('top6','','','http://www.meadowlands.org/mrcc/visitors.html','_top',66,22,'http://www.meadowlands.org/mrcc/images/menu/visitors_off.jpg','http://www.meadowlands.org/mrcc/images/menu/visitors_on.jpg')
	oCMenu.makeMenu('sub60','top6','Visitors Bureau','http://www.meadowlands.org/mrcc/visitors.html','_top','175','','','','003300','000000','white','white')
	oCMenu.makeMenu('sub61','top6','Map','http://www.meadowlands.org/mrcc/map.html','_top','175','','','','003300','000000','white','white')
	oCMenu.makeMenu('sub62','top6','Meadowlands Liberty CVB','http://www.meadowlands.org/mrcc/mlcvb.html','_top','175','','','','003300','000000','white','white')
	oCMenu.makeMenu('sub63','top6','StayInTheMeadowlands.com','http://www.stayinthemeadowlands.com','_blank','175','','','','003300','000000','white','white')
	oCMenu.makeMenu('sub64','top6','StayOnTheWaterfront.com','http://www.stayonthewaterfront.com','_blank','175','','','','003300','000000','white','white')
	oCMenu.makeMenu('sub65','top6','Sports','http://www.meadowlands.org/mrcc/sports.html','_top','175','','','','003300','000000','white','white')

oCMenu.makeMenu('top8','','','http://www.meadowlands.org/mrcc/transportation.html','_top',61,22,'http://www.meadowlands.org/mrcc/images/menu/transit_off.jpg','http://www.meadowlands.org/mrcc/images/menu/transit_on.jpg')
	oCMenu.makeMenu('sub80','top8','Transit','http://www.meadowlands.org/mrcc/transportation.html','_top','128','','','','003300','000000','white','white')
	oCMenu.makeMenu('sub81','top8','Commuter Services','http://www.meadowlink.org','_blank','128','','','','003300','000000','white','white')
	
oCMenu.makeMenu('top9','','','http://www.meadowlands.org/mrcc/publications.html','_top',95,22,'http://www.meadowlands.org/mrcc/images/menu/publications_off.jpg','http://www.meadowlands.org/mrcc/images/menu/publications_on.jpg')
	oCMenu.makeMenu('sub91','top9','Meadowlands USA','http://www.meadowlands.org/mrcc/meadowlandsusa.html','_top','148','','','','003300','000000','white','white')
	oCMenu.makeMenu('sub92','top9','Annual Report','http://www.meadowlands.org/mrcc/annualreport.html','_top','148','','','','003300','000000','white','white')
	oCMenu.makeMenu('sub93','top9','Economic Update','http://www.meadowlands.org/mrcc/economicupdate.html','_top','148','','','','003300','000000','white','white')

oCMenu.makeMenu('top10','','','http://www.meadowlands.org/mrcc/ypn.html','_top',36,22,'http://www.meadowlands.org/mrcc/images/menu/ypn_off.jpg','http://www.meadowlands.org/mrcc/images/menu/ypn_on.jpg')
	oCMenu.makeMenu('sub100','top10','YPN','http://www.meadowlands.org/mrcc/ypn.html','_top','80','','','','003300','000000','white','white')
	oCMenu.makeMenu('sub101','top10','Next Event','http://www.meadowlands.org/mrcc/ypn_next.html','_top','80','','','','003300','000000','white','white')

oCMenu.makeMenu('top12','','','http://www.nationjob.com/meadowlands/','_blank',104,22,'http://www.meadowlands.org/mrcc/images/menu/regional_jobs_off.jpg','http://www.meadowlands.org/mrcc/images/menu/regional_jobs_on.jpg')

oCMenu.makeMenu('top13','','','http://www.meadowlands.org/mrcc/sitemap.html','_top',67,22,'http://www.meadowlands.org/mrcc/images/menu/site_map_off.jpg','http://www.meadowlands.org/mrcc/images/menu/site_map_on.jpg')


oCMenu.makeStyle(); oCMenu.construct()		

function cm_checkScrolled(obj){
	if(bw.ns4 || bw.ns6) obj.scrolledY=obj.win.pageYOffset
	else obj.scrolledY=obj.win.document.body.scrollTop
	if(obj.scrolledY!=obj.lastScrolled){
		if(!obj.useframes){
			self.status=obj.scrolledY
			if(obj.scrolledY>119){
				for(i=0;i<obj.l[0].num;i++){var sobj=obj.l[0].o[i].oBorder; sobj.moveY(obj.scrolledY)}
				if(obj.usebar) obj.oBar.moveY(obj.scrolledY)
			}else{
				for(i=0;i<obj.l[0].num;i++){var sobj=obj.l[0].o[i].oBorder; sobj.moveY(obj.fromtop)}
				if(obj.usebar) obj.oBar.moveY(obj.fromtop)
			}

		}
		obj.lastScrolled=obj.scrolledY; page.y=obj.scrolledY; page.y2=page.y2orig+obj.scrolledY
		if(!obj.useframes || bw.ie){ clearTimeout(obj.tim); obj.isover=0; obj.hideSubs(1,0)}
	}
	if((bw.ns4 || bw.ns6) && !obj.useframes) setTimeout("cm_checkScrolled("+obj.name+")",200)
}