// <script language="JavaScript">
   
   /*
      >>>>> Document Blue Dance <<<<<
      >>By Konstantinos Hatzopoulos<<

      http://www.geocities.com/konstantinos_x

      You can change the number of the images by changing the ammount number (1-20)
      You can change the speed by changing the tempo number (the more the slower)
      You can change the image url by changing the image variable below
   */
   
   var ammount = 3; //5; //10; 
   var tempo = 2000; //275; //150; //110; //85; 
// var image = 'images/blue_dance.gif';
// var image = 'images/blue_dance_blue_butterfly.gif';
// var image = 'images/blue_dance_USA_balloon.gif';
//2var image = 'images/blue.gif';
/* ********************************************************************** */
/* added 02-09-2005 by Charles                                            */
/* ********************************************************************** */
   time = new Date();
   mins = time.getMinutes();
   if      (mins >= 45) {var image = 'images/blue_ball.gif';} 
   else if (mins >= 30) {var image = 'images/blue_balloon.gif';}
   else if (mins >= 15) {var image = 'images/blue_butterfly.gif';}
   else                 {var image = 'images/blue_spinner.gif';}
   image = 'images/blue_balloon.gif';
/* ********************************************************************** */
/* ********************************************************************** */

   var vk=new Array('dbd1','dbd2','dbd3','dbd4','dbd5','dbd6','dbd7','dbd8','dbd9','dbd10','dbd11');
   
   function konstantinos(id) {
      if (document.all) {return document.all[id].style;} 
      else if(document.layers) {return document.layers[id];}
   }
   
   function neo() {
      var ny1=(ykx2-30)*Math.random()+document.body.scrollTop;
      var nx1=(xkx2-30)*Math.random()+document.body.scrollLeft;
      var ny2=(ykx2-30)*Math.random()+document.body.scrollTop;
      var nx2=(xkx2-30)*Math.random()+document.body.scrollLeft;
      var ny3=(ykx2-30)*Math.random()+document.body.scrollTop;
      var nx3=(xkx2-30)*Math.random()+document.body.scrollLeft;
      var ny4=(ykx2-30)*Math.random()+document.body.scrollTop;
      var nx4=(xkx2-30)*Math.random()+document.body.scrollLeft;
      var ny5=(ykx2-30)*Math.random()+document.body.scrollTop;
      var nx5=(xkx2-30)*Math.random()+document.body.scrollLeft;
      var ny6=(ykx2-30)*Math.random()+document.body.scrollTop;
      var nx6=(xkx2-30)*Math.random()+document.body.scrollLeft;
      var ny7=(ykx2-30)*Math.random()+document.body.scrollTop;
      var nx7=(xkx2-30)*Math.random()+document.body.scrollLeft;
      var ny8=(ykx2-30)*Math.random()+document.body.scrollTop;
      var nx8=(xkx2-30)*Math.random()+document.body.scrollLeft;
      var ny9=(ykx2-30)*Math.random()+document.body.scrollTop;
      var nx9=(xkx2-30)*Math.random()+document.body.scrollLeft;
      var ny10=(ykx2-30)*Math.random()+document.body.scrollTop;
      var nx10=(xkx2-30)*Math.random()+document.body.scrollLeft;
      dose (tempo,nx1,ny1,nx2,ny2,nx3,ny3,nx4,ny4,nx5,ny5,nx6,ny6,nx7,ny7,nx8,ny8,nx9,ny9,nx10,ny10);
   }
   
   function dose (speed,x1,y1,x2,y2,x3,y3,x4,y4,x5,y5,x6,y6,x7,y7,x8,y8,x9,y9,x10,y10) {
      var x=new Array(x1,x2,x3,x4,x5,x6,x7,x8,x9,x10);
      var y=new Array(y1,y2,y3,y4,y5,y6,y7,y8,y9,y10);
      if (speed == 0 ) {
         neo ();
      }
      if (speed > 0) {
         for (var k=0; k < ammount; k++) { 
            var the= vk[k];
            var se = new Object;
            var se = konstantinos(the);
            var movex=(x[k]-parseInt(se.left))/speed;
            var movey=(y[k]-parseInt(se.top))/speed;
            var kx=movex;
            var lefter= parseInt(se.left) + movex;
            var toper=parseInt(se.top) + movey+kx;
            se.left = lefter;
            se.top = toper;
         }
      }
      speed--; 
      setTimeout ("dose('"+speed+"','"+x1+"','"+y1+"','"+x2+"','"+y2+"','"+x3+"','"+y3+"','"+x4+"','"+y4+"','"+x5+"','"+y5+"','"+x6+"','"+y6+"','"+x7+"','"+y7+"','"+x8+"','"+y8+"','"+x9+"','"+y9+"','"+x10+"','"+y10+"')", 1)
   }
   
// </script>
