A.GMap = {

hue: '#3e3432',
latitude: 51.508,
longitude: -0.128,
marker: 'theme/img/marker.png',

setup: function() {

this.atts = this.$map.data();
this.center = new google.maps.LatLng(this.atts.lat || this.latitude, this.atts.long || this.longitude);

var opts = {
center: this.center,
disableDefaultUI: true,
mapTypeId: google.maps.MapTypeId.TERRAIN,
scrollwheel: false,
zoom: this.atts.zoom || 17
};
this.map = new google.maps.Map(this.$map[0], opts);

var m = new google.maps.Marker({
map: this.map,
position: this.center,
icon: new google.maps.MarkerImage(this.atts.marker || this.marker, new google.maps.Size(61, 61), new google.maps.Point(0, 0), new google.maps.Point(29, 58))});

var s = [{ stylers: [{ hue: this.atts.hue || this.hue }, {saturation: -97}, {invert_lightness: true}, {visibility: 'simplified'}, {weight: 1.25}, {gamma: 1.4}] }];
var t = new google.maps.StyledMapType(this.atts.style ? s : []);

this.map.mapTypes.set('map', t);
this.map.setMapTypeId('map');

// your line here:
google.maps.event.addListener(m, 'click', function() { alert('click') });

},