/*-------------------------------------------Rotate Image [HOME PAGE]---*/
// 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. Rememeber
// to increment the theImages[x] index!
/* theImages[0] = 'images/home-page/fp-randomise-02-glazedHam.jpg'
theImages[1] = 'images/home-page/fp-randomise-01-tBone.jpg'
theImages[2] = 'images/home-page/fp-randomise-04-chickenRoas.jpg'
theImages[3] = 'images/home-page/fp-randomise-05-sausages.jpg'
theImages[4] = 'images/home-page/fp-randomise-11-lambCutlets.jpg'
theImages[5] = 'images/home-page/fp-randomise-10-rawMeat.jpg'
theImages[6] = 'images/home-page/fp-randomise-06-bbqThaiSteak.jpg'
theImages[7] = 'images/home-page/fp-randomise-08-lambCutlets.jpg' */

theImages[0] = 'images/home-page/pork-outsliced-014_w2_lrg.jpg'

// ======================================
// do not change 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 showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}
