// Script created by Nick Beech
// www.nbWebsiteDesign.co.uk
// www.LookAndLearnTraining.com and .co.uk
// This script is copyrighted - Please ask permission to reuse

// This script generates random numbers and assigns them to variables. 
// Image names are substituted with these variables to create 
// different images each time the page is loaded.

// Function to generate random number between 1 and 3
// This includes all images for the header on website Garners Garden Centre

// function to generate random number from 1 to 3
function getNumber(){
  return Math.ceil(Math.random()*3);
}
// call function and assign to variables
  var pic1var = getNumber();
  
  
// create output for slideshow
var image1 = '<img src="images/outdoor/' + pic1var + '.jpg" alt="Garners Garden Centre" width="630" height="200" border="0" />';
