var th = window.location.hash; if (th.length && this.setHash) { var parts = (""+window.location).split(this.getHash('')); if(parts.length>1){ this._gotoSlide(parseInt(parts[1])-1); } }