$j(document).ready(function($){
  $('#social-icons li a').mouseenter(function(){
    $(this).stop().animate({'left':'5px'},100);
  }).mouseleave(function(){
    $(this).stop().animate({'left':'0px'},100);
  });

  var newYear = new Date(); 
  newYear = new Date(newYear.getFullYear() + 1, 1 - 1, 1);
  $('#months.countdown-item p').countdown({
    until: new Date(2011, 9 - 1, 30),
    format: 'yODHMS',
    layout: '{on}'
  });
  $('#days.countdown-item p').countdown({
    until: new Date(2011, 9 - 1, 30),
    format: 'ODHMS',
    layout: '{dn}'
  });
  $('#hours.countdown-item p').countdown({
    until: new Date(2011, 9 - 1, 30),
    format: 'ODHMS',
    layout: '{hn}'
  });
  $('#minutes.countdown-item p').countdown({
    until: new Date(2011, 9 - 1, 301),
    format: 'ODHMS',
    layout: '{mn}'
  });
  $('#seconds.countdown-item p').countdown({
    until: new Date(2011, 9 - 1, 30),
    format: 'ODHMS',
    layout: '{sn}'
  });


  $("#theme-colour a").click(function() {
    var cssLink = $(this).attr('href');
    $("div").fadeOut(1000,function(){
      $("link").attr("href",cssLink);
      $.cookie("css",cssLink, {expires: 365, path: '/'});
      location.reload(true);

    });
    return false;
  });
  
});
