$(document).ready(function(){
	// Initialize tabs
	$("#pokerfeaturedcontent_tabs ul").idTabs("!mouseover");
	$("#pokerfeaturedcontent_tabs_l ul").idTabs("!mouseover");

	// Equalize tab heights for Top Poker Networks
	$tnheight = $('#topnetworks').height();
	$cpheight = $('#jackpotgrid').height();
	if($tnheight > 0 && $cpheight > 0) {
		if($tnheight > $cpheight) $('#jackpotgrid').css('height', $tnheight);
		if($cpheight > $tnheight) $('#topnetworks').css('height', $cpheight);
	}
	
	//$('.whatisftr_text_container').css('height',
	//	(document.getElementById("toppokernetworks_box").offsetHeight - 89) + 'px');
	
	// Standardize calendar height
	var tallestcolumn = 0;  
		 $(".calendar_info").each(  
			 function() {  
				 currentHeight = $(this).height();  
				 if(currentHeight > tallestcolumn) {  
					tallestcolumn  = currentHeight;  
				 }  
			 }  
		 );  
	 $(".calendar_info").css("min-height", tallestcolumn + "px");  
});

$(window).resize(function() {

	// When the browser is resized, adjust What is FTR?'s height
	$toppokernetworksheight = document.getElementById("toppokernetworks_box").offsetHeight;
	//$photogalleryheight = document.getElementById("photogallery_box").offsetHeight;
	$whatisftrheight = document.getElementById("whatisftr_box").offsetHeight;
	
	$('.whatisftr_text_container').css('height', ($toppokernetworksheight - 89) + 'px');
});

