(function(c,q,r){function d(a){a=a||location.href;return"#"+a.replace(/^[^#]*#?(.*)$/,"$1")}var j=document,l,b=c.event.special,e=j.documentMode,m="onhashchange"in q&&(e===r||7<e);c.fn.hashchange=function(a){return a?this.bind("hashchange",a):this.trigger("hashchange")};c.fn.hashchange.delay=50;b.hashchange=c.extend(b.hashchange,{setup:function(){if(m)return!1;c(l.start)},teardown:function(){if(m)return!1;c(l.stop)}});var p=function(){var a=d(),b=s(k);a!==k?(n(k=a,b),c(q).trigger("hashchange")):b!==
k&&(location.href=location.href.replace(/#.*/,"")+b);g=setTimeout(p,c.fn.hashchange.delay)},b={},g,k=d(),n=e=function(a){return a},s=e;b.start=function(){g||p()};b.stop=function(){g&&clearTimeout(g);g=r};if(/MSIE/.test(navigator.userAgent)&&!m){var f,h;b.start=function(){f||(h=(h=c.fn.hashchange.src)&&h+d(),f=c('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){h||n(d());p()}).attr("src",h||"javascript:0").insertAfter("body")[0].contentWindow,j.onpropertychange=function(){try{"title"===
event.propertyName&&(f.document.title=j.title)}catch(a){}})};b.stop=e;s=function(){return d(f.location.href)};n=function(a,b){var d=f.document,e=c.fn.hashchange.domain;a!==b&&(d.title=j.title,d.open(),e&&d.write('<script>document.domain="'+e+'"\x3c/script>'),d.close(),f.location.hash=a)}}l=b})(jQuery,this);
