function openPictureWindow(imageType, imageName, imageWidth, imageHeight, alt, posLeft, posTop) {  // v4.01
    newWindow = window.open("", "newWindow", "width=" + imageWidth + ",height=" + imageHeight + ",scrollbars=no,left=" + posLeft + ",top=" + posTop);
    newWindow.document.open();
    newWindow.document.write('<html><title>' + alt + '</title><body style="background-color:white;margin-top:5px;" onBlur="self.close()">');
    newWindow.document.write('<img style="display:block; margin-left:auto; margin-right:auto;" src=\"' + imageName + '\" alt=\"' + alt + '\">');
    newWindow.document.write('</body></html>');
    newWindow.document.close();
    newWindow.focus();
}

function isIE() {
    return /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent);
}

function switchAd() {
    var n = (ct + 1) % src.length;
    
    if (ads[n] && (ads[n].complete || ads[n].complete == null)) {
        document["Ad_Image"].src = ads[ct = n].src;
    }
    ads[n = (ct + 1) % src.length] = new Image;
    ads[n].src = src[n];
    setTimeout("switchAd()", duration * 1000);
}

function doLink() {
    location.href = url[ct];
} onload = function() {
    if (document.images)
        switchAd();
}