/*

Usage
-----
Embed the jQuery script and this one into the HTML page:
	<script type="text/javascript" src="jquery.js"></script>
	<script type="text/javascript" src="setheight.js"></script>
	
Add a script calling the function along with the class name:
	<script type="text/javascript">
		setHeight("test");
	</script>

*/

function setHeight(theClass) {
	$(document).ready(function(){
		var largestHeight = 1;
		$("."+theClass).each(function (i) {
			tempHeight = ($(this).height());
			tempHeight = parseInt(tempHeight);
			if (tempHeight > largestHeight) {
				largestHeight = tempHeight;
			}
		});
		$("."+theClass).each(function (i) {
			$(this).css("height",largestHeight);
		});
	
		$("#tester").html(largestHeight);
	});
}
