
/***
This is the menu creation code - place it right after your 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 = 0

//Menu properties
oCMenu.pxBetween=30
oCMenu.fromLeft=20
oCMenu.fromTop=4
oCMenu.rows=1
oCMenu.menuPlacement="center"

oCMenu.offlineRoot="file:///D:/Wheatley/web_page/denniswheatley/"
oCMenu.onlineRoot="/"
oCMenu.resizeCheck=1
oCMenu.wait=1000
oCMenu.fillImg="graphics/cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="85%"
oCMenu.barHeight="menu"
oCMenu.barClass="clBar"
oCMenu.barX=0
oCMenu.barY=0
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""

//Level properties - ALL properties have to be specified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=120
oCMenu.level[0].height=23
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="graphics/arrow-down.gif"
oCMenu.level[0].arrowWidth=11
oCMenu.level[0].arrowHeight=12
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=20
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+58
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].arrow="graphics/arrow-right.gif"
oCMenu.level[1].arrowWidth=8
oCMenu.level[1].arrowHeight=8


//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to specify 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=150
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','','&nbsp;Works')
	oCMenu.makeMenu('sub000','top0','1st editions','bibliography.htm#novels','',120)
		oCMenu.makeMenu('sub0001','sub000','- de Richlieu','bibliography.htm#dr','',160,0)
		oCMenu.makeMenu('sub0002','sub000','- Avril Bamborough','bibliography.htm#ab','',160,0)
		oCMenu.makeMenu('sub0003','sub000','- Gregory Sallust','bibliography.htm#gs','',160,0)
		oCMenu.makeMenu('sub0004','sub000','- Heirs of J T Long','bibliography.htm#jtl','',160,0)
		oCMenu.makeMenu('sub0005','sub000','- Swithin Destime, etc.','bibliography.htm#sd','',160,0)
		oCMenu.makeMenu('sub0006','sub000','- Camilla &#0038; Others','bibliography.htm#co','',160,0)
		oCMenu.makeMenu('sub0007','sub000','- Sir Anthony Lovelace &#0038; Co.','bibliography.htm#al','',160,0)
		oCMenu.makeMenu('sub0008','sub000','- Various','bibliography.htm#va','',160,0)
		oCMenu.makeMenu('sub0009','sub000','- Julian Day','bibliography.htm#jd','',160,0)
		oCMenu.makeMenu('sub0010','sub000','- Lavinia Leigh &#0038; Others','bibliography.htm#llo','',160,0)
		oCMenu.makeMenu('sub0011','sub000','- Philip Vaudell','bibliography.htm#pv','',160,0)
		oCMenu.makeMenu('sub0012','sub000','- Roger Brook','bibliography.htm#rb','',160,0)
		oCMenu.makeMenu('sub0013','sub000','- Toby Jugg','bibliography.htm#tj','',160,0)
		oCMenu.makeMenu('sub0014','sub000','- ? (...Of Vice And Virtue)','bibliography.htm#vv','',160,0)
		oCMenu.makeMenu('sub0015','sub000','- Kem Lincoln','bibliography.htm#kl','',160,0)
		oCMenu.makeMenu('sub0016','sub000','- Molly Fountain','bibliography.htm#mf','',160,0)
		oCMenu.makeMenu('sub0017','sub000','- Nicholas Nov&aacute;k','bibliography.htm#nn','',160,0)
		oCMenu.makeMenu('sub0018','sub000','- Gifford Hillary','bibliography.htm#gh','',160,0)
		oCMenu.makeMenu('sub0019','sub000','- Robbie Green','bibliography.htm#rg','',160,0)
		oCMenu.makeMenu('sub0020','sub000','- &#8216;Lucky&#8217; Adam Gordon','bibliography.htm#ag','',160,0)
		oCMenu.makeMenu('sub0021','sub000','- Linda Lee','bibliography.htm#ll','',160,0)
	oCMenu.makeMenu('sub001','top0','Lymington edition','bibliography.htm#lymington','',120)
	oCMenu.makeMenu('sub002','top0','&#8216;Heron&#8217; edition','bibliography.htm#heron','',120)
	oCMenu.makeMenu('sub003','top0','Century Hutchinson edition','bibliography.htm#century','',120,34)
	oCMenu.makeMenu('sub004','top0','Short Stories','','',120)
		oCMenu.makeMenu('sub0022','sub004','- Short Stories','bibliography02.htm#shortstories','',160,0)
		oCMenu.makeMenu('sub0023','sub004','- Unpublished Short Stories','bibliography02.htm#unpublished','',160,0)
	oCMenu.makeMenu('sub005','top0','Compilations','bibliography.htm#compilations','',120)
	oCMenu.makeMenu('sub006','top0','Crime Dossiers','bibliography02.htm#crimedossiers','',120)
	oCMenu.makeMenu('sub007','top0','Historical','bibliography02.htm#historical','',120)
	oCMenu.makeMenu('sub008','top0','Justerini &#0038; Brooks','bibliography02.htm#justerini','',120)
	oCMenu.makeMenu('sub009','top0','Autobiographical','bibliography02.htm#autobio','',120)
	oCMenu.makeMenu('sub010','top0','Reference','bibliography02.htm#reference','',120)
	oCMenu.makeMenu('sub011','top0','Screenplays','bibliography03.htm#screenplay','',120)
	oCMenu.makeMenu('sub012','top0','War Papers','bibliography04.htm#warpapers','',120)
	oCMenu.makeMenu('sub013','top0','Board Games','bibliography04.htm#boardgames','',120)
	oCMenu.makeMenu('sub014','top0','Wine Publications','bibliography04.htm#wine','',120)
	oCMenu.makeMenu('sub015','top0','Other Media','','',120)
		oCMenu.makeMenu('sub0024','sub015','- Films','bibliography04.htm#films','',160,0)
		oCMenu.makeMenu('sub0025','sub015','- Videos','bibliography04.htm#videos','',160,0)
		oCMenu.makeMenu('sub0026','sub015','- Audio Tapes','bibliography04.htm#audio','',160,0)
	oCMenu.makeMenu('sub016','top0','Adaptations by others','bibliography03.htm#adaptations','',120,34)

oCMenu.makeMenu('top1','','&nbsp;Articles')
	oCMenu.makeMenu('sub100','top1','Articles by DW','bibliography03.htm#articles1','',120)
	oCMenu.makeMenu('sub101','top1','Articles about DW','bibliography03.htm#articles2','',120)

oCMenu.makeMenu('top2','','&nbsp;Other')
	oCMenu.makeMenu('sub201','top2','Edited by DW','','',150)
		oCMenu.makeMenu('sub2010','sub201','- Edited by DW','bibliography03.htm#editedby','',120,0)
		oCMenu.makeMenu('sub2011','sub201','- Library of the Occult','bibliography03.htm#lo','',120,0)
	oCMenu.makeMenu('sub202','top2','Introduced by DW','bibliography03.htm#introby','',150)
	oCMenu.makeMenu('sub203','top2','Biography / Bibliography','bibliography03.htm#biography','',150)
	oCMenu.makeMenu('sub204','top2','Unpublished miscellany','bibliography04.htm#misc','',150)
	oCMenu.makeMenu('sub205','top2','Other publications containing DW&#8217;s work','bibliography04.htm#containing','',150,34)

oCMenu.makeMenu('top3','','&nbsp;CONTENTS PAGE','contents.htm')

//Leave this line - it constructs the menu
oCMenu.construct()

