// JavaScript Document
function imgOver(imgName){ 
	document[imgName].src = eval(imgName + "_over.src"); 
}

function imgOff(imgName){ 
	document[imgName].src = eval(imgName + "_off.src"); 
}

home_off = new Image();
home_off.src = "images/home.gif";

home_over = new Image();
home_over.src = "images/home_f2.gif";

services_off = new Image();
services_off.src = "images/services.gif";

services_over = new Image();
services_over.src = "images/services_f2.gif";

about_off = new Image();
about_off.src = "images/about.gif";

about_over = new Image();
about_over.src = "images/about_f2.gif";

clients_off = new Image();
clients_off.src = "images/clients.gif";

clients_over = new Image();
clients_over.src = "images/clients_f2.gif";

contact_off = new Image();
contact_off.src = "images/contact.gif";

contact_over = new Image();
contact_over.src = "images/contact_f2.gif";

estimate_off = new Image();
estimate_off.src = "images/estimate.gif";

estimate_over = new Image();
estimate_over.src = "images/estimate_f2.gif";

giordano_off = new Image();
giordano_off.src = "images/giordano3.jpg";

giordano_over = new Image();
giordano_over.src = "images/giordano3_f2.jpg";

h2o_off = new Image();
h2o_off.src = "images/h20_3.jpg";

h2o_over = new Image();
h2o_over.src = "images/h20_3_f2.jpg";

hardrock_off = new Image();
hardrock_off.src = "images/hardrock3.jpg";

hardrock_over = new Image();
hardrock_over.src = "images/hardrock3_f2.jpg";

lasalle_off = new Image();
lasalle_off.src = "images/lasalle3.jpg";

lasalle_over = new Image();
lasalle_over.src = "images/lasalle3_f2.jpg";

state_off = new Image();
state_off.src = "images/state_street3.jpg";

state_over = new Image();
state_over.src = "images/state_street3_f2.jpg";

national_off = new Image();
national_off.src = "images/national3.jpg";

national_over = new Image();
national_over.src = "images/national3_f2.jpg";


var theImages = new Array()
theImages[0] = 'comiskey2.jpg'
theImages[1] = 'comiskey4.jpg'
theImages[2] = 'comiskey5.jpg'
theImages[3] = 'comiskey6.jpg'
theImages[4] = 'united_center_1.jpg'

var thePics = new Array()
thePics[0] = 'mb1.jpg'
thePics[1] = 'mb2.jpg'
thePics[2] = 'mb3.jpg'
thePics[3] = 'mb4.jpg'
thePics[4] = 'lasalle.jpg'

// do not edit 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]
   preBuffer[i].src = thePics[i]
}
var whichImage = Math.round(Math.random()*(p-1));
var whichPic = Math.round(Math.random()*(p-1));

function showImage(){
document.write('<img src="images/'+theImages[whichImage]+'" width="200" height="164" style="margin-left:1">');
}

function showPic(){
document.write('<img src="images/'+thePics[whichPic]+'" width="200" height="164" style="margin-left:1">');
}


FirstArray = new Array('comiskey2.jpg','comiskey4.jpg','comiskey5.jpg','comiskey6.jpg','united_center_1.jpg');
var chosenFirst = FirstArray[Math.floor(Math.random()*FirstArray.length)];

SecondArray = new Array('mb1.jpg','mb2.jpg','mb3.jpg','mb4.jpg','lasalle.jpg');
var chosenSecond = SecondArray[Math.floor(Math.random()*SecondArray.length)];

function showPics1(){
document.writeln('<img src="images/'+chosenFirst+'" width="200" height="164" style="margin-left:1">');
}

function showPics2(){
document.writeln('<img src="images/'+chosenSecond+'" width="200" height="164" style="margin-left:1">');
}