
// PolylineEncoder.js copyright Mark McClure  April/May 2007
//
// This software is placed explicitly in the public
// domain and may be freely distributed or modified.
// No warranty express or implied is provided.
//

// The constructor
PolylineEncoder = function(numLevels, zoomFactor, verySmall, forceEndpoints) {
  var i;
  if(!numLevels) {
    numLevels = 18;
  }
  if(!zoomFactor) {
    zoomFactor = 2;
  }
  if(!verySmall) {
    verySmall = 0.00001;
  }
  if(!forceEndpoints) {
    forceEndpoints = true;
  }
  this.numLevels = numLevels;
  this.zoomFactor = zoomFactor;
  this.verySmall = verySmall;
  this.forceEndpoints = forceEndpoints;
  this.zoomLevelBreaks = new Array(numLevels);
  for(i = 0; i < numLevels; i++) {
    this.zoomLevelBreaks[i] = verySmall*Math.pow(zoomFactor, numLevels-i-1);
  }
}

// The main function.  Essentially the Douglas-Peucker
// algorithm, adapted for encoding. Rather than simply
// eliminating points, we record their from the
// segment which occurs at that recursive step.  These
// distances are then easily converted to zoom levels.
PolylineEncoder.prototype.dpEncode = function(points) {
  var absMaxDist = 0;
  var stack = [];
  var dists = new Array(points.length);
  var maxDist, maxLoc, temp, first, last, current;
  var i, encodedPoints, encodedLevels;
  var segmentLength;
  
  if(points.length > 2) {
    stack.push([0, points.length-1]);
    while(stack.length > 0) {
      current = stack.pop();
      maxDist = 0;
      segmentLength = Math.pow(points[current[1]].lat()-points[current[0]].lat(),2) + 
        Math.pow(points[current[1]].lng()-points[current[0]].lng(),2);
      for(i = current[0]+1; i < current[1]; i++) {
        temp = this.distance(points[i], 
          points[current[0]], points[current[1]],
          segmentLength);
        if(temp > maxDist) {
          maxDist = temp;
          maxLoc = i;
          if(maxDist > absMaxDist) {
            absMaxDist = maxDist;
          }
        }
      }
      if(maxDist > this.verySmall) {
        dists[maxLoc] = maxDist;
        stack.push([current[0], maxLoc]);
        stack.push([maxLoc, current[1]]);
      }
    }
  }
  
  encodedPoints = this.createEncodings(points, dists);
  encodedLevels = this.encodeLevels(points, dists, absMaxDist);
  return {
    encodedPoints: encodedPoints,
    encodedLevels: encodedLevels,
    encodedPointsLiteral: encodedPoints.replace(/\\/g,"\\\\")
  }
}

PolylineEncoder.prototype.dpEncodeToJSON = function(points,
  color, weight, opacity) {
  var result;
  
  if(!opacity) {
    opacity = 0.9;
  }
  if(!weight) {
    weight = 3;
  }
  if(!color) {
    color = "#0000ff";
  }
  result = this.dpEncode(points);
  return {
    color: color,
    weight: weight,
    opacity: opacity,
    points: result.encodedPoints,
    levels: result.encodedLevels,
    numLevels: this.numLevels,
    zoomFactor: this.zoomFactor
  }
}

PolylineEncoder.prototype.dpEncodeToGPolyline = function(points,
  color, weight, opacity) {
  if(!opacity) {
    opacity = 0.9;
  }
  if(!weight) {
    weight = 4;
  }
  if(!color) {
    color = "#ff0000";
  }
  return new GPolyline.fromEncoded(
    this.dpEncodeToJSON(points, color, weight, opacity));
}

PolylineEncoder.prototype.dpEncodeToGPolygon = function(pointsArray,
  boundaryColor, boundaryWeight, boundaryOpacity,
  fillColor, fillOpacity, fill, outline) {
  var i, boundaries;
  if(!boundaryColor) {
    boundaryColor = "#ff0000";
  }
  if(!boundaryWeight) {
    boundaryWeight = 3;
  }
  if(!boundaryOpacity) {
    boundaryOpacity = 0.9;
  }
  if(!fillColor) {
    fillColor = boundaryColor;
  }
  if(!fillOpacity) {
    fillOpacity = boundaryOpacity/3;
  }
  if(fill==undefined) {
    fill = true;
  }
  if(outline==undefined) {
    outline = true;
  }
  
  boundaries = new Array(0);
  for(i=0; i<pointsArray.length; i++) {
    boundaries.push(this.dpEncodeToJSON(pointsArray[i],
      boundaryColor, boundaryWeight, boundaryOpacity));
  }
  return new GPolygon.fromEncoded({
    polylines: boundaries,
    color: fillColor,
    opacity: fillOpacity,
    fill: fill,
    outline: outline
  });
}

// distance(p0, p1, p2) computes the distance between the point p0
// and the segment [p1,p2].  This could probably be replaced with
// something that is a bit more numerically stable.
PolylineEncoder.prototype.distance = function(p0, p1, p2, segLength) {
  var u, out;
  
  if(p1.lat() === p2.lat() && p1.lng() === p2.lng()) {
    out = Math.sqrt(Math.pow(p2.lat()-p0.lat(),2) + Math.pow(p2.lng()-p0.lng(),2));
  }
  else {
    u = ((p0.lat()-p1.lat())*(p2.lat()-p1.lat())+(p0.lng()-p1.lng())*(p2.lng()-p1.lng()))/
      segLength;
  
    if(u <= 0) {
      out = Math.sqrt(Math.pow(p0.lat() - p1.lat(),2) + Math.pow(p0.lng() - p1.lng(),2));
    }
    if(u >= 1) {
      out = Math.sqrt(Math.pow(p0.lat() - p2.lat(),2) + Math.pow(p0.lng() - p2.lng(),2));
    }
    if(0 < u && u < 1) {
      out = Math.sqrt(Math.pow(p0.lat()-p1.lat()-u*(p2.lat()-p1.lat()),2) +
        Math.pow(p0.lng()-p1.lng()-u*(p2.lng()-p1.lng()),2));
    }
  }
  return out;
}

// The createEncodings function is very similar to Google's
// http://www.google.com/apis/maps/documentation/polyline.js
// The key difference is that not all points are encoded, 
// since some were eliminated by Douglas-Peucker.
PolylineEncoder.prototype.createEncodings = function(points, dists) {
  var i, dlat, dlng;
  var plat = 0;
  var plng = 0;
  var encoded_points = "";

  for(i = 0; i < points.length; i++) {
    if(dists[i] != undefined || i == 0 || i == points.length-1) {
      var point = points[i];
      var lat = point.lat();
      var lng = point.lng();
      var late5 = Math.floor(lat * 1e5);
      var lnge5 = Math.floor(lng * 1e5);
      dlat = late5 - plat;
      dlng = lnge5 - plng;
      plat = late5;
      plng = lnge5;
      encoded_points += this.encodeSignedNumber(dlat) + 
        this.encodeSignedNumber(dlng);
    }
  }
  return encoded_points;
}

// This computes the appropriate zoom level of a point in terms of it's 
// distance from the relevant segment in the DP algorithm.  Could be done
// in terms of a logarithm, but this approach makes it a bit easier to
// ensure that the level is not too large.
PolylineEncoder.prototype.computeLevel = function(dd) {
  var lev;
  if(dd > this.verySmall) {
    lev=0;
    while(dd < this.zoomLevelBreaks[lev]) {
      lev++;
    }
    return lev;
  }
}

// Now we can use the previous function to march down the list
// of points and encode the levels.  Like createEncodings, we
// ignore points whose distance (in dists) is undefined.
PolylineEncoder.prototype.encodeLevels = function(points, dists, absMaxDist) {
  var i;
  var encoded_levels = "";
  if(this.forceEndpoints) {
    encoded_levels += this.encodeNumber(this.numLevels-1)
  } else {
    encoded_levels += this.encodeNumber(
      this.numLevels-this.computeLevel(absMaxDist)-1)
  }
  for(i=1; i < points.length-1; i++) {
    if(dists[i] != undefined) {
      encoded_levels += this.encodeNumber(
        this.numLevels-this.computeLevel(dists[i])-1);
    }
  }
  if(this.forceEndpoints) {
    encoded_levels += this.encodeNumber(this.numLevels-1)
  } else {
    encoded_levels += this.encodeNumber(
      this.numLevels-this.computeLevel(absMaxDist)-1)
  }
  return encoded_levels;
}

// This function is very similar to Google's, but I added
// some stuff to deal with the double slash issue.
PolylineEncoder.prototype.encodeNumber = function(num) {
  var encodeString = "";
  var nextValue, finalValue;
  while (num >= 0x20) {
    nextValue = (0x20 | (num & 0x1f)) + 63;
//     if (nextValue == 92) {
//       encodeString += (String.fromCharCode(nextValue));
//     }
    encodeString += (String.fromCharCode(nextValue));
    num >>= 5;
  }
  finalValue = num + 63;
//   if (finalValue == 92) {
//     encodeString += (String.fromCharCode(finalValue));
//   }
  encodeString += (String.fromCharCode(finalValue));
  return encodeString;
}

// This one is Google's verbatim.
PolylineEncoder.prototype.encodeSignedNumber = function(num) {
  var sgn_num = num << 1;
  if (num < 0) {
    sgn_num = ~(sgn_num);
  }
  return(this.encodeNumber(sgn_num));
}


// The remaining code defines a few convenience utilities.
// PolylineEncoder.latLng
PolylineEncoder.latLng = function(y, x) {
	this.y = y;
	this.x = x;
}
PolylineEncoder.latLng.prototype.lat = function() {
	return this.y;
}
PolylineEncoder.latLng.prototype.lng = function() {
	return this.x;
}

// PolylineEncoder.pointsToLatLngs
PolylineEncoder.pointsToLatLngs = function(points) {
	var i, latLngs;
	latLngs = new Array(0);
	for(i=0; i<points.length; i++) {
		latLngs.push(new PolylineEncoder.latLng(points[i][0], points[i][1]));
	}
	return latLngs;
}

// PolylineEncoder.pointsToGLatLngs
PolylineEncoder.pointsToGLatLngs = function(points) {
	var i, gLatLngs;
	gLatLngs = new Array(0);
	for(i=0; i<points.length; i++) {
		gLatLngs.push(new GLatLng(points[i][0], points[i][1]));
	}
	return gLatLngs;
}
/* START OF THE MAP DRAWING */

var map = null;
var bIcon = null;
var startpos = new GLatLng(-16.62231, -72.70987)
var date, blogurl, num, point, blogtitle, is_blog;
var polylineEncoder = new PolylineEncoder();		
var progressPoints = new Array(0);

  var icon = new GIcon();
  icon.image = "/fix.png";
  icon.shadow = "/shadow-fix.png";
  icon.iconSize = new GSize(18.0, 18.0);
  icon.shadowSize = new GSize(28.0, 18.0);
  icon.iconAnchor = new GPoint(9.0, 9.0);
  icon.infoWindowAnchor = new GPoint(9.0, 9.0);

function onLoad() {
  map = new GMap2(document.getElementById('map_wrapper'), {backgroundColor:'#000000'});
	//map.addControl(new ZoomControls());
  map.addControl(new GLargeMapControl3D());	
  map.enableScrollWheelZoom();
  map.enableContinuousZoom(); 	
	
	map.setCenter(startpos, 10);
	map.setMapType(G_SATELLITE_MAP);
	drawRoute();
	drawPosition();
}
	
function drawPosition() {
  createMarker(new GLatLng(-1.39446,-78.40559), '31/01/2012', 'http://www.goingoverland.com/2012/01/31/ecuador-make-it-hard-for-tourists-to-stay/', 0, 'Ecuadorean visa problems', 'publish');
  map.panTo(new GLatLng(-1.39446,-78.40559));
  createMarker(new GLatLng(-0.20676,-78.49699), '29/01/2012', 'http://www.goingoverland.com/2012/01/29/dummy-blog-quito/', 1, 'Private: dummy blog &#8211; Quito', 'private');
  createMarker(new GLatLng(-1.39447,-78.40553), '21/01/2012', 'http://www.goingoverland.com/2012/01/21/dummy-blog-back-to-la-casa-verde/', 2, 'Private: dummy blog &#8211; back to La Casa Verde', 'private');
  createMarker(new GLatLng(-1.04136,-77.79448), '17/01/2012', 'http://www.goingoverland.com/2012/01/17/puerto-napo/', 3, 'Puerto Napo', 'publish');
  createMarker(new GLatLng(-1.16663,-77.85545), '16/01/2012', 'http://www.goingoverland.com/2012/01/16/arosemena-tola/', 4, 'Arosemena Tola', 'publish');
  createMarker(new GLatLng(-1.39447,-78.40553), '12/01/2012', 'http://www.goingoverland.com/2012/01/12/the-green-house/', 5, 'The Green House', 'publish');
  createMarker(new GLatLng(-0.93290,-78.61590), '08/01/2012', 'http://www.goingoverland.com/2012/01/08/quilotoa-loop-finally-completed-by-going-overland-expedition/', 6, 'Quilotoa Loop finally completed by Going Overland Expedition', 'publish');
  createMarker(new GLatLng(-0.68995,-78.87907), '20/11/2011', 'http://www.goingoverland.com/2011/11/20/id-rather-push-my-landy-than-drive-a-jeep/', 7, 'I&#8217;d rather push my Landy than drive a Jeep &#8230;.', 'publish');
  createMarker(new GLatLng(-0.93294,-78.61584), '17/11/2011', 'http://www.goingoverland.com/2011/11/17/a-mountain-to-climb/', 8, 'A mountain to climb', 'publish');
  createMarker(new GLatLng(-0.62774,-78.47372), '09/11/2011', 'http://www.goingoverland.com/2011/11/09/dummy-blog-cotopaxi/', 9, 'Private: dummy blog &#8211; Cotopaxi', 'private');
  createMarker(new GLatLng(-0.20440,-78.33271), '08/11/2011', 'http://www.goingoverland.com/2011/11/08/equatorial-magic-in-an-egg/', 10, 'Equatorial magic in an egg', 'publish');
  createMarker(new GLatLng(0.34735,-78.11887), '07/11/2011', 'http://www.goingoverland.com/2011/11/07/monetary-fears-unfounded/', 11, 'Cash flow fears unfounded', 'publish');
  createMarker(new GLatLng(1.20910,-77.27807), '05/11/2011', 'http://www.goingoverland.com/2011/11/05/blankets-on-the-bed/', 12, 'Blankets on the bed', 'publish');
  createMarker(new GLatLng(1.88386,-76.27468), '03/11/2011', 'http://www.goingoverland.com/2011/11/03/long-day-driving/', 13, 'Long day driving', 'publish');
  createMarker(new GLatLng(3.33204,-74.95897), '01/11/2011', 'http://www.goingoverland.com/2011/11/01/tomato-is-a-fruit/', 14, 'Tomato is a fruit', 'publish');
  createMarker(new GLatLng(4.15442,-74.88131), '31/10/2011', 'http://www.goingoverland.com/2011/10/31/wigs-everywhere/', 15, 'Mud everywhere', 'publish');
  createMarker(new GLatLng(5.89867,-74.74492), '30/10/2011', 'http://www.goingoverland.com/2011/10/30/election-day/', 16, 'Election Day', 'publish');
  createMarker(new GLatLng(6.207683,-75.575417), '29/10/2011', 'http://www.goingoverland.com/2011/10/29/heads-in-the-clouds/', 17, 'Heads in the clouds', 'publish');
  createMarker(new GLatLng(08.04223,-75.32845), '28/10/2011', 'http://www.goingoverland.com/2011/10/28/camp-esso/', 18, 'Camp Esso', 'publish');
  createMarker(new GLatLng(9.52713,-75.58399), '27/10/2011', 'http://www.goingoverland.com/2011/10/27/last-view-of-the-caribbean/', 19, 'Last view of the Caribbean', 'publish');
  createMarker(new GLatLng(10.419659,-75.546352), '23/10/2011', 'http://www.goingoverland.com/2011/10/23/we-fly/', 20, 'We fly', 'publish');
  createMarker(new GLatLng(9.365187,-79.880545), '20/10/2011', 'http://www.goingoverland.com/2011/10/20/landy-and-his-mates-go-sailing/', 21, 'Landy and his mates go sailing', 'publish');
  createMarker(new GLatLng(8.961045,-79.543762), '13/10/2011', 'http://www.goingoverland.com/2011/10/13/panama-city/', 22, 'Panama City', 'publish');
  createMarker(new GLatLng(8.10528,-80.97022), '12/10/2011', 'http://www.goingoverland.com/2011/10/12/still-pursuing-our-road-trip-through-panama/', 23, 'Still pursuing our road trip through Panama &#8230;..', 'publish');
  createMarker(new GLatLng(8.95034,-82.11919), '11/10/2011', 'http://www.goingoverland.com/2011/10/11/sixaola-border-crossing/', 24, 'Sixaola border crossing', 'publish');
  createMarker(new GLatLng(9.65511,-82.75454), '10/10/2011', 'http://www.goingoverland.com/2011/10/10/dummy-blog-puerta-viejo/', 25, 'Private: dummy blog &#8211; Puerta Viejo', 'private');
  createMarker(new GLatLng(9.90392,-83.68552), '08/10/2011', 'http://www.goingoverland.com/2011/10/08/dummy-blog-turrialba/', 26, 'Private: dummy blog &#8211; Turrialba', 'private');
  createMarker(new GLatLng(9.93095,-84.06844), '07/10/2011', 'http://www.goingoverland.com/2011/10/07/loving-care-for-landy/', 27, 'Loving care for Landy', 'publish');
  createMarker(new GLatLng(10.47134,-84.64105), '04/10/2011', 'http://www.goingoverland.com/2011/10/04/dummy-blog-gringo-petes-at-la-fortuna/', 28, 'Private: dummy blog &#8211; Gringo Pete&#8217;s at La Fortuna', 'private');
  createMarker(new GLatLng(10.31749,-84.82353), '02/10/2011', 'http://www.goingoverland.com/2011/10/02/santa-elena-need-latlong-to-finish-plus-photo/', 29, 'Santa Elena', 'publish');
  createMarker(new GLatLng(10.83531,-85.61690), '30/09/2011', 'http://www.goingoverland.com/2011/09/30/final-of-the-card-saga-and-a-happier-note/', 30, 'final of the card saga and a happier note', 'publish');
  createMarker(new GLatLng(11.44317,-85.82562), '29/09/2011', 'http://www.goingoverland.com/2011/09/29/drive-drive-drive/', 31, 'Drive drive drive', 'publish');
  createMarker(new GLatLng(12.10225,-86.25826), '28/09/2011', 'http://www.goingoverland.com/2011/09/28/the-final-stand-in-the-card-saga/', 32, 'The final stand in the card saga', 'publish');
  createMarker(new GLatLng(11.14408,-85.79271), '25/09/2011', 'http://www.goingoverland.com/2011/09/25/turtle-delights/', 33, 'Turtle delights', 'publish');
  createMarker(new GLatLng(11.25387,-85.86948), '24/09/2011', 'http://www.goingoverland.com/2011/09/24/dummy-blog-san-juan-del-sur/', 34, 'Private: dummy blog &#8211; San Juan del Sur', 'private');
  createMarker(new GLatLng(12.10225,-86.25826), '09/09/2011', 'http://www.goingoverland.com/2011/09/09/dummy-blog-managua/', 35, 'Private: dummy blog &#8211; Managua', 'private');
  createMarker(new GLatLng(12.37969,-87.04493), '07/09/2011', 'http://www.goingoverland.com/2011/09/07/digging-for-victory/', 36, 'Digging for Victory', 'publish');
  createMarker(new GLatLng(12.43391,-86.88405), '05/09/2011', 'http://www.goingoverland.com/2011/09/05/tortuga-booluga/', 37, 'Tortuga Booluga', 'publish');
  createMarker(new GLatLng(13.09239,-86.35503), '02/09/2011', 'http://www.goingoverland.com/2011/09/02/dummy-blog-esteli/', 38, 'Private: dummy blog &#8211; Esteli', 'private');
  createMarker(new GLatLng(13.45561,-86.68962), '30/08/2011', 'http://www.goingoverland.com/2011/08/30/brief-update-blogs-to-follow/', 39, 'Somoto Canyone &#8211; brief update &#8211; blogs to follow', 'publish');
  createMarker(new GLatLng(13.48422,-86.58360), '29/08/2011', 'http://www.goingoverland.com/2011/08/29/emmanuel/', 40, 'Emmanuel', 'publish');
  createMarker(new GLatLng(14.02965,-86.56724), '24/08/2011', 'http://www.goingoverland.com/2011/08/24/dummy-blog-arrival-at-danli/', 41, 'Private: dummy blog &#8211; arrival at Danli', 'private');
  createMarker(new GLatLng(14.05873,-86.87415), '23/08/2011', 'http://www.goingoverland.com/2011/08/23/city-dash/', 42, 'City dash', 'publish');
  createMarker(new GLatLng(15.21943,-85.76462), '22/08/2011', 'http://www.goingoverland.com/2011/08/22/public-showers/', 43, 'Public Showers!', 'publish');
  createMarker(new GLatLng(15.97876,-85.07465), '21/08/2011', 'http://www.goingoverland.com/2011/08/21/shame/', 44, 'Shame', 'publish');
  createMarker(new GLatLng(15.97876,-85.07465), '19/08/2011', 'http://www.goingoverland.com/2011/08/19/on-the-edge-of-a-hurricane/', 45, 'On the edge of a Hurricane', 'publish');
  createMarker(new GLatLng(15.86333,-85.49897), '18/08/2011', 'http://www.goingoverland.com/2011/08/18/caribbean-coast/', 46, 'Caribbean Coast', 'publish');
  createMarker(new GLatLng(15.59964,-87.19811), '17/08/2011', 'http://www.goingoverland.com/2011/08/17/ramming-speed/', 47, 'Ramming Speed', 'publish');
  createMarker(new GLatLng(14.94647,-88.03788), '12/08/2011', 'http://www.goingoverland.com/2011/08/12/bolting-it/', 48, 'Bolting it', 'publish');
  createMarker(new GLatLng(14.30822,-88.17850), '10/08/2011', 'http://www.goingoverland.com/2011/08/10/into-honduras/', 49, 'Into Honduras', 'publish');
  createMarker(new GLatLng(14.37255,-89.20931), '09/08/2011', 'http://www.goingoverland.com/2011/08/09/el-poy/', 50, 'El Poy', 'publish');
  createMarker(new GLatLng(13.93771,-89.02590), '28/07/2011', 'http://www.goingoverland.com/2011/07/28/dummy-blog-suchitoto/', 51, 'Private: dummy blog &#8211; Suchitoto', 'private');
  createMarker(new GLatLng(13.70270,-89.23183), '25/07/2011', 'http://www.goingoverland.com/2011/07/25/letting-some-air-out/', 52, 'letting some air out', 'publish');
  createMarker(new GLatLng(13.67156,-89.43709), '24/07/2011', 'http://www.goingoverland.com/2011/07/24/festivals/', 53, 'Festivals', 'publish');
  createMarker(new GLatLng(13.86034,-89.80388), '15/07/2011', 'http://www.goingoverland.com/2011/07/15/over-the-border-2/', 54, 'Over the border', 'publish');
  createMarker(new GLatLng(15.47140,-90.37715), '12/07/2011', 'http://www.goingoverland.com/2011/07/12/rains-and-roads/', 55, 'Rains and Roads', 'publish');
  createMarker(new GLatLng(16.08516,-89.69103), '11/07/2011', 'http://www.goingoverland.com/2011/07/11/over-the-border/', 56, 'Over the border', 'publish');
  createMarker(new GLatLng(17.15810,-89.07055), '08/07/2011', 'http://www.goingoverland.com/2011/07/08/recovery-time/', 57, 'Recovery time', 'publish');
  createMarker(new GLatLng(17.11436,-88.92909), '28/06/2011', 'http://www.goingoverland.com/2011/06/28/belmopan-barton-creek/', 58, 'Belmopan &#038; Barton Creek', 'publish');
  createMarker(new GLatLng(16.86287,-88.28406), '26/06/2011', 'http://www.goingoverland.com/2011/06/26/landy-gets-a-little-hurt-but-not-as-much-as-someone-else/', 59, 'Landy gets a little hurt (but not as much as someone else)', 'publish');
  createMarker(new GLatLng(17.53291,-88.51407), '25/06/2011', 'http://www.goingoverland.com/2011/06/25/animal-day/', 60, 'Animal Day', 'publish');
  createMarker(new GLatLng(17.53291,-88.51407), '25/06/2011', 'http://www.goingoverland.com/2011/06/25/animal-day/', 61, 'Animal Day', 'publish');
  createMarker(new GLatLng(18.07783,-88.56195), '24/06/2011', 'http://www.goingoverland.com/2011/06/24/musings/', 62, 'Musings', 'publish');
  createMarker(new GLatLng(18.34475,-88.15269), '21/06/2011', 'http://www.goingoverland.com/2011/06/21/mexican-belizean-border-crossing/', 63, 'Mexican &#8211; Belizean border crossing', 'publish');
  createMarker(new GLatLng(18.51546,-88.36980), '19/06/2011', 'http://www.goingoverland.com/2011/06/19/mayan-rains/', 64, 'Mayan Rains', 'publish');
  createMarker(new GLatLng(18.42860,-88.80930), '18/06/2011', 'http://www.goingoverland.com/2011/06/18/dummy-blog-kohunlich/', 65, 'Private: dummy blog &#8211; Kohunlich', 'private');
  createMarker(new GLatLng(18.61263,-90.78986), '16/06/2011', 'http://www.goingoverland.com/2011/06/16/dummy-blog-francisco-escarcega/', 66, 'Private: dummy blog &#8211; Francisco Escarcega', 'private');
  createMarker(new GLatLng(17.48876,-92.03004), '15/06/2011', 'http://www.goingoverland.com/2011/06/15/dummy-blog-palenque/', 67, 'Private: dummy blog &#8211; Palenque', 'private');
  createMarker(new GLatLng(16.89348,-92.10113), '14/06/2011', 'http://www.goingoverland.com/2011/06/14/double-back/', 68, 'double back', 'publish');
  createMarker(new GLatLng(16.73731,-92.06212), '14/06/2011', 'http://www.goingoverland.com/2011/06/14/landy-gets-new-boots-courtesy-of-general-tire/', 69, 'Landy gets new boots courtesy of General Tire', 'publish');
  createMarker(new GLatLng(16.71028,-92.47428), '13/06/2011', 'http://www.goingoverland.com/2011/06/13/dummy-blog-on-way-to-get-new-tyres/', 70, 'Private: dummy blog &#8211; on way to get new tyres', 'private');
  createMarker(new GLatLng(17.48876,-92.03004), '11/06/2011', 'http://www.goingoverland.com/2011/06/11/whater-fall/', 71, 'Whater Fall', 'publish');
  createMarker(new GLatLng(17.39202,-91.99979), '10/06/2011', 'http://www.goingoverland.com/2011/06/10/what-a-catalogue/', 72, 'What a catalogue!!', 'publish');
  createMarker(new GLatLng(16.39986,-92.06141), '09/06/2011', 'http://www.goingoverland.com/2011/06/09/rant/', 73, 'Rant', 'publish');
  createMarker(new GLatLng(16.27365,-92.16546), '08/06/2011', 'http://www.goingoverland.com/2011/06/08/scenery-in-the-dusk/', 74, 'Scenery in the dusk', 'publish');
  createMarker(new GLatLng(16.75675,-93.32883), '07/06/2011', 'http://www.goingoverland.com/2011/06/07/happy-anniversary/', 75, 'Happy Anniversary', 'publish');
  createMarker(new GLatLng(16.67019,-96.30544), '06/06/2011', 'http://www.goingoverland.com/2011/06/06/beautiful-scenery-on-winding-roads/', 76, 'Beautiful scenery on winding roads', 'publish');
  createMarker(new GLatLng(18.87978,-97.58768), '05/06/2011', 'http://www.goingoverland.com/2011/06/05/dummy-blog-for-campsite-pemex-garage-on-highway-15/', 77, 'Private: dummy blog for campsite &#8211; Pemex garage on Highway 15', 'private');
  createMarker(new GLatLng(19.55274,-99.30080), '29/05/2011', 'http://www.goingoverland.com/2011/05/29/youve-got-mail/', 78, 'You&#8217;ve got mail', 'publish');
  createMarker(new GLatLng(18.78333,-98.90246), '25/05/2011', 'http://www.goingoverland.com/2011/05/25/reflecting-on-a-journey/', 79, 'Reflecting on a Journey', 'publish');
  createMarker(new GLatLng(17.44553,-97.22752), '24/05/2011', 'http://www.goingoverland.com/2011/05/24/ploughing-on/', 80, 'Ploughing on', 'publish');
  createMarker(new GLatLng(16.09372,-97.07455), '23/05/2011', 'http://www.goingoverland.com/2011/05/23/beach-mission/', 81, 'Beach Mission', 'publish');
  createMarker(new GLatLng(15.94601,-97.35002), '22/05/2011', 'http://www.goingoverland.com/2011/05/22/tanked-up-taxi/', 82, 'Tanked up Taxi', 'publish');
  createMarker(new GLatLng(16.63076,-99.05807), '17/05/2011', 'http://www.goingoverland.com/2011/05/17/acapulco-appenings/', 83, 'Acapulco &#8216;appenings', 'publish');
  createMarker(new GLatLng(18.20021,-99.50755), '16/05/2011', 'http://www.goingoverland.com/2011/05/16/exploring-mexico/', 84, 'Exploring Mexico', 'publish');
  createMarker(new GLatLng(19.55274,-99.30080), '02/05/2011', 'http://www.goingoverland.com/2011/05/02/dummy-blog-jaime-lety/', 85, 'Private: dummy blog &#8211; Jaime &#038; Lety', 'private');
  createMarker(new GLatLng(19.74090,-99.21360), '01/05/2011', 'http://www.goingoverland.com/2011/05/01/pyramids-and-town-fair/', 86, 'Pyramids and town fair', 'publish');
  createMarker(new GLatLng(19.73633,-98.97256), '30/04/2011', 'http://www.goingoverland.com/2011/04/30/dummy-blog-garage-near-tecamac/', 87, 'Private: dummy blog &#8211; garage near Tecamac', 'private');
  createMarker(new GLatLng(19.74004,-99.21206), '29/04/2011', 'http://www.goingoverland.com/2011/04/29/seat-of-the-mexican-revolution/', 88, 'Seat of the Mexican Revolution', 'publish');
  createMarker(new GLatLng(20.92714,-100.41472), '28/04/2011', 'http://www.goingoverland.com/2011/04/28/chicken-broth/', 89, 'Chicken broth', 'publish');
  createMarker(new GLatLng(23.69518,-100.88913), '27/04/2011', 'http://www.goingoverland.com/2011/04/27/an-old-mexican-town/', 90, 'An old Mexican town', 'publish');
  createMarker(new GLatLng(23.69725,-100.61929), '25/04/2011', 'http://www.goingoverland.com/2011/04/25/arrival-in-mexico/', 91, 'Arrival in Mexico', 'publish');
  createMarker(new GLatLng(27.55192,-99.50546), '24/04/2011', 'http://www.goingoverland.com/2011/04/24/our-final-day-in-america/', 92, 'Our final day in America', 'publish');
  createMarker(new GLatLng(27.70252,-99.45527), '23/04/2011', 'http://www.goingoverland.com/2011/04/23/heading-out/', 93, 'Heading Out', 'publish');
  createMarker(new GLatLng(30.50195,-99.78036), '20/04/2011', 'http://www.goingoverland.com/2011/04/20/texas-scenery/', 94, 'Texas scenery', 'publish');
  createMarker(new GLatLng(31.04296,-104.75520), '19/04/2011', 'http://www.goingoverland.com/2011/04/19/sights-on-mexico/', 95, 'Sights on Mexico', 'publish');
  createMarker(new GLatLng(32.91142,-108.22427), '18/04/2011', 'http://www.goingoverland.com/2011/04/18/living-in-the-cliffs/', 96, 'Living in the cliffs', 'publish');
  createMarker(new GLatLng(33.18523,-108.20370), '17/04/2011', 'http://www.goingoverland.com/2011/04/17/dummy-blog-for-camp-near-gila-cliff-dwellings/', 97, 'Private: dummy blog for camp near Gila cliff dwellings', 'private');
  createMarker(new GLatLng(32.77748,-108.19016), '12/04/2011', 'http://www.goingoverland.com/2011/04/12/a-storm-in-the-desert/', 98, 'A storm in the desert', 'publish');
  createMarker(new GLatLng(32.155341,-110.772572), '07/04/2011', 'http://www.goingoverland.com/2011/04/07/temp-photos-latlong-needed-2/', 99, 'Staying on in Tucson', 'publish');
  createMarker(new GLatLng(31.72478,-111.05635), '03/04/2011', 'http://www.goingoverland.com/2011/04/03/temp-photos-latlong-needed/', 100, 'OX11', 'publish');
  createMarker(new GLatLng(31.72478,-111.05635), '31/03/2011', 'http://www.goingoverland.com/2011/03/31/temp-photos-needed/', 101, 'Ready for the Expo', 'publish');
  createMarker(new GLatLng(32.20850,-110.98061), '30/03/2011', 'http://www.goingoverland.com/2011/03/30/temp-blog-needed-2/', 102, 'Getting hot (again) in the desert', 'publish');
  createMarker(new GLatLng(32.77689,-115.57143), '29/03/2011', 'http://www.goingoverland.com/2011/03/29/temp-blog-needed/', 103, 'Back to school and moving on', 'publish');
  createMarker(new GLatLng(33.02052,-117.20392), '19/03/2011', 'http://www.goingoverland.com/2011/03/19/bottoms-up/', 104, 'Bottoms Up', 'publish');
  createMarker(new GLatLng(33.048062,-117.28961), '18/03/2011', 'http://www.goingoverland.com/2011/03/18/the-coast-road/', 105, 'The Coast Road', 'publish');
  createMarker(new GLatLng(33.27281,-117.44433), '17/03/2011', 'http://www.goingoverland.com/2011/03/17/thursday-17th-dummy-blog/', 106, 'Private: thursday 17th &#8211; dummy blog', 'private');
  createMarker(new GLatLng(35.85005,-120.76995), '16/03/2011', 'http://www.goingoverland.com/2011/03/16/wednesday-16th-dummy-blog/', 107, 'Private: wednesday 16th &#8211; dummy blog', 'private');
  createMarker(new GLatLng(37.51086,-121.94159), '15/03/2011', 'http://www.goingoverland.com/2011/03/15/nclrc/', 108, 'NCLRC', 'publish');
  createMarker(new GLatLng(37.15843,-122.35004), '12/03/2011', 'http://www.goingoverland.com/2011/03/12/san-fran/', 109, 'San Fran', 'publish');
  createMarker(new GLatLng(37.92310,-122.66232), '10/03/2011', 'http://www.goingoverland.com/2011/03/10/dummy-blog-cole-european/', 110, 'Private: dummy blog &#8211; Cole European', 'private');
  createMarker(new GLatLng(38.27283,-122.67873), '02/03/2011', 'http://www.goingoverland.com/2011/03/02/she-stole-my-pear/', 111, 'She stole my pear!!', 'publish');
  createMarker(new GLatLng(39.529633,-119.813803), '01/03/2011', 'http://www.goingoverland.com/2011/03/01/reno/', 112, 'Reno', 'publish');
  createMarker(new GLatLng(38.34129,-119.32254), '28/02/2011', 'http://www.goingoverland.com/2011/02/28/death-valley/', 113, 'Death Valley', 'publish');
  createMarker(new GLatLng(36.73677,-116.91246), '27/02/2011', 'http://www.goingoverland.com/2011/02/27/dummy-blog-chloride-cliff-road/', 114, 'Private: dummy blog &#8211; Chloride Cliff Road', 'private');
  createMarker(new GLatLng(36.64309,-117.27201), '26/02/2011', 'http://www.goingoverland.com/2011/02/26/dummy-blog-cottonwood-canyon-road/', 115, 'Private: dummy blog &#8211; Cottonwood Canyon Road', 'private');
  createMarker(new GLatLng(36.46400,-116.76322), '25/02/2011', 'http://www.goingoverland.com/2011/02/25/dummy-blog-echo-canyon/', 116, 'Private: dummy blog &#8211; Echo Canyon', 'private');
  createMarker(new GLatLng(35.99577,-116.29855), '24/02/2011', 'http://www.goingoverland.com/2011/02/24/one-extreme-to-another/', 117, 'One extreme to another', 'publish');
  createMarker(new GLatLng(36.10233,-115.18459), '23/02/2011', 'http://www.goingoverland.com/2011/02/23/inspections-and-bright-lights/', 118, 'Inspections and Bright Lights', 'publish');
  createMarker(new GLatLng(34.86958,-114.64414), '18/02/2011', 'http://www.goingoverland.com/2011/02/18/california/', 119, 'California', 'publish');
  createMarker(new GLatLng(34.61188,-112.43600), '15/02/2011', 'http://www.goingoverland.com/2011/02/15/dummy-blog-willow-lake-campsite/', 120, 'Private: dummy blog &#8211; Willow Lake campsite', 'private');
  createMarker(new GLatLng(34.55323,-112.40786), '14/02/2011', 'http://www.goingoverland.com/2011/02/14/sedona/', 121, 'Sedona', 'publish');
  createMarker(new GLatLng(34.03635,-111.74550), '13/02/2011', 'http://www.goingoverland.com/2011/02/13/squirrels/', 122, 'Squirrels', 'publish');
  createMarker(new GLatLng(35.23441,-111.57677), '09/02/2011', 'http://www.goingoverland.com/2011/02/09/dummy-blog-koa-campsite/', 123, 'Private: dummy blog &#8211; KOA campsite', 'private');
  createMarker(new GLatLng(36.05560,-112.14146), '09/02/2011', 'http://www.goingoverland.com/2011/02/09/grand-canyon/', 124, 'Grand Canyon', 'publish');
  createMarker(new GLatLng(35.23441,-111.57677), '07/02/2011', 'http://www.goingoverland.com/2011/02/07/dummy-blog-koa-campsite-outside-flagstaff/', 125, 'Private: dummy blog &#8211; KOA campsite outside Flagstaff', 'private');
  createMarker(new GLatLng(35.23866,-111.82142), '06/02/2011', 'http://www.goingoverland.com/2011/02/06/dummy-blog-belmont-pilot-garage-cab-sleep/', 126, 'Valley of the Gods &#038; Monument Valley', 'publish');
  createMarker(new GLatLng(37.26247,-109.61337), '05/02/2011', 'http://www.goingoverland.com/2011/02/05/dummy-blog-sand-island-campsite/', 127, 'Newspaper Rock &#038; Combe Ridge', 'publish');
  createMarker(new GLatLng(38.21080,-109.67307), '04/02/2011', 'http://www.goingoverland.com/2011/02/04/wending-our-way-through-the-canyons/', 128, 'Wending our way through the Canyons', 'publish');
  createMarker(new GLatLng(38.35559,-109.68620), '03/02/2011', 'http://www.goingoverland.com/2011/02/03/dummy-blog-campsite/', 129, 'Private: dummy blog &#8211; campsite', 'private');
  createMarker(new GLatLng(38.39400,-109.45180), '02/02/2011', 'http://www.goingoverland.com/2011/02/02/dummy-blog-rest-area-campsite/', 130, 'Private: dummy blog &#8211; rest area campsite', 'private');
  createMarker(new GLatLng(38.59333,-109.56568), '01/02/2011', 'http://www.goingoverland.com/2011/02/01/airborne-sleep/', 131, 'Airborne sleep?', 'publish');
  createMarker(new GLatLng(38.53702,-109.60501), '30/01/2011', 'http://www.goingoverland.com/2011/01/30/switchbacks-in-the-canyon/', 132, 'Switchbacks in the Canyon', 'publish');
  createMarker(new GLatLng(38.38433,-109.88808), '29/01/2011', 'http://www.goingoverland.com/2011/01/29/island-in-the-sky-canyonlands/', 133, 'Island in the Sky (Canyonlands)', 'publish');
  createMarker(new GLatLng(38.39400,-109.45180), '28/01/2011', 'http://www.goingoverland.com/2011/01/28/ice-in-the-tent/', 134, 'Ice in the tent', 'publish');
  createMarker(new GLatLng(38.67265,-109.68657), '28/01/2011', 'http://www.goingoverland.com/2011/01/28/dummy-blog-map-reference/', 135, 'Private: dummy blog &#8211; map reference', 'private');
  createMarker(new GLatLng(39.71379,-113.16257), '27/01/2011', 'http://www.goingoverland.com/2011/01/27/wild-west-and-the-pony-express/', 136, 'Wild West and the Pony Express', 'publish');
  createMarker(new GLatLng(39.84177,-113.31516), '27/01/2011', 'http://www.goingoverland.com/2011/01/27/dummy-blog-pony-express-trail-11/', 137, 'Private: dummy blog &#8211; Pony Express Trail (11)', 'private');
  createMarker(new GLatLng(39.84797,-113.41095), '27/01/2011', 'http://www.goingoverland.com/2011/01/27/dummy-blog-pony-express-trail-10/', 138, 'Private: dummy blog &#8211; Pony Express Trail (10)', 'private');
  createMarker(new GLatLng(39.89082,-113.41944), '27/01/2011', 'http://www.goingoverland.com/2011/01/27/dummy-blog-pony-express-trail-9/', 139, 'Private: dummy blog &#8211; Pony Express Trail (9)', 'private');
  createMarker(new GLatLng(39.84311,-113.55199), '27/01/2011', 'http://www.goingoverland.com/2011/01/27/dummy-blog-pony-express-trail-8/', 140, 'Private: dummy blog &#8211; Pony Express Trail (8)', 'private');
  createMarker(new GLatLng(39.90237,-113.72493), '27/01/2011', 'http://www.goingoverland.com/2011/01/27/dummy-blog-pony-express-trail-7/', 141, 'Private: dummy blog &#8211; Pony Express Trail (7)', 'private');
  createMarker(new GLatLng(39.95808,-113.73161), '27/01/2011', 'http://www.goingoverland.com/2011/01/27/dummy-blog-pony-express-trail-6/', 142, 'Private: dummy blog &#8211; Pony Express Trail (6)', 'private');
  createMarker(new GLatLng(40.04451,-113.80402), '27/01/2011', 'http://www.goingoverland.com/2011/01/27/dummy-blog-pony-express-trail-5/', 143, 'Private: dummy blog &#8211; Pony Express Trail (5)', 'private');
  createMarker(new GLatLng(40.09108,-113.85264), '26/01/2011', 'http://www.goingoverland.com/2011/01/26/wicked-wendover-of-the-west/', 144, 'Wicked Wendover of the West', 'publish');
  createMarker(new GLatLng(40.10495,-113.86545), '26/01/2011', 'http://www.goingoverland.com/2011/01/26/dummy-blog-pony-express-trail-4/', 145, 'Private: dummy blog &#8211; Pony Express Trail (4)', 'private');
  createMarker(new GLatLng(40.11790,-113.85281), '26/01/2011', 'http://www.goingoverland.com/2011/01/26/dummy-blog-pony-express-trail-3/', 146, 'Private: dummy blog &#8211; Pony Express Trail (3)', 'private');
  createMarker(new GLatLng(40.16616,-113.83088), '26/01/2011', 'http://www.goingoverland.com/2011/01/26/dummy-blog-pony-express-trail-2/', 147, 'Private: dummy blog &#8211; Pony Express Trail (2)', 'private');
  createMarker(new GLatLng(40.25769,-113.99035), '26/01/2011', 'http://www.goingoverland.com/2011/01/26/dummy-blog-pony-express-trail-1/', 148, 'Private: dummy blog &#8211; Pony Express Trail (1)', 'private');
  createMarker(new GLatLng(40.73925,-114.06345), '25/01/2011', 'http://www.goingoverland.com/2011/01/25/lake-bonneville/', 149, 'Lake Bonneville', 'publish');
  createMarker(new GLatLng(40.76197,-113.01054), '24/01/2011', 'http://www.goingoverland.com/2011/01/24/heading-west/', 150, 'Heading West', 'publish');
  createMarker(new GLatLng(41.03962,-112.25843), '22/01/2011', 'http://www.goingoverland.com/2011/01/22/slc-departure/', 151, 'SLC Departure', 'publish');
  createMarker(new GLatLng(40.666892,-111.887991), '09/01/2011', 'http://www.goingoverland.com/2011/01/09/meeting-the-local-land-rover-enthusiasts/', 152, 'Meeting the local Land Rover enthusiasts', 'publish');
  createMarker(new GLatLng(40.760779,-111.891047), '06/01/2011', 'http://www.goingoverland.com/2011/01/06/the-lovely-and-the-lost/', 153, 'The Lovely and the Lost', 'publish');
  createMarker(new GLatLng(40.760779,-111.891047), '02/01/2011', 'http://www.goingoverland.com/2011/01/02/2nd-january-dummy-blog/', 154, 'Private: 2nd January &#8211; dummy blog', 'private');
  createMarker(new GLatLng(43.30307,-112.269266), '01/01/2011', 'http://www.goingoverland.com/2011/01/01/1st-january-dummy-blog/', 155, 'Private: 1st January &#8211; dummy blog', 'private');
  createMarker(new GLatLng(45.835228,-112.683871), '31/12/2010', 'http://www.goingoverland.com/2010/12/31/31st-december-dummy-blog/', 156, 'Private: 31st December &#8211; dummy blog', 'private');
  createMarker(new GLatLng(47.11079,-114.86568), '29/12/2010', 'http://www.goingoverland.com/2010/12/29/29th-december-dummy-blog/', 157, 'Private: 29th December &#8211; dummy blog', 'private');
  createMarker(new GLatLng(47.07577,-114.76705), '28/12/2010', 'http://www.goingoverland.com/2010/12/28/heading-east/', 158, 'Heading East', 'publish');
  createMarker(new GLatLng(47.29016,-118.03371), '27/12/2010', 'http://www.goingoverland.com/2010/12/27/27th-december-dummy-blog/', 159, 'Private: 27th December &#8211; dummy blog', 'private');
  createMarker(new GLatLng(47.39051,-121.51064), '27/12/2010', 'http://www.goingoverland.com/2010/12/27/snoqualmie/', 160, 'Snoqualmie', 'publish');
  createMarker(new GLatLng(47.6062,-122.3321), '25/11/2010', 'http://www.goingoverland.com/2010/11/25/dummy-post-for-seattle-map-reference-2/', 161, 'Private: dummy post for Seattle map reference (2)', 'private');
  createMarker(new GLatLng(30.4213,-87.2169), '24/11/2010', 'http://www.goingoverland.com/2010/11/24/seattle-to-florida-by-jeep/', 162, 'Seattle to Florida by Jeep', 'publish');
  createMarker(new GLatLng(30.64430,-87.76330), '23/11/2010', 'http://www.goingoverland.com/2010/11/23/tuesday-23-november-overnight-stop/', 163, 'Private: Tuesday 23 November &#8211; overnight stop', 'private');
  createMarker(new GLatLng(37.48759,-89.67863), '22/11/2010', 'http://www.goingoverland.com/2010/11/22/monday-22nd-november-overnight-stop/', 164, 'Private: Monday 22nd November &#8211; overnight stop', 'private');
  createMarker(new GLatLng(41.58839,-95.95805), '21/11/2010', 'http://www.goingoverland.com/2010/11/21/sunday-21st-november-overnight-stop/', 165, 'Private: Sunday 21st November &#8211; overnight stop', 'private');
  createMarker(new GLatLng(44.80228,-106.93922), '20/11/2010', 'http://www.goingoverland.com/2010/11/20/saturday-20th-november-overnight/', 166, 'Private: Saturday 20th November &#8211; overnight', 'private');
  createMarker(new GLatLng(47.07198,-114.77206), '19/11/2010', 'http://www.goingoverland.com/2010/11/19/friday-19th-overnight/', 167, 'Private: friday 19th overnight', 'private');
  createMarker(new GLatLng(47.6062,-122.3321), '15/11/2010', 'http://www.goingoverland.com/2010/11/15/dummy-post-for-seattle-map-reference/', 168, 'Private: dummy post for Seattle map reference', 'private');
  createMarker(new GLatLng(48.652871,-122.472324), '14/11/2010', 'http://www.goingoverland.com/2010/11/14/landy-lands-today-visions-of-prisons/', 169, 'Landy lands today!! &#038; visions of prisons', 'publish');
  createMarker(new GLatLng(53.49093,-122.64665), '13/11/2010', 'http://www.goingoverland.com/2010/11/13/signs-of-civilisation/', 170, 'Signs of civilisation', 'publish');
  createMarker(new GLatLng(56.33001,-120.95693), '12/11/2010', 'http://www.goingoverland.com/2010/11/12/transmissions-on-the-mind/', 171, 'Transmissions on the mind', 'publish');
  createMarker(new GLatLng(58.6547,-124.77330), '11/11/2010', 'http://www.goingoverland.com/2010/11/11/animals-on-the-alaskan-highway/', 172, 'Animals on the Alaskan Highway', 'publish');
  createMarker(new GLatLng(60.38008,-133.78284), '10/11/2010', 'http://www.goingoverland.com/2010/11/10/2148/', 173, 'Frozen scenes on the Alaskan Highway', 'publish');
  createMarker(new GLatLng(62.71990,-141.18705), '09/11/2010', 'http://www.goingoverland.com/2010/11/09/reversing-down-the-alaska-highway/', 174, 'Reversing down the Alaska Highway', 'publish');
  createMarker(new GLatLng(64.30963,-146.65125), '08/11/2010', 'http://www.goingoverland.com/2010/11/08/fairbanks-to-north-pole/', 175, 'Fairbanks to North Pole', 'publish');
  createMarker(new GLatLng(65.01958,-147.65921), '07/11/2010', 'http://www.goingoverland.com/2010/11/07/campsite-map-post/', 176, 'Private: Campsite map post', 'private');
  createMarker(new GLatLng(66.563835,-150.812244), '07/11/2010', 'http://www.goingoverland.com/2010/11/07/arctic-circle-celebration/', 177, 'Arctic Circle celebration', 'publish');
  createMarker(new GLatLng(65.873181,-149.724426), '07/11/2010', 'http://www.goingoverland.com/2010/11/07/yukon-river-map-post/', 178, 'Private: Yukon River map post', 'private');
  createMarker(new GLatLng(64.71881,-148.47447), '06/11/2010', 'http://www.goingoverland.com/2010/11/06/back-on-the-road-again-3/', 179, 'Back on the road again', 'publish');
  createMarker(new GLatLng(61.197102,-149.9026), '27/10/2010', 'http://www.goingoverland.com/2010/10/27/first-impressions-2/', 180, 'First Impressions (2)', 'publish');
  createMarker(new GLatLng(43.14056,131.89345), '18/10/2010', 'http://www.goingoverland.com/2010/10/18/sob-sob-sob/', 181, 'Sob Sob Sob', 'publish');
  createMarker(new GLatLng(43.088318,131.858339), '18/10/2010', 'http://www.goingoverland.com/2010/10/18/seeyou-hostel/', 182, 'SeeYou Hostel', 'publish');
  createMarker(new GLatLng(43.088318,131.858339), '18/10/2010', 'http://www.goingoverland.com/2010/10/18/seeyou-hostel-map-posting/', 183, 'Private: SeeYou Hostel &#8211; map posting', 'private');
  createMarker(new GLatLng(43.36091,132.07027), '17/10/2010', 'http://www.goingoverland.com/2010/10/17/weekend-in-the-forest/', 184, 'Weekend in the forest', 'publish');
  createMarker(new GLatLng(43.64329,132.27370), '15/10/2010', 'http://www.goingoverland.com/2010/10/15/snuffles/', 185, 'Snuffles', 'publish');
  createMarker(new GLatLng(43.114259,131.875699), '12/10/2010', 'http://www.goingoverland.com/2010/10/12/tarmacadum-reigns-all-the-way-to-vladivostok/', 186, 'Tarmacadum reigns all the way to Vladivostok', 'publish');
  createMarker(new GLatLng(43.36091,132.07027), '11/10/2010', 'http://www.goingoverland.com/2010/10/11/monday-11th-october-overnight-camp/', 187, 'Private: Monday 11th October &#8211; overnight camp', 'private');
  createMarker(new GLatLng(45.06707,133.47995), '11/10/2010', 'http://www.goingoverland.com/2010/10/11/monday-11th-october-route-update/', 188, 'Private: Monday 11th October &#8211; route update', 'private');
  createMarker(new GLatLng(46.63157,134.29239), '10/10/2010', 'http://www.goingoverland.com/2010/10/10/sunday-10th-october-overnight-stop/', 189, 'Private: Sunday 10th October &#8211; overnight stop', 'private');
  createMarker(new GLatLng(48.61543,135.51259), '10/10/2010', 'http://www.goingoverland.com/2010/10/10/saturday-9th-october-route-adjustment/', 190, 'Private: Sunday 10th October &#8211; route adjustment', 'private');
  createMarker(new GLatLng(48.90595,132.80573), '09/10/2010', 'http://www.goingoverland.com/2010/10/09/saturday-9th-october/', 191, 'Private: Saturday 9th October &#8211; overnight camp', 'private');
  createMarker(new GLatLng(48.98302,130.89134), '09/10/2010', 'http://www.goingoverland.com/2010/10/09/friday-8th-october-turn-in-road/', 192, 'Private: Saturday 9th October &#8211; turn in road', 'private');
  createMarker(new GLatLng(49.39359,130.23520), '09/10/2010', 'http://www.goingoverland.com/2010/10/09/friday-8th-october-route-update/', 193, 'Private: Saturday 9th October &#8211; route update', 'private');
  createMarker(new GLatLng(52.62907,126.87551), '08/10/2010', 'http://www.goingoverland.com/2010/10/08/friday-8th-october/', 194, 'Private: Friday 8th October &#8211; overnight camp', 'private');
  createMarker(new GLatLng(53.87203,124.21490), '08/10/2010', 'http://www.goingoverland.com/2010/10/08/thursday-7th-october-route-map/', 195, 'Private: Friday 8th October &#8211; route map', 'private');
  createMarker(new GLatLng(53.68026,119.70933), '07/10/2010', 'http://www.goingoverland.com/2010/10/07/thursday-7th-october/', 196, 'Private: Thursday 7th October &#8211; overnight camp', 'private');
  createMarker(new GLatLng(52.07935,113.32114), '28/09/2010', 'http://www.goingoverland.com/2010/09/28/updates-coming-soon/', 197, 'Updates Coming Soon !!!! (UPDATE &#8211; UPDATES DONE &#8211; PLEASE READ BELOW)', 'publish');
  createMarker(new GLatLng(51.36334,110.46187), '21/09/2010', 'http://www.goingoverland.com/2010/09/21/kindness-of-strangers-in-siberia/', 198, 'Kindness of strangers in Siberia', 'publish');
  createMarker(new GLatLng(51.32336,109.62329), '20/09/2010', 'http://www.goingoverland.com/2010/09/20/death-destruction/', 199, 'Death &#038; Destruction', 'publish');
  createMarker(new GLatLng(51.28296,106.52569), '16/09/2010', 'http://www.goingoverland.com/2010/09/16/limping-along-again/', 200, 'Limping along (again)', 'publish');
  createMarker(new GLatLng(51.44230,106.04056), '15/09/2010', 'http://www.goingoverland.com/2010/09/15/wonderment-disaster/', 201, 'Wonderment &#038; Disaster', 'publish');
  createMarker(new GLatLng(51.08818,106.39432), '14/09/2010', 'http://www.goingoverland.com/2010/09/14/a-day-at-the-border/', 202, 'A day at the border', 'publish');
  createMarker(new GLatLng(50.29946,106.48112), '13/09/2010', 'http://www.goingoverland.com/2010/09/13/windy-night-at-the-border/', 203, 'Windy night at the border', 'publish');
  createMarker(new GLatLng(49.40497,105.94378), '11/09/2010', 'http://www.goingoverland.com/2010/09/11/starry-starry-night/', 204, 'Starry, starry, night', 'publish');
  createMarker(new GLatLng(47.91154,106.98098), '30/08/2010', 'http://www.goingoverland.com/2010/08/30/reaching-the-city/', 205, 'Reaching the city', 'publish');
  createMarker(new GLatLng(47.72174,106.90471), '30/08/2010', 'http://www.goingoverland.com/2010/08/30/antipode-2/', 206, 'Private: Antipode (2)', 'private');
  createMarker(new GLatLng(46.96484,106.62834), '29/08/2010', 'http://www.goingoverland.com/2010/08/29/first-antipode/', 207, 'First Antipode', 'publish');
  createMarker(new GLatLng(45.893114,106.523265), '28/08/2010', 'http://www.goingoverland.com/2010/08/28/antipode/', 208, 'Private: Antipode (1)', 'private');
  createMarker(new GLatLng(45.15903,106.29976), '28/08/2010', 'http://www.goingoverland.com/2010/08/28/more-desert-conditions/', 209, 'More desert conditions', 'publish');
  createMarker(new GLatLng(43.65422,104.44373), '27/08/2010', 'http://www.goingoverland.com/2010/08/27/a-day-in-town/', 210, 'A day in town', 'publish');
  createMarker(new GLatLng(43.57617,104.34946), '26/08/2010', 'http://www.goingoverland.com/2010/08/26/vultures-gorge/', 211, 'Vulture&#8217;s Gorge', 'publish');
  createMarker(new GLatLng(43.49126,103.71733), '25/08/2010', 'http://www.goingoverland.com/2010/08/25/tug-of-the-land/', 212, 'Tug of the Land', 'publish');
  createMarker(new GLatLng(43.77783,102.34087), '24/08/2010', 'http://www.goingoverland.com/2010/08/24/tourist-ger-camp/', 213, 'Tourist ger camp', 'publish');
  createMarker(new GLatLng(43.24476,101.06139), '23/08/2010', 'http://www.goingoverland.com/2010/08/23/shouldve-made-a-cup-of-tea/', 214, 'Should&#8217;ve made a cup of tea', 'publish');
  createMarker(new GLatLng(43.95290,101.46285), '22/08/2010', 'http://www.goingoverland.com/2010/08/22/more-in-the-gobi/', 215, 'More in the Gobi', 'publish');
  createMarker(new GLatLng(46.38725,100.79725), '20/08/2010', 'http://www.goingoverland.com/2010/08/20/landy-to-the-rescue/', 216, 'Landy to the rescue', 'publish');
  createMarker(new GLatLng(47.19202,101.03807), '19/08/2010', 'http://www.goingoverland.com/2010/08/19/back-on-the-road-again-2/', 217, 'Back on the road again', 'publish');
  createMarker(new GLatLng(49.13262,99.84847), '18/08/2010', 'http://www.goingoverland.com/2010/08/18/it-shouldnt-be-this-cold/', 218, 'It shouldn&#8217;t be this cold', 'publish');
  createMarker(new GLatLng(48.74395,98.53706), '18/08/2010', 'http://www.goingoverland.com/2010/08/18/a-rainy-lazy-start/', 219, 'A rainy lazy start', 'publish');
  createMarker(new GLatLng(48.90984,97.10292), '18/08/2010', 'http://www.goingoverland.com/2010/08/18/a-disturbing-stumble-upon/', 220, 'A disturbing stumble upon', 'publish');
  createMarker(new GLatLng(49.07978,94.40027), '18/08/2010', 'http://www.goingoverland.com/2010/08/18/not-even-banks-take-visa-in-some-places/', 221, 'Not even banks take Visa in some places', 'publish');
  createMarker(new GLatLng(49.48654,92.42104), '18/08/2010', 'http://www.goingoverland.com/2010/08/18/technology-woes-turn-farcical/', 222, 'Technology woes turn farcical', 'publish');
  createMarker(new GLatLng(49.92286,92.04585), '18/08/2010', 'http://www.goingoverland.com/2010/08/18/in-the-city/', 223, 'In the city', 'publish');
  createMarker(new GLatLng(50.08500,91.90769), '18/08/2010', 'http://www.goingoverland.com/2010/08/18/more-scenery-more-people-and-more-yaks-cheese/', 224, 'More scenery, more people &#8211; and more yak&#8217;s cheese', 'publish');
  createMarker(new GLatLng(49.45510,90.23282), '18/08/2010', 'http://www.goingoverland.com/2010/08/18/eating-up-some-more-miles/', 225, 'Eating up some more miles', 'publish');
  createMarker(new GLatLng(49.45510,90.23282), '17/08/2010', 'http://www.goingoverland.com/2010/08/17/stuck-in-the-bog/', 226, 'Stuck in the bog', 'publish');
  createMarker(new GLatLng(49.58527,90.04330), '16/08/2010', 'http://www.goingoverland.com/2010/08/16/over-the-border-mongolia/', 227, 'Over the border &#8211; Mongolia', 'publish');
  createMarker(new GLatLng(49.73812,89.1806), '16/08/2010', 'http://www.goingoverland.com/2010/08/16/tanker-scene/', 228, 'Tanker scene', 'publish');
  createMarker(new GLatLng(50.40631,86.75405), '16/08/2010', 'http://www.goingoverland.com/2010/08/16/rain-rain-rain-and-some-geology/', 229, 'Rain, rain, rain &#8211; and some geology', 'publish');
  createMarker(new GLatLng(51.59248,85.59546), '16/08/2010', 'http://www.goingoverland.com/2010/08/16/interviews-water-and-an-amazing-shop/', 230, 'Interviews, water and an amazing shop', 'publish');
  createMarker(new GLatLng(52.42493,85.63810), '16/08/2010', 'http://www.goingoverland.com/2010/08/16/titov-and-an-abacus/', 231, 'Titov and an Abacus', 'publish');
  createMarker(new GLatLng(53.31133,84.20874), '29/07/2010', 'http://www.goingoverland.com/2010/07/29/the-mongol-ralliers-are-out/', 232, 'The Mongol Ralliers are out', 'publish');
  createMarker(new GLatLng(52.22247,82.16332), '29/07/2010', 'http://www.goingoverland.com/2010/07/29/back-in-russia-again/', 233, 'Back in Russia again', 'publish');
  createMarker(new GLatLng(50.89539,80.94528), '29/07/2010', 'http://www.goingoverland.com/2010/07/29/staying-in-one-place/', 234, 'Staying in one place', 'publish');
  createMarker(new GLatLng(50.19473,80.54981), '29/07/2010', 'http://www.goingoverland.com/2010/07/29/semey-at-last/', 235, 'Semey at last', 'publish');
  createMarker(new GLatLng(48.23190,80.45155), '29/07/2010', 'http://www.goingoverland.com/2010/07/29/still-heading-north/', 236, 'Still Heading North', 'publish');
  createMarker(new GLatLng(45.51881,80.10863), '29/07/2010', 'http://www.goingoverland.com/2010/07/29/heading-north/', 237, 'Heading North', 'publish');
  createMarker(new GLatLng(43.84468,77.03727), '29/07/2010', 'http://www.goingoverland.com/2010/07/29/back-on-the-road-again/', 238, 'Back on the road again', 'publish');
  createMarker(new GLatLng(43.84468,77.03727), '29/07/2010', 'http://www.goingoverland.com/2010/07/29/back-on-the-road-again/', 239, 'Back on the road again', 'publish');
  createMarker(new GLatLng(43.16783,76.87431), '13/07/2010', 'http://www.goingoverland.com/2010/07/13/razor-wire-more-kindness/', 240, 'Razor wire &#038; more kindness', 'publish');
  createMarker(new GLatLng(43.21210,76.70206), '12/07/2010', 'http://www.goingoverland.com/2010/07/12/toilets-and-more-interesting-people/', 241, 'Toilets and more interesting people', 'publish');
  createMarker(new GLatLng(42.98462,72.25253), '12/07/2010', 'http://www.goingoverland.com/2010/07/12/towing-a-mercedes/', 242, 'Towing a Mercedes', 'publish');
  createMarker(new GLatLng(42.52061,70.47493), '09/07/2010', 'http://www.goingoverland.com/2010/07/09/changing-scenery/', 243, 'Changing scenery', 'publish');
  createMarker(new GLatLng(42.52061,70.47493), '09/07/2010', 'http://www.goingoverland.com/2010/07/09/amazing-people/', 244, 'Amazing People', 'publish');
  createMarker(new GLatLng(44.7795,65.75486), '06/07/2010', 'http://www.goingoverland.com/2010/07/06/the-presidents-birthday/', 245, 'The President&#8217;s Birthday', 'publish');
  createMarker(new GLatLng(44.88649,65.16975), '06/07/2010', 'http://www.goingoverland.com/2010/07/06/mozzie-attack/', 246, 'Mozzie attack', 'publish');
  createMarker(new GLatLng(45.11461,64.20251), '05/07/2010', 'http://www.goingoverland.com/2010/07/05/independence-day/', 247, 'Independence Day', 'publish');
  createMarker(new GLatLng(45.67364,63.29213), '05/07/2010', 'http://www.goingoverland.com/2010/07/05/could-it-be-terminal/', 248, 'Could it be terminal?', 'publish');
  createMarker(new GLatLng(46.63644,61.79166), '05/07/2010', 'http://www.goingoverland.com/2010/07/05/ships-of-the-desert/', 249, 'Ships of the desert', 'publish');
  createMarker(new GLatLng(46.76829,61.72191), '05/07/2010', 'http://www.goingoverland.com/2010/07/05/desert-and-more-desert/', 250, 'Desert, and more desert', 'publish');
  createMarker(new GLatLng(48.62962,60.83986), '05/07/2010', 'http://www.goingoverland.com/2010/07/05/high-points/', 251, 'High points', 'publish');
  createMarker(new GLatLng(50.10833,57.33255), '05/07/2010', 'http://www.goingoverland.com/2010/07/05/back-to-the-lake/', 252, 'Back to the lake', 'publish');
  createMarker(new GLatLng(50.27525,57.23211), '05/07/2010', 'http://www.goingoverland.com/2010/07/05/amazing-kindness-in-aqtobe/', 253, 'Amazing kindness in Aqtobe', 'publish');
  createMarker(new GLatLng(50.10835,57.33241), '05/07/2010', 'http://www.goingoverland.com/2010/07/05/england-v-germany/', 254, 'England v Germany', 'publish');
  createMarker(new GLatLng(48.38084,55.11583), '05/07/2010', 'http://www.goingoverland.com/2010/07/05/hot-and-dusty/', 255, 'Hot and dusty', 'publish');
  createMarker(new GLatLng(47.35125,52.38007), '05/07/2010', 'http://www.goingoverland.com/2010/07/05/trying-to-post-a-letter-from-kazakhstan/', 256, 'Trying to post a letter from Kazakhstan', 'publish');
  createMarker(new GLatLng(46.69284,49.51898), '05/07/2010', 'http://www.goingoverland.com/2010/07/05/border-into-kazakhstan/', 257, 'Border into Kazakhstan', 'publish');
  createMarker(new GLatLng(46.26493,47.84328), '05/07/2010', 'http://www.goingoverland.com/2010/07/05/more-western-russia-near-astrakhan/', 258, 'More Western Russia &#8211; near Astrakhan', 'publish');
  createMarker(new GLatLng(45.5932,42.78646), '05/07/2010', 'http://www.goingoverland.com/2010/07/05/keeping-the-map-up-to-date-on-the-road-again/', 259, 'Keeping the map up to date &#8211; on the road again', 'publish');
  createMarker(new GLatLng(45.03804,41.95545), '22/06/2010', 'http://www.goingoverland.com/2010/06/22/1199/', 260, 'Hotel stop in Stavropol', 'publish');
  createMarker(new GLatLng(46.80971,38.55507), '22/06/2010', 'http://www.goingoverland.com/2010/06/22/entering-russia/', 261, 'Entering Russia', 'publish');
  createMarker(new GLatLng(47.80965,38.43042), '22/06/2010', 'http://www.goingoverland.com/2010/06/22/motorways-ukraine-style/', 262, 'Motorways Ukraine style', 'publish');
  createMarker(new GLatLng(48.38708,33.79354), '22/06/2010', 'http://www.goingoverland.com/2010/06/22/kindness-of-strangers/', 263, 'Kindness of strangers', 'publish');
  createMarker(new GLatLng(49.25435,28.25236), '22/06/2010', 'http://www.goingoverland.com/2010/06/22/introduction-to-ukraine/', 264, 'Introduction to Ukraine', 'publish');
  createMarker(new GLatLng(49.99082,23.39758), '22/06/2010', 'http://www.goingoverland.com/2010/06/22/border-crossing-into-ukraine/', 265, 'Border crossing into Ukraine', 'publish');
  createMarker(new GLatLng(50.061233,22.48345), '22/06/2010', 'http://www.goingoverland.com/2010/06/22/pauls-first-birthday-on-the-road/', 266, 'Paul&#8217;s first birthday on the road', 'publish');
  createMarker(new GLatLng(49.968617,20.30705), '15/06/2010', 'http://www.goingoverland.com/2010/06/15/visiting-auschwitz/', 267, 'Visiting Auschwitz', 'publish');
  createMarker(new GLatLng(50.026967,19.20075), '12/06/2010', 'http://www.goingoverland.com/2010/06/12/poland-day-2/', 268, 'Poland Day 2', 'publish');
  createMarker(new GLatLng(51.143767,16.247333), '12/06/2010', 'http://www.goingoverland.com/2010/06/12/poland-day-1/', 269, 'Poland Day 1', 'publish');
  createMarker(new GLatLng(50.839783,12.5091), '12/06/2010', 'http://www.goingoverland.com/2010/06/12/pushing-on/', 270, 'Pushing on', 'publish');
  createMarker(new GLatLng(50.382383,8.000733), '12/06/2010', 'http://www.goingoverland.com/2010/06/12/onward-into-germany/', 271, 'Onward into Germany', 'publish');
  createMarker(new GLatLng(50.803412,4.626516), '12/06/2010', 'http://www.goingoverland.com/2010/06/12/were-off/', 272, 'We&#8217;re off!!', 'publish');
  createMarker(new GLatLng(51.3720,1.4465), '07/05/2010', 'http://www.goingoverland.com/2010/05/07/visas-and-volcanoes-or-revised-departure-date/', 273, 'Visas and Volcanoes = revised departure date', 'publish');
  createMarker(new GLatLng(51.203771,0.391645), '04/05/2010', 'http://www.goingoverland.com/2010/05/04/weekend-magic/', 274, 'Weekend Magic', 'publish');
  createMarker(new GLatLng(51.3726,1.4467), '25/04/2010', 'http://www.goingoverland.com/2010/04/25/official-launch-imminent/', 275, 'Official Launch imminent', 'publish');
  createMarker(new GLatLng(51.752327,-1.256733), '22/04/2010', 'http://www.goingoverland.com/2010/04/22/hospitality-welcomed-2/', 276, 'Hospitality welcomed 2', 'publish');
  createMarker(new GLatLng(53.194002,-1.378613), '22/04/2010', 'http://www.goingoverland.com/2010/04/22/hospitality-welcomed-1/', 277, 'Hospitality welcomed 1', 'publish');
  createMarker(new GLatLng(53.620215,-2.585381), '22/04/2010', 'http://www.goingoverland.com/2010/04/22/rothwells-farm/', 278, 'Rothwell&#8217;s Farm', 'publish');
  createMarker(new GLatLng(51.514563,-2.159943), '19/04/2010', 'http://www.goingoverland.com/2010/04/19/motorway-madness/', 279, 'Motorway Madness', 'publish');
  createMarker(new GLatLng(51.388334,1.417751), '01/04/2010', 'http://www.goingoverland.com/2010/04/01/easter-break/', 280, 'Easter Break?', 'publish');
  createMarker(new GLatLng(53.663443,-1.43142), '29/03/2010', 'http://www.goingoverland.com/2010/03/29/squelch-squelch/', 281, 'Squelch Squelch', 'publish');
  createMarker(new GLatLng(53.000407,-1.607169), '27/03/2010', 'http://www.goingoverland.com/2010/03/27/a-weekend-break/', 282, 'A weekend break', 'publish');
  createMarker(new GLatLng(53.659136050514114,-1.3913154602050781), '22/03/2010', 'http://www.goingoverland.com/2010/03/22/shakedown-squelch/', 283, 'Shakedown Squelch', 'publish');
  createMarker(new GLatLng(54.561152,-1.210449), '16/03/2010', 'http://www.goingoverland.com/2010/03/16/back-to-school/', 284, 'Back to school', 'publish');
  createMarker(new GLatLng(51.1817,-1.2609), '13/03/2010', 'http://www.goingoverland.com/2010/03/13/when-the-world-comes-together/', 285, 'When the world comes together', 'publish');
  createMarker(new GLatLng(51.3724,1.4469), '01/11/2009', 'http://www.goingoverland.com/2009/11/01/more-sorting-out/', 286, 'More sorting out', 'publish');
  polyline = polylineEncoder.dpEncodeToGPolyline(progressPoints);
  map.addOverlay(polyline);	
}  

function createMarker(point, date, blogurl, num, blogtitle, is_blog) {
      var html = '<span style="color:black;">Date: ' + date + '<br />Lat/Long: ' + point;
  if (is_blog == 'publish') {
	    html += '<br />Read: <a href="' + blogurl + '">'+blogtitle+'</a></span>';
      var marker = new GMarker(point, {icon: icon});			
			} else {
      var marker = new GMarker(point, {icon: icon});			
			}			
      GEvent.addListener(marker, 'click', function() {marker.openInfoWindowHtml(html);});			
      map.addOverlay(marker);
			progressPoints[num] = point; 			
    }
     
function drawRoute() {
//do nothing
}		
var infoIcon = new GIcon(G_DEFAULT_ICON, "fix.png"); 



