window.__jsnavUriObserver=function(){window.JSNAV.checkUri();window.setTimeout(window.__jsnavUriObserver,200)};
window.JSNAV=function(){function h(a,b,c,d){for(var e=0;e<a.length;e++)if(b(a[e]))return c?c(a,e):null;return d?d(a):null}function k(a){var b=window.document.getElementById(a);b||h(window.document.anchors,function(c){return c&&c.name&&c.name==event.anchor},function(c,d){b=c[d]},null);return b}function l(a){a&&a.offsetLeft&&a.offsetTop&&window.scrollTo(a.offsetLeft,a.offsetTop)}function n(a){function b(){if(!c){c=true;a()}}var c;if(document.addEventListener)document.addEventListener("DOMContentLoaded",
function(){b()},false);else if(document.attachEvent){if(document.documentElement.doScroll&&window==window.top){var d=function(){if(!c)if(document.body)try{document.documentElement.doScroll("left");b()}catch(e){setTimeout(d,0)}};d()}document.attachEvent("onreadystatechange",function(){document.readyState==="complete"&&b()})}o||b()}var o=/msie/i.test(navigator.userAgent),g="",f={params:[]},j=[],m=function(){n(function(){window.setTimeout(window.__jsnavUriObserver,200)})};m.prototype={parseUri:function(a){var b=
{params:[]},c=a.indexOf("#");if(c>0){a=a.substring(c+1).split(";");b.anchor=a[0];if(a.length>1){b.event=unescape(a[1]);for(c=2;c<a.length;c++)b.params[b.params.length]=unescape(a[c])}}return b},checkUri:function(){if(g!=window.location.href){var a=this.parseUri(window.location.href),b;a:if(f.event!=a.event||f.anchor!=a.anchor||f.params.length!=a.params.length)b=false;else{for(b=0;b<f.params.length;b++)if(f.params[b]!=a.params[b]){b=false;break a}b=true}if(!b)if(f.event&&a.anchor&&!a.event){g=window.location.href;
g+=";"+escape(f.event);for(b=0;b<f.params.length;b++)g+=";"+escape(f.params[b]);f=this.parseUri(g);window.location.href=g;l(k(a.anchor))}else{g=window.location.href;f=a;this.fire(f)}}},bind:function(a,b){typeof a=="string"&&typeof b=="function"&&h(j,function(c){return c.event==a},function(c,d){h(c[d].handlers,function(e){return e==b},null,function(e){e.push(b)})},function(c){c.push({event:a,handlers:[b]})})},unbind:function(a,b){typeof a=="string"&&h(j,function(c){return c.event==a},function(c,d){if(b){typeof b==
"function"&&h(c[d].handlers,function(e){return e==b},function(e,i){e.splice(i,1)},null);c[d].handlers<1&&c.splice(d,1)}else c.splice(d,1)},null)},fire:function(a){var b=window.document.body;if(a.anchor){var c=k(a.anchor);if(c){l(c);b=c}}a.event&&h(j,function(d){return d.event==a.event},function(d,e){for(var i=0;i<d[e].handlers.length;i++)d[e].handlers[i].apply(b,a.params)},null)}};return new m}();

