$(function() {
  /* Last child */
  $("*:last-child").addClass("last-child");
	
  /*  */
  $(".navig ul li").hover(function(){
    $(this).addClass('over')
  });
  $(".navig ul li").mouseleave(function(){
    $(this).removeClass('over')
  });
	
  /* Popup de la topbar */
  $('#websites, #websites-bloc').hover(function() {
	  $('#websites-bloc').show();
  }, function(){
	  $('#websites-bloc').hide();
  });
  
  $('#languages, #languages-bloc').hover(function() {
	  $('#languages-bloc').show();
  }, function(){
	  $('#languages-bloc').hide();
  });

      $('#signin_username').one('click', function(){$(this).val('');});
      $('#signin_password').one('click', function(){$(this).val('');});
      
});


// add parser through the tablesorter addParser method
$.tablesorter.addParser({
  // set a unique id
  id: 'playername',
  is: function(s) {
    // return false so this parser is not auto detected
    return true;
  },
  format: function(s) {

    s = s.replace(/'/g, "&#39;");
    var matchTag = /<(?:.|\s)*?>/g;
    s = s.replace(matchTag, "");

    // format your data for normalization
    return s;
  },
  // set type, either numeric or text
  type: 'text'
});
