


// preload images:
if (document.images) {
home       = new Image(40,24); home.src       = "images/link-home-grey.gif";
weddings   = new Image(56,24); weddings.src   = "images/link-weddings-grey.gif";
studio     = new Image(49,24); studio.src     = "images/link-studio-grey.gif";
commercial = new Image(97,24); commercial.src = "images/link-commercial-grey.gif";
contact    = new Image(48,24); contact.src    = "images/link-contact-grey.gif";
}




<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin random image script
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'images/large-photos/1.jpg'
theImages[1] = 'images/large-photos/2.jpg'
theImages[2] = 'images/large-photos/3.jpg'
theImages[3] = 'images/large-photos/4.jpg'
theImages[4] = 'images/large-photos/5.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]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}

//  End -->






function changeImage(filename)
{
   document.mainimage.src = filename;
}