if (this.baseLayer == layer) { 
if (setNewBaseLayer && (this.baseLayer == layer)) { 
    removeLayer: function(layer) {        if (layer.isFixed) {            this.viewPortDiv.removeChild(layer.div);        } else {            this.layerContainerDiv.removeChild(layer.div);        }        layer.map = null;        OpenLayers.Util.removeItem(this.layers, layer);        // if we removed the base layer, need to set a new one        if (this.baseLayer == layer) {            this.baseLayer = null;            for(i=0; i < this.layers.length; i++) {                var iLayer = this.layers[i];                if (iLayer.isBaseLayer) {                    this.setBaseLayer(iLayer);                    break;                }            }        }        this.events.triggerEvent("removelayer");    },
2032	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2032/795d6b4d20fd682935040506d198bfb7c36c2089/Map.js/clean/lib/OpenLayers/Map.js