/* drmccurry.com
 * built by Jimmy Cuadra at Einstein Industries
 * http://www.einsteinindustries.com/
 */

/* on dom load */
$(function() {
	var wrapDiv = $(document.createElement("div")).addClass("double-border");
	$(":header:not(.header :header, h3)").each(function() {
		$(this).addClass("flat-bottom").wrap(wrapDiv);
	});
	if (isIE6()) {
		$("h2.contact").css("margin-bottom", "0");
	} else {
		initMagicLabels("#quick-contact");
	}
	equalizeHeights($("#center, #right"));
});

function isIE6() {
	if (typeof document.body.style.maxHeight === "undefined") {
		return true;
	} else {
		return false;
	}
}

function equalizeHeights(columns, offsetCount) {
	var tallest = 0;
	columns.each(function() {
		var thisHeight = $(this).height();
		if (thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	columns.height(tallest);
}