$(document).ready(function() {		
	$().bind('slide_loaded', function(event, link) { // everytime this page is loaded, remove and reattach hooks for this page
		if ($('.content.age').length > 0) { // don't use 'link' for testing as it will be the destination page
			$()
				.unbind('.age')
				.bind('slide_complete.age', function(event, link) {
					var fadeItems = $('#sidebar, #navigation, #tagline, #footer');
							
					if ($('.content.age').length > 0) {
						$('h1, h2').ifixpng();
						fadeItems.fadeOut();
					} else {
						fadeItems.fadeIn(1500);
						$().unbind('.age');
					}
			});
		}
	});
});