  var theInterval;
  var theIntervalID = 0;
  var slideShowIsRunning = false;
  var slideCount = 1;
  var picArray = new Array();
  var CurrentPic = 0;
  var imgPath = "images/";        //"http://www.chellesphotos.com/images/";
  var anIEBrowser = "";
  var filePre = "";
  var imgName = "";
  var theElt = 0;
  var picNum = 0;
  var theImg;
  var theMural1;
  var theMural2;
  var theMural3;
  var theMural4;
  var usrAgnt = navigator.userAgent;
  var StartPos = usrAgnt.indexOf("MSIE");
  var checkVer = usrAgnt.substring((StartPos + 5), usrAgnt.indexOf(".", StartPos));

  if (checkVer >= "4") {
  anIEBrowser = "Yes";
  }
  else {
   anIEBrowser = "No";
  }

  if (anIEBrowser == "Yes") {
    document.writeln('<style type="text/css">img {filter:blendTrans(duration=1)}</style>');
  }


//--------------------------------------------------------------------------------------//

  function slideshowSetup()  {
    picArray = new Array();
 
    //document.image_area.src = "images/information/magnoliacourthouse.jpg";     
    theMural1 = new Image();
    theMural1.src = "images/magnoliacourthouse.jpg";
    picArray[0] = theMural1;

    theMural2 = new Image();
    theMural2.src = "images/1st_courthouse.jpg";
    picArray[1] = theMural2;

    theMural3 = new Image();
    theMural3.src = "images/hornofplenty.jpg";
    picArray[2] = theMural3;

    theMural4 = new Image();
    theMural4.src = "images/ladyjustice.jpg";
    picArray[3] = theMural4;
  }

  //Changes the image object to the next picture when the user clicks the next button.
  function next_pic() {
    var theImageObject = document.getElementById("image_area");
    CurrentPic += 1;
    if (theImageObject.filters) theImageObject.filters[0].Apply();
    if (CurrentPic > (picArray.length - 1)) CurrentPic = 0;
    theImageObject.src = picArray[CurrentPic].src;
    if (theImageObject.filters) theImageObject.filters[0].Play();
  }

  function startSlideShow() {
    if (anIEBrowser == "Yes") {
      theInterval = 5;
      theIntervalID = setInterval("flipSlide()", (theInterval * 1000));
    } 
  }

  function flipSlide() {
    slideCount += 1;
    if (anIEBrowser == "Yes") {
       next_pic();
    } 
  }

 function setPic(imgNum) {
    theImageObject.src = picArray[imgNum].src;
}
