See the link below. The PHP is fine, but if you start clicking through thumbnails you can see that the page's functionality is suffering big time. The page must reload to pass the PHP variables. Take a look at the URL's and the links...is there any way to get this done without reloading the page? Is there any way to do it using only collection.php (i.e. not creating a new page and having to fit everything in)?
I'm sorry, I'm a PHP person, I have no starting point here with AJAX. I understand if you're not willing to help.