// JavaScript Document

var frames;
// Step 1 - Set Number to Match Max in Array (ACTUALLY, IT'S MAX PLUS ONE - rso)
images=new Array(4);
links=new Array(4);
alts=new Array(4);
// Step 2 - Specify Image Sources
images[0]=new Image();
images[0].src="images/survey.jpg";
images[1]=new Image();
images[1].src="images/promo2.jpg";
images[2]=new Image();
images[2].src="images/promo3.jpg";
images[3]=new Image();
images[3].src="images/promo4.jpg";


// Step 3 - Specify Links
links[0]=new String();
links[0].value="news3.asp";
links[1]=new String();
links[1].value="promo2.asp";
links[2]=new String();
links[2].value="promo3.asp";
links[3]=new String();
links[3].value="park_tickets.asp";

// Step 4 - Specify Alternate Texts
alts[0]=new String();
alts[0].value="Help Us Help You - Member Survey";
alts[1]=new String();
alts[1].value="Invest in America and Save";
alts[2]=new String();
alts[2].value="Don't Take the Bait from Dealers or Bankers";
alts[3]=new String();
alts[3].value="Discount Amusement Park Tickets are Available";

frames=0;
function animateImages()
{
   document.getElementById('image_placeholder').src=images[frames].src;
   document.getElementById('book_link').href=links[frames].value;
   document.getElementById('image_placeholder').alt=alts[frames].value;
// Step 5 - Set Last Number to Match Max from Step 1
   frames=(frames+1)%4;
// Step 6 - Set Timeout
   timeout_id=setTimeout("animateImages()",4000);
} 