//My Code To get Year
var now = new Date();

var yearNow = now.getYear();

oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

//Menu properties   
oCMenu.pxBetween=5
oCMenu.fromLeft=20
oCMenu.fromTop=140 
oCMenu.rows=0 
oCMenu.menuPlacement="left"
                                                             
oCMenu.offlineRoot="http://localhost/fabricdirector-e/" 
oCMenu.onlineRoot="/fabric/" 
oCMenu.resizeCheck=1 
oCMenu.wait=500
//oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="menu"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX="menu"
oCMenu.barY="menu"
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass="clLevel0border"

//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=100
oCMenu.level[0].height=17	    
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=0
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=oCMenu.level[0].width+50
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-0)
oCMenu.level[1].offsetY=(oCMenu.level[0].height+50)
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].align="top" 



//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=oCMenu.level[0].width
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"


oCMenu.makeMenu('top0','','&nbsp;.: Home','index.asp','')

oCMenu.makeMenu('top1','','&nbsp;.: Directory','directory/index.asp','')

	oCMenu.makeMenu('sub00','top1','.: Fabrics','directory/index.asp')
		oCMenu.makeMenu('sub001','sub00','.: By Type','directory/index.asp?view=Type','',160,0)
		oCMenu.makeMenu('sub002','sub00','.: By Manufacturer','directory/index.asp?view=Manufacture','',160,0)
		oCMenu.makeMenu('sub003','sub00','.: By Use','directory/index.asp?view=Use','',160,0)
		oCMenu.makeMenu('sub004','sub00','.: PPE','directory/index.asp?view=PPE','',160,0)
		
	oCMenu.makeMenu('sub01','top1','.: Services','directory/index.asp?view=Services')
		oCMenu.makeMenu('sub005','sub01','.: Aftercare','directory/services.asp?view=Services&Fabric=Aftercare','',160,0)
		oCMenu.makeMenu('sub006','sub01','.: CMT','directory/services.asp?view=Services&Fabric=CMT','',160,0)
		oCMenu.makeMenu('sub007','sub01','.: Designers','directory/services.asp?view=Services&Fabric=Designers','',160,0)
		oCMenu.makeMenu('sub008','sub01','.: Dyeing/Finishing','directory/services.asp?view=Services&Fabric=Dyeing','',160,0)
		oCMenu.makeMenu('sub009','sub01','.: Equipment/Machinery/CAD','directory/services.asp?view=Services&Fabric=Equipment/Machinery/CAD','',160,0)
        oCMenu.makeMenu('sub0010','sub01','.: Exhibition','directory/services.asp?view=Services&Fabric=Exhibition','',160,0)
		oCMenu.makeMenu('sub0011','sub01','.: Labelling','directory/services.asp?view=Services&Fabric=Labelling','',160,0)
		oCMenu.makeMenu('sub0012','sub01','.: Logistics','directory/services.asp?view=Services&Fabric=Logistics','',160,0)
		oCMenu.makeMenu('sub0013','sub01','.: Testing Houses/Technical','directory/services.asp?view=Services&Fabric=Testing','',160,0)
		oCMenu.makeMenu('sub0014','sub01','.: Trimmings/Accessories','directory/services.asp?view=Services&Fabric=Trimmings','',160,0)
	
	oCMenu.makeMenu('top2','','&nbsp;.: Newsroom','news/recent.asp','')
		oCMenu.makeMenu('sub0015','top2','.: Current','news/recent.asp')
		oCMenu.makeMenu('sub0016','top2','.: Trends/Show Reports','trends/indexS.asp?view=current')
		oCMenu.makeMenu('sub0017','top2','.: Archive','news/index.asp?view=archive&archiveYear='+yearNow)
		oCMenu.makeMenu('sub0018','top2','.: Submit','news/submit.asp','_blank')
		oCMenu.makeMenu('sub0019','top2','.: Subscribe','news/subscribe.asp')

	oCMenu.makeMenu('top3','','&nbsp;.: Trends','trends/indexS.asp?view=current','')
		oCMenu.makeMenu('sub0020','top3','.: Fabric Focus','trends/index2S.asp?view=current')
		oCMenu.makeMenu('sub0021','top3','.: Trends/Show Reports','trends/indexS.asp?view=current')

		
oCMenu.makeMenu('top4','','&nbsp;.: Features','features/index.asp?view=current','')
		oCMenu.makeMenu('sub0022','top4','.: Current','features/index.asp?view=current')
				
				
oCMenu.makeMenu('top5','','&nbsp;.: Profiles','profiles/index.asp?view=Company','')
		oCMenu.makeMenu('sub0023','top5','.: Current','profiles/index.asp?view=Company')

oCMenu.makeMenu('top6','','&nbsp;.: Events','events/recent.asp','')
		oCMenu.makeMenu('sub0026','top6','.: Current','events/index.asp?view=current')
		oCMenu.makeMenu('sub0027','top6','.: Archive','events/index.asp?view=archive&archiveYear='+yearNow)
		oCMenu.makeMenu('sub0028','top6','.: Submit','events/submit.asp','_blank')

oCMenu.makeMenu('top7','','&nbsp;.: Regulations','regulations/index.asp','')
		oCMenu.makeMenu('sub0029','top7','.: BS','regulations/index.asp?view=BS')
		oCMenu.makeMenu('sub0030','top7','.: BS EN','regulations/index.asp?view=BSEN')
		oCMenu.makeMenu('sub0031','top7','.: BS ISO','regulations/index.asp?view=BSISO')
		oCMenu.makeMenu('sub0032','top7','.: BS EN ISO','regulations/index.asp?view=BSENISO')					
		
oCMenu.makeMenu('top8','','&nbsp;.: Advice','advice/index.asp','')
		oCMenu.makeMenu('sub0033','top8','.: Q&amp;A Forum','forum/index.asp')		
		oCMenu.makeMenu('sub0034','top8','.: European/US Sizes','advice/index.asp?view=sizes')
		oCMenu.makeMenu('sub0035','top8','.: Import Quotas','advice/index.asp?view=import')		
		oCMenu.makeMenu('sub0036','top8','.: Ethical Sourcing','advice/index.asp?view=ethical')
		oCMenu.makeMenu('sub0037','top8','.: Industry Standards','links/index.asp?view=standards')
		oCMenu.makeMenu('sub0038','top8','.: Laundry Associations','links/index.asp?view=laundry')
		oCMenu.makeMenu('sub0039','top8','.: Trade Organisations','links/index.asp?view=trade')
		oCMenu.makeMenu('sub0040','top8','.: University/Colleges','links/index.asp?view=university')
	
oCMenu.makeMenu('top9','','&nbsp;.: Q&amp;A Forum','forum/index.asp','')
		oCMenu.makeMenu('sub0041','top9','.: Q&amp;A Forum','forum/index.asp')		
		
oCMenu.makeMenu('top10','','&nbsp;.: Recruitment','recruitment/index.asp?view=Vacancy','')
		oCMenu.makeMenu('sub0042','top10','.: Source People','recruitment/index.asp?view=Vacancy')
		
oCMenu.makeMenu('top11','','&nbsp;.: Contracts','contracts/indexS.asp','')		
		oCMenu.makeMenu('sub0043','top11','.: Contracts/ITT','contracts/indexS.asp?view=Contracts')						
		oCMenu.makeMenu('sub0044','top11','.: Surplus Stock','contracts/indexS.asp?view=Surplus')			
	
oCMenu.makeMenu('top12','','&nbsp;.: Search','search/index.asp?view=menu','')	

oCMenu.makeMenu('top13','','&nbsp;.: Contact Us','contact.asp','')	
		oCMenu.makeMenu('sub0045','top13','.: About Us','about.asp')			

oCMenu.makeMenu('top14','','&nbsp;.: Advertise','advertise.asp','_blank')													
	
					

		
//Leave this line
oCMenu.construct()			


