// ==============================================
// This script will randomly switch the image on each page load
// ==============================================

// 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. Remember
// to increment the theImages[x] index!

theImages[0] = 'images/pepsi.png'
theImages[1] = 'images/sunLifeFinancial.png'
theImages[2] = 'images/multideas.png'
theImages[3] = 'images/rona.png'
theImages[4] = 'images/interprovincial.png'
theImages[5] = 'images/cbm.png'
theImages[6] = 'images/cogeco.png'
theImages[7] = 'images/pureingenuity.png'
theImages[8] = 'images/unitedrental.png'
//theImages[7] = 'images/sponsors/pepsi.png'
// ======================================
// 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 width="200" border="0" src="'+theImages[whichImage]+'">');
}

//-->

