
function rand ( n )
{
  return ( Math.floor ( Math.random ( ) * n + 1 ) );
}


// Store some random image URL's

var random_images = new Array ( );
random_images[0] = "images/hp-feature-01.jpg";
random_images[1] = "images/hp-feature-02.jpg";
random_images[2] = "images/hp-feature-03.jpg";

// Pick a random image from the list,
// and set the image source to point to the image

function pick_image ( )
{
  document.getElementById("random-image").src = random_images[rand(3)-1];
}