function pudMagick() {
	var ie	= document.all;
	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";

		anchor.onfocus = function() { this.blur; }
	}

	if (ie)	{
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];

			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}

	var headers = document.getElementsByTagName("h1");
	headers[0].onclick = function() { window.location="/" }

	document.getElementById('header').innerHTML = document.getElementById('header').innerHTML + "<div class='wing' id='left'></div><div class='wing' id='right'></div>";

}

window.onload = pudMagick; 
