
// adapted from http://www.sitepoint.com/article/standards-compliant-world/1
window.onload = function () {
	var anchor, anchors, i;
	
	if ( !document.getElementsByTagName ) {
		return;
	}
	
	anchors = document.getElementsByTagName( 'a' );
	for ( i = 0; i < anchors.length; i+= 1 ) {
		anchor = anchors[i];
		if ( anchor.getAttribute('href') && anchor.getAttribute('rel') == 'external' ) {
			anchor.target = "_blank";
		}
	}
};

