====== scrollByPath ======
Emulates scroll through the intermediate points.
===== Syntax =====
scrollByPath = function(aPath);
==== Parameters ====
* **//aPath//**
* //functions:// array of intermediate points of scrolling
===== Notes =====
* The coordinates of the array aPath determine the amount of scrolling horizontally (X) and vertical (Y). Duration field of point specifies the time at which execution will be stopped after its passage.
===== Examples =====
-//As a result of execution the page is scrolled down 500 points down at a slower pace
var path = [];
for (var i = 0; i < 50; i++){
var point = {};
point.x = 0;
point.y = -10;
point.duration = i*2;
path.push(point);
}
scrollByPath(path);