;(function($) {
	var busy = false;
	$.fn.trunc = function() {	
		return this.each(function() {
			var self = $(this);
			var orig = self.html();
			
			if (orig.search(/<!-- pagebreak -->/)!=-1) {
				var orig_truncated = orig.split(/<!-- pagebreak -->/im);
				
				var html = '<div class="prop-team"></div><div class="cv_mini">' + orig_truncated[0] + '</div>';
				html 	+= '<div class="cv_full">' + orig_truncated[1] + '</div>';
				html	+= '<div class="truncate"><a class="cv_more" href="#">Continue Reading</a></div><div class="prop-clear"></div>';
				
				$(self).html(html);
				
				var continue_height = $(".cv_full",self).height();
				$(".cv_full",self).height(1);
	
				$(".cv_more",self).click(
					function() {
						if ($(".cv_full",self).height()>1) {
							$(".cv_full",self).animate({height:'1px'});
							$(".cv_more",self).text("Continue Reading");
						} else {
							$(".cv_full",self).animate({height:continue_height});
							$(".cv_more",self).text("Close");
						}
						return false;
					}
				);
			}
		});
	};
})(jQuery);