// Kill image flicker in IE
try {
document.execCommand('BackgroundImageCache', false, true);
} catch(e) {}


//This code is from qid at wadny.com. It allows you to have external links open in a new window while using a strict xhtml DTD. Brilliant.

over = new Image();
over.src = "/img/extern-over.gif";
norm = new Image();
norm.src = "/img/extern.gif";

function setExternalLinks() {
	if ( !document.getElementsByTagName ) {
		return null;
	}

	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.setAttribute( "target", "_blank" );
		}
	}
}

window.onload = setExternalLinks;