This plugin creates a layer control for an OpenLayers map. The map object is passed as the first argument to the plugin, optionally followed by an object literal specifying other options to pass to the OpenLayers.Control.LayerSwitcher object that the plugin wraps e.g.
$('#layer-control-div').olLayerControl(map)
See example.html
in the distribution for a complete example.