/*** 
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 = 0

//Menu properties   
oCMenu.pxBetween=2
oCMenu.fromLeft=18 
oCMenu.fromTop=180   
oCMenu.rows=0 
oCMenu.menuPlacement="left"
                                                             
oCMenu.offlineRoot="" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1 
oCMenu.wait=100 
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=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=125
oCMenu.level[0].height=26
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=00
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="right"

//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=125
oCMenu.level[1].height=28
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=1
oCMenu.level[1].borderY=1
oCMenu.level[1].align="left" 
oCMenu.level[1].offsetX=140
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=150
oCMenu.level[2].height=25
oCMenu.level[2].offsetX=200
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) 
*************************************/
//STARTMENUDEF
//oCMenu.makeMenu('top1','','Hafan<span class=\'engM\'><br>Home</span><hr class=\'pnk\'>','index.php')
//oCMenu.makeMenu('top2','','Yngl&#375;n &acirc; Cyd<span class=\'engM\'><br>About Cyd</span><hr class=\'pnk\'>','')
//oCMenu.makeMenu('sub2_1','top2','Gweithgareddau<span class=\'engM\'><br>Activities</span>','gweithgareddau.php')
//oCMenu.makeMenu('sub2_2','top2','Cynllun Pontio<span class=\'engM\'><br>Bridging project</span>','cynllun-pontio.php')
//oCMenu.makeMenu('sub2_3','top2','Siaradwyr rhugl a Chyd<span class=\'engM\'><br>Fluent speakers and Cyd</span>','cymry-cymraeg.php')
//oCMenu.makeMenu('sub2_4','top2','Tipyn o Hanes<span class=\'engM\'><br>History of Cyd</span>','hanes.php')
//oCMenu.makeMenu('sub2_5','top2','English summary<span class=\'engM\'><br>Crynodeb saesneg</span>','english.php')
//oCMenu.makeMenu('top3','','Cysylltwch â ni<span class=\'engM\'><br>Contact us</span><hr class=\'pnk\'>','cyswllt.php')
//oCMenu.makeMenu('sub3_1','top3','Swyddfa a swyddogion<span class=\'engM\'><br>Main office &amp; staff</span>','swyddfa.php')
//oCMenu.makeMenu('sub3_2','top3','Cyd yn eich ardal<span class=\'engM\'><br>Cyd in your area</span>','canghennau.php')
//oCMenu.makeMenu('top4','','Digwyddiadur<span class=\'engM\'><br>Events</span><hr class=\'pnk\'>','digwyddiadau.php')
//oCMenu.makeMenu('top5','','Newyddion<span class=\'engM\'><br>News</span><hr class=\'pnk\'>','newyddion.php')
//oCMenu.makeMenu('top6','','Adnoddau dysgu<span class=\'engM\'><br>Learning resources</span><hr class=\'pnk\'>','')
//oCMenu.makeMenu('sub6_1','top6','Ysgoloriaethau<span class=\'engM\'><br>Scholarships</span>','ysgoldlj.php')
//oCMenu.makeMenu('sub6_2','top6','Meddalwedd Cymraeg<span class=\'engM\'><br>Welsh software</span>','meddalwedd.php')
//oCMenu.makeMenu('sub6_3','top6','Adnoddau ar-lein<span class=\'engM\'><br>On-line resources</span>','dolennau.php')
//oCMenu.makeMenu('sub6_4','top6','Cyhoeddiadau Cyd<span class=\'engM\'><br>Cyd publications</span>','cyhoeddiadau.php')
//oCMenu.makeMenu('top7','','Cylchgrawn Cyd<span class=\'engM\'><br>Cyd magazine</span><hr class=\'pnk\'>','cadwyn.php')
//oCMenu.makeMenu('sub7_1','top7','Beth yw Cadwyn?<span class=\'engM\'><br>What is Cadwyn?</span>','cadwyn.php')
//oCMenu.makeMenu('sub7_2','top7','Hysbysebu yn \'Cadwyn\'<span class=\'engM\'><br>Advertising in \'Cadwyn\'</span>','cadwyn.php#hysbys')
//oCMenu.makeMenu('sub7_3','top7','Archif<span class=\'engM\'><br>Archive</span>','cadwyn-archif.php')
//oCMenu.makeMenu('sub7_4','top7','E-lythr Cyd<span class=\'engM\'><br>Cyd E-letter</span>','erestr.php')
//oCMenu.makeMenu('top8','','Ymunwch &acirc; Cyd<span class=\'engM\'><br>How to join</span><hr class=\'pnk\'>','ymuno.php')
//oCMenu.makeMenu('top9','','Parth cyfyngedig<span class=\'engM\'><br>Restricted area</span><hr class=\'pnk\'>','staff01.php')
//oCMenu.makeMenu('sub9_1','top9','Hafan staff<span class=\'engM\'><br>Staff home</span>','staff01.php')
//oCMenu.makeMenu('sub9_2','top9','Mewngofnodi<span class=\'engM\'><br>Login</span>','admin/padmin.php')
//oCMenu.makeMenu('sub9_3','top9','Allgofnodi<span class=\'engM\'><br>Logout</span>','admin/padmin.php?userfunction=logout')
//oCMenu.makeMenu('sub9_4','top9','Gweinyddu gwefan<span class=\'engM\'><br>Site admin</span>','admin/padmin.php?userfunction=startsiteedit')
//oCMenu.makeMenu('sub9_5','top9','Diweddu gweinyddu<span class=\'engM\'><br>End site admin</span>','admin/padmin.php?userfunction=startsiteedit')
//oCMenu.makeMenu('sub9_6','top9','Gweinyddu databas<span class=\'engM\'><br>(Canghennau ayyb)</span>','goldb.php')
//oCMenu.makeMenu('sub9_7','top9','Golygu digwyddiadur<span class=\'engM\'><br>Edit events</span>','goldig.php')
//oCMenu.makeMenu('sub9_8','top9','Golygu newyddion<span class=\'engM\'><br>Edit news</span>','golnew.php')
//ENDMENUDEF

//Leave this line - it constructs the menu
//oCMenu.construct()		



