ishMessage = 'Animation finished.';
      network.moveTo(options);
    }

    function doAnimation() {
      updateValues();

      var options = {
        position: {x:positionx,y:positiony},
        scale: scale,
        offset: {x:offsetx,y:offsety},
        animation: {
          duration: duration,
          easingFunction: easingFunction
        }
      };
      statusUpdateSpan.innerHTML = 'Doing Animation.';
      finishMessage = 'Animation finished.';
      network.moveTo(options);
    }

    funct