function random_img(){ 
var ranimage = new Array(); 
var captions = new Array();

ranimage[1] = "images/frontpage1.jpg"; 
ranimage[2] = "images/frontpage2.jpg"; 
ranimage[3] = "images/frontpage3.jpg"; 
ranimage[4] = "images/frontpage4.jpg";
ranimage[5] = "images/frontpage5.jpg";
ranimage[6] = "images/frontpage6.jpg";
ranimage[7] = "images/frontpage7.jpg";
ranimage[8] = "images/frontpage8.jpg";
captions = ['Precision workers replacing a valley on a graduated slate roof.',
'Precision workers at North East Christian Church laying decking',
'Precision workers restoring the wind damaged tile steeple at North East Christian Church.',
'Precision President and CEO Ed Delong with friend',
'Antique Brass Slate Cutter from the 1920s',
'Slate Hammer from the 1600s',
'Heavy graduated slate roof',
'New Roof Construction'];
var ry = Math.floor(Math.random()*((ranimage.length)-1)); 

if (ry==0) 		{ry=1; document.write('<img src="'+ranimage[ry]+'"><p>'+captions[ry-1]+'</p>');}
else if (ry==1) {ry=2; document.write('<img src="'+ranimage[ry]+'"><p>'+captions[ry-1]+'</p>');}
else if (ry==2) {ry=3; document.write('<img src="'+ranimage[ry]+'"><p>'+captions[ry-1]+'</p>');}
else if (ry==3) {ry=4; document.write('<img src="'+ranimage[ry]+'"><p>'+captions[ry-1]+'</p>');}
else if (ry==4) {ry=5; document.write('<img src="'+ranimage[ry]+'"><p>'+captions[ry-1]+'</p>');}
else if (ry==5) {ry=6; document.write('<img src="'+ranimage[ry]+'"><p>'+captions[ry-1]+'</p>');}
else if (ry==6) {ry=7; document.write('<img src="'+ranimage[ry]+'"><p>'+captions[ry-1]+'</p>');}
else if (ry==7) {ry=8; document.write('<img src="'+ranimage[ry]+'"><p>'+captions[ry-1]+'</p>');}
}




