// JavaScript Document
var arrayNumAds = 0; 
var imgPathAds = "/graphics/rotation/Ads/";
var filePathAds = ""
var AdsTimer = 3000;
var imgAds = new Array();
var linktoAds = new Array(); 
var altAds = new Array();
	
	//ROTATING Ads IMAGES//
	/********************************************
	*Edit rotating images and text here. Image 	*
	*name goes in the first link in quotes. The *
	*page that it wants to link to goes in the 	*
	*second line. The image name used on the 	*
	*Adstions page should be used. 			*
	*											*
	*Can be copied and repeated as many times 	*
	*as wanted.									*
	*********************************************/

	imgAds[arrayNumAds] = imgPathAds + "1.jpg";
	altAds[arrayNumAds] = "Upper Limits";
	linktoAds[arrayNumAds++] = "http://www.upperlimits.com";
	
	imgAds[arrayNumAds] = imgPathAds + "2.jpg";
	altAds[arrayNumAds] = "Moraine Valley";
	linktoAds[arrayNumAds++] = "http://www.morainevalley.edu/";
	
	imgAds[arrayNumAds] = imgPathAds + "3.jpg";
	altAds[arrayNumAds] = "Dierks Bentley";
	linktoAds[arrayNumAds++] = "http://www.uscellularcoliseum.com/news/index.html?article_id=480";
		



function rotateAds() {
  var AdsX = Math.floor(Math.random() * imgAds.length);
  document.getElementById('rotateAds').src = imgAds[AdsX];
  document.getElementById('rotateAds').alt = altAds[AdsX];
  document.getElementById('rotateAdsLink').href = linktoAds[AdsX];
  setTimeout("rotateAds()",AdsTimer);
  }
