if (typeof PWCC == "undefined" || !PWCC) {
	//create PWCC namespace if it hasn't been done already
	PWCC = new Object();
}



PWCC.equalHeight = function (expr) {
	//split expr at = signs
	var sections = expr.split("=");
	
	//get column heights
	var columns = new Array();
	var maxHeight = 0;
	for(var i=0; i < sections.length; i++) {
		columns[i] = document.getElementById(sections[i]);
		if (columns[i].offsetHeight > maxHeight) {
			maxHeight = columns[i].offsetHeight;
		}
	}
	
	
	
	//set height for each column
	for(var i=0; i < columns.length; i++) {
		columns[i].style.height = maxHeight + 'px';
	}
	
	
}

PWCC.addLoadEvent(function() {
  PWCC.equalHeight('content=sidebar');
});

