// JavaScript Document


/***
@ Laura Cabrera <laura.cabrera@zu.com>
@ June 6, 2008
@ This script aligns the bottom image of the three featured boxes on the homepage.
***/

window.onload=checkHeight;
		function checkHeight() {
			if (document.getElementById) {
				
				var getThereFast = document.getElementById('fb-content-therefast');
				var myChoice = document.getElementById('fb-content-mychoice');
				var newsEvents = document.getElementById('fb-content-newsevents');
				
				var fb1 = getThereFast.offsetHeight;
				var fb2 = myChoice.offsetHeight;
				var fb3 = newsEvents.offsetHeight;

				
				var maxH = fb1;
				if(fb2 >= maxH){
						maxH = fb2;
						if(fb3 >= maxH){
								maxH = fb3;
						}
				
				}
				
				
				
				var adjustedMaxH = parseInt(maxH -1); // this height is adjusted because the middle featured box has an image with a line at the top, that had to be added as border-top on the other two featured boxes.
				
				getThereFast.style.height = adjustedMaxH +"px";
				myChoice.style.height = maxH +"px";
				newsEvents.style.height = adjustedMaxH +"px";
				
			
				
			}
		}