
pth = "images/home-images/"
theImages1 = new Array(pth + "IMG_00681.jpg", pth + "IMG_00921.jpg", pth + "IMG_00921-2.jpg", pth + "IMG_00951.jpg", pth + "IMG_01022.jpg", pth + "IMG_01481.jpg", pth + "IMG_0091.jpg", pth + "IMG_0119.jpg")
theImages2 = new Array(pth + "IMG_01431.jpg", pth + "IMG_01431-2.jpg", pth + "IMG_03171.jpg", pth + "IMG_0051.jpg", pth + "IMG_0074.jpg", pth + "IMG_0140.jpg", pth + "IMG_0118.jpg", pth + "IMG_0103.jpg")

imgCount1 = theImages1.length;
imgCount2 = theImages2.length;
 
function rotatePhotos()
{
    if (document.images) 
    {
        randomNum1 = Math.floor((Math.random() * imgCount1))
		randomNum2 = Math.floor((Math.random() * imgCount2))
        document.painting1.src = theImages1[randomNum1]
		document.painting2.src = theImages2[randomNum2]
    }
} // end function rotatePhotos()