Cufon.set('fontFamily', 'sabon').replace('h1')('p.strapline')('h2')('.subNav li a');
Cufon.set('fontFamily', 'sabon-roman').replace('#nav li.nav a')('.first .drop');

$(document).ready(function() {
    minimise();
    $(".form fieldset.friends:last").after('<a href="#" class="addMore">Add more friends</a>');

    $(".addMore").live("click", function(event) {
    $(".form fieldset.friends:hidden:first").show();
    if ($(".form fieldset.friends:hidden").length == 0) {
      $(".compForm .addMore").remove();
    }
    return false;
})

$(".showAll").live("click", function(event) {
    showAll();
    return false;
});

$(".minimise").live("click", function() {
    minimise();
    return false;
});
$("a[href='#comments']").live("click", function(event) {
    showAll();
    return true;
})



});

/* Functions */
var minimise = function() {
    $(".comments .form").addClass("hide");
    if ($(".minimise")) {
        $(".comments .minimise").remove();
    }
    $(".comments .form").after('<a href="#" title="show all comment results" class="showAll"><span></span>Show all</a>')
}
var showAll = function() {
    $(".comments .form").removeClass("hide");
    $(".comments .showAll").remove();
    $(".comments .minimise").remove();
    $(".comments .form").after('<a href="#" title="minimise comment results" class="minimise"><span></span>Minimise comments</a>')
}


