// JavaScript Document

function randomNumber(maxValue, minValue) {
  //If minValue/maxValue is missing make it/them 0/1
  if (minValue == null) minValue = 0;
  if (maxValue == null) maxValue = 1;

  //Return the number
  return (Math.round(maxValue * Math.random()) + minValue); 
}
var outputs = new Array();
outputs.push("../images/banners/about.jpg")
outputs.push("../images/banners/capacity.jpg")
outputs.push("../images/banners/corn2.jpg")
outputs.push("../images/banners/cow.jpg")
outputs.push("../images/banners/farm1.jpg")
outputs.push("../images/banners/freeway1.jpg")
outputs.push("../images/banners/house1.jpg")
outputs.push("../images/banners/house2.jpg")
outputs.push("../images/banners/river.jpg")
outputs.push("../images/banners/road2.jpg")
outputs.push("../images/banners/road4.jpg")
outputs.push("../images/banners/water3.jpg")
outputs.push("../images/banners/sky_leaf.jpg")
outputs.push("../images/banners/public_education.jpg")
outputs.push("../images/banners/industry_change.jpg")

function showBanner(){
document.open();
document.write('<img src= ');
document.writeln(outputs[randomNumber(outputs.length-1)]);
document.write('/>');
document.close();

}