Topic: Loading next gallery in same simpleviewer.

Hi, I would like to know how to add functionality to the prasing of the XML to load a previous/next gallery in the same simpleviewer:

<image>
    <filename>lastphoto.jpg</filename>
</image>
<gallery>
    <prev>gallery1.xml</prev>
    <next>gallery3.xml</next>
</gallery>

Like the above, so when the user clicks on the prev/next buttons, simpleviewer will load it accordingly if the data is present.

Would appreciate any help, thanks!