How can I load data on a page based on this being added into the URL #a=1380369&i=23007472
<p>On a php page with javascript (jquery) in the urel I would like to have something like this<br>
idex.php?var=something*<em>#a=1380369&amp;i=23007472</em>*  </p>

<p>The page will load photos and have a next and previous link, when this is clicked on it will use ajax to load the new image into the page but I need to also change the URL to add someting like this to the end of it <strong>#a=1380369&amp;i=23007472</strong> and then everytime a new photo is loaded it will change the URL value.  If a user were to copy and paste the URL of an image page the page needs to use the <strong>#a=1380369&amp;i=23007472</strong> values to load the correct image on that page.  </p>

<p>The result I am trying to get is it will act like a regualr galler, you can use ajax to load new photo page but it will not be an actual redirect to a new page load, ajax will just pull what it needs.  The part I need to know is how to access the <strong>#a=1380369&amp;i=23007472</strong> url data and load the appropriate stuff based on it.</p>
