/*** 
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=180
oCMenu.rows=1 
oCMenu.menuPlacement="center"
                                                             
oCMenu.offlineRoot="/"
oCMenu.onlineRoot="/" 
oCMenu.resizeCheck=1
oCMenu.wait=600 
oCMenu.fillImg="images/y.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0


//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=15
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=2
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=15
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=5
oCMenu.level[1].borderClass="clLevel1border"

//EXAMPLE SUB LEVEL[2] 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[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=15
oCMenu.level[2].regClass="clLevel1"
oCMenu.level[2].overClass="clLevel1over"
oCMenu.level[2].borderX=1
oCMenu.level[2].borderY=1
oCMenu.level[2].align="right" 
oCMenu.level[2].offsetX=-(oCMenu.level[1].width-2)/2+20
oCMenu.level[2].offsetY=5
oCMenu.level[2].borderClass="clLevel1border"



/******************************************
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','','','','','137','18','images/johanna-hehir-logo-2.gif')

oCMenu.makeMenu('top1','','','default.asp','','63','18','images/home.gif')

oCMenu.makeMenu('top2','','','','','67','18','images/wedding-bridesmaid-evening-dress.gif')
	oCMenu.makeMenu('sub0200','top2','Wedding Dresses','showthumbs.asp?type=wedding&subtype=all','','140','15')
		oCMenu.makeMenu('sub020000','sub0200','Contemporary Dresses','showthumbs.asp?type=wedding&subtype=contemporary','','140','15')
				
			
		oCMenu.makeMenu('sub020001','sub0200','Traditional Dresses','showthumbs.asp?type=wedding&subtype=traditional','','140','15')
		
	oCMenu.makeMenu('sub0201','top2','Bridesmaid Dresses','showthumbs.asp?type=bridesmaid&subtype=all','','140','15')
		oCMenu.makeMenu('sub020100','sub0201','3/4 Length Dresses','showthumbs.asp?type=bridesmaid&subtype=3/4 length','','140','15')
		oCMenu.makeMenu('sub020101','sub0201','Long Dresses','showthumbs.asp?type=bridesmaid&subtype=long','','140','15')
	
	oCMenu.makeMenu('sub0202','top2','Evening Dresses','showthumbs.asp?type=evening&subtype=all','','140','15')
		oCMenu.makeMenu('sub020200','sub0202','3/4 Length Dresses','showthumbs.asp?type=evening&subtype=3/4 length','','140','15')
		oCMenu.makeMenu('sub020201','sub0202','Long Dresses','showthumbs.asp?type=evening&subtype=long','','140','15')

		
	

oCMenu.makeMenu('top3','','','','','90','18','images/wedding-accessories.gif')
	oCMenu.makeMenu('sub0300','top3','Hand Bags','showthumbs.asp?type=handbag','','140','15')
	oCMenu.makeMenu('sub0301','top3','Shoes','showthumbs.asp?type=shoes','','140','15')
	oCMenu.makeMenu('sub0302','top3','Veils','showthumbs.asp?type=veils','','140','15')
	oCMenu.makeMenu('sub0303','top3','Tiaras','showthumbs.asp?type=tiaras','','140','15')
	oCMenu.makeMenu('sub0304','top3','Corsage','showthumbs.asp?type=corsage','','140','15')
	oCMenu.makeMenu('sub0305','top3','Hairpiece','showthumbs.asp?type=hairpiece','','140','15')
	oCMenu.makeMenu('sub0306','top3','Jewellery','showthumbs.asp?type=jewellery','','140','15')
oCMenu.makeMenu('top4','','','designers.asp','','80','18','images/dress-designers.gif')
	oCMenu.makeMenu('sub0400','top4','The Designers','designers.asp','','140','15')
	oCMenu.makeMenu('sub0401','top4','Catwalk Shows','gallery.asp','','140','15')
	
oCMenu.makeMenu('top5','','','madeto.asp','','86','18','images/your-wedding-dress.gif')
	oCMenu.makeMenu('sub0500','top5','Made to Measure','madeto.asp','','140','15')
	

oCMenu.makeMenu('top6','','','http://www.johanna-hehir.co.uk/appoint3.asp','','101','18','images/choose-dress-appointment.gif')


oCMenu.makeMenu('top7','','','','','85','18','images/our-brides-dresses.gif')
	oCMenu.makeMenu('sub0700','top7','Our Brides','http://www.johanna-hehir.co.uk/past-brides.asp','','80','15')
	oCMenu.makeMenu('sub0701','top7','Articles','articles.asp','','80','15')

oCMenu.makeMenu('top8','','','','','72','18','images/contact-johanna-hehir.gif')
	oCMenu.makeMenu('sub0800','top8','Contact Us','http://www.johanna-hehir.co.uk/contact.asp','','100','15')
	oCMenu.makeMenu('sub0801','top8','Find Us','http://www.johanna-hehir.co.uk/map.asp','','100','15')
	oCMenu.makeMenu('sub0802','top8','Useful Links','http://www.johanna-hehir.co.uk/links.asp','','100','15')
	oCMenu.makeMenu('sub0803','top8','Sitemap','http://www.johanna-hehir.co.uk/sitemap.asp','','100','15')
//Leave this line - it constructs the menu
oCMenu.construct()

