<!--

// SETTINGS:

//  - numSlides:   total number of slides in the show

//  - timeBetween: time between slides in msec

//  - loop:        true = will loop indefinitely

//                 false = will only go through the show once



numSlides      = 12;

timeBetween    = 6000;

loop           = true;



if (document.images) {

   nextSlide      = new Image(150,150);

   nextSlide.src  = "Slide0.jpg";



   nextSlide1      = new Image(150,150);

   nextSlide1.src  = "Slide3.jpg";

   

   nextSlide2      = new Image(150,150);

   nextSlide2.src  = "Slide6.jpg";

}



counter = 0;

ctr2 = 3;

ctr3 = 6;

stopped = false;

var timeoutID;



function SwapSlide() {

   stopped == false;

   if (document.images) {

      document['slideIMG'].src = nextSlide.src;

      counter++;

      if (counter == numSlides) {

         counter = 0;

         if (loop == false) {

            stopped = true;

         }

      }

      nextSlide.src = "Slide" + counter + ".jpg";

      timeoutID = setTimeout('SwapSlide()', timeBetween);

   }

}



function SwapSlide1() {

   stopped == false;

   if (document.images) {

      document['slideIMG1'].src = nextSlide1.src;

      ctr2++;

      if (ctr2 == numSlides + 3) {

         ctr2 = 3;

         if (loop == false) {

            stopped = true;

         }

      }

      nextSlide1.src = "Slide" + ctr2 + ".jpg";

      timeoutID = setTimeout('SwapSlide1()', timeBetween);

   }

}



function SwapSlide2() {

   stopped == false;

   if (document.images) {

      document['slideIMG2'].src = nextSlide2.src;

      ctr3++;

      if (ctr3 == numSlides + 6) {

         ctr3 = 6;

         if (loop == false) {

            stopped = true;

         }

      }

      nextSlide2.src = "Slide" + ctr3 + ".jpg";

      timeoutID = setTimeout('SwapSlide2()', timeBetween);

   }

}



function StopShow() {

   stopped = true;

   clearTimeout(timeoutID);

}



function StartShow() {

   if (stopped == true) {

      stopped = false;

      SwapSlide();

	  SwapSlide1();

	  SwapSlide2();

   }

}



function GetDate() {

months = new Array();

months[1] = "January";  months[7] = "July";

months[2] = "February"; months[8] = "August";

months[3] = "March";    months[9] = "September";

months[4] = "April";    months[10] = "October";

months[5] = "May";      months[11] = "November";

months[6] = "June";     months[12] = "December";



months2 = new Array();

months2[1] = "Jan"; months2[7] = "Jul";

months2[2] = "Feb"; months2[8] = "Aug";

months2[3] = "Mar"; months2[9] = "Sep";

months2[4] = "Apr"; months2[10] = "Oct";

months2[5] = "May"; months2[11] = "Nov";

months2[6] = "Jun"; months2[12] = "Dec";



days = new Array();

days[1] = "Sunday";    days[5] = "Thursday";

days[2] = "Monday";    days[6] = "Friday";

days[3] = "Tuesday";   days[7] = "Saturday";

days[4] = "Wednesday";



days2 = new Array();

days2[1] = "Sun"; days2[5] = "Thu";

days2[2] = "Mon"; days2[6] = "Fri";

days2[3] = "Tue"; days2[7] = "Sat";

days2[4] = "Wed";



todaysdate = new Date();

date  = todaysdate.getDate();

day  = todaysdate.getDay() + 1;

month = todaysdate.getMonth() + 1;

yy = todaysdate.getYear();

year = (yy < 1000) ? yy + 1900 : yy;

year2 = 2000 - year; year2 = (year2 < 10) ? "0" + year2 : year2;



document.write(days2[day] + " " + months2[month] + " " + date + ", " + year);



}



function playSound() {

   document.firstSound.play();

}



function pauseSound() {

   document.firstSound.pause();

}



function stopSound() {

   document.firstSound.stop();

}



function volup() {

   currentVolume = document.firstSound.GetVolume();

   newVolume = (currentVolume + 10);



   if (document.firstSound.GetVolume() == 100) {

      alert("Volume is already at maximum");

   }



   if (newVolume < 90) {

      document.firstSound.setvol(newVolume);

   }

   else

   {

      if ((newVolume <= 100) && (newVolume > 90)) {

         document.firstSound.setvol(100);

      }

   }

}



function voldown() {

   currentVolume = document.firstSound.GetVolume();

   newVolume = (currentVolume - 10);



   if (document.firstSound.GetVolume() == 0) {

      alert("Volume is already at minimum");

   }



   if (newVolume > 10) {

      document.firstSound.setvol(newVolume);

   }

   else {

      if ((newVolume >= 0) && (newVolume < 10)) {

         document.firstSound.setvol(0);

      }

   }

}





