Stuck up with cache issue

Hi
I recently intiated in a project
where the user will be scrolling through a slide show and when they click a particular image they will be taken to another frame where they will be able to view the details of the product in the right and in left a 360 degree view of the product will be displayed
and the user can view all the products by clicking next and previous button on top
everything works perfect for me but
i am having a big issue with the 360 degree rotation
where when the user enters the first product the he will be able to view the its corresponding product and its details, but when they when they click the next or previous button
the details of the product changes but the same product remains there ie the product one remains there it does not change to its corresponding product view

each time the user has been forced to reload the page to view the corresponding product

I have displayed below the xml code
It will be very much helpful if some can sort this out

xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;

xmlData.load(“racer/showcase.xml”);

previous.onRelease = function ()

{

prevImg();

};

next.onRelease = function ()
{
nextImg();

};