function wdpCreate(container, params){
    container.hide();
    var self = container.get(0);
    
    self.closeTime = params.closeTime;
    
    container.draggable();
    
    self.timer = null;
    container.mouseenter(function(){
      debug("container mouseenter "+this.timer);
      if(this.timer){
        clearTimeout(this.timer);
      }
    });
    container.mouseleave(function(){
      debug("container mouseleave "+this.timer);
        if(this.timer){
          clearTimeout(this.timer);
        }
        this.timer = setTimeout(this.hide, this.closeTime);
    });
    
  self.show = function(data){
    $("#wdpContent", this).empty();
    $("#wdpContent", this).append(data);
    if(this.timer){
      clearTimeout(this.timer);
    }
    this.timer = setTimeout(this.hide, this.closeTime);
    if(!this.visible){
      $(this).css({
        left:$(window).width()-510,
        top:5
      });
      $(this).slideDown();
      this.visible = true;
    }
  }

  self.hide = function(){
    $(self).slideUp(500, function(){
      self.visible = false;
      clearTimeout(self.timer);
    });
  }
}
