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";
 }
}

// by Paul@YellowPencil.com and Scott@YellowPencil.com
// seriously modified by Keith Jay

// 

function setTall() {
	if (document.getElementById) {
		// Store off the references for the required blocks
		var divcolumnone = document.getElementById('columnone');
		var divcolumntwo = document.getElementById('columntwo');
		var divcolumnthree = document.getElementById('columnthree');
		var divbodycontent = document.getElementById('bodycontent');
		var marginheight = 0;
		
		// Let's determine the maximum height out of all columns specified
		var maxheight = divcolumnone.offsetHeight - marginheight;	//take off the margin so other columns would be correctly resized
		if(divcolumntwo.offsetHeight > maxheight){maxheight = divcolumntwo.offsetHeight};
		if(divcolumnthree.offsetHeight > maxheight){maxheight = divcolumnthree.offsetHeight};
		
		// resize columnone if its smaller than maxsize.
		if(divbodycontent.offsetHeight < maxheight){divbodycontent.style.height = maxheight + marginheight + 'px'};
	}
}

window.onload = function() {
	setTall();
	externalLinks();
}