   // Slide show
   // (c) Kat's Meow Design
   // www.katsmeowdesign.com

   Browser_Name = navigator.appName;
   Browser_Ver  = parseInt(navigator.appVersion);
   if((Browser_Name == "Netscape" && Browser_Ver >= 3) || (Browser_Name == "Microsoft Internet Explorer" && Browser_Ver >= 4)) Browser_Gen = ">=3rd";
   else Browser_Gen = "<3rd";

   if (Browser_Gen == '>=3rd') {

   var gal_num = 0;
   var counter = 0;
   var file_format = "";

   num_of_slides = 0;    // Declare the number of slides in your show
   slide_num = 1;        // Which slide loads ups first

   // Description of each slide
   desc1 = "First Slide - the number one, with a RED Background";
   desc2 = "Second Slide - the number two, with a ORANGE Background";
   desc3 = "Third Slide - the number three, with a GREEN Background";
   desc4 = "Fourth Slide - the number four, with a BLUE Background";
   desc5 = "Fifth Slide - the number five, with a PURPLE Background";
   }

   //  These functions alter the slide_num accordingly
   function firstslide(){
     slide_num = 1;
     changeslide();
   }
   function prevslide(){
     slide_num = slide_num - 1;
     if(slide_num < 1){
       slide_num = num_of_slides;
     }
     changeslide();
   }
   function nextslide(){
     slide_num = slide_num + 1;
     if(slide_num > num_of_slides){
       slide_num = 1
     }
     changeslide();
   }
   function lastslide(){
     slide_num = 5;
     changeslide();
   }

   function findgallery() {

	num_of_slides = eval('document.getElementById("slidecount").innerHTML');
	file_format = eval('document.getElementById("fileformat").innerHTML');
	gal_num = eval('document.getElementById("galnum").innerHTML');


	if (num_of_slides > 0 && gal_num > 0 && file_format) {
	  changeslide();
	}
   }


   //  This function changes the slide and the description box according to the slide_num
   function changeslide(){

     //  Changes the slide
     eval('document.picbox.src = "files/uplink/gallery' + gal_num + 'pic' + slide_num + '.' + file_format + '"');

     //  Changes the description box
//     eval('document.descform.descbox.value = "Slide ' + slide_num + ': ' + eval('desc' + slide_num) + '"');
     pic_text = eval('document.getElementById("pic' + slide_num + 'text").innerHTML');
     eval('document.getElementById("pictext").innerHTML = pic_text'); //"Slide ' + slide_num + ': ' + eval('desc' + slide_num) + '"');

     setTimeout("nextslide()", 4200);
   }
   // end hiding contents -->