How to test if a cached image file needs to be refreshed.

We have images that are physically updated on our server but do not auto-refresh in browsers.  Here is the js code that controls the viewing of the images.

Lines 51-53 display the image.

Maybe a check right after the getRandomImage call on line 51.
I don't really want to reload EVERY time.  Just when the image is new.

// Generated by CoffeeScript 1.3.3
(function() {
  var elColorImage, elGridLines, elImageBoard, elMapPopup, getRandomImage, highlightPath, images, linkAmericas, linkAsia, linkEurasia, mapColor, mapColorOver, textAmericas, textAsia, textEurasia, unHighlightPath;

  mapColor = "#FFFFFF";

  mapColorOver = "#C8182E";

  linkEurasia = 'http://gpchicago.com/users/folder.asp?FolderID=760&SubCat=europe+%2F+middle+east+%2F+africa';

  linkAsia = 'http://gpchicago.com/users/folder.asp?FolderID=2431&SubCat=asia+%2F+oceania';

  linkAmericas = 'http://gpchicago.com/users/folder.asp?FolderID=972&SubCat=the+americas';

  textEurasia = {
    title: 'EUROPE / MIDDLE EAST / AFRICA',
    text: 'From Abu Dhabi, GP supports projects in the Gulf States and surrounding region, assuring design and technical quality in all project phases.'
  };

  textAsia = {
    title: 'ASIA / OCEANIA',
    text: 'Our Shanghai office serves clients throughout Asia, providing design and technical expertise and a regional proximity that facilitates project coordination.'
  };

  textAmericas = {
    title: 'THE AMERICAS',
    text: 'From our home in Chicago, GP provides design and technical leadership worldwide, including coordination for work in North, Central and South America.'
  };
  var links=new Array();
  links[1] = 'http://www.gpchicago.com/users/folder.asp?FolderID=972&SubCat=the+americas';
  links[2] = 'http://www.gpchicago.com/users/folder.asp?FolderID=1863&SubCat=europe+%2F+middle+east+%2F+africa';
  links[3] = 'http://www.gpchicago.com/users/folder.asp?FolderID=770&SubCat=the+americas';
  links[4] = 'http://www.gpchicago.com/users/folder.asp?FolderID=827&SubCat=the+americas';
  links[5] = 'http://www.gpchicago.com/users/folder.asp?FolderID=858&SubCat=asia+%2F+oceania';
  
  elImageBoard = '#imageBoard';

  elColorImage = '#imageBoardColor';

  elGridLines = '#gridLines';

  elMapPopup = '#mapPopup';

  images = ['1', '2', '3', '4', '5'];

  $(document).ready(function() {

    var c, col, colorImage, elHeight, elWidth, grid, imageBoard, img, mapAttr, path, r, row, svgAmericasCanvas, svgAmericasPathA, svgAmericasPathB, svgAmericasSet, svgAsiaCanvas, svgAsiaPath, svgAsiaSet, svgEurasiaCanvas, svgEurasiaPath, svgEurasiaSet, whiteGrid, _i, _j, _len, _len1;
    elWidth = $(elImageBoard).width();
    elHeight = $(elImageBoard).height();
    img = getRandomImage();
    imageBoard = $(elImageBoard);
    imageBoard.css('background', "url(/images/map/" + img + "a.jpg) top left no-repeat");
    colorImage = $("<a style='border: 0 none;filter:inherit;opacity: inherit; display: block;' href='"+links[img]+"'><img style='border: 0 none;' id='colorImage' src='/images/map/" + img + "b.jpg' /></a>");
    colorImage.css({
      opacity: 0
    });
    colorImage.appendTo(imageBoard);
    whiteGrid = $("<div id='whiteGrid'></div>");
    whiteGrid.appendTo(imageBoard);
    col = [1, 2, 3, 4, 5];
    row = [1, 2, 3, 4];
    grid = Raphael('whiteGrid', elWidth, elHeight);
    for (_i = 0, _len = col.length; _i < _len; _i++) {
      c = col[_i];
      path = grid.path("M" + (elWidth / (col.length + 1) * c) + ",0V" + elHeight + "Z");
      path.attr({
        stroke: '#FFF',
        'stroke-width': 0,
        opacity: 0
      });
    }
    for (_j = 0, _len1 = row.length; _j < _len1; _j++) {
      r = row[_j];
      path = grid.path("M0," + (elHeight / (row.length + 1) * r) + "H" + elWidth + "Z");
      path.attr({
        stroke: '#FFF',
        'stroke-width': 0,
        opacity: 1
      });
    }

    imageBoard.fadeTo(2000, 1, function() {
      //colorImage.fadeTo(10000, 1);
    $(document).ready(function() {
            colorImage.delay(5000).fadeTo(10000, 1);
    });
      return whiteGrid.delay(5000).fadeTo(15000, 0);
    });
    $(elMapPopup).css({
      top: elHeight / 5,
      left: elWidth / 6,
      width: elWidth / 6 * 2,
      height: elHeight / 5,
      backgroundColor: mapColorOver
    });
    mapAttr = {
      fill: mapColor,
      'fill-opacity': 1,
      'stroke-width': 0,
      'stroke-opacity': 0
    };
    svgEurasiaCanvas = Raphael('mapEurasia', '30', '45');
    svgEurasiaSet = svgEurasiaCanvas.set();
    svgEurasiaPath = svgEurasiaCanvas.path("M-115.6,21.7c-0.533,0.633-0.8,1.316-0.8,2.05l0.25,0.9l0.5,1l-0.05,0.1c-0.2,0.434-0.301,1.017-0.301,1.75v0.1l0.051,0.3   c0.066,0.5,0.283,0.95,0.649,1.35l0.55,0.7l0.601,1l0.95,0.9c0.232,0.167,0.35,0.417,0.35,0.75c0,0.7-0.283,1.05-0.85,1.05   l-0.25-0.15l-0.101,0.1l-0.3,0.55h0.7v1.25l-0.3-0.3l-0.2-0.15c-0.333-0.267-0.717-0.383-1.15-0.35v-0.05h-0.05l-0.15-0.35   l-0.199,0.05l-0.051,0.25l0.4,0.05l-0.05,0.05h0.1l-0.8,0.05l-0.15-0.2c-0.333-0.567-0.583-0.85-0.75-0.85l-0.1,0.55h0.1l-0.35,0.5   l-0.45,0.45l-0.1,0.15v0.55h-0.2l-0.2,0.2l0.05,0.2l0.25,0.05l0.101-0.45l2.6,0.3h1.65l0.649-0.25h1.851l0.6,0.55l0.3,0.7   l0.101,0.25v0.05l0.55,0.55l0.65,0.4l0.199-0.6l0.15-0.3l0.85-0.15c1.101,0,1.717,0.267,1.851,0.8l0.1,1.2   c0.134,0.167,0.284,0.55,0.45,1.15c0.1,0.433,0.383,0.75,0.85,0.95l0.15,1.1c-0.233,0.233-0.666,0.333-1.3,0.3l-1.9-0.45   c-0.1,0.4,0,0.65,0.3,0.75l0.9,0.2c-0.166,1.066-0.816,1.933-1.95,2.6c-0.933,0.567-1.933,0.884-3,0.95l-0.3,0.3l-0.35,0.25   L-112,47.35l-0.25,0.3l1.45,0.15l1.351-0.351c-0.2,1.768-1.051,3.101-2.551,4V51.2l-0.149,0.15l0.149,0.1   c-0.967,0.768-1.467,1.601-1.5,2.5l0.301,3.601c-1,0.566-1.7,1.033-2.101,1.399l0.2,0.851v1.05l-1.05,1.1l-0.95,1.4   c-0.767,1.133-1.733,1.483-2.9,1.05l-0.45,0.4l-0.75,0.05l-0.35-0.7c-0.1-0.233,0.017-0.399,0.35-0.5l-1.5-2.45   c-0.667-1.199-1.033-2.1-1.1-2.699l0.25-1.25l0.45-1.351c0.133-0.733-0.05-1.45-0.55-2.149l-1.3-1.601l0.35-0.85   c0.167-0.4,0.133-0.667-0.1-0.8l-1.1-0.351l-0.8-0.6l-2.15,0.45l-2.3,0.25L-131.3,50l-0.25-0.2c-1.133-0.7-2.066-1.8-2.8-3.3   c0.333-0.134,0.5-0.551,0.5-1.25c0-0.533-0.1-1.051-0.3-1.551l1.9-2.55l2-2.65h0.4l0.55-0.15l0.5,0.15h0.3l0.35-0.05l1.5-0.4   l2.85,0.1l-0.3,0.35h0.05l0.2,0.45l-0.1,0.25c0.333,0.066,0.9,0.316,1.7,0.75l1.5,0.35l-0.15-0.2l0.05-0.25l0.6-0.4l0.95,0.3   l0.9,0.2h0.149l0.7,0.1h0.15l0.45,0.05h0.199h0.301l0.149,0.05h0.55h0.2l0.25-0.95l0.25-0.55l-0.05-0.3c-0.2,0-0.4,0.117-0.6,0.35   c-0.167,0.267-0.351,0.383-0.551,0.35l-0.149-0.2l-0.101-0.25h0.051l-0.051-0.1h0.2h0.2l0.1-0.05v-0.1   c-0.199,0.067-0.333,0.017-0.399-0.15l-0.3-0.3c-0.134,0.3-0.367,0.434-0.7,0.4c-0.333-0.034-0.583,0.066-0.75,0.3   c0-0.4-0.101-0.667-0.3-0.8l-0.15-0.15l-0.05-0.05l0.05-0.25l0.05,0.2V37.4l-0.05-0.25l-0.05-0.05   c-0.034-0.033-0.101-0.083-0.2-0.15l-0.2-0.15l-0.05-0.1h-0.45l0.15,0.45l0.15,0.1l0.6,0.35v0.05h0.05l-0.1,0.45l-0.25-0.15   L-119,37.9v-0.05l-0.55,0.05v0.45c-0.333-0.133-0.517-0.217-0.55-0.25l-0.05-0.1l0.25-0.35h-0.8V37.6h-0.05   c0.033-0.433-0.05-0.75-0.25-0.95l-0.2-0.15l-0.05-0.05c0.066-0.2-0.017-0.434-0.25-0.7l-0.45-0.35l-0.45-0.3l-0.8-0.6l-0.1-0.1   l0.25,0.7l0.15,0.2l0.05,0.05l0.65,0.6l0.05,0.05l-0.35,0.1l-0.1,0.4l-0.4-0.1l-0.15-0.2l-0.15-0.15l-0.3-0.2l-0.9-0.05v0.45h-0.2   l-0.05-0.05c-0.3-0.3-0.317-0.55-0.05-0.75l0.75-0.4l-1,0.05l-0.25,0.1l-1.3,0.1c0.033,0.267-0.05,0.433-0.25,0.5   c0.1,0.267,0,0.433-0.3,0.5l-0.65,0.2l0.05,0.6l-0.25,0.3c-0.067,0.333-0.283,0.567-0.65,0.7l-0.45,0.05l-0.55-0.25l0.15,0.3   l-0.65,0.05V38.2h-0.05l-0.1-0.15l-0.2-0.05l-0.55,0.15l-0.1-0.05l-0.15-0.55l-0.1-0.3l-0.15-0.05v-0.05h-0.05l0.45-0.65   c0.2-0.167,0.216-0.35,0.05-0.55c-0.433-0.5-0.267-0.8,0.5-0.9l2.05-0.05c0.167-0.5,0.1-0.883-0.2-1.15l-0.75-0.7h0.5   c-0.033-0.133-0.117-0.2-0.25-0.2l-0.25,0.2l-0.2-0.5l1.2-0.3l0.9-0.4l-0.6-0.05l-1.05,0.05c-0.467,0.4-0.684,0.267-0.65-0.4   c0.066-0.633,0.283-1.05,0.65-1.25l-0.4-0.15l-0.55,0.15c0.2-0.267,0.117-0.434-0.25-0.5c-0.333-0.067-0.483,0.033-0.45,0.3   l0.4,0.1l0.3,0.1l0.05,0.2l0.2,0.05c0,0.433-0.233,0.683-0.7,0.75c-0.467,0.066-0.7,0.216-0.7,0.45   c-0.367-0.033-0.5-0.216-0.4-0.55c0.133-0.367,0.1-0.583-0.1-0.65l0.55-0.65c0.2-0.233,0.5-0.333,0.9-0.3   c-0.1-0.167-0.067-0.4,0.1-0.7c0.1-0.167-0.017-0.25-0.35-0.25v-0.7l0.7,0.1c0.167-0.034,0.25,0.1,0.25,0.4l0.25-0.3l0.2-0.4   c0.2,0.034,0.25,0.2,0.15,0.5c-0.067,0.233,0.117,0.3,0.55,0.2c-0.267,0.467-0.15,0.967,0.35,1.5c0.6,0.6,0.883,1.117,0.85,1.55   l0.55-0.15l0.6-0.1l-0.15-0.3l-0.05-0.4l0.95-0.1c0.3-0.033,0.45-0.317,0.45-0.85c0.5,0.067,0.733-0.167,0.7-0.7l0.7,0.25   c0.033-0.167-0.067-0.316-0.3-0.45c-0.267-0.133-0.4-0.067-0.4,0.2c-0.5-0.033-0.733,0.2-0.7,0.7   c-0.333-0.267-0.317-0.55,0.05-0.85c0.333-0.267,0.7-0.367,1.1-0.3l-0.1-0.35l-0.1-0.35l-0.8,0.25   c-0.233,0.034-0.367,0.184-0.4,0.45c-0.5,0.066-0.783-0.2-0.85-0.8l-0.3-1.35l1-0.95c0.367-0.267,0.733-0.417,1.1-0.45l0.15,0.15   l0.1-0.15l0.15-0.1l-0.15-0.15l0.6-1c0.233-0.466,0.5-0.75,0.8-0.85c-0.034-0.267-0.184-0.317-0.45-0.15   c-0.233,0.167-0.317,0.05-0.25-0.35l3.05-1.3l3.05-0.35l0.601,0.7L-115.6,21.7 M-113,25.75h-0.05l0.05-0.15V25.75 M-113.15,30.25   v0.05l-0.101-0.1v-0.1L-113.15,30.25 M-118.4,25.6l-0.4,1c-0.167,0.434-0.117,0.733,0.15,0.9c-0.067-0.167,0.134-0.25,0.6-0.25   l0.351-0.05c0.033-0.033-0.051-0.1-0.25-0.2h-0.45l-0.25-0.2l0.45-0.05l0.25-0.2l-0.15-0.4   C-118.067,25.883-118.166,25.7-118.4,25.6 M-117.5,26.3c-0.266,0.167-0.283,0.367-0.05,0.6c0.267,0.233,0.45,0.2,0.55-0.1l0.2,0.1   l0.05-0.05l0.5-0.05c-0.033-0.133-0.116-0.217-0.25-0.25l-0.5-0.25l-0.149-0.1l-0.101,0.1H-117.5 M-120.55,25.4   c0.767-0.2,1.233-0.683,1.4-1.45c-0.567,0.1");
    svgEurasiaPath.attr({
      parent: 'svgEurasiaSet',
      'stroke-width': '0',
      'stroke-opacity': '1',
      'fill': mapColor
    });
    svgEurasiaPath.transform("m1, 0, 0, 1, 134.35, -20.6").data('id', 'svgEurasiaPath');
    svgEurasiaSet.attr({
      'id': 'svgEurasiaSet',
      'name': 'svgEurasiaSet'
    });
    svgEurasiaSet.transform("m1, 0, 0, 1, 134.35, -20.6");
    svgAsiaCanvas = Raphael('mapAsia', '63', '58');
    svgAsiaSet = svgAsiaCanvas.set();
    svgAsiaPath = svgAsiaCanvas.path("M-60,24.15c-0.467,0.267-0.566,0.433-0.3,0.5l-0.851,0.1l-0.899-0.3c-0.767-0.333-1.366-0.267-1.8,0.2l0.35,0.5   c0.166,0.167,0.217,0.4,0.15,0.7c-0.601,0.067-1.5,0.35-2.7,0.85L-69,27.5c0.3,0.066,0.35,0.183,0.15,0.35l-0.65,0.1   c0.2,0.233,0.283,0.717,0.25,1.45c-0.334,0.1-0.767,0.55-1.3,1.35c-0.534,0.833-1.116,1.316-1.75,1.45   c0.2-0.267,0.316-0.65,0.35-1.15l0.05-1.4c0.033-1.2,0.518-1.917,1.45-2.15c0.067-0.167,0.3-0.333,0.7-0.5   c0.334-0.167,0.5-0.4,0.5-0.7l-0.55,0.3l-0.4,0.4l-0.55-0.45l-0.6-0.45l-0.601,0.75c-0.233,0.367-0.283,0.583-0.149,0.65   l-1.801,0.15l-1.8,0.15c-1.433,0.167-2.417,0.767-2.95,1.8c0.2,0,0.316,0.05,0.351,0.15L-78.4,30.1l0.9,0.25   c0.467,0.2,0.7,0.117,0.7-0.25c0.3,0,0.466,0.184,0.5,0.55v1.1l-0.3,0.05l-0.2,0.15L-77,31.5c-0.2,1.233-0.834,2.283-1.9,3.15   l-1.5,1.05l-1.55,0.95l0.55,1.25l0.4,1.35l0.3-0.5l0.601-0.2l1.199-0.7c0.5-0.366,0.9-0.6,1.2-0.7   c-0.134-0.633-0.083-1.167,0.15-1.6l0.75-1c0.634,0.267,1.267,0.267,1.899,0L-76,35.6l-1.25,0.15c0.434,0.566,0.5,1.267,0.2,2.1   C-77.383,38.75-78,39.133-78.9,39l-0.5,0.35L-80.1,39.5c-0.033,0.2-0.184,0.283-0.45,0.25l-0.101,0.45l-0.149,0.45L-81.3,40l-0.2-1   h-1.15c0.4-0.3,0.417-0.634,0.051-1c-0.4-0.434-0.5-0.8-0.301-1.1l-0.75,0.05l-0.649,0.2l0.1-0.4l0.351-0.1   c-0.234-0.3-0.5-0.3-0.8,0c-0.333,0.367-0.617,0.533-0.85,0.5c0.167,0.267,0.483,0.417,0.95,0.45l0.1-0.15l0.15,0.15l0.35,0.1   l0.101,0.4h-0.45l-0.35,0.4L-85,38.8l0.7,0.75c0.267,0.367,0.267,0.667,0,0.9c0.066,0.2,0.216,0.267,0.45,0.2l-0.101,0.4   c-0.267,0.8-0.9,1.5-1.9,2.1l-1.4,0.801c-0.5,0.366-0.85,0.766-1.05,1.199l-0.2,0.2l-0.3-0.2L-89,44.9l0.2-0.25l0.15-0.35   c0.033-0.1-0.017-0.217-0.15-0.35H-89l-0.65,0.75c-0.133,0.333-0.083,0.633,0.15,0.899c0.8,0.366,1.117,1.067,0.95,2.101   l-0.25,0.149L-89,47.95l-0.65,0.55c-0.233,0.267-0.5,0.399-0.8,0.399c0.034-0.533-0.216-0.949-0.75-1.25L-92.05,47   c-0.233,0.333-0.284,0.649-0.15,0.95l0.35,0.949l-0.25-0.1l-0.2-0.15c-0.067-0.166-0.233-0.232-0.5-0.199l0.1-1.4l-0.3-1.2   l-0.65,0.351L-94.2,46.1c0.2-0.399,0.133-0.8-0.2-1.2l-0.75-1.149l-0.05,0.05l-0.1,0.05L-95.7,44h-0.15l-0.6,0.25l-0.7,0.85   l-1.05,0.7c-0.066,0.267-0.367,0.434-0.9,0.5l-0.2,0.2l0.1,0.149c0.1,0.2,0.15,0.384,0.15,0.551l0.25,0.899l0.25,1.15   c0,0.399-0.117,0.6-0.35,0.6s-0.4-0.233-0.5-0.7l-0.05-0.35c-0.1,0.133-0.25,0.2-0.45,0.2c-0.567,0-1.15-1.083-1.75-3.25V45.6   l-0.1-0.25c-0.233-0.134-0.317-0.399-0.25-0.8l-0.05-0.15l-0.35,0.101c-0.467,0-0.783-0.366-0.95-1.101   c-0.433-0.033-0.783-0.399-1.05-1.1l-0.4-1.5l-0.5-0.65l-0.45-0.65l0.1-1.3l-0.2-0.25l-0.2-0.1l-1,0.4l-1.05,0.35   c-0.5,0-0.767-0.2-0.8-0.6v-0.05V37.8l0.15-0.65l-0.05-0.05c-0.367-0.066-0.534-0.3-0.5-0.7l0.1-0.8l-0.35-0.25l-0.2-0.35h-0.1   l-0.1-0.45l0.2-0.05c0.1-0.2,0.333-0.3,0.7-0.3l0.05-0.35l-0.6-0.1l-0.6,0.1c-0.1,0.333-0.333,0.483-0.7,0.45V35v0.05l0.3,0.45   c0.4,0.433,0.6,0.783,0.6,1.05l-0.2,0.45l-0.6,0.25c-1.034,0-1.934-0.617-2.7-1.85l-0.3-0.15h-0.05c-0.233,0-0.467-0.167-0.7-0.5   h0.05l0.45-1.1l0.1-0.1l0.25,0.15l0.4-0.05c0.3-0.167,0.45-0.5,0.45-1c0-0.333-0.117-0.583-0.35-0.75h-0.05l-0.9-0.9l-0.6-1   l-0.55-0.7c-0.367-0.4-0.583-0.85-0.65-1.35l-0.05-0.3v-0.1c0-0.733,0.1-1.316,0.3-1.75l0.05-0.1l-0.5-1l-0.25-0.9   c0-0.733,0.267-1.417,0.8-2.05l-0.15-0.05h0.15c1.333,0,2.283,0.6,2.85,1.8h0.45c0.133-0.034,0.167-0.117,0.1-0.25l-0.1-0.45   l0.35,0.15l0.35-0.15c0.167,0.434,0.367,0.533,0.6,0.3l0.8-0.55V22.3l1-0.15l0.9-0.3l-0.1,0.25l-0.15,0.2l1.15-0.3l1,0.1   c0.267-0.1,0.25-0.233-0.05-0.4l-0.7-0.3l1.75,0.05l1.8,0.65l-0.35-0.8l-0.1-0.85l0.35-0.25l0.35-0.25l0.25-0.7l0.65-0.15   c0.633,0.034,0.883,0.4,0.75,1.1h0.2l-0.05,0.2l-0.15,0.05l-0.05,0.95c-0.033,0.4,0.05,0.633,0.25,0.7l0.2-1.3l0.3-1.3   c0.167,0.066,0.233,0.216,0.2,0.45l0.7-0.25l0.5-0.45c0.267,0.133,0.417,0.45,0.45,0.95c0.333-0.2,0.45-0.383,0.35-0.55L-99.15,19   l1.1-0.25c0.5,0,0.85,0.083,1.05,0.25l-0.1-0.45l-0.15-0.45c0.4-0.3,1.067-0.533,2-0.7l1.75-0.5c0.467,0.167,0.883,0.167,1.25,0   c0.4-0.2,0.7-0.517,0.9-0.95h1.65c0.133,0.534,0.534,0.8,1.2,0.8c0.833,0,1.367,0.133,1.6,0.4L-87.2,18l0.05,0.8h1.9l0.1,0.25   l0.15,0.2l0.95,0.05c0.366,0,0.517-0.167,0.45-0.5l1.1,0.1l1,0.1l-0.05,0.55c-0.067,0.167-0.2,0.233-0.4,0.2l0.8,0.7   c0.301,0.2,0.584,0.117,0.851-0.25l0.1-0.15l0.101,0.15l0.3,0.1l0.2,0.15c0.166-0.233,0.434-0.3,0.8-0.2l0.85-0.05l0.25-0.4   l0.45-0.55H-77l0.2-0.25l0.25-0.2c0.333,0.033,0.399,0.15,0.2,0.35l-0.301,0.2l2.9,0.85l3.3,0.45l0.25,0.95l1.05-0.2   c0.434,0,0.717,0.15,0.851,0.45c1.3-0.767,2.884-0.783,4.75-0.05c0.5,0.167,1.2,0.483,2.1,0.95l1.601,0.75   C-59.483,23.7-59.533,23.917-60,24.15 M-75.35,17.85c-0.033-0.2,0.199-0.3,0.699-0.3c0.467,0,0.7,0.1,0.7,0.3l-0.85,0.1   L-75.35,17.85 M-75.7,17.7l-0.399,0.15c-0.033,0.2-0.25,0.284-0.65,0.25h-0.95l-0.7,0.05c-0.333-0.267-0.416-0.6-0.25-1l1.101-0.1   l1.25,0.1l-0.2,0.55l0.4,0.15l0.149-0.45l0.2,0.05C-75.684,17.517-75.666,17.6-75.7,17.7 M-74.35,18.25l-0.301,0.05l0.15-0.15   l0.3-0.05L-74.35,18.25 M-79.35,17.6l0.149-0.15l0.3-0.05l-0.149,0.15L-79.35,17.6 M-77.25,19.25l-0.35-0.15l0.05-0.4   c0.2-0.433,0.45-0.483,0.75-0.15l-0.3,0.3L-77.25,19.25 M-62.65,20.45h-0.6v-0.2l0.3-0.05L-62.65,20.45h0.4l-0.05,0.15l-0.2,0.1   L-62.65,20.45 M-63.85,20.65l0.25-0.2l0.1,0.3l-0.05,0.2L-63.85,20.65 M-76.3,31.95c0.267,0.133,0.417,0.45,0.45,0.95l-0.7-0.25   L-76.3,31.95 M-76.8,34.55c-0.2-0.133-0.284-0.467-0.25-1L-77,32.2l0.3,0.5l0.15,0.65c0.267,0.333,0.283,0.517,0.05,0.55   C-76.8,33.966-76.9,34.183-76.8,34.55 M-73.5,33.6c0.133-0.466,0.2-0.466,0.2,0C-73.3,34.067-73.367,34.067-73.5,33.6 M-54.9,43.95   c0.334,0.033,0.417,0.199,0.25,0.5l0.351,0.1l0.1,0.35h-0.45V44.45l-0.75-0.25C-55.434,43.966-55.267,43.884-54.9,43.95    M-60.65,56.9V56.75l0.301-0.101c0.133,0,0.217,0.084,0.25,0.25H-60.65 M-69.95,55.5h0.4v0.149l-0.25,0.101L-69.95,55.5h-0.7   l-0.05-0.45l-0.2-0.25c0.101-0.3,0.316-0.334,0.65-0.1C-69.916,54.9-69.816,55.167-69.95,55.5 M-67.4,57.6l-0.05,0.2l-0.25,0.1   l-0.149-0.3l-0.25-0.149l0.1-0.25h0.15V57.6H-67.4 M-68.6,59.3c0.1,0.2,0.266,0.267,0.5,0.2c0.033-0.167,0.149-0.233,0.35-0.2   l0.4,0.2c-0.066,0.2-0.234,0.267-0.5,0.2l-0.7,0.1c-0.366-0.2-0.517-0.467-0.45-0.8L-68.6,59.3 M-63.6,58.35l-0.7-0.05l0.5-0.4   l0.649-0.3L-63.6,58.35 M-74.9,52.45L-75.05,52.6l-0.3,0.05L-75.2,52.5L-74.9,52.45 M-73.9,52.9V52.7l0.25-0.051   c0.101,0,0.15,0.084,0.15,0.25h0.5l0.05,0.2l0.15,0.05c0.033,0.4-0.351,0.684-1.15,0.851c-0.366,0.1-0.6,0.183-0.7,0.25   c-0.166,0.134-0.166,0.316,0,0.55l0.15,0.05c0.066,0.034,0.084,0.083,0.05,0.15l0.2,0.05c0.066,0.033,0.084,0.1,0.05,0.2   c0.267-0.2,0.434-0.25,0.5-0.15c0.101,0.067,0.116,0.184,0.05,0.351l-0.25,0.25l-0.3-0.45h-0.25l-0.2,0.2l-0.25-0.2L-75.1,55.2   L-75.15,55c-0.1-0.134-0.333-0.217-0.699-0.25c-0.4-0.034-0.551,0.134-0.45,0.5c-0.2-0.034-0.284-0.184-0.25-0.45   c-0.2,0.066-0.284,0.217-0.25,0.45l-0.851-0.3l-0.8,0.05l0.2-0.7l-0.2-0.7h-0.899l-0.25,0.7l-0.2-0.3l0.2-0.4h0.25v-0.25   L-80.3,53.2l-0.25-0.75l-0.7,0.199c0.066,0.2,0.217,0.283,0.45,0.25c-0.067,0.2-0.333,0.283-0.8,0.25h-1.051   c0.234-0.3,0.7-0.467,1.4-0.5l0.1-0.449c0.066-0.134,0.033-0.217-0.1-0.25c0-0.2,0.184-0.283,0.55-0.25h0.851   c0.1,0.066,0.166,0.25,0.199,0.55c0.033,0.267,0.134,0.399,0.301,0.399v0.25l0.199-0.35l-0.199-0.35L-77.4,52.6   c0.867,0.3,1.617,0.717,2.25,1.25l1.101-0.25c0.433-0.066,0.616-0.3,0.55-0.7H-73.9 M-72.1,54.1c0.366-0.1,0.616-0.033,0.75,0.2   l0.199,0.7L-72.1,54.1l-0.25-0.2l0.1-0.199l0.15-0.051V54.1 M-80.6,54.55c0,0.467-0.066,0.467-0.2,0   C-80.666,54.083-80.6,54.083-80.6,54.55 M-76.35,56.6c0.066,0.2,0.316,0.3,0.75,0.3v0.7l0.199,0.25L-75.6,58.1   c1.266,0.934,2.133,1.983,2.6,3.15c0.6,1.466,0.283,2.6-0.95,3.399c0.167,0.2,0.217,0.417,0.15,0.65l-0.15,0.75   c-0.433,0-0.75,0.084-0.95,0.25l-0.1,0.25l-0.15,0.25c-0.266-0.233-0.616-0.35-1.05-0.35l-1.3-0.15l-0.15-0.4l0.15-0.55h-1.4   c-0.066-0.2-0.283-0.483-0.649-0.85l-0.55-1l-3.051,0.649l-2.35,1l-0.6-0.199l-0.55-0.301c0.2-0.199,0.233-0.533,0.1-1   c-0.1-0.434-0.067-0.717,0.1-0.85c-0.466-0.434-0.733-0.883-0.8-1.35l0.1-1.75c0.967-0.167,1.833-0.551,2.6-1.15   c0.6-0.434,1.233-1.066,1.899-1.9c0.5,0.033,0.816,0.2,0.95,0.5c0.366-0.199,0.517-0.684,0.45-1.449   c0.4-0.167,0.883-0.051,1.45,0.35l0.45,0.25l0.199-0.35c0.268,0.1,0.417,0.283,0.45,0.55l-0.2,0.649l0.7,0.601l0.95,0.35   l0.15-1.149l0.3-1.45c0.2,0.066,0.283,0.216,0.25,0.45L-76.35,56.6 M-72.85,56l0.3-0.05l-0.15,0.199L-73,56.2L-72.85,56    M-74.5,67.7c-0.033,0.333-0.166,0.649-0.4,0.949c-0.366,0-0.649-0.149-0.85-0.449l-0.35-0.95l0.85,0.05   c0.334-0.033,0.45-0.2,0.35-0.5C-74.6,67.033-74.467,67.333-74.5,67.7 M-65.35,66.05c0.033-0.666-0.167-1.05-0.601-1.15   c0.3-0.3,0.634-0.133,1,0.5c0.4,0.634,0.684,0.851,0.851,0.65l0.149-0.1l0.101,0.1l0.149,0.15l-0.149,0.1   c-0.9,1.4-2.15,2.733-3.75,4l-0.351-0.4c-0.066-0.232-0.183-0.333-0.35-0.3c0.233-0.466,0.7-0.85,1.399-1.149l0.5-0.7l0.45-0.75   l0.4,0.2l0.55,0.05C-65.267,67.15-65.383,66.75-65.35,66.05 M-91.8,14.95l0.2-0.15c0.067-0.267,0.283-0.35,0.65-0.25   c0.4,0.066,0.567,0.233,0.5,0.5l0.4,0.05l0.1,0.4h-0.5v-0.45l-0.6-0.1l-0.55-0.15l-0.15,0.6l0.6,0.1   c0.333,0.133,0.283,0.216-0.15,0.25h-1l0.15-0.35l0.1-0.35l-1.7-0.05c-0.567-0.233-1.033-0.534-1.4-0.9   c0.433-0.8,0.933-1.133,1.5-1l1.6,1v0.95L-91.8,14.95 M-89.7,15.75l0.15-0.2l0.3-0.05l-0.15,0.2L-89.7,15.75 M-115.15,23.95   l-0.25,0.25l0.65,0.45l0.8-0.3l-0.25-0.4c-0.033-0.133-0.117-0.2-0.25-0.2L-115.15,23.95 M-106.65,34.7v0.05h0.55l0.25-0.2   c0.233-0.167,0.2-0.316-0.1-0.45l-0.55,0.45L-106.65,34.7 M-116.5,26.6c0.133,0.034,0.217,0.117,0.25,0.25l-0.25-0.05V26.6    M-114.85,33.85l0.45,0.3l-0.45,0.05l-0.15-0.3L-114.85,33.85 M-92.3,48.65v0.5l0.2,0.051l0.05,0.149h0.2l0.1-0.1l0.15,0.1   c0.233-0.033,0.417,0.034,0.55,0.2l0.4,0.3v0.95l0.25,0.2l0.2,0.25c-0.033,0.2-0.183,0.283-0.45,0.25l0.4,0.399   c0.1,0.134,0.033,0.316-0.2,0.551h0.75c0.133,0.166,0.167,0.316,0.1,0.449l-0.1,0.7l2.65,0.75L-84.8,55   c0.333-0.2,0.783-0.351,1.35-0.45c0.601-0.133,1.017-0.133,1.25,0c0.034,0.267-0.05,0.45-0.25,0.55l-0.7,0.15   c-0.033-0.2-0.25-0.284-0.649-0.25h-1l-1.7,0.1l-2.5-0.55c-0.6,0.033-1-0.117-1.2-0.45l-0.3-0.2l-0.15-0.3l-0.25-0.25l-0.25-0.2   l-0.15-0.05l-0.05-0.2l-0.2-0.05l-0.05-0.2c-0.233,0.234-0.5,0.234-0.8,0c-0.267-0.232-0.4-0.55-0.4-0.949   c-0.333-0.101-0.4-0.334-0.2-0.7c0.1-0.134,0.183-0.184,0.25-0.15c0.1,0.034,0.167,0.167,0.2,0.4c-0.2,0.066-0.284,0.216-0.25,0.45   h0.95l0.15,0.5l0.1,0.449l0.2,0.051l0.05,0.199l0.15,0.051c0.067,0.033,0.083,0.1,0.05,0.199l0.2,0.051   c0.067,0.033,0.083,0.083,0.05,0.149l0.2,0.05l0.05,0.2h0.7c0.067-0.3,0.034-0.533-0.1-0.7l-0.4-0.449l-0.65-0.75   c-0.267-0.334-0.517-0.566-0.75-0.7l-0.2-0.05V50.8l-0.25-0.25l-0.25-0.25l-0.25-0.2h-0.4c-0.167,0.034-0.267,0.101-0.3,0.2h0.45   l-0.05,0.2l-0.25,0.1l-0.15-0.3c-0.367-0.133-0.4-0.267-0.1-0.4l0.8-0.05v0.25h0.2l0.05,0.2l0.2,0.05   c0.067,0.034,0.083,0.101,0.05,0.2l0.2,0.05l0.05,0.2h0.2v-0.7l-0.2-0.25v-0.5l-0.25-0.2l-0.4-0.1l-0.1-0.4H-92.3 M-82.35,39.45   l-0.301,0.05l0.15-0.2l0.3-0.05L-82.35,39.45 M-84.55,42.8v0.4l-0.15-0.051l-0.1-0.199L-84.55,42.8c0.134-0.2,0.25-0.267,0.35-0.2   l0.101,0.351L-84.2,43.2L-84.55,42.8 M-81.95,42.1c0.4-0.3,0.417-0.283,0.05,0.05C-82.233,42.517-82.25,42.5-81.95,42.1    M-84.3,43.75c-0.034,0.134-0.101,0.167-0.2,0.1l-0.3-0.1c0.033-0.167,0.133-0.233,0.3-0.2L-84.3,43.75 M-83.85,45.15   c-0.2,0.634-0.184,1.101,0.05,1.4l1.149,0.7l0.101,1.35l0.1,1l-0.3,0.15l-0.4,0.1l-0.1-0.25l-0.1-0.25l-0.45-0.05   c-0.101,0.267-0.267,0.367-0.5,0.3l-0.05,0.2l-0.2,0.05L-85,50.1l-0.45,0.15l-0.05,0.05l0.05,0.8l0.2,0.601   c-0.333,0-0.533,0.149-0.6,0.449l-0.1,1l-1,0.15l-0.9-0.4h-0.45l-0.35-0.699c-0.133-0.268-0.1-0.5,0.1-0.7   c-0.2-0.067-0.284-0.233-0.25-0.5l1-0.15l0.65-0.55L-86,49l1.2-1.3c0.033,0.333-0.1,0.6-0.4,0.8l-0.5,0.649l0.3,0.5l0.6,0.2h0.25   l0.25-0.25c-0.067-0.233-0.017-0.399,0.149-0.5c0.2-0.167,0.301-0.316,0.301-0.45L-84.7,46.8c-0.333-0.7-0.283-1.334,0.15-1.9   c0.1,0,0.216,0.051,0.35,0.15L-83.85,45.15 M-82.65,52.2c0.033,0.399-0.199,0.55-0.699,0.449V52.45h-0.45   c-0.167,0.033-0.267,0.1-0.3,0.199c0.366,0.2,0.533,0.601,0.5,1.2h-0.7l0.149-0.55c0.134-0.2,0.15-0.416,0.051-0.65h-0.2l-0.2,0.65   l-0.05,0.8c-0.367-0.066-0.517-0.384-0.45-0.95l-0.3-0.3l0.1-0.3h0.2v0.6l0.3-0.3c0.067-0.167,0.2-0.233,0.4-0.2L-84.4,52.4   L-84.55,52.2c-0.5-0.367-0.467-0.617,0.1-0.75l1.55-0.2c0.033,0.333-0.25,0.483-0.85,0.45s-0.867,0.133-0.8,0.5   c0.167-0.2,0.399-0.283,0.7-0.25c0.3,0.033,0.467,0.199,0.5,0.5l0.3-0.15L-82.65,52.2 M-82.2,52.45l-0.1-0.851l0.35-0.8   c0.267,0.233,0.4,0.55,0.4,0.95C-81.517,52.183-81.733,52.417-82.2,52.45 M-82.45,50.3c0.134-0.467,0.2-0.467,0.2,0   S-82.316,50.767-82.45,50.3 M-89.25,52.9c0.133-0.467,0.2-0.467,0.2,0S-89.117,53.366-89.25,52.9");
    svgAsiaPath.attr({
      parent: 'svgAsiaSet',
      'stroke-width': '0',
      'stroke-opacity': '1',
      'fill': mapColor
    });
    svgAsiaPath.transform("m1, 0, 0, 1, 116.5, -13.05").data('id', 'svgAsiaPath');
    svgAsiaSet.attr({
      'id': 'svgAsiaSet',
      'name': 'svgAsiaSet'
    });
    svgAsiaSet.transform("m1, 0, 0, 1, 116.5, -13.05");
    svgAmericasCanvas = Raphael('mapAmericas', '65', '64');
    svgAmericasSet = svgAmericasCanvas.set();
    svgAmericasPathA = svgAmericasCanvas.path("M-7.05,11.75l0.25,0.05c0.067,0.066,0.083,0.15,0.05,0.25L-7.15,12.2L-7,12.55L-6.9,12.9l1.75-0.4l1.75,0.15l-0.8,0.75   l-1.051,0.45L-6,14.65L-6.7,15.5l0.6,0.35l0.6,0.35l-0.149,0.55L-5.75,17.4H-5.95c-0.033,0.133,0.116,0.2,0.449,0.2   c0.301,0.034,0.384,0.2,0.25,0.5H-5.95l-0.2,0.65C-6.25,18.983-6.434,19.067-6.7,19c0.033,0.233-0.051,0.5-0.25,0.8   c-0.167,0.233-0.15,0.45,0.05,0.65c0.333,0.367,0.25,0.7-0.25,1l-1.2,0.65l-3,1.55c-1.033,0.667-1.834,1.4-2.4,2.2   c0.066,0.534,0.051,0.9-0.05,1.1c-0.134,0.3-0.433,0.4-0.899,0.3L-14.75,27l-0.149-0.2h-0.95l-0.5-0.65l-0.45-0.75l-0.25-0.25   l-0.2-0.25c0.066-0.2,0.217-0.284,0.45-0.25c-0.566-0.1-0.933-0.5-1.1-1.2s0.2-1.15,1.1-1.35l-0.1-0.4l-0.351-0.1l-0.35,0.25h-0.6   c-0.066-0.466,0.016-0.867,0.25-1.2h0.449l-0.399-0.4l-0.55-0.3c0.066-0.467-0.018-0.85-0.25-1.15h-0.45   c0.066-0.3-0.017-0.583-0.25-0.85c-0.233-0.233-0.3-0.5-0.2-0.8h-0.95l-1.25,0.2c-1.033,0.1-1.634-0.133-1.8-0.7h-0.5   c0.166-0.333,0.2-0.534,0.1-0.6l-0.55-0.3c-0.233-0.366,0.034-0.633,0.8-0.8l1.801-0.4c-0.234-0.3-0.316-0.684-0.25-1.15l0.3-0.05   l0.149-0.2c-0.399-0.034-0.717,0.05-0.949,0.25v0.2l0.25,0.3l-0.2,0.15L-22.9,14l0.2-0.4c-0.9,0.233-1.717,0.684-2.45,1.35   c-0.667,0.633-1.184,1.367-1.55,2.2L-28.95,17c-0.867,0-1.434,0.134-1.7,0.4h1.75l1.75,0.2c0.1,0.567-0.351,0.817-1.351,0.75   L-31.4,18.3l-0.2-0.15l0.45-0.05c0.533,0,0.767-0.083,0.7-0.25l-0.101-0.25l-0.1-0.2h-0.75l-0.05,0.25l-0.15,0.2l-0.25-0.25v-0.45   l-1-0.05l-0.65-0.45c0.234-0.267,0.601-0.317,1.101-0.15l1.25,0.15c0.267,0,0.267-0.117,0-0.35c-0.267-0.2-0.267-0.317,0-0.35   c0.2,0,0.35,0.066,0.45,0.2l0.25,0.3l0.3-0.45l0.2-0.5c-0.7,0.3-1.417,0.3-2.15,0v-0.25c-0.033-0.167-0.2-0.3-0.5-0.4l-0.45-0.55   c-0.5-0.667-0.066-1.184,1.3-1.55l3.2-0.55l4.25-0.7l3.25,0.25c0.134,0.4,0.083,0.684-0.149,0.85l-0.551,0.55l0.65,0.05l0.3-0.05   l0.25-0.25v-0.45l-0.25-0.3l0.2-0.15l0.25,0.05l-0.2,0.4l0.9-0.2l0.95-0.05l1.6-0.1l1.7-0.35l1.899-0.4l2.25-0.35   c1.9-0.167,3.268,0.233,4.101,1.2L-7.05,11.75 M-18.7,20.45l0.199-0.2l0.301-0.05l-0.15,0.2L-18.7,20.45 M-7.85,23.75l0.4-0.2   l0.55-0.05v0.25l1.1,0.05l1.45-0.3l0.1,0.35l0.4,0.1c-0.2,0.867-0.834,1.3-1.9,1.3c-0.967,0.034-1.666-0.167-2.1-0.6l0.15-0.4   L-7.85,23.75 M-34.65,14.3c0.033-0.3,0.167-0.434,0.399-0.4c0.234,0.066,0.334,0.283,0.301,0.65   C-34.217,14.384-34.45,14.3-34.65,14.3 M-35,15.9l-1.1-0.15l-0.25-0.55l-0.2-0.65c1.167-0.034,2.034,0.283,2.601,0.95   c0.133-0.533,0.482-0.65,1.05-0.35c0.533,0.333,0.8,0.683,0.8,1.05l-1.1-0.15l-0.75-0.55C-34.15,15.967-34.5,16.1-35,15.9    M-33.75,18.1c-0.366,0.1-0.666,0.017-0.899-0.25c-0.267-0.267-0.583-0.35-0.95-0.25l-0.2,0.4l-0.25-0.05v-0.2   c0.067-0.1,0.217-0.15,0.45-0.15v-0.45l-0.4-0.1l-0.1-0.4h0.5v0.5c0.3-0.233,0.633-0.384,1-0.45c0.467-0.1,0.834-0.033,1.1,0.2   C-33.434,17.367-33.516,17.766-33.75,18.1 M-32.1,18.3l-0.8-0.2l-0.351-0.5l1.15-0.2V18.3 M-39.15,15.5   c0.1-0.233,0.316-0.383,0.65-0.45c0.333-0.067,0.583,0,0.75,0.2c0,0.2-0.184,0.3-0.55,0.3L-39.15,15.5 M-38.15,16.75l0.2-0.05v0.45   l0.3-0.05l0.15-0.2l-0.25-0.15l0.1-0.25h0.15v0.4l0.6,0.25c0.3,0.066,0.5,0.15,0.6,0.25l-0.3,0.25l0.05,0.2   c-0.033,0.2-0.267,0.284-0.7,0.25h-0.95l-0.1,0.15l-0.15-0.15h-0.7c0.066,0.2,0.233,0.267,0.5,0.2l-1.2-0.05l-0.95-0.85h-0.25   c0,0.2-0.183,0.25-0.55,0.15l-0.6-0.4c-0.3,0.133-0.433,0.133-0.4,0l0.4-0.55c0.667-0.533,1.133-0.583,1.4-0.15l0.4-0.4   c0.167-0.1,0.35-0.05,0.55,0.15v0.25l1,0.6l0.9,0.1c-0.167,0-0.267-0.05-0.3-0.15L-38.15,16.75 M-39.65,15.55l0.15,0.25   c0.033,0.133,0.017,0.2-0.05,0.2l-0.3-0.25L-39.65,15.55 M-36.3,16.2h0.4l-0.05,0.2l-0.2,0.05L-36.3,16.2l-0.3-0.15l0.1-0.25h0.2   V16.2 M-39,19.35l1.25,0.15c0.167-0.033,0.55-0.25,1.15-0.65c0.467-0.233,0.567-0.1,0.3,0.4c0.1,0.767,0.483,1.4,1.15,1.9h0.5   L-35,21.7c-0.1,0.1-0.067,0.3,0.1,0.6l-0.8-0.2c-0.333-0.1-0.533-0.033-0.6,0.2l1.3,0.3c0.667,0.067,1.017-0.1,1.05-0.5l-0.4-0.1   c-0.033-0.1,0.1-0.15,0.4-0.15l0.149-0.4c0.134-0.066,0.233-0.017,0.3,0.15c0.134-0.1,0.234-0.383,0.301-0.85   c0.066-0.433,0.199-0.7,0.399-0.8c-0.066-0.167-0.233-0.117-0.5,0.15l-0.649,0.55l-0.301-0.15l-0.199-0.3l-0.7-0.45l-0.25-0.15   l0.1-0.25l0.15-0.05v0.45c0.333-0.033,0.45-0.183,0.35-0.45c-0.1-0.267-0.05-0.434,0.15-0.5c-0.067-0.2,0.116-0.3,0.55-0.3   c0.467,0,0.666,0.1,0.6,0.3c0.066,0,0.117,0.033,0.15,0.1L-33.5,19l0.101,0.3l0.149,0.2c0.134-0.033,0.217-0.183,0.25-0.45l0.2-0.5   l0.9,0.1l1-0.1c-0.101,0.7-0.5,1.1-1.2,1.2c-0.066,0.267,0.066,0.583,0.4,0.95c0.266,0.333,0.3,0.566,0.1,0.7l0.5,0.3l0.65,0.15   c0.467,0.2,0.633,0.583,0.5,1.15l0.399-0.6l0.5-0.55l-0.5-0.4c-0.2-0.167-0.267-0.434-0.2-0.8c-0.066,0-0.149,0.05-0.25,0.15   l-0.199,0.1l-0.101,0.15l-0.149-0.15l-0.25-0.1l-0.2-0.15l0.05-1l0.4-0.65l1.949-0.25L-26.2,19l1.25,1l1.55,0.65v0.25   c0.233,0,0.366,0.05,0.399,0.15l-0.149,0.35l0.25,0.2h0.45l-0.2,0.5l0.2,0.45l0.949,0.2l0.7,0.5c0.167,0.034,0.233,0.134,0.2,0.3   l-0.2,0.4h-0.25l-0.05,0.2l-0.15,0.05l-0.25,0.2l-0.25-0.2c-0.399-0.434-0.649-0.533-0.75-0.3c-0.1,0.233,0.084,0.483,0.551,0.75   c0.232,0.1,0.333,0.283,0.3,0.55l0.149,0.4l-0.25,0.25H-22.2l0.3,0.3c0.167,0.066,0.216,0.2,0.149,0.4l-2.35-1   c-0.967-0.5-1.834-0.8-2.6-0.9l0.199-0.3l0.051-0.4c0.266-0.1,0.434-0.017,0.5,0.25c0.033,0.267,0.184,0.35,0.449,0.25   c0.167-0.033,0.25-0.25,0.25-0.65c0.033-0.4,0.184-0.583,0.45-0.55c0.034-0.4-0.2-0.55-0.7-0.45l-0.05,0.2h-0.2l-0.199,0.25   L-26.2,23l-0.2-0.2l0.2-0.25l0.149-0.35l-0.149-0.35c-0.268-0.1-0.434-0.017-0.5,0.25c-0.033,0.233-0.184,0.3-0.45,0.2l0.1-0.25   l0.15-0.2c-0.034-0.133-0.116-0.216-0.25-0.25h-0.45l-0.1,0.75c0.1,0.434,0.05,0.733-0.15,0.9l-0.4,0.35   c-0.166,0.133-0.184,0.333-0.05,0.6l0.601,0.45c0.266,0.167,0.366,0.417,0.3,0.75L-29,25.35l-1.649-0.2   c-0.967,0.767-1.684,1.55-2.15,2.35l2.05,1.35l2.65,0.75l0.4,1.1c0.232,0.3,0.333,0.566,0.3,0.8c0.399-0.2,0.6-0.433,0.6-0.7   l-0.35-0.95l0.649-0.3l0.551-0.4l-0.15-0.7c-0.066-0.233-0.184-0.4-0.35-0.5l-0.101,0.15l-0.149-0.15l-0.15-0.1   c0-0.066,0.05-0.1,0.15-0.1l0.199-0.35l0.051-0.4c-0.234-0.033-0.316-0.25-0.25-0.65l0.25-0.75l-0.15-0.3l0.3-0.1l0.25,0.1   l-0.399,0.3l1.55,0.35l1.5,0.6c-0.101,0.7,0.066,1.167,0.5,1.4c0.333,0.066,0.566-0.083,0.7-0.45   c0.133-0.366,0.366-0.533,0.699-0.5l0.4,0.7c0.2,0.233,0.3,0.483,0.3,0.75l0.55,0.85c0.066,0.033,0.367,0.216,0.9,0.55   c0.733,0.434,1.033,1.067,0.9,1.9l-0.301,0.05l-0.149,0.15l1.1,0.6c0.333,0.267,0.517,0.617,0.55,1.05l-1.149,0.05l-1.45-0.3   c-0.066-0.566,0.084-0.867,0.45-0.9l0.1-0.3l0.15-0.2l-0.7,0.05l-1.2,0.2c0.4,0.267,0.483,0.417,0.25,0.45l-0.95-0.2v0.2   c0.101,0,0.15,0.033,0.15,0.1l-0.15,0.15c-0.033,0.5,0.117,0.767,0.45,0.8l0.75,0.15l0.15,0.1l-0.05-0.1L-20.05,34l-0.399,0.25   c-0.7,0.333-1.051,0.583-1.051,0.75l-0.3-0.35L-22.2,34.8V35l-0.15-0.05l0.15-0.15c-0.167-0.233-0.417-0.233-0.75,0l-0.9,0.45   l0.1,0.5l0.15,0.45c-0.5-0.033-0.9,0.083-1.2,0.35l-0.7,0.8L-25.7,38l-0.051,0.8c-0.467,0.2-0.833,0.417-1.1,0.65l-0.75,1l0.3,1.25   c0.167,0.434,0.134,0.8-0.1,1.1c-0.667-0.367-0.967-1-0.9-1.9h-3.1c-1.067,0.1-1.851,0.5-2.351,1.2   c0.167,0.233,0.334,0.934,0.5,2.1c0.301,0.934,0.917,1.166,1.851,0.7l0.3-0.4l0.2-0.55l0.85,0.1l0.55,0.15l-0.449,0.7l-0.25,0.7   l0.949,0.449l0.95,0.051l-0.05,1l-0.2,0.85l0.2,0.05l0.05,0.2l0.15,0.05c0.066,0.034,0.083,0.101,0.05,0.2l0.95-0.1l0.7,0.1v0.2   l-0.25,0.25l-0.15-0.05l-0.05-0.2l-0.3,0.3l-0.2,0.4c-0.233,0.066-0.417,0-0.55-0.2c-0.167-0.233-0.367-0.317-0.601-0.25v-0.25   l-0.25-0.2c-0.3,0.033-0.517-0.066-0.649-0.3l-0.301-0.65c-0.3-0.1-0.449-0.333-0.449-0.7l-2.051-0.449l-1.949-0.5   c-0.334-0.033-0.734-0.2-1.2-0.5c-0.434-0.268-0.817-0.417-1.15-0.45c0.034-0.767-0.2-1.434-0.7-2l-1.4-1.3v0.5   c0.167,0.034,0.233,0.184,0.2,0.45l0.5,0.35c0.167,0.133,0.233,0.333,0.2,0.6l-0.6-0.2l-0.3-0.5c-0.2-0.067-0.284-0.233-0.25-0.5   l-0.55-0.35c-0.233-0.167-0.45-0.283-0.65-0.35c0.067-0.167,0.233-0.25,0.5-0.25c-0.067-0.167-0.317-0.417-0.75-0.75   c-0.367-0.3-0.517-0.667-0.45-1.1l-0.2-0.05l-0.05-0.2c-1.033-0.5-1.7-1.25-2-2.25c-0.267-0.833-0.3-2.05-0.1-3.65l-0.25-0.25   l-0.2-0.45c-0.4,0-0.683-0.15-0.85-0.45l-0.1-1.2H-45l-0.4-0.6l-0.35-0.8c-0.167,0.034-0.2,0.25-0.1,0.65L-45.5,31   c-0.367-0.133-0.9-0.783-1.6-1.95c-0.667-1.133-1.383-1.817-2.15-2.05l-1.4,0.15l-1.65,0.1c0.067-0.167,0.217-0.25,0.45-0.25   c-0.1-0.233-0.35-0.3-0.75-0.2s-0.617,0.25-0.65,0.45l0.35,0.1l0.1,0.4h-0.45v-0.5c-0.333,0.134-0.5,0.367-0.5,0.7L-53.4,28   c0.1,0.034,0.15,0.1,0.15,0.2c0.066,0.367-0.017,0.483-0.25,0.35c-0.2-0.1-0.283,0.017-0.25,0.35l-0.35-0.1l-0.1-0.35   c-0.133,0-0.267,0.1-0.4,0.3c-0.133,0.167-0.317,0.217-0.55,0.15c-0.1,0.333-0.333,0.5-0.7,0.5v0.45l-1.05-0.05l-1.05,0.3   c0.467-0.433,1.083-0.75,1.85-0.95l0.25-0.25l0.1-0.15l0.15,0.15h0.45l-0.15-0.4l-0.1-0.55l-0.9-0.05   c-0.267,0.066-0.433-0.067-0.5-0.4l-0.55-0.15l-0.6-0.35l-0.3,0.3l-0.3-0.1V27h0.6c-0.2-0.1-0.233-0.25-0.1-0.45   c0.133-0.233,0.083-0.383-0.15-0.45l0.15-0.35l0.1-0.35l0.75-0.05l0.65-0.2l-0.25-0.7c-0.233,0.333-0.55,0.45-0.95,0.35l-1.15-0.6   l0.65-0.55l1,0.1h0.45l-0.7-0.7l-0.95-0.5l1.85-1.5c0.9-0.467,1.7-0.6,2.4-0.4l10.8,0.5c0.2,0.066,0.283,0.216,0.25,0.45l1.15-0.1   l1.2,0.35c0.2-0.033,0.233-0.133,0.1-0.3c-0.167-0.233-0.2-0.45-0.1-0.65l-0.15-0.1l0.15-0.15l-0.4-0.3l-0.3-0.4   c-0.3,0.434-0.65,0.633-1.05,0.6l-1.3-0.35l0.3-0.85c0.2-0.333,0.25-0.683,0.15-1.05c0.833-0.333,1.85-0.2,3.05,0.4   C-39.617,19.067-39.167,19.284-39,19.35 M-27.1,25.8c0.066,0.033,0.084,0.117,0.05,0.25l-0.1,0.25l-0.25-0.2L-27.1,25.8    M-28.8,26.1c0.067-0.4,0.384-0.566,0.95-0.5C-27.983,25.9-28.3,26.067-28.8,26.1 M-26.7,28.9c0.066,0.233,0.016,0.383-0.15,0.45   l-0.55,0.05l0.149-0.25l0.101-0.25H-26.7 M-26.7,42.55c0.266,0.033,0.416,0.117,0.449,0.25l-0.1,0.35h-0.25L-26.7,42.55    M-26.65,41.85h0.399c0.101,0.1,0.117,0.25,0.051,0.45L-26,42.35l0.051,0.2l0.149,0.05c0.067,0.034,0.083,0.1,0.05,0.2   c0.134,0,0.234,0.1,0.301,0.3l0.199,0.4h0.551v0.15c-0.066,0.1-0.15,0.134-0.25,0.1l-0.301-0.25c-0.399,0.034-0.566-0.2-0.5-0.7   l-0.149-0.05l-0.05-0.2l-0.25-0.25l-0.301-0.1l-0.199,0.1l-0.25-0.25L-26.65,41.85 M-26.3,45.15h0.55l-0.35,0.2h-0.6   C-26.666,45.217-26.534,45.15-26.3,45.15 M-29.05,47.7l0.101,0.4c0.1,0.133,0.149,0.25,0.149,0.35l0.2,0.05   c0.066,0.034,0.084,0.083,0.05,0.15l0.3-0.05l0.15-0.15l-0.2-0.25l-0.25-0.25l-0.2-0.1L-29.05,47.7 M-27.7,48.7l-0.15,0.2l0.3-0.05   l0.15-0.2L-27.7,48.7 M-29.05,43.95c0.4-0.633,1.067-0.816,2-0.55c0.5,0.167,1.167,0.517,2,1.05l-2.1-0.25L-29.05,43.95    M-20.45,45.9c0.033,0.134,0.016,0.2-0.051,0.2l-0.3-0.25l0.25-0.2L-20.45,45.9 M-22.7,45.35c0.033-0.101,0.133-0.167,0.3-0.2h0.45   l-0.301,0.2H-22.7 M-24.55,43.95l-0.149,0.2l-0.351,0.05l0.2-0.2L-24.55,43.95 M-25.05,44.9c0.267-0.067,0.351-0.217,0.25-0.45   l0.9,0.1l1,0.351c-0.067,0.333-0.366,0.5-0.9,0.5l-1.45-0.05C-25.35,45.116-25.284,44.967-25.05,44.9 M-20.55,46.55   c0.134-0.467,0.2-0.467,0.2,0S-20.416,47.016-20.55,46.55 M-65.5,30.8l-0.15,0.15l-0.3,0.05l0.15-0.15L-65.5,30.8 M-67.65,29.9   l0.3-0.05l-0.2,0.2l-0.3,0.05L-67.65,29.9 M-60.8,31c0.1,0.1-0.017,0.217-0.35,0.35c-0.333,0.133-0.45,0.1-0.35-0.1l0.3-0.2   L-60.8,31 M-62.4,31.3l0.45-0.05l-0.25,0.2l-0.45,0.05C-62.65,31.4-62.567,31.333-62.4,31.3 M-64.3,31.25   c0.133-0.466,0.2-0.466,0.2,0C-64.1,31.717-64.167,31.717-64.3,31.25 M-59.7,25.45l-0.6-0.05c-0.033-0.233,0.2-0.333,0.7-0.3   c0.467,0.034,0.617,0.2,0.45,0.5L-59.7,25.45 M-58.65,30.65c-0.3,0.1-0.467,0.216-0.5,0.35c-0.3-0.133-0.3-0.3,0-0.5l0.95-0.2   L-58.65,30.65 M-54.9,43.95c0.333,0.033,0.417,0.2,0.25,0.5l0.35,0.1l0.1,0.351h-0.45v-0.45l-0.75-0.25   C-55.434,43.967-55.267,43.884-54.9,43.95");
    svgAmericasPathA.attr({
      parent: 'svgAmericasSet',
      'stroke-width': '0',
      'stroke-opacity': '1',
      'fill': mapColor
    });
    svgAmericasPathA.transform("m1, 0, 0, 1, 67.85, -10.95").data('id', 'svgAmericasPathA');
    svgAmericasPathB = svgAmericasCanvas.path("M-25.5,47.7h0.7c0.101-0.3,0.333-0.45,0.7-0.45l-0.1,0.25l-0.101,0.2l0.55-0.15l0.601-0.05v0.2l0.2,0.05l0.05,0.2l1.6-0.1   l1.2-0.15l-0.15,0.35l-0.05,0.4l1.4,0.95l1.85,0.45c0.067,0.833,0.567,1.55,1.5,2.149c0.934,0.567,1.934,0.784,3,0.65l0.65,0.75   l1,0.45l-1.2,3.1l-1.15,3.25L-14,60.15c-0.1,0.2-0.333,0.3-0.699,0.3c-0.467,0.2-0.783,0.416-0.95,0.65   c-0.267,0.333-0.333,0.816-0.2,1.449l-0.25,0.101l-0.2,0.149l-1.05,1.45c-0.367,0.467-0.883,0.684-1.55,0.65l0.1,0.5l0.101,0.45   l-0.75,0.55L-20.3,66.3l-0.6,0.9c-0.134,0.2-0.417,0.3-0.851,0.3c0.4,0.267,0.45,0.616,0.15,1.05c-0.233,0.367-0.6,0.634-1.1,0.801   c0,0.533,0.25,0.766,0.75,0.699c-0.134,0.7-0.533,1.101-1.2,1.2v1.65l0.2,0.05l0.05,0.2l0.2,0.05v0.15l1.199,0.25   c-0.633,0.5-1.333,0.633-2.1,0.399c-0.633-0.134-1.267-0.5-1.9-1.1c0.101-0.267,0.101-0.767,0-1.5l-0.25-1.351   c0.033-0.333,0.2-0.633,0.5-0.899l0.7-0.7c-0.033-0.2-0.116-0.283-0.25-0.25c-0.033,0.2-0.183,0.283-0.45,0.25   c-0.033-0.6,0.066-1.383,0.301-2.35l0.649-2.551c0.5-2.232,0.5-4.05,0-5.449l-1.649-0.95v-0.5L-26.8,55.1   c-0.2-0.634-0.55-0.967-1.05-1c-0.1-0.334-0.033-0.601,0.2-0.801c0.233-0.199,0.316-0.416,0.25-0.649l-0.05-0.75L-27,51.35   c0.5-0.601,0.684-1.268,0.551-2l-0.25-0.45l0.25-0.25c0.3,0.066,0.516-0.034,0.649-0.3L-25.5,47.7 M-19.6,72.55l-0.5,0.101   l-0.2-0.05v-0.15v-0.5h1.15C-19.117,72.317-19.266,72.516-19.6,72.55");
    svgAmericasPathB.attr({
      parent: 'svgAmericasSet',
      'stroke-width': '0',
      'stroke-opacity': '1',
      'fill': mapColor
    });
    svgAmericasPathB.transform("m1, 0, 0, 1, 67.85, -10.95").data('id', 'svgAmericasPathB');
    svgAmericasSet.attr({
      'id': 'svgAmericasSet',
      'name': 'svgAmericasSet'
    });
    svgAmericasSet.transform("m1, 0, 0, 1, 67.85, -10.95");
    svgEurasiaPath.mouseover(function(e) {
      return highlightPath(this, textEurasia);
    });
    svgEurasiaPath.mouseout(function(e) {
      return unHighlightPath(this);
    });
    svgAsiaPath.mouseover(function(e) {
      return highlightPath(this, textAsia);
    });
    svgAsiaPath.mouseout(function(e) {
      return unHighlightPath(this);
    });
    svgAmericasPathA.mouseover(function(e) {
      highlightPath(this, textAmericas);
      return highlightPath(svgAmericasPathB, null);
    });
    svgAmericasPathA.mouseout(function(e) {
      unHighlightPath(this);
      return unHighlightPath(svgAmericasPathB);
    });
    svgAmericasPathB.mouseover(function(e) {
      highlightPath(this, textAmericas);
      return highlightPath(svgAmericasPathA, null);
    });
    svgAmericasPathB.mouseout(function(e) {
      unHighlightPath(this);
      return unHighlightPath(svgAmericasPathA);
    });
    svgEurasiaPath.click(function() {
      return window.location.href = linkEurasia;
    });
    svgAsiaPath.click(function() {
      return window.location.href = linkAsia;
    });
    svgAmericasPathA.click(function() {
      return window.location.href = linkAmericas;
    });
    return svgAmericasPathB.click(function() {
      return window.location.href = linkAmericas;
    });
  });

  getRandomImage = function() {
    return images[Math.floor(Math.random() * images.length)];
  };

  highlightPath = function(target, text) {
    target.stop();
    target.animate({
      fill: mapColorOver
    }, 250);
    $(elMapPopup).stop().fadeTo(0, 0).fadeTo(150, .9);
    if (text != null) {
      $("" + elMapPopup + " h2").text(text.title);
      return $("" + elMapPopup + " span").text(text.text);
    }
  };

  unHighlightPath = function(target) {
    target.stop();
    target.animate({
      fill: mapColor
    }, 500);
    return $(elMapPopup).stop().fadeTo(500, 0);
  };

}).call(this);

Open in new window

gpchicago08Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
That's almost exactly what I have done.  If the file on the server has new image file names, then when you force a refresh on the main file, it will see new names for the image files and go fetch the new ones.  That also works for javascript and CSS files.
0
 
Dave BaldwinFixer of ProblemsCommented:
Caching is controlled by the individual browsers and it's done outside your page code.  Each person can set the expiration days on their own browser.  Browsers usually make a page request with code that says  If-Modified-Since some date.  If the file on the server hasn't been modified since that date, it returns a 304 response code and does not send the file.  Your javascript does not over-ride that.  http://www.w3.org/Protocols/HTTP/HTRESP.html

And... if you do a complete refresh with Ctrl-F5, that only re-gets the main page from the server.  After the main page is loaded, you are usually back to the same state as far as caching of the files contained in the page.  In other words, Ctrl-F5 only forces a refresh of the main page, not necessarily the image and javascript links contained in the page.
0
 
gpchicago08Author Commented:
Ok.  Understood.  Is there another way?  Say with the naming of the files and how I get the random file names?

Right now the files are grabbed two at a time  (a & b).

There are 4 versions.  So the files are named:
1a.jpg  1b.jpg
2a.jpg  2b.jpg
3a.jpg  3b.jpg
4a.jpg  4b.jpg

Is there a way I can change the code each time I change the images to grab the next 4 numbers?  That way it will have to reload each the first time it sees the new numbers?

5a.jpg  5b.jpg
6a.jpg  6b.jpg
7a.jpg  7b.jpg
8a.jpg  8b.jpg
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
gpchicago08Author Commented:
Anyone want to help modify/streamline my code?  I'm not that good.
0
 
gpchicago08Author Commented:
Ok.
First I added the new images in the correct folder.

Then I changed line 44 from

 images = ['1', '2', '3', '4', '5'];

Open in new window


to

 
images = ['6', '7', '8', '9', '10'];

Open in new window


Then all heck broke loose and things I didn't change got screwed up.  like the opening sequence.  I'm going to try to find that and see what is affected.
0
 
gpchicago08Author Commented:
Here are screen shots.

Does it have something to do with pre-loading images or something?
GOOD.jpg
BAD.jpg
0
 
gpchicago08Author Commented:
Here is the code that throws that red 'splash' image up.

jQuery(document).ready(function(){
	jQuery('<img src="/images/GP-AIA-CHICAGO-FIRM-AWARD.jpg" style="position:absolute;z-index:1000;">').prependTo('#imageBoardContainer').delay(5000).fadeOut();	
});

Open in new window

0
 
gpchicago08Author Commented:
OK!!  I think I found where the problem is happening!

But I will definitely need assistance with this random function.

How do I change these numbers from 1-5 to 6-10?

Thanks in advance.

$(document).ready(function() { 
	var r=Math.floor(Math.random()*5)+1;
	switch (r){
		case 1:
			$('.bw a').attr('href', 'http://www.gpchicago.com/users/folder.asp?FolderID=972&SubCat=office');
			$('.color a').attr('href', 'http://www.gpchicago.com/users/folder.asp?FolderID=972&SubCat=office');
			break;
		case 2:
			$('.bw a').attr('href', 'http://www.gpchicago.com/users/folder.asp?FolderID=1863&SubCat=office');
			$('.color a').attr('href', 'http://www.gpchicago.com/users/folder.asp?FolderID=1863&SubCat=office');
			break;
		case 3:
			$('.bw a').attr('href', 'http://www.gpchicago.com/users/folder.asp?FolderID=770&SubCat=institutional');
			$('.color a').attr('href', 'http://www.gpchicago.com/users/folder.asp?FolderID=770&SubCat=institutional');
			break;
		case 4:
			$('.bw a').attr('href', 'http://www.gpchicago.com/users/folder.asp?FolderID=827&SubCat=interiors');
			$('.color a').attr('href', 'http://www.gpchicago.com/users/folder.asp?FolderID=827&SubCat=interiors');
			break;
		case 5:
			$('.bw a').attr('href', 'http://www.gpchicago.com/users/folder.asp?FolderID=858&SubCat=office');
			$('.color a').attr('href', 'http://www.gpchicago.com/users/folder.asp?FolderID=858&SubCat=office');
			break;
	}
	$('.bw img').attr('src', 'http://www.gpchicago.com/110204/images/'+r+'a.jpg');
	$('.color img').attr('src', 'http://www.gpchicago.com/110204/images/'+r+'b.jpg');	
	$('.bw').animate({opacity:0}, 6000);
}) 

Open in new window

0
 
gpchicago08Author Commented:
Ok.  I figured out the code and changed it.  Still bad.

I changed the case numbers from 6-10

I changed line 2 from

Math.floor(Math.random()*5)+1

Open in new window


to

Math.floor(Math.random() * (10 - 6 + 1) + 6);

Open in new window

0
 
Dave BaldwinFixer of ProblemsCommented:
You have thoroughly confused me.  Please click on "Request Attention" to get others to help you.
0
 
gpchicago08Author Commented:
I think I figured it out.

It seems to work!

Thanks!
0
 
gpchicago08Author Commented:
Dave put me on the right track to solve it myself.  I needed to find ALL locations of the new file names.
0
 
Dave BaldwinFixer of ProblemsCommented:
Oh, good!  You're welcome and glad to help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.