/*
Since target="_blank" is invalid as of html 4 strict, this allows the anchors to do the same 
thing but with the valid rel="external"
*/
function fixExternalLinks() {
	$$('a').each(function(anchor) {
		if (anchor.readAttribute('href') && anchor.readAttribute('rel') == 'external' &&
			!anchor.readAttribute('target'))
			anchor.writeAttribute('target','_blank');
	}); 
};
//Fix all anchor that need fixing when dom is loaded
Event.observe(document, 'dom:loaded', function() {
	fixExternalLinks();
}, false);