  var t1;
  var thisImage = -1;
  myPreload();

  function colorImage()
  {
// disable for now
if ( 0 )
{
    if (document.images)
    {
      temp = document.theImg.src.toString();
      newSrc = temp.substring (0, temp.length-4);
      newSrc = newSrc + "_grey.jpg";
      document.theImg.src = newSrc;
      return true;
    }
}
  }
  function bwImage()
  {
// disable for now
if ( 0 )
{
    if (document.images)
    {
      temp = document.theImg.src.toString();
      newSrc = newSrc.replace ("_grey", "");
      document.theImg.src = newSrc;
      return true;
    }
}
  }
  function startTimeout()
  {
    t1 = setTimeout ("rotate()", 7000)
  }
  function rotate()
  {
    if (document.images)
    {
      thisImage = thisImage +1;
      thisTitle = thisImage;
      if (thisImage == imgCt)
      {
        thisImage = 0;
        thisTitle = 0;
      }
      document.theImg.src = imageArray[thisImage];

      var theTitle = document.getElementById("theTitle");
      theTitle.innerHTML = titleArray[0]; //titleArray[thisTitle];
      t1 = setTimeout ("rotate()", 7000);
    }
  }
  function myPreload()
  {
    if (document.images)
    {
      var grp = Math.floor(Math.random()*11) % 2 + 1;
      img1 = new Image;
      img2 = new Image;
      img3 = new Image;
      //img4 = new Image;
      //img5 = new Image;
      //img6 = new Image;
      img1.src = "images/home/pictures/2011grp" + grp + "/1.jpg";
      img2.src = "images/home/pictures/2011grp" + grp + "/2.jpg";
      img3.src = "images/home/pictures/2011grp" + grp + "/3.jpg";
      //img4.src = "images/home/pictures/2010grp" + grp + "/4.jpg";
      //img5.src = "images/home/pictures/2010grp" + grp + "/5.jpg";
      //img6.src = "images/home/pictures/2010grp" + grp + "/6.jpg";
      imageArray = new Array (img1.src, img2.src, img3.src); //, img4.src, img5.src, img6.src);
      titleArray = new Array ('Photographs from "Materials, Media, Techniques, Representations, and Experiences," the 2011 NAREA membership benefit CD');
      thisImage = -1;
      imgCt = imageArray.length;
    }
    rotate();
    bwImage();
  }
  

