//-- Preload images to cure the browser flickering issue
if (document.images) {
	var aryImages = new Array();
	aryImages[0] = new Image();
	aryImages[0].src = "/images/spacer.gif";
}

//-- Opens links with the "external" rel attribute in a new window (CSS Compliant)
function initLinks() {
	if (document.getElementsByTagName) {
		var a = document.getElementsByTagName("A");
		for (var i=0; i<a.length; i++) {
			if (a[i].getAttribute("href") && a[i].getAttribute("rel") == "external") {
				a[i].target = "_blank";
			}
		}
	}
}

//-- Initialize all required elements
function init() {
	initLinks();
}
if (window.attachEvent) window.attachEvent("onload", init);
else window.onload = function() { init(); }