function setPage() 
{
	
	// setPage calculates absolute values for page element widths and heights
	// different calculations are needed for different elements bases on which page is active

	var window_height			= 0;
	var window_width			= 0;
	var header_height			= 0;
	var footer_height			= 0;

	
	// get the current width and height of the browser window
	
	if ( navigator.appName.indexOf("Microsoft") != -1 ) {
		window_height = document.documentElement.clientHeight;
		window_width  = document.documentElement.clientWidth;
	} else {
		window_height = window.innerHeight;
		window_width  = window.innerWidth;
	}

	
	header_height      = document.getElementById('header').offsetHeight;
	footer_height      = document.getElementById('footer').offsetHeight;
		
	content_height     = window_height - header_height - footer_height;
	
	document.getElementById('main').style.height              = content_height + 'px';
		
	// for the my products iframe
	//if (document.getElementById('customMaps')) { document.getElementById('customMaps').style.height = menu_items_height + 'px'; }
}


function displayLogo()
{
	top_url = top.location.href;
	document_url = window.location.href;
	if (top_url.match('agweather.mesonet.org/index.php/data/section/')) {
		$('.logo_small').css("display","none");
	} else {
		$('.logo_small').css("display","block");	
	}	
}
