/*Browsercheck object - we have to move this into the page to prevent an error in NS4*/
function cm_bwcheck(){
	//In theory we should use object detection, but this script needs work-arounds for almost every browser...
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent.toLowerCase()
	this.dom=document.getElementById?1:0
	this.ns4=(!this.dom && document.layers)?1:0;
	this.op=window.opera 
	this.moz=(this.agent.indexOf("gecko")>-1 || window.sidebar)
	this.ie=this.agent.indexOf("msie")>-1 && !this.op
	if(this.op){
		this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1)
		this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1)
		this.op7=this.dom&&!this.op5&&!this.op6 //So all higher opera versions will use it
	}else if(this.moz) this.ns6 = 1
	else if(this.ie){
		this.ie4 = !this.dom && document.all
  	this.ie5 = (this.agent.indexOf("msie 5")>-1)
  	this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1)
  	this.ie6 = this.dom && !this.ie4 && !this.ie5 && ! this.ie55
	}
	this.mac=(this.agent.indexOf("mac")>-1)
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6 || this.op7)
  this.usedom= this.ns6||this.op7//Use dom creation
  this.reuse = this.ie||this.op7||this.usedom //Reuse layers
  this.px=this.dom&&!this.op5?"px":""
	return this
}
var bw=new cm_bwcheck()
/*** 
This is the menu creation code - place it right after you body tag
Feel free to add this to a stand-alone js file and link it to your page.
**/

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

oCMenu.frames = 1

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=0 
oCMenu.fromTop=75   
oCMenu.rows=1 
oCMenu.menuPlacement="left"
                                                             
oCMenu.offlineRoot="file:///C|/Sites/Own/Lee/" 
oCMenu.onlineRoot="http://estraven.silverday.net/lee/" 
oCMenu.resizeCheck=1 
oCMenu.wait=1000 
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=1
oCMenu.barWidth="100%"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX=0 
oCMenu.barY=75
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""

//Level properties - ALL properties have to be spesified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=110
oCMenu.level[0].height=22 
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=1
oCMenu.level[0].borderY=1
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0
oCMenu.level[0].align="bottom"

//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=oCMenu.level[0].width-2
oCMenu.level[1].height=22
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=1
oCMenu.level[1].borderY=1
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"


//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=oCMenu.level[0].width-2
oCMenu.level[2].height=20
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].regClass="clLevel2"
oCMenu.level[2].overClass="clLevel2over"
oCMenu.level[2].borderClass="clLevel2border"


/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/
oCMenu.makeMenu('top0','','<img src="'+('images/menu/intro.gif')+'" name=intro width=124 height=22  border=0>','intro.html','frmMain')
	oCMenu.makeMenu('sub00','top0','&nbsp;&nbsp;&nbsp;Introduction','intro.html')
	
oCMenu.makeMenu('top1','','<img src="'+('images/menu/bruce.gif')+'" name=intro width=95 height=22  border=0>','bruce/main.html','frmMain')
	oCMenu.makeMenu('sub10','top1','Biography','bruce/main.html')
		oCMenu.makeMenu('sub110','sub10','On unsettled matters','bruce/essay.html')	
		oCMenu.makeMenu('sub111','sub10','"The Bruce Lee Story"','bruce/related/dragon.html')
	oCMenu.makeMenu('sub11','top1','Noteworthy','bruce/news/main.html')
	oCMenu.makeMenu('sub12','top1','Career','bruce/career/main.html')
		oCMenu.makeMenu('sub120','sub12','Overview','bruce/career/main.html')	
		oCMenu.makeMenu('sub121','sub12','TV','bruce/career/TV/main.html')			
			oCMenu.makeMenu('sub1210','sub121','Overview','bruce/career/TV/main.html')		
			oCMenu.makeMenu('sub1211','sub121','Here Come the Brides','bruce/career/TV/brides.html')			
			oCMenu.makeMenu('sub1212','sub121','The Green Hornet','bruce/career/TV/green/main.html')			
			oCMenu.makeMenu('sub1213','sub121','Ironside','bruce/career/TV/ironside.html')					
			oCMenu.makeMenu('sub1214','sub121','Longstreet','bruce/career/TV/longstr/main.html')		
		oCMenu.makeMenu('sub122','sub12','Films','bruce/career/films/main.html')		
			oCMenu.makeMenu('sub1220','sub122','Overview','bruce/career/films/main.html')		
			oCMenu.makeMenu('sub1221','sub122','Childhood films','bruce/career/films/childhood/main.html')			
			oCMenu.makeMenu('sub1222','sub122','Hollywood films','bruce/career/films/hollywood/main.html')			
			oCMenu.makeMenu('sub1223','sub122','Hong Kong films','bruce/career/films/hongkong.html')									
			oCMenu.makeMenu('sub1224','sub122','The Big Boss','bruce/career/films/bigboss/main.html')	
			oCMenu.makeMenu('sub1225','sub122','Fist of Fury','bruce/career/films/fist/main.html')	
			oCMenu.makeMenu('sub1226','sub122','Way of the Dragon','bruce/career/films/way/main.html')	
			oCMenu.makeMenu('sub1227','sub122','Enter the Dragon','bruce/career/films/enter/main.html')	
			oCMenu.makeMenu('sub1228','sub122','Game of Death','bruce/career/films/game/main.html')	
		oCMenu.makeMenu('sub123','sub12','Background','bruce/career/background/main.html')
			oCMenu.makeMenu('sub1230','sub123','Golden Harvest','library/print/bruce/related/goldenharvest.html')
			oCMenu.makeMenu('sub1231','sub123','Shaw Brothers','library/print/bruce/related/shawbros.html')
		oCMenu.makeMenu('sub124','sub12','Bruce Games','bruce/games/index.html')
		oCMenu.makeMenu('sub125','sub12','Bruce Lee Ads','bruce/career/ads/main.html')
			oCMenu.makeMenu('sub1250','sub125','Tekken ad','bruce/career/ads/milkad.html')
			oCMenu.makeMenu('sub1251','sub125','Lipton ad','bruce/career/ads/liptonsad.html')
		oCMenu.makeMenu('sub126','sub12','Bruceploitation','bruce/career/exploit/imitate.html')			
	oCMenu.makeMenu('sub13','top1','Documentaries','bruce/career/docus/main.html')
		oCMenu.makeMenu('sub130','sub13','Overview','bruce/career/docus/main.html')		
		oCMenu.makeMenu('sub131','sub13','The Legend','bruce/career/docus/legend.html')		
		oCMenu.makeMenu('sub132','sub13','Death by Misadventure','bruce/career/docus/death.html')		
		oCMenu.makeMenu('sub133','sub13','Path of the Dragon','bruce/career/docus/path.html')		
		oCMenu.makeMenu('sub134','sub13','The Greatest','bruce/career/docus/greatest.html')										
	oCMenu.makeMenu('sub14','top1','Martial arts','bruce/martial.html')
	oCMenu.makeMenu('sub15','top1','Family','')	
		oCMenu.makeMenu('sub150','sub15','Shannon Lee','shannon/main.html')			
	
oCMenu.makeMenu('top2','','<img src="'+('images/menu/brandon.gif')+'" width=110 height=22 alt="" border="0">','brandon/main.html')
	oCMenu.makeMenu('sub21','top2','Biography','brandon/main.html')
	oCMenu.makeMenu('sub22','top2','Career','brandon/career/main.html')
		oCMenu.makeMenu('sub220','sub22','Overview','brandon/career/main.html')
		oCMenu.makeMenu('sub221','sub22','TV','brandon/career/TV/main.html')					
			oCMenu.makeMenu('sub2220','sub221','Overview','brandon/career/TV/main.html')				
			oCMenu.makeMenu('sub2221','sub221','Ohara','brandon/career/TV/ohara.html')		
		oCMenu.makeMenu('sub222','sub22','Films','brandon/career/films/main.html')
			oCMenu.makeMenu('sub2210','sub222','Overview','brandon/career/films/main.html')				
			oCMenu.makeMenu('sub2211','sub222','Kung Fu','brandon/career/films/kungfu/main.html')
			oCMenu.makeMenu('sub2212','sub222','Legacy','brandon/career/films/legacy/main.html')			
			oCMenu.makeMenu('sub2213','sub222','Laser Mission','brandon/career/films/laser/main.html')
			oCMenu.makeMenu('sub2214','sub222','Showdown - Tokyo','brandon/career/films/showdown/main.html')
			oCMenu.makeMenu('sub2215','sub222','Rapid Fire','brandon/career/films/rapid/main.html')
			oCMenu.makeMenu('sub2216','sub222','The Crow','brandon/career/films/crow/main.html')			
		oCMenu.makeMenu('sub223','sub22','Sequels','brandon/career/related/main.html')					
			oCMenu.makeMenu('sub2230','sub223','Crow II','brandon/career/related/crow2.html')				
			oCMenu.makeMenu('sub2231','sub223','Crow: Salvation','brandon/career/related/crow3.html')
			oCMenu.makeMenu('sub2232','sub223','Crow: Wicked Prayer','brandon/career/related/crow4.html')
	oCMenu.makeMenu('sub23','top2','Documentary','brandon/career/docus/main.html')		
	oCMenu.makeMenu('sub24','top2','Martial arts','brandon/martial.html')
	oCMenu.makeMenu('sub25','top2','Family','')	
		oCMenu.makeMenu('sub250','sub25','Shannon Lee','shannon/main.html')		

oCMenu.makeMenu('top3','','<img src="'+('images/menu/library.gif')+'" width=78 height=22 alt="" border="0">','library/main.html')
	oCMenu.makeMenu('sub31','top3','Books','library/books/main.html')
		oCMenu.makeMenu('sub310','sub31','Bruce','library/books/bruce.html')
			oCMenu.makeMenu('sub3100','sub310','Martial arts','library/books/martial.html')				
		oCMenu.makeMenu('sub311','sub31','Brandon','library/books/brandon.html')	
			oCMenu.makeMenu('sub3110','sub311','The Crow','library/books/crow.html')							
	oCMenu.makeMenu('sub32','top3','Articles onsite','library/online/main.html')
		oCMenu.makeMenu('sub320','sub32','Bruce','library/online/bruce_ons.html')
			oCMenu.makeMenu('sub3201','sub320','Related','library/online/brucerl_ons.html')					
		oCMenu.makeMenu('sub321','sub32','Brandon','library/online/brandon_ons.html')
			oCMenu.makeMenu('sub3210','sub321','Related','library/online/brandonrl_ons.html')
		oCMenu.makeMenu('sub322','sub32','Shannon','library/online/shannon_ons.html')
	oCMenu.makeMenu('sub33','top3','Articles online','library/online/main.html')
		oCMenu.makeMenu('sub330','sub33','Bruce','library/online/bruce.html')
			oCMenu.makeMenu('sub3300','sub330','Jeet kune do','library/online/jeet.html')					
		oCMenu.makeMenu('sub331','sub33','Brandon','library/online/brandon.html')
			oCMenu.makeMenu('sub3310','sub331','Related','library/online/brandonrl.html')
	oCMenu.makeMenu('sub34','top3','Articles in print','library/print/main.html')
		oCMenu.makeMenu('sub340','sub34','Bruce','library/print/bruce.html')
			oCMenu.makeMenu('sub3400','sub340','Jeet kune do','library/print/jeet.html')					
		oCMenu.makeMenu('sub341','sub34','Brandon','library/print/brandon.html')		
		oCMenu.makeMenu('sub342','sub34','Shannon','library/print/shannon.html')			
		
oCMenu.makeMenu('top4','','<img src="'+('images/menu/quotes.gif')+'" width=72 height=22 alt="" border="0">','quotes/main.html')
	oCMenu.makeMenu('sub41','top4','Bruce','quotes/bruce/main.html')
		oCMenu.makeMenu('sub410','sub41','By Bruce','quotes/bruce/bybruce.html')
		oCMenu.makeMenu('sub411','sub41','On Bruce','quotes/bruce/onbruce.html')	
	oCMenu.makeMenu('sub42','top4','Brandon','quotes/brandon/main.html')
		oCMenu.makeMenu('sub420','sub42','By Brandon','quotes/brandon/bybrandon.html')
		oCMenu.makeMenu('sub421','sub42','On Brandon','quotes/brandon/onbrandon.html')	

oCMenu.makeMenu('top5','','<img src="'+('images/menu/gallery.gif')+'" width=80 height=22 alt="" border="0">','gallery/main.php')
	oCMenu.makeMenu('sub51','top5','Bruce','')
		oCMenu.makeMenu('sub510','sub51','Candid','gallery/category.php?cid=1')
		oCMenu.makeMenu('sub511','sub51','The Green Hornet','gallery/category.php?cid=4')	
		oCMenu.makeMenu('sub512','sub51','Way of the Dragon','gallery/category.php?cid=5')
		oCMenu.makeMenu('sub513','sub51','Enter the Dragon','gallery/category.php?cid=6')	
		oCMenu.makeMenu('sub514','sub51','Game of Death','gallery/category.php?cid=7')
		oCMenu.makeMenu('sub515','sub51','Other films','gallery/category.php?cid=3')					
		oCMenu.makeMenu('sub516','sub51','Magazine covers','gallery/category.php?cid=8')				
	oCMenu.makeMenu('sub52','top5','Brandon','')
		oCMenu.makeMenu('sub520','sub52','Candid','gallery/category.php?cid=9')
		oCMenu.makeMenu('sub521','sub52','The Crow','gallery/category.php?cid=10')
		oCMenu.makeMenu('sub525','sub52','Other films','gallery/category.php?cid=2')				
		oCMenu.makeMenu('sub526','sub52','Magazine covers','gallery/category.php?cid=11')

oCMenu.makeMenu('top6','','<img src="'+('images/menu/links.gif')+'" width=62 height=22 alt="" border="0">','links/main.html')
	oCMenu.makeMenu('sub61','top6','Bruce','links/bruce/bruce.html')
		oCMenu.makeMenu('sub610','sub61','Bruce Lee','links/bruce/bruce.html')
		oCMenu.makeMenu('sub611','sub61','Jeet kune do','links/bruce/jeet.html')	
		oCMenu.makeMenu('sub612','sub61','Bruce on TV','links/bruce/TV.html')
		oCMenu.makeMenu('sub613','sub61','Bruce\'s films','links/bruce/films.html')	
		oCMenu.makeMenu('sub614','sub61','Collectibles','links/bruce/collect.html')
		oCMenu.makeMenu('sub615','sub61','Related links','links/bruce/related.html')
	oCMenu.makeMenu('sub62','top6','Brandon','links/brandon/brandon.html')
		oCMenu.makeMenu('sub620','sub62','Brandon Lee','links/brandon/brandon.html')
		oCMenu.makeMenu('sub621','sub62','The Crow','links/brandon/crow.html')	
		oCMenu.makeMenu('sub625','sub62','Other films','links/brandon/otherfilms.html')					
		oCMenu.makeMenu('sub626','sub62','Related links','links/brandon/related.html')
	oCMenu.makeMenu('sub63','top6','Martial arts','links/martial/main.html')
	oCMenu.makeMenu('sub64','top6','Martial arts films','links/martial/films.html')
			
oCMenu.makeMenu('top7','','<img src="'+('images/menu/shop.gif')+'" width=56 height=22 alt="" border="0">','shop/main.html')
	oCMenu.makeMenu('sub71','top7','Books','')
		oCMenu.makeMenu('sub710','sub71','Amazon','shop/amazon/books.html')
			oCMenu.makeMenu('sub7100','sub710','Bruce','shop/amazon/bksbruce.html')
			oCMenu.makeMenu('sub7101','sub710','Jeet Kune Do','shop/amazon/bksjkd.html')
			oCMenu.makeMenu('sub7102','sub710','Brandon','shop/amazon/bksbrandon.html')
			oCMenu.makeMenu('sub7103','sub710','The Crow','shop/amazon/bkscrow.html')
	oCMenu.makeMenu('sub72','top7','VHS/DVD','')
		oCMenu.makeMenu('sub720','sub72','Amazon','')
			oCMenu.makeMenu('sub7200','sub720','Bruce','shop/amazon/dvdbruce.html')
			oCMenu.makeMenu('sub7201','sub720','Brandon','shop/amazon/dvdbrandon.html')
			oCMenu.makeMenu('sub7202','sub720','Shannon','shop/amazon/dvdshannon.html')
		oCMenu.makeMenu('sub721','sub72','Sendit.com','')		
			oCMenu.makeMenu('sub7210','sub721','Bruce','shop/blackstar/dvdbruce.html')		
			oCMenu.makeMenu('sub7211','sub721','Brandon','shop/blackstar/dvdbrandon.html')					
			oCMenu.makeMenu('sub7212','sub721','Shannon','shop/blackstar/dvdshannon.html')				
	oCMenu.makeMenu('sub73','top7','Action figures','')			
		oCMenu.makeMenu('sub730','sub73','Bruce','shop/various/figbruce.html')			
		oCMenu.makeMenu('sub731','sub73','Brandon','shop/various/figbrandon.html')			
	oCMenu.makeMenu('sub74','top7','The Crow','shop/various/crow.html')					
	oCMenu.makeMenu('sub75','top7','The Green Hornet','shop/various/green.html')		
	oCMenu.makeMenu('sub76','top7','Posters/photos','')			
		oCMenu.makeMenu('sub760','sub76','Bruce','shop/various/phbruce.html')			
		oCMenu.makeMenu('sub761','sub76','Brandon','shop/various/phbrandon.html')					
	oCMenu.makeMenu('sub77','top7','Miscellaneous','')		
		oCMenu.makeMenu('sub770','sub77','Bruce','shop/various/bruce.html')			
		oCMenu.makeMenu('sub771','sub77','Brandon','shop/various/brandon.html')				
		oCMenu.makeMenu('sub772','sub77','Shannon','shop/various/shannon.html')
	
oCMenu.makeMenu('top8','','<img src="'+('images/menu/commune.gif')+'" width=83 height=22 alt="" border="0">','commune/main.html')
	oCMenu.makeMenu('sub81','top8','Community','commune/main.html')
		oCMenu.makeMenu('sub810','sub81','Read Guestbook','http://books.dreambook.com/estraven/dragons.html','_blank')
		oCMenu.makeMenu('sub820','sub81','Sign Guestbook','http://books.dreambook.com/estraven/dragons.sign.html','_blank')

//Leave this line - it constructs the menu
oCMenu.construct()

//top.frmMain.location.reload()
