

/* Comments for you script source lovers
* You don't actually have to place the <script> tag within the div. If you prefer it going into the <head> 
section of your site or page, that's no problem either. <div id="travellerspoint_membermap_badge"></div> 
should then be put whereever you want to show the badge on the page.
* Contents within the <div id="travellerspoint_membermap_badge"></div> are replaced by the script when it loads. 
We recommend a placeholder image for while the script is loading and in case something goes wrong in the load. 
The image size depends on what size badge you selected for your site, but by default is 400px.
* Special thanks to Stuart Langridge for the javascript code to load the badge! 
*/

// Run script after page is loaded but before images - http://www.kryogenix.org/days/2007/09/26/shortloaded
(function(i) {var u =navigator.userAgent;var e=/*@cc_on!@*/false; var st =
setTimeout;if(/webkit/i.test(u)){st(function(){var dr=document.readyState;
if(dr=="loaded"||dr=="complete"){i()}else{st(arguments.callee,10);}},10);}
else if((/mozilla/i.test(u)&&!/(compati)/.test(u)) || (/opera/i.test(u))){
document.addEventListener("DOMContentLoaded",i,false); } else if(e){     (
function(){var t=document.createElement('doc:rdy');try{t.doScroll('left');
i();t=null;}catch(e){st(arguments.callee,0);}})();}else{window.onload=i;}})(function() {

// Load the stylesheet into the HEAD tag.
var s=document.createElement('style');document.getElementsByTagName('head')[0].appendChild(s);
var css = "#travellerspoint_membermap_badge {border:1px solid #ccc;padding:5px;width:400px;font:11px \'Lucida Grande\',Verdana,sans-serif;}#travellerspoint_membermap_badge p{margin:0 0 7px;}#travellerspoint_membermap_badge .member_thumbs {padding:3px;background-color:#fff;border:1px solid #ddd;-moz-border-radius:3px;margin:0;}#travellerspoint_membermap_badge .tp_plug {font-size:90%;line-height:30px;text-align:right;margin:0;}#travellerspoint_membermap_badge p.tp_plug {background:#fff url(http://www.travellerspoint.com/badges/badge_branding.gif) no-repeat right bottom;font-size:9px;text-align:right;padding:14px 5px 6px 30px;margin:-5px;line-height:30px;height:26px;display:block;}";
  if(!!window.ActiveXObject) { // ie.
      document.styleSheets[document.styleSheets.length-1].cssText = css;
  } else {
      stylenode = document.createTextNode(css);
      s.appendChild(stylenode);
  }
  
badge = document.getElementById('travellerspoint_membermap_badge');
if (badge) badge.innerHTML = "<h2>My Latest Trip</h2><iframe src=\"http://www.travellerspoint.com/badges/badge_maps_iframe.cfm?user=4&trip=204803&width=400&height=200&z=1&initialz=1\" width=\"400px\" height=\"200px\" frameborder=\"0\" scrolling=\"off\" marginwidth=\"0\" marginheight=\"0\"></iframe>\n\t\t\t    \n\t\t\t    <h3><a href=\"http://www.travellerspoint.com/member_map.cfm?itinid=204803&amp;tripid=204803\" title=\"See this trip on the world map.\">Test trip</a></h3>\n\t\t\t    <p>26 Nov 2009 - 27 Nov 2009</p>\n\t\t\t    \n\t\t\t    \n\t\t\t        <p class=\"notes\">Visiting: Germany.</p>\n\t\t\t    <p class=\"link_for_more\"><a href=\"http://www.travellerspoint.com/member_map.cfm?user=Sam%20I%20Am\">All Trips by Sam I Am</a></p><p class=\"tp_plug\"><a href=\"http://www.travellerspoint.com/travel-maps.cfm\">Trips</a> by <a href=\"http://www.travellerspoint.com/\" id=\"tp_logo\">Travellerspoint</a></p>";
});
