/*****************************************************************************
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=0
oCMenu.offlineUrl="file:///C|/Inetpub/wwwroot/dhtmlcentral/"
oCMenu.onlineUrl="http://www.dhtmlcentral.com/www/"


oCMenu.pagecheck=1
oCMenu.checkscroll=2
oCMenu.resizecheck=1 
oCMenu.wait=200 

oCMenu.usebar=1 
//oCMenu.barcolor="#FAAF69"  // Slightly Darker than Background
oCMenu.barcolor="#def78c"  // Slightly Darker than Background
oCMenu.barwidth="100%" 
oCMenu.barheight="menu" 
oCMenu.barx=0 
oCMenu.bary="menu"
oCMenu.barinheritborder=0

oCMenu.rows=1
oCMenu.fromleft=170 
oCMenu.fromtop=110 
oCMenu.pxbetween=0

avail="50+((toppage.x2-85)/8)" 
oCMenu.menuplacement=new Array(50,avail,avail+"*2",avail+"*3",avail+"*4",avail+"*5",avail+"*6",avail+"*7")

oCMenu.level[0]=new Array() 
oCMenu.level[0].width=90 
oCMenu.level[0].height=16
oCMenu.level[0].bgcoloroff="transparent"
oCMenu.level[0].bgcoloron="transparent" 
oCMenu.level[0].textcolor="darkblue"
oCMenu.level[0].hovercolor="#7575F7"   // Medium Blue
oCMenu.level[0].style="font-family:arial,helvetica; font-size:12px; font-weight:bold"
oCMenu.level[0].border=0
oCMenu.level[0].bordercolor="" 
oCMenu.level[0].offsetX=0 
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=90
oCMenu.level[1].height=20
//oCMenu.level[1].bgcoloroff="#FAAF60"  // Same as Bar
oCMenu.level[1].bgcoloroff="#d2f55d"  // Same as Bar
oCMenu.level[1].bgcoloron="darkblue"   // Dark Blue
oCMenu.level[1].textcolor="darkblue"   // Dark Blue
//oCMenu.level[1].hovercolor="#FAAF69"  // Same as Bar
oCMenu.level[1].hovercolor="#def78c"  // Same as Bar
oCMenu.level[1].style="padding:2px; font-family:arial,helvetica; font-size:11px; font-weight:bold"
oCMenu.level[1].align="bottom" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
//oCMenu.level[1].border=1 
oCMenu.level[1].border=0 
oCMenu.level[1].bordercolor="#006699"  // Very Dark
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=75
oCMenu.level[2].height=17
oCMenu.level[2].style="padding:2px; font-family: arial,helvetica; font-size:11px; font-weight:bold"
oCMenu.level[2].align="bottom" 
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
//oCMenu.level[2].border=1 
oCMenu.level[2].border=0 
oCMenu.level[2].bordercolor="#006699"
oCMenu.level[2].NS4fontSize="1"
oCMenu.level[2].NS4fontColor="black"
//oCMenu.level[2].bgcoloroff="#FAAF60"  // Same as Bar
oCMenu.level[2].bgcoloroff="#c7f72a"  // Same as Bar
oCMenu.level[2].bgcoloron="darkblue"   // Dark Blue
oCMenu.level[2].textcolor="darkblue"   // Dark Blue
//oCMenu.level[2].hovercolor="#FAAF69"  // Same as Bar
oCMenu.level[2].hovercolor="#def78c"  // Same as Bar

oCMenu.makeMenu('top0','','&nbsp;Home','http://www.atzz49.dsl.pipex.com/home/index.htm','')
	
oCMenu.makeMenu('top1','','&nbsp;CSME')
	oCMenu.makeMenu('sub10','top1','About Us','http://www.atzz49.dsl.pipex.com/csme/aboutus/index.htm')
	oCMenu.makeMenu('sub11','top1','Where Are We?','http://www.atzz49.dsl.pipex.com/csme/location/index.htm')
	oCMenu.makeMenu('sub12','top1','Meetings','http://www.atzz49.dsl.pipex.com/csme/meetings/index.htm')
	
oCMenu.makeMenu('top2','','&nbsp;Calendar')
	oCMenu.makeMenu('sub21','top2','Public','http://www.atzz49.dsl.pipex.com/calendar/public/index.htm')
	oCMenu.makeMenu('sub22','top2','Member')
		oCMenu.makeMenu('sub220','sub22','Calendar','http://www.atzz49.dsl.pipex.com/calendar/member/index.htm')
		oCMenu.makeMenu('sub221','sub22','Information','http://www.atzz49.dsl.pipex.com/calendar/information/index.htm')

oCMenu.makeMenu('top3','','&nbsp;News','http://www.atzz49.dsl.pipex.com/news/index.htm')

oCMenu.makeMenu('top4','','&nbsp;Gallery')
	oCMenu.makeMenu('sub40','top4','Boats','http://www.atzz49.dsl.pipex.com/gallery/boat/index.htm')
	oCMenu.makeMenu('sub41','top4','Locomotives','http://www.atzz49.dsl.pipex.com/gallery/loco/index.htm')
	oCMenu.makeMenu('sub42','top4','Ground Views','http://www.atzz49.dsl.pipex.com/gallery/ground/index.htm')
	oCMenu.makeMenu('sub43','top4','CSME History','http://www.atzz49.dsl.pipex.com/gallery/history/index.htm')

oCMenu.makeMenu('top5','','&nbsp;Projects')
	oCMenu.makeMenu('sub50','top5','Steam')
	         oCMenu.makeMenu('sub500','sub50','LBSC Pansy',
                                               'http://www.atzz49.dsl.pipex.com/projects/project1/index.htm')
	         oCMenu.makeMenu('sub501','sub50','LBSC Hall',
                                               'http://www.atzz49.dsl.pipex.com/projects/project3/index.htm')
	         oCMenu.makeMenu('sub502','sub50','GWR 1500 Tank',
                                               'http://www.atzz49.dsl.pipex.com/projects/project5/index.htm')
	         oCMenu.makeMenu('sub503','sub50','Next Project',
                                               'http://www.atzz49.dsl.pipex.com/projects/projectx/index.htm')
	oCMenu.makeMenu('sub51','top5','Diesel')
	         oCMenu.makeMenu('sub510','sub51','Class 52',
                                               'http://www.atzz49.dsl.pipex.com/projects/project2/index.htm')
	         oCMenu.makeMenu('sub511','sub51','Class 08',
                                               'http://www.atzz49.dsl.pipex.com/projects/project4/index.htm')
	         oCMenu.makeMenu('sub512','sub51','Next Project',
                                               'http://www.atzz49.dsl.pipex.com/projects/projectx/index.htm')
	oCMenu.makeMenu('sub52','top5','Boats','http://www.atzz49.dsl.pipex.com/projects/projectx/index.htm')
	oCMenu.makeMenu('sub53','top5','Other','http://www.atzz49.dsl.pipex.com/projects/projectx/index.htm')
	         oCMenu.makeMenu('sub530','sub53','Tram',
                                               'http://www.atzz49.dsl.pipex.com/projects/project6/index.htm')

oCMenu.makeMenu('top6','','&nbsp;Attic')
	oCMenu.makeMenu('sub60','top6','Spark Arrester','http://www.atzz49.dsl.pipex.com/attic/arrester/index.htm')
	oCMenu.makeMenu('sub61','top6','Valve Setting','http://www.atzz49.dsl.pipex.com/attic/cylinder/index.htm')
	oCMenu.makeMenu('sub62','top6','Injectors','http://www.atzz49.dsl.pipex.com/attic/injector/index.htm')
	oCMenu.makeMenu('sub63','top6','Boilers','http://www.atzz49.dsl.pipex.com/attic/boiler/index.htm')
	oCMenu.makeMenu('sub64','top6','Superheaters','http://www.atzz49.dsl.pipex.com/attic/superheaters/index.htm')
	oCMenu.makeMenu('sub65','top6','Wheels Stds','http://www.atzz49.dsl.pipex.com/calendar/information/wheel.htm')

oCMenu.makeMenu('top7','','&nbsp;Links')
	oCMenu.makeMenu('sub70','top7','General M.E.','http://www.atzz49.dsl.pipex.com/links/eng/index.htm')
	oCMenu.makeMenu('sub71','top7','Societies','http://www.atzz49.dsl.pipex.com/links/society/index.htm')
	oCMenu.makeMenu('sub72','top7','Suppliers','http://www.atzz49.dsl.pipex.com/links/supplier/index.htm')
	oCMenu.makeMenu('sub73','top7','Others','http://www.atzz49.dsl.pipex.com/links/other/index.htm')

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)
}