var setPinList=function(gmap,pinList,centerSet) {
  var mgr = new MarkerReducer(gmap, {"borderPadding":8});
  var markers=[];
  var gb;
  
  for(var i=0;i < pinList.length;i++) {
    var point=new GLatLng(pinList[i].lat,pinList[i].lng);
    var marker=new GMarker(point);
    
    marker.bindInfoWindowHtml(pinList[i].name);
    markers.push(marker);

    if(centerSet) {
      if(i==0) {
        gb=new GLatLngBounds(point,point);
      } else {
        gb.extend(point);
      }
    }
  }

  if(centerSet) {
    gmap.setCenter(gb.getCenter(),gmap.getBoundsZoomLevel(gb));
  }
  
  mgr.addMarkers(markers,0);
  mgr.refresh();
};
