title: Modify the slider to be automatic zoom
body: <p>How can I make this slider automatically zoom-in and zoom-out for each image without clicking the image in an interval time?</p>
  
  <p><a href="http://www.dhteumeuleu.com/in-second-lives" rel="nofollow">http://www.dhteumeuleu.com/in-second-lives</a> </p>
  
  <p>Please give some idea of how to start this. </p>
  
  <pre><code> setTimeout(         
          function() { 
           if (camera.over) {
                  if (camera.over === camera.target.elem) {
                      camera.target.elem = camera.over;
                      camera.target.x = 50;
                      camera.target.z = 1500;
                      camera.target.x = 0;
                      camera.target.z = 0;
                      camera.target.elem = false;
                      // ---- adapt tesselation level to distance ----
                      for (var i = 0, d; d = diapo[i++];) {
                          var dx = camera.target.x - d.pc.x;
                          var dz = camera.target.z - d.pc.z;
                          var dist = Math.sqrt(dx * dx + dz * dz);
                          var lev = (dist &gt; 1500) ? quality[0] : quality[1];
                          d.img.setLevel(lev);
                      }
  
                      camera.target.x = 100;
                      camera.target.z = 200;
                      camera.target.elem = false;
  
                      return ;
                      } else {
                      // ---- goto diapo ----
                      camera.target.elem = camera.over;
                      camera.target.x = camera.over.tx;
                      camera.target.z = camera.over.tz;
                      // ---- adapt tesselation level to distance ----
                      for (var i = 0, d; d = diapo[i++];) {
                          var dx = camera.target.x - d.pc.x;
                          var dz = camera.target.z - d.pc.z;
                          var dist = Math.sqrt(dx * dx + dz * dz);
                          var lev = (dist &gt; 1500) ? quality[0] : quality[1];
                          d.img.setLevel(lev);
                      }
                  }
               }
          }
  ,10000); 
  </code></pre>
  
  <p>Thanks </p>