
      
//Edit these variables
var thumbs = 3; //Number of thumbnail pics
var pic_dir = "/images/"; //Directory of the full pics
var pic_ext = ".jpg"; //Extension of the full pics
var place_hold = "clear.jpg";
var thumb_dir = "/images/"; //Directory of thumbnail pics
var thumb_ext = "_th.jpg"; //Etension of the thumbnail pics

//Don't edit below this unless
//you know what's up!
var thumb_img = new Array();
var full_imgtxt = new Array();
function Load_All() {
	for ( i = 0; i < sld_imgs.length; i++ ) {
		thumb_img[ i ] = new Image();
		thumb_img[ i ].src = thumb_dir + sld_imgs[ i ] + thumb_ext;
		full_imgtxt[ i ] = pic_dir + sld_imgs[ i ] + pic_ext;}}
var pos = 0;
function Scroll_Thumb ( way ) {
	if ( way == "next" ) pos += thumbs;
	if ( pos >= sld_imgs.length ) pos -= thumbs;
	if ( way == "prev" ) pos -= thumbs;
	if ( pos < 0 ) pos = 0;
	for ( i = 0; i < thumbs; i++ ) {
		var x = "thumb" + i;
		var y = pos + i;
		if ( thumb_img[ y ] != null ) {
			document.getElementById( x ).src = thumb_img[ y ].src;
		} else {
			document.getElementById( x ).src = thumb_dir + place_hold;}}}
function GotoFrame( num ) {
	if ( num + pos < sld_imgs.length ) {
		document.getElementById( "picture" ).src = full_imgtxt[ num + pos ];}}
