var rotateContentTimer;
var rotateContentCounter = 0;

function RotateContent()
{
  rotateContentCounter++;
  if (rotateContentCounter > 0)
  {
    rotateContentCounter = 0;
  }
  SetContent(rotateContentCounter, false);
  rotateContentTimer = setTimeout("RotateContent();", 0);
}
function SetContent(id, showIcon)
{
  switch (id)
  {
	  
	  // Feature One Image and Content. Change copy and link, then save for updates.
    case 1:
      changeContent1('featureDesc','Nutritional Sciences Professor Lisa Cassis feeds mice a high-fat, &#8220;Americanized&#8221; diet in order to track the mechanisms of obesity-induced heart disease.<br /><a href="http://www.research.uky.edu/odyssey/summer09/mice.html">Learn More &raquo;</a>');
      if (!(showIcon))
      {
        document.getElementById("feature01").src = "images/features/feature01_thmb.jpg";
      }
      break;
	  
	  // Feature Two Image and Content. Change copy and link, then save for updates.
    case 2:
      changeContent2('featureDesc','The sun shines bright on the University of Kentucky&rsquo;s S&bull;KY BLUE House. It placed 9th out of 20 houses in the Solar Decathlon at the National Mall in Washington, D.C.<br /><a href="http://uknow.uky.edu/content/uk-takes-ninth-place-solar-decathlon">Learn more &raquo;</a>');
      if (!(showIcon))
      {
        document.getElementById("feature02").src = "images/features/feature02_thmb.jpg";
      }
      break;
	  
	  // Feature Three Image and Content. Change copy and link, then save for updates.
    case 3:
      changeContent3('featureDesc','New director and &#8220;shining star&#8221; B. Mark Evers and 32 other recruits from the University of Texas are helping to shape the future of the UK Markey Cancer Center.<br /><a href="http://www.research.uky.edu/odyssey/summer09/evers.html">Learn more &raquo;</a');
      if (!(showIcon))
      {
        document.getElementById("feature03").src = "images/features/feature03_thmb.jpg";
      }
      break;
	  
	  // Feature Four Image and Content. Change copy and link, then save for updates.
    case 4:
      changeContent4('featureDesc','Physiologist Gregory Frolenkov&rsquo;s non-destructive &#8220;hopping&#8221; probe allows researcher to see what&rsquo;s happening on the surface of living cells.<br /><a href="http://www.research.uky.edu/odyssey/summer09/probe.html">Learn More &raquo;</a>');
      if (!(showIcon))
      {
        document.getElementById("feature04").src = "images/features/feature04_thmb.jpg";
      }
      break;
	  
	  // Feature Five Image and Content. Change copy and link, then save for updates.
    case 5:
      changeContent5('featureDesc','UK&rsquo;s Lumy Sawaki is using the latest technology to jump-start a stroke patient&rsquo;s brain to move and strengthen damaged limbs.<br /><a href="http://www.research.uky.edu/odyssey/summer09/rehab.html">Learn more &raquo;</a>');
      if (!(showIcon))
      {
        document.getElementById("feature05").src = "images/features/feature05_thmb.jpg";
      }
      break;
    default:
      break;
  }
}
function StopContentRotation(id)
{
  rotateContentCounter = 0;
  clearTimeout(rotateContentTimer);
  SetContent(id, true);
}
rotateContentTimer = setTimeout("RotateContent();", 0);
