VectorLayerSwitcher using OpenLayers events (for IE8 compatibility)