Event.addBehavior({
    "img.tip:click" : function(){
      Dialog.info("<div class='sans-serif' style='padding: 5px; text-align: left;'>"+this.title+"</div>", {width:200, draggable: true, closable: true, title: this.alt, className: "alphacube", okLabel: "close", showEffect: Effect.Appear, showEffectOptions: {duration: 0.5}, hideEffect: Effect.Fade, hideEffectOptions: {duration: 0.4}});
    },

    "div.hidden" : function() {
      this.cache=this.innerHTML;
      this.update("<span style='text-decoration: underline; cursor: pointer;'>Hidden, click to show</span>");
    },
    "div.hidden:click" : function() {
      this.update(this.cache);
    },

    /*
    "div.book-entry" : function() {
      $(this.id + "_hideable").hide();
    },
    "div.book-entry:mouseover" : function() {
        window.alert('enter');
        $(this.id + "_hideable").show();
    },
    "div.book-entry:mouseout" : function() {
        window.alert('out');
        $(this.id + "_hideable").hide();
    },
    */

    "div.book-entry:onmouseover" : function() {
    },

    "div.more-information" : function() {
      Insertion.After(this, "<div class='blend expand-more-information' style='text-decoration: underline; cursor: pointer; text-align: center;'>more information...</div>");
      this.hide();
      Event.addBehavior({
        "div.expand-more-information:click" : function() {
          $$("div.more-information").invoke('show');
          this.hide();
        }
      })
    },

    "div.more-information-autoexpand" : function() {
      Insertion.After(this, "<div class='blend expand-more-information-autoexpand' style='text-decoration: underline; cursor: pointer; text-align: center;'>more information...</div>");
      this.hide();
        Event.addBehavior({
          "div.expand-more-information-autoexpand:mouseover" : function() {
           this.stopObserving();
           $$("div.more-information-autoexpand").invoke('blindDown', {duration: 0.4 }) ;
           // this.hide();
           this.blindUp({duration: 0.4});
          }
        })
    }
    });
