anchor.diff:  
   <h1><%= @track.name %></h1>
   
  +<label><input type="checkbox" id="autorefresh" onchange="setAutoRefresh(this.checked)" />AutoRefresh</label>
   <div style="width:640px; height:480px" id="map"></div>
   
   <% if @track.user_id == current_user.id %>
  
positive.code: <script src="http://www.openstreetmap.org/openlayers/OpenStreetMap.js"></script>
  
  <script type="text/javascript">
  //Copied from http://wiki.openstreetmap.org/w/index.php?title=Openlayers_Track_example&oldid=859386
  		// Start position for the map (hardcoded here for simplicity,
  		// but maybe you want to get this from the URL params)
  		<% if @track.coordinates.size > 0 %>
  		var lat=<%= @track.coordinates.last.latitude %>
  		var lon=<%= @track.coordinates.last.longitude %>
  		<% else %>
  		var lat=0
  		var lon=0
  		<% end %>
  		var zoom=15
   
  		var map; //complex object of type OpenLayers.Map
   
  		function init() {
  			map = new OpenLayers.Map ("map", {
  				controls:[
  
negative.code: 				projection: new OpenLayers.Projection("EPSG:900913"),
  				displayProjection: new OpenLayers.Projection("EPSG:4326")
  			} );
  
  			refreshStrategy = new OpenLayers.Strategy.Refresh({interval: 2000, force: true});
  
  			// Define the map layer
  			layerMapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik");
  			map.addLayer(layerMapnik);
  			layerCycleMap = new OpenLayers.Layer.OSM.CycleMap("CycleMap");
  			map.addLayer(layerCycleMap);
  			layerMarkers = new OpenLayers.Layer.Markers("Current position");
  			map.addLayer(layerMarkers);
  
  			// Add the Layer with the GPX Track
  			var lgpx = new OpenLayers.Layer.Vector("<%= @track.name %>", {
  				strategies: [
  					new OpenLayers.Strategy.Fixed(),
  					refreshStrategy],
  				protocol: new OpenLayers.Protocol.HTTP({
  					url: "<%= @track.id %>.xml",
  					format: new OpenLayers.Format.GPX()
  