$(document).ready(function(){ /// the DOM-ready thing
//================== manually and automatically designated internal and external links with icons
$(function(){
$('a[href^="http://"]').addClass('external').attr('target','_blank');
$('a[href^="https://"]').addClass('external').attr('target','_blank');
$('.external').attr('target','_blank');
$('a[href$=pdf]').addClass('pdfLink').attr('target','_blank');
$('a[href$=doc]').addClass('wordLink').attr('target','_blank');
});

//================= jQuery Scroll to Top
//================= This also counts the paragraphs and assigns links as defined by eq(n)
//** http://www.electrictoolbox.com/jquery-scroll-top/ with add links to certain paragraphs added bits by MVJ
//** define the HTML string to insert	
//	$('<div class="BacktoTopCont"><a href="#top">Top</a></div>')
//	.insertAfter('div#contentTextArea p:eq(2), div#contentTextArea p:eq(4), div#contentTextArea p:eq(5)');
//** and now add the click function
	//$('a[href*=#top]').click(function(){
//	$('html, body').animate({scrollTop:0}, 3000);
//	return false;
//});
}); /// the DOM ready thing thats covers all the above snippets

