var lastID = 0;
function SelectImg(id) {
if (lastID > 0) {
document.getElementById(lastID).className = "thumbNormal";
}

 if (document.getElementById(id) != null) 
 {

	document.getElementById(id).className = "thumbSelected";
	document.getElementById(0).src = document.getElementById(id).src;
	lastID = id;
 }
}
function LoadTrigger() {
SelectImg(1);
}
window.onload = LoadTrigger;
//Swap Highlights
var dimages=new Array();
var numImages=2;

for (i=0; i<numImages; i++)
{
  dimages[i]=new Image();
  dimages[i].src="/images/highlights"+(i+1)+".jpg";
}
var curImage=-1;

function swapPicture()
{
  if (document.images)
  {
    var nextImage=curImage+1;
    if (nextImage>=numImages)
      nextImage=0;
    if (dimages[nextImage] && dimages[nextImage].complete)
    {
      var target=0;
      if (document.images.einfoHighlights)
        target=document.images.einfoHighlights;
      if (document.all && document.getElementById("einfoHighlights"))
        target=document.getElementById("einfoHighlights");
  
      // make sure target is valid.  It might not be valid
      //   if the page has not finished loading
      if (target)
      {
        target.src=dimages[nextImage].src;
        curImage=nextImage;
      }

      setTimeout("swapPicture()", 5000);

    }
    else
    {
      setTimeout("swapPicture()", 500);
    }
  }
}

setTimeout("swapPicture()", 5000);