$(function() {
var RelChemin = $("div.arrange a[rel]:first").attr("rel");
if (RelChemin) {
$.getJSON(RelChemin+'/titres/titres.js',function(data) {
$("div.arrange").switchClass('arrange','arrangeLst',0);
 $.each(data.titres,function(i,titres) {
 var tempA = $('div.arrangeLst a[href$='+titres.pdf+']');
 if (tempA) {
  tempA.html(titres.titre+' - '+tempA.html()).attr("title",tempA.html());
  }
  });
});
}
 $('<div id="livetip"></div>').hide().appendTo('body');
var tipTitle = '';
$('div.arrangeLst a').live('mouseover', function(event) {
  var $link = $(this);
  tipTitle = this.title;
  var intTiret = tipTitle.lastIndexOf("-");
  var strHtml = "";
  if (intTiret > 0) {
   strHtml = '<div>' + tipTitle.substring(0,intTiret) + '</div><div class="r">' + tipTitle.substring(intTiret+1) + '</div>';
  }else {
  strHtml = tipTitle;
  }
  this.title = '';
  $('#livetip')
  .css({
 top: event.pageY + 12,
 left: event.pageX + 12
  })
  .html(strHtml)
  .show();
}).live('mouseout', function(event) {
  this.title = tipTitle;
  $('#livetip').hide();
});
});