( function($) {
      
      var hidden = true;
      var speed  = 100;
      
      function bind_read_more() {
	  jQuery("#description_display_toggler").bind(
	      'click',
	      function () {
		  var t = jQuery(this);
		  
		  // Make the link say the right thing & save the old text
		  var new_text = $.trim(t.attr("alt_text"));
		  var old_text = $.trim(t.html());
		  t.html(new_text);
		  t.attr("alt_text", old_text);
		  
		  // show/hide
		  if ( hidden ) {
		      jQuery("#description_2").slideDown(
			  speed,
			  function() {
			      jQuery("#description_2").css("display", "inline");
			  });
		  }
		  else {
		      jQuery("#description_2").slideUp(speed);
		  }
		  hidden = !hidden;
		  return false;
	      });
      }

      var post_show_callback = function( button, togglable, base, wrapper ) {
                          button.html( "See less posts" );
      };

      var post_hide_callback = function( button, togglable, base, wrapper ) {
                          button.html( "See more posts" );
      };
      
      $(document).ready(
	  function() {
              bind_read_more();
              $(".read_more.posts_for_app_wrapper").read_more(
                  {
                      show_callback : post_show_callback,
                      hide_callback : post_hide_callback
                  }
              );
	  });
  })(jQuery);