
function doInit() {
		var mainHeight = $('content-left').offsetHeight;
		var tm=($('content-left').getStyle('margin-top')).slice(0, -2);
		var bm=($('content-left').getStyle('margin-bottom')).slice(0, -2);
		var extra = $('twoCol').offsetHeight;
		var theHeight=mainHeight - tm - bm - extra;
		$('leftCol').style.height = theHeight + "px";
		$('rightCol').style.height = theHeight + "px";
		
		//adding random hovers to The FontFeed logo
		var imageCount = 12;
		var stop = false;
		function logoOn() {
			if (!stop) {
				$('TheFontFeed').src = "/images/logos/fontfeedlogo_" + Math.floor(Math.random()*imageCount+1) + ".gif";	
				setTimeout(logoOn ,100);
				stop = false;
			}
		}
		
		Event.observe( $('TheFontFeed'), 'mouseover', 
			function() {
				stop = false;
				logoOn();
			}
		); 
		Event.observe( $('TheFontFeed'), 'mouseout', 
			function() { 
				stop = true; 
			}
		);
}	

Event.observe(window, 'load', doInit);
Event.observe(window, 'resize', doInit);

