/*****************************************************************************
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|/home/fillmore/public_html"
oCMenu.onlineUrl="http://www.fillmore-east-thailand.com/"

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

oCMenu.usebar=1

oCMenu.barcolor="#000000" 
oCMenu.barwidth="menu" 
oCMenu.barheight="menu" 
oCMenu.barx="menu" 
oCMenu.bary="menu"
oCMenu.barinheritborder=0 

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

oCMenu.menuplacement="center"

oCMenu.level[0]=new Array() 
oCMenu.level[0].width=90
oCMenu.level[0].height=20 
oCMenu.level[0].bgcoloroff="#C0A178"
oCMenu.level[0].bgcoloron="#C0A178" 
oCMenu.level[0].textcolor="#000000" 
oCMenu.level[0].hovercolor="0000FF" 
oCMenu.level[0].style="padding:2px; font-family:tahoma,arial,helvetica,sans-serif; font-size:12px; font-weight:bold; text-align: center" //The style for all level[0] (top) items. - Value: "style_settings"
oCMenu.level[0].border=0 
oCMenu.level[0].bordercolor="#000000" 
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=-1 
oCMenu.level[0].NS4font="tahoma,arial,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" 


/*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('top0','','Fillmore East','http://www.fillmore-east-thailand.com/about_fillmore_east_thailand.html','')
oCMenu.makeMenu('top1','','Our Menu','http://www.fillmore-east-thailand.com/menu.html','')
oCMenu.makeMenu('top2','','Drink Menu','http://www.fillmore-east-thailand.com/drinks.html','')
oCMenu.makeMenu('top3','','Comments','http://www.fillmore-east-thailand.com/comments_from_our_customers.html','')
oCMenu.makeMenu('top4','','Photo Album','http://www.fillmore-east-thailand.com/photo-album.html','')
oCMenu.makeMenu('top5','','Site Map','http://www.fillmore-east-thailand.com/site_map.html','')
oCMenu.makeMenu('top6','','Contact','http://www.fillmore-east-thailand.com/contact_the_fillmore.html','')
oCMenu.makeMenu('top7','','Home','http://www.fillmore-east-thailand.com/index.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)
}
