(function(){if(typeof Uize=='undefined')Uize=function(){};var _a=Uize.Node=function(){},_b,_c='string',_d=true,_e=false,_f=null,_g=navigator,_h=_g.userAgent.toLowerCase(),_i=_g.appName=='Microsoft Internet Explorer',_j=_g.vendor=='Apple Computer, Inc.',_k=_h.indexOf('gecko')> -1,_l='hidden';var _m={},_n={},_o=0;_a.display=function(_p,_q){_r(_p,{display:_q||_q===_b?'block':'none'});};var _s=_a.doForAll=function(_p,_t,_u,_v){function _w(_p){if(_p){if(_x(_p)){_t(_p);}else{var _y=typeof _p;if(_y==_c){_w(_z(_A(_u,_p,_v)));}else if((_y=='object'||_y=='function')&&typeof _p.length=='number'){var _B=_p.length;for(var _C=0;_C<_B;_C++)_w(_p[_C]);}else if(_y=='object'){for(var _D in _p)_w(_p[_D]);}}}}_w(_p);};_a.doLinesOverlap=function(_E,_F,_G,_H){return _E+_F>=_G&&_G+_H>=_E;};var _I=_a.doRectanglesOverlap=function(_J,_K,_L,_M,_N,_O,_P,_Q){return(_J+_L-1>=_N&&_N+_P-1>=_J&&_K+_M-1>=_O&&_O+_Q-1>=_K);};var _R=_a.getById=function(_S,_u,_v,_T){var _U;if(typeof _S==_c){var _V=_A(_u,_S,_v);if(_T)_U=_T[_V];if(_U===_b){
_U=document.getElementById(_V);if(_T)_T[_V]=_U;}}else{_U=_S;}return _U;};var _z=_a.getByNameOrId=function(_W){var _S=document.getElementsByName(_W);if(_S.length==1){_S=_S[0];}else if(_S.length==0){_S=_R(_W);}return _S;};_a.getByMatch=function(_X){var _Y=[],_Z={},_0;for(var _1 in _X)_Z[_1]=_X[_1];if(_Z.name){_0=document.getElementsByName(_Z.name);delete _Z.name;}else if(_Z.tagName){_0=document.getElementsByTagName(_Z.tagName);delete _Z.tagName;}else{_0=document.getElementsByTagName('*');}var _2=_0.length;for(var _3=0;_3<_2;_3++){var _S=_0[_3],_4=_d;for(var _1 in _Z){if(_S[_1]!=_Z[_1]){_4=_e;break;}}if(_4)_Y.push(_S)}return _Y;};var _5=_a.getCoords=function(_S,_6,_7){var _8=0,_9=0,_ba=0,_bb=0,_bc=null,_bd=window;if(_S==_bd){var _be=_bf(_bd),_bg=document.documentElement;_8=_bg.scrollLeft;_9=_bg.scrollTop;_ba=_be.width;_bb=_be.height;}else{_S=_a.getById(_S);if(_x(_S)){if(_6===_b)_6=true;if(_S.tagName=='A'&&_S.childNodes.length==1&&_S.childNodes[0].tagName=='IMG')_S=_S.childNodes[0];var _bh=null,_bi=_S.style!==_b,
_bj=_bi?_S.style.visibility:'',_bk=_bj=='visible'||_6=='treat as visible'||((_bj==''||_bj=='inherit')&&_6),_bl=_bh;if(!_bl)_bl=_S;_bh=_bl;while(_bl.parentNode&&typeof _bl.parentNode!='unknown'){if(_bc==null){if(_bl.style.visibility==='visible'){_bc=true;}else if(_bl.style.visibility==='hidden'){_bc=false;}}if(_bl==_bh){if(_bl.offsetLeft!==_b)_8+=_bl.offsetLeft;if(_bl.offsetTop!==_b)_9+=_bl.offsetTop;_bh=_bl.offsetParent;}if(_bl!=document.body&&_bl!=document.documentElement){if(_bl!=_S&&(_bl.scrollWidth>_bl.offsetWidth||_bl.scrollHeight>_bl.offsetHeight)){_8-=_bl.scrollLeft;_9-=_bl.scrollTop;if(_i){_8+=_bl.clientLeft;_9+=_bl.clientTop;}if(_bc!==false){var _bm=_5(_bl,_b,_d);if(!_I(_8,_9,_S.offsetWidth,_S.offsetHeight,_bm.x,_bm.y,_bm.width,_bm.height)){_bc=false;}}}}_bl=_bl.parentNode;}if(_bc==null)_bc=true;_bc=_bc&&_I(_8,_9,_S.offsetWidth,_S.offsetHeight,document.body.scrollLeft,document.body.scrollTop,document.body.offsetWidth,document.body.offsetHeight);if(_ba==0||_bb==0){if(_bk){
if(_S.offsetWidth!==_b)_ba=_S.offsetWidth;if(_S.offsetHeight!==_b)_bb=_S.offsetHeight;}if(!_7&&(_ba==0||_bb==0)&&_S.tagName=='DIV'){var _bn=_S.childNodes,_bo=_bn.length;for(var _bp=0;_bp<_bo;_bp++){if(_bn[_bp].nodeName.charAt(0)!='#'){var _bq=_5(_bn[_bp],_bk);if(_bq.width!=0||_bq.height!=0){_ba=Math.max(_ba,_bq.right-_8+1);_bb=Math.max(_bb,_bq.bottom-_9+1);}}}}}}}return{x:_8,y:_9,width:_ba,height:_bb,area:_ba*_bb,left:_8,top:_9,right:_8+_ba-1,bottom:_9+_bb-1,seen:_bc};};var _bf=_a.getDimensions=function(_S){var _ba=0,_bb=0,_bd=window;if(_S==_bd){var _bg=document.documentElement;_ba=_bg.clientWidth||_bd.innerWidth||_bg.offsetWidth;_bb=_bg.clientHeight||_bd.innerHeight||_bg.offsetHeight;}else{_S=_a.getById(_S);if(_S){_ba=Math.max((_br(_S,'width').replace(/px/i,'')-0)||0,_S.offsetWidth||0);_bb=Math.max((_br(_S,'height').replace(/px/i,'')-0)||0,_S.offsetHeight||0);}}return{width:_ba,height:_bb};};_a.getEffectiveBgColor=function(_S){var _bs='';_S=_a.getById(_S);while((!_bs||_bs=='transparent'||_bs=='none')&&_S){
_bs=_br(_S,'backgroundColor');_S=_S.parentNode;}return _bs;};var _bt=_a.getOpacityProperties=function(_bu){return(_i?{filter:'alpha(opacity='+Math.round(_bu*100)+')'}:{opacity:(_k&&_h.indexOf('firefox/1.0')> -1?.999:1)*_bu});};_a.getOpacityStr=function(_bu){return _bv(_bt(_bu));};var _br=_a.getStyleAttribute=function(_S,_bw){var _bx='';_S=_a.getById(_S);if(_S){if(document.defaultView&&document.defaultView.getComputedStyle&&document.defaultView.getComputedStyle(_S,'')){_bx=document.defaultView.getComputedStyle(_S,'')[_bw];}else if(_S.currentStyle){_bx=_S.currentStyle.getAttribute(_bw);}else{_bx=_S.style[_bw];}}return _bx;};var _by=_a.getText=function(_S){var _bz='';_S=_a.getById(_S);if(_S){function _bA(_S){if(typeof _S.innerText==_c){_bz=_S.innerText.replace(/\r|\n|\r\n/g,'');}else if(typeof _S.textContent==_c){_bz=_S.textContent;}else{if(_S.nodeType==3)_bz=_S.data;if(_S.childNodes){var _bn=_S.childNodes,_bo=_bn.length;for(var _bp=0;_bp<_bo;_bp++)_bz+=_by(_bn[_bp]);}}}_bA(_S);}return _bz;};
_a.injectHtml=function(_p,_bB,_bC){var _bD,_bE,_bF,_bG,_bH,_bI;((_bD=_bC=='inner replace')||(_bE=_bC=='outer replace')||(_bF=_bC=='inner top')||(_bG=_bC=='outer top')||(_bH=_bC=='outer bottom')||(_bI=_d));_s(_p,function(_S){var _bJ=_S.childNodes,_bK=_i||_j;function _bL(_bM){return _bM&&_bM.search(/<script/i)> -1;}function _bN(){return _bK&&_bL(_bB);}if((_bD||(!_bJ.length&&(_bF||_bI)))&& !_bN()){_S.innerHTML=_bB;}else if(_bE&&_i&& !_bN()){_S.outerHTML=_bB;}else{if(_bD)_S.innerHTML='';var _bO=document.createElement('DIV');_bO.innerHTML=_bB;var _bP=_bF?_bJ[0]:(_bH?_S.nextSibling:_S),_bQ=_bO.childNodes,_bR=_S.parentNode;function _bS(_S){if(_S.tagName=='SCRIPT'){var _bT=document.createElement('script');_bT.text=_S.text;_S.parentNode.replaceChild(_bT,_S);}else if(_bL(_S.innerHTML)){var _bJ=_S.childNodes,_bU=_bJ.length;for(var _bp=0;_bp<_bU;_bp++)_bS(_bJ[_bp]);}}while(_bQ.length){var _bV=_bQ[0];if(_bI||_bD){_S.appendChild(_bV);}else if(_bF){_bP?_S.insertBefore(_bV,_bP):_S.appendChild(_bV);}else if(_bG||_bE){
_bR.insertBefore(_bV,_bP);}else if(_bH){_bP?_bR.insertBefore(_bV,_bP):_bR.appendChild(_bV);}if(_bK)_bS(_bV);}if(_bE)_bR.removeChild(_S);}});};var _x=_a.isNode=function(_S){return _S&&typeof _S=='object'&&(_S.getAttribute||(_S.self&&_S.self==_S));};_a.isOnNodeTree=function(_S,_bW){_S=_R(_S);_bW=_R(_bW);var _U=false,_bX=_S;while(_bX&& !_U){_U=_bX==_bW;try{_bX=_bX.parentNode;}catch(_bY){_bX=null;}}return _U;};var _A=_a.joinIdPrefixAndNodeId=function(_u,_V,_v){return(_u||'')+(_u&&_V&&_v?_v:'')+_V;};_a.remove=function(_p){_s(_p,function(_S){_S.parentNode.removeChild(_S)});};_a.setClipRect=function(_p,_bZ,_b0,_b1,_b2){_r(_p,{clip:'rect('+_bZ+'px '+_b0+'px '+_b1+'px '+_b2+'px)'});};_a.setCoords=function(_p,_b3){var _b4=typeof _b3.length=='number',_b5={left:0,top:1,width:2,height:3},_b6={};for(var _1 in _b5){var _bx=_b4?_b3[_b5[_1]]:_b3[_1];if(typeof _bx=='string'||typeof _bx=='number')_b6[_1]=Math.round(_bx)+'px';}_r(_p,_b6);};_a.getEventAbsPos=function(_b7){var _bg=document.documentElement;return{
left:_b7.clientX+_bg.scrollLeft,top:_b7.clientY+_bg.scrollTop};};_a.setAbsPos=function(_p,_b8,_b9){if(!_b9)_b9=0;var _ca=_b8.left,_cb=_b8.top,_bg=document.documentElement,_cc=_bg.scrollLeft,_cd=_bg.scrollTop,_ce=_a.getDimensions(window),_cf=_ce.width,_cg=_ce.height;_s(_p,function(_S){function _ch(_b8,_ci,_cj,_ck,_b9){return((_b8+(_b8-_ci+_b9+_cj>_ck?Math.max(-_cj-_b9,_ci-_b8):_b9))+'px');}var _cl=_a.getDimensions(_S);_a.setStyle(_S,{left:_ch(_ca,_cc,_cl.width,_cf,_b9),top:_ch(_cb,_cd,_cl.height,_cg,_b9)});});};_a.setInnerHtml=function(_p,_bM){_s(_p,function(_S){_S.innerHTML=_bM});};_a.setOpacity=function(_p,_bu){_r(_p,_bt(_bu));};_a.setProperties=function(_p,_X){_s(_p,function(_S){for(var _cm in _X)_S[_cm]=_X[_cm];});};var _r=_a.setStyle=function(_p,_X){_s(_p,function(_S){var _cn=_S.style;for(var _cm in _X)_cn[_cm]=_X[_cm];});};_a.show=function(_p,_co){_r(_p,{visibility:_co||_co===_b?'inherit':_l});};_a.showClickable=function(_p,_cp){_r(_p,{cursor:_cp||_cp===_b?(_i?'hand':'pointer'):'default'});};
_a.showInLayoutFlow=function(_p,_co){_co=_co!==_e;_r(_p,{position:_co?'static':'absolute',visibility:_co?'inherit':_l});};var _bv=_a.stylePropertiesAsStr=function(_X){var _U='';for(var _cm in _X)_U+=_cm+':'+_X[_cm]+'; ';return _U;};_a.unwireEventsByOwnerId=function(_cq,_cr){var _cs=_n[_cq];if(_cs){var _ct,_cu,_cv,_cw=_cr&&((_ct=_a.getById(_cr.node))||(_cu=_cr.eventName)||(_cv=_cr.handler));for(var _cx=0;_cx<_cs.length;_cx++){var _cy=_cs[_cx],_cz=_m[_cy],_S=_cz._S,_cA=_cz._cA;if(!_cw||((!_ct||_ct==_S)&&(!_cu||_cu==_cA)&&(!_cv||_cv==_cz._cB))){try{_i?_S.detachEvent(_cA,_cz._cC):_S.removeEventListener(_cA.substr(2),_cz._cC,_e);}catch(_bY){}if(_cw){_cs.splice(_cx,1);_cx--;}delete _m[_cy];}}if(!_cw|| !_cs.length)delete _n[_cq];}};var _cD=_a.wireEvent=_a.addEventHandler=function(_p,_cA,_cB,_cq){_cq=_cq||'';_s(_p,function(_S){var _cy=_o++;if(!_n[_cq])_n[_cq]=[];_n[_cq].push(_cy);var _cC;if(_cA=='onmouseover'){_cC=_a._cE(_cy);}else if(_cA=='onmouseout'){_cC=_a._cF(_cy);}else{_cC=_a._cG(_cy);}_m[_cy]={_S:_S,_cA:_cA,
_cB:_cB,_cC:_cC};_i?_S.attachEvent(_cA,_cC):_S.addEventListener(_cA.substr(2),_cC,_e);if(_S.tagName=='A'&& !_S[_cA]&&(_cA=='onmousedown'||_cA=='onclick'))_S[_cA]=_a._cH;_o++;});};_a.wireEvents=_a.addEventHandlers=function(_p,_cI,_cq){for(var _b7 in _cI)_cD(_p,_b7,_cI[_b7],_cq);};_a._m=_m;})();Uize.Node._cG=function(_cy){return(function(_b7){var _cJ;if(typeof Uize!='undefined'){_b7=_b7||window.event;var _cz=Uize.Node._m[_cy];_cJ=_cz._cB.call(_cz._S,_b7);}return _cJ;});};Uize.Node._cE=function(_cy){return(function(_b7){var _cJ;if(typeof Uize!='undefined'){_b7=_b7||window.event;var _cz=Uize.Node._m[_cy],_cK=_b7.fromElement||_b7.relatedTarget;if(!_cK|| !(_cK.Uize_Widget_Drag_shield||Uize.Node.isOnNodeTree(_cK,_cz._S)))_cJ=_cz._cB.call(_cz._S,_b7);}return _cJ;});};Uize.Node._cF=function(_cy){return(function(_b7){var _cJ;if(typeof Uize!='undefined'){_b7=_b7||window.event;var _cz=Uize.Node._m[_cy],_cL=_b7.toElement||_b7.relatedTarget;if(!_cL|| !(_cL.Uize_Widget_Drag_shield||Uize.Node.isOnNodeTree(_cL,_cz._S)))
_cJ=_cz._cB.call(_cz._S,_b7);}return _cJ;});};Uize.Node._cH=Uize.Node.returnFalse=function(){return false};Uize.Node.returnTrue=function(){return true};