var OurPhotos = new Array(
"http://www.mne.ksu.edu/front_images/aero_front.jpg/image",
"http://www.mne.ksu.edu/front_images/careerfair.jpg/image",
"http://www.mne.ksu.edu/front_images/pulse%20pic.jpg/image",
"http://www.mne.ksu.edu/front_images/engg_night.jpg/image",
"http://www.mne.ksu.edu/front_images/2008sae.jpg/image"
);

var OurCaptions = new Array(
"<a href='/news-events/news-items/sae-aero-design-team-places-first'>2009 SAE Aero Team</a>",
"<a href='http://www.k-state.edu/ces/'>Engineering Career Fair</a>",
"<a href='/research/centers/reactor'>Triga Mark II Nuclear Reactor Pulsing</a>",
"<a href='http://www.engg.ksu.edu'>Engineering Complex At Night</a>",
"<a href='http://www.k-state.edu/sae/formula/'>2008 SAE Formula Car</a>"
);

var OurLinks = new Array(
"/news-events/news-items/sae-aero-design-team-places-first",
"http://www.k-state.edu/ces/",
"/research/centers/reactor",
"http://www.engg.ksu.edu",
"http://www.k-state.edu/sae/formula/"
);



var end_photo = (OurPhotos.length-1); 
var current_photo = 0;
 
function Cycle() {
   if (document.images) {
      if (current_photo==end_photo) {
          current_photo=0; 
          }
      else {
          current_photo++; 
          }
      img=document.getElementById("frontphoto");
      img.src=OurPhotos[current_photo];
      lnk=document.getElementById("frontphoto_caption");
      lnk.innerHTML=OurCaptions[current_photo];
      lnk=document.getElementById("frontphoto_href");
      lnk.href=OurLinks[current_photo];
      setTimeout("Cycle()", 8000);
      }
   }


setTimeout("Cycle()", 8000);
