// JavaScript Document

// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = '/images/en/home/home_feature_L220.jpeg'
theImages[1] = '/images/en/home/home_feature_homepowere.jpeg'
theImages[2] = '/images/en/home/home_feature_L325.jpeg'
theImages[3] = '/images/en/home/home_feature_L525.jpeg'


var theLinks = new Array()

theLinks[0] = '/products/adsl-gateways/lynx-l220.html'
theLinks[1] = '/products/home-networking/homepower-phoenix.html'
theLinks[2] = '/products/adsl-gateways/lynx-l325.html'
theLinks[3] = '/products/wireless-gateway/lynx-l525.html'

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showFeaturedProductImage(){
document.write('<a href="'+theLinks[whichImage]+'"><img border="0" src="'+theImages[whichImage]+'"></a>');
}
