function showPressRelease(id) {
        // load press release content
        $.ajax({
                type: "GET",
                url: "/press.php",
                data: "mode=ajax&info=full&id=" + id,
                success: function(prHtml) {
                        $("#pr" + id).parent('p').after(prHtml);
			$("#story" + id).slideDown();
                        $("#story" + id).scrollTo(1000);
                }
        });

}

function hidePressRelease(id) {
	$('#story' + id).remove();
}

jQuery.fn.extend({
  scrollTo : function(speed, easing) {
    return this.each(function() {
      var targetOffset = $(this).offset().top;
      $('html,body').animate({scrollTop: targetOffset}, speed, easing);
    });
  }
});

