var common = {
	setExternalLink: function() {
		var anchors = document.getElementsByTagName('a');

		for (var i = 0, l = anchors.length; i < l; i++) {
			var e = anchors[i];
			if (e.getAttribute('href') && ((e.className || e.getAttribute('class')) == 'external')) {
				e.target = '_blank';
			}
		}
	},

	init: function() {
		this.setExternalLink();
	}
};

$(document).ready(function() {
	common.init();
});