var myArray = [], index;

// store the images and links in an array

myArray[0] = '<a href="/store/biomechanical.html"><img src="/images/store/biomechanical_cover.jpg" alt="Biomechanical Principles of Tennis Technique" width="173" height="260" border="0" /></a>';
myArray[1] = '<a href="/store/breakpoint.html"><img src="/images/store/breakpoint_cover.jpg" alt="From Breakpoint to Advantage" width="175" height="223" border="0" /></a>';
myArray[2] = '<a href="/store/fit_to_play.html"><img src="/images/store/fit_to_play_cover.jpg" alt="Fit to Play Tennis" width="173" height="260" border="0" /></a>';
myArray[3] = '<a href="/store/ontour.html"><img src="/images/store/on_tour_cover.jpg" alt="Taking Your Tennis on Tour" width="173" height="256" border="0" /></a>';
myArray[4] = '<a href="/store/ptot.html"><img src="/images/store/ptot_cover.jpg" alt="Physics and Technology of Tennis" width="175" height="229" border="0" /></a>';
myArray[5] = '<a href="/store/companion.html"><img src="/images/store/stringers-companion.jpg" alt="Stringers Companion for PC and Mac" width="173" height="279" border="0" /></a>';
myArray[6] = '<a href="/store/technical.html"><img src="/images/store/technical_cover.jpg" alt="Technical Tennis" width="175" height="259" border="0" /></a>';
myArray[7] = '<a href="/store/winners.html"><img src="/images/store/winners_cover.jpg" alt="The Winners Mind" width="175" height="263" border="0" /></a>';
myArray[8] = '<a href="/store/tennis_training.html"><img src="/images/store/tennis_training_cover.jpg" alt="Tennis Training" width="173" height="259" border="0" /></a>';

// call one of the images (with link) at random)

index = Math.floor(Math.random() * myArray.length);

// write it to the page

document.write(myArray[index]);
