/* * jQuery history plugin * * sample page: http://www.serpere.info/jquery-history-plugin/samples/ * * Copyright (c) 2006-2009 Taku Sano (Mikage Sawatari) * Copyright (c) 2010 Takayuki Miwa * Licensed under the MIT License: * http://www.opensource.org/licenses/mit-license.php * * Modified by Lincoln Cooper to add Safari support and only call the callback once during initialization * for msie when no initial hash supplied. */ (function($) { var locationWrapper = { put: function(hash, win) { (win || window).location.hash = encodeURIComponent(hash); }, get: function(win) { var hash = ((win || window).location.hash).replace(/^#/, ''); return $.browser.mozilla ? hash : decodeURIComponent(hash); } }; var iframeWrapper = { id: "__jQuery_history", init: function() { var html = '