Permission granted to Dynamicdrive.com to feature script in archive
Modified by Dynamicdrive.com for feature alteration
For this and 100's more DHTML scripts, visit http://dynamicdrive.com
*/
//Configure the below three variables
(BallSpeed from 1 to 50, larger is faster)
var ballWidth = 40;
var ballHeight = 40;
var BallSpeed = 11;
var maxBallSpeed = 50;
var xMax;
var yMax;
var xPos = 0;
var yPos = 0;
var xDir = 'right';
var yDir = 'down';
var superballRunning = true;
var tempBallSpeed;
var currentBallSrc;
var newXDir;
var newYDir;