function map(lat,lng) {

  var cloudmade = new CM.Tiles.CloudMade.Web({key: '264cd15a70385c28a94bb57db134f17c', styleId: 2271});
  var map = new CM.Map('cm-example', cloudmade);
  map.setCenter(new CM.LatLng(lat, lng), 16);
  map.addControl(new CM.LargeMapControl());
  map.addControl(new CM.ScaleControl());

var ParkingIcon = new CM.Icon();
ParkingIcon.image = "images/p.png";
ParkingIcon.iconSize = new CM.Size(20, 20);

var PBicesterTownLocation = new CM.LatLng(51.89309643089426,-1.1489295959472711);
var PBicesterTownMarker = new CM.Marker(PBicesterTownLocation, { title: "Parking for ticket holders", icon: ParkingIcon, clickable: false });
map.addOverlay(PBicesterTownMarker);

var POxfordLocation = new CM.LatLng(51.7517, -1.2693);
var POxfordMarker = new CM.Marker(POxfordLocation, { title: "Parking for ticket holders", icon: ParkingIcon, clickable: false });
map.addOverlay(POxfordMarker);

var PIslipLocation = new CM.LatLng(51.8260111547585,-1.2371313571929945);
var PIslipMarker = new CM.Marker(PIslipLocation, { title: "Parking for ticket holders", icon: ParkingIcon, clickable: false });
map.addOverlay(PIslipMarker);


var StationIcon = new CM.Icon();
StationIcon.image = "images/br2.png";
StationIcon.iconSize = new CM.Size(25, 24);

var OxfordLocation = new CM.LatLng(51.75343312044903,-1.2703210115432857);
var OxfordMarker = new CM.Marker(OxfordLocation, { title: "Oxford Rail Station", icon: StationIcon, clickable: false });
map.addOverlay(OxfordMarker);

var IslipLocation = new CM.LatLng(51.8259614224264,-1.23761951923372);
var IslipMarker = new CM.Marker(IslipLocation, { title: "Islip Rail Station", icon: StationIcon, clickable: false });
map.addOverlay(IslipMarker);

var BicesterTownLocation = new CM.LatLng(51.892947456032694,-1.1485379934311033);
var BicesterTownMarker = new CM.Marker(BicesterTownLocation, { title: "Bicester Town Rail Station", icon: StationIcon, clickable: false });
map.addOverlay(BicesterTownMarker);

var BicesterNorthLocation = new CM.LatLng(51.903470487454285,-1.1499327421188474);
var BicesterNorthMarker = new CM.Marker(BicesterNorthLocation, { title: "Bicester North Rail Station", icon: StationIcon, clickable: false });
map.addOverlay(BicesterNorthMarker);

var polyline = new CM.Polyline([
	new CM.LatLng(51.89266605772442,-1.1495786905288814),
	new CM.LatLng(51.893083188704345,-1.150410175323496),
	new CM.LatLng(51.893129536352,-1.150394082069381),
	new CM.LatLng(51.893265268473684,-1.1507213115692216),
        new CM.LatLng(51.893232163115954,-1.1507856845855824),
	new CM.LatLng(51.89327520007623,-1.150909066200265),
	new CM.LatLng(51.89306332541215,-1.151263117790231),
	new CM.LatLng(51.8923250668248,-1.1520302295684852),
        new CM.LatLng(51.892040353994446,-1.1525559425354126),
	new CM.LatLng(51.89202380086743,-1.1529260873794604),
	new CM.LatLng(51.89206021773881,-1.1533391475677488)],'#0033ff',10);
map.addOverlay(polyline);

}