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: 				projection: new OpenLayers.Projection("EPSG:900913"),
  				displayProjection: new OpenLayers.Projection("EPSG:4326")
  			} );
   
  			// Define the map layer
  			// Here we use a predefined layer that will be kept up to date with URL changes
  			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("Markers");
  			map.addLayer(layerMarkers);
   
  			// Add the Layer with the GPX Track
  			var lgpx = new OpenLayers.Layer.Vector("<%= @track.name %>", {
  				strategies: [new OpenLayers.Strategy.Fixed()],
  				protocol: new OpenLayers.Protocol.HTTP({
  					url: "<%= @track.id %>.xml",
  					format: new OpenLayers.Format.GPX()
  
negative.code: 				projection: new OpenLayers.Projection("EPSG:4326")
  			});
  			map.addLayer(lgpx);
  			lgpx.events.register("featureadded", lgpx, function(f) {
  				var components = f.feature.geometry.components;
  				map.setCenter(components[components.length - 1].getBounds().getCenterLonLat(), zoom);
  			});
  		}
  
  		function setAutoRefresh(val) {
  			if (val)
  				refreshStrategy.activate();
  			else
  				refreshStrategy.deactivate();
  		}
  
  		init();
  		setAutoRefresh($("#autorefresh").is(":checked"));
  </script>
  