$(window).bind('pageshow', function(){
	
	function sizeMe() {
		$('#header').css({'margin-top':'50px', 'height':'auto'});
		$('.nav_content, #home_address, #content, #slogan').show();
	};
	
	sizeMe();
	$(document).click(sizeMe());
	
	$('.nav_box a').click(function(e){
		e.preventDefault();
		var targ = $(this).attr('href');
		$('#header').animate({'margin-top':'20px', 'height':'115px', 'background-position':'0 -50px'}, 'fast');
		$('#slider img').animate({'width': '159px', 'height':'95px'}, 'fast');
		$('#home_right').animate({'height':'95px', 'padding-top':'10px','padding-bottom':'10px'}, 'fast');
		$('#home_left').animate({'height':'115px', 'margin-bottom':'0px'}, 'fast');
		$('.nav_content, #home_address, #content, #slogan').slideUp('fast', function(){
			$(location).attr('href', targ);
		});
	});

});

window.onunload = function(){
	document.getElementById('click').onclick = null;
}
