

	// simple browser sniffer - h/t k10k
	var isW3C = (document.getElementById) ? true : false;
	var isAll = (document.all) ? true : false;


	// no focused links
	function unblur () { this.blur (); }
	function getLinksToBlur () {
		if ((isW3C) || (isAll)) {
			if (isW3C) {
				var links = document.getElementsByTagName("a");
			} else {
				var links = document.all.tags("a");
			}
			for (i = 0; i < links.length; i++) {
				links[i].onfocus = unblur;
			}
		}
	}


	// set project popups
	function setPopups () {
		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') == 'popup') anchor.onclick = function() {
				this.popAtt = 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=720,height=630';
				window.open (this.href, 'popup', this.popAtt);
				return false;
			}
		}
	}


	window.addEventListener ? window.addEventListener("load",getLinksToBlur,false) : window.attachEvent("onload",getLinksToBlur);
	window.addEventListener ? window.addEventListener("load",setPopups,false) : window.attachEvent("onload",setPopups);
