// Hooray! Pretty colours! 2010.03.22

$(document).ready(function() {
  /*var colours = {
    //Benihana:    'orange',
    brominated:  '#ff00bf',
    //kows:        '#09f',
    //jackelpdw:   '#008000',
  };
  $('.postprofile > dt > a:last-child').add(
    '.lastpost > span > a').add(
    '.author > strong > a').each(function() {

    var e = $(this), username = $.trim(e.text());
    if(colours[username])
      e.css('color', colours[username]);
  });*/

  var colours = {
    60: '#ff00bf', // Boris
    71: 'orange',  // Bucky
    67: '#09f',    // Mr. Miles
    84: '#008000'  // Mr. Dennis
  };
  // Potential optimization: don't loop for each colour, but instead use more general selector that
  // finds all name links, then parse the href attribute to determine the UID and set the colour
  // accordingly.
  $.each(colours, function(uid, colour) {
    $('a[href=./memberlist.php?mode=viewprofile&u='+uid+']').css('color', colour);
  });
});
