var nDots = 7;

var Xpos = 0;

var Ypos = 0;



// fixed time step, no relation to real time

var DELTAT = .01;

// size of one spring in pixels

var SEGLEN = 10;

// spring constant, stiffness of springs

var SPRINGK = 10;

// all the physics is bogus, just picked stuff to

// make it look okay

var MASS = 1;

var GRAVITY = 50;

var RESISTANCE = 10;

// stopping criteria to prevent endless jittering

// doesn't work when sitting on bottom since floor

// doesn't push back so acceleration always as big

// as gravity

var STOPVEL = 0.1;

var STOPACC = 0.1;

var DOTSIZE = 11;

// BOUNCE is percent of velocity retained when bounced

var BOUNCE = 0.75;



var isNetscape = navigator.appName=="Netscape";



// always on for now, could be played with to

// let dots fall to botton, get thrown, etc.

var followmouse = true;



var dots = new Array();

init();


