/* CASCADING POPUP MENUS v5.2beta (c) 2001-2003 Angus Turnbull. All Rights Reserved. This notice may not be removed. See http://www.twinhelix.com for licensing and more scripts! */ var isDOM=document.getElementById?1:0; var isIE=document.all?1:0; var isNS4=navigator.appName=='Netscape'&&!isDOM?1:0; var isIE4=isIE&&!isDOM?1:0; var isOp=window.opera?1:0; var isDyn=isDOM||isIE||isNS4; function getRef(id,par) { par=!par?document:(par.navigator?par.document:par); return(isIE?par.all[id]: (isDOM?(par.getElementById?par:par.ownerDocument).getElementById(id): (isNS4?par.layers[id]:null))); } function getSty(id,par) { var r=getRef(id,par); return r?(isNS4?r:r.style):null; } if(!window.LayerObj)var LayerObj=new Function('id','par', 'this.ref=getRef(id,par);this.sty=getSty(id,par);return this'); function getLyr(id,par){return new LayerObj(id,par)} function LyrFn(fn,fc) { LayerObj.prototype[fn]=new Function('var a=arguments,p=a[0],px=isNS4||isOp?0:"px";'+ 'with(this){'+fc+'}'); } 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)'); LyrFn('vis','sty.visibility=p'); LyrFn('bgColor','if(isNS4)sty.bgColor=p?p:null;'+ 'else sty.background=p?p:"transparent"'); LyrFn('bgImage','if(isNS4)sty.background.src=p?p:null;'+ 'else sty.background=p?"url("+p+")":"transparent"'); LyrFn('clip','if(isNS4)with(sty.clip){left=a[0];top=a[1];right=a[2];bottom=a[3]}'+ 'else sty.clip="rect("+a[1]+"px "+a[2]+"px "+a[3]+"px "+a[0]+"px)" '); LyrFn('write','if(isNS4)with(ref.document){write(p);close()}else ref.innerHTML=p'); LyrFn('alpha','var f=ref.filters,d=(p==null);if(f){'+ 'if(!d&&sty.filter.indexOf("alpha")==-1)sty.filter+=" alpha(opacity="+p+")";'+ 'else if(f.length&&f.alpha)with(f.alpha){if(d)enabled=false;else{opacity=p;enabled=true}}}'+ 'else if(isDOM)sty.MozOpacity=d?"":p/100'); function setLyr(lVis,docW,par) { if(!setLyr.seq)setLyr.seq=0; if(!docW)docW=0; var obj=(!par?(isNS4?window:document.body): (!isNS4&&par.navigator?par.document.body:par)); var IA='insertAdjacentHTML',AC='appendChild',newID='_js_layer_'+setLyr.seq++; if(obj[IA])obj[IA]('beforeEnd','
'); else if(obj[AC]) { var newL=document.createElement('div'); obj[AC](newL);newL.id=newID;newL.style.position='absolute'; } else if(isNS4) { var newL=new Layer(docW,obj); newID=newL.id; } var lObj=getLyr(newID,par); with(lObj)if(ref){vis(lVis);x(0);y(0);sty.width=docW+(isNS4?0:'px')} return lObj; } if(!window.page)var page={win:window,minW:0,minH:0,MS:isIE&&!isOp, db:document.compatMode&&document.compatMode.indexOf('CSS')>-1?'documentElement':'body'} page.winW=function() {with(this)return Math.max(minW,MS?win.document[db].clientWidth:win.innerWidth)} page.winH=function() {with(this)return Math.max(minH,MS?win.document[db].clientHeight:win.innerHeight)} page.scrollX=function() {with(this)return MS?win.document[db].scrollLeft:win.pageXOffset} page.scrollY=function() {with(this)return MS?win.document[db].scrollTop:win.pageYOffset} function addProps(obj,data,names,addNull) { for(var i=0;i0)timer=setTimeout(this.myName+'.changeCol("'+mN+'",'+iN+',1)',50); } if(bgFn&&isNS4)lyr[bgFn](col); var reCSS=(overClass!=outClass||outBorder!=overBorder); if(doFX)with(lyr) { if(!this.noRW&&(overText||overInd||isNS4&&reCSS))write(this.getHTML(mN,iN,ovr)); if(!isNS4&&reCSS) { ref.className=(ovr?overBorder:outBorder); var chl=(isDOM?ref.childNodes:ref.children); if(chl&&!overText)for(var i=0;i2)?actMenu[actMenu.length-2].spacing:0; var spc=((actMenu.length>2)&&aI.outBorder?1:0); if(isVert) { menuH+=lastGap-spc; aI.iX=0;aI.iY=menuH; menuW=width;menuH+=aI.iH; } else { menuW+=lastGap-spc; aI.iX=menuW;aI.iY=0; menuW+=aI.iW;menuH=width; } if(aI.outBorder&&(page.db=='documentElement'||isOp&&!document.compatMode|| document.doctype&&document.doctype.name.indexOf('.dtd')>-1||isDOM&&!isIE)) { aI.iW-=2; aI.iH-=2; } return aI; }} prototype.getHTML=function(mN,iN,isOver){with(this) { var itemStr=''; with(menu[mN][iN]) { var textClass=(isOver?overClass:outClass),txt=(isOver&&overText?overText:text), popI=(isOver&&overInd?overInd:popInd); if((type=='sm:')&&popI) { if(isNS4)itemStr+=''+popI+''; else itemStr+='
'+popI+'
'; } if(isNS4)itemStr+=(outBorder?'':'')+ ''+txt+''; else itemStr+='
'+ txt+'
'; } return itemStr; }} prototype.update=function(docWrite,upMN){with(this) { if(!isDyn)return; for(mN in menu)with(menu[mN][0]) { if(upMN&&(upMN!=mN))continue; var str=''; for(var iN=1;iN'+getHTML(mN,iN,false)+ (isNS4?'':''); } var eP=eval(par); var sR=myName+'.setupRef('+(docWrite?1:0)+',"'+mN+'")'; if(isOp)setTimeout(sR,1000); var mVis=(isOp&&isRoot)?'visible':'hidden'; if(docWrite) { var targFr=(eP&&eP.navigator?eP:window); targFr.document.write('
'+str+extraHTML+'
'); } else { if(!lyr||!lyr.ref)lyr=setLyr(mVis,menuW,eP); else if(isIE4)setTimeout(myName+'.menu.'+mN+'[0].lyr.sty.width='+(menuW+2),50); with(lyr){sty.zIndex=1000;write(str+extraHTML)} } if(!isOp)setTimeout(sR,100); } }} prototype.setupRef=function(docWrite,mN){with(this)with(menu[mN][0]) { if(docWrite||!lyr||!lyr.ref)lyr=getLyr(myName+'_'+mN+'_Div',eval(par)); for(var i=1;i