document.observe('dom:loaded', function(event){
  // tips
  $$('a[tip]').each(function(element) {
    new Tip(element, element.readAttribute("tip"), {
      style: 'protogrey',
      delay: 0.1,
      stem: 'bottomMiddle',
      hideOn: 'mouseleave',
      hook: { tip: 'bottomMiddle', target: "topMiddle" },
      offset: { x: 0, y: 7 },
      width: 'auto',
      border: 6
    });
  });
  
  // tips titre video
  $$('a[tipt]').each(function(element) {
    new Tip(element, element.readAttribute("tipt"), {
      style: 'protoblue',
      delay: 0.1,
      stem: 'bottomMiddle',
      hideOn: 'mouseleave',
      hook: { tip: 'bottomMiddle', target: "topMiddle" },
      offset: { x: 0, y: 7 },
      width: 'auto',
      border: 6
    });
  });
  
});
  
  
  Event.addBehavior.reassignAfterAjax = true;
  Event.addBehavior({
    'div.pagination a' : Remote.Link,
    '#logo': function(){ this.setStyle({ cursor: 'pointer' }) },
    '#logo:click': function(e){ document.location="/" }
  });

