Factrotation = new Array ("graphics/fact-oc1.gif","graphics/fact-oc2.gif","graphics/fact-oc3.gif","graphics/fact-oc4.gif","graphics/fact-oc5.gif")

FactURL = new Array ("http://www.epa.gov/bioindicators/aquatic/marine.html",
"http://www.epa.gov/bioindicators/aquatic/overexpl.html",
"http://www.epa.gov/OWOW/estuaries/about1.htm",
"http://www.chesapeakebay.net/american_oyster.htm",
"http://www.epa.gov/OWOW/estuaries/about1.htm")


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]
}

