/*****************************************************************************
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.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	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.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=""
oCMenu.useNS4links=1
oCMenu.checkselect=0
oCMenu.offlineUrl="file://C|/1serv/home/tefl/public_html"
oCMenu.onlineUrl="http://www.rhoel.co.uk/"
oCMenu.pagecheck=1
oCMenu.checkscroll=0
oCMenu.resizecheck=1 
oCMenu.wait=700 
oCMenu.usebar=0
oCMenu.barcolor="#996600" 
oCMenu.barwidth="145" 
oCMenu.barheight="menu" 
oCMenu.barx="menu" 
oCMenu.bary="menu"
oCMenu.barinheritborder=0 
oCMenu.rows=1
oCMenu.fromleft=23
oCMenu.fromtop=192

if (bw.ie) oCMenu.fromtop=oCMenu.fromtop+6
oCMenu.pxbetween=0

oCMenu.menuplacement="left"

oCMenu.level[0]=new Array() 
oCMenu.level[0].width=125
oCMenu.level[0].height=20
oCMenu.level[0].bgcoloroff="#663300"
oCMenu.level[0].bgcoloron="#996600" 
oCMenu.level[0].textcolor="#CC9966" 
oCMenu.level[0].hovercolor="#FFFFCC" 
oCMenu.level[0].style="padding:2px; font-family:arial,tahoma,helvetica,sans-serif; font-size:13px; font-weight:bold; text-align: center"
oCMenu.level[0].border=1
oCMenu.level[0].bordercolor="#330000"
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=1 
oCMenu.level[0].NS4font="arial,tahoma,helvetica,sans-serif"
oCMenu.level[0].NS4fontSize="2"
oCMenu.level[0].clip=0 
oCMenu.level[0].clippx=0 
oCMenu.level[0].cliptim=0 
oCMenu.level[0].filter=0 
oCMenu.level[0].align="bottom" 

oCMenu.level[1]=new Array() 
oCMenu.level[1].width=125
oCMenu.level[1].height=20
oCMenu.level[1].style="padding:2px; font-family:arial,tahoma,helvetica,sans-serif; font-size:12px; font-weight:bold"
oCMenu.level[1].align="bottom" 
oCMenu.level[1].offsetX=1
oCMenu.level[1].offsetY=0
oCMenu.level[1].textcolor="#CC9966"
oCMenu.level[1].hovercolor="#FFFFCC"  
oCMenu.level[1].border=1 
oCMenu.level[1].bordercolor="#330000"

oCMenu.level[2]=new Array() 
oCMenu.level[2].width=125
oCMenu.level[2].height=20
oCMenu.level[2].style="padding:2px; font-family:arial,tahoma,helvetica,sans-serif; font-size:12px; font-weight:bold"
oCMenu.level[2].align="bottom" 
oCMenu.level[2].offsetX=1
oCMenu.level[2].offsetY=0
oCMenu.level[2].textcolor="#CC9966" 
oCMenu.level[2].hovercolor="#FFFFCC" 
oCMenu.level[2].border=1 
oCMenu.level[2].bordercolor="#330000"

/*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 specified above.
height:		The height of the element. If not specified 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('top01','','Site Navigation','','')
	oCMenu.makeMenu('sub010','top01','Home','http://www.nr1pub.com/index.html','')
	oCMenu.makeMenu('sub011','top01','Staff',				'http://www.nr1pub.ms11.net/Pages/Staff/staff-index.html','')
		oCMenu.makeMenu('staff',  'sub011','Service Staff',	'http://www.nr1pub.ms11.net/Pages/Staff/staff-index.html','')	
		oCMenu.makeMenu('staff01','sub011','A',				'http://www.nr1pub.ms11.net/Pages/Staff/staff-pix/avon/staff-avon.html','')
		oCMenu.makeMenu('staff02','sub011','Ao',			'http://www.nr1pub.ms11.net/Pages/Staff/staff-pix/ao/staff-ao.html','')		
		oCMenu.makeMenu('staff03','sub011','Anne',			'http://www.nr1pub.ms11.net/Pages/Staff/staff-pix/anne/staff-anne.html','')
		oCMenu.makeMenu('staff05','sub011','Bow',			'http://www.nr1pub.ms11.net/Pages/Staff/staff-pix/bow/staff-bow.html','')
		oCMenu.makeMenu('staff06','sub011','Da',			'http://www.nr1pub.ms11.net/Pages/Staff/staff-pix/da/staff-da.html','')
		oCMenu.makeMenu('staff07','sub011','Fon 1',			'http://www.nr1pub.ms11.net/Pages/Staff/staff-pix/fawn/staff-fawn.html','')
		oCMenu.makeMenu('staff08','sub011','Fon 2',			'http://www.nr1pub.ms11.net/Pages/Staff/staff-pix/Fon2/staff-fon2.html','')
		oCMenu.makeMenu('staff09','sub011','Kwan',			'http://www.nr1pub.ms11.net/Pages/Staff/staff-pix/kwan/staff-kwan.html','')
		oCMenu.makeMenu('staff10','sub011','Noo',			'http://www.nr1pub.ms11.net/Pages/Staff/staff-pix/noo/staff-noo.html','')
		oCMenu.makeMenu('staff11','sub011','Phai',			'http://www.nr1pub.ms11.net/Pages/Staff/staff-pix/Phai/staff-phai.html','')
		oCMenu.makeMenu('staff12','sub011','Ploy',			'http://www.nr1pub.ms11.net/Pages/Staff/staff-pix/Ploy/staff-ploy.html','')
	oCMenu.makeMenu('sub012','top01','Photo Galleries','http://www.nr1pub.ms11.net/Pages\Galleries/photo_gallery001.html','')
		oCMenu.makeMenu('sub0120','sub012','2004','','')
			oCMenu.makeMenu('sub01201','sub0120','The Early Days ...','http://www.nr1pub.ms11.net/Pages/Galleries/photo_gallery001.html','')
    	oCMenu.makeMenu('sub0121','sub012','2005','','')
    		oCMenu.makeMenu('sub01211','sub0121','Birthday Parties','','')
		   		oCMenu.makeMenu('sub012111','sub01211','Freddy`s 45th Party','','')
					oCMenu.makeMenu('sub0121111','sub012111','Photo Set 1','http://www.nr1pub.ms11.net/Pages/Galleries/BirthdayParties/Freddie2005/BDfred2005001.html','')
					oCMenu.makeMenu('sub0121112','sub012111','Photo Set 2','http://www.nr1pub.ms11.net/Pages/Galleries/BirthdayParties/Freddie2005/BDfred2005002.html','')
				oCMenu.makeMenu('sub012112','sub01211','Bar`s 1st Birthday','','')
					oCMenu.makeMenu('sub0121121','sub012112','Photo Set 1','http://www.nr1pub.ms11.net/Pages/Galleries/BirthdayParties/Number1_001/Nr1-1BD_gallery001.html','')
					oCMenu.makeMenu('sub0121122','sub012112','Photo Set 2','http://www.nr1pub.ms11.net/Pages/Galleries/BirthdayParties/Number1_001/Nr1-1BD_gallery002.html','')
			oCMenu.makeMenu('sub01212','sub0121','General Bar Pics','','')
				oCMenu.makeMenu('sub012121','sub01212','Gallery 1','http://www.nr1pub.ms11.net/Pages/Galleries/photo_gallery001.html','')
				oCMenu.makeMenu('sub012122','sub01212','Gallery 2','http://www.nr1pub.ms11.net/Pages/Galleries/photo_gallery002.html','')
				oCMenu.makeMenu('sub012123','sub01212','Gallery 3','http://www.nr1pub.ms11.net/Pages/Galleries/photo_gallery003.html','')
				oCMenu.makeMenu('sub012124','sub01212','Gallery 4','http://www.nr1pub.ms11.net/Pages/Galleries/photo_gallery004.html','')
				oCMenu.makeMenu('sub012125','sub01212','Gallery 5','http://www.nr1pub.ms11.net/Pages/Galleries/photo_gallery005.html','')
				oCMenu.makeMenu('sub012126','sub01212','Gallery 6','http://www.nr1pub.ms11.net/Pages/Galleries/photo_gallery006.html','')
				oCMenu.makeMenu('sub012127','sub01212','Gallery 7','http://www.nr1pub.ms11.net/Pages/Galleries/photo_gallery007.html','')
				oCMenu.makeMenu('sub012128','sub01212','Gallery 8','http://www.nr1pub.ms11.net/Pages/Galleries/photo_gallery008.html','')
				oCMenu.makeMenu('sub012129','sub01212','Gallery 9','http://www.nr1pub.ms11.net/Pages/Galleries/photo_gallery009.html','')
				oCMenu.makeMenu('sub0121210','sub01212','Gallery 10','http://www.nr1pub.ms11.net/Pages/Galleries/photo_gallery010.html','')
			oCMenu.makeMenu('sub01213','sub0121','Songkran 2005','','')
				oCMenu.makeMenu('sub012131','sub01213','Set 1','http://www.nr1pub.ms11.net/Pages/Galleries/Songkran2005/Songkran001.html','')
		oCMenu.makeMenu('sub0122','sub012','2006','','')
    		oCMenu.makeMenu('sub01221','sub0122','Birthday Parties','','')
		   		oCMenu.makeMenu('sub012211','sub01221','Freddy`s 46th Party','','')
					oCMenu.makeMenu('sub0122111','sub012211','Photo Set 1','http://www.number1barthailand.com/Pages/Galleries/BirthdayParties/Freddie2006/BDfred2006-01.html','')
					oCMenu.makeMenu('sub0122112','sub012211','Photo Set 2','http://www.number1barthailand.com/Pages/Galleries/BirthdayParties/Freddie2006/BDfred2006-02.html','')
					oCMenu.makeMenu('sub0122113','sub012211','Photo Set 3','http://www.number1barthailand.com/Pages/Galleries/BirthdayParties/Freddie2006/BDfred2006-03.html','')
	    	oCMenu.makeMenu('sub01222','sub0122','General Bar Photos','','')
	    	oCMenu.makeMenu('sub01223','sub0122','Songkran 2006','','')
					oCMenu.makeMenu('sub012231','sub01223','Gallery 1','http://www.number1barthailand.com/Pages/Galleries/Songkran2006/Songkran06-01.html','')
					oCMenu.makeMenu('sub012232','sub01223','Gallery 2','http://www.number1barthailand.com/Pages/Galleries/Songkran2006/Songkran06-02.html','')
					oCMenu.makeMenu('sub012233','sub01223','Gallery 3','http://www.number1barthailand.com/Pages/Galleries/Songkran2006/Songkran06-03.html','')					
		oCMenu.makeMenu('sub0123','sub012','Hall of Fame','','')
			oCMenu.makeMenu('sub01231','sub0123','Hall of Fame 01','http://www.number1barthailand.com/Pages/HallOfFame/Famehall001/hof01.html','')
			oCMenu.makeMenu('sub01232','sub0123','Hall of Fame 02','http://www.number1barthailand.com/Pages/HallOfFame/Famehall002/hof02.html','')
			oCMenu.makeMenu('sub01233','sub0123','Hall of Fame 03','http://www.number1barthailand.com/Pages/HallOfFame/Famehall003/hof03.html','')
			oCMenu.makeMenu('sub01234','sub0123','Hall of Fame 04','http://www.number1barthailand.com/Pages/HallOfFame/Famehall004/hof04.html','')
	oCMenu.makeMenu('sub013','top01','Rentals','','')
		oCMenu.makeMenu('sub0130','sub013','Rooms','','')
			oCMenu.makeMenu('sub01312','sub0130',' ... at Number 1 Bar','http://www.nr1pub.ms11.net/Pages/Services/Rentals/no1-room.html','')
   			oCMenu.makeMenu('sub01313','sub0130',' ... other local rooms','','')
		oCMenu.makeMenu('sub0131','sub013','Transport','','')
			oCMenu.makeMenu('sub01314','sub0131','Motorbikes','','')
   			oCMenu.makeMenu('sub01315','sub0131','Automobiles','','')
	oCMenu.makeMenu('sub014','top01','Other Services','','')
 	  	oCMenu.makeMenu('sub0140','sub014','Visa Runs','','')
	oCMenu.makeMenu('sub015','top01','Travel Tickets', '','')
	oCMenu.makeMenu('sub016','top01','Links','http://www.nr1pub.ms11.net/Pages/Links/Links.html','')
	oCMenu.makeMenu('sub017','top01','Contact Us','http://www.nr1pub.ms11.net/Pages/ContactUs.html','')
	oCMenu.makeMenu('sub018','top01','Admin','http://www.nr1pub.ms11.net/Admin/admin001.html','')
	

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)
}

