imageArray = new Array(200);
picArray = new Array(200);
titleArray = new Array(200);
priceArray = new Array(200);
viewArray = new Array(200);

function hideDiv() { 
if (document.getElementById) { // DOM3 = IE5, NS6 
document.getElementById('sicon').style.visibility = 'hidden'; 
} else { 
 if (document.layers) { // Netscape 4 
  document.sicon.visibility = 'hidden'; 
 } else { // IE 4 
  document.all.sicon.style.visibility = 'hidden'; 
 } 
}
} 

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 = "220px";
DivImage.style.top = "650px";
} else if (m % 3 == 0) {
DivImage.style.left = "220px";
DivImage.style.top = "650px";
} else {
DivImage.style.left = "450px";
DivImage.style.top = "650px";
}
 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;
}
