// CodeThatSDK - JavaScript SDK
// Version: 1.0.1
// Copyright (c) 2003 by CodeThat.Com
// http://www.codethat.com/

function Undef(o){
return typeof(o)=='undefined'||o===''||o==null};function Def(o){
return!Undef(o)};function Und(o){
return typeof(o)=='undefined'};function UA(){var g=navigator.userAgent.toLowerCase(),j=parseInt(navigator.appVersion);var k=navigator.appName=="Netscape";this.DOM=document.getElementById?true:false;this.opera=g.indexOf('opera')!=-1;this.opera5=g.indexOf("opera 5")>0||g.indexOf("opera/5")>=0;this.opera6=g.indexOf("opera 6")>0||g.indexOf("opera/6")>=0;this.opera7=g.indexOf("opera 7")>0||g.indexOf("opera/7")>=0;this.oldOpera=this.opera5||this.opera6;this.ie3down=g.indexOf('msie')!=-1&&j<4&&!this.opera;this.ie4up=!this.ie3down&&document.all&&document.all.item&&!this.opera;this.ie5up=this.DOM&&this.ie4up;this.ie6=this.ie5up&&g.indexOf('msie 6.')>0;this.ie=this.ie4up||this.ie5up;this.nn4=k&&!this.DOM&&!this.opera;this.moz=this.nn6up=this.DOM&&k&&!this.opera;this.hj=g.indexOf('hotjava')!=-1;this.aol=g.indexOf('aol')!=-1;this.aol4up=this.aol&&this.ie4up;this.supp=this.supported=this.oldOpera||this.opera7||this.ie||this.moz||this.nn4||this.DOM};var ua=new UA();function CEvent(e){this._e=e;this.x=ua.nn4||ua.moz?e.pageX:ua.oldOpera?e.clientX:ua.ie||ua.opera?e.clientX+document.body.scrollLeft:null;this.y=ua.nn4||ua.moz?e.pageY:ua.oldOpera?e.clientY:ua.ie||ua.opera?e.clientY+document.body.scrollTop:null;this.offsetX=ua.nn4||ua.moz?e.layerX:e.offsetX;this.offsetY=ua.nn4||ua.moz?e.layerY:e.offsetY;this.screenX=e.screenX;this.screenY=e.screenY;this.target=ua.ie?e.srcElement:e.target;this.key=ua.nn4?e.which:e.keyCode;this.alt=ua.nn4?e.modifiers&Event.ALT_MASK:e.altKey;this.ctrl=ua.nn4?e.modifiers&Event.CONTROL_MASK:e.ctrlKey;this.shift=ua.nn4?e.modifiers&Event.SHIFT_MASK:e.shiftKey;this.spec=this.alt||this.ctrl||this.shift;var m=ua.nn4||ua.moz?e.which:e.button;this.b_left=m==1;this.b_mid=ua.nn4||ua.moz?m==2:m==4;this.b_right=ua.nn4||ua.moz?m==3:m==2};function CTimer(oPar,id,sig,oSend,n,pause,scr_bef,scr_betw,scr_aft){this._par=oPar;this._id=id;this._sig=sig;this._o=oSend;this._n=n;this._pause=pause||100;this._scr=[scr_bef,scr_betw,scr_aft];};{var p=CTimer.prototype;p.run=function(){if(Undef(this._o))
return;this._i=0;if(Def(this._scr[0]))eval(this._scr[0]);this._to=setTimeout(this+'.step()',this._pause);};p.step=function(){with(this){if(this._o)_o.onTimer();if(Def(this._scr[1]))eval(_scr[1]);_i++;if(_i<_n)this._to=setTimeout(this+'.step()',_pause);else finish()}};p.stop=function(){clearTimeout(this._to);this.finish()};p.finish=function(){if(Def(this._scr[2]))eval(this._scr[2]);if(this._sig)this._par.sig_stop(this._id)};p.toString=function(){
return this._par.getObjPath(this._id)};}function CSlideAnimation(oPar,id,sig,oCL,aP,step,pause,scr_bef,scr_betw,scr_aft){var q,u,z;this.base=CTimer;this._l=oCL;this._x=oCL.getLeft();this._y=oCL.getTop();q=aP[0]-this._x;u=aP[1]-this._y;z=Math.floor(Math.sqrt(q*q+u*u)/step);this._st_x=q/z;this._st_y=u/z;this.base(oPar,id,sig,this,z,pause,scr_bef,scr_betw,scr_aft)};CSlideAnimation.prototype=new CTimer;CSlideAnimation.prototype.onTimer=function(){with(this){_x+=_st_x;_y+=_st_y;_l.moveTo(_x,_y)}};function CClipAnimation(oPar,id,sig,oCL,aP,n,pause,scr_bef,scr_betw,scr_aft){this.base=CTimer;this._l=oCL;this._c=oCL.getClip();this._st_t=(aP[0]-this._c[0])/n;this._st_r=(aP[1]-this._c[1])/n;this._st_b=(aP[2]-this._c[2])/n;this._st_l=(aP[3]-this._c[3])/n;this.base(oPar,id,sig,this,n,pause,scr_bef,scr_betw,scr_aft)};CClipAnimation.prototype=new CTimer;CClipAnimation.prototype.onTimer=function(){var a1=this._c;a1[3]+=this._st_l;a1[0]+=this._st_t;a1[1]+=this._st_r;a1[2]+=this._st_b;this._l.clip(a1[3],a1[0],a1[1]-a1[3],a1[2]-a1[0])};function CAniCollection(id){this._id=id;this._c=0;this._a=[];this.slideAni=CSlideAnimation;this.clipAni=CClipAnimation;this.SLIDE='slideAni';this.CLIP='clipAni'};{var b1=CAniCollection.prototype;b1.add=function(sType,autoDel,oCL,aCoords,nPar,pause,scr_bef,scr_betw,scr_aft){var c1='s'+this._c++;var d1=new this[sType](this,c1,autoDel,oCL,aCoords,nPar,pause,scr_bef,scr_betw,scr_aft);this._a[c1]=d1;
return c1};b1.remove=function(t_id){delete this._a[t_id]};b1.run=function(t_id){if(Undef(this._a[t_id]))
return;this._a[t_id].run()};b1.stop=function(t_id){if(Undef(this._a[t_id]))
return;this._a[t_id].stop()};b1.sig_stop=function(t_id){setTimeout(this._id+".remove('"+t_id+"')",1)};b1.getObjPath=function(t_id){
return this._id+'._a.'+t_id};}function CCodeThat(id){this._id=id;this.Ani=new CAniCollection(this._id+'.Ani');this._c=0;this.pre={};this.sz=[];this.ld=[]};{var e1=CCodeThat.prototype;e1.findLayer=function(name,parent){
return this.findElement(name,parent)};e1.findElement=function(name,parent){if(ua.DOM)
return document.getElementById(name);else if(ua.ie4up)
return document.all[name];else{var f1=Undef(parent)?document:parent.document;if(Undef(f1[name])){var g1,h1,i1=f1.layers.length;if(i1==0)
return;else{for(g1=0;g1<i1;g1++){h1=this.findElement(name,f1.layers[g1]);if(Def(h1))
return h1;}}}else return f1[name];}};e1.regEventHandler=function(e,h,obj){if(Undef(obj))obj=document;e=e.toLowerCase();if(ua.nn4){var j1=e.toUpperCase();obj.captureEvents(Event[j1]);}var k1=typeof(h)=="function"?function(e){var ev=ua.nn4||ua.moz?e:window.event;if(Def(ev))ev=new CEvent(ev);
return h(ev)}:typeof(h)=="string"?new Function("e","var ev=ua.nn4||ua.moz?e:window.event;if (Def(ev)) ev=new CEvent(ev);"+h):null;obj["on"+e]=k1;};e1.clearEventHandler=function(e,obj){if(Undef(obj))obj=document;e=e.toLowerCase();if(ua.nn4){var l1=e.toUpperCase();obj.releaseEvents(Event[l1]);}obj["on"+e]=null;};e1.setResizeHandler=e1.setOnResize=function(h,b){var m1=this.sz,o1=this._id;if(!m1.length){if(ua.oldOpera){var p1=new Function(o1+".saveWinSize();"+o1+".checkSize()");b?p1():this.setOnLoad(p1)}else{m1[0]=window.onresize;window.onresize=new Function(o1+'.onresize()')}}m1[m1.length]=h};e1.setOnLoad=function(h){var q1=this.ld;if(!q1.length){q1[0]=window.onload;window.onload=new Function(this._id+'.onload()')}q1[q1.length]=h};e1.checkSize=function(){if(this.getWinHeight()!=this._oldWH||this.getWinWidth()!=this._oldWW){this.saveWinSize();this.onresize()}this._resTO=setTimeout(this._id+'.checkSize()',2000)};e1.call=function(a){for(var r1=a.length-1;r1>=0;r1--)if(Def(a[r1]))a[r1]()};e1.onload=function(){this.call(this.ld)};e1.onresize=function(){this.call(this.sz)};e1.saveWinSize=function(){this._oldWH=this.getWinHeight();this._oldWW=this.getWinWidth()};e1.getWinHeight=function(){
return ua.ie4up?document.body.clientHeight:self.innerHeight};e1.getWinWidth=function(){
return ua.ie4up?document.body.clientWidth:self.innerWidth};e1.cancelEvent=function(e){if(!ua.nn4)e._e.cancelBubble=true};e1.newID=function(){
return 'CodeThat'+this._c++};e1.readCookie=function(name){var s1=document.cookie;var t1=s1.split(';');var u1=t1.length;var v1;var w1="";var x1=0;for(x1=0;x1<u1&&w1=="";x1++){v1=t1[x1].split('=');if(v1[0].substring(0,1)==' '){v1[0]=v1[0].substring(1,v1[0].length);}if(v1[0]==name){w1=v1[1];}}
return w1};e1.writeCookie=function(name,val,exp){var y1=new Date();if(exp){y1.setTime(y1.getTime()+exp);document.cookie=name+"="+val+"; expires="+y1.toGMTString();}else{document.cookie=name+"="+val;}};e1.preload=function(){var z1,a2=[],b2=arguments;for(z1=0;z1<b2.length;z1++){if(Undef(b2[z1]))a2[z1]=null;else if(Def(this.pre[b2[z1]]))a2[z1]=this.pre[b2[z1]];else{a2[z1]=new Image();a2[z1].src=b2[z1];this.pre[b2[z1]]=a2[z1]}}
return b2.length==1?a2[0]:a2};}var CodeThat=new CCodeThat('CodeThat');function CLayer(){var c2=arguments;this._ex=false;if(c2.length==2&&typeof(c2[0])=='number'){this._w=parseInt(c2[0]);this._h=parseInt(c2[1])}else if(c2.length>=1&&typeof(c2[0])=='string')this.assignLayer(CodeThat.findLayer(c2[0],c2[1]));this._id=this._id||CodeThat.newID();this._HTML='';this._ev=[];};{var d2=CLayer.prototype;d2.assignLayer=function(oLayer){if(Undef(oLayer))oLayer=this._id;if(typeof(oLayer)=='string')oLayer=CodeThat.findLayer(oLayer);this._lr=oLayer;this._st=this._lr.style||this._lr;this._ex=true;this.getID();};d2.setHTML=function(sHTML){this._HTML=sHTML;if(this._ex){if(ua.nn4){var e2=this._lr.document;e2.open();e2.write(sHTML);e2.close()}else if(!ua.oldOpera)this._lr.innerHTML=sHTML;}};d2.appendHTML=function(sHTML){this.setHTML(this._HTML+sHTML);};d2.clear=function(){this.setHTML('')};d2.setVisible=function(vis){this._visible=vis;if(this._ex)this._st.visibility=vis?ua.nn4?"show":"visible":ua.nn4?"hide":"hidden"};d2.show=function(){this.setVisible(true)};d2.hide=function(){this.setVisible(false)};d2.showAt=function(x,y){this.moveTo(x,y);this.show()};d2.setZIndex=function(zindex){this._z=zindex;if(this._ex)this._st.zIndex=zindex};d2.setWidth=function(width){this._w=width;if(this._ex){var f2=this._h||this.getHeight();if(ua.nn4){this._lr.resizeTo(this._w,f2);this._st.clip.width=this._w}else if(ua.opera)this._st.pixelWidth=this._w;else this._st.width=this._w;if(!ua.nn4&&!this._clip)this._st.clip="rect(0px "+this._w+"px "+f2+"px 0px)"}};d2.setHeight=function(height){this._h=height;if(this._ex){var g2=this._w||this.getWidth();if(ua.nn4){this._lr.resizeTo(g2,this._h);this._st.clip.height=this._h}else if(ua.opera)this._st.pixelHeight=this._h;else this._st.height=this._h;if(!ua.nn4&&!this._clip)this._st.clip="rect(0px "+g2+"px "+this._h+"px 0px)"}};d2.resize=d2.setSize=function(width,height){this._h=height;this._w=width;if(this._ex){this.setHeight(height);this.setWidth(width);}};d2.setTop=function(y){this._top=y;if(this._ex){if(ua.nn4)this._st.y=y;else if(ua.opera)this._st.pixelTop=y;else this._st.top=y;}};d2.setLeft=function(x){this._left=x;if(this._ex){if(ua.nn4)this._st.x=x;else if(ua.opera)this._st.pixelLeft=x;else this._st.left=x}};d2.moveTo=d2.setPos=function(x,y){this._left=x;this._top=y;if(this._ex){if(ua.nn4)this._lr.moveTo(x,y);else{this.setTop(y);this.setLeft(x)}}};d2.setRel=function(rel){if(!this._ex)this._rel=rel;};d2.moveRel=function(dx,dy){this.moveTo(this.getLeft()+dx,this.getTop()+dy)};d2.slide=function(x,y,step,time,scr_bef,scr_betw,scr_aft){var h2=CodeThat.Ani.add(CodeThat.Ani.SLIDE,true,this,[x,y],step,time,scr_bef,scr_betw,scr_aft);CodeThat.Ani.run(h2);};d2.slideRel=function(dx,dy,step,time,scr_bef,scr_betw,scr_aft){var i2=CodeThat.Ani.add(CodeThat.Ani.SLIDE,true,this,[this.getLeft()+dx,this.getTop()+dy],step,time,scr_bef,scr_betw,scr_aft);CodeThat.Ani.run(i2);};d2.setCSS=function(classID){this._classID=classID;if(this._ex&&!(ua.oldOpera||ua.nn4))this._lr.className=classID};d2.setID=function(id){if(!this._ex)this._id=id||CodeThat.newID();};d2.setBgColor=function(color){this._bgColor=color;if(this._ex){if(ua.ie||ua.moz||ua.opera7)this._st.backgroundColor=color;else if(ua.nn4)this._st.bgColor=color;else if(ua.opera)this._st.background=color}};d2.setBgImage=function(url){this._bgImg=url;if(this._ex){if(ua.ie||ua.moz||ua.opera7)this._st.backgroundImage='url('+url+')';else if(ua.nn4||ua.opera)this._st.background.src=url}};d2.clip=function(x,y,width,height){this._clip=[y,x+width,y+height,x];if(this._ex&&this._clip){if(ua.nn4){var j2=this._st.clip;j2.top=y;j2.left=x;j2.width=width;j2.height=height;}else if(ua.ie||ua.moz||ua.opera7){this._st.clip='rect('+this._clip[0]+'px '+this._clip[1]+'px '+this._clip[2]+'px '+this._clip[3]+'px)';}}};d2.noclip=function(){delete this._clip;if(this._ex){if(ua.nn4){var k2=this._st.clip;k2.top=0;k2.left=0;k2.width=this.getWidth();k2.height=this.getHeight();}else if(ua.ie||ua.moz||ua.opera7)this._st.clip='rect(auto auto auto auto)';}};d2.clipSlide=function(l,t,r,b,n,time,scr_bef,scr_betw,scr_aft){var l2=CodeThat.Ani.add(CodeThat.Ani.CLIP,true,this,[t,r,b,l],n,time,scr_bef,scr_betw,scr_aft);CodeThat.Ani.run(l2);};d2.clipMove=function(l,t,n,time,scr_bef,scr_betw,scr_aft){var m2=this.getClip();var o2=l-m2[3],p2=t-m2[0];var q2=CodeThat.Ani.add(CodeThat.Ani.CLIP,true,this,[t,m2[1]+o2,m2[2]+p2,l],n,time,scr_bef,scr_betw,scr_aft);CodeThat.Ani.run(q2);};d2.addEventHandler=function(evt,code){if(this._ex)
return;var r2=this._ev;r2[r2.length]=[evt,code];};d2.setTransparence=d2.setAlpha=function(a){this._alpha=a;if(this._ex&&this.ie)this._st.filter='Alpha(Opacity="'+this._alpha+'")'};d2.object=function(){
return this._lr};d2.getHTML=function(){
return this._HTML};d2.getVisible=function(){if(this._ex){var s2=this._st.visibility;this._visible=Def(s2)?s2=="show"||s2=="visible":s2;}
return this._visible};d2.getZIndex=function(){if(this._ex)this._z=this._st.zindex;
return this._z};d2.getWidth=function(){if(this._ex){if(ua.nn4){if(Undef(this._w))this._w=this._lr.document.width}else this._w=ua.oldOpera?this._st.pixelWidth:this._lr.offsetWidth;}
return this._w};d2.getHeight=function(){if(this._ex){if(ua.nn4){if(Undef(this._h))this._h=this._lr.document.height}else this._h=ua.oldOpera?this._st.pixelHeight:this._lr.offsetHeight;}
return this._h};d2.getSize=function(){
return[this.getWidth(),this.getHeight()]};d2.getContentWidth=function(){
return this._ex?ua.nn4?this._lr.document.width:ua.oldOpera?this._st.pixelWidth:ua.ie?this._lr.scrollWidth:this._lr.offsetWidth:this._w};d2.getContentHeight=function(){
return this._ex?ua.nn4?this._lr.document.height:ua.oldOpera?this._st.pixelHeight:ua.ie?this._lr.scrollHeight:this._lr.offsetHeight:this._h};d2.getTop=function(){if(this._ex)this._top=ua.nn4?this._st.y:this._lr.offsetTop;
return this._top};d2.getLeft=function(){if(this._ex)this._left=ua.nn4?this._st.x:this._lr.offsetLeft;
return this._left};d2.getPos=function(){
return[this.getLeft(),this.getTop()]};d2.getAbsoluteTop=function(){if(this._ex){if(ua.nn4)
return this._st.pageY;else{var t2=0;var u2=this._lr;do{t2+=u2.offsetTop}while(Def(u2=u2.offsetParent));
return t2}}else return this._top};d2.getAbsoluteLeft=function(){if(this._ex){if(ua.nn4)
return this._st.pageX;else{var v2=0;var w2=this._lr;do{v2+=w2.offsetLeft}while(Def(w2=w2.offsetParent));
return v2}}else return this._left};d2.getAbsolutePos=function(){
return[this.getAbsoluteLeft(),this.getAbsoluteTop()]};d2.getCSS=function(){if(this._ex&&!(ua.oldOpera||ua.nn4))this._classID=this._lr.className;
return this._classID};d2.getClip=function(){var x2=this._clip;if(this._ex&&Undef(x2)){var y2=this._st.clip;if(y2){if(ua.nn4){x2[0]=y2.top||0;x2[1]=y2.right||this.getWidth();x2[2]=y2.bottom||this.getHeight();x2[3]=y2.left||0;}else{var z2,a3=y2.indexOf('(');z2=y2.indexOf(' ',a3);x2[0]=parseInt(y2.substring(a3+1,z2));a3=y2.indexOf(' ',z2);x2[1]=parseInt(y2.substring(z2+1,a3));z2=y2.indexOf(' ',a3);x2[2]=parseInt(y2.substring(a3+1,z2));x2[3]=parseInt(y2.substr(z2+1));}}}
return x2;};d2.getID=function(id){if(this._ex)this._id=this._lr.id;
return this._id};d2.getSource=function(){var b3='';var c3,d3=this;if(Def(d3._clip))c3=d3._clip;else if(Def(d3._h)&&Def(d3._w))c3=[0,d3._w,d3._h,0];var e3=d3._left;if(!d3._rel&&!e3)e3=0;var f3=d3._top;if(!d3._rel&&!d3)d3=0;if(ua.nn4){b3=(d3._rel?"<ilayer":"<layer")+(Def(d3._id)?" id="+d3._id:"")+(Def(d3)?" top="+f3:"")+(Def(e3)?" left="+e3:"")+(Def(d3._w)?" width="+d3._w:"")+(Def(d3._classID)?" class="+d3._classID:"")+(Def(d3._z)?" z-index="+d3._z:"")+' visibility='+(d3._visible?"inherit":"hide")+(c3?' clip="'+c3[3]+','+c3[0]+','+c3[1]+','+c3[2]+'"':"")+(Def(d3._bgColor)?" bgcolor="+d3._bgColor:"")+(Def(d3._bgImg)?' background="'+d3._bgImg+'"':"");}else{b3="<div"+(Def(d3._id)?" id="+d3._id:"")+(Def(d3._classID)?" class="+d3._classID:"")+' style="position:'+(d3._rel?'relative':'absolute')+';overflow:hidden'+';visibility:'+(!d3._visible?'hidden':'inherit')+(Def(d3)?";top:"+f3+"px":"")+(Def(e3)?";left:"+e3+"px":"")+(Def(d3._w)?";width:"+d3._w+"px":"")+(Def(d3._h)?";height:"+d3._h+"px":"")+(Def(d3._z)?";z-index:"+d3._z:"")+(Def(d3._bgColor)?";background-color:"+d3._bgColor:"")+(Def(d3._bgImg)?";background-image:url("+d3._bgImg+")":"")+(c3?";clip:rect("+c3[0]+"px "+c3[1]+"px "+c3[2]+"px "+c3[3]+"px)":"")+(Def(d3._alpha)&&ua.ie4up?';filter:Alpha(Opacity='+d3._alpha+')':'')+'"';}var g3=d3._ev;for(var h3=0;h3<g3.length;h3++)b3+=' '+g3[h3][0]+'="'+g3[h3][1]+'"';b3+=">"+d3.getHTML()+'</'+(ua.nn4?(d3._rel?'i':'')+"layer>":"div>");
return b3};d2.create=function(){if(this._ex)
return;document.write(this.getSource());this.assignLayer();};}function CNode(type,name,parent){this.type=type;this.name=name;this.parent=parent;this.parameters=new Array();this.subitems=new Array();this.value=new String();};{var i3=CNode.prototype;i3.getParameter=function(name){for(var j3=0;j3<this.parameters.length;++j3){if(this.parameters[j3].name==name){
return this.parameters[j3].value;}}
return null;};i3.getValue=function(){
return this.value;};}function CXMLTree(str){this.str=str;this.tree=new CNode("DOCUMENT","",null);this.parse(this.str,0,this.tree);};{CXp=CXMLTree.prototype;CXp.parse=function(s,begin,tag){var k3=false;var l3=begin;if(typeof(s)!="string"||s==null){
return null;}while(!k3){l3=this.skipWhitespaces(s,l3);if(l3>s.length-1){break;}if(s.charAt(l3)=='<'){++l3;if(s.charAt(l3)=='?'){l3=s.indexOf('>',l3)+1;}else if(s.charAt(l3)=='/'){k3=true;l3=s.indexOf('>',l3)+1;}else if(s.substr(l3,3)=='!--'){l3=s.indexOf('-->',l3)+3;}else if(s.substr(l3,8)=='![CDATA['){l3+=8;var m3=s.indexOf(']]>',l3);var n3=new CNode("CHARDATA","",tag);n3.value=s.substr(l3,m3-l3);tag.subitems[tag.subitems.length]=n3;l3=m3+3;}else if(s.charAt(l3)=='!'){l3=s.indexOf('>',l3)+1;}else{var o3=this.getCharname(s,l3);if(o3==null||o3.length==0){
return null;}else{l3+=o3.length;l3=this.skipWhitespaces(s,l3);var p3=new CNode("ELEMENT",o3,tag);while(s.charAt(l3)!='/'&&s.charAt(l3)!='>'){var q3=this.getCharname(s,l3);var r3=new CNode("PARAMETER",q3,p3);p3.parameters[p3.parameters.length]=r3;l3+=q3.length;l3=this.skipWhitespaces(s,l3);if(s.charAt(l3)!='='){}++l3;l3=this.skipWhitespaces(s,l3);if(s.charAt(l3)!='\"'){}++l3;var s3=s.indexOf("\"",l3);r3.value=this.processValue(s.substr(l3,s3-l3));l3=this.skipWhitespaces(s,s3+1);}tag.subitems[tag.subitems.length]=p3;l3=s.indexOf('>',l3)+1;if(s.charAt(l3-2)=='/'){}else{l3=this.parse(s,l3,p3);}}}}else{var t3=s.indexOf('<',l3);var u3=new CNode("CHARDATA","",tag);u3.value=this.processValue(s.substr(l3,t3-l3));tag.subitems[tag.subitems.length]=u3;l3=t3;}}
return l3;};CXp.skipWhitespaces=function(str,begin){var v3=begin;while(v3<str.length&&(str.charAt(v3)=='\n'||str.charAt(v3)=='\r'||str.charAt(v3)=='\t'||str.charAt(v3)==' '))++v3;
return v3;};CXp.getCharname=function(str,begin){var w3=begin;while(w3<str.length&&!(str.charAt(w3)=='\n'||str.charAt(w3)=='\r'||str.charAt(w3)=='\"'||str.charAt(w3)=='\''||str.charAt(w3)=='\t'||str.charAt(w3)=='/'||str.charAt(w3)=='>'||str.charAt(w3)=='<'||str.charAt(w3)=='='||str.charAt(w3)==' '))++w3;
return str.substr(begin,w3-begin);};CXp.processValue=function(str){var x3=new Array();x3=str.split("&lt;");str=x3.join("<");x3=str.split("&gt;");str=x3.join(">");x3=str.split("&quot;");str=x3.join("\"");x3=str.split("&apos;");str=x3.join("\'");x3=str.split("&amp;");str=x3.join("&");
return str;};CXp.toObject=function(node){node=node||this.tree;var y3,z3;if(node.parameters.length==0&&node.subitems.length==1&&node.subitems[0].type=='CHARDATA')z3=node.subitems[0].value;else{z3={};for(y3=0;y3<node.parameters.length;++y3){var a4=node.parameters[y3];z3[a4.name]=a4.value}for(y3=0;y3<node.subitems.length;++y3){var b4,c4=node.subitems[y3];if(c4.type=='CHARDATA')z3.__value=c4.value;else{b4=this.toObject(c4);if(Undef(z3[c4.name]))z3[c4.name]=b4;else{if(z3[c4.name].constructor!=Array)z3[c4.name]=[z3[c4.name]];z3[c4.name][z3[c4.name].length]=b4}}}}
return z3;};}