Event.observe(window, 'load', function() {
/*
 * Should work, but implies a bug in prototype under IE (cf. #5736)
 * 
	if (Prototype.Browser.IE) {
	    Event.observe('location', 'mousedown', function(){
	    	$(this).setStyle({width: 'auto'});
	    });
	    Event.observe('location', 'blur', function(){
	    	$(this).setStyle({width: '100%'});
	    }); 
	}
*/
    $$('a[rel="external"]').each(function(link){
        if(link.readAttribute('href') != '' && link.readAttribute('href') != '#'){
            link.writeAttribute('target','_blank');
        }
    });

});