anchor.diff:  	e.preventDefault();
   });
   
  +<% end %>
   
   //$(function() {
   // var currentId;
  
positive.code: 	e.preventDefault();
  });
  
  $("#image_view_nav a.prev").live("click", function(e) {
  	var current = $("#image_view li.visible");
  	var previous = current.prev();
  	
  
negative.code: $("#image_view li:first").show();
  $("#image_view li:first").addClass("visible");
  
  <% if @images.length > 1 %>
  
  $("#image_view_nav a.next").click(function(e) {
  	var current = $("#image_view li.visible");
  	var next = current.next();
  	
  