//	

var adList = new Array(  	
  
  "Employee of the Quarter <br> Nina Mitchell Taylor<br>Congratulations Nina for this<br>outstanding recognition by the U of A",
  	"CURRENTS New Home!<br>121 Cedar Street  Hot Springs, AR 71901",
  	"CHIRP Wins National Award! <br>Go to News and Announcements for Details!",
  	"SCD 2008 Transcripts<br>The conference proceeding are now available online<br>",
	"Bridgeworks Teleclasses<br>Professional Development at Your Finger Tips<br>New Topics Added Every Month",
	"Take the IRI Online Test!<br> Earn CRC Credits<br> Take It ANYTIME! ANYWHERE!",
	"University of Arkansas CURRENTS");
  var adIndex = 0;

//  	"/images/tacer6.gif",
  
  var imageList = new Array(
	"/images/nina.gif",  
	"/images/sign.gif",
    "/images/chirpaward.jpg",
    "/images/scd.gif",
	"/images/bridgeworks.gif",
	"/images/onlineiri.gif",
	"/images/tacer6.gif");

//  	

  var imageLinks = new Array(
  "",
  "",
  "http://www.uacurrents.org/cnews/currents_news.htm",
  	"http://www.rcep6.org/scd/2008/transcripts.htm",
	"http://www.uacurrents.org/bridgeworks",
	"http://www.uacurrents.org/IRI/tmpt/study.htm",
	"http://www.uacurrents.org");

//  	"CURRENTS News",

  var imageAlt = new Array(
  "Photo of Nina Mitchell Taylor",
 "CURRENTS Sign picture",
  "CHIRP Logo",
  	"Link to SCD 2008 Transcripts",
	"BridgeWorks Logo",
	"IRI Logo");

  var imageIndex = 0;
  
  function rotateAd(textAd)
  {
    document.getElementById(textAd).innerHTML = adList[adIndex];
    
    if (adIndex < adList.length - 1)
    {
      adIndex++;
    }
    else
    {
      adIndex = 0;      
    }
  }
  
  function rotateImage(imageAd, imageLink)
  {
    document.getElementById(imageAd).src = imageList[imageIndex];
    document.getElementById(imageAd).alt = imageAlt[imageIndex];
    document.getElementById(imageLink).href = imageLinks[imageIndex];
    
    if (imageIndex < imageList.length - 1)
    {
      imageIndex++;
    }
    else
    {
      imageIndex = 0;
    }
  }
