/***
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

//Menu properties
oCMenu.pxBetween=0


var infos=new cm_bwcheck()
var navigateur

if (infos.ie) 
	navigateur="IE" 
//else if (infos.op)
	//navigateur="OPERA"
else 
	navigateur="NS"
	
oCMenu.fromLeft=0

FromTop = 0 // position par defaut sous IE PC

//if (bw.ns4 && (bw.sunos || bw.linux)) FromTop = 42
//if (bw.galeon && bw.linux) FromTop = 27
//if (bw.moz && bw.sunos) FromTop = 27
//if (bw.konqueror) FromTop = 28

oCMenu.fromTop=FromTop
oCMenu.rows=1
oCMenu.menuPlacement="center"

oCMenu.offlineRoot="file:///c|/Data/Web/loveluck.net/family-history/"
oCMenu.onlineRoot="http://www.loveluck.net/family-history/"
oCMenu.resizeCheck=1
oCMenu.wait=1000
oCMenu.fillImg="./images/common/cm_fill.gif"
oCMenu.zIndex=1000

//Background bar properties
oCMenu.useBar=1
oCMenu.barWidth="100%"
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 spesified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=150
oCMenu.level[0].height=25
oCMenu.level[0].borderX=1
oCMenu.level[0].borderY=0
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=0
oCMenu.level[0].regClass="clLevel"+navigateur+"0"
oCMenu.level[0].overClass="clLevel"+navigateur+"over"+"0"
oCMenu.level[0].borderClass="clLevel"+navigateur+"border0"
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"
oCMenu.level[0].roundBorder=0


//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=160
oCMenu.level[1].height=20
oCMenu.level[1].regClass="clLevel"+navigateur
oCMenu.level[1].overClass="clLevel"+navigateur+"over"
oCMenu.level[1].borderClass="clLevel"+navigateur+"border"
oCMenu.level[1].borderX=1
oCMenu.level[1].borderY=1
oCMenu.level[1].align="right"
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=-1
oCMenu.level[1].arrow="./images/common/arrow_topmenu.gif"
oCMenu.level[1].arrowWidth=5
oCMenu.level[1].arrowHeight=5


//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=135
oCMenu.level[2].height=15
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].borderX=1
oCMenu.level[2].borderY=1
oCMenu.level[2].regClass="clLevel"+navigateur
oCMenu.level[2].overClass="clLevel"+navigateur+"over"
oCMenu.level[2].borderClass="clLevel"+navigateur+"border"
oCMenu.level[2].arrow="/images/common/arrow_topmenu.gif"
oCMenu.level[2].arrowWidth=5
oCMenu.level[2].arrowHeight=5

//EXAMPLE SUB LEVEL[3] 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[3]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[3].width=130
oCMenu.level[3].height=15
oCMenu.level[3].offsetX=0
oCMenu.level[3].offsetY=0
oCMenu.level[3].borderX=1
oCMenu.level[3].borderY=1
oCMenu.level[3].regClass="clLevel"+navigateur
oCMenu.level[3].overClass="clLevel"+navigateur+"over"
oCMenu.level[3].borderClass="clLevel"+navigateur+"border"
oCMenu.level[3].arrow="./images/common/arrow_topmenu.gif"
oCMenu.level[3].arrowWidth=5
oCMenu.level[3].arrowHeight=5

/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
*************************************/


//General stuff
oCMenu.makeMenu('top1','','Home','index.html','',55,25,'','','','','','','','','','')
   oCMenu.makeMenu('sub10','top1','Whats New','new.html','')
   oCMenu.makeMenu('sub11','top1','Questions','loveluck-questions.html',''   )
   oCMenu.makeMenu('sub12','top1','Sources','sources.html','')
   oCMenu.makeMenu('sub13','top1','Name & Origins','origins.html','')
   oCMenu.makeMenu('sub14','top1','Search','search.html','')

//Family Tree
	  oCMenu.makeMenu('top2','','Family Tree','family-tree.html','',100,25,'','','','','','','','','','')
   oCMenu.makeMenu('sub20','top2','PhpGedView Portal','http://www.loveluck.net/PGV/index.php?command=gedcom&ged=glam-lovelucks.ged','')
   oCMenu.makeMenu('sub21','top2','Descendant Tree','documents/john-loveluck-descendants.html','')

//Records  
oCMenu.makeMenu('top3','','Records','records-intro.html','',80,25,'','','','','','','','','')

   oCMenu.makeMenu('sub30','top3','Parish & PRO','loveluck-records.html')
   oCMenu.makeMenu('sub31','top3','IGI Glamorgan','lovglam.html')
   oCMenu.makeMenu('sub32','top3','Monumental Inscriptions','loveluck-mis.html')
   oCMenu.makeMenu('sub33','top3','Census records','census-records.html')
   oCMenu.makeMenu('sub34','top3','Shipping records','ship-records.html')
   oCMenu.makeMenu('sub35','top3','Wills etc.','wills.html')

//Documents
oCMenu.makeMenu('top4','','Documents','docs-intro.html','',100,25,'','','','','','','','','','')
   oCMenu.makeMenu('sub40','top4','Lovelucks in Glamorgan','jh-notes.html','')
   oCMenu.makeMenu('sub41','top4','Marendaz & Thomas families','marendaz-note.html','')
   oCMenu.makeMenu('sub42','top4','Loveluck family legends','documents/legends.html','')
   oCMenu.makeMenu('sub43','top4','Story of Kenfig','story-of-kenfig.html','')
   oCMenu.makeMenu('sub44','top4','Notes on John Loveluck','documents/jd-thomas-notes-john-l.html','')
   oCMenu.makeMenu('sub45','top4','A Newton Legend','documents/newton-legend.html','')
   oCMenu.makeMenu('sub46','top4','Voyage of James Courtis L','jcl-journal/journal.html','')
   oCMenu.makeMenu('sub47','top4','Loveluck & Related Families','j-dixon.html','')
   oCMenu.makeMenu('sub48','top4','Chilean Lovelucks','documents/chilean-lovelucks.pdf','') 


//Leave this line - it constructs the menu
oCMenu.construct()
