

// preload the images
var the_images = new Array();
the_images[0] = new Image();
the_images[0].src = "//a248.e.akamai.net/f/248/5462/2h/www.digitalriver.com/v2.0-img/operations/liutilit/site/banners/taxcut_standard.gif";
the_images[1] = new Image();
the_images[1].src = "//a248.e.akamai.net/f/248/5462/2h/www.digitalriver.com/v2.0-img/operations/liutilit/site/banners/taxcut_deluxe.gif";
the_images[2] = new Image();
the_images[2].src = "//a248.e.akamai.net/f/248/5462/2h/www.digitalriver.com/v2.0-img/operations/liutilit/site/banners/taxcut_grab.gif";

var the_timeout;
var index = 0;

// function rotateImage()
// this function swaps in the next image in the_images array and
// increases the index by 1.  If the index exceeds the number of
// images in the array, index is set back to zero.
// setTimeout is used to call the function again in one second.

function rotateImage()
{
    window.document.my_image.src = the_images[index].src;
    index++;
    if (index >= the_images.length)
    {
        index = 0;
    }
    the_timeout = setTimeout("rotateImage();", 8000);
}

function clickLink(){
// function is called from the link in the body of the html
//
// load address into array
var address = new Array();
address[0] = "http://www.digitalriver.com/dr/v2/ec_MAIN.Entry17c?CID=107982&PN=21&SP=10007&SID=49826&PID=1251226";
address[1] = "http://www.digitalriver.com/dr/v2/ec_MAIN.Entry17c?CID=107982&PN=21&SP=10007&SID=49826&PID=1249668";
address[2] = "http://www.digitalriver.com/dr/v2/ec_MAIN.Entry17c?CID=107982&PN=21&SP=10007&SID=49826&PID=1249668";
//
// takes the index from the function above and syncronizes it with the address array
//
index=index-1;
if (index < 0)
{
index = address.length -1;
}
//  Sends the page off to the address associated with the array position
window.location = address[index];
}



