      statusUpdateSpan.innerHTML = 'Doing fit() Animation.';
      finishMessage = 'Animation finished.';
      network.fit({animation:options});
    }

    function doDefaultAnimation() {
      updateValues();

      var options = {
        position: {x:positionx,y:positiony},
        scale: scale,
        offset: {x:offsetx,y:offsety},
        animation: true // default duration is 1000ms and default easingFunction is easeInOutQuad.
      };
      statusUpdateSpan.innerHTML = 'Doing Animation.';
      fin