// Random Images
var theImgs = new Array()

theImgs[0] = 'templates/unitysf/images/banners/1-b.jpg'
theImgs[1] = 'templates/unitysf/images/banners/1-b.jpg'
theImgs[2] = 'templates/unitysf/images/banners/3.jpg'
theImgs[3] = 'templates/unitysf/images/banners/4.jpg'
theImgs[4] = 'templates/unitysf/images/banners/5.jpg'
theImgs[5] = 'templates/unitysf/images/banners/5.jpg'
theImgs[6] = 'templates/unitysf/images/banners/7.jpg'
theImgs[7] = 'templates/unitysf/images/banners/8.jpg'
theImgs[8] = 'templates/unitysf/images/banners/10.jpg'
theImgs[9] = 'templates/unitysf/images/banners/11.jpg'
theImgs[10] = 'templates/unitysf/images/banners/12.jpg'
theImgs[11] = 'templates/unitysf/images/banners/13.jpg'
theImgs[12] = 'templates/unitysf/images/banners/14.jpg'
theImgs[13] = 'templates/unitysf/images/banners/15.jpg'
theImgs[14] = 'templates/unitysf/images/banners/16.jpg'
theImgs[15] = 'templates/unitysf/images/banners/17.jpg'
theImgs[16] = 'templates/unitysf/images/banners/18.jpg'
theImgs[17] = 'templates/unitysf/images/banners/19.jpg'
theImgs[18] = 'templates/unitysf/images/banners/20.jpg'
theImgs[19] = 'templates/unitysf/images/banners/21.jpg'

var j = 0
var p = theImgs.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImgs[i]
}

var whichImg = Math.round(Math.random()*(p-1));

function showImg(){
	document.getElementById("bannerImg").src = theImgs[whichImg];
}	

