$(window).load(function() {

	$('div#main-navigation ul').css({'width':$('div#main-navigation ul').outerWidth(),'float':'none'});
	
	$.fn.thisHeight = function() {
		
		//height
		windowHeight = $(window).height();
		yHeight = $(this).height();
	
		if (windowHeight > yHeight) {$(this).css('height',windowHeight);} else {$(this).css('height','auto');}
	};
	
	$.fn.thisPos = function() {
		
		//width
		windowWidth = $(window).width();
		xWidth = $(this).width();
		xPos = (windowWidth - xWidth) / 2;
	
		$(this).css({width: xWidth , left: xPos})
	};
	
	$('body').thisHeight();
	$('img.resize').thisPos();
	$(window).resize(function(event){
		$('body').thisHeight();
		$('img.resize').thisPos();
	});
	
	$('h3.toggle').next('p').fadeOut();
	$('h3.toggle').hover(
		function () {$(this).next('p').show()}, 
		function () {$(this).next('p').hide();}
	);
	
	
});
