<!-- IMAGE RANDOMIZER SCRIPT from http://www.999tutorials.com/javascript/random-image-with-javascript/ -->
// Function that return a number between 0 and "nums - 1"
function getRandom(nums)
{
var ranNum= Math.round(Math.random()*nums)
;
return ranNum;
}

var numberOfImages    = 8; // equal to the highest number in the array below
var randomNumber      = getRandom(numberOfImages);

// Create an array to hold the names of all images.
var image = new Array(numberOfImages);
image[0]="assets/images/global/random-image_0.jpg";
image[1]="assets/images/global/random-image_1.jpg";
image[2]="assets/images/global/random-image_2.jpg";
image[3]="assets/images/global/random-image_3.jpg";
image[4]="assets/images/global/random-image_4.jpg";
image[5]="assets/images/global/random-image_5.jpg";
image[6]="assets/images/global/random-image_6.jpg";
image[7]="assets/images/global/random-image_7.jpg";
image[8]="assets/images/global/random-image_8.jpg";

// Write the img tag with a random image name.
document.write("<img src='" + image[randomNumber] + "' />")
