aa.href = aa_href; function aa_parse_fragment (fragment) { var parts = fragment.split('&'), part, m; for (var i=0, l=parts.length; i= 0) { base = href.substr(0, hashpos); fragment = href.substr(hashpos+1); aa_parse_fragment.call(that, fragment); } that['base' ] = base; that['nofrag' ] = base; that['basehref' ] = base; that['fragment'] = fragment; var lsp = base.lastIndexOf("/"); that['basename'] = (lsp !== -1) ? base.substr(lsp+1) : base; if (mf.hash && mf.hash.t && mf.hash.t.length >= 1) { that['start'] = mf.hash.t[0].startNormalized; that['end'] = mf.hash.t[0].endNormalized; } return that; }