/* IRCC */;function DynInteface(){var a=DynInteface.arguments,r,c,t;if(!a||!a.length)return;this.type="DynInteface";if(a.length==1&&isObject(a[0])&&a[0]){r=a[0];a[0]=r.parent;a[1]=r.tagName;if(r.ref){a[2]=r.ref;a[2].id=r.id;}else a[2]=new Object({id:r.id});}if(isString(a[0]))a[0]=(this._od?this._od:_d).gid_(a[0]);if(!a[0])a[0]=(this._od?this._od.body:_d.body);if(a[0].type&&a[0].type=="DynInteface"&&a[0].el)a[0]=a[0].el;if(!_d._dEs)_d._dEs=new Object();__dCount++;if(a.length==1&&!r){this.parent=a[0].parentNode;if(!this._od&&this.parent&&this.parent.ownerDocument)this._od=this.parent.ownerDocument;this.tag=a[0].tagName;this.id=a[0].getAttribute("id");this.el=a[0];this.css=this.el.style;}else if(a.length==3||r){this.parent=a[0];if(!this._od&&this.parent&&this.parent.ownerDocument)this._od=this.parent.ownerDocument;if(!a[2].id){if(a[2].ID)a[2].id=a[2].id;else a[2].id="__dynElement"+__dCount;}t=a[2].style;if(t){if(t.position!="absolute"){c=this.parent.innerHTML;if(a[2].clear||c==" "||c=="&nbsp;"||c.length<=1)this.parent.innerHTML="";}else{if(t.left==null&&t.top==null&&!a[2].holder){this.__center=true;}if(t.width!=null&&isString(t.width)&&t.width.indexOf("%")>=0){this.__aWidth=true;this.__w=parseInt(t.width)/100;}if(t.height!=null&&isString(t.height)&&t.height.indexOf("%")>=0){this.__aHeight=true;this.__h=parseInt(t.height)/100;}if(this.parent.tagName=="TD"){if(t.left!=null)t.left=parseInt(t.left)+this.parent.offsetLeft;if(t.top!=null)t.top=parseInt(t.top)+this.parent.offsetTop;if(is.ns){if(t.width&&isString(t.width)&&t.width.indexOf("%")>=0)t.width=parseInt(parseInt(t.width)*this.parent.offsetWidth/100)+"px";if(t.height&&isString(t.height)&&t.height.indexOf("%")>=0)t.height=parseInt(parseInt(t.height)*this.parent.offsetHeight/100)+"px";}}}}if(a[2].isDialogLayer)this.isDialogLayer=true;this.tag=a[1];this.id=a[2].id;if(_d._dEs[this.id]){this.el=_d._dEs[this.id].el;this.ifLayer=_d._dEs[this.id].ifLayer;this.css=_d._dEs[this.id].css;this.parent=_d._dEs[this.id].parent;}else this.__createNode(a[2]);};_d._dEs[this.id]=this;if(this.tag)this.tag=this.tag.toLowerCase();try{if(this.el&&this.css){if(this.getAbsolute()&&!this.css.zIndex)this.css.zIndex=zOrder++;if((this.__aWidth||this.__aHeight||this.__center)&&!this.isDialogLayer){this.__resizeMe=new Function('return;');attachEvent(_w,"resize",this.__resizeMe);if(this.__center)attachEvent(_w,"scroll",this.__resizeMe);}this.el.setAttribute("pID__",this.id);this.el.getParent=__getParent;if(this.__center)this.moveCenter();}}catch(e){alert(e.message+" : "+e.lineNumber);};};var p=DynInteface.prototype;p.destroy=function(removeEvents){this._destroy(removeEvents);};p._destroy=function(removeEvents){if(this.unloaded)return;if(_d._dEs[this.id]){_d._dEs[this.id]=null;delete _d._dEs[this.id];}if(this.__shw_tmr)clearTimeout(this.__shw_tmr);if(this.__resizeMe)detachEvent(_w,"resize",this.__resizeMe);if(this.el){if(this.css){this.css=null;delete this.css;}if(this.parent){this.parent=null;delete this.parent;}if(is.ie){if(removeEvents)__removeEvents(this.el);this.el.removeNode(true);}else this.el.parentNode.removeChild(this.el);this.el=null;delete this.el;}for(var i in this){if(this[i]&&this[i].destroy)this[i].destroy();this[i]=null;}this.unloaded=true;};p.isCompleted=function(){if(this.__ready)return true;var i,a=this.el.getElementsByTagName("img");if(a&&a.length)for(i=0;i<a.length;i++)if(!a[i].complete)return false;this.__ready=true;return true;};p.__createNode=function(ref){var i,j,el;this.el=(this.id?(this._od?this._od:_d).gid_(this.id):null);if(!this.el){this.el=(this._od?this._od:_d).createElement(this.tag);}if(!this.el){(this._od?this._od:_d).write('<'+tag+' id="'+this.id+'">&nbsp;</'+tag+'>');this.el=(this._od?this._od:_d).gid_(this.id);if(this.el)this.el.innerHTML='';}if(!this.el)return;if(ref.style&&ref.style.position=="absolute"){if(!ref.style.visibility)ref.style.visibility="hidden";}else if(ref.style&&!ref.style.display)ref.style.display="none";for(i in ref){if(ref[i]!=null){switch(i){case "style":for(j in ref.style)if(ref.style[j]!=null){try{this.el.style[j]=ref.style[j];}catch(e){alert(e.message);}}break;case "events":for(j in ref.events)this.el["on"+j]=new Function(ref.events[j]);case "alpha":if(isString(ref[i])&&!ref[i].length)ref[i]=100;if(is.ie)this.el.style.filter='alpha(opacity='+ref[i]+')shadow()';else this.el.style.MozOpacity=parseInt(ref[i])/100;break;case "className":this.el[_CLS_]=ref[i];break;case "innerHTML":this.el.innerHTML=ref[i];break;default:this.el.setAttribute(i,ref[i]);}}}this.parent.appendChild(this.el);this.css=this.el.style;};p.swapNode=function(node){if(node){if(isString(node))node=(this._od?this._od:_d).gid_(node);if(!node)return;if(node.tagName)node=new DynInteface(node);if(!node||!node.el)return;swapHTMLNode(this.el,node.el);}};p.moveTo=function(left,top,force){this._moveTo(left,top,force);};p._moveTo=function(left,top,force){if(left!=null&&((this.el.offsetLeft!=left&&left>=0)||force))this.el.style.left=left+"px";if(top!=null&&((this.el.offsetTop!=top&&top>=0)||force))this.el.style.top=top+"px";if(this.ifLayer)this.ifLayer._moveTo(left,top);if(this._lys)this._lys._moveTo(left!=null?left+this._sw:null,top!=null?top+this._sw:null);};p.moveBy=function(dl,dt,f){var cl=parseInt(this.el.style.left),ct=parseInt(this.el.style.top);if(cl<=0)cl=this.el.offsetLeft;if(ct<0)ct=this.el.offsetTop;this._moveTo(cl+dl,ct+dt,f);};p.moveCenter=function(){alert("call move center");return true;};p.setSize=function(width,height){this._setSize(width,height);};p._setSize=function(width,height){if(width!=null&&parseInt(width)>0)this.css.width=width+"px";if(height!=null&&parseInt(height)>0)this.css.height=height+"px";if(this.ifLayer)this.ifLayer._setSize(width,height);if(this._lys)if(this._lys)this._lys._setSize(width,height);if(this.onresize)this.onresize();};p.getWidth=function(){var f,w=(this.el.clientWidth?this.el.clientWidth:this.el.offsetWidth);if(is.ns){f=this.el.firstChild;if(f&&f.tagName.toLowerCase()=='table'&&f.offsetWidth>w)w=f.offsetWidth;}return w;};p.getHeight=function(){var f,h=(this.el.clientHeight?this.el.clientHeight:this.el.offsetHeight);if(is.ns){f=this.el.firstChild;if(f&&f.tagName.toLowerCase()=='table'&&f.offsetHeight>h)h=f.offsetHeight;}return h;};p.getClientLeft=function(){var l=this.el.offsetLeft,p=this.parent;while(p&&(p.offsetLeft!=null)){if(p.tagName.toLowerCase()!="tr")l+=p.offsetLeft;p=p.parentNode;}return l;};p.getClientTop=function(){var t=this.el.offsetTop,p=this.parent;while(p&&(p.offsetTop!=null)){if(p.tagName.toLowerCase()!="tr")t+=p.offsetTop;p=p.parentNode;}return t;};p.show=function(){if(this.unloaded)return;if(this.__shw_tmr){clearTimeout(this.__shw_tmr);this.__shw_tmr=null;}this._show();};p._show=function(){if(!this.el)return;if(this.__center)this.moveCenter();if(this.ifLayer){this.ifLayer.moveTo(this.el.offsetLeft,this.el.offsetTop);this.ifLayer.show();}if(this._lys){this._lys.moveTo(this.el.offsetLeft+this._sw,this.el.offsetTop+this._sw);this._lys.show();}if(this.css){if(this.getAbsolute()){if(this.css.visibility!="visible")this.css.visibility="visible";}else{if(is.ns){switch(this.tag){case 'table':this.css.display='table';break;case 'td':this.css.display='table-cell';break;case 'tr':this.css.display='table-row';break;default:if(this.css.display!="block")this.css.display="block";}}else if(this.css.display!="block")this.css.display="block";}}if(this.onshow)this.onshow();};p.hide=function(){this._hide();};p._hide=function(){if(this.unloaded)return;if(this.__shw_tmr)clearTimeout(this.__shw_tmr);try{if(this.getAbsolute())this.css.visibility="hidden";else this.css.display="none";}catch(e){};if(this.ifLayer)this.ifLayer.hide();if(this._lys)this._lys.hide();if(this.onhide)this.onhide();};p.getVisible=function(){return(this.css.display!='none'&&this.css.visibility!='hidden');};p.getAbsolute=function(){try{return(this.css.position&&this.css.position.toLowerCase()=="absolute");}catch(e){};return false;};p.setAlpha=function(v,a){var e=a?(isString(a)?(this._od?this._od:_d).gid_(a):a):this.el;if(isString(v)&&!v.length)v=100;if(is.ie)e.style.filter="alpha(opacity="+v+")";else if(is.ns)e.style.MozOpacity=parseInt(v)/100;};p.setHTML=function(h){this._setHTML(h);};p._setHTML=function(h){try{this.el.innerHTML=h;}catch(e){}};p.setClass=function(cls){this.el[_CLS_]=cls;};p.getClipValues=function(){if(this.css.clip!=null&&this.css.clip.length>0){var i,v=this.css.clip.slice(5,-1).split(' ');for(i=0;i<4;i++)v[i]=parseInt(v[i]);return v;}else return false;};p.clipBy=function(t,r,b,l){var v=this.getClipValues();if(!v)return;this.css.clip="rect("+Number(v[0]+t)+"px, "+Number(v[1]+r)+"px, "+Number(v[2]+b)+"px, "+Number(v[3]+l)+"px)";if(this.ifLayer)this.ifLayer.clipBy(t,r,b,l);};p.clipTo=function(t,r,b,l){this.css.clip="rect("+t+"px, "+r+"px, "+b+"px, "+l+"px)";if(this.ifLayer)this.ifLayer.clipTo(t,r,b,l);};p.createIfLayer=function(){if(this.getAbsolute()&&this.tag!="iframe"&&is.ie&&is.iev>5&&!this.ifLayer){var mi=false;try{mi=_w.frames.length||(this._od?this._od:_d).getElementsByTagName("iframe").length;if(!mi)mi=(this._od?this._od:_d).getElementsByTagName("textarea").length;if(!mi)mi=(this._od?this._od:_d).getElementsByTagName("select").length;if(!mi)mi=(this._od?this._od:_d).getElementsByTagName("object").length;if(!mi)mi=(this._od?this._od:_d).getElementsByTagName("applet").length;}catch(e){}if(mi){this.ifLayer=new DynInteface(this.parent,"iframe",{id:this.id+"_ily",frameBorder:'0',scrolling:'no',alpha:1,style:{position:'absolute',left:this.el.offsetLeft,top:this.el.offsetTop,width:this.getWidth(),height:this.getHeight(),visibility:this.css.visibility,zIndex:this.css.zIndex?this.css.zIndex-1:0}});}}};p.setZIndex=function(z){if(this.getAbsolute()){var o=false;if(!z){z=zOrder+1;o=true;}if(this.ifLayer)this.ifLayer.css.zIndex=z++;if(this._lys)this._lys.css.zIndex=z++;this.css.zIndex=z++;if(o)zOrder=z;return z;}};p.bringToTop=function(ni){if(this.getAbsolute()&&!ni)this.createIfLayer();this.setZIndex();};p.setSelectable=function(s,a){try{var el=a?a:this.el;if(s){el.style.cursor='';if(is.ie)el.onselectstart=el.ondragstart=null;else el.onmousedown=null;}else{el.style.cursor="default";if(is.ie)el.onselectstart=el.ondragstart=__unSelectable;else el.onmousedown=__unSelectable;}}catch(e){};};p.attachEvent=function(evt,hdl){attachEvent(this.el,evt,hdl);};p.detachEvent=function(evt,hdl){detachEvent(this.el,evt,hdl);};