function setMarkers(map, locations,letters) {	 
	
  // Add markers to the map

  // Marker sizes are expressed as a Size of X,Y
  // where the origin of the image (0,0) is located
  // in the top left of the image.

  // Origins, anchor positions and coordinates of the marker
  // increase in the X direction to the right and in
  // the Y direction down.

	var shadow = new google.maps.MarkerImage('/images/cf/markers/shadow/shadow50.png',
		new google.maps.Size(37,34),
		new google.maps.Point(0,0),
		new google.maps.Point(10,34));
	var shape = {
		coord: [1, 1, 1, 20, 18, 20, 18 , 1],
		type: 'poly'
		};
	var bounds = new google.maps.LatLngBounds ();		

	 if(letters == true)
	 {
		  //for reverse value sorted letter[(locations.length-i)-1] else letter[i]
		
		 var letter= new Array('A','B','C','D','E','F','G','H','I','J');		  		 
		 for (i = locations.length - 1; i >= 0 ; i--) {		
			
		 if(locations[i]!=undefined && i >= 0)  {
				 
			var image = new google.maps.MarkerImage('/images/cf/markers/plain/'+letter[i]+'-Cityfashiongids-marker.png',
				      new google.maps.Size(28,34),
				      new google.maps.Point(0,0),
				      new google.maps.Point(12,34));
						
			var location = locations[i];	    
		 
			var myLatLng = new google.maps.LatLng(location[1], location[2]);			
			bounds.extend (myLatLng);
			
		    var marker = new google.maps.Marker({
		        position: myLatLng,
		        map: map,
		        icon: image,
		        shadow: shadow,
		        title: location[0],
		        zIndex: (10-location[3])
		    });
		  
		 }
	 }		 
		 	
	 }
	 else if (letters == false)
	 {
		  var image = new google.maps.MarkerImage('/images/cf/markers/plain/icon_map.png',
			      new google.maps.Size(23,34),
			      new google.maps.Point(0,0),
			      new google.maps.Point(12,34));
			
		  for (var i = 0; i < locations.length; i++) {
		    var location = locations[i];
			
		    var myLatLng = new google.maps.LatLng(location[1], location[2]);
			
			bounds.extend (myLatLng);
			
		    var marker = new google.maps.Marker({
		        position: myLatLng,
		        map: map,
		        icon: image,
		        shadow: shadow,
		        title: location[0],
		        zIndex: location[3]
		    });
		  }
		  
	 }
	 
	 //reposition/zoom map to include all markers
	 map.fitBounds (bounds); 
	 
	 //after fitBounds check for maximum zoom level of 15
	 var listener = google.maps.event.addListener(map, "idle", function() { 
		  if (map.getZoom() > 15) map.setZoom(15); 
		  google.maps.event.removeListener(listener); 
		});

}
