/* 
	by Paul@YellowPencil.com and Scott@YellowPencil.com
	feel free to delete all comments except for the above credit
*/

// Initialize Scripts - is this a browser that understands DOM?

function scriptInit() {
if (!document.getElementById) {
	return;
	}
}

// Set up Event Listener - the script that allows us to use the addEvent call below

function addEvent(elm, evType, fn, useCapture) {
	if (elm.addEventListener) {
	elm.addEventListener(evType, fn, useCapture);
	return true;
	} else if (elm.attachEvent) {
	var r = elm.attachEvent('on' + evType, fn);
	return r;
	} else {
	elm['on' + evType] = fn;
	}
}

// Start Column Script

function setTall() {
	if (document.getElementById) {

		var leftHeight = document.getElementById('left').offsetHeight;
		var rightHeight = document.getElementById('content').offsetHeight;

		if(leftHeight > (rightHeight+176))
		{
			document.getElementById('content').style.height = (leftHeight-176) + 'px';
		}
		
	}
}


addEvent(window, 'load', setTall, false);
addEvent(window, 'resize', setTall, false);