	
	// Equal Height for Inner boxes
	function equalHeight(group) {
		tallest = 0;
		group.each(function() {
			thisHeight = $(this).height();
			if(thisHeight > tallest) {
				tallest = thisHeight;
			}
		});
		group.height(tallest);
	}

	$(document).ready(function(){

		$(".featurebox").click(function(){
			window.location=$(this).find("a").attr("href"); return false;
		});
		
		$(".featurebox_double").click(function(){
			window.location=$(this).find("a").attr("href"); return false;
		});

		// Hover FeatureBox
		$(".featurebox").hover(
			function() {
				$(this).addClass('hoverBox');
			}, function() {
				$(this).removeClass('hoverBox');
			}
		);
		
		// Hover doublewidth Featurebox
		$(".featurebox_double").hover(
			function() {
				$(this).addClass('hoverBox');
			}, function() {
				$(this).removeClass('hoverBox');
			}
		);

		equalHeight($("#innerboxes .evenHeight")); 

				
	});
