 //JavaScript Rotating Banners
  //copyright daxassist, 2000-2004
  //visit http://www.daxassist.com for this and other javascripts with full tutorials.
  
  // NOTE:
  // This script has been extended to handle three images in one HTYML file,
  // the calling images are in an "include" named "fln_banner.inc",
  // the calling script is in all the templates as an onload, in the body tag
  // keep in mind, this overall routine contains the click counting routine

  //specify interval between rotating banners (in milli seconds)
 
  var currentKeyImage = 0;
  var keyDelay = 11000;
  var newbrowser = true;
	
  // specify banners NOTE replicate two line in stanza one and one line in stanza two
  // be sure to change the numbers on the brackets
  
  if(document.images) {
    keypics = new Array();	
    keypics[0] = new Image();
    keypics[0].src = "http://fingerlakes.net/image/fln_key_holdthefalls.jpg";
  //  keypics[0] = new Image();
  //  keypics[0].src = "http://fingerlakes.net/image/fln_key_fishingTaugh_400.jpg";
    keypics[1] = new Image();
    keypics[1].src = "http://fingerlakes.net/image/fln_key_inGorge_400.jpg";
    keypics[2] = new Image();
    keypics[2].src = "http://fingerlakes.net/image/fln_key_taughFallWeeds_400.jpg";
    keypics[3] = new Image();
    keypics[3].src = "http://fingerlakes.net/image/fln_key_sailCayuga_400.jpg";
 	keypics[4] = new Image();
    keypics[4].src = "http://fingerlakes.net/image/fln_key_frozeTaughEdge_400.jpg";
	
	keyTitle = new Array();
	keyTitle[0] = "<p>Holding the Falls</p>";
//	keyTitle[0] = "<p>Winter Fishing</p>";
	keyTitle[1] = "<p>In Fillmore Glen Gorge</p>";
	keyTitle[2] = "<p>Taughannock Falls, Summer's Stems</p>";
	keyTitle[3] = "<p>Sailing on Cayuga Lake</p>";
	keyTitle[4] = "<p>The Frozen Edge</p>";

	keyText = new Array();
	keyText[0] = "Wading, swimming and just hanging out in the streams of the Finger Lake gorges is a life-long memory of many Finger Lakes residents. At Robert H. Treman State Park visitors may build this same memory.";
//	keyText[0] = "Fishing at Taughannock Park goes year round. At twenty below or after twenty throw-backs someone remains, tranfixed by fish or beauty.";
	keyText[1] = "The trail through Fillmore State Park gorge is the most intimate among the half-dozen park gorge trails. It traces the edge of the water every step.";
	keyText[2] = "Fragile stems, golden in winter, stand in the mist of thundering Taughannock. One of the most photographed places in the Finger Lakes, it is spectacular Spring, cooling in Summer, sacred in all seasons.";
	keyText[3] = "There is sailing on all the lakes. Seneca Lake and Cayuga Lake are the largest. They host many sails on any windy summer day.<p><a href='http://www.puddledockers.com'>Kayaks</a>, run-abouts, and yes, jet skis, abound.<br /><br />There is even a <a href='http://www.billysboats.com'>boat building school </a> where you can learn how and build a small rowing boat in just a few days.";
	keyText[4] = "The winter sun rises far toward the south ends of the lakes. And, it sets there too. <p>Winter colors rival those of Fall.";

	keyCredit = new Array();
	keyCredit[0] = "<br /><p>Photo: Dolores Higareda</p>";
	keyCredit[1] = "<br /><p>Photo: Dolores Higareda</p>";;
	keyCredit[2] = "<br /><p>Photo: Dolores Higareda</p>";
	keyCredit[3] = "<br /><p>Photo: Dolores Higareda</p>";
	keyCredit[4] = "<br /><p>Photo: Dolores Higareda</p>";

  }		

	
//	NOTE: this is the first function, it's for the uppper of three panels
	
  function keyImageChanger(key) {
    if(document.images) {
      document.images[key].src = keypics[currentKeyImage].src;
	  document.getElementById('keyTitle').innerHTML = keyTitle[currentKeyImage];
	  document.getElementById('keyText').innerHTML = keyText[currentKeyImage];											
	  document.getElementById('keyCredit').innerHTML = keyCredit[currentKeyImage];
       if (currentKeyImage < keypics.length-1) 
        currentKeyImage = currentKeyImage + 1;
      else 
        currentKeyImage = 0;
      setTimeout("keyImageChanger('" + key + "')", keyDelay);
    }
//  rotatequote();
  }
	
// Here is the coordinated text

/* function rotatequote()
{
	thequote = myquotes.shift(); //Pull the top one
	myquotes.push(thequote); //And add it back to the end
	
	document.getElementById('keyTextFrame').innerHTML = thequote;
	// This rotates the quote every 10 seconds.
	// Replace 10000 with (the number of seconds you want) * 1000
	t=setTimeout("rotatequote()",1000);
} */

 
 
    //BEST PLACE FOR THIS IE HACK IS HERE - corrects CSS issues with IE
   if(navigator.appName == "Microsoft Internet Explorer")
{
 document.write('<style>#rtnv li.sub {right:-52px;}\n#rtnv li.main {left:-81px;}</style>')
 }