﻿

var DefaultTemplate = {

    initListeners: function() {
        var self = this;
        jQuery("#imgSthlm").click(function() {
            self.trackCityChoice('Stockholm');
        });

        jQuery("#imgMalmo").click(function() {
            self.trackCityChoice('Malmo');
        })
    },

    trackCityChoice: function(city) {
        _gaq.push(['_trackEvent', 'Valsida', 'link', city]);
    }
}


/* Init after page load */
jQuery(function() {

    DefaultTemplate.initListeners();

});
