<!--

function reapply() {
    setTimeout("slideit()",0);
    return true;
}

window.onerror=reapply;


//The number of images to choose from
var nrImages=10;
var imageNameBase="assets/images/Fade/Trovia-Coaching-header";
var imageExtention=".jpg";

var step=randomNr()

function slideit() {
    if (!document.images)
        return;

    if (document.all)
        slide.filters.blendTrans.apply();

    document.images.slide.src = imageNameBase;
    //add leading zero's to the number
    if (step < 10)
        document.images.slide.src += "";
    if (step < 100)
        document.images.slide.src += "";
    //add number and extention
    document.images.slide.src += step+imageExtention;

    if (document.all)
        slide.filters.blendTrans.play();

    step=randomNr();

    setTimeout("slideit()",14000);
}

setTimeout("slideit()",2);

function randomNr() {
    return Math.floor(Math.random() * nrImages);
}
//-->

