function externalLinks() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName('a');
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute('href') && anchor.getAttribute('rel') == 'external')
			anchor.target = '_blank';
	}
}
function bgrCache() {
	try {
	  document.execCommand('BackgroundImageCache', false, true);
	} catch(e) {}
}
function defocus() {
	if (!document.getElementById) return;
	var anchors = document.getElementById('nav').getElementsByTagName('a');
	for (var i=0; i<anchors.length; i++) {
		anchors[i].onmousedown = function() {this.onfocus=function() {this.blur()}}
		anchors[i].onmouseup = function() {this.onfocus=null}
	}
	var anchors = document.getElementById('left_col').getElementsByTagName('a');
	for (var i=0; i<anchors.length; i++) {
		anchors[i].onmousedown = function() {this.onfocus=function() {this.blur()}}
		anchors[i].onmouseup = function() {this.onfocus=null}
	}
}
function init() {
	bgrCache();
	defocus();
}
window.onload = init;


