function create_slide(where_id,slot,image_array){
  return {

  where_id       : where_id,
  slot           : slot,
  images         : image_array,
  random         : create_random(),
  //fadder         : create_fadder(5,60,0),
  fadder         : create_fadder(5,65,15000),
  keep_going     : true,

  get_random_image : function(){
    if(this.number_visible == this.images.length){
      return this.images[this.random.get_random(this.images.length)];
    }
    var img,b = true;
    while(b){
      b = false;
      img = this.images[this.random.get_random(this.images.length)];
      for(var i=0;i<this.where_id.childNodes.length;i++){
        if(this.where_id.childNodes[i].img_name == img){
          b = true;
          continue;
        }
      }
    }
    return img;
  },
  fade_out: function(id,name){
    this.fadder.set_opacity(100);
    this.fadder.fade(id);
    var me = this; 
    var callback = function(){
      me.fade_in(id,name);
    };
    this.fadder.fade_out(id,callback);
  },
  fade_in: function(id,name){
    this.fadder.set_opacity(0);
    this.fadder.fade(id);
    id.src = name;
    
    var me = this; 
    var fn = function(){
      var callback = function(){
        me.slide();
      }
      me.fadder.fade_in(id,callback);
    };
    fn();
    //window.setTimeout(fn,0);
  },
  slide : function() {
    var me,img_name,next_slot,img_id;
    img_name = this.get_random_image();

    this.where_id.childNodes[this.slot].img_name = img_name;
    img_id = this.where_id.childNodes[this.slot].childNodes[0];
    //alert(img_id+":"+this.slot);
    me = this;
    var fn = function(){
      me.fade_out(img_id, img_name);
    }
    fn();
    var next_fn = function(){
      me.slide();
    }
  },

  start : function(){
    this.slide();
  }

  };  // return
};

