GeoMashup.addAction( 'colorIcon', function ( properties, icon, color_name ) {
  if (color_name == 'black') {
	icon.image = properties.custom_url_path + '/images/mm_20_mixed.png';
    icon.shadow = properties.custom_url_path + '/icons/shadow.png';
  }
} );
GeoMashup.addAction( 'loadedMap', function( properties, map ) {
  map.enablePinchToZoom();
} );
/**
 * Open marker content using prettyPhoto.
 */
GeoMashup.addAction( 'selectedMarker', function( properties, marker ) {
	var point = marker.getPoint(),
		location = GeoMashup.locations[point],
		post,
		url;

	if ( parent.jQuery && location ) {
		// prettyPhoto isn't good at query parameters, so we'll fetch our content for it
		post = location.objects[0];
		url = properties.home_url + '?geo_mashup_content=geo-query&template=full-post&object_name=post&object_ids=' + post.object_id;
		parent.jQuery.get( url, function( post_html ) {
			parent.jQuery( '#home-tour' ).html( post_html );
			parent.jQuery.prettyPhoto.open( '#home-tour', post.title );
		} );
	} 
} );

