

//Extra code to find position:
function findPos(){
  if(bw.ns4){   //Netscape 4
    x = document.layers.layerMenu.pageX
    y = document.layers.layerMenu.pageY
  }else{ //other browsers
    x=0; y=0; var el,temp
    el = bw.ie4?document.all["divMenu"]:document.getElementById("divMenu");
    if(el.offsetParent){
      temp = el
      while(temp.offsetParent){ //Looping parent elements to get the offset of them as well
        temp=temp.offsetParent; 
        x+=temp.offsetLeft;
        y+=temp.offsetTop;

      }
    }
    x+=el.offsetLeft;
    y+=el.offsetTop
  }
  //Returning the x and y as an array
  return [x,y]
}

pos = findPos();

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

oCMenu.frames = 0

//Menu properties   
oCMenu.pxBetween=0
//Optimierung fuer permanente plazierung innerhalb eines Tisches A
oCMenu.fromLeft=pos[0]
oCMenu.fromTop=pos[1]

oCMenu.onresize="pos = findPos(); oCMenu.fromLeft=pos[0]; oCMenu.fromTop=pos[1]"

oCMenu.rows=1
oCMenu.menuPlacement=0
                                                             
oCMenu.offlineRoot="http://www.ashevillecom.com/newsite/" 
oCMenu.onlineRoot="http://www.ashevillecom.com/newsite/" 
oCMenu.resizeCheck=1 
oCMenu.wait=250 
oCMenu.fillImg="cm_fill.gif"
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=100
oCMenu.level[0].height=43
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= -1
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"
oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.GradientWipe(duration=0.4,wipeStyle=0)"


//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=119
oCMenu.level[1].height=22
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=0
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)"

//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=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"


/******************************************
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','','Home','http://www.ashevillecom.com','',49,'','','','')

oCMenu.makeMenu('top1','','Radios','','',54)
	oCMenu.makeMenu('sub10','top1','Motorola Radios','radios.htm')
	oCMenu.makeMenu('sub100','sub10','Here is a list of Motorola radio products we sell.','','',150,30)
        oCMenu.makeMenu('sub11','top1','Motorola Pagers','pagers.htm')
	oCMenu.makeMenu('sub110','sub11','Here is a list of Motorola pager products we sell.','','',150,30)
        oCMenu.makeMenu('sub12','top1','Motorola Repeaters','repeaters.htm')
	oCMenu.makeMenu('sub120','sub12','Here is a list of Motorola repeater products we sell.','','',150,30)
	oCMenu.makeMenu('sub13','top1','Radio Order Form','rorder.htm')
	oCMenu.makeMenu('sub130','sub13','Order radios through this easy to use form.','','',150,30)

oCMenu.makeMenu('top2','','Accessories','','',82)
	oCMenu.makeMenu('sub21','top2','Accessories','accessories.htm','',113)
	oCMenu.makeMenu('sub210','sub21','Accessories we sell.','','',150,16)
	oCMenu.makeMenu('sub22','top2','Catalog','catalog.htm','',113)
	oCMenu.makeMenu('sub220','sub22','A catalog of Motorola® items we sell.','','',150,30)
	oCMenu.makeMenu('sub23','top2','Batteries','batteries.htm','',113)
	oCMenu.makeMenu('sub230','sub23','Batteries we sell, or are available through us.','','',150,30)


oCMenu.makeMenu('top3','','Public Safety','','',90)
	oCMenu.makeMenu('sub30','top3','Brochure','lawenforcement.htm','',115)
	oCMenu.makeMenu('sub300','sub30','A brochure describing what we sell.','','',150,30)

	oCMenu.makeMenu('sub31','top3','Surefire','surefire.htm','',115)
	oCMenu.makeMenu('sub310','sub31','Surefire Flashlights.','','',150,16)
	
	oCMenu.makeMenu('sub32','top3','Gerber','gerber.htm','',115)
	oCMenu.makeMenu('sub320','sub32','Gerber Legendary Blades - Knives, Multitools, and Equipment.','','',150,41)
	
	oCMenu.makeMenu('sub33','top3','Peltor','peltor.htm','',115)
	oCMenu.makeMenu('sub330','sub33','The worldwide leader in communications headsets.','','',150,41)


oCMenu.makeMenu('top4','','Other Products','','',100)
	oCMenu.makeMenu('sub40','top4','Peltor','peltor.htm','',107)
	oCMenu.makeMenu('sub400','sub40','The worldwide leader in communications headsets.','','',150,41)

	oCMenu.makeMenu('sub41','top4','Moducom','moducom.htm','',107)
	oCMenu.makeMenu('sub410','sub41','Moducom E911 Consoles.','','',150,16)

	oCMenu.makeMenu('sub42','top4','Surefire','surefire.htm','',107)
	oCMenu.makeMenu('sub420','sub42','Surefire Flashlights.','','',150,16)

	oCMenu.makeMenu('sub43','top4','Gerber','gerber.htm','',107)
	oCMenu.makeMenu('sub430','sub43','Gerber Legendary Blades - Knives, Multitools, and Equipment.','','',150,41)

	oCMenu.makeMenu('sub44','top4','Whelen','whelen.htm','',107)
	oCMenu.makeMenu('sub440','sub44','Whelen Outdoor Warning Systems.','','',150,30)
	
	oCMenu.makeMenu('sub45','top4','Gai-Tronics','gaitronics.htm','',107)
	oCMenu.makeMenu('sub450','sub45','Gai-Tronics radio dispatch products.','','',150,30)




oCMenu.makeMenu('top5','','Service','','',59)
	oCMenu.makeMenu('sub50','top5','Battery Care','batterycare.htm','',121)
	oCMenu.makeMenu('sub500','sub50','How to take care of your batteries.','','',150,30)
		
	oCMenu.makeMenu('sub51','top5','Battery Basics','batterybasics.htm','',121)
	oCMenu.makeMenu('sub510','sub51','Basics of batteries.','','',150,16)

	oCMenu.makeMenu('sub52','top5','Important FCC Notices','fcc.htm','',121)
	oCMenu.makeMenu('sub520','sub52','In matter of promotion of spectrum efficient technologies on certain part 90 frequencies.','','',150,52)

	oCMenu.makeMenu('sub53','top5','Service','service.htm','',121)
	oCMenu.makeMenu('sub530','sub53','How to contact us for service.','','',150,30)



oCMenu.makeMenu('top6','','About','','',50,'','','')
	oCMenu.makeMenu('sub60','top6','Archived Newsletters','archive.htm','',115)
	oCMenu.makeMenu('sub600','sub60','Archived newsletters for Asheville Communications.','','',150,41)

	oCMenu.makeMenu('sub61','top6','Terms','terms.htm','',115)
	oCMenu.makeMenu('sub610','sub61','Terms and conditions of sale.','','',150,30)

	oCMenu.makeMenu('sub62','top6','Leasing','http://www.leasecorp.com','',115)
	oCMenu.makeMenu('sub620','sub62','Lease radios through the Lease Corporation of America.','','',150,41)

	oCMenu.makeMenu('sub63','top6','Privacy Statement','privacy.htm','',115)
	oCMenu.makeMenu('sub630','sub63','Asheville Communications privacy policy.','','',150,41)

	oCMenu.makeMenu('sub64','top6','Customer Comments','comments.htm','',115)
	oCMenu.makeMenu('sub640','sub64','Post customer comments here.','','',150,30)

	oCMenu.makeMenu('sub65','top6','Links','links.htm','',115)
	oCMenu.makeMenu('sub650','sub65','Useful links are in this section.','','',150,30)




oCMenu.makeMenu('top7','','New Items','','',76,'','','')
	oCMenu.makeMenu('sub70','top7','Mag One BPR40','magone.htm','',115)
	oCMenu.makeMenu('sub700','sub70','Mag One Radio','','',150,16)

	oCMenu.makeMenu('sub71','top7','Minitor V Case','minvcase.htm','',115)
	oCMenu.makeMenu('sub710','sub71','Minitor V Pagers.','','',150,16)

	oCMenu.makeMenu('sub72','top7','Minitor V','minitorfive.htm','',115)
	oCMenu.makeMenu('sub720','sub72','Minitor V Pagers.','','',150,16)

	oCMenu.makeMenu('sub73','top7','E911','moducom.htm','',115)
	oCMenu.makeMenu('sub730','sub73','E911 Centers.','','',150,16)

	oCMenu.makeMenu('sub74','top7','Radios','cp125.htm','',115)
	oCMenu.makeMenu('sub740','sub74','Here is a list of Motorola radio products we sell.','','',150,30)

//Leave this line - it constructs the menu
oCMenu.construct()
