// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
function apply_external_links_to_rel_external() {
	var links = document.getElementsByTagName("a");
	$A(links).each( function(e) {
		if( $(e).readAttribute('rel') == 'external' ) {
			e.target = "_blank";
		}
	} );
}
Event.observe(window, 'load', apply_external_links_to_rel_external );
