 					type: 'image',
 					afterLoad: ->
 						originalImageLink = @.href.split("/resize")
+						#photographUrlSplit = originalImageLink[0].split("/image")[0].split("/")
+						#photograph = photographUrlSplit[photographUrlSplit.length-1]
+						#{}history.pushState({photograph: photograph}, null, '#photographId='+photograph)
 						@.title = '<a href="'+originalImageLink[0]+'" target="_blank">Download</a> '+@.title
 				})
 				return

				return
		})
		return



		# Setup HTML5 Browser Buttons for Single Page
		window.addEventListener("popstate", (event) =>
			console.log(event)
			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()
			return
		)

