﻿function setFooter() {
    var minh = 436;
    var maxh;
    maxh = document.getElementById("ctl00_col1").offsetHeight;
    if (maxh > minh) {
        minh = maxh;
    }

    maxh = document.getElementById("ctl00_col2").offsetHeight;
    if (maxh > minh) {
        minh = maxh;
    }

    maxh = document.getElementById("ctl00_col3").offsetHeight;
    if (maxh > minh) {
        minh = maxh;
    }

    maxh = document.getElementById("AddedContent").offsetHeight;
    if (maxh > minh) {
        minh = maxh;
    }

    minh = minh + 168;
    document.getElementById("bottomsection").style.top = minh + "px";
    document.getElementById("bottomsection").style.visibility = "visible";
    imgdisp('ln1','ln1');
}

function imgdisp(imageId, oldimageId) {
    document.getElementById(oldimageId).style.visibility = 'hidden';
    document.getElementById(imageId).style.visibility = 'visible';
    nextimg = 'ln' + (Number(imageId.substring(2)) + 1);
    if (document.getElementById(nextimg)) {
        window.setTimeout("imgdisp('" + nextimg + "','" + imageId + "')", 5000);
    } else {
        window.setTimeout("imgdisp('ln1','" + imageId + "')", 5000);
    }
}


