
iCount = 1;
iPics = 8; // Number of Pictures

function fnChangePics(i) {
    // window.status = 'ChangingPic'+i+'.jpg';
    var el = document.getElementById('ChangingPics');
    if (el)
        el.src = 'images/ChangingPic' + i + '.jpg';
}

function fnLoop() {
    fnChangePics(iCount);
    iCount++;
    if (iCount > iPics)
    { iCount = 1 }
    myTimer = setTimeout("fnLoop();", 4000);
}

// since onload will be set when getting search result
// check for it first so that it doesn't get overridden
if (!window.onload) {
    window.onload = fnLoop;
}


