/*
 * @author alex at zybar dot net ; http://alex.zybar.net
 */
function ExternalAnchors() {} // empty
ExternalAnchors.main = function() {
	var anchors = document.getElementsByTagName('a');
	if (anchors.length > 0) {
		for (var i = 0; i < anchors.length; i++) {
			var anchor = anchors.item(i);
			if (anchor.className == "external") { // TODO : handle multiple classes
				if (document.all) { // TODO : verify
					anchor.onclick = function() {
						window.open(this.href); return false;
					}	
				} else {
					anchor.setAttribute("onclick",
						"window.open(this.href); return false;");
				}
			}
		}
	}
}
