imageArray = new Array(200);

function Displ(ImageSrc) {
 var DivIma = document.getElementById('Imag');
 var findIm = new Image();
 findIm.src = imageArray[ImageSrc].src;
 if (findIm.src == "clearpict.gif" || findIm.width < 40) return;
 DivIma.src = imageArray[ImageSrc].src;
 if (findIm.width > 400 || findIm.height > 400) {
    if (findIm.width >= findIm.height) {
    var Ratio = findIm.height/findIm.width;
    DivIma.width = 400;
    DivIma.height = Math.floor(400.0*Ratio);
    } else {
    var Ratio = findIm.width/findIm.height;
    DivIma.height = 400;
    DivIma.width = Math.floor(400.0*Ratio);
    }
 } else {
 DivIma.width = findIm.width;
 DivIma.height = findIm.height;
 }
 var DivImage = document.getElementById('WidgImg');
 m = ImageSrc;
if (m == 1 || m % 4 == 0 || (m - 1) % 4 == 0) {
DivImage.style.left = "390px";
DivImage.style.top = "470px";
} else if ((m + 1) % 4 == 0) {
DivImage.style.left = "160px";
DivImage.style.top = "470px";
} else {
DivImage.style.left = "20px";
DivImage.style.top = "470px";
}
 DivImage.style.visibility = "visible";
 return true;
}

function Hide() {
  var DivImage = document.getElementById('WidgImg');
  DivImage.style.visibility = "hidden";
  var DivIma = document.getElementById('Imag');
  DivIma.src = "clearpict.gif";
  DivIma.width = 5;
  DivIma.height = 5;
}
