Possible Duplicate:
How can I switch baselayers as a user zooms in to the map in OpenLayers
I have a map that has two base layers and several overlays. One of the base layers only has 5 zoom levels. I would like to disable that base layer in the layer switcher when the map is zoomed outside of the range of that base layer. I have found how to do that with overlays in this forum at this link. I changed dataLayers to baseLayers. My problem seems to come when the base layer that I am trying to limit is the base layer selected when I zoom outside the range of that base layer. If I then select the other base layer, it appears as if the zoom control is locked up.
Any suggestions are greatly appreciated.
Thanks.