if(!ennisperry)var ennisperry={};
ennisperry.navigation=function(){function A(b,a){function i(){k++;var d=b,g,q=k;g=-n*(q/=u)*(q-2)+j;d.style.height=g<0?"auto":Math.floor(g)+"px";if(k>=u){r--;window.clearInterval(v)}}function f(){r++;e=!e;k=0;var d=b,g=d.style,q=g.height;g.height="auto";d=d.offsetHeight;g.height=q;if(e){j=0;n=d}else{j=d;n=d*-1}if(h){l.style.height="auto";m.className=e?"active":""}v=window.setInterval(i,s)}var e,m,l,h,k,j,n,v;m=b.parentNode.getElementsByTagName("a")[0];p.add(m,"click",function(d){p.preventdefault(d);
if(!r){f();if(!h){d=0;for(var g=t.length;d<g;d++)d!=a&&t[d].close()}}});if(e=b.className=="open")n=b.offsetHeight;l=b.parentNode.parentNode.parentNode;h=l.id!="navigationinner";return{close:function(){if(e){f();if(h){m.className="";m.style.backgroundColor="";c[w].level=0}}}}}function x(){for(var b=true,a=0,i=c.length;a<i;a++){var f=c[a];if(f.dir!=0){var e=f.level+f.dir;e=global.getvalbounds(e,0,y);c[a].el.style.backgroundColor=B[e];f.level=e;if(e<=0||e>=y)f.dir=0;else b=false}}if(b){window.clearInterval(o);
o=false}}function C(){var b=c.length-1;return function(){for(var a=0,i=c.length;a<i;a++)c[a].el.className="";c[b].el.className="active";c[b].el.style.backgroundColor=""}}function D(){var b=c.length-1;return function(){if(c[b].el.className!="active"){c[b].dir=-1;o||(o=window.setInterval(x,s))}}}function E(b){var a=c.length;c[a]={el:b,level:0,dir:0};return function(){if(c[a].el.className!="active"){c[a].dir=1;o||(o=window.setInterval(x,s))}}}function F(b,a){return b.getElementsByTagName(a)}function z(){function b(j,
n){p.add(j,"mouseover",E(j));p.add(j,"mouseout",D());n&&p.add(j,"click",C())}if($("sidebar")){var a=F($("navigation"),"ul")[0],i=a.getElementsByTagName("a"),f=a.getElementsByTagName("div"),e=/(^| )main( |$)/,m=/(^| )featuredclientlink( |$)/;a.className="";a=0;for(var l=i.length;a<l;a++){var h=i[a];if(!(e.test(h.className)||h.parentNode.parentNode.className=="featuredclient")){var k=m.test(h.className);b(h,!k);if(k)w=c.length-1}}a=0;for(l=f.length;a<l;a++)t[a]=new A(f[a],a)}else window.setTimeout(z,
20)}var p=global.event,c=[],w,o,y=5,B=["","#21383a","#2c5b5f","#377d84","#42a0a9","#4dc3ce"],t=[],r=0,u=15,s=30;z();global.addhtmlclass("js")}();
