function load_show_behaviors() {
	
	// this works with articles/article_li and articles/article_preview partials
	jQuery('div.article_info p.name a, h4 a').click(function() {
    jQuery.jsonhRequest({
      data: jQuery(this).serialize(),
      url: jQuery(this).attr("href"),
			type: "get",
      success: function(jsonResponse) {
				jQuery("#article_list_container").hide();
        jQuery("#article_preview_container").children("div").html(jsonResponse.html);
				jQuery("#article_preview_container").show();
				load_return_behaviors();
      }
    });
    
    return false;
  });
	
}

function load_return_behaviors() {
	jQuery('.article_list_return').click(function() {
		jQuery("#article_list_container").show();
		jQuery("#article_preview_container").hide();
	})
	
}


// ON LOAD

jQuery(function() {
  load_show_behaviors();
});