Factrotation = new Array ("graphics/fact-nc1.gif","graphics/fact-nc2.gif","graphics/fact-nc3.gif","graphics/fact-nc4.gif","graphics/fact-nc5.gif","graphics/fact-cc1.gif","graphics/fact-cc2.gif","graphics/fact-cc3.gif","graphics/fact-cc4.gif","graphics/fact-cc5.gif","graphics/fact-cc6.gif","graphics/fact-e1.gif","graphics/fact-e2.gif","graphics/fact-e3.gif","graphics/fact-e4.gif","graphics/fact-e5.gif","graphics/fact-e6.gif","graphics/fact-w1.gif","graphics/fact-w2.gif","graphics/fact-w3.gif","graphics/fact-w4.gif","graphics/fact-w5.gif","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.ncfisheries.net/stocks/index.html",
"http://www.ncfisheries.net/habitat/pna.htm",
"http://www.ncfisheries.net/habitat/pna.htm",
"http://www.ncfisheries.net/shellfish/shrimp1.htm",
"http://www.neuseriver.org/abouttheneuse/neuseriverfacts",
"http://www.nytimes.com/2006/03/24/science/earth/24melt.html",
"http://cdiac.ornl.gov/pns/current_ghg.html",
"http://www.nytimes.com/2006/03/15/science/earth/15ice.html?ex=1143608400&en=9c006f6f2d5cab14&ei=5070",
"http://www.nytimes.com/2006/03/12/books/review/12zimmer.html?ex=1143608400&en=f6f3fa71c8e479ba&ei=5070",
"http://www.nytimes.com/2006/02/17/science/17climate.html?ex=1143608400&en=728267c2d7762caa&ei=5070",
"http://www.nature.com/nature/journal/v438/n7067/full/438410a.html",
"http://www.enviroliteracy.org/article.php/18.html",
"http://www.eia.doe.gov/kids/energyfacts/sources/renewable/biomass.html",
"http://bicycleuniverse.info/transpo/almanac.html",
"http://www.nature.com/nature/journal/v438/n7067/full/438410a.html",
"http://www.nrplp.com/index.cfm/MenuItemID/219.htm",
"http://api-ec.api.org/newsplashpage/index.cfm",
"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",
"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 ("/institute/graphics/ad-conguide.gif", "/institute/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]
}

