/* 
	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 menu_fixer() {
	if (document.getElementById) {
		var navBar = document.getElementById('navBar');
		var a_2 = document.getElementById('a_2');
		var a_1 = document.getElementById('a_1');
		var b_container = document.getElementById('b_container');
		if (a_2 != null) { a_height = a_2.offsetHeight; a_1.style.height = a_height; navBar.style.height = a_height; }
		if (b_container	!= null) { b_height = b_container.offsetHeight; navBar.style.height = b_height; }
	}
}

addEvent(window, 'load', menu_fixer, false);