// JavaScript Document

var frames;
// Step 1 - Set Number to Match Max in Array (ACTUALLY, IT'S MAX PLUS ONE - rso)
images=new Array(3);
links=new Array(3);
alts=new Array(3);
// Step 2 - Specify Image Sources
images[0]=new Image();
images[0].src="images/promo1.jpg";
images[1]=new Image();
images[1].src="images/promo3.jpg";
images[2]=new Image();
images[2].src="images/promo4.jpg";
// Step 3 - Specify Links
links[0]=new String();
links[0].value="promo1.asp";
links[1]=new String();
links[1].value="promo3.asp";
links[2]=new String();
links[2].value="promo4.asp";
// Step 4 - Specify Alternate Texts
alts[0]=new String();
alts[0].value="Invest in America - GM and Chrysler Savings";
alts[1]=new String();
alts[1].value="Is an IRA in Your Future";
alts[2]=new String();
alts[2].value="ACU Mobile Banking - Everywhere You Are";
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)%3;
// Step 6 - Set Timeout
   timeout_id=setTimeout("animateImages()",3000);
} 