(function(p,q,x){var o,n=p.event.special,w="location",v="hashchange",m="href",t=p.browser,s=document.documentMode,r=t.msie&&(s===x||s<8),u="on"+v in q&&!r;function y(a){a=a||q[w][m];return a.replace(/^[^#]*#?(.*)$/,"$1")}p[v+"Delay"]=100;n[v]=p.extend(n[v],{setup:function(){if(u){return false}p(o.start)},teardown:function(){if(u){return false}p(o.stop)}});o=(function(){var a={},b,f,e,c;function d(){e=c=function(g){return g};if(r){f=p('<iframe src="javascript:0"/>').hide().insertAfter("body")[0].contentWindow;c=function(){return y(f.document[w][m])};e=function(g,i){if(g!==i){var h=f.document;h.open().close();h[w].hash="#"+g}};e(y())}}a.start=function(){if(b){return}var g=y();e||d();(function h(){var i=y(),j=c(g);if(i!==g){e(g=i,j);p(q).trigger(v)}else{if(j!==g){q[w][m]=q[w][m].replace(/#.*/,"")+"#"+j}}b=setTimeout(h,p[v+"Delay"])})()};a.stop=function(){if(!f){b&&clearTimeout(b);b=0}};return a})()})(jQuery,this);
