/* Business Catalyst http://businesscatalyst.com. (c) 2001-2004 Angus Turnbull. */ var isDOM=document.getElementById?1:0,isIE=document.all?1:0,isNS4=navigator.appName=='Netscape'&&!isDOM?1:0,isOp=self.opera?1:0,isDyn=isDOM||isIE||isNS4;function getRef(i,p){p=!p?document:p.navigator?p.document:p;return isIE?p.all[i]:isDOM?(p.getElementById?p:p.ownerDocument).getElementById(i):isNS4?p.layers[i]:null};function getSty(i,p){var r=getRef(i,p);return r?isNS4?r:r.style:null};if(!self.LayerObj)var LayerObj=new Function('i','p','this.ref=getRef(i,p);this.sty=getSty(i,p);return this');function getLyr(i,p){return new LayerObj(i,p)};function LyrFn(n,f){LayerObj.prototype[n]=new Function('var a=arguments,p=a[0],px=isNS4||isOp?0:"px";with(this){'+f+'}')};LyrFn('x','if(!isNaN(p))sty.left=p+px;else return parseInt(sty.left)');LyrFn('y','if(!isNaN(p))sty.top=p+px;else return parseInt(sty.top)');function addMenuItemEvent(o,n,f,l){var a='addEventListener',h='on'+n;if(o[a]&&!l)return o[a](n,f,false);if(o[h]){o._c|=0;var b='_b'+(++o._c);o[b]=o[h]}o[h]=function(e){e=e||self.event;var r=true;if(o[b])r=o[b](e)!=false&&r;o._f=f;r=o._f(e)!=false&&r;return r}};function FSMenu(myName,nested,cssProp,cssVis,cssHid){this.myName=myName;this.nested=nested;this.cssProp=cssProp;this.cssVis=cssVis;this.cssHid=cssHid;this.cssLitClass='';this.menus={root:new FSMenuNode('root',true,this)};this.menuToShow=[];this.mtsTimer=null;this.showDelay=0;this.switchDelay=125;this.hideDelay=500;this.showOnClick=0;this.animations=[];this.animSpeed=100};FSMenu.prototype.show=function(mN){with(this){menuToShow.length=arguments.length;for(var i=0;i100){counter=100}else if(counter<=0){counter=0;sty[cssProp]=cssHid}else if(isDOM)timer=setTimeout(myName+'.menus["'+id+'"].setVis('+sh+')',50)}}};FSMenu.prototype.activateMenu=function(id,subInd){with(this){if(!isDOM)return;var a,ul,li,mRoot=getRef(id),nodes,count=1;if(isIE){var aNodes=mRoot.getElementsByTagName('a');for(var i=0;i-1&&e.tagName=='A'){e.onfocus=new Function('with(event){self.tmpX=clientX-offsetX;self.tmpY=clientY-offsetY}');e.focus();x=tmpX;y=tmpY;e.blur()}else while(e){x+=e.offsetLeft;y+=e.offsetTop;e=e.offsetParent}return{x:x,y:y}};if(isNS4){var fsmMouseX,fsmMouseY,fsmOR=self.onresize,nsWinW=innerWidth,nsWinH=innerHeight;document.fsmMM=document.onmousemove;self.onresize=function(){if(fsmOR)fsmOR();if(nsWinW!=innerWidth||nsWinH!=innerHeight)location.reload()};document.captureEvents(Event.MOUSEMOVE);document.onmousemove=function(e){fsmMouseX=e.pageX;fsmMouseY=e.pageY;return document.fsmMM?document.fsmMM(e):document.routeEvent(e)};function isMouseIn(sty){with(sty)return((fsmMouseX>left)&&(fsmMouseXtop)&&(fsmMouseY5)m.lyr.x(m.lyr.x()-xDiff-5);if(yDiff>5)m.lyr.y(m.lyr.y()-yDiff-5);if(!isIE||!window.createPopup)return;if(!m.ifr){m.ifr=document.createElement('iframe');m.ifr.src='about:blank';with(m.ifr.style){position='absolute';left=m.lyr.ref.offsetLeft+'px';top=m.lyr.ref.offsetTop+'px';width=m.lyr.ref.offsetWidth+'px';height=m.lyr.ref.offsetHeight+'px';border='none';filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)'}m.lyr.ref.parentNode.insertBefore(m.ifr,m.lyr.ref)}m.ifr.style.visibility='visible'}};FSMenu.prototype.onhide=function(mN){with(this){if(!isIE||!window.createPopup)return;var m=menus[mN];if(m.ifr)m.ifr.style.visibility='hidden'}};