// 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="Learn More";
var hideText="Hide Info";

// append show/hide links to the element directly preceding the element with a class of "toggle"
$(".toggle_res").prev().append('&nbsp;<a href="#" class="toggleLink">'+showText+'</a>&raquo;');

// hide all of the elements with a class of 'toggle'
$('.toggle_res').hide();

// capture clicks on the toggle links
$('a.toggleLink').click(function() {

// change the link text depending on whether the element is shown or hidden
if ($(this).text()==showText) {
$(this).text(hideText);
}
else {
$(this).text(showText);
}

// toggle the display
$(this).parent().next('.toggle_res').toggle('fast');

// return false so any link destination is not followed
return false;

});
});
