imageArray = new Array(200);
picArray = new Array(200);
titleArray = new Array(200);
priceArray = new Array(200);
viewArray = 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 > 300 || findIm.height > 300) {
    if (findIm.width >= findIm.height) {
    var Ratio = findIm.height/findIm.width;
    DivIma.width = 300;
    DivIma.height = Math.floor(300.0*Ratio);
    } else {
    var Ratio = findIm.width/findIm.height;
    DivIma.height = 300;
    DivIma.width = Math.floor(300.0*Ratio);
    }
 } else {
 DivIma.width = findIm.width;
 DivIma.height = findIm.height;
 }
 var DivImage = document.getElementById('WidgImg');
 m = ImageSrc;
if (m == 1 || (m - 1) % 3 == 0) {
DivImage.style.left = "230px";
DivImage.style.top = "395px";
} else if (m % 3 == 0) {
DivImage.style.left = "200px";
DivImage.style.top = "395px";
} else {
DivImage.style.left = "450px";
DivImage.style.top = "395px";
}
 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;
}
