bongo.attach( 'click', document.body, function(e) {
	var obj = e.target;
	
	/* climb up the dom tree, looking for links */
	while( obj.tagName ) {
		if( obj.tagName == 'A' ) {
			
			/* if the "target" attr is unspecified, figure it out */
			if( !obj.target ) {
				
				/* found one! if it's an external link, open it in a new window */
				if( obj.href.indexOf(location.hostname) != -1 ) { obj.target = '_self';  }
				else                                            { obj.target = '_blank'; }
			}
		}
		
		/* climb to the parent */
		obj = obj.parentNode;
	}
});
