function Uef(o){return typeof(o)=='undefined'||o===''||o==null};function Def(o){return!Uef(o)};function U(o){return typeof(o)=='undefined'};function pI(s){return parseInt(s)} function pB(v,d){return U(v)?d:v&&v!='false'};function dw(s){document.write(s)};function UA(){var t=this,nv=navigator,n=nv.userAgent.toLowerCase(),v=parseInt(nv.appVersion);var ns=nv.appName=="Netscape";t.win=n.indexOf('win')>=0;t.mac=n.indexOf('mac')>=0;t.DOM=document.getElementById?true:false;t.dynDOM=document.createElement&&document.addEventListener;t.khtml=nv.vendor=='KDE';var idx=n.indexOf('opera');t.opera=idx!=-1;if(t.opera){idx+=6;t.opera5=n.charAt(idx)=='5';t.opera6=n.charAt(idx)=='6';t.opera7=n.charAt(idx)=='7'}t.oldOpera=t.opera5||t.opera6;t.ie3down=n.indexOf('msie')!=-1&&v<4&&!t.opera;t.ie=t.ie4up=!t.ie3down&&document.all&&document.all.item&&!t.opera&&!t.khtml;t.ie5up=t.DOM&&t.ie4up;t.ie55=t.ie5up&&n.indexOf("msie 5.5")>0;t.ie6=t.ie5up&&n.indexOf('msie 6.')>0;t.ie55up=t.ie55||t.ie6;t.cm=document.compatMode;t.css1cm=t.cm=='CSS1Compat';t.nn4=ns&&!t.DOM&&!t.opera;t.moz=t.nn6up=t.DOM&&ns&&!t.opera;t.hj=n.indexOf('hotjava')!=-1;t.aol=n.indexOf('aol')!=-1;t.aol4up=t.aol&&t.ie4up;t.supp=t.supported=t.oldOpera||t.opera7||t.ie||t.moz||t.nn4||t.DOM};var ua=new UA();function CEvent(e){var t=this;t._e=e;t.x=ua.nn4||ua.moz?e.pageX:ua.oldOpera?e.clientX:e.clientX+document.body.scrollLeft;t.y=ua.nn4||ua.moz?e.pageY:ua.oldOpera?e.clientY:e.clientY+document.body.scrollTop;t.offsetX=ua.nn4||ua.moz?e.layerX:e.offsetX;t.offsetY=ua.nn4||ua.moz?e.layerY:e.offsetY;t.screenX=e.screenX;t.screenY=e.screenY;t.target=ua.ie?e.srcElement:e.target;t.key=ua.nn4||ua.moz?e.which:e.keyCode;t.alt=ua.nn4?e.modifiers&Event.ALT_MASK:e.altKey;t.ctrl=ua.nn4?e.modifiers&Event.CONTROL_MASK:e.ctrlKey;t.shift=ua.nn4?e.modifiers&Event.SHIFT_MASK:e.shiftKey;t.spec=t.alt||t.ctrl||t.shift;var b=ua.nn4||ua.moz?e.which:e.button;t.b_left=b==1;t.b_mid=ua.nn4||ua.moz?b==2:b==4;t.b_right=ua.nn4||ua.moz?b==3:b==2};function CQ(id){this._id=id;this._c=0;this.pre={};this.sz=[];this.ld=[]};{var CTp=CQ.prototype;CTp.findLayer=function(name,parent){ return this.findElement(name,parent)};CTp.findElement=function(name,parent){if(ua.DOM) return document.getElementById(name);else if(ua.ie4up)return document.all[name];else{var set=Uef(parent)?document:parent.document;if(Uef(set[name])){var i,el,len=set.layers.length;if(len==0) return;else{for(i=0;i<\/script>')};CTp.path=function(p){this._path=p};CTp.regEventHandler=function(e,h,obj){if(Uef(obj))obj=document;e=e.toLowerCase();if(ua.nn4){var name=e.toUpperCase();obj.captureEvents(Event[name]);}var f=typeof(h)=="function"?function(e){var ev=ua.ie?window.event:e;if(Def(ev))ev=new CEvent(ev); return h(ev)}:typeof(h)=="string"?new Function("e","var ev=ua.ie?window.event:e;if (Def(ev)) ev=new CEvent(ev);"+h):null;obj["on"+e]=f};CTp.clearEventHandler=function(e,obj){if(Uef(obj))obj=document;e=e.toLowerCase();if(ua.nn4){var name=e.toUpperCase();obj.releaseEvents(Event[name]);}obj["on"+e]=null};CTp.setResizeHandler=CTp.setOnResize=function(h,b){var s=this.sz,id=this._id;if(!s.length){if(ua.oldOpera){var _h=new Function(id+".saveWinSize();"+id+".checkSize()");b?_h():this.setOnLoad(_h)}else{s[0]=window.onresize;window.onresize=new Function(id+'.onresize()')}}s[s.length]=h};CTp.setOnLoad=function(h){var l=this.ld;if(!l.length){l[0]=window.onload;window.onload=new Function(this._id+'.onload()')}l[l.length]=h};CTp.checkSize=function(){var t=this;if(t.getWinHeight()!=t._WH||t.getWinWidth()!=t._WW){t.saveWinSize();t.onresize()}t._resTO=setTimeout(t._id+'.checkSize()',1500)};CTp.call=function(a){for(var i=0;i#"+id+"{"+st+"}";src+=(a?'<':'=0;i-=2)src+=' on'+ev[i-1]+'="'+ev[i]+'"';//} return src+">"+(html||'')+'":"div>")};function ZcreateLayer(id,w,h,t,l,a,v,css,bgc,bgi,cl,o,d,st,z,al,ev,html,p){var id=id||Q.newID();var src=ZlrSource(id,w,h,t,l,a,v,css,bgc,bgi,cl,o,d,st,z,al,ev,html);var parent=p||document.body;if(!Q.loaded)dw(src);else if(ua.ie)parent.insertAdjacentHTML("BeforeEnd",src);else if(ua.dynDOM){var lr=document.createElement('DIV');lr.setAttribute('id',id);if(Def(css))lr.setAttribute('className',css);lr.setAttribute('style',ZlrStyle(w,h,t,l,a,v,bgc,bgi,cl,o,d,st,z,al));lr.innerHTML=html;if(Def(ev))for(var i=ev.length-1;i>=0;i-=2)lr.addEventListener(ev[i-1],new Function(ev[i]),0);parent.appendChild(lr)}else return; return id};function CLayer(){var a=arguments,t=this;t._ex=false;if(a.length==2&&typeof(a[0])=='number'){t._w=parseInt(a[0]);t._h=parseInt(a[1])}else if(a.length>=1&&typeof a[0]=='string')t.assignLayer(Q.findLayer(a[0],a[1]));t._id=t._id||Q.newID();t._HTML='';t._ev=[];};{var Zb=CLayer.prototype;Zb.assignLayer=function(oLr){var t=this;if(Uef(oLr))oLr=t._id;oLr=Zel(oLr);t._lr=oLr[0];t._st=oLr[1];t._ex=1; return t};Zb.setHTML=function(s){this._HTML=s;if(this._ex)ZHTML(this._lr,s)};Zb.appendHTML=function(s){this.setHTML(this._HTML+s)};Zb.clear=function(){this.setHTML('')};Zb.setVisible=function(v){this._v=v;if(this._ex)Zvis(this._lr,v)};Zb.show=function(){this.setVisible(1)};Zb.hide=function(){this.setVisible(0)};Zb.showAt=function(x,y){ZshowAt(this._lr,x,y)};Zb.setZIndex=function(z){this._z=z;if(this._ex)Zz(this._lr,z)};Zb.setWidth=function(w){this._w=w;if(this._ex)ZsetWidth(this._lr,w);};Zb.setHeight=function(h){this._h=h;if(this._ex)ZsetHeight(this._lr,h)};Zb.resize=Zb.setSize=function(w,h){this.setHeight(h);this.setWidth(w)};Zb.setTop=function(y){this._t=y;if(this._ex)ZsetTop(this._lr,y)};Zb.setLeft=function(x){this._l=x;if(this._ex)ZsetLeft(this._lr,x)};Zb.moveTo=Zb.setPos=function(x,y){var t=this;t._l=x;t._t=y;if(t._ex)ZmoveTo(t._lr,x,y)};Zb.setRel=function(r){this._rel=r};Zb.moveRel=function(dx,dy){this.moveTo(this.getLeft()+dx,this.getTop()+dy)};Zb.setCSS=function(css){this._css=css;if(this._ex)Zcss(this._lr,css)};Zb.setID=function(id){if(!this._ex)this._id=id||Q.newID();};Zb.setBgColor=function(c){this._bgC=c;if(this._ex)ZsetBgColor(this._lr,c)};Zb.setBgImage=function(url){this._bgI=url;if(this._ex)ZsetBgImage(this._lr,url)};Zb.clip=function(x,y,w,h){this._cl=[y,x+w,y+h,x];if(this._ex)Zclip(this._lr,x,y,w,h)};Zb.setDisplay=function(d){this._dsp=d;if(this._ex)Zdisplay(this._lr,d)};Zb.setOverflow=function(o){this._ov=o;if(this._ex)Zoverflow(this._lr,o)};Zb.addEventHandler=function(ev,src){this._ev[this._ev.length]=[ev.toLowerCase(),src];};Zb.clearHandlers=function(){this._ev=[]};Zb.setAlpha=function(a){this._al=a;if(this._ex)Zal(this._lr,a)};Zb.addStyle=function(st){this._sty=st};Zb.object=function(){ return this._lr};Zb.getHTML=function(){ return this._HTML};Zb.getVisible=function(){ return this._ex?ZgetVis(this._lr):this._v};Zb.getWidth=function(){var t=this;if(t._ex&&(!ua.nn4||Uef(t._w)))t._w=ZgetWidth(t._lr); return t._w};Zb.getHeight=function(){var t=this;if(t._ex&&(!ua.nn4||Uef(t._h)))t._h=ZgetHeight(t._lr); return t._h};Zb.getSize=function(){ return[this.getWidth(),this.getHeight()]};Zb.getContentWidth=function(){ return this._ex?ZgetContentWidth(this._lr):this._w};Zb.getContentHeight=function(){ return this._ex?ZgetContentHeight(this._lr):this._h};Zb.getTop=function(){ return this._ex?ZgetTop(this._lr):this._t};Zb.getLeft=function(){ return this._ex?ZgetLeft(this._lr):this._l};Zb.getPos=function(){ return[this.getLeft(),this.getTop()]};Zb.getAbsoluteTop=function(){ return this._ex?ZgetAbsTop(this._lr):this._t};Zb.getAbsoluteLeft=function(){ return this._ex?ZgetAbsLeft(this._lr):this._l};Zb.getAbsolutePos=function(){ return[this.getAbsoluteLeft(),this.getAbsoluteTop()]};Zb.getID=function(){ return this._ex?this._lr.id||this._lr.name:this._id};Zb.getCSS=function(){ return this._ex?this._lr.className:this._css};Zb.remapEv=function(){var i,e=this._ev,ev=[];for(i=0;is.length-1)break;if(s.charAt(index)=='<'){index++;if(s.charAt(index)=='?'){index=s.indexOf('>',index)+1}else if(s.charAt(index)=='/'){close=true;index=s.indexOf('>',index)+1}else if(s.substr(index,3)=='!--'){index=s.indexOf('-->',index)+3}else if(s.substr(index,8)=='![CDATA['){index+=8;var end=s.indexOf(']]>',index);var charnode=new CNode("CHARDATA","",tag);charnode.value=s.substr(index,end-index);tag.subitems[tag.subitems.length]=charnode;index=end+3}else if(s.charAt(index)=='!'){index=s.indexOf('>',index)+1}else{var tagname=this.getCharname(s,index);if(tagname==null||tagname.length==0){ return null}else{index+=tagname.length;index=this.skipWhitespaces(s,index);var newtag=new CNode("ELEMENT",tagname,tag);while(s.charAt(index)!='/'&&s.charAt(index)!='>'){var paramname=this.getCharname(s,index);var param=new CNode("PARAMETER",paramname,newtag);newtag.parameters[newtag.parameters.length]=param;index+=paramname.length;index=this.skipWhitespaces(s,index);if(s.charAt(index)!='='){}index++;index=this.skipWhitespaces(s,index);if(s.charAt(index)!='\"'){}index++;var paramend=s.indexOf("\"",index);param.value=this.processValue(s.substr(index,paramend-index));index=this.skipWhitespaces(s,paramend+1)}tag.subitems[tag.subitems.length]=newtag;index=s.indexOf('>',index)+1;if(s.charAt(index-2)=='/'){}else{index=this.parse(s,index,newtag)}}}}else{var end=s.indexOf('<',index);var charnode=new CNode("CHARDATA","",tag);charnode.value=this.processValue(s.substr(index,end-index));tag.subitems[tag.subitems.length]=charnode;index=end}} return index};Zc.skipWhitespaces=function(str,begin){var c,i=begin;while(i'||c=='<'||c=='='||c==' '))++i; return str.substr(begin,i-begin)};Zc.processValue=function(str){var a=[];a=str.split("<");str=a.join("<");a=str.split(">");str=a.join(">");a=str.split(""");str=a.join("\"");a=str.split("'");str=a.join("\'");a=str.split("&");str=a.join("&"); return str};Zc.toObject=function(node){node=node||this.tree;var i,o;if(node.parameters.length==0&&node.subitems.length==1&&node.subitems[0].type=='CHARDATA')o=node.subitems[0].value;else{o={};for(i=0;i'+(hor?'':'');for(i=0;i'+'';if(!hor)bsrc+='';}bsrc+=(hor?'':'')+''}} return Def(d)||Def(bw)&&U(d)?[bsrc,hor?sz:bw,bc,pI(def.offset||(hor?-bw:0)),hor?bw:sz]:null};function Menu(def,id){var t=this;t.id=id;t.open=[];if(Uef(def))def={};if(Uef(def.type))def.type="bar";t.dd=def.type=="dropdown";if(Uef(def.style))def.style={};var o=def.style;o.box=pB(o.box,1);if(U(o.bgcolor))o.bgcolor='white';o.z=o.z||1;if(Uef(def.position))def.position={};o=def.position;o.pos=o.pos||[0,0];o.pos[0]=pI(o.pos[0]);o.pos[1]=pI(o.pos[1]);o.anchor_side=o.anchor_side||"nw";o.absolute=pB(o.absolute,1);t.menu=new CPopupMenu(def,t,null,t.id+".menu");t.timer=def.timer||1000;t.otime=def.otime||10;Qb=def.imgblank||Qb;Zpre(Qb);_Zmenus[_Zmenus.length]=t};{var Zap=Menu.prototype;Zap.create=function(){this.menu.createTop()};Zap.handleEvent=function(e,s1,s2,src){if(!this._dis){var t=this;t.clearTimer();if(e=='i'){var o=t.open,l=o.length;if(Uef(s1))t.hide();else if(Uef(s2)||(l!=0&&o[l-1].id!=s2.id))t.hideAfter(s1);if(Def(s2))t.showTimer(s2);if(Def(src))src.over();}else if(e=='o'){t.setTimer();if(Def(src))src.out()}}};Zap.clearTimer=function(){if(Def(this._to))clearTimeout(this._to);this._to=''};Zap.setTimer=function(){if(this._to) return;this._to=setTimeout(this.id+'.hide()',this.timer)};Zap.showTimer=function(m){if(this._to) return;this._to=setTimeout(this.id+'.show('+m._path+')',this.otime)};Zap.show=function(path){path.visible(1);this.open[this.open.length]=path;this._to=''};Zap.hide=function(){if(this.open.length>0)this.hideAfter({"id":''});this._to=''};Zap.hideAfter=function(path){var i,l,o;while((l=(o=this.open).length)>0&&o[l-1].id!=path.id){i=l-1;o[i].visible(0);this.open=o.slice(0,i)}};Zap.popupAt=function(x,y){this.menu.moveRel(x,y);this._ap=this.menu.AbsPos();this.popup()};Zap.popupEv=function(e){this.popupAt(e.x,e.y)};Zap.popup=function(){this.handleEvent('i',null,this.menu)};Zap.run=function(){var r=arguments.length>0;if(!r)this.menu.create();if(!(ua.ie4up&&!ua.ie55up||ua.oldOpera)||r){this.menu.moveLayers();if(this.menu.type!='popup')this.menu.visible(1);this._op=1;this._ap=this.menu.AbsPos();this.checkMove()}else if(!ua.oldOpera)setTimeout(this.id+'.run(1)',1);};Zap.checkMove=function(){if(this.menu.AbsPos().join()!=this._ap.join())this.movePos();this._mv=setTimeout(this.id+'.checkMove()',500)};Zap.movePos=function(){this._ap=this.menu.AbsPos();this.menu.Repos()};Zap.state=function(b){if(b)this.checkMove();else if(Def(this._mv))clearTimeout(this._mv);this._dis=!b};Zap.obj=function(){ return this.menu};}function CPopupMenu(def,p,p_lvl,path){var t=this;t.id=Q.newID();if(Uef(def))def={};t._p=p;t._p_lvl=p_lvl;t._top=Uef(p_lvl);t._tid=t._p._tid||t._p.id;t.dd=p_lvl&&p_lvl.dd||p.dd;t._path=path;var o=t.style=def.style||{};if(Def(o.box))o.box=pB(o.box,1);if(Def(o.itemoffset)){o.itemoffset.x=pI(o.itemoffset.x||0);o.itemoffset.y=pI(o.itemoffset.y||0)}if(Def(o.size)){o.size[0]=pI(o.size[0]);o.size[1]=pI(o.size[1])}if(Def(o.shadow))o.shadow.width=pI(o.shadow.width||5);if(Def(o.border))o.border.width=pI(o.border.width||1);t.itemover=def.itemover||{};t.itemon=def.itemon||{};o=t.position=def.position||{};if(Def(o.pos)){o.pos[0]=pI(o.pos[0]);o.pos[1]=pI(o.pos[1])}else o.pos=[0,0];if(Def(o.menuoffset)){o.menuoffset.x=pI(o.menuoffset.x||0);o.menuoffset.y=pI(o.menuoffset.y||0)}if(t._top||t.dd){t.style.direction=t.style.direction||(t._top&&t.dd?"h":"v");o.anchor=o.anchor||(p_lvl&&p_lvl._p.dd?"sw":"ne")}t.separator=def.separator||{};t.defaction=def.defaction||{};if(!t._top){t.style.z=t.style.z||(p.style.z+5);Zcopy(p_lvl.style,t.style,1);Zcopy(p_lvl.itemover,t.itemover,1);Zcopy(p_lvl.itemon,t.itemon,1);Zcopy(p_lvl.separator,t.separator,1);Zcopy(p_lvl.position,t.position,1);Zcopy(p_lvl.defaction,t.defaction,1);}else{t.type=def.type;t.style.z=t.style.z||1;if(t.type=='toolbar'){o=t.style.bar=t.style.bar||{};o.drag=pB(o.drag,1)}}if(Def(o=t.style.bar)){o.size=o.size||[10,10];if(!o.src&&!o.bgcolor)o.bgcolor="blue";o.dir=o.dir||t.style.direction;o.size[0]=pI(o.size[0]);o.size[1]=pI(o.size[1])}t.createItems(def);t._l=[];};{var Zd=CPopupMenu.prototype;Zd.createTop=function(){var mw,mh,t=this,st=t.style;var p=t.position.pos,w=t.width(),h=t.height();if(st.box){mw=w;mh=h}else{mw=pI(st.fixwidth)||w;mh=pI(st.fixheight)||h}var x=t.getAlignX();if(Def(x))p[0]=x;t.createLr(mw,mh,p[1],p[0],0,0,st.z,t.position.absolute,0)};Zd.createLr=function(w,h,t,l,ox,oy,z,a,v,bgc,bgi,html,ev,al){var i=this._l.length;var lr=this._l[i]=[Q.newID(),ox,oy];var b=this.style.box;ZcreateLayer(lr[0],w,h,t+oy,l+ox,a,v,'',bgc,bgi,'',b||ua.nn4?'hidden':'visible','','',z,al,ev,html); return i};Zd.apply=function(){this.create();this._p.refresh()};Zd.create=function(){var t=this;var i,b=t.style.box;var p=t.position.pos,w=t.width(),h=t.height(),st=t.style,z=st.z;var iw=w,ih=h,iox=0,ioy=0;var al=st.opacity;t.moveItems();var itsrc=t.itSrc();t._b=t.createLr(w,h,p[1],p[0],0,0,b?z+2:z,1,0,b?st.bgcolor:'',b?st.bgimg:'',ua.nn4?'':itsrc,['mouseover',t._tid+'.clearTimer()','mouseout',t._tid+'.setTimer()'],b?al:'');if(ua.nn4)dw(itsrc);if(b){var j=st.shadow;if(j){t.createLr(j.width,h,p[1],p[0],w,j.width,z,1,0,j.color,'','','',j.opacity||al);t.createLr(w,j.width,p[1],p[0],j.width,h,z,1,0,j.color,'','','',j.opacity||al)}j=st.border;if(j){var bpr,bw=w;bpr=ZBorder(j.l,j,0,h);if(bpr){iox=-bpr[1];t.createLr(bpr[1],bpr[4],p[1],p[0],-bpr[1],bpr[3],z+1,1,0,bpr[2],'',bpr[0],'',al);bw+=bpr[1]}bpr=ZBorder(j.r,j,0,h);if(bpr){t.createLr(bpr[1],bpr[4],p[1],p[0],w,bpr[3],z+1,1,0,bpr[2],'',bpr[0],'',al);bw+=bpr[1]}bpr=ZBorder(j.t,j,1,bw);if(bpr){ioy=-bpr[4];t.createLr(bpr[1],bpr[4],p[1],p[0],bpr[3],-bpr[4],z+1,1,0,bpr[2],'',bpr[0],'',al);}bpr=ZBorder(j.b,j,1,bw);if(bpr){ih+=bpr[4];t.createLr(bpr[1],bpr[4],p[1],p[0],bpr[3],h,z+1,1,0,bpr[2],'',bpr[0],'',al)}iw=bw}j=st.bar;if(j){var o,bh=j.size[1],bw=j.size[0];if(bh<0)bh=h;if(bw<0)bw=w;bh=Math.min(bh,h);bw=Math.min(bw,w);t._bar=t.createLr(bw,bh,p[1],p[0],0,0,z+3,1,0,j.bgcolor,j.src,'',['mouseover',t._tid+'.clearTimer()','mouseout',t._tid+'.setTimer()'],al);Zpre(j.src);if(j.drag){t._dragbar=t._bar;var o=Zel(t._l[t._bar][0])[0];Q.regEventHandler("mousedown",t._path+".startDrag(ev)",o);Q.regEventHandler("mouseup",t._path+".stopDrag()",o);if(ua.ie4up){Q.regEventHandler("dragstart","return false");Q.regEventHandler("selectstart","return false")}}}}else{iox=t._fx1;ioy=t._fy1;iw=Math.max(iw,t._fx2-iox);ih=Math.max(ih,t._fy2-ioy)}if(ua.ie55up)t.createLr(iw,ih,p[1],p[0],iox,ioy,z-1,1,0,'','','');for(i=t.items.length;i>0;)t.items[--i].createChild();t.created=1};Zd.itSrc=function(){var i=0,src='',it=this.items;for(;i0;)it[--i].moveChild()};Zd.Repos=function(){var t=this,p=t.position.pos,x=t.getAlignX()||p[0],v=t.vis;if(Def(x)){if(v)t.visible(0);this.moveTo(x,p[1]);if(v)t.visible(v)}};Zd.getAlignX=function(){var x,ww=Q.getWinWidth(),al=this.position.align,w=this.width();if(Def(al)){if(al=='left')x=0;else if(al=='right')x=ww-w;else if(al=='center')x=(ww-w)/2;} return x};Zd.imVis=function(v){var i,it=this.items;for(i=0;i0){ZmoveTo(this._l[0][0],x,y);this.moveLayers(ns)}};Zd.moveRel=function(x,y){var w,h,off,t=this,p=t.position,a=p.anchor,as=p.anchor_side;if(t._p.width){w=t._p.width();h=t._p.height();if(a=='nw'||a=='sw'||a=='w'){}else if(a=='ne'||a=='se'||a=='e')x+=w;if(a=='nw'||a=='ne'||a=='n'){}else if(a=='sw'||a=='se'||a=='s')y+=h;if(a=='n'||a=='s')x=Math.ceil(x+w/2);if(a=='e'||a=='w')y=Math.ceil(y+h/2);}w=t.width(),h=t.height();if(as=='nw'||as=='sw'||as=='w'){}else if(as=='ne'||as=='se'||as=='e')x-=w;if(as=='nw'||as=='ne'||as=='n'){}else if(as=='sw'||as=='se'||as=='s')y-=h;if(as=='n'||as=='s')x-=Math.floor(w/2);if(as=='e'||as=='w')y-=Math.floor(h/2);if(Def(off=p.menuoffset)){x+=off.x;y+=off.y}t.moveTo(x,y)};Zd.hor=function(){ return this.style.direction=='h'};Zd.width=function(c){var i,obj,h,r=0,ix=0,t=this,it=t.items;if(t.style.box)if(!U(t._b)&&!c)r=ZgetWidth(t._l[t._b][0]);else{h=t.hor();if(Def(obj=t.style.itemoffset))ix=obj.x;for(i=0;i=0){it[i]=null;it=this.items=it.slice(0,i).concat(it.slice(i+1));for(j=0;j'}var mo=['mouseover',t._tid+".handleEvent('i',"+p_p+(!t.sep?","+t.child()+","+t._path:'')+");Q.cancelEvent(event)",'mouseout',t._tid+".handleEvent('o',"+p_p+",null"+(!t.sep?","+t._path:'')+");Q.cancelEvent(event)"];if(t.frm)mo=[];var nfs=src+''+(anch?'':'');if(t.frm)nfs="";var myz=_z+5;if(t.frm)myz=0;src=t.lrSrc(w,h,y,x,0,0,myz,1,vis,'','','',nfs,mo);var bg=st.bgimg,bgc=st.bgcolor,brd=st.border;if(t.bool&&t.val)vis=0;src+=t.lrSrc(w,h,y,x,ox,oy,_z+2,1,vis,bgc,bg,brd,t.sep?'':t.gHTML(0),'',op);if(!t.sep)src+=t.lrSrc(w,h,y,x,ox,oy,_z+4,1,0,t.styleover.bgcolor||bgc,t.styleover.bgimg||bg,t.styleover.border||brd,t.gHTML(1),'',op);if(!t.sep&&t.bool&&!t.menu)src+=t.lrSrc(w,h,y,x,ox,oy,_z+3,1,t.val,t.styleon.bgcolor||bgc,t.styleon.bgimg||bg,t.styleon.border||brd,t.gHTML(2),'',op);var v=st.shadow;if(v)src+=t.lrSrc(w,h,y,x,v.width,v.width,_z,1,vis,v.color,'','','','',v.opacity||op); return src};Zap.gHTML=function(n){var t=this;var sto,st=t.style;var im,ei=st.imgendoff,brd=st.border,w=st.size[0],h=st.size[1],txt=t.text;if(t.menu)im=st.imgdir;else{im=st.imgitem;if(ei)ei={src:Qb,width:ei.width,height:ei.height}}var al=st.align,css=st.css,tcol=st.color;if(n==0) return t.mkHTML(w,h,tcol,css,al,t.text,im,ei,brd);if(n==1){txt=t.textover||txt;sto=t.styleover;if(t.menu){im=sto.imgdir||st.imgdiropen||im;ei=st.imgendon||ei}else im=sto.imgitem||im}else if(n==2){txt=t.texton||txt;sto=t.styleon;im=sto.imgitem||im} return t.mkHTML(w,h,sto.color||tcol,sto.css||css,sto.align||al,txt,im,ei,sto.border||brd)};Zap.fillLr=function(){var t=this;ZHTML(t._l[1][0],t.gHTML(0));if(!t.sep)ZHTML(t._l[2][0],t.gHTML(1));if(t.bool)ZHTML(t._l[3][0],t.gHTML(2));};Zap.mkHTML=function(lw,lh,fn,css,al,txt,img,ei,b){var spc,iw,ih,w,isrc='',src='';if(txt||Def(img)||Def(ei)){src='';if(b){lw-=2*b.width;lh-=2*b.width;}if(img){spc=img.space||this.style.imgspace;spc=pI(spc||0);iw=pI(img.width);ih=pI(img.height);w=iw+spc*2;lw-=w;src+=''}if(ei){spc=ei.space||this.style.imgspace;spc=pI(spc||0);iw=pI(ei.width);ih=pI(ei.height);w=iw+spc*2;lw-=w;isrc=''}if(txt)src+='<'+(ua.opera?'span style="width:100%"':'p')+(css?' class="'+css+'"':'')+'>'+(fn?''+txt+'':txt)+'';src+=isrc+'
';} return src};Zap.createChild=function(){if(this.menu)this.menu.create()};Zap.child=function(){ return this._path+".menu"};Zap.St=function(a,v){this.style[a]=v};Zap.StOver=function(a,v){this.styleover[a]=v};Zap.StOn=function(a,v){this.styleon[a]=v};Zap.z=function(z){this.style.z=z};Zap.Act=function(a,v){this.action[a]=v};Zap.visible=function(v){var i,t=this;if(t._l.length){for(i=0;i