/* window.onload=rewriteExternalLinks(); */

function rewriteExternalLinks(){
	var content = $('contentbody');
	var links = $A(content.getElementsByTagName('a'));
	//find links that do not start with 'http'
	var localLinks = links.findAll( function(link){
		var start = link.href.substring(0,4);
		return start =='http';
	});

        localLinks.each(function(node) {
          node.target='_blank';
        });
}
