function addTweetLinks(targObj){
	var regexp = /((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi;
	var regexp1 = /((@)(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi;
	jQuery('#' + targObj + ' dt').each(
		function(){
			jQuery(this).html(jQuery(this).html().replace(regexp,'<a href="$1">$1</a>'));
		}
	);
	jQuery('#' + targObj + ' dt').each(
		function(){
			jQuery(this).html(jQuery(this).html().replace(regexp1,'<a href="http://www.twitter.com/$1">$1</a>'));
		}
	);
}


function paginateArticle(paginateID){
	//get all the contents before each page break and put it into the pageBlock empty div
	jQuery('#' + paginateID + ' .content2paginate .pageBlock').each(
		function(){
			
			//get the number of previous siblings
			var numPrevSibs = jQuery(this).prevUntil('div').size();
			
			//loop and prepend each to the pageBlock div
			for(i = 0; i < numPrevSibs; i++){
				jQuery(this).prev().prependTo(this);
			}
			
			jQuery(this).attr('title','test');
			
			//***this doesn't always return the siblings in the correct order
			//jQuery(this).prevUntil('div').appendTo(this);
			//***this doesn't always return the siblings in the correct order
		}
	);
	$('#' + paginateID + ' .content2paginate .pageBlock:last').nextAll().wrapAll('<div class="pageBlock"></div>');
	
	var pages = $('#' + paginateID + '  .content2paginate');
	
	if(!overridePaginateArticle){
		$('#' + paginateID + ' .article-pagination a').click(function(){
			var action = $(this).attr('rel'); // get the appropriate action from the rel attribute
			pages.trigger(action+'.evtpaginate');
			return false;
		});
		pages.evtpaginate({perPage:1, atEnd:'stop'}); // call the plugin!	
	}
}
