document.writeln('<DIV id=dot0 style=\"VISIBILITY: hidden; WIDTH: 72px; POSITION: absolute; HEIGHT: 72px\"><IMG height=72 src=\"bullet.gif\" width=72> </DIV><DIV');
document.writeln('id=dot1 style=\"WIDTH: 72px; POSITION: absolute; HEIGHT: 72px\"><IMG height=72 src=\"../files/bullet.gif\" width=72> </DIV><DIV id=dot2 ');
document.writeln('style=\"WIDTH: 72px; POSITION: absolute; HEIGHT: 72px\"><IMG height=72 src=\"../files/bullet.gif\" width=72> </DIV><DIV id=dot3 ');
document.writeln('style=\"WIDTH: 11px; POSITION: absolute; HEIGHT: 72px\"><IMG height=72 src=\"../files/bullet.gif\" width=72> </DIV><DIV id=dot4 style=\"WIDTH: 11px;');
document.writeln('POSITION: absolute; HEIGHT: 72px\"><IMG height=72 src=\"../files/bullet.gif\" width=72> </DIV><DIV id=dot5 ');
document.writeln('style=\"WIDTH: 72px; POSITION: absolute; HEIGHT: 72px\"><IMG height=72 src=\"../files/bullet.gif\" width=72> </DIV><DIV id=dot6 ');
document.writeln('style=\"WIDTH: 72px; POSITION: absolute; HEIGHT: 72px\"><IMG height=72 src=\"../files/bullet.gif\" width=72> </DIV>');
document.writeln('<SCRIPT language=JavaScript>');
document.writeln('<!-- hide code');
document.writeln('');
document.writeln('/*');
document.writeln('Elastic Trail script (By Philip Winston @ pwinston@yahoo.com, URL: http://www.geocities.com/pwinston/)');
document.writeln('Script featured on Dynamicdrive.com');
document.writeln('For this and 100\'s more DHTML scripts, visit http://dynamicdrive.com');
document.writeln('*/');
document.writeln('');
document.writeln('var nDots = 7;');
document.writeln('var Xpos = 0;');
document.writeln('var Ypos = 0;');
document.writeln('var DELTAT = .01;');
document.writeln('var SEGLEN = 10;');
document.writeln('var SPRINGK = 10;');
document.writeln('var MASS = 1;');
document.writeln('var XGRAVITY = 0;');
document.writeln('var YGRAVITY = 50;');
document.writeln('var RESISTANCE = 10;');
document.writeln('var STOPVEL = 0.1;');
document.writeln('var STOPACC = 0.1;');
document.writeln('var DOTSIZE = 72;');
document.writeln('var BOUNCE = 0.75;');
document.writeln('');
document.writeln('var isNetscape = navigator.appName==\"Netscape\";');
document.writeln('');
document.writeln('// always on for now, could be played with to');
document.writeln('// let dots fall to botton, get thrown, etc.');
document.writeln('var followmouse = true;');
document.writeln('');
document.writeln('var dots = new Array();');
document.writeln('init();');
document.writeln('');
document.writeln('function init()');
document.writeln('{');
document.writeln('var i = 0;');
document.writeln('for (i = 0; i < nDots; i++) {');
document.writeln('dots[i] = new dot(i);');
document.writeln('}');
document.writeln('');
document.writeln('if (!isNetscape) {');
document.writeln('}');
document.writeln('');
document.writeln('// set their positions');
document.writeln('for (i = 0; i < nDots; i++) {');
document.writeln('dots[i].obj.left = dots[i].X;');
document.writeln('dots[i].obj.top = dots[i].Y;');
document.writeln('}');
document.writeln('');
document.writeln('if (isNetscape) {');
document.writeln('startanimate();');
document.writeln('} else {');
document.writeln('setTimeout(\"startanimate()\", 1000);');
document.writeln('}');
document.writeln('}');
document.writeln('');
document.writeln('function dot(i) ');
document.writeln('{');
document.writeln('this.X = Xpos;');
document.writeln('this.Y = Ypos;');
document.writeln('this.dx = 0;');
document.writeln('this.dy = 0;');
document.writeln('if (isNetscape) {');
document.writeln('this.obj = eval(\"document.dot\" + i);');
document.writeln('} else {');
document.writeln('this.obj = eval(\"dot\" + i + \".style\");');
document.writeln('}');
document.writeln('}');
document.writeln('');
document.writeln('function startanimate() {');
document.writeln('setInterval(\"animate()\", 20);');
document.writeln('}');
document.writeln('function setInitPositions(dots)');
document.writeln('{');
document.writeln('');
document.writeln('var startloc = document.all.tags(\"LI\");');
document.writeln('var i = 0;');
document.writeln('for (i = 0; i < startloc.length && i < (nDots - 1); i++) {');
document.writeln('dots[i+1].X = startloc[i].offsetLeft');
document.writeln('startloc[i].offsetParent.offsetLeft - DOTSIZE;');
document.writeln('dots[i+1].Y = startloc[i].offsetTop +');
document.writeln('startloc[i].offsetParent.offsetTop + 2*DOTSIZE;');
document.writeln('}');
document.writeln('');
document.writeln('dots[0].X = dots[1].X;');
document.writeln('dots[0].Y = dots[1].Y - SEGLEN;');
document.writeln('}');
document.writeln('');
document.writeln('function MoveHandler(e)');
document.writeln('{');
document.writeln('Xpos = e.pageX;');
document.writeln('Ypos = e.pageY;');
document.writeln('return true;');
document.writeln('}');
document.writeln('');
document.writeln('function MoveHandlerIE() {');
document.writeln('Xpos = window.event.x + document.body.scrollLeft;');
document.writeln('Ypos = window.event.y + document.body.scrollTop;');
document.writeln('}');
document.writeln('');
document.writeln('if (isNetscape) {');
document.writeln('document.captureEvents(Event.MOUSEMOVE);');
document.writeln('document.onMouseMove = MoveHandler;');
document.writeln('} else {');
document.writeln('document.onmousemove = MoveHandlerIE;');
document.writeln('}');
document.writeln('');
document.writeln('function vec(X, Y)');
document.writeln('{');
document.writeln('this.X = X;');
document.writeln('this.Y = Y;');
document.writeln('}');
document.writeln('');
document.writeln('function springForce(i, j, spring)');
document.writeln('{');
document.writeln('var dx = (dots[i].X - dots[j].X);');
document.writeln('var dy = (dots[i].Y - dots[j].Y);');
document.writeln('var len = Math.sqrt(dx*dx + dy*dy);');
document.writeln('if (len > SEGLEN) {');
document.writeln('var springF = SPRINGK * (len - SEGLEN);');
document.writeln('spring.X += (dx / len) * springF;');
document.writeln('spring.Y += (dy / len) * springF;');
document.writeln('}');
document.writeln('}');
document.writeln('');
document.writeln('function animate() {');
document.writeln('var start = 0;');
document.writeln('if (followmouse) {');
document.writeln('dots[0].X = Xpos;');
document.writeln('dots[0].Y = Ypos;');
document.writeln('start = 1;');
document.writeln('}');
document.writeln('');
document.writeln('for (i = start ; i < nDots; i++ ) {');
document.writeln('');
document.writeln('var spring = new vec(0, 0);');
document.writeln('if (i > 0) {');
document.writeln('springForce(i-1, i, spring);');
document.writeln('}');
document.writeln('if (i < (nDots - 1)) {');
document.writeln('springForce(i+1, i, spring);');
document.writeln('}');
document.writeln('');
document.writeln('var resist = new vec(-dots[i].dx * RESISTANCE,');
document.writeln('-dots[i].dy * RESISTANCE);');
document.writeln('');
document.writeln('var accel = new vec((spring.X + resist.X)/MASS + XGRAVITY,');
document.writeln('(spring.Y + resist.Y)/ MASS + YGRAVITY);');
document.writeln('');
document.writeln('dots[i].dx += (DELTAT * accel.X);');
document.writeln('dots[i].dy += (DELTAT * accel.Y);');
document.writeln('');
document.writeln('if (Math.abs(dots[i].dx) < STOPVEL &&');
document.writeln('Math.abs(dots[i].dy) < STOPVEL &&');
document.writeln('Math.abs(accel.X) < STOPACC &&');
document.writeln('Math.abs(accel.Y) < STOPACC) {');
document.writeln('dots[i].dx = 0;');
document.writeln('dots[i].dy = 0;');
document.writeln('}');
document.writeln('');
document.writeln('dots[i].X += dots[i].dx;');
document.writeln('dots[i].Y += dots[i].dy;');
document.writeln('window');
document.writeln('var height, width;');
document.writeln('if (isNetscape) {height = window.innerHeight + window.pageYOffset;width = window.innerWidth + window.pageXOffset;');
document.writeln('} else {height = document.body.clientHeight + document.body.scrollTop;width = document.body.clientWidth + document.body.scrollLeft;');
document.writeln('}');
document.writeln('');
document.writeln('if (dots[i].Y >=height - DOTSIZE - 1) {');
document.writeln('if (dots[i].dy > 0) {');
document.writeln('dots[i].dy = BOUNCE * -dots[i].dy;');
document.writeln('}');
document.writeln('dots[i].Y = height - DOTSIZE - 1;');
document.writeln('}');
document.writeln('if (dots[i].X >= width - DOTSIZE) {');
document.writeln('if (dots[i].dx > 0) {');
document.writeln('dots[i].dx = BOUNCE * -dots[i].dx;');
document.writeln('}');
document.writeln('dots[i].X = width - DOTSIZE - 1;');
document.writeln('}');
document.writeln('if (dots[i].X < 0) {');
document.writeln('if (dots[i].dx < 0) {');
document.writeln('dots[i].dx = BOUNCE * -dots[i].dx;');
document.writeln('}');
document.writeln('dots[i].X = 0;');
document.writeln('}');
document.writeln('');
document.writeln('dots[i].obj.left = dots[i].X;');
document.writeln('dots[i].obj.top =dots[i].Y;');
document.writeln('}');
document.writeln('}');
document.writeln('');
document.writeln('</SCRIPT>');

