<!-- Hide script from old browsers
//hey this is easy - just populate this array with
//the pictures you want in this slide show.
var dolPix = new Array(
	"slides/thumbs/s001.jpg",
	"slides/thumbs/s002.jpg",
	"slides/thumbs/s003.jpg",
	"slides/thumbs/s004.jpg",
	"slides/thumbs/s005.jpg",
	"slides/thumbs/s006.jpg",
	"slides/thumbs/s007.jpg",
	"slides/thumbs/s008.jpg",
	"slides/thumbs/s009.jpg",
	"slides/thumbs/s010.jpg",
	"slides/thumbs/s011.jpg",
	"slides/thumbs/s012.jpg",
	"slides/thumbs/s013.jpg",
	"slides/thumbs/s014.jpg",
	"slides/thumbs/s015.jpg",
	"slides/thumbs/s016.jpg",
	"slides/thumbs/s017.jpg",
	"slides/thumbs/s018.jpg",
	"slides/thumbs/s019.jpg",
	"slides/thumbs/s020.jpg",
	"slides/thumbs/s021.jpg",
	"slides/thumbs/s022.jpg",
	"slides/thumbs/s023.jpg",
	"slides/thumbs/s024.jpg",
	"slides/thumbs/s025.jpg",
	"slides/thumbs/s026.jpg",
	"slides/thumbs/s027.jpg",
	"slides/thumbs/s028.jpg",
	"slides/thumbs/s029.jpg",
	"slides/thumbs/s030.jpg",
	"slides/thumbs/s031.jpg"	
);
/* above is the array that holds our images, it is indexed from 0 to 
   (number of elements - 1) */
var thisPic = 0;  //the counter for the image array
var lastPic = 30;  //the last cell in our array = (number of pictures - 1)
	
var dolCap = new Array(
	"Comment 1",

	"Comment 2",
	
	"Comment 3",
	
	"Comment 4",
	
	"Comment 5",
	
	"Comment 6",
	
	"Comment 7",
	
	"Comment 8", 
	
	"Comment 9",
	
	"Comment 10",
	
	"Comment 11 ",
	
	"Comment 12", 
	
	"Comment 13", 
	
	"Comment 14",
	 
	"Comment 15",
	 
	"Comment 16",
	 
	"Comment 17",
	 
	"Comment 18",
	 	 
	"Comment 19",
	
	"Comment 20",
	
	"Comment 21",
	
	"Comment 22",
	
	"Comment 23",
	
	"Comment 24",
	
	"Comment 25",
	
	"Comment 26",
	
	"Comment 27",
	
	"Comment 28",
	
	"Comment 29",
	
	"Comment 30",
	
	"Comment 31"
	
);
	
var do2Cap = new Array(
	"Artist: Joseph Alert / Title: Picture with all",
	"Artist: Joseph Alert / Title: 2",
	"Artist: Joseph Alert / Title: 3",
	"Artist: Joseph Alert / Title: 4",
	"Artist: Joseph Alert / Title: 5",
	"Artist: Joseph Alert / Title: 6",
	"Artist: Joseph Alert / Title: 7",
	"Artist: Joseph Alert / Title: 8",
	"Artist: Joseph Alert / Title: 9",
	"Artist: Joseph Alert / Title: 10",
	"Artist: Joseph Alert / Title: 11",
	"Artist: Joseph Alert / Title: 12",
	"Artist: Joseph Alert / Title: 13",
	"Artist: Joseph Alert / Title: 14",
	"Artist: Joseph Alert / Title: 15",
	"Artist: Joseph Alert / Title: 16",
	"Artist: Joseph Alert / Title: 17",
	"Artist: Joseph Alert / Title: 18",
	"Artist: Joseph Alert / Title: 19",
	"Artist: Joseph Alert / Title: 20",
	"Artist: Joseph Alert / Title: 21",
	"Artist: Joseph Alert / Title: 22",
	"Artist: Joseph Alert / Title: 23",
	"Artist: Joseph Alert / Title: 24",
	"Artist: Joseph Alert / Title: 25",
	"Artist: Joseph Alert / Title: 26",
	"Artist: Joseph Alert / Title: 27",
	"Artist: Joseph Alert / Title: 28",
	"Artist: Joseph Alert / Title: 29",
	"Artist: Joseph Alert / Title: 30",
	"Artist: Joseph Alert / Title: 31"
);	
var thisCap = 0;  //the counter for the caption array
var lastCap = 30;  //the last cell in our array = (number of captions - 1)

function processPrevious() {
        if (document.images) {
                if (thisPic==0) //if at the very beginning of array
                 {
                    thisPic=lastPic; //goto the last cell in the array
                    thisCap=lastCap; //goto the last cell in the array
                 }
                 else 
                 {
                    thisPic--; //else simply decrement the counter                    
                    thisCap--; //else simply decrement the counter                    
                 }
                  document.myPicture.src=dolPix[thisPic];
                  document.capform.caption.value=dolCap[thisCap];
				  document.capform2.caption2.value=do2Cap[thisCap];
        }
}
function processNext() {
        if (document.images) {
                if (thisPic==lastPic) //if at the very end of the array
                 {
                    thisPic=0; //goto the first cell of the array
                    thisCap=0; //goto the first cell of the array
                 }
                 else 
                 {
                    thisPic++; //else simply increment the counter
                    thisCap++; //else simply increment the counter
                 }
                document.myPicture.src=dolPix[thisPic];
                document.capform.caption.value=dolCap[thisCap];
				document.capform2.caption2.value=do2Cap[thisCap];
        }
}

//End hiding script from old browsers -->

//script for button rollover starts here -->

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//END script for button rollover 