Factrotation = new Array ("graphics/fact-w1.gif","graphics/fact-w2.gif","graphics/fact-w3.gif","graphics/fact-w4.gif","graphics/fact-w5.gif")

FactURL = new Array ("http://www.aqua.wisc.edu/WaterLibrary/facts.asp",
"http://www.johannesburgsummit.org/html/media_info/pressreleases_factsheets/wssd4_water.pdf",
"http://www.aqua.wisc.edu/WaterLibrary/facts.asp",
"http://www.nps.gov/rivers/waterfacts.html",
"http://www.nps.gov/rivers/waterfacts.html")


imgCt = Factrotation.length


function chooseFact() {
  if (document.images) {
  randomNum = Math.floor ((Math.random()* imgCt))
  document.fact.src = Factrotation[randomNum]
}
}



function newLocation() {
   document.location.href = FactURL[randomNum]
}



adrotation = new Array ("graphics/ad-conguide.gif", "graphics/ad-econplan.gif")

adURL = new Array ("http://www.nicholas.duke.edu/institute/ccpp/convenientguide/", "http://www.nicholas.duke.edu/institute/carboncosts/")



imgCtAd = adrotation.length




function chooseAd() {
  if (document.images) {
  randomNumAd = Math.floor ((Math.random()* imgCtAd))
  document.ad.src = adrotation[randomNumAd]
}
}


function newLocationAd() {
   document.location.href = adURL[randomNumAd]
}

