/*** 
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
var oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

oCMenu.frames = 0

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=150 
oCMenu.fromTop=60   
oCMenu.rows=1 
oCMenu.menuPlacement="center"
                                                             
oCMenu.offlineRoot="" 
oCMenu.onlineRoot="/" 
oCMenu.resizeCheck=1 
oCMenu.wait=100 
oCMenu.fillImg=""
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0
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=110
oCMenu.level[0].height=20 
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=-1
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=0
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=-1
oCMenu.level[1].offsetY=-1
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].borderX=1


/******************************************
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','','Painting Home','painting','','120');
oCMenu.makeMenu('top1','','Galleries','','70');
oCMenu.makeMenu('sub10','top1','Entrance','painting/content/galleries/galleries.shtml','','140');
oCMenu.makeMenu('sub11','top1','Portraits','painting/content/galleries/gallery1.shtml','','140');
oCMenu.makeMenu('sub13','top1','Landscapes','painting/content/galleries/gallery3.shtml','','140');
oCMenu.makeMenu('sub12','top1','Faces','painting/content/galleries/gallery2.shtml','','140');
oCMenu.makeMenu('sub14','top1','Abstract','painting/content/galleries/gallery4.shtml','','140');
oCMenu.makeMenu('sub15','top1','Self Portraits','painting/content/galleries/gallery5.shtml','','140');
oCMenu.makeMenu('sub16','top1','Sketches','painting/content/galleries/gallery8.shtml','','140');
oCMenu.makeMenu('sub17','top1','Reproductions','','','140');
oCMenu.makeMenu('sub18','sub17','Sketches','painting/content/galleries/gallery6.shtml','','100');
oCMenu.makeMenu('sub19','sub17','Watercolor','painting/content/galleries/gallery7.shtml','','100');
oCMenu.makeMenu('sub20','sub17','Oil','painting/content/galleries/gallery9.shtml','','100');

oCMenu.makeMenu('top2','','GuestBook','painting/content/guestbook/guestbook.shtml','','100');
oCMenu.makeMenu('top3','','Downloads','painting/content/downloads/downloads.shtml','','100');
oCMenu.makeMenu('top4','','Info','','80');
oCMenu.makeMenu('top40','top4','Information & Contact','painting/content/info/contact.shtml','','160');
oCMenu.makeMenu('top41','top4','E-mail Updates','painting/content/info/email_updates.shtml','','160');
oCMenu.makeMenu('top42','top4','Poll','painting/content/info/poll.shtml','','160');
oCMenu.makeMenu('top43','top4','Site Map','painting/content/info/site_map.shtml','','160');

//Leave this line - it constructs the menu
oCMenu.construct()	