function ABMIEsriMapSlider(id, container, mapId, numLevels, initLevel, left, top) {
  this.inheritsFrom(new EsriSlider(id, null, changeZoomLevel, left, top));
  this.numSegments = numLevels;
  this.initValue = initLevel;
  this.isHorizontal = false;
  this.showTicks = true;
  this.roundValues = true;
  this.callContinuously = false;
  var self = this;

  /*function changeZoomLevel(value) { EsriControls.maps[mapId].changeLevel(value); }
  this.update = function(map) { self.setValue(map.level); }
  EsriControls.maps[mapId].addUpdateListener(id, this.update);
  if (container) this.init(container);
  */
  function changeZoomLevel(value) {
  if (value !=  EsriControls.maps[mapId].zoomScale ){
        
  	EsriControls.maps[mapId].zoomScale = value; 
  	EsriControls.maps[mapId].changeZoomScale(value);
  }
  }
 // this.update = function(map) { 
//       alert("update " + EsriControls.maps[mapId].zoomScale);
//  	self.setValue(map.zoomScale,true);
        
//  }
 // EsriControls.maps[mapId].addUpdateListener(id, this.update);
  if (container) this.init(container);
}

