// based on the JS provided by Andy Langton and distibuted under the creative commons license

// this tells jquery to run the function below once the DOM is ready
$(document).ready(function() {

// choose text for the show/hide link
var showText="More information...";
var hideText="Hide additional information...";

// create the toggle link
$("#thefold").before("<p><a href='#' id='toggle_link'>"+showText+"</a>");

// hide the content
$('#thefold').hide();
$('#thefold').siblings('#thefold ~ *').hide().toggleClass("activetext");


// capture clicks on the newly created link
$('a#toggle_link').click(function() {

// change the link text
if ($('a#toggle_link').text()==showText) {
$('a#toggle_link').text(hideText);
}
else {
$('a#toggle_link').text(showText);
}

// toggle the display
$('.activetext').toggle('slow');

// return false so any link destination is not followed
return false;
				});

});
