This may be difficult to deal with because it looks like you are using one or more server side includes to set this page up. However, the order of the scripts and styles needs to be changed, and extra markup that doesn't belong needs to be removed. The includes will need to be changed to achieve that. You may have to split one or more (I really cannot tell how many includes there are) includes into two or more to get the code to end up in the correct places. You may perhaps even need to rethink how and what you are including when and where.
You also need to ditch:
Code:
<script type="text/javascript" src="http://www.southsunbeads.com/website/slideshow/jquery-1.2.6.pack.js"></script>
and modify the simplegallery.js file. I will attach a demo .zip file. In it will be a workable page, with the scripts and styles ordered as they need to be, the one script that needs to be ditched removed. It also contains the modified version of the simplegallery.js file:
Attachment 3470
Bookmarks