<!--
    var SLIDES = null;

    function zoom() {
      var width = 50;
      var height = 50;
      var left = ((screen.width - width) / 2);
      var top = (((screen.height - height) / 2) - 50);
      var lnk = SLIDES.slides[SLIDES.current].link;

      window.open("view.asp?img=" + lnk, "Visualizacao", 
                  "left=" + left + ", top=" + top + ", width=" + width + ", height=" + 
                  height + ", directories=no, location=no, menubar=no, personalbar=no, " + 
                  "resizable=no, scrollbars=no, status=no, toolbar=no, titlebar=yes");    
    }

    function load_imagens(arr) {
      var i=0;
      var arr_tmp;

      SLIDES = new slideshow("SLIDES");
      for (; i<arr.length; i++) {
        arr_tmp = arr[i].split("!");
        SLIDES.add_slide(new slide(path + arr_tmp[0], arr_tmp[0], arr_tmp[1]));
      }      
      
      SLIDES.image = document.images.SLIDESIMG;
      SLIDES.textid = "SLIDESTEXT";
      SLIDES.update();
      SLIDES.play(); 
    }

    function resultadoImagens() {
      if (req.readyState == 4) {
        var ret = req.responseText;
        if (ret != "") {
          ret = unescape(ret);
          ret = ret.replace(/\+/g, " ");

          var arr = ret.split('\n');
          load_imagens(arr);
        }
      }
    }

    function loadSlideShow(id, tipo) {
      xmlOpen("POST", "gallery.asp", "id=" + id + "&tipo=" + tipo, resultadoImagens);
    }

//-->
