// Initialize DHTML coolmenu 


/*** 
This is the menu creation code - include it after the body tag
**/

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

oCMenu.frames=0

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=0
oCMenu.fromTop=143  
oCMenu.rows=1 
oCMenu.menuPlacement="center"
                                                             
oCMenu.offlineRoot="file:///C|/RAMONA/WEBSITES/etcomm/" 
oCMenu.onlineRoot=""
oCMenu.resizeCheck=1 
oCMenu.wait=2000 
oCMenu.fillImg=""
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="580"
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=145
oCMenu.level[0].height=24
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=-5
oCMenu.level[0].rows=0 //For horizontal submenu use 1 - For vertical dropdown use 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-1
oCMenu.level[1].height=22
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=0
oCMenu.level[1].borderY=0
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+72
oCMenu.level[1].offsetY=-1
oCMenu.level[1].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','','','','','300','1','http://www.etcommun.com/images/menu/spacer.gif','','','','','')

oCMenu.makeMenu('top1','','Home','http://www.etcommun.com/index.php','','145','30','http://www.etcommun.com/images/menu/home.gif','http://www.etcommun.com/images/menu/homeON.gif','','','','')

oCMenu.makeMenu('top2','','Services','','','145','30','http://www.etcommun.com/images/menu/services.gif','http://www.etcommun.com/images/menu/servicesON.gif','','','','')
  oCMenu.makeMenu('sub20','top2','Healthcare','','','145','24','http://www.etcommun.com/images/menu/healthcare.gif','http://www.etcommun.com/images/menu/healthcareON.gif')
        oCMenu.makeMenu('sub201','sub20','Hospital Grade TV&#8217;s','http://www.etcommun.com/services/healthcare/hospital_grade.php','','145','24','','')
        oCMenu.makeMenu('sub202','sub20','Distribution Systems','http://www.etcommun.com/services/healthcare/catv_distribution.php','','145','24','','')
        oCMenu.makeMenu('sub203','sub20','Nurse Call Systems','http://www.etcommun.com/services/healthcare/nursecall.php','','145','24','','')
        oCMenu.makeMenu('sub204','sub20','Security Systems','http://www.etcommun.com/services/healthcare/security.php','','145','24','','')
        oCMenu.makeMenu('sub205','sub20','Voice & Data Cabling','http://www.etcommun.com/services/healthcare/voicedatacabling.php','','145','24','','')
        oCMenu.makeMenu('sub206','sub20','Overhead Paging Systems','http://www.etcommun.com/services/healthcare/paging.php','','145','24','','')
	 oCMenu.makeMenu('sub21','top2','Commercial','','','145','24','http://www.etcommun.com/images/menu/commercial.gif','http://www.etcommun.com/images/menu/commercialON.gif')
        oCMenu.makeMenu('sub211','sub21','Televisions','http://www.etcommun.com/services/commercial/televisions.php','','145','24','','')
        oCMenu.makeMenu('sub212','sub21','Distribution Systems','http://www.etcommun.com/services/commercial/catv_distribution.php','','145','24','','')
        oCMenu.makeMenu('sub213','sub21','Security Systems','http://www.etcommun.com/services/commercial/security.php','','145','24','','')
        oCMenu.makeMenu('sub214','sub21','Voice & Data Cabling','http://www.etcommun.com/services/commercial/voicedatacabling.php','','145','24','','')
        oCMenu.makeMenu('sub215','sub21','Conference Center Systems','http://www.etcommun.com/services/commercial/conference.php','','145','24','','')
        oCMenu.makeMenu('sub216','sub21','Overhead Paging Systems','http://www.etcommun.com/services/commercial/paging.php','','145','24','','')
  oCMenu.makeMenu('sub22','top2','Residential','','','145','24','http://www.etcommun.com/images/menu/residential.gif','http://www.etcommun.com/images/menu/residentialON.gif')
        oCMenu.makeMenu('sub221','sub22','Home Theater','http://www.etcommun.com/services/residential/hometheater.php','','145','24','','')
        oCMenu.makeMenu('sub222','sub22','Televisions','http://www.etcommun.com/services/residential/televisions.php','','145','24','','')
        oCMenu.makeMenu('sub223','sub22','Audio Visual','http://www.etcommun.com/services/residential/av.php','','145','24','','')
        oCMenu.makeMenu('sub224','sub22','Security & Intercom','http://www.etcommun.com/services/residential/security.php','','145','24','','')
        oCMenu.makeMenu('sub225','sub22','Other','http://www.etcommun.com/services/residential/other.php','','145','24','','')
  oCMenu.makeMenu('sub23','top2','Gallery','','','145','24','http://www.etcommun.com/images/menu/gallery.gif','http://www.etcommun.com/images/menu/galleryON.gif')
        oCMenu.makeMenu('sub231','sub23','Healthcare','http://www.etcommun.com/gallery/healthcare/index.php','','145','24','','')
        oCMenu.makeMenu('sub232','sub23','Commercial TV&#8217;s','http://www.etcommun.com/gallery/commercial/index.php','','145','24','','')
        oCMenu.makeMenu('sub233','sub23','Distribution Systems','http://www.etcommun.com/gallery/catv/index.php','','145','24','','')
        oCMenu.makeMenu('sub234','sub23','Security Systems','http://www.etcommun.com/gallery/security/index.php','','145','24','','')
        oCMenu.makeMenu('sub235','sub23','Residential','','','145','24','','')
								        oCMenu.makeMenu('sub2352','sub235','Televisions','http://www.etcommun.com/gallery/residential/tv/index.php','','145','24','','')
								        oCMenu.makeMenu('sub2353','sub235','Audio Visual','http://www.etcommun.com/gallery/residential/av/index.php','','145','24','','')
								        oCMenu.makeMenu('sub2354','sub235','Home Theater','http://www.etcommun.com/gallery/residential/ht/index.php','','145','24','','')
								        oCMenu.makeMenu('sub2355','sub235','Security','http://www.etcommun.com/gallery/residential/security/index.php','','145','24','','')
  oCMenu.makeMenu('sub24','top2','Technical Data','http://www.etcommun.com/techdata/index.php','','145','24','http://www.etcommun.com/images/menu/techdata.gif','http://www.etcommun.com/images/menu/techdataON.gif')
  oCMenu.makeMenu('sub25','top2','FAQ','http://www.etcommun.com/services/faq.php','','145','24','http://www.etcommun.com/images/menu/faq.gif','http://www.etcommun.com/images/menu/faqON.gif')

oCMenu.makeMenu('top3','','Company','','','145','30','http://www.etcommun.com/images/menu/company.gif','http://www.etcommun.com/images/menu/companyON.gif','','','','')
  oCMenu.makeMenu('sub30','top3','About Us','http://www.etcommun.com/company/aboutus.php','','145','24', 'http://www.etcommun.com/images/menu/about.gif','http://www.etcommun.com/images/menu/aboutON.gif')
	 oCMenu.makeMenu('sub31','top3','Our Partners','http://www.etcommun.com/company/partners.php','','145','24','http://www.etcommun.com/images/menu/partners.gif','http://www.etcommun.com/images/menu/partnersON.gif')

oCMenu.makeMenu('top4','','Contact','http://www.etcommun.com/contact.php','','145','30','http://www.etcommun.com/images/menu/contact.gif','http://www.etcommun.com/images/menu/contactON.gif','','','','')

//Leave this line - it constructs the menu
oCMenu.construct()