<!--

// Edit Directory, Filename, Extension and vtop (number of images)
// Name must end with 00 leaving space for 01, 02 ,03 etc

var strDir="photo"
var strName="photo_"
var strExt="jpg"
var vtop=12
var pause=5000

var imgarray = new Array()
var i_message=1
var timer

function photoanimate() {
    if (i_message>vtop) {
        i_message=1
    }

    if (document.all) {
        if (i_message<=vtop) {
            if (i_message<10) {
                document.images.photo_ani.style.filter="blendTrans(duration=1)"
                document.images.photo_ani.filters.blendTrans.Apply()
                document.images.photo_ani.src= "images/" + strDir +"/" + strName + "0" + i_message + "." + strExt
                document.images.photo_ani.filters.blendTrans.Play();

                i_message++
                timer= setTimeout("photoanimate()",pause)
            }
            else {
                document.images.photo_ani.style.filter="blendTrans(duration=1)"
                document.images.photo_ani.filters.blendTrans.Apply()   
                document.images.photo_ani.src= "images/" + strDir +"/" + strName + i_message + "." + strExt
                document.images.photo_ani.filters.blendTrans.Play();
                i_message++
                timer= setTimeout("photoanimate()",pause)
            }
        }
    }
    else if(document.layers) {
        if (i_message<=vtop) {
            if (i_message<10) {
                document.images.photo_ani.src= "images/" + strDir +"/" + strName + "0" + i_message + "." + strExt
                i_message++
                timer= setTimeout("photoanimate()",pause)
            }
            else {   
                document.images.photo_ani.src= "images/" + strDir +"/" + strName + i_message + "." + strExt
                i_message++
                timer= setTimeout("photoanimate()",pause)
            }
        }
    }
}

//-->
