 		# Setup HTML5 Browser Buttons for Single Page
 		window.addEventListener("popstate", (event) =>
 			console.log(event)
-			$.fancybox.close()
-			if event.state?
-				if event.state.album?
-					if event.state.story?
-						@displayPhotographs(event.state.album, event.state.story)
-					else
-						@displayStories(event.state.album)
+			if $.fancybox.isOpen
+				history.forward()
+				$.fancybox.close()
+			else
+				if event.state?
+					if event.state.album?
+						if event.state.story?
+							@displayPhotographs(event.state.album, event.state.story)
+						else
+							@displayStories(event.state.album)
+					else
+						@displayAlbums()
 				else
 					@displayAlbums()
-			else
-				@displayAlbums()
 			return
 		)
 

					type: 'image',
					afterLoad: ->
						originalImageLink = @.href.split("/resize")
						@.title = '<a href="'+originalImageLink[0]+'" target="_blank">Download</a> '+@.title
				})
				return

				return
		})
		return
