title: How not to have browser history linked with image clicks using Ad Gallery
body: <p>I'm working on a site for car classifieds. I searched for an image gallery to display images that users upload for their submissions and found a simple jQuery based gallery called Ad Gallery, which can be found <a href="http://coffeescripter.com/code/ad-gallery/" rel="nofollow">here</a>.</p>
  
  <p>I love the simplicity of the gallery and how compatible it is with most browsers including older IE versions. I also love being able to browse images using right and left arrow keys. Also a nice feature is how it automatically scales wide and tall images to fit the container. These are key features for me. </p>
  
  <p>Here is the problem: clicking each thumbnail, or hitting the arrow key to browse images, counts as a new URL and makes the browser save it in the history. So when the user wants to go back to the main page with submissions, they have to cycle through all the images in a reverse order of how they browsed them. This is a huge inconvenience, especially if they are trying to go back to their search results. I cannot find anything that fixes this in the documentation of the plugin. How can I avoid this problem?</p>