Example: Map with all layers and two markers

<scripttype="text/javascript"src="http://www.openlayers.org/api/OpenLayers.js"></script><scripttype="text/javascript"src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=[your key]"></script><scripttype="text/javascript"src="http://api.maps.yahoo.com/ajaxymap?v=3.0&amp;appid=facilmap"></script><scripttype="text/javascript"src="http://api.facilmap.org/facilmap.js"></script><divid="map"></div><scripttype="text/javascript">varmap=newFacilMap.Map("map");map.addAllAvailableLayers();varlayerMarkers=newFacilMap.Layer.Markers("Markers");map.addLayer(layerMarkers);layerMarkers.createMarker(newOpenLayers.LonLat(11.12345,48.54321),"<strong>This popup will be opened initially.</strong>",true);layerMarkers.createMarker(newOpenLayers.LonLat(10.12345,48.12345),"<strong>This popup will be closed initially.</strong>",false);map.zoomToExtent(layerMarkers.getDataExtent());</script>