/* Created by Victor */

function init(){
  num=9;
  Lname='bullet';
  Speed1=4;
  Speed2=2;

  oDiv=new Array();
  for(i=1;i<=num;i++){
    oDiv[i]=new makeObj(Lname+i,0,i)
  }

// oDiv[tpage].mStart();
}

function makeObj(obj,x,n){
  this.css=document.layers?document.layers[obj]:document.all?document.all[obj].style:document.getElementById?document.getElementById(obj).style:0;
  this.x=x;
  this.n=n;
  this.moved=false;
  this.mOut=mOutF;
  this.mOver=mOverF;
  this.mStart=mStartF;
  return this
}

function mStartF(){
  this.css.visibility='hidden';
}

function mOutF(){
  if(this.x>2){
    this.moved=true;
    this.css.left=this.x-=Speed2;
    setTimeout('oDiv['+this.n+'].mOut()',30);
  }else{
    this.moved=false;
  }
}

function mOverF(){
  if(this.x<=20 && !this.moved){
    this.css.left=this.x+=Speed1;
    setTimeout('oDiv['+this.n+'].mOver()',30);
  }
}

