var butoneover=new Image(); 
butoneover.src="images/but_one_over.jpg";
var buttwoover=new Image(); 
buttwoover.src="images/but_two_over.jpg";
var butthreeover=new Image(); 
butthreeover.src="images/but_three_over.jpg";
var butfourover=new Image(); 
butfourover.src="images/but_four_over.jpg";
var butfiveover=new Image(); 
butfiveover.src="images/but_five_over.jpg";
var butsixover=new Image(); 
butsixover.src="images/but_six_over.jpg";
var butsevenover=new Image(); 
butsevenover.src="images/but_seven_over.jpg";
var buteightover=new Image(); 
buteightover.src="images/but_eight_over.jpg";
var taboneover=new Image(); 
taboneover.src="images/bt_member_over.jpg";
var tabtwoover=new Image(); 
tabtwoover.src="images/bt_local_over.jpg";
var tabthreeover=new Image(); 
tabthreeover.src="images/bt_programs_over.jpg";
var tabfourover=new Image(); 
tabfourover.src="images/bt_events_over.jpg";
var tabfiveover=new Image(); 
tabfiveover.src="images/bt_memarea_over.jpg";
var tabsixover=new Image(); 
tabsixover.src="images/bt_supply_over.jpg";
var tabsevenover=new Image(); 
tabsevenover.src="images/bt_bulletin_over.jpg";
var tabeightover=new Image(); 
tabeightover.src="images/bt_convoy_over.jpg";

// RANDOM IMAGE CODE

var theImages = new Array()
var theText = new Array()

theImages[0] = '../images/photos/1.jpg'
theText[0] = '1942 GPA'
theImages[1] = '../images/photos/2.jpg'
theText[1] = 'M-37 3/4 TON'
theImages[2] = '../images/photos/3.jpg'
theText[2] = '1943 M2-4 One Ton'
theImages[3] = '../images/photos/4.jpg'
theText[3] = '1958 DAF'
theImages[4] = '../images/photos/5.jpg'
theText[4] = '1942 FORD GPW'
theImages[5] = '../images/photos/6.jpg'
theText[5] = '1942 WC56'
theImages[6] = '../images/photos/7.jpg'
theText[6] = '1944 M8'
theImages[7] = '../images/photos/8.jpg'
theText[7] = '1943 M4A3 SHERMAN'
theImages[8] = '../images/photos/9.jpg'
theText[8] = '1945 WAR LaFRANCE 6-TON WRECKER'
theImages[9] = '../images/photos/10.jpg'
theText[9] = '1986 M1025 HUMVEE'
theImages[10] = '../images/photos/11.jpg'
theText[10] = '1967 M725 AMBULANCE'
theImages[11] = '../images/photos/12.jpg'
theText[11] = 'DODGE M880'
theImages[12] = '../images/photos/13.jpg'
theText[12] = '1941 T-16 UNIVERSAL CARRIER'
theImages[13] = '../images/photos/14.jpg'
theText[13] = '1970 AM GENERAL M35A2'
theImages[14] = '../images/photos/15.jpg'
theText[14] = '1969 M-151A1'
theImages[15] = '../images/photos/16.jpg'
theText[15] = '1941 WILLYS MB AT THE 2002 BATTLE OF THE BULGE'
theImages[16] = '../images/photos/17.jpg'
theText[16] = '1954 M38A1'
theImages[17] = '../images/photos/18.jpg'
theText[17] = '1961 M422A1'
theImages[18] = '../images/photos/19.jpg'
theText[18] = 'M274 MULE'
theImages[19] = '../images/photos/20.jpg'
theText[19] = 'CHECH-BUILT OT64'
theImages[20] = '../images/photos/21.jpg'
theText[20] = '1944 BRITISH FOLDING PARATROOPER SCOOTER'
theImages[21] = '../images/photos/22.jpg'
theText[21] = 'TIGER 1E FROM SAVING PRIVATE RYAN'
theImages[22] = '../images/photos/23.jpg'
theText[22] = '1941 MOTOSACOCHE'
theImages[23] = '../images/photos/24.jpg'
theText[23] = '1944 M-16 HALF TRACK'
theImages[24] = '../images/photos/25.jpg'
theText[24] = '1943 AIRBOURNE BULLDOZER'

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 whichImageOne = Math.round(Math.random()*(p-1));
var whichImageTwo = Math.round((whichImageOne * 2)/3);
var whichImageThree = Math.round((whichImageOne + whichImageTwo * 2)/6);

function showRImageOne(){
document.write('<img class="smlrpicone" src="'+theImages[whichImageOne]+'" alt="'+theText[whichImageOne]+'" title="'+theText[whichImageOne]+'">');
}
function showRImageTwo(){
document.write('<img class="smlrpictwo" src="'+theImages[whichImageTwo]+'" alt="'+theText[whichImageTwo]+'" title="'+theText[whichImageTwo]+'">');
}
function showRImageThree(){
document.write('<img class="smlrpicthree" src="'+theImages[whichImageThree]+'" alt="'+theText[whichImageThree]+'" title="'+theText[whichImageThree]+'">');
}
function showRImageFour(){
document.write('<img class="smlrpicfour" src="'+theImages[(whichImageThree-1)]+'" alt="'+theText[(whichImageThree-1)]+'" title="'+theText[(whichImageThree-1)]+'">');
}

function showBImageOne(){
document.write('<img class="smlbpicone" src="'+theImages[whichImageOne]+'" alt="'+theText[whichImageOne]+'" title="'+theText[whichImageOne]+'">');
}
function showBImageTwo(){
document.write('<img class="smlbpictwo" src="'+theImages[whichImageTwo]+'" alt="'+theText[whichImageTwo]+'" title="'+theText[whichImageTwo]+'">');
}
function showBImageThree(){
document.write('<img class="smlbpicthree" src="'+theImages[whichImageThree]+'" alt="'+theText[whichImageThree]+'" title="'+theText[whichImageThree]+'">');
}

function showTImageOne(){
document.write('<img class="smltpicone" src="'+theImages[whichImageOne]+'" alt="'+theText[whichImageOne]+'" title="'+theText[whichImageOne]+'">');
}
function showTImageTwo(){
document.write('<img class="smltpictwo" src="'+theImages[whichImageTwo]+'" alt="'+theText[whichImageTwo]+'" title="'+theText[whichImageTwo]+'">');
}
function showTImageThree(){
document.write('<img class="smltpicthree" src="'+theImages[whichImageThree]+'" alt="'+theText[whichImageThree]+'" title="'+theText[whichImageThree]+'">');
}
function showTImageFour(){
document.write('<img class="smltpicfour" src="'+theImages[(whichImageOne-1)]+'" alt="'+theText[(whichImageOne-1)]+'" title="'+theText[(whichImageOne-1)]+'">');
}
function showTImageFive(){
document.write('<img class="smltpicfive" src="'+theImages[(whichImageTwo-1)]+'" alt="'+theText[(whichImageTwo-1)]+'" title="'+theText[(whichImageTwo-1)]+'">');
}
function showTImageSix(){
document.write('<img class="smltpicsix" src="'+theImages[(whichImageThree-1)]+'" alt="'+theText[(whichImageThree-1)]+'" title="'+theText[(whichImageThree-1)]+'">');
}
