adImages = new Array("image1.jpg", "image2.jpg", "image3.jpg", "Untitled-1.jpg", "image4.jpg", "image5.jpg", "image6.jpg", "image7.jpg")
imgCt = adImages.length
firstTime = true

 function rotate() {
    if (document.images) {
        if (firstTime) {
            thisAd = Math.floor((Math.random() * imgCt))
            firstTime = false
        }
        else {
            thisAd++
            if (thisAd == imgCt) {
                thisAd = 0
            }
        }
        document.myPicture.src= 'http://www.gwulparentcenter.org/imagesR/' + adImages[thisAd]
//        setTimeout("rotate()", 3 * 1000)
    }
 }

