var map;

AmCharts.ready(function() {
    map = new AmCharts.AmMap();
    map.pathToImages = "ammap/images/";
    //map.panEventsEnabled = true; // this line enables pinch-zooming and dragging on touch devices
    map.balloon.color = "#000000";
    
    var canadaDataProvider = {
        mapVar: AmCharts.maps.canadaLow,
        getAreasFromMap: true
    };

    map.dataProvider = canadaDataProvider;

    map.areasSettings = {
        autoZoom: true,
        selectedColor: "#CC0000"
    };

    map.smallMap = new AmCharts.SmallMap();
    
    map.addListener("clickMapObject", function (event) {
        switch (event.mapObject.id) {
            case "CA-AB":
                
                break;
            case "CA-BC":
    
                break;
            case "CA-MB":
                
                break;
            case "CA-NB":
                
                break;
            case "CA-NL":
                
                break;
            case "CA-NS":
                
                break;
            case "CA-NT":
                
                break;
            case "CA-NU":
                
                break;
            case "CA-ON":
                
                break;
            case "CA-PE":
                
                break;
            case "CA-QC":
                
                break;
            case "CA-SK":
                
                break;
            case "CA-YT":
                
                break;
        }
    });

    map.write("mapdiv");

});

function loadNewMap (url, mapName) {
    if (AmCharts.maps[mapName] != undefined) {
        // the map was already loaded
        setNewMap(mapName);
    }
    else {
        // let's load the map
        jQuery.getScript(url, function () {
            setNewMap(mapName);
        });
    }
}

function setNewMap (mapName) {
    var dataProvider = {
        mapVar: AmCharts.maps[mapName],
        getAreasFromMap: true
    };
    map.dataProvider = dataProvider;
    map.validateData();
}

@@ -606,14 +606,10 @@
     
-switch
+if
  (ev
@@ -628,857 +628,99 @@
 t.id
-) %7B%0A            case %22CA-AB%22:%0A                %0A                break;%0A            case %22CA-BC%22:%0A    %0A                break;%0A            case %22CA-MB%22:%0A                %0A                break;%0A            case %22CA-NB%22:%0A                %0A                break;%0A            case %22CA-NL%22:%0A                %0A                break;%0A            case %22CA-NS%22:%0A                %0A                break;%0A            case %22CA-NT%22:%0A                %0A                break;%0A            case %22CA-NU%22:%0A                %0A                break;%0A            case %22CA-ON%22:%0A                %0A                break;%0A            case %22CA-PE%22:%0A                %0A                break;%0A            case %22CA-QC%22:%0A                %0A                break;%0A            case %22CA-SK%22:%0A                %0A                break;%0A            case %22CA-YT%22:%0A                %0A                break;
+ == %22CA-ON%22) %7B%0A           %0A        %7D else if (event.mapObject.id == %22CA-QC%22) %7B%0A            
 %0A   
@@ -722,24 +722,33 @@
  %0A        %7D%0A
+        %0A
     %7D);%0A%0A   
@@ -1263,10 +1263,9 @@
 Data();%0A
+
 %7D
-%0A

Revert "Update index.js"