  function showLarger(simg) {
     //alert("scroll top is " + f_scrollTop());
     imgurl = simg.src.replace("_s.jpg",".jpg");
     var img = new Image();
     img.onload = function() {
        window.resizeTo(img.width + 50,img.height+130);
        //document.getElementById("div1").style.visibility = "visible";
        document.getElementById("div2").style.visibility = "visible";
        document.getElementById("div2").style.top = f_scrollTop();
        document.getElementById("div3").style.visibility = "hidden";
        document.getElementById("largeimage").src = imgurl;
        document.body.style.overflow = "hidden";
     };
     img.src = imgurl;

     //alert("end of showLarger");
  }
  function hideLarger() {
     //alert("start of hideLarger");
     window.resizeTo(300,750);
     //document.getElementById("div1").style.visibility = "hidden";
     document.getElementById("div2").style.visibility = "hidden";
     document.getElementById("div3").style.visibility = "visible";
     document.body.style.overflow = "auto";
     //alert("end of hideLarger");
     //document.getElementbyID("largeimage").style.visibility = imgurl;
  }
   function f_scrollTop() {
   	return f_filterResults (
   		window.pageYOffset ? window.pageYOffset : 0,
   		document.documentElement ? document.documentElement.scrollTop : 0,
   		document.body ? document.body.scrollTop : 0
   	);
   }
   function f_filterResults(n_win, n_docel, n_body) {
   	var n_result = n_win ? n_win : 0;
   	if (n_docel && (!n_result || (n_result > n_docel)))
   		n_result = n_docel;
   	return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
   }

