<HTML>
<HEAD>
<TITLE>Animated JPEG's</TITLE>
<SCRIPT LANGUAGE=JAVASCRIPT TYPE="text/javascript">

    browserRev = parseInt(navigator.appVersion)
    thumbnailCount = 34
    displayTime = 3
    
    if (document.images) {
        nextThumb = new Image
        imageNo = Math.floor(Math.random() * thumbnailCount)
        nextThumb.src = "images/thumbnails" + imageNo + ".jpg"
    }
        
    function animate() {
        if (getNext()) {
            document.thumbnail.src = nextThumb.src
            imageNo++
            if (imageNo == thumbnailCount)
                { imageNo = 0 }
            nextThumb.src = "images/thumbnails" + imageNo +
                ".jpg"
        }
        setTimeout("animate()", displayTime * 1000)
    }

    function getNext() {
        if (browserRev == 3 && nextThumb.complete)
            return true
        if (browserRev >= 4 && document.thumbnail.complete)
            return true
        return false
    }

</SCRIPT> 
</HEAD>
<BODY BGCOLOR=WHITE onLoad="animate()">
<H1>Check out some of our collection of images:</H1>
<!-- The next image will get replaced by animation -->
<IMG SRC="images/spacer.gif" HEIGHT=95 WIDTH=438
    NAME="thumbnail" ALT="Animation"> 
</BODY>
</HTML>