// CodeThatSDK - JavaScript SDK
// Version: 1.1.1 (4.11.03.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 t=this,nv=navigator,n=nv.userAgent.toLowerCase(),v=parseInt(nv.appVersion);var ns=nv.appName=="Netscape";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.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?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 CCodeThat(id){this._id=id;this._c=0;this.pre={};this.sz=[];this.ld=[]};{var CTp=CCodeThat.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=Undef(parent)?document:parent.document;if(Undef(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){document.write('<script language="javascript" type="text/javascript" src="'+mod+'"><\/script>')};CTp.regEventHandler=function(e,h,obj){if(Undef(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(Undef(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.cm=='BackCompat'?document.body.clientHeight:document.documentElement.offsetHeight:self.innerHeight};CTp.getWinWidth=function(){
return ua.ie4up?ua.cm=='BackCompat'?document.body.clientWidth:document.documentElement.offsetWidth: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;var stop=e._e.stopPropagation;if(Def(stop))stop();else e._e.cancelBubble=true};CTp.newID=function(){
return 'CodeThat'+this._c++};CTp.readCookie=function(name){var CookieString=document.cookie;var CookieSet=CookieString.split(';');var SetSize=CookieSet.length;var CookiePieces;var ReturnValue="";var x=0;for(x=0;x<SetSize&&ReturnValue=="";x++){CookiePieces=CookieSet[x].split('=');if(CookiePieces[0].substring(0,1)==' '){CookiePieces[0]=CookiePieces[0].substring(1,CookiePieces[0].length);}if(CookiePieces[0]==name){ReturnValue=CookiePieces[1];}}
return ReturnValue};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(Undef(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 CodeThat=new CCodeThat('CodeThat');CodeThat.setOnLoad(function(){CodeThat.loaded=1});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(CodeThat.findLayer(a[0],a[1]));t._id=t._id||CodeThat.newID();t._HTML='';t._ev=[];};{var CLp=CLayer.prototype;CLp.assignLayer=function(oLr){var t=this;if(Undef(oLr))oLr=t._id;if(typeof oLr=='string')oLr=CodeThat.findLayer(oLr);t._lr=oLr;t._st=t._lr.style||t._lr;t._ex=true;t.getID();
return t};CLp.setHTML=function(sHTML){this._HTML=sHTML;if(this._ex){if(ua.nn4){var d=this._lr.document;d.open();d.write(sHTML);d.close()}else if(!ua.oldOpera)this._lr.innerHTML=sHTML;}};CLp.appendHTML=function(sHTML){this.setHTML(this._HTML+sHTML);};CLp.clear=function(){this.setHTML('')};CLp.setVisible=function(v){this._v=v;if(this._ex)this._st.visibility=v?ua.nn4?"show":"visible":ua.nn4?"hide":"hidden"};CLp.show=function(){this.setVisible(true)};CLp.hide=function(){this.setVisible(false)};CLp.showAt=function(x,y){this.moveTo(x,y);this.show()};CLp.setZIndex=function(z){this._z=z;if(this._ex)this._st.zIndex=z};CLp.setWidth=function(w){var t=this;t._w=w;if(t._ex){var h=t._h||t.getHeight();if(ua.nn4){t._lr.resizeTo(w,h);t._st.clip.width=w}else if(ua.oldOpera)t._st.pixelWidth=w;else t._st.width=w;if(!ua.nn4&&!t._clip)t._st.clip="rect(0px "+w+"px "+h+"px 0px)"}};CLp.setHeight=function(h){var t=this;t._h=h;if(t._ex){var w=t._w||t.getWidth();if(ua.nn4){t._lr.resizeTo(w,h);t._st.clip.height=h}else if(ua.oldOpera)t._st.pixelHeight=h;else t._st.height=h;if(!ua.nn4&&!t._clip)t._st.clip="rect(0px "+w+"px "+h+"px 0px)"}};CLp.resize=CLp.setSize=function(w,h){this._h=h;this._w=w;if(this._ex){this.setHeight(h);this.setWidth(w);}};CLp.setTop=function(y){var t=this;t._top=y;if(t._ex){if(ua.nn4)t._st.y=y;else if(ua.oldOpera)t._st.pixelTop=y;else t._st.top=y;}};CLp.setLeft=function(x){var t=this;t._left=x;if(t._ex){if(ua.nn4)t._st.x=x;else if(ua.oldOpera)t._st.pixelLeft=x;else t._st.left=x}};CLp.moveTo=CLp.setPos=function(x,y){var t=this;t._left=x;t._top=y;if(t._ex){if(ua.nn4)t._lr.moveTo(x,y);else{t.setTop(y);t.setLeft(x)}}};CLp.setRel=function(rel){if(!this._ex)this._rel=rel;};CLp.moveRel=function(dx,dy){this.moveTo(this.getLeft()+dx,this.getTop()+dy)};CLp.setCSS=function(css){this._css=css;if(this._ex&&!(ua.oldOpera||ua.nn4))this._lr.className=css};CLp.setID=function(id){if(!this._ex)this._id=id||CodeThat.newID();};CLp.setBgColor=function(c){var t=this;t._bgC=c;if(t._ex){if(!ua.nn4&&!ua.oldOpera)t._st.backgroundColor=c;else if(ua.nn4)t._st.bgColor=c;else if(ua.opera)t._st.background=c}};CLp.setBgImage=function(url){this._bgImg=url;if(this._ex){if(!ua.nn4&&!ua.oldOpera)this._st.backgroundImage='url('+url+')';else this._st.background.src=url}};CLp.clip=function(x,y,w,h){var t=this;t._clip=[y,x+w,y+h,x];if(t._ex&&t._clip){if(ua.nn4){var area=t._st.clip;area.top=y;area.left=x;area.width=w;area.height=h}else if(!ua.oldOpera)t._st.clip='rect('+t._clip[0]+'px '+t._clip[1]+'px '+t._clip[2]+'px '+t._clip[3]+'px)'}};CLp.setDisplay=function(d){this._dsp=d;if(this._ex&&!ua.nn4)this._st.display=d};CLp.setOverflow=function(o){this._ov=o;if(this._ex&&!ua.nn4)this._st.overflow=o};CLp.addEventHandler=function(ev,src){if(this._ex)
return;var e=this._ev;e[e.length]=[ev.toLowerCase(),src];};CLp.clearHandlers=function(){this._ev=[]};CLp.setAlpha=function(a){this._alpha=a;if(this._ex&&ua.ie55up)this._st.filter='progid:DXImageTransform.Microsoft.Alpha(Opacity="'+a+'")'};CLp.addStyle=function(st){this._sty=st};CLp.object=function(){
return this._lr};CLp.getHTML=function(){
return this._HTML};CLp.getVisible=function(){if(this._ex){var v=this._st.visibility;this._v=Def(v)?v=="show"||v=="visible":v;}
return this._v};CLp.getWidth=function(){var t=this;if(t._ex){if(ua.nn4){if(Undef(t._w))t._w=t._lr.document.width}else t._w=ua.oldOpera?t._st.pixelWidth:t._lr.offsetWidth;}
return t._w};CLp.getHeight=function(){var t=this;if(t._ex){if(ua.nn4){if(Undef(t._h))t._h=t._lr.document.height}else t._h=ua.oldOpera?t._st.pixelHeight:t._lr.offsetHeight;}
return t._h};CLp.getSize=function(){
return[this.getWidth(),this.getHeight()]};CLp.getContentWidth=function(){var t=this;
return t._ex?ua.nn4?t._lr.document.width:ua.oldOpera?t._st.pixelWidth:ua.ie?t._lr.scrollWidth:t._lr.offsetWidth:t._w};CLp.getContentHeight=function(){var t=this;
return t._ex?ua.nn4?t._lr.document.height:ua.oldOpera?t._st.pixelHeight:ua.ie?t._lr.scrollHeight:t._lr.offsetHeight:t._h};CLp.getTop=function(){if(this._ex)this._top=ua.nn4?this._st.y:(ua.khtml?parseInt(this._st.top):0)+this._lr.offsetTop;
return this._top};CLp.getLeft=function(){if(this._ex)this._left=ua.nn4?this._st.x:(ua.khtml?parseInt(this._st.left):0)+this._lr.offsetLeft;
return this._left};CLp.getPos=function(){
return[this.getLeft(),this.getTop()]};CLp.getAbsoluteTop=function(){if(this._ex){if(ua.nn4)
return this._st.pageY;else{var o=this._lr,y=this.getTop();while(Def(o=o.offsetParent))y+=o.offsetTop;
return y}}
return this._top};CLp.getAbsoluteLeft=function(){if(this._ex){if(ua.nn4)
return this._st.pageX;else{var o=this._lr,l=this.getLeft();while(Def(o=o.offsetParent))l+=o.offsetLeft;
return l}}
return this._left};CLp.getAbsolutePos=function(){
return[this.getAbsoluteLeft(),this.getAbsoluteTop()]};CLp.getID=function(id){if(this._ex)this._id=this._lr.id;
return this._id};CLp.styleSrc=function(){var c,t=this;if(Def(t._clip))c=t._clip;else if(Def(t._h)&&Def(t._w))c=[0,t._w,t._h,0];var l=t._left;if(!t._rel&&!l)l=0;var tp=t._top;if(!t._rel&&!tp)tp=0;src=ua.nn4?(Def(tp)?" top="+tp:"")+(Def(l)?" left="+l:"")+(Def(t._w)?" width="+t._w:"")+(Def(t._z)?" z-index="+t._z:"")+' visibility='+(t._v?"inherit":"hide")+(c?' clip="'+c[3]+','+c[0]+','+c[1]+','+c[2]+'"':"")+(Def(t._bgC)?" bgcolor="+t._bgC:"")+(Def(t._bgImg)?' background="'+t._bgImg+'"':""):'position:'+(t._rel?'relative':'absolute')+';overflow:'+(Def(t._ov)?t._ov:'hidden')+';visibility:'+(!t._v?'hidden':'inherit')+(Def(tp)?";top:"+tp+"px":"")+(Def(l)?";left:"+l+"px":"")+(Def(t._w)?";width:"+t._w+"px":"")+(Def(t._h)?";height:"+t._h+"px":"")+(Def(t._z)?";z-index:"+t._z:"")+(Def(t._bgC)?";background-color:"+t._bgC:"")+(Def(t._bgImg)?";background-image:url("+t._bgImg+")":"")+(c?";clip:rect("+c[0]+"px "+c[1]+"px "+c[2]+"px "+c[3]+"px)":"")+(Def(t._dsp)?";display:"+t._dsp:"")+(Def(t._alpha)&&ua.ie55up?';filter:progid:DXImageTransform.Microsoft.Alpha(Opacity='+t._alpha+')':'');if(Def(t._sty))src+=ua.nn4?' style="'+t._sty+'"':';'+t._sty;
return src};CLp.getSource=function(){var src,t=this;src=(ua.nn4?(t._rel?"<i":"<")+"layer id="+t._id+t.styleSrc():'<div id="'+t._id+'"'+' style="'+t.styleSrc()+'"')+(Def(t._css)?' class="'+t._css+'"':"");var i,e=t._ev;for(i=0;i<e.length;i++)src+=' '+e[i][0]+'="'+e[i][1]+'"';
return src+">"+t.getHTML()+'</'+(ua.nn4?(t._rel?'i':'')+"layer>":"div>")};CLp.create=function(p){var t=this,parent=p||document.body;if(t._ex)
return;if(!CodeThat.loaded)document.write(t.getSource());else if(ua.ie)parent.insertAdjacentHTML("BeforeEnd",t.getSource());else if(ua.dynDOM){var i,e,lr=document.createElement('DIV');lr.setAttribute('id',t._id);if(Def(t._css))lr.setAttribute('className',t._css);lr.setAttribute('style',t.styleSrc());lr.innerHTML=t.getHTML();e=t._ev;for(i=0;i<e.length;i++)lr.addEventListener(e[i][0].substr(2),new Function(e[i][1]),0);parent.appendChild(lr)}else return;t.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 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);};{CXp=CXMLTree.prototype;CXp.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;};CXp.skipWhitespaces=function(str,begin){var i=begin;while(i<str.length&&(str.charAt(i)=='\n'||str.charAt(i)=='\r'||str.charAt(i)=='\t'||str.charAt(i)==' '))++i;
return i;};CXp.getCharname=function(str,begin){var i=begin;while(i<str.length&&!(str.charAt(i)=='\n'||str.charAt(i)=='\r'||str.charAt(i)=='\"'||str.charAt(i)=='\''||str.charAt(i)=='\t'||str.charAt(i)=='/'||str.charAt(i)=='>'||str.charAt(i)=='<'||str.charAt(i)=='='||str.charAt(i)==' '))++i;
return str.substr(begin,i-begin);};CXp.processValue=function(str){var arraytmp=new Array();arraytmp=str.split("&lt;");str=arraytmp.join("<");arraytmp=str.split("&gt;");str=arraytmp.join(">");arraytmp=str.split("&quot;");str=arraytmp.join("\"");arraytmp=str.split("&apos;");str=arraytmp.join("\'");arraytmp=str.split("&amp;");str=arraytmp.join("&");
return str;};CXp.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(Undef(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(Undef(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(Undef(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 CLp=CLayer.prototype;CLp.slide=function(x,y,st,tm,bef,betw,aft){var a=arguments;var s=CodeThat.Ani.add(CodeThat.Ani.SLIDE,true,[this],[[x,y]],st,tm,bef,betw,aft);CodeThat.Ani.run(s);
return s};CLp.slideRel=function(dx,dy,st,tm,bef,betw,aft){var a=arguments;var s=CodeThat.Ani.add(CodeThat.Ani.SLIDE,true,[this],[[this.getLeft()+dx,this.getTop()+dy]],st,tm,bef,betw,aft);CodeThat.Ani.run(s);
return s};CLp.clipSlide=function(l,t,r,b,n,tm,bef,betw,aft){var s=CodeThat.Ani.add(CodeThat.Ani.CLIP,true,this,[t,r,b,l],n,tm,bef,betw,aft);CodeThat.Ani.run(s);
return s};CLp.clipMove=function(l,t,n,tm,bef,betw,aft){var c=this.getClip();var dx=l-c[3],dy=t-c[0];var s=CodeThat.Ani.add(CodeThat.Ani.CLIP,true,this,[t,c[1]+dx,c[2]+dy,l],n,tm,bef,betw,aft);CodeThat.Ani.run(s);
return s};}CodeThat.Ani=new CAniCollection('CodeThat.Ani');{var CLp=CLayer.prototype;CLp.noclip=function(){delete this._clip;if(this._ex){if(ua.nn4){var area=this._st.clip;area.top=0;area.left=0;area.width=this.getWidth();area.height=this.getHeight();}else if(!ua.oldOpera)this._st.clip='rect(auto auto auto auto)'}};CLp.getZIndex=function(){if(this._ex)this._z=this._st.zindex;
return this._z};CLp.getCSS=function(){if(this._ex&&!(ua.oldOpera||ua.nn4))this._css=this._lr.className;
return this._css};CLp.getClip=function(){var c=this._clip;if(this._ex&&Undef(c)){var cl=this._st.clip;if(cl){if(ua.nn4){c[0]=cl.top||0;c[1]=cl.right||this.getWidth();c[2]=cl.bottom||this.getHeight();c[3]=cl.left||0;}else{var n1,n2=cl.indexOf('(');n1=cl.indexOf(' ',n2);c[0]=parseInt(cl.substring(n2+1,n1));n2=cl.indexOf(' ',n1);c[1]=parseInt(cl.substring(n1+1,n2));n1=cl.indexOf(' ',n2);c[2]=parseInt(cl.substring(n2+1,n1));c[3]=parseInt(cl.substr(n1+1));}}}
return c;};}