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','Bruce Hinds&#39s discovery that ions can pump fluids thousands of times faster through carbon nanotubes than through conventional materials was published in top-tier journal "Nature Nanotechnology." <a href="http://uknow.uky.edu/content/engineering-professors-research-featured-nature-nanotechnology"> 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','A ribbon cutting was held for the first prototype from the Houseboat to Energy Efficient Residences (HBEER) project with local, state and federal dignitaries in Monticello, Ky. <a href="http://www.research.uky.edu/reveal/hbeer_1.shtml">See video &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','The Kentucky Geological Survey has published all 25 maps in the 30 by 60 minute geologic map series. KGS unveiled a super-sized version of the map at UK, and the map is now available on the web and on mobile devices. <a href="http://www.research.uky.edu/reveal/kgs_mapping.shtml">See video &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','The Center for Applied Energy Research broke ground for a $5.7 million facility which will reduce the amount of carbon dioxide created when converting coal and biomass to liquid fuels. <a href="http://www.research.uky.edu/reveal/coal_fuels.shtml">See video &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','The Kentucky Energy and Environment Cabinet is committing $1.3 million over two years for the Center for Applied Energy Research to demonstrate algae CO<sub>2</sub> capture at Dale Power Station in Winchester, Ky. <a href="http://www.research.uky.edu/reveal/algae.shtml">See video &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);

