var adImages = new Array();
  // Enter the names of the images below
  adImages[0]="images/editor/Banner Rotator/Fit-for-a-Tiger.jpg";
  adImages[1]="images/editor/Banner Rotator/Got-the-Beat.jpg";
  adImages[2]="images/editor/Banner Rotator/where-that-4-15-2010.jpg";
  adImages[3]="images/editor/Banner Rotator/Mizzou-Stronger.jpg";
  adImages[4]="images/editor/MU-KU-Rivalry-homepage--.jpg";
  adImages[5]="images/editor/Banner Rotator/Fans-Travel--.jpg";

var adBackground = new Array();
//Enter the corresponding background colors
  adBackground[0]="url(images/highlightsarrow.png) no-repeat transparent left center";
  adBackground[1]="url(images/highlightsarrow.png) no-repeat transparent left center";
  adBackground[2]="url(images/highlightsarrow.png) no-repeat transparent left center";
  adBackground[3]="url(images/highlightsarrow.png) no-repeat transparent left center";
  adBackground[4]="url(images/highlightsarrow.png) no-repeat transparent left center";
  adBackground[5]="url(images/highlightsarrow.png) no-repeat transparent left center";
  
var adText = new Array();
//Enter the descriptive title
   adText[0] = "On brick and bended knee";
   adText[1] = "Shirts instill spirit";
   adText[2] = "Trivia games";
   adText[3] = "Membership matters";
   adText[4] = "Read/post a memory";
   adText[5] = "Supporting the tigers";

var adLink = new Array();
//Enter the URL to the full story
   adLink[0] = "http://www.mizzou.com/s/1002/index.aspx?sid=1002&gid=1&pgid=252&cid=2037&ecid=2037&crid=0&calpgid=396&calcid=960";
   adLink[1] = "http://www.mizzou.com/s/1002/index.aspx?sid=1002&gid=1&pgid=252&cid=2035&ecid=2035&crid=0&calpgid=396&calcid=960";
   adLink[2] = "http://www.mizzou.com/s/1002/index.aspx?sid=1002&gid=1&pgid=1123";
   adLink[3] = "http://mizzou.imodules.com/s/1002/index.aspx?sid=1002&gid=1&pgid=252&cid=1201&ecid=1201&crid=0&calpgid=61&calcid=792";
   adLink[4] = "http://www.mizzou.com/s/1002/index.aspx?sid=1002&gid=1&pgid=432";
   adLink[5] = "http://www.mizzou.com/s/1002/index.aspx?sid=1002&gid=1&pgid=252&cid=2018&ecid=2018&crid=0&calpgid=396&calcid=960"
   
thisAd = 0;

imgCt = adImages.length




function rotate() {
 if(document.images) {
 

   if (thisAd == imgCt) {
      thisAd = 0
   }

   document.adBanner.src=adImages[thisAd];

 featureTitle(thisAd)
  thisAd++
  
	  setTimeout("rotate()", 9 * 1000)

 }
 


}


function featureTitle(thisAd)  {

   var totalArray = "<br />";
   var newValue = "";
   var newHref = "";

   for (i=0;i<adText.length;i++)
   {
   
      if (i == thisAd)
      {
      
         newValue = "<strong><a style=\"color: #000;_margin-left:-15px;background: " + adBackground[i] + ";\" href=\"" + adLink[i] + "\">" + adText[i] + "</a></strong><br /><br /><script language=\"javascript\" type=\"text/javascript\">document.getElementById('newBg').href=adLink[" + i + "];</script>";
      
      } else {      
      
         newValue = "<a onMouseOver=\"document.adBanner.src=adImages[" + i + "]; document.getElementById('newBg').href=adLink[" + i + "]; featureTitle(" + i + ");\" href=\"#\">" + adText[i] + "</a><br /><br />";
           
      }

      
      totalArray = totalArray + newValue;
   }

   newVar = totalArray;
   document.getElementById('adText').innerHTML = newVar;
   
}


function loadStory(i) {

 document.adBanner.src=adImages[i];

}
