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<len;i++){el=this.findElement(name,set.layers[i]);if(Def(el))
return el;}}}else return set[name];}};CTp.use=function(mod){dw('<script language="javascript" type="text/javascript" src="'+(this._path||'')+mod+'"><\/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<a.length;i++)if(Def(a[i]))a[i]()};CTp.onload=function(){this.call(this.ld)};CTp.onresize=function(){this.call(this.sz)};CTp.saveWinSize=function(){this._WH=this.getWinHeight();this._WW=this.getWinWidth()};CTp.getWinHeight=function(){
return ua.ie4up?ua.css1cm?document.documentElement.offsetHeight:document.body.clientHeight:self.innerHeight};CTp.getWinWidth=function(){
return ua.ie4up?ua.css1cm?document.documentElement.offsetWidth:document.body.clientWidth:self.innerWidth};CTp.getScrollX=function(){
return ua.ie4up?document.body.scrollLeft:self.pageXOffset};CTp.getScrollY=function(){
return ua.ie4up?document.body.scrollTop:self.pageYOffset};CTp.cancelEvent=function(e){if(ua.nn4)
return;if(!U(e.stopPropagation))e.stopPropagation();else e.cancelBubble=true};CTp.newID=function(){
return 'Q'+this._c++};CTp.readCookie=function(name){var str=document.cookie;var set=str.split(';');var sz=set.length;var x,pcs;var val="";for(x=0;x<sz&&val=="";x++){pcs=set[x].split('=');if(pcs[0].substring(0,1)==' ')pcs[0]=pcs[0].substring(1,pcs[0].length);if(pcs[0]==name)val=pcs[1]}
return val};CTp.writeCookie=function(name,val,exp){var expDate=new Date();if(exp){expDate.setTime(expDate.getTime()+exp);document.cookie=name+"="+val+"; expires="+expDate.toGMTString();}else{document.cookie=name+"="+val;}};CTp.preload=function(){var i,im=[],a=arguments;for(i=0;i<a.length;i++){if(Uef(a[i]))im[i]=null;else if(Def(this.pre[a[i]]))im[i]=this.pre[a[i]];else{im[i]=new Image();im[i].src=a[i];this.pre[a[i]]=im[i]}}
return a.length==1?im[0]:im};}var Q=new CQ('Q');Q.setOnLoad(function(){Q.loaded=1});function Zel(l){if(typeof l=='string')l=Q.findElement(l);var st=ua.nn4?l:l.style;
return[l,st]};function ZHTML(l,HTML){l=Zel(l);if(ua.nn4){var d=l[0].document;d.open();d.write(HTML);d.close()}else if(!ua.oldOpera)l[0].innerHTML=HTML;};function Zclear(l){ZsetHTML(l,'')};function Zvis(l,v){l=Zel(l);l[1].visibility=v=='i'?"inherit":v?ua.nn4?"show":"visible":ua.nn4?"hide":"hidden"};function Zinhvis(l,v){Zvis(l,v?'i':0)};function Zshow(l){Zvis(l,1)};function Zhide(l){Zvis(l,0)};function ZshowAt(l,x,y){l=Zel(l);ZmoveTo(l[0],x,y);Zshow(l[0])};function Zz(l,z){l=Zel(l);l[1].zIndex=z};function ZsetWidth(l,w){l=Zel(l);var h=ZgetHeight(l[0]);if(ua.nn4)l[0].resizeTo(w,h);else if(ua.oldOpera)l[1].pixelWidth=w;else l[1].width=w};function ZsetHeight(l,h){l=Zel(l);var w=ZgetWidth(l[0]);if(ua.nn4)l[0].resizeTo(w,h);else if(ua.oldOpera)l[1].pixelHeight=h;else l[1].height=h};function Zresize(l,w,h){l=Zel(l);if(ua.nn4)l[0].resizeTo(w,h);else{ZsetHeight(l[0],h);ZsetWidth(l[0],w)}};function ZsetTop(l,y){l=Zel(l);if(ua.nn4)l[1].y=y;else if(ua.oldOpera)l[1].pixelTop=y;else l[1].top=y};function ZsetLeft(l,x){l=Zel(l);if(ua.nn4)l[1].x=x;else if(ua.oldOpera)l[1].pixelLeft=x;else l[1].left=x};function ZmoveTo(l,x,y){l=Zel(l);if(ua.nn4)l[0].moveTo(x,y);else{ZsetTop(l[0],y);ZsetLeft(l[0],x)}};function ZmoveRel(l,dx,dy){l=Zel(l);ZmoveTo(l[0],ZgetLeft(l[0])+dx,ZgetTop(l[0])+dy)};function Zcss(l,css){if(!ua.oldOpera&&!ua.nn4){l=Zel(l);l[0].className=css}};function ZsetBgColor(l,c){l=Zel(l);if(!ua.nn4&&!ua.oldOpera)l[1].backgroundColor=c;else if(ua.nn4)l[1].bgColor=c;else if(ua.opera)l[1].background=c};function ZsetBgImage(l,url){l=Zel(l);if(!ua.nn4&&!ua.oldOpera)l[1].backgroundImage='url('+url+')';else l[1].background.src=url};function Zclip(l,x,y,w,h){l=Zel(l);if(ua.nn4){var area=l[1].clip;area.top=y;area.left=x;area.width=w;area.height=h}else if(!ua.oldOpera)l[1].clip='rect('+y+'px '+(x+w)+'px '+(y+h)+'px '+x+'px)'};function Zdisplay(l,d){l=Zel(l);l[1].display=d};function Zoverflow(l,o){l=Zel(l);l[1].overflow=o};function Zalpha(l,a){if(ua.ie55up){l=Zel(l);l[1].filter='progid:DXImageTransform.Microsoft.Alpha(Opacity="'+a+'")'}};function ZgetVis(l){l=Zel(l);var v=l[1].visibility;
return Def(v)?v=="show"||v=="visible":v};function ZgetWidth(l){l=Zel(l);var w;if(ua.nn4)w=l[0].clip.width;else w=ua.oldOpera?l[1].pixelWidth:l[0].offsetWidth;
return w};function ZgetHeight(l){l=Zel(l);var h;if(ua.nn4)h=l[0].clip.height;else h=ua.oldOpera?l[1].pixelHeight:l[0].offsetHeight;
return h};function ZgetSize(l){l=Zel(l);
return[ZgetWidth(l[0]),ZgetHeight(l[0])]};function ZgetContentWidth(l){l=Zel(l);
return ua.nn4?l[0].document.width:ua.oldOpera?l[1].pixelWidth:ua.ie&&ua.win?l[0].scrollWidth:l[0].offsetWidth};function ZgetContentHeight(l){l=Zel(l);
return ua.nn4?l[0].document.height:ua.oldOpera?l[1].pixelHeight:ua.ie&&ua.win?l[0].scrollHeight:l[0].offsetHeight};function ZgetTop(l){l=Zel(l);
return ua.nn4?l[0].y:l[0].offsetTop};function ZgetLeft(l){l=Zel(l);
return ua.nn4?l[0].x:l[0].offsetLeft};function ZgetPos(l){l=Zel(l);
return[ZgetLeft(l[0]),ZgetTop(l[0])]};function ZgetAbsTop(l){l=Zel(l);if(ua.nn4)
return l[0].pageY;else{var o=l[0],y=ZgetTop(l[0]);while(Def(o=o.offsetParent))y+=o.offsetTop;
return y}};function ZgetAbsLeft(l){l=Zel(l);if(ua.nn4)
return l[0].pageX;else{var o=l[0],l=ZgetLeft(l[0]);while(Def(o=o.offsetParent))l+=o.offsetLeft;
return l}};function ZgetAbsPos(l){l=Zel(l);
return[ZgetAbsLeft(l[0]),ZgetAbsTop(l[0])]};function ZlrStyle(w,h,t,l,a,v,bgc,bgi,cl,o,d,st,z,al){
return 'position:'+(a?'absolute':'relative')+';overflow:'+(o||'hidden')+';visibility:'+(v?'inherit':'hidden')+(Def(t)?";top:"+t+"px":"")+(Def(l)?";left:"+l+"px":"")+(Def(w)?";width:"+w+"px":"")+(Def(h)?";height:"+h+"px":"")+(z?";z-index:"+z:"")+(bgc?";background-color:"+bgc:"")+(bgi?";background-image:url("+bgi+")":"")+(cl?";clip:rect("+cl[0]+"px "+cl[1]+"px "+cl[2]+"px "+cl[3]+"px)":"")+(d?";display:"+d:"")+";"+(st||'')+(Def(al)&&ua.ie55up?';filter:progid:DXImageTransform.Microsoft.Alpha(Opacity='+al+')':'')};function ZlrSource(id,w,h,t,l,a,v,css,bgc,bgi,cl,o,d,st,z,al,ev,html){var src='';if(ua.nn4){if(Uef(cl)&&Def(h)&&Def(w)&&(Uef(o)||o=='hidden'))cl=[0,w,h,0];if(st)src="<style type=text/css>#"+id+"{"+st+"}</style>";src+=(a?'<':'<i')+'layer id='+id+(Def(t)?' top='+t:"")+(Def(l)?' left='+l:"")+(Def(w)?' width='+w:"")+(z?' z-index='+z:"")+' visibility='+(v?"inherit":"hide")+(cl?' clip="'+cl[3]+','+cl[0]+','+cl[1]+','+cl[2]+'"':"")+(bgc?' bgcolor="'+bgc+'"':"")+(bgi?' background="'+bgi+'"':"")}else src='<div id="'+id+'" style="'+ZlrStyle(w,h,t,l,a,v,bgc,bgi,cl,o,d,st,z,al)+'"';if(css)src+=' class="'+css+'"';if(Def(ev))for(var i=ev.length-1;i>=0;i-=2)src+=' on'+ev[i-1]+'="'+ev[i]+'"';//}
return src+">"+(html||'')+'</'+(ua.nn4?(a?'':'i')+"layer>":"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;i<e.length;i++){ev[2*i]=e[i][0].substr(2);ev[2*i+1]=e[i][1]}
return ev};Zb.getSource=function(){var t=this;
return ZlrSource(t._id,t._w,t._h,t._t||0,t._l||0,!t._rel,t._v,t._css,t._bgC,t._bgI,t._cl,t._ov,t._dsp,t._st,t._z,t._al,t.remapEv(),t._HTML)};Zb.create=function(p){var t=this;if(t._ex)
return;if(Def(ZcreateLayer(t._id,t._w,t._h,t._t||0,t._l||0,!t._rel,t._v,t._css,t._bgC,t._bgI,t._cl,t._ov,t._dsp,t._st,t._z,t._al,t.remapEv(),t._HTML)))t.assignLayer()};}function CNode(type,name,parent){var t=this;t.type=type;t.name=name;t.parent=parent;t.parameters=[];t.subitems=[];t.value=''};{var CNp=CNode.prototype;CNp.getParameter=function(name){for(var i=0;i<this.parameters.length;++i)if(this.parameters[i].name==name)
return this.parameters[i].value;
return null};CNp.getValue=function(){
return this.value};}function CXMLTree(str){this.str=str;this.tree=new CNode("DOCUMENT","",null);this.parse(this.str,0,this.tree)};{Zc=CXMLTree.prototype;Zc.parse=function(s,begin,tag){var close=false;var index=begin;if(typeof(s)!="string"||s==null)
return null;while(!close){index=this.skipWhitespaces(s,index);if(index>s.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<str.length&&((c=str.charAt(i))=='\n'||c=='\r'||c=='\t'||c==' '))++i;
return i};Zc.getCharname=function(str,begin){var c,i=begin;while(i<str.length&&!((c=str.charAt(i))=='\n'||c=='\r'||c=='\"'||c=='\''||c=='\t'||c=='/'||c=='>'||c=='<'||c=='='||c==' '))++i;
return str.substr(begin,i-begin)};Zc.processValue=function(str){var a=[];a=str.split("&lt;");str=a.join("<");a=str.split("&gt;");str=a.join(">");a=str.split("&quot;");str=a.join("\"");a=str.split("&apos;");str=a.join("\'");a=str.split("&amp;");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<node.parameters.length;++i){var par=node.parameters[i];o[par.name]=par.value}for(i=0;i<node.subitems.length;++i){var val,it=node.subitems[i];if(it.type=='CHARDATA')o.__value=it.value;else{val=this.toObject(it);if(Uef(o[it.name]))o[it.name]=val;else{if(o[it.name].constructor!=Array)o[it.name]=[o[it.name]];o[it.name][o[it.name].length]=val}}}}
return o;};}function CTimer(p,id,sig,oS,n,ps,bef,betw,aft){this._par=p;this._id=id;this._sig=sig;this._o=oS;this._n=n;this._ps=ps||100;this._scr=[bef,betw,aft]};{var CTp=CTimer.prototype;CTp.run=function(){if(Uef(this._o))
return;this._i=0;if(Def(this._scr[0]))eval(this._scr[0]);this._to=setTimeout(this+'.step()',this._ps)};CTp.step=function(){var t=this;if(t._o)t._o.onTimer();if(Def(t._scr[1]))eval(t._scr[1]);t._i++;if(t._i<t._n)t._to=setTimeout(t+'.step()',t._ps);else t.finish()};CTp.stop=function(){this.pause();this.finish()};CTp.pause=function(){clearTimeout(this._to);this._to=null};CTp.paused=function(){
return this._to==null};CTp.on=function(){this.step()};CTp.finish=function(){if(Def(this._scr[2]))eval(this._scr[2]);if(this._sig)this._par.sig_stop(this._id)};CTp.toString=function(){
return this._par.getObjPath(this._id)};}function CSlideAnimation(oPar,id,sig,aCL,aP,df,dt,bef,betw,aft){var i,dx,dy,n,t=this;t.base=CTimer;t._l=aCL;t._x=[];t._y=[];t._st_x=[];t._st_y=[];for(i=0;i<t._l.length;i++){t._x[i]=t._l[i].getLeft();t._y[i]=t._l[i].getTop();dx=aP[i][0]-t._x[i];dy=aP[i][1]-t._y[i];if(!i)n=Math.floor(Math.sqrt(dx*dx+dy*dy)/df);t._st_x[i]=dx/n;t._st_y[i]=dy/n}t.base(oPar,id,sig,t,n,dt,bef,betw,aft)};CSlideAnimation.prototype=new CTimer;CSlideAnimation.prototype.onTimer=function(){var i,t=this;for(i=0;i<t._l.length;i++){t._x[i]+=t._st_x[i];t._y[i]+=t._st_y[i];t._l[i].moveTo(Math.round(t._x[i]),Math.round(t._y[i]))}};function CClipAnimation(oPar,id,sig,oCL,aP,n,ps,bef,betw,aft){var i,t=this;t.base=CTimer;t._l=oCL;t._c=oCL.getClip();t._st=[];for(i=0;i<4;i++)t._st[i]=(aP[i]-t._c[i])/n;this.base(oPar,id,sig,t,n,ps,bef,betw,aft)};CClipAnimation.prototype=new CTimer;CClipAnimation.prototype.onTimer=function(){var i=0,c=this._c;for(;i<4;i++)c[i]+=this._st[i];this._l.clip(c[3],c[0],c[1]-c[3],c[2]-c[0])};function CAniCollection(id){var t=this;t._id=id;t._c=0;t._a=[];t.slideAni=CSlideAnimation;t.clipAni=CClipAnimation;t.SLIDE='slideAni';t.CLIP='clipAni'};{var CCp=CAniCollection.prototype;CCp.add=function(){var id='s'+this._c++,a=arguments;var o=new this[a[0]](this,id,a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8]);this._a[id]=o;
return id};CCp.remove=function(t_id){delete this._a[t_id]};CCp.run=function(t_id){if(Uef(this._a[t_id]))
return;this._a[t_id].run()};CCp.obj=function(t_id){return this._a[t_id]};CCp.sig_stop=function(t_id){setTimeout(this._id+".remove('"+t_id+"')",1)};CCp.getObjPath=function(t_id){
return this._id+'._a.'+t_id};var Zb=CLayer.prototype;Zb.slide=function(x,y,st,tm,bef,betw,aft){var a=arguments;var s=Q.Ani.add(Q.Ani.SLIDE,true,[this],[[x,y]],st,tm,bef,betw,aft);Q.Ani.run(s);
return s};Zb.slideRel=function(dx,dy,st,tm,bef,betw,aft){var a=arguments;var s=Q.Ani.add(Q.Ani.SLIDE,true,[this],[[this.getLeft()+dx,this.getTop()+dy]],st,tm,bef,betw,aft);Q.Ani.run(s);
return s};Zb.clipSlide=function(l,t,r,b,n,tm,bef,betw,aft){var s=Q.Ani.add(Q.Ani.CLIP,true,this,[t,r,b,l],n,tm,bef,betw,aft);Q.Ani.run(s);
return s};Zb.clipMove=function(l,t,n,tm,bef,betw,aft){var c=this.getClip();var dx=l-c[3],dy=t-c[0];var s=Q.Ani.add(Q.Ani.CLIP,true,this,[t,c[1]+dx,c[2]+dy,l],n,tm,bef,betw,aft);Q.Ani.run(s);
return s};}Q.Ani=new CAniCollection('Q.Ani');var Qb="/asis/blank1x1.gif";function Zpre(src){
return Q.preload(src)};var Zfnv=ua.oldOpera||ua.nn4?Zvis:Zinhvis;function Zcopy(src,dest,menu,box){for(var i in src)if(U(dest[i]))if(menu||!box||i!='bgcolor'&&i!='bgimg'&&i!='border'&&i!='shadow'&&i!='itemoffset'&&i!='opacity')dest[i]=src[i]};function ZmnuLrSource(w,h,t,l,ox,oy,z,a,v,bgc,bgi,b,html,ev,al){var i=this._l.length,lw=w,lh=h;var st,lr=this._l[i]=[Q.newID(),ox,oy];if(b){var bw=b.width;if(ua.moz||ua.oldOpera||ua.nn4){lw-=2*bw;lh-=2*bw}if(!ua.nn4)st="border:"+bw+"px "+(b.style||'solid')+' '+b.color;else{html=ZlrSource('s'+lr[0],lw,lh,bw,bw,1,1,'',bgc||this._p.style.bgcolor,bgi,'','','','',z+1,'','',html);lw=w;lh=h;bgc=b.color;bgi=''}}
return ZlrSource(lr[0],lw,lh,t+oy,l+ox,a,v,'',bgc,bgi,'','','',st,z,al,ev,html)};function ZBorder(d,b,hor,w){var bw=b.width,bc=b.color;var def=d||{},bsrc='',sz=def.size||w;if(Def(d)){var i,tdw,tblw,tblh,atr,add,diff=sz;bw=pI(def.width||bw);bc=def.color||bc;tblw=hor?sz:bw;tblh=hor?bw:sz;atr=hor?' width=':' height=';add=hor?' height='+tblh:' width='+tblw;if(Def(def.el)){var elw,elm=def.el;for(i=0;i<elm.length;i++){elw=pI(elm[i].width);if(!isNaN(elw))diff-=elw}if(diff<0)diff=0;bsrc='<table cellpadding=0 cellspacing=0 border=0 width='+tblw+' height='+tblh+'>'+(hor?'<tr>':'');for(i=0;i<elm.length;i++){var imsrc='',bgimg='';if(!hor)bsrc+='<tr>';tdw=elm[i].width;imsrc=elm[i].src||Qb;if(Uef(tdw)){tdw=diff;bgimg=imsrc;imsrc=Qb}tdw=atr+tdw;bsrc+='<td'+tdw+(Def(bgimg)?' background="'+bgimg+'"':'')+(Def(elm[i].color)?' bgcolor="'+elm[i].color+'"':'')+add+'>'+'<img src="'+imsrc+'"'+tdw+add+'></td>';if(!hor)bsrc+='</tr>';}bsrc+=(hor?'</tr>':'')+'</table>'}}
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,'','','<iframe frameborder=0 '+(location.protocol=='https:'?' src="/blank.html"':'')+' style="filter:Alpha(Opacity=0);visibility:inherit;position:absolute;top:0px;left:0px;height:100%;width:100%"></iframe>');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(;i<it.length;)src+=it[i++].src();
return src};Zd.St=function(a,v){this.style[a]=v};Zd.StOver=function(a,v){this.itemover[a]=v};Zd.StOn=function(a,v){this.itemon[a]=v};Zd.Pos=function(a,v){this.position[a]=v};Zd.z=function(z){this.style.z=z};Zd.Separator=function(v){this.separator=v};Zd.AbsPos=function(){var p;if(this._top)p=this.created?ZgetAbsPos(this._l[0][0]):this.position.pos;else p=this.position.pos||[0,0];
return[p[0],p[1]]};Zd.moveItems=function(){var i,ap,ix,iy,ox,oy,t=this;var dh=t.hor(),it=t.items,b=t.style.box,ioff=t.style.itemoffset;t._fx1=t._fy1=t._fx2=t._fy2=ox=oy=0;if(ua.nn4)ap=(t._top&&!t.position.absolute?t.AbsPos():t.position.pos)||[0,0];if(b){var bar=t.style.bar;ix=Def(bar)&&bar.dir=='v'?bar.size[0]:0;iy=Def(bar)&&bar.dir=='h'?bar.size[1]:0}else iy=ix=0;if(Def(ioff)){ox=pI(ioff.x||0);oy=pI(ioff.y||0);if(b){ix+=ox;iy+=oy}}for(i=0;i<it.length;i++){var p,s=it[i].style.size;if(b||!it[i].Pos()){it[i].Pos([ix,iy]);if(dh)ix+=s[0]+ox;else iy+=s[1]+oy;}if(ua.nn4)it[i].moveRel(ap[0],ap[1]);else if(!b&&ua.ie55up){p=it[i].Pos();t._fx1=Math.min(t._fx1,p[0]);t._fy1=Math.min(t._fy1,p[1]);t._fx2=Math.max(t._fx2,p[0]+s[0]);t._fy2=Math.max(t._fy2,p[1]+s[1])}}};Zd.moveSubs=function(){var o,p=this.AbsPos(),i=this._top?1:0;for(;i<this._l.length;){o=this._l[i++];ZmoveTo(o[0],p[0]+o[1],p[1]+o[2])}};Zd.moveLayers=function(ns){this.moveSubs();if(ua.nn4)this.moveItems();var i,it=this.items;if(!ns)for(i=it.length;i>0;)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;i<it.length;i++)it[i].visible(v)};Zd.visible=function(v){var i,t=this;t.vis=v;for(i=0;i<t._l.length;i++)Zvis(t._l[i][0],v);if(ua.oldOpera||ua.nn4)t.imVis(v);if(t._p.setOver)t._p.setOver(v);};Zd.moveTo=function(x,y,ns){var i,o,p=this.position;p.pos=[x,y];if(this._l.length>0){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<it.length;i++){var iw=it[i].style.size[0];r=h?r+iw+ix:Math.max(r,iw)}r+=(h?1:2)*ix;if(Def(obj=t.style.bar)&&obj.dir=='v')r+=obj.size[0];}else r=it[0].style.size[0];
return r};Zd.height=function(c){var i,h,obj,r=0,iy=0,t=this,it=t.items;if(t.style.box)if(!U(t._b)&&!c)r=ZgetHeight(t._l[t._b][0]);else{h=t.hor();if(Def(obj=t.style.itemoffset))iy=obj.y;for(i=0;i<it.length;i++){var ih=it[i].style.size[1];r=h?Math.max(r,ih):r+ih+iy}r+=(h?2:1)*iy;if(Def(obj=t.style.bar)&&obj.dir=='h')r+=obj.size[1];}else r=it[0].style.size[1];
return r};Zd.createItems=function(def){this.items=[];var i,it=def.items;if(U(it))
return;if(U(it.length)&&Def(it.item))it=it.item;if(U(it.length))it=[it];for(i=0;i<it.length;i++)this.addItem(it[i]);};Zd.addItem=function(def){var it=this.items;
return it[it.length]=new MenuItem(def,this,this._path+".items["+it.length+"]");};Zd.delItem=function(i){var j,it=this.items;if(i<it.length&&i>=0){it[i]=null;it=this.items=it.slice(0,i).concat(it.slice(i+1));for(j=0;j<it.length;)it[j]._path=this._path+".items["+j+++"]";}};Zd.getItem=function(i){
return i<this.items.length?this.items[i]:null};Zd.startDrag=function(e){var t=this;if(!t.position.absolute)
return;Q.regEventHandler('mousemove',t._path+'.dragTo(ev)');var p=t.AbsPos();t._drdX=p[0]-e.x;t._drdY=p[1]-e.y;t._p.hide();t._p.state(0)};Zd.stopDrag=function(){Q.clearEventHandler('mousemove');this.Repos();this._p.state(1)};Zd.dragTo=function(e){this.moveTo(e.x+this._drdX,e.y+this._drdY,1)};}function MenuItem(def,p,path){this._p=p;this._tid=p._tid;this._path=path;if(Def(def)&&def.type=='separator'){def=p.separator;def.type='separator';}this.initDef(def);this._l=[];};{var Zap=MenuItem.prototype;Zap.lrSrc=ZmnuLrSource;Zap.initDef=function(def){var t=this;if(Uef(def))def={};t.text=def.text;t.textover=def.textover;t.frm=def.frm;t.texton=def.texton;var o=t.style=def.style||{};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);o.z=o.z||(t._p.style.z+5);t.styleover=def.styleover||{};t.styleon=def.styleon||{};Zcopy(t._p.style,t.style,0,t._p.style.box);Zcopy(t._p.itemover,t.styleover,0);Zcopy(t._p.itemon,t.styleon,0);if(def.menu)t.menu=new CPopupMenu(def.menu,t,t._p,t.child());else t.menu=null;t.action=def.action||{};Zcopy(t._p.defaction,t.action,0);var o=t.position=def.position||{};if(Def(o.pos)){o.pos[0]=pI(o.pos[0]);o.pos[1]=pI(o.pos[1])}t.type=def.type;t.sep=def.type=='separator';t.bool=def.type=='bool';t.val=def.value||0;};Zap.src=function(){var t=this,src='';var p=t.Pos()||[0,0],st=t.style,s=st.size,_z=st.z,vis=!ua.nn4||t._p.vis;var op=st.opacity;var w=s[0],h=s[1],x=p[0],y=p[1],ox=0,oy=0;var act=t.action,js=act.js,url=act.url,target=act.target;var anch=!t.sep&&(js||url||t.bool);
var p_p=t._p._path;if(t.frm)anch=0;if(anch){src+='<a href="'+(url||'#')+(target?'" target="'+target:'')+'" onClick="'+(t.bool?t._path+'.toggle();':'')+(ua.nn4?'':'this.blur();')+t._tid+'.hide();'+(js?js:url?'':'return false')+'" title="'+(act.title||'')+'">'}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+'<img border=0 src="'+Qb+'" width='+w+' height='+h+'>'+(anch?'</a>':'');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='<table border=0 cellpadding=0 cellspacing=0 width=100%><tr>';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+='<td width='+w+' height='+ih+'><img src="'+img.src+'" width='+iw+' height='+ih+' hspace='+spc+' border=0></td>'}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='<td width='+w+' height='+ih+' align=right><img src="'+ei.src+'" width='+iw+' height='+ih+' hspace='+spc+' border=0></td>'}if(txt)src+='<td'+(al?' align='+al:'')+' height="'+lh+'" width="'+lw+'"><'+(ua.opera?'span style="width:100%"':'p')+(css?' class="'+css+'"':'')+'>'+(fn?'<font color='+fn+'>'+txt+'</font>':txt)+'</'+(ua.opera?'span':'p')+'></td>';src+=isrc+'</tr></table>';}
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<t._l.length;)Zfnv(t._l[i++][0],v);if(t.bool)t.setBool(true);else if(t._l[2])Zhide(t._l[2][0]);}};Zap.Pos=function(p){
return Def(p)?this.position.pos=p:this.position.pos};Zap.Type=function(t){if(Def(t)){if(t=='separator'){this.initDef(this._p.separator);this.sep=1;}this.type=t;this.bool=t=='bool';}
return this.type};Zap.AbsPos=function(){var pos=this._p.AbsPos();pos[0]+=this.Pos()[0];pos[1]+=this.Pos()[1];
return pos};Zap.width=function(){return this.style.size[0]};Zap.height=function(){
return this.style.size[1]};Zap.moveChild=function(){if(this.menu){var ap=this.AbsPos();this.menu.moveRel(ap[0],ap[1])}};Zap.moveRel=function(x,y){var i=0,l=this._l,p=this.Pos();for(;i<l.length;i++)ZmoveTo(l[i][0],x+p[0]+l[i][1],y+p[1]+l[i][2])};Zap.over=function(){var t=this;Zfnv(t._l[2][0],1);Zhide(t._l[1][0]);var scr=t.action.over;if(Def(scr))eval(scr);if(t.bool)Zhide(t._l[3][0])};Zap.out=function(){if(!this.menu||!this._over){this.setBool(1);var scr=this.action.out;if(Def(scr))eval(scr)}};Zap.setOver=function(v){this._over=v;this.setBool(!v)};Zap.setBool=function(v){var t=this;if(v){Zhide(t._l[2][0]);if(!(ua.nn4||ua.oldOpera)||t._p.vis){if(t.bool){Zfnv(t._l[1][0],!t.val);Zfnv(t._l[3][0],t.val)}else Zfnv(t._l[1][0],1)}}};Zap.toggle=function(){var t=this;t.val=!t.val;Zfnv(t._l[1][0],!t.val);Zfnv(t._l[3][0],t.val);var code=t.val?t.action.on:t.action.off;if(Def(code))eval(code)};Zap.addPopup=function(def){var t=this;delete t.menu;t.menu=new CPopupMenu(def,t,t._p,t.child());if(t._p.created)t.fillLr();
return t.menu};Zap.delPopup=function(){var t=this;if(t.menu){t.menu.visible(0);delete t.menu}if(t._p.created)t.fillLr()};Zap.refresh=function(){this.moveChild()};Zap.setText=function(s,t){this['text'+(t||'')]=s};}var _Zmenus=[];function Zm_load(){for(var i=0;i<_Zmenus.length;)_Zmenus[i++].run(1);Q.setOnResize(Zm_res,1)};function Zm_res(){if(ua.oldOpera||ua.nn4){if(Uef(window._Zreloading)){window._Zreloading=1;location.reload(1)}}else for(var i=0;i<_Zmenus.length;)_Zmenus[i++].movePos()};if(ua.oldOpera)Q.setOnLoad(Zm_load);else Q.setOnResize(Zm_res);mrdy=1;
