//	banners.js		Rotating banners for Scenic Color Country (index)
var Pix = new Array();
  Pix[0] = new Image(930,200);
  Pix[0].src = "banners_200/StGeorgeB.jpg";
  Pix[1] = new Image(930,200);
  Pix[1].src = "banners_200/6c2e5d8446_oB.jpg";
  Pix[2] = new Image(930,200);
  Pix[2].src = "banners_200/Hite_Crossing_BridgeB.jpg";
  Pix[3] = new Image(930,200);
  Pix[3].src = "banners_200/LookoutStudioB.jpg" 
  Pix[4] = new Image(930,200);
  Pix[4].src = "banners_200/utah_goosenecksB.jpg";
  Pix[5] = new Image(930,200);
  Pix[5].src = "banners_200/little_colorado_pano_AZB.jpg";
  Pix[6] = new Image(930,200);
  Pix[6].src = "banners_200/RapleeRidgeB.jpg";
  Pix[7] = new Image(930,200);
  Pix[7].src = "banners_200/Cockscomb_CottonwoodB.jpg";
  Pix[8] = new Image(930,200);
  Pix[8].src = "banners_200/5250e84dc9_oB.jpg";
  Pix[9] = new Image(930,200);
  Pix[9].src = "banners_200/155619B.jpg";
  Pix[10] = new Image(930,200);
  Pix[10].src = "banners_200/MonumentvalleyB.jpg";
  Pix[11] = new Image(930,200);
  Pix[11].src = "banners_200/Lake_mead_july_2009B.jpg";
  Pix[12] = new Image(930,200);
  Pix[12].src = "banners_200/Mexican_Hat,_moonriseB.jpg";
  Pix[13] = new Image(930,200);
  Pix[13].src = "banners_200/Deadhorse2B.jpg";
  Pix[14] = new Image(930,200);
  Pix[14].src = "banners_200/grand-canyon-rafting-095B.jpg";
  Pix[15] = new Image(930,200);
  Pix[15].src = "banners_200/Antelope_Canyon_Luca_GaluzziB.jpg";
  Pix[16] = new Image(930,200);
  Pix[16].src = "banners_200/CombRidge1-2B.jpg";
  Pix[17] = new Image(930,200);
  Pix[17].src = "banners_200/CalfCreekCanyonB.jpg";
  Pix[18] = new Image(930,200);
  Pix[18].src = "banners_200/HogsbackB.jpg";
  Pix[19] = new Image(930,200);
  Pix[19].src = "banners_200/WaterpocketfoldB.jpg";
  Pix[20] = new Image(930,200);
  Pix[20].src = "banners_200/MonumentValley_163B.jpg";
  Pix[21] = new Image(930,200);
  Pix[21].src = "banners_200/Jamey_Stillings-HooverDamBypass7B.jpg";

var capt = new Array (
  "City center of St George, an oasis in the desert, photo by Dave McKelleb",
  "Grand Falls on the Little Colorado, in the southwest corner of Navajo Nation near Flagstaff,AZ, ©Bob Palin",
  "The Bridge at Hite Crossing, Scenic Byway U95 over the Colorado and Lake Powell, a panorama by Christian Mehlführer",
  "Lookout Studio in Grand Canyon Village on the south rim, photo courtesy National Park Service",
  "Goosenecks of the San Juan Utah State Park, photo by wdaguy1 at photobucket",
  "Little Colorado River Gorge inside Navajo Nation near its confluence with the Colorado and Grand Canyon by Dschwen at Wikimedia",
  "Raplee Ridge monocline in southeastern Utah, across the San Juan from Mexican Hat, Utah, photo by Dave McKelleb",
  "the Cockscomb Segment of the East Kaibab Monocline in Cottonwood Canyon near US89, ©Doug Dolte",
  "Moki Dugway - switchbacks on U261 descending Cedar Mesa into the Valley of the Gods, ©Wolfgang Staudt",
  "Buur Trail switchbacks across Waterpocket Fold in Capitol Reef National Park, photo courtesy NPS",
  "The Mittens in Mounument Valley Navajo Nation Tribal Park, ©Moritz Zimmermann" ,
  'Lake Mead at Hoover Dam in 2009, during the drought (note the "bath tub rings") by Cmpxchg8b in the public domain',
  "Mexican Hat Rock at Moonrise, in front of Raplee Ridge near Mexican Hat, Utah, ©PD Tillman",
  "Dead Horse Point State Park - Utah's Grand Canyon - in winter, ©Kenneth Hung",
  "Navajo Bridge from the Colorado in Marble Canyon, photo from National Parks Blog",
  "Antelope Canyon, ©Luca Galuzzi, who has many amazing photos at www.galuzzi.it",
  "Scenic Byway U95 highway cut across Comb Ridge on the Trail of the Ancients, photo by Dave McKelleb",
  "Calf Creek Canyon from Scenic Byway U12 (climbing the Hogsback in the background), photo by Dave McKelleb",
  "Scenic Byway U12 on top of the world on the Hogsback between Escalante and Boulder, Utah, photo by Dave McKelleb",
  "Waterpocket Fold inside Capital Reef National Park, Utah, photo by John Lee",
  "Monument Valley at a distance on US163, photo by Dave McKelleb",
  "Mike O'Callaghan-Pat Tillman Memorial Bridge - the US93 Hoover Dam Bypass over the Colorado in Black Canyon, ©Jamey Stillings"
);

var imgAlt=[
  "City center of St George, an oasis in the desert",
  "Grand Falls on the Little Colorado",
  "The Bridge at Hite Crossing",
  "Lookout Studio in Grand Canyon",
  "Goosenecks State Park viewpoint",
  "Little Colorado River Gorge",
  "Raplee Ridge monocline",
  "the Cockscomb",
  "Moki Dugway",
  "Burr Trail Switchbacks",
  "the Mittens",
  "Lake Mead at Hoover Dam in 2009",
  "Mexican Hat Rock at Moonrise",
  "Dead Horse State Park in winter",
  "Navajo Bridge from the Colorado",
  "Antelope Canyon",
  "UT95 cut across Comb Ridge",
  "Calf Creek Canyon",
  "U12 over the Hogsback",
  "Waterpocket Fold west view",
  "Monument Valley from US163",
  "Hoover Dam Bypass"
];

//  Rotating page banner script
var timeDelay = 10; 		// cycle time (in seconds) (not exact)
var howMany = Pix.length;	// count the banners
timeDelay *= 1000;
var PicCurrentNum = Math.floor((Math.random() * howMany));
function startPix() { setInterval("slideshow()", timeDelay); }
function slideshow() {
  PicCurrentNum++;
  if (PicCurrentNum == howMany)
    { PicCurrentNum = 0; }
    document.images[0].src = Pix[PicCurrentNum].src;
    document.getElementById("BannerPix").alt = imgAlt[PicCurrentNum];
    document.getElementById("caption").childNodes[0].nodeValue = capt[PicCurrentNum];
}

