function createMarker(pointData,i) {
  var latlng = new GLatLng(pointData.latitude, pointData.longitude);

  var icon = new GIcon();
  icon.image = 'http://hypotheekadviseurs.com/imageslocatie.png';
  icon.iconSize = new GSize(32, 32);
  icon.iconAnchor = new GPoint(16, 16);
  icon.infoWindowAnchor = new GPoint(25, 7);
   xy;
  var xy = parseInt(i) + 1

  opts = {
    "icon": icon,
    "clickable": true,
    "labelText": xy,
    "labelOffset": new GSize(-16, -16)
  };
 
  var marker = new LabeledMarker(latlng, opts);
	GEvent.addListener(marker, "click", function() {
					window.location = pointData.wp;});
	GEvent.addListener(marker, "mouseover", function() {    
													 marker.setImage('http://hypotheekadviseurs.com/imageslocatie_over.png');
													 document.getElementById(i).style.background ="#DDECFF";
													 });  
	GEvent.addListener(marker, "mouseout", function() {    
													marker.setImage('http://hypotheekadviseurs.com/imageslocatie.png');
													document.getElementById(i).style.background ="";});

  
  gmarkers[i] = marker;
        // add a line to the side_bar html, with click, mouseover and mouseout event handlers
        

  return marker;
}
