
var init = function () {
      //console.log("This is my init call");
      // We pretty much have to take care of everything here.
      map_div = dojo.byId('map');
      app_call = "/fe_maps/loc.json";
      link = '<a href=\"http://brightkite.com/people/afterfate\">';
      dojo.xhrGet( 
         {
            url : app_call,
            handleAs: "json",
            load: function(data, args ) { 
               //console.dir(data);
               //console.log("my url is: ",data.image.url);
               if ( data.error ) 
               {
                  map_div.innerHTML="<h5>"+data.error.short+"</h5>";
               } else {
                  img_url = data.map_url;
                  width = data.width;
                  height = data.height;
                  map_div.innerHTML=link + '<img src=\"' + img_url + '\" width=\"' + width + '\" height=\"' + height + '\" border=\"0\"/></a>';
               }
            }

         }
         );
   }

//dojo.addOnLoad(init);

