// -----------------------------------------------------------------------------
//	nk-externallinks v1.0.0 (for prototype.js v1.5)
//	by Nathan Kelly - http://www.nathan-kelly.com/
//	to email me, the address is my first name at my domain
//	Last Modification: 11th November 2008
// -----------------------------------------------------------------------------
//	Licensed under the Creative Commons Attribution 2.5 Australia License
//	http://creativecommons.org/licenses/by/2.5/au/
//  	- Free for use in both personal and commercial projects
//	- Attribution requires leaving author name, author link, and the license info intact.
// -----------------------------------------------------------------------------
var nk_externallinks = Class.create();
nk_externallinks.prototype = {
	initialize: function() {	
		var links = $$('a');
		for (var i=0; i<links.length; i++) {
			if ( String(links[i].getAttribute('rel')) == 'external' ) {
				links[i].setAttribute('target', '_blank');	
			}
		}
	}	
};
function initExtLinks(){if(!document.getElementById('container')) return; nk_externallinks=new nk_externallinks();};
Event.observe(window, 'load', initExtLinks);
