/* Compiled from X 4.17 by XC 1.06 on 19Jun08 */
function xAnimation(r){this.res=r||10;}xAnimation.prototype.init=function(e,t,or,ot,oe,a,b){var i=this;i.e=xGetElementById(e);i.t=t;i.or=or;i.ot=ot;i.oe=oe;i.a=a||0;i.v=xAnimation.vf[i.a];i.qc=1+(b||0);i.fq=1/i.t;if(i.a){i.fq*=i.qc*Math.PI;if(i.a==1||i.a==2){i.fq/=2;}}else{i.qc=1;}i.xd=i.x2-i.x1;i.yd=i.y2-i.y1;i.zd=i.z2-i.z1;};xAnimation.prototype.run=function(r){var i=this;if(!r)i.t1=new Date().getTime();if(!i.tmr)i.tmr=setInterval(function(){i.et=new Date().getTime()-i.t1;if(i.et<i.t){i.f=i.v(i.et*i.fq);i.x=i.xd*i.f+i.x1;i.y=i.yd*i.f+i.y1;i.z=i.zd*i.f+i.z1;i.or(i);}else{clearInterval(i.tmr);i.tmr=null;if(i.qc%2){i.x=i.x2;i.y=i.y2;i.z=i.z2;}else{i.x=i.x1;i.y=i.y1;i.z=i.z1;}i.ot(i);var rep=false;if(typeof i.oe=='function')rep=i.oe(i);else if(typeof i.oe=='string')rep=eval(i.oe);if(rep)i.resume(1);}},i.res);};xAnimation.vf=[function(r){return r;},function(r){return Math.abs(Math.sin(r));},function(r){return 1-Math.abs(Math.cos(r));},function(r){return(1-Math.cos(r))/2;}];xAnimation.prototype.pause=function(){clearInterval(this.tmr);this.tmr=null;};xAnimation.prototype.resume=function(fs){if(typeof this.tmr!='undefined'&&!this.tmr){this.t1=new Date().getTime();if(!fs){this.t1-=this.et;}this.run(!fs);}};function xBar(dir,conStyle,barStyle){this.value=0;this.update=function(v){if(v<0)v=0;else if(v>this.inMax)v=this.inMax;this.con.title=this.bar.title=this.value=v;switch(this.dir){case'ltr':v=this.scale(v,this.w);xLeft(this.bar,v-this.w);break;case'rtl':v=this.scale(v,this.w);xLeft(this.bar,this.w-v);break;case'btt':v=this.scale(v,this.h);xTop(this.bar,this.h-v);break;case'ttb':v=this.scale(v,this.h);xTop(this.bar,v-this.h);break;}};this.paint=function(x,y,w,h){if(xNum(x))this.x=x;if(xNum(y))this.y=y;if(xNum(w))this.w=w;if(xNum(h))this.h=h;xResizeTo(this.con,this.w,this.h);xMoveTo(this.con,this.x,this.y);xResizeTo(this.bar,this.w,this.h);xMoveTo(this.bar,0,0);};this.reset=function(max,start){if(xNum(max))this.inMax=max;if(xNum(start))this.start=start;this.update(this.start);};this.scale=function(v,outMax){return Math.round(xLinearScale(v,0,this.inMax,0,outMax));};this.dir=dir;this.x=0;this.y=0;this.w=100;this.h=100;this.inMax=100;this.start=0;this.conStyle=conStyle;this.barStyle=barStyle;this.con=document.createElement('DIV');this.con.className=this.conStyle;this.bar=document.createElement('DIV');this.bar.className=this.barStyle;this.con.appendChild(this.bar);document.body.appendChild(this.con);}function xCollapsible(outerEle,bShow){var container=xGetElementById(outerEle);if(!container){return null;}var isUL=container.nodeName.toUpperCase()=='UL';var i,trg,aTgt=xGetElementsByTagName(isUL?'UL':'DIV',container);for(i=0;i<aTgt.length;++i){trg=xPrevSib(aTgt[i]);if(trg&&(isUL||trg.nodeName.charAt(0).toUpperCase()=='H')){aTgt[i].xTrgPtr=trg;aTgt[i].style.display=bShow?'block':'none';trg.style.cursor='pointer';trg.xTgtPtr=aTgt[i];trg.onclick=trg_onClick;}}function trg_onClick(){var tgt=this.xTgtPtr.style;tgt.display=(tgt.display=='none')?"block":"none";}this.displayAll=function(bShow){for(var i=0;i<aTgt.length;++i){if(aTgt[i].xTrgPtr){aTgt[i].style.display=bShow?"block":"none";}}};this.onUnload=function(){if(!container||!aTgt){return;}for(i=0;i<aTgt.length;++i){trg=aTgt[i].xTrgPtr;if(trg){if(trg.xTgtPtr){trg.xTgtPtr.TrgPtr=null;trg.xTgtPtr=null;}trg.onclick=null;}}};}function xDialog(sPos1,sPos2,sPos3,sStyle,sId,sUrl,bHidden){if(document.getElementById&&document.createElement&&document.body&&document.body.appendChild){var e=document.createElement('IFRAME');this.ele=e;e.id=sId;e.name=sId;e.style.position='absolute';e.style.zIndex='1000';e.className=sStyle;e.src=sUrl;document.body.appendChild(e);e.style.visibility='visible';this.open=false;this.margin=10;this.pos1=sPos1;this.pos2=sPos2;this.pos3=sPos3;this.slideTime=400;if(bHidden)xGetElementById(sId).style.visibility='hidden';else this.show();}}xDialog.prototype.show=function(){if(!this.open){var e=this.ele;var pos=xCardinalPosition(e,this.pos1,this.margin,true);xMoveTo(e,pos.x,pos.y);e.style.visibility='visible';pos=xCardinalPosition(e,this.pos2,this.margin,false);xSlideTo(e,pos.x,pos.y,this.slideTime);this.open=true;}};xDialog.prototype.hide=function(){if(this.open){var e=this.ele;var pos=xCardinalPosition(e,this.pos3,this.margin,true);xSlideTo(e,pos.x,pos.y,this.slideTime);setTimeout("xGetElementById('"+e.id+"').style.visibility = 'hidden'",this.slideTime);this.open=false;}};xDialog.prototype.setUrl=function(sUrl){this.ele.src=sUrl;};xDialog.prototype.resize=function(w,h){xResizeTo(this.ele,w,h);if(this.open){var pos=xCardinalPosition(this.ele,this.pos2,this.margin,true);xSlideTo(this.ele,pos.x,pos.y,this.slideTime);}};function xEvent(evt){var e=evt||window.event;if(!e)return;this.type=e.type;this.target=e.target||e.srcElement;this.relatedTarget=e.relatedTarget;/*@cc_on if(e.type=='mouseover')this.relatedTarget=e.fromElement;else if(e.type=='mouseout')this.relatedTarget=e.toElement;@*/if(xDef(e.pageX)){this.pageX=e.pageX;this.pageY=e.pageY;}else if(xDef(e.clientX)){this.pageX=e.clientX+xScrollLeft();this.pageY=e.clientY+xScrollTop();}if(xDef(e.offsetX)){this.offsetX=e.offsetX;this.offsetY=e.offsetY;}else if(xDef(e.layerX)){this.offsetX=e.layerX;this.offsetY=e.layerY;}else{this.offsetX=this.pageX-xPageX(this.target);this.offsetY=this.pageY-xPageY(this.target);}this.keyCode=e.keyCode||e.which||0;this.shiftKey=e.shiftKey;this.ctrlKey=e.ctrlKey;this.altKey=e.altKey;if(typeof e.type=='string'){if(e.type.indexOf('click')!=-1){this.button=0;}else if(e.type.indexOf('mouse')!=-1){this.button=e.button;/*@cc_on if(e.button&1)this.button=0;else if(e.button&4)this.button=1;else if(e.button&2)this.button=2;@*/}}}function xFenster(clientId,iniTitle,iniUrl,iniX,iniY,iniW,iniH,enMove,enResize,enMaxRes,enClose,fnMove,fnResize,fnMaxRes,fnClose,fnFocus){var me=this;var M=1,B=1;var M2=2*M,B2=2*B;me.paint=function(dw,dh){me.conW+=dw;me.conH+=dh;xResizeTo(me.con,me.conW,me.conH);/*@cc_on @if(@_jscript_version<=5.7)xMoveTo(me.tbar,M,M);xWidth(me.tbar,me.conW-M2-B2);xLeft(me.sbar,M);xWidth(me.sbar,me.conW-M2-B2);xTop(me.sbar,me.conH-xHeight(me.sbar)-M-B2);@end @*/xMoveTo(me.client,M,M+me.tbar.offsetHeight);xResizeTo(me.client,me.conW-M2-B2,me.conH-me.tbar.offsetHeight-me.sbar.offsetHeight-M2-B2);};me.focus=function(e){if(!fnFocus||fnFocus(me)){me.con.style.zIndex=xFenster.nextZ++;if(xFenster.focused){xFenster.focused.tbar.className='xfTBar';xFenster.focused.sbar.className='xfSBar';}me.tbar.className='xfTBarF';me.sbar.className='xfSBarF';xFenster.focused=me;}};me.href=function(s){var h='';if(isIFrame){if(me.client.contentWindow){if(s){me.client.contentWindow.location=s;}h=me.client.contentWindow.location.href;}else if(typeof me.client.src=='string'){if(s){me.client.src=s;}h=me.client.src;}}return h;};me.hide=function(e){var i,o=xFenster.instances,z=0,hz=0,f=null;if(!fnClose||fnClose(me)){me.con.style.display='none';xStopPropagation(e);if(me==xFenster.focused){for(i in o){if(o.hasOwnProperty(i)&&o[i].con.style.display!='none'&&o[i]!=me){z=parseInt(o[i].con.style.zIndex);if(z>hz){hz=z;f=o[i];}}}if(f){f.focus();}}}};me.show=function(){me.con.style.display='block';me.focus();};me.status=function(s){if(s){me.sbar.firstChild.data=s;}return me.sbar.firstChild.data;};me.title=function(s){if(s){me.tbar.firstChild.data=s;}return me.tbar.firstChild.data;};function dragStart(){var i,o=xFenster.instances;if(isIFrame){for(i in o){if(o.hasOwnProperty(i)){o[i].client.style.visibility='hidden';}}}else{me.focus();}}function dragEnd(){var i,o=xFenster.instances;if(isIFrame){for(i in o){if(o.hasOwnProperty(i)){o[i].client.style.visibility='visible';}}}}function barDrag(e,mdx,mdy){var x=xLeft(me.con)+mdx;var y=xTop(me.con)+mdy;if(!fnMove||fnMove(me,x,y)){xMoveTo(me.con,x,y);}}function resDrag(e,mdx,mdy){if(!fnResize||fnResize(me,me.client.offsetWidth+mdx,me.client.offsetHeight+mdy)){me.paint(mdx,mdy);}}function maxClick(){var w,h;if(me.maximized){w=rW;h=rH;}else{w=xClientWidth()-2;h=xClientHeight()-2;}if(!fnMaxRes||fnMaxRes(me,w-M2-B2,h-me.tbar.offsetHeight-me.sbar.offsetHeight-M2-B2)){if(me.maximized){xMoveTo(me.con,rX,rY);}else{rW=me.con.offsetWidth;rH=me.con.offsetHeight;rX=me.con.offsetLeft;rY=me.con.offsetTop;xMoveTo(me.con,xScrollLeft(),xScrollTop());}me.maximized=!me.maximized;me.conW=w;me.conH=h;me.paint(0,0);}}me.con=null;me.tbar=null;me.sbar=null;me.rbtn=null;me.mbtn=null;me.cbtn=null;me.maximized=false;me.client=xGetElementById(clientId);if(!me.client){me.client=document.createElement(typeof iniUrl=='string'?'iframe':'div');me.client.id=clientId;}me.client.className+=' xfClient';me.client.style.display='block';var rX,rY,rW,rH;var isIFrame=me.client.nodeName.toLowerCase()=='iframe';xFenster.instances[clientId]=me;me.con=document.createElement('div');me.con.className='xfCon';if(enResize){me.rbtn=document.createElement('div');me.rbtn.className='xfRIco';me.rbtn.title='Resize';}if(enMaxRes){me.mbtn=document.createElement('div');me.mbtn.className='xfMIco';me.mbtn.title='Maximize/Restore';}if(enClose){me.cbtn=document.createElement('div');me.cbtn.className='xfCIco';me.cbtn.title='Close';}me.tbar=document.createElement('div');me.tbar.className='xfTBar';if(enMove){me.tbar.title='Drag to Move';if(enMaxRes)me.tbar.title+=', ';}if(enMaxRes)me.tbar.title+='Double-Click to Maximize/Restore';me.tbar.appendChild(document.createTextNode(iniTitle));me.sbar=document.createElement('div');me.sbar.className='xfSBar';me.sbar.innerHTML='&nbsp;';me.con.appendChild(me.tbar);if(enMaxRes)me.tbar.appendChild(me.mbtn);if(enClose)me.tbar.appendChild(me.cbtn);me.con.appendChild(me.client);me.con.appendChild(me.sbar);if(enResize)me.sbar.appendChild(me.rbtn);document.body.appendChild(me.con);me.conW=iniW;me.conH=iniH;if(isIFrame){me.href(iniUrl);}xMoveTo(me.con,iniX,iniY);me.paint(0,0);if(enMove)xEnableDrag(me.tbar,dragStart,barDrag,dragEnd);if(enResize)xEnableDrag(me.rbtn,dragStart,resDrag,dragEnd);if(isIFrame){me.con.onmousedown=me.focus;me.client.name=clientId;}else{me.con.onclick=me.focus;}if(enMaxRes)me.mbtn.onclick=me.tbar.ondblclick=maxClick;if(enClose){me.cbtn.onclick=me.hide;me.cbtn.onmousedown=xStopPropagation;}me.con.style.visibility='visible';me.focus();xAddEventListener(window,'unload',function(){me.con.onmousedown=me.con.onclick=null;if(me.mbtn)me.mbtn.onclick=me.tbar.ondblclick=null;if(me.cbtn)me.cbtn.onclick=me.cbtn.onmousedown=null;xFenster.instances[clientId]=null;me=null;},false);xAddEventListener(window,'resize',function(){if(me.maximized){xResizeTo(me.con,100,100);xMoveTo(me.con,xScrollLeft(),xScrollTop());me.conW=xClientWidth()-2;me.conH=xClientHeight()-2;me.paint(0,0);}},false);}xFenster.nextZ=100;xFenster.focused=null;xFenster.instances={};xLibrary={version:'4.17',license:'GNU LGPL',url:'http://cross-browser.com/'};function xMenu1(triggerId,menuId,mouseMargin,openEvent){var isOpen=false;var trg=xGetElementById(triggerId);var mnu=xGetElementById(menuId);if(trg&&mnu){xAddEventListener(trg,openEvent,onOpen,false);}function onOpen(){if(!isOpen){xMoveTo(mnu,xPageX(trg),xPageY(trg)+xHeight(trg));mnu.style.visibility='visible';xAddEventListener(document,'mousemove',onMousemove,false);isOpen=true;}}function onMousemove(ev){var e=new xEvent(ev);if(!xHasPoint(mnu,e.pageX,e.pageY,-mouseMargin)&&!xHasPoint(trg,e.pageX,e.pageY,-mouseMargin)){mnu.style.visibility='hidden';xRemoveEventListener(document,'mousemove',onMousemove,false);isOpen=false;}}}function xMenu1A(triggerId,menuId,mouseMargin,slideTime,openEvent){var isOpen=false;var trg=xGetElementById(triggerId);var mnu=xGetElementById(menuId);if(trg&&mnu){mnu.style.visibility='hidden';xAddEventListener(trg,openEvent,onOpen,false);}function onOpen(){if(!isOpen){xMoveTo(mnu,xPageX(trg),xPageY(trg));mnu.style.visibility='visible';xSlideTo(mnu,xPageX(trg),xPageY(trg)+xHeight(trg),slideTime);xAddEventListener(document,'mousemove',onMousemove,false);isOpen=true;}}function onMousemove(ev){var e=new xEvent(ev);if(!xHasPoint(mnu,e.pageX,e.pageY,-mouseMargin)&&!xHasPoint(trg,e.pageX,e.pageY,-mouseMargin)){xRemoveEventListener(document,'mousemove',onMousemove,false);xSlideTo(mnu,xPageX(trg),xPageY(trg),slideTime);setTimeout("xGetElementById('"+menuId+"').style.visibility='hidden'",slideTime);isOpen=false;}}}function xMenu1B(openTriggerId,closeTriggerId,menuId,slideTime,bOnClick){xMenu1B.instances[xMenu1B.instances.length]=this;var isOpen=false;var oTrg=xGetElementById(openTriggerId);var cTrg=xGetElementById(closeTriggerId);var mnu=xGetElementById(menuId);if(oTrg&&cTrg&&mnu){mnu.style.visibility='hidden';if(bOnClick)oTrg.onclick=openOnEvent;else oTrg.onmouseover=openOnEvent;cTrg.onclick=closeOnClick;}function openOnEvent(){if(!isOpen){for(var i=0;i<xMenu1B.instances.length;++i){xMenu1B.instances[i].close();}xMoveTo(mnu,xPageX(oTrg),xPageY(oTrg));mnu.style.visibility='visible';xSlideTo(mnu,xPageX(oTrg),xPageY(oTrg)+xHeight(oTrg),slideTime);isOpen=true;}}function closeOnClick(){if(isOpen){xSlideTo(mnu,xPageX(oTrg),xPageY(oTrg),slideTime);setTimeout("xGetElementById('"+menuId+"').style.visibility='hidden'",slideTime);isOpen=false;}}this.close=function(){closeOnClick();}}xMenu1B.instances=new Array();function xMenu5(idUL,btnClass,idAutoOpen){var i,ul,btns,mnu=xGetElementById(idUL);btns=xGetElementsByClassName(btnClass,mnu,'DIV');for(i=0;i<btns.length;++i){ul=xNextSib(btns[i],'UL');btns[i].xClpsTgt=ul;btns[i].onclick=btn_onClick;set_display(btns[i],0);}if(idAutoOpen){var e=xGetElementById(idAutoOpen);while(e&&e!=mnu){if(e.xClpsTgt)set_display(e,1);while(e&&e!=mnu&&e.nodeName!='LI')e=e.parentNode;e=e.parentNode;while(e&&!e.xClpsTgt)e=xPrevSib(e);}}function btn_onClick(){var thisLi,fc,pUl;if(this.xClpsTgt.style.display=='none'){set_display(this,1);var li=this.parentNode;thisLi=li;pUl=li.parentNode;li=xFirstChild(pUl);while(li){if(li!=thisLi){fc=xFirstChild(li);if(fc&&fc.xClpsTgt){set_display(fc,0);}}li=xNextSib(li);}}else{set_display(this,0);}}function set_display(ele,bBlock){if(bBlock){ele.xClpsTgt.style.display='block';ele.innerHTML='-';}else{ele.xClpsTgt.style.display='none';ele.innerHTML='+';}}this.onUnload=function(){for(i=0;i<btns.length;++i){btns[i].xClpsTgt=null;btns[i].onclick=null;}}}function xMenu6(sUlId,sMainUlClass,sSubUlClass,sLblLiClass,sItmLiClass,sLblAClass,sItmAClass,sPlusImg,sMinusImg,sImgClass,sItmPadLeft,bLblIsItm,sActiveItmId){var me=this;xMenu6.instances[sUlId]=this;this.ul=xGetElementById(sUlId);this.pImg=sPlusImg;this.mImg=sMinusImg;function click(e){if(this.xmChildUL){var s,uls=this.xmChildUL.style;if(uls.display!='block'){s=sMinusImg;uls.display='block';xWalkUL(this.xmParentUL,this.xmChildUL,function(p,li,c,d){if(c&&c!=d&&c.style.display!='none'){if(sPlusImg){var a=xFirstChild(li,'a');xFirstChild(a,'img').src=sPlusImg;}c.style.display='none';}return true;});}else{s=sPlusImg;uls.display='none';}if(sPlusImg){xFirstChild(this,'img').src=s;}if(typeof this.blur()=='function'){this.blur();}e=e||window.event;var t=e.target||e.srcElement;if(t.nodeName.toLowerCase()!='img'&&bLblIsItm){return true;}return false;}return true;}this.ul.className=sMainUlClass;xWalkUL(this.ul,null,function(p,li,c){var liCls=sItmLiClass;var aCls=sItmAClass;var a=xFirstChild(li,'a');if(a){var m='Click to toggle sub-menu';if(c){if(sPlusImg){var i=document.createElement('img');i.title=m;a.insertBefore(i,a.firstChild);i.src=sPlusImg;i.className=sImgClass;}aCls=sLblAClass;liCls=sLblLiClass;c.className=sSubUlClass;c.style.display='none';a.title=bLblIsItm?'Click to follow link':m;a.xmParentUL=p;a.xmChildUL=c;a.onclick=click;}else if(sPlusImg){a.style.paddingLeft=sItmPadLeft;}a.className=aCls;}li.className=liCls;return true;});if(sActiveItmId){this.open(sActiveItmId);}this.ul.style.visibility='visible';xAddEventListener(window,'unload',function(){xWalkUL(me.ul,null,function(p,li,c){var a=xFirstChild(li,'a');if(a&&c){a.xmParentUL=a.xmChildUL=a.onclick=null;}return true;});},false);}xMenu6.prototype.open=function(id){var img,ul,li,a=xGetElementById(id);while(a&&ul!=this.ul){ul=a.xmChildUL;if(ul){ul.style.display='block';if(this.pImg){img=xFirstChild(a,'img');if(img){img.src=this.mImg;}}}li=a.parentNode;ul=li.parentNode;li=ul.parentNode;a=xFirstChild(li,'a');}};xMenu6.instances={};function xPopup(sTmrType,uTimeout,sPos1,sPos2,sPos3,sStyle,sId,sUrl){if(document.getElementById&&document.createElement&&document.body&&document.body.appendChild){var e=document.createElement('IFRAME');this.ele=e;e.id=sId;e.style.position='absolute';e.className=sStyle;e.src=sUrl;document.body.appendChild(e);e.style.visibility='visible';this.tmr=xTimer.set(sTmrType,this,sTmrType,uTimeout);this.open=false;this.margin=10;this.pos1=sPos1;this.pos2=sPos2;this.pos3=sPos3;this.slideTime=500;this.interval();}}xPopup.prototype.show=function(){this.interval();};xPopup.prototype.hide=function(){this.timeout();};xPopup.prototype.timeout=function(){if(this.open){var e=this.ele;var pos=xCardinalPosition(e,this.pos3,this.margin,true);xSlideTo(e,pos.x,pos.y,this.slideTime);setTimeout("xGetElementById('"+e.id+"').style.visibility='hidden'",this.slideTime);this.open=false;}};xPopup.prototype.interval=function(){if(!this.open){var e=this.ele;var pos=xCardinalPosition(e,this.pos1,this.margin,true);xMoveTo(e,pos.x,pos.y);e.style.visibility='visible';pos=xCardinalPosition(e,this.pos2,this.margin,false);xSlideTo(e,pos.x,pos.y,this.slideTime);this.open=true;}};function xSelect(sId,fnSubOnChange,sMainName,sSubName,bUnder,iMargin){function s1OnChange(){var io,s2=this.xSelSub;for(io=0;io<s2.options.length;++io){s2.options[io]=null;}var a=this.xSelData,ig=this.selectedIndex;for(io=1;io<a[ig].length;++io){op=new Option(a[ig][io]);s2.options[io-1]=op;}}var s0=xGetElementById(sId);if(!s0||!s0.firstChild||!s0.nodeName||!document.createElement||!s0.form||!s0.form.appendChild){return null;}var s1=document.createElement('SELECT');s1.id=s1.name=sMainName?sMainName:sId+'_main';s1.display='block';s1.style.position='absolute';s1.xSelObj=this;s1.xSelData=new Array();s0.form.appendChild(s1);var ig=0,io,op,og,a=s1.xSelData;og=s0.firstChild;while(og){if(og.nodeName.toLowerCase()=='optgroup'){io=0;a[ig]=new Array();a[ig][io]=og.label;op=og.firstChild;while(op){if(op.nodeName.toLowerCase()=='option'){io++;a[ig][io]=op.innerHTML;}op=op.nextSibling;}ig++;}og=og.nextSibling;}for(ig=0;ig<a.length;++ig){op=new Option(a[ig][0]);s1.options[ig]=op;}var s2=document.createElement('SELECT');s2.id=s2.name=sSubName?sSubName:sId+'_sub';s2.display='block';s2.style.position='absolute';s2.xSelMain=s1;s1.xSelSub=s2;s0.form.appendChild(s2);s1.onchange=s1OnChange;s2.onchange=fnSubOnChange||null;s0.style.visibility='hidden';xMoveTo(s1,s0.offsetLeft,s0.offsetTop);s1.style.visibility='visible';iMargin=iMargin||0;if(bUnder){xMoveTo(s2,s0.offsetLeft,s0.offsetTop+xHeight(s1)+iMargin);}else{xMoveTo(s2,s0.offsetLeft+xWidth(s1)+iMargin,s0.offsetTop);}s2.style.visibility='visible';s1.onchange();}function xSequence(seq){var ai=0;var stop=true;var running=false;function runSeq(){if(stop){running=false;return;}if(this.onslideend)this.onslideend=null;if(ai>=seq.length)ai=0;var i=ai;++ai;if(seq[i][0]!=-1){setTimeout(runSeq,seq[i][0]);}else{if(seq[i][2]&&seq[i][2][0])seq[i][2][0].onslideend=runSeq;}if(seq[i][1]){if(seq[i][2])seq[i][1].apply(window,seq[i][2]);else seq[i][1]();}}this.run=function(si){if(!running){if(xDef(si)&&si>=0&&si<seq.length)ai=si;stop=false;running=true;runSeq();}};this.stop=function(){stop=true;};this.onUnload=function(){if(!window.opera){for(var i=0;i<seq.length;++i){if(seq[i][2]&&seq[i][2][0]&&seq[i][2][0].onslideend)seq[i][2][0].onslideend=runSeq;}}};}function xSplitter(sSplId,uSplX,uSplY,uSplW,uSplH,bHorizontal,uBarW,uBarPos,uBarLimit1,uBarLimit2,bBarEnabled,uSplBorderW,oSplChild1,oSplChild2){var pane1,pane2,splW,splH;var splEle,barPos,barLim1,barLim2,barEle;function barOnDrag(ele,dx,dy){var bp;if(bHorizontal){bp=barPos+dx;if(bp<barLim1||bp>splW-barLim2){return;}xWidth(pane1,xWidth(pane1)+dx);xLeft(barEle,xLeft(barEle)+dx);xWidth(pane2,xWidth(pane2)-dx);xLeft(pane2,xLeft(pane2)+dx);barPos=bp;}else{bp=barPos+dy;if(bp<barLim1||bp>splH-barLim2){return;}xHeight(pane1,xHeight(pane1)+dy);xTop(barEle,xTop(barEle)+dy);xHeight(pane2,xHeight(pane2)-dy);xTop(pane2,xTop(pane2)+dy);barPos=bp;}if(oSplChild1){oSplChild1.paint(xWidth(pane1),xHeight(pane1));}if(oSplChild2){oSplChild2.paint(xWidth(pane2),xHeight(pane2));}}this.paint=function(uNewW,uNewH,uNewBarPos,uNewBarLim1,uNewBarLim2){if(uNewW==0){return;}var w1,h1,w2,h2;splW=uNewW;splH=uNewH;barPos=uNewBarPos||barPos;barLim1=uNewBarLim1||barLim1;barLim2=uNewBarLim2||barLim2;xMoveTo(splEle,uSplX,uSplY);xResizeTo(splEle,uNewW,uNewH);if(bHorizontal){w1=barPos;h1=uNewH-2*uSplBorderW;w2=uNewW-w1-uBarW-2*uSplBorderW;h2=h1;xMoveTo(pane1,0,0);xResizeTo(pane1,w1,h1);xMoveTo(barEle,w1,0);xResizeTo(barEle,uBarW,h1);xMoveTo(pane2,w1+uBarW,0);xResizeTo(pane2,w2,h2);}else{w1=uNewW-2*uSplBorderW;;h1=barPos;w2=w1;h2=uNewH-h1-uBarW-2*uSplBorderW;xMoveTo(pane1,0,0);xResizeTo(pane1,w1,h1);xMoveTo(barEle,0,h1);xResizeTo(barEle,w1,uBarW);xMoveTo(pane2,0,h1+uBarW);xResizeTo(pane2,w2,h2);}if(oSplChild1){pane1.style.overflow='hidden';oSplChild1.paint(w1,h1);}if(oSplChild2){pane2.style.overflow='hidden';oSplChild2.paint(w2,h2);}};splEle=xGetElementById(sSplId);pane1=xFirstChild(splEle,'DIV');pane2=xNextSib(pane1,'DIV');barEle=xNextSib(pane2,'DIV');pane1.style.zIndex=2;pane2.style.zIndex=2;barEle.style.zIndex=1;barPos=uBarPos;barLim1=uBarLimit1;barLim2=uBarLimit2;this.paint(uSplW,uSplH);if(bBarEnabled){xEnableDrag(barEle,null,barOnDrag,null);barEle.style.cursor=bHorizontal?'e-resize':'n-resize';}splEle.style.visibility='visible';}function xTabPanelGroup(id,w,h,th,clsTP,clsTG,clsTD,clsTS){function onClick(){paint(this);return false;}function onFocus(){paint(this);}function paint(tab){tab.className=clsTS;tab.style.zIndex=highZ++;panels[tab.xTabIndex].style.display='block';if(selectedIndex!=tab.xTabIndex){panels[selectedIndex].style.display='none';tabs[selectedIndex].className=clsTD;selectedIndex=tab.xTabIndex;}}var panelGrp,tabGrp,panels,tabs,highZ,selectedIndex;this.select=function(n){if(n&&n<=tabs.length){var t=tabs[n-1];if(t.focus)t.focus();else t.onclick();}};this.onUnload=function(){if(!window.opera)for(var i=0;i<tabs.length;++i){tabs[i].onfocus=tabs[i].onclick=null;}};this.onResize=function(newW,newH){var x=0,i;if(newW){w=newW;xWidth(panelGrp,w);}else w=xWidth(panelGrp);if(newH){h=newH;xHeight(panelGrp,h);}else h=xHeight(panelGrp);xResizeTo(tabGrp[0],w,th);xMoveTo(tabGrp[0],0,0);w-=2;var tw=w/tabs.length;for(i=0;i<tabs.length;++i){xResizeTo(tabs[i],tw,th);xMoveTo(tabs[i],x,0);x+=tw;tabs[i].xTabIndex=i;tabs[i].onclick=onClick;tabs[i].onfocus=onFocus;panels[i].style.display='none';xResizeTo(panels[i],w,h-th-2);xMoveTo(panels[i],0,th);}highZ=i;tabs[selectedIndex].onclick();};panelGrp=xGetElementById(id);if(!panelGrp){return null;}panels=xGetElementsByClassName(clsTP,panelGrp);tabs=xGetElementsByClassName(clsTD,panelGrp);tabGrp=xGetElementsByClassName(clsTG,panelGrp);if(!panels||!tabs||!tabGrp||panels.length!=tabs.length||tabGrp.length!=1){return null;}selectedIndex=0;this.onResize(w,h);}function xTable(sTableId,sRoot,sCC,sFR,sFRI,sRCell,sFC,sFCI,sCCell,sTC,sCellT){var i,ot,cc=null,fcw,frh,root,fr,fri,fc,fci,tc;var e,t,tr,a,alen,tmr=null;ot=xGetElementById(sTableId);if(!ot||!document.createElement||!document.appendChild||!ot.deleteCaption||!ot.deleteTHead){return null;}fcw=xWidth(ot.rows[1].cells[0]);frh=xHeight(ot.rows[0]);root=document.createElement('div');root.className=sRoot;fr=document.createElement('div');fr.className=sFR;fri=document.createElement('div');fri.className=sFRI;fr.appendChild(fri);root.appendChild(fr);fc=document.createElement('div');fc.className=sFC;fci=document.createElement('div');fci.className=sFCI;fc.appendChild(fci);root.appendChild(fc);tc=document.createElement('div');tc.className=sTC;root.appendChild(tc);if(ot.caption){cc=document.createElement('div');cc.className=sCC;cc.appendChild(ot.caption.firstChild);root.appendChild(cc);ot.deleteCaption();}a=ot.rows[0].cells;alen=a.length;for(i=1;i<alen;++i){e=document.createElement('div');e.className=sRCell;t=document.createElement('table');t.className=sCellT;tr=t.insertRow(0);tr.appendChild(a[1]);e.appendChild(t);fri.appendChild(e);}if(ot.tHead){ot.deleteTHead();}a=ot.rows;alen=a.length;for(i=0;i<alen;++i){e=document.createElement('div');e.className=sCCell;t=document.createElement('table');t.className=sCellT;tr=t.insertRow(0);tr.appendChild(a[i].cells[0]);e.appendChild(t);fci.appendChild(e);}ot=ot.parentNode.replaceChild(root,ot);tc.appendChild(ot);resize();root.style.visibility='visible';xAddEventListener(tc,'scroll',onScroll,false);xAddEventListener(window,'resize',onResize,false);function onScroll(){xLeft(fri,-tc.scrollLeft);xTop(fci,-tc.scrollTop);}function onResize(){if(!tmr){tmr=setTimeout(function(){resize();tmr=null;},500);}}function resize(){var sum=0,cch=0,w,h;if(cc){cch=xHeight(cc);xMoveTo(cc,0,0);xWidth(cc,xWidth(root));}xMoveTo(fr,fcw,cch);xResizeTo(fr,xWidth(root)-fcw,frh);xMoveTo(fri,0,0);xResizeTo(fri,xWidth(ot),frh);xMoveTo(fc,0,cch+frh);xResizeTo(fc,fcw,xHeight(root)-cch);xMoveTo(fci,0,0);xResizeTo(fci,fcw,xHeight(ot));xMoveTo(tc,fcw,cch+frh);xWidth(tc,xWidth(root)-fcw-1);xHeight(tc,xHeight(root)-cch-frh-1);a=ot.rows[0].cells;e=xFirstChild(fri,'div');for(i=0;i<a.length;++i){xMoveTo(e,sum,0);w=xWidth(e,xWidth(a[i]));h=xHeight(e,frh);sum+=w;xResizeTo(xFirstChild(e,'table'),w,h);e=xNextSib(e,'div');}sum=0;a=ot.rows;e=xFirstChild(fci,'div');for(i=0;i<a.length;++i){xMoveTo(e,0,sum);w=xWidth(e,fcw);h=xHeight(e,xHeight(a[i]));sum+=h;xResizeTo(xFirstChild(e,'table'),w,h);e=xNextSib(e,'div');}onScroll();}}function xTableCursor(tblId,rowStyle,cellStyle){xTableIterate(tblId,function(obj,isRow){if(!isRow){obj.onmouseover=tdOver;obj.onmouseout=tdOut;}});function tdOver(e){xAddClass(this,cellStyle);var tr=this.parentNode;for(var i=0;i<tr.cells.length;++i){if(this!=tr.cells[i])xAddClass(tr.cells[i],rowStyle);}}function tdOut(e){xRemoveClass(this,cellStyle);var tr=this.parentNode;for(var i=0;i<tr.cells.length;++i){xRemoveClass(tr.cells[i],rowStyle);}}this.unload=function(){xTableIterate(tblId,function(o){o.onmouseover=o.onmouseout=null;});};}function xTableHeaderFixed(fixedContainerId,fixedTableClass,fakeBodyId,tableBorder,thBorder){var tables=[];function onEvent(e){e=e||window.event;var r=e.type=='resize'?true:false;for(var i=0;i<tables.length;++i){scroll(tables[i],r);}}function scroll(t,bResize){if(!t){return;}var fhc=xGetElementById(fixedContainerId);var fh=xGetElementById(t.fixedHeaderId);var thead=t.tHead;var st,sl,thy=xPageY(thead);/*@cc_on @if(@_jscript_version==5.6)st=xGetElementById(fakeBodyId).scrollTop;sl=xGetElementById(fakeBodyId).scrollLeft;@else @*/st=xScrollTop();sl=xScrollLeft();/*@end @*/var th=xHeight(t);var tw=xWidth(t);var ty=xPageY(t);var tx=xPageX(t);var fhh=xHeight(fh);if(bResize){xWidth(fh,tw+2*tableBorder);var th1=xGetElementsByTagName('th',t);var th2=xGetElementsByTagName('th',fh);for(var i=0;i<th1.length;++i){xWidth(th2[i],xWidth(th1[i])+thBorder);}}xLeft(fh,tx-sl);if(st<=thy||st>ty+th-fhh){if(fh.style.visibility!='hidden'){fh.style.visibility='hidden';fhc.style.visibility='hidden';}}else{if(fh.style.visibility!='visible'){fh.style.visibility='visible';fhc.style.visibility='visible';}}}function init(){var i,tbl,h,t,con;if(null==(con=xGetElementById(fixedContainerId))){con=document.createElement('div');con.id=fixedContainerId;document.body.appendChild(con);}for(i=0;i<tables.length;++i){tbl=tables[i];h=tbl.tHead;if(h){t=document.createElement('table');t.className=fixedTableClass;t.appendChild(h.cloneNode(true));t.id=tbl.fixedHeaderId='xtfh'+i;con.appendChild(t);}else{tables[i]=null;}}con.style.visibility='hidden';}this.unload=function(){for(var i=0;i<tables.length;++i){tables[i]=null;}};var i,j,lst;if(arguments.length>5){i=5;lst=arguments;}else{i=0;lst=xGetElementsByTagName('table');}for(j=0;i<lst.length;++i,++j){tables[j]=xGetElementById(lst[i]);}init();onEvent({type:'resize'});/*@cc_on @if(@_jscript_version==5.6)xAddEventListener(fakeBodyId,'scroll',onEvent,false);@else @*/xAddEventListener(window,'scroll',onEvent,false);/*@end @*/xAddEventListener(window,'resize',onEvent,false);}function xTimerMgr(){this.tmr=null;this.timers=new Array();}xTimerMgr.prototype.set=function(type,obj,sMethod,uTime,data){return(this.timers[this.timers.length]=new xTimerObj(type,obj,sMethod,uTime,data));};xTimerMgr.prototype.run=function(){var i,t,d=new Date(),now=d.getTime();for(i=0;i<this.timers.length;++i){t=this.timers[i];if(t&&t.running){t.elapsed=now-t.time0;if(t.elapsed>=t.preset){t.obj[t.mthd](t);if(t.type.charAt(0)=='i'){t.time0=now;}else{t.stop();}}}}};xTimerMgr.prototype.tick=function(t){if(this.tmr)clearInterval(this.tmr);this.tmr=setInterval('xTimer.run()',t);};function xTimerObj(type,obj,mthd,preset,data){this.data=data;this.type=type;this.obj=obj;this.mthd=mthd;this.preset=preset;this.reset();}xTimerObj.prototype.stop=function(){this.running=false;};xTimerObj.prototype.start=function(){this.running=true;};xTimerObj.prototype.reset=function(){var d=new Date();this.time0=d.getTime();this.elapsed=0;this.running=true;};var xTimer=new xTimerMgr();xTimer.tmr=setInterval('xTimer.run()',25);function xTooltipGroup(grpClassOrIdList,tipClass,origin,xOffset,yOffset,hideDelay,sticky,textList){this.c=tipClass;this.o=origin;this.x=xOffset;this.y=yOffset;this.s=sticky;this.hd=hideDelay||0;var i,tips;if(xStr(grpClassOrIdList)){tips=xGetElementsByClassName(grpClassOrIdList);for(i=0;i<tips.length;++i){tips[i].xTooltip=this;tips[i].xTooltipText=tips[i].title;tips[i].title='';}}else{tips=new Array();for(i=0;i<grpClassOrIdList.length;++i){tips[i]=xGetElementById(grpClassOrIdList[i]);if(!tips[i]){alert('Element not found for id = '+grpClassOrIdList[i]);}else{tips[i].xTooltip=this;tips[i].xTooltipText=textList[i];}}}if(!xTooltipGroup.tipEle){var te=document.createElement("div");if(te){te.id='xTooltipElement';xTooltipGroup.tipEle=te=document.body.appendChild(te);xAddEventListener(document,'mousemove',xTooltipGroup.docOnMousemove,false);}}}xTooltipGroup.tmr=null;xTooltipGroup.trgEle=null;xTooltipGroup.tipEle=null;xTooltipGroup.docOnMousemove=function(oEvent){var t=null,e=new xEvent(oEvent);if(e.target){t=e.target;while(t&&!t.xTooltip){t=t.offsetParent;}if(t){t.xTooltip.show(t,e.pageX,e.pageY);}else if(xTooltipGroup.trgEle){t=xTooltipGroup.trgEle.xTooltip;if(t&&!t.s&&!xTooltipGroup.tmr){xTooltipGroup.tHide();}}}};xTooltipGroup.teOnClick=function(){xTooltipGroup.hide();};xTooltipGroup.tHide=function(){xTooltipGroup.tmr=setTimeout("xTooltipGroup.hide()",xTooltipGroup.trgEle.xTooltip.hd);};xTooltipGroup.hide=function(){xMoveTo(xTooltipGroup.tipEle,-1000,-1000);xTooltipGroup.trgEle=null;};xTooltipGroup.prototype.show=function(trigEle,mx,my){if(xTooltipGroup.tmr){clearTimeout(xTooltipGroup.tmr);xTooltipGroup.tmr=null;}if(xTooltipGroup.trgEle!=trigEle){xTooltipGroup.tipEle.className=trigEle.xTooltip.c;xTooltipGroup.tipEle.innerHTML=trigEle.xTooltipText;xTooltipGroup.trgEle=trigEle;}if(this.s){xTooltipGroup.tipEle.title='Click To Close';xTooltipGroup.tipEle.onclick=xTooltipGroup.teOnClick;}var x,y,tipW,trgW,trgX;tipW=xWidth(xTooltipGroup.tipEle);trgW=xWidth(trigEle);trgX=xPageX(trigEle);switch(this.o){case'right':if(trgX+this.x+trgW+tipW<xClientWidth()){x=trgX+this.x+trgW;}else{x=trgX-tipW-this.x;}y=xPageY(trigEle)+this.y;break;case'top':x=trgX+this.x;y=xPageY(trigEle)-xHeight(trigEle)+this.y;break;case'mouse':if(mx+this.x+tipW<xClientWidth()){x=mx+this.x;}else{x=mx-tipW-this.x;}y=my+this.y;break;}xMoveTo(xTooltipGroup.tipEle,x,y);xTooltipGroup.tipEle.style.visibility='visible';};function xTriStateImage(idOut,urlOver,urlDown,fnUp){var img;if(typeof Image!='undefined'&&document.getElementById){img=document.getElementById(idOut);if(img){var urlOut=img.src;var i=new Image();i.src=urlOver;i=new Image();i.src=urlDown;img.onmouseover=function(){this.src=urlOver;};img.onmouseout=function(){this.src=urlOut;};img.onmousedown=function(){this.src=urlDown;};img.onmouseup=function(){this.src=urlOver;if(fnUp){fnUp();}};}}this.onunload=function(){if(!window.opera&&img){img.onmouseover=img.onmouseout=img.onmousedown=null;img=null;}};}function xWinClass(clsName,winName,w,h,x,y,loc,men,res,scr,sta,too){var thisObj=this;var e='',c=',',xf='left=',yf='top=';this.n=name;if(document.layers){xf='screenX=';yf='screenY=';}this.f=(w?'width='+w+c:e)+(h?'height='+h+c:e)+(x>=0?xf+x+c:e)+(y>=0?yf+y+c:e)+'location='+loc+',menubar='+men+',resizable='+res+',scrollbars='+scr+',status='+sta+',toolbar='+too;this.opened=function(){return this.w&&!this.w.closed;};this.close=function(){if(this.opened())this.w.close();};this.focus=function(){if(this.opened())this.w.focus();};this.load=function(sUrl){if(this.opened())this.w.location.href=sUrl;else this.w=window.open(sUrl,this.n,this.f);this.focus();return false;};function onClick(){return thisObj.load(this.href);}xGetElementsByClassName(clsName,document,'*',bindOnClick);function bindOnClick(e){e.onclick=onClick;}}function xWindow(name,w,h,x,y,loc,men,res,scr,sta,too){var e='',c=',',xf='left=',yf='top=';this.n=name;if(document.layers){xf='screenX=';yf='screenY=';}this.f=(w?'width='+w+c:e)+(h?'height='+h+c:e)+(x>=0?xf+x+c:e)+(y>=0?yf+y+c:e)+'location='+loc+',menubar='+men+',resizable='+res+',scrollbars='+scr+',status='+sta+',toolbar='+too;this.opened=function(){return this.w&&!this.w.closed;};this.close=function(){if(this.opened())this.w.close();};this.focus=function(){if(this.opened())this.w.focus();};this.load=function(sUrl){if(this.opened())this.w.location.href=sUrl;else this.w=window.open(sUrl,this.n,this.f);this.focus();return false;};}xAnimation.prototype.arc=function(e,xr,yr,a1,a2,t,a,b,oe){var i=this;i.x1=a1*(Math.PI/180);i.x2=a2*(Math.PI/180);var x0=xLeft(e)+(xWidth(e)/2);var y0=xTop(e)+(xHeight(e)/2);i.xc=x0-(xr*Math.cos(i.x1));i.yc=y0-(yr*Math.sin(i.x1));i.xr=xr;i.yr=yr;i.init(e,t,h,h,oe,a,b);i.run();function h(i){i.e.style.left=(Math.round(i.xr*Math.cos(i.x)+i.xc-(xWidth(i.e)/2)))+'px';i.e.style.top=(Math.round(i.yr*Math.sin(i.x)+i.yc-(xHeight(i.e)/2)))+'px';}};xAnimation.prototype.corner=function(e,c,x,y,t,a,b,oe){var i=this;i.x2=x;i.y2=y;var ex=xLeft(e),ey=xTop(e);var ew=xWidth(e),eh=xHeight(e);i.cornerStr=c.toLowerCase();switch(i.cornerStr){case'nw':i.x1=ex;i.y1=ey;break;case'sw':i.x1=ex;i.y1=ey+eh;break;case'ne':i.x1=ex+ew;i.y1=ey;break;case'se':i.x1=ex+ew;i.y1=ey+eh;break;default:return;}i.init(e,t,h,h,oe,a,b);i.run();function h(i){var e=i.e,x=Math.round(i.x),y=Math.round(i.y);var nwx=xLeft(e),nwy=xTop(e);var sex=nwx+xWidth(e),sey=nwy+xHeight(e);switch(i.cornerStr){case'nw':e.style.left=x+'px';e.style.top=y+'px';xResizeTo(e,sex-x,sey-y);break;case'sw':e.style.left=x+'px';xWidth(e,sex-x);xHeight(e,y-nwy);break;case'ne':xWidth(e,x-nwx);e.style.top=y+'px';xHeight(e,sey-y);break;case'se':xWidth(e,x-nwx);xHeight(e,y-nwy);break;}}};xAnimation.prototype.css=function(e,p,v,t,a,b,oe){var i=this;i.x1=xGetComputedStyle(e,p,true);i.x2=v;i.prop=xCamelize(p);i.init(e,t,h,h,oe,a,b);i.run();function h(i){i.e.style[i.prop]=Math.round(i.x)+'px';}};xAnimation.prototype.line=function(e,x,y,t,a,b,oe){var i=this;i.x1=xLeft(e);i.y1=xTop(e);i.x2=Math.round(x);i.y2=Math.round(y);i.init(e,t,h,h,oe,a,b);i.run();function h(i){i.e.style.left=Math.round(i.x)+'px';i.e.style.top=Math.round(i.y)+'px';}};xAnimation.prototype.opacity=function(e,o,t,a,b,oe){var i=this;i.x1=xOpacity(e);i.x2=o;i.init(e,t,h,h,oe,a,b);i.run();function h(i){xOpacity(i.e,i.x);}};xAnimation.prototype.para=function(e,xe,ye,inc,t,oe){var i=this;i.tt=t;if(!t)t=1000;i.xe=xe;i.ye=ye;i.par=0;i.inc=inc||.005;i.init(e,t,h,h,oe,0,0);i.run();function h(i){var p=i.e.offsetParent,xc,yc;xc=(xWidth(p)/2)-(xWidth(e)/2);yc=(xHeight(p)/2)-(xHeight(e)/2);i.e.style.left=(Math.round((eval(i.xe)*xc)+xc)+xScrollLeft(p))+'px';i.e.style.top=(Math.round((eval(i.ye)*yc)+yc)+xScrollTop(p))+'px';i.par+=i.inc;if(!i.tt)i.t+=1000;}};xAnimation.prototype.rgb=function(e,p,v,t,a,b,oe){var i=this;var co=xParseColor(xGetComputedStyle(e,p));i.x1=co.r;i.y1=co.g;i.z1=co.b;co=xParseColor(v);i.x2=co.r;i.y2=co.g;i.z2=co.b;i.prop=xCamelize(p);i.init(e,t,h,h,oe,a,b);i.run();function h(i){i.e.style[i.prop]=xRgbToHex(Math.round(i.x),Math.round(i.y),Math.round(i.z));}};xAnimation.prototype.scroll=function(e,x,y,t,a,b,oe){var i=this;i.init(e);i.win=i.e.nodeType==1?false:true;i.x1=xScrollLeft(i.e,i.win);i.y1=xScrollTop(i.e,i.win);i.x2=Math.round(x);i.y2=Math.round(y);i.init(e,t,h,h,oe,a,b);i.run();function h(i){var x=Math.round(i.x),y=Math.round(i.y);if(i.win)i.e.scrollTo(x,y);else{i.e.scrollLeft=x;i.e.scrollTop=y;}}};xAnimation.prototype.size=function(e,w,h,t,a,b,oe){var i=this;i.x1=xWidth(e);i.y1=xHeight(e);i.x2=Math.round(w);i.y2=Math.round(h);i.init(e,t,o,o,oe,a,b);i.run();function o(i){xWidth(i.e,Math.round(i.x));xHeight(i.e,Math.round(i.y));}};function xAddClass(e,c){if((e=xGetElementById(e))!=null){var s='';if(e.className.length&&e.className.charAt(e.className.length-1)!=' '){s=' ';}if(!xHasClass(e,c)){e.className+=s+c;return true;}}return false;}function xAddEventListener(e,eT,eL,cap){if(!(e=xGetElementById(e)))return;eT=eT.toLowerCase();if(e.addEventListener)e.addEventListener(eT,eL,cap||false);else if(e.attachEvent)e.attachEvent('on'+eT,eL);else{var o=e['on'+eT];e['on'+eT]=typeof o=='function'?function(v){o(v);eL(v);}:eL;}}function xAniLine(e,x,y,t,a,oe){if(!(e=xGetElementById(e)))return;var x0=xLeft(e),y0=xTop(e);x=Math.round(x);y=Math.round(y);var dx=x-x0,dy=y-y0;var fq=1/t;if(a)fq*=(Math.PI/2);var t0=new Date().getTime();var tmr=setInterval(function(){var et=new Date().getTime()-t0;if(et<t){var f=et*fq;if(a==1)f=Math.sin(f);else if(a==2)f=1-Math.cos(f);f=Math.abs(f);e.style.left=Math.round(f*dx+x0)+'px';e.style.top=Math.round(f*dy+y0)+'px';}else{clearInterval(tmr);e.style.left=x+'px';e.style.top=y+'px';if(typeof oe=='function')oe();else if(typeof oe=='string')eval(oe);}},10);}function xAniOpacity(e,o,t,a,oe){if(!(e=xGetElementById(e)))return;var o0=xOpacity(e);var dx=o-o0;var fq=1/t;if(a)fq*=(Math.PI/2);var t0=new Date().getTime();var tmr=setInterval(function(){var et=new Date().getTime()-t0;if(et<t){var f=et*fq;if(a==1)f=Math.sin(f);else if(a==2)f=1-Math.cos(f);f=Math.abs(f);xOpacity(e,f*dx+o0);}else{clearInterval(tmr);xOpacity(e,o);if(typeof oe=='function')oe();else if(typeof oe=='string')eval(oe);}},10);}function xAniRgb(e,p,c,t,a,oe){if(!(e=xGetElementById(e)))return;var c0=xParseColor(xGetComputedStyle(e,p));p=xCamelize(p);c=xParseColor(c);var d={r:c.r-c0.r,g:c.g-c0.g,b:c.b-c0.b};var fq=1/t;if(a)fq*=(Math.PI/2);var t0=new Date().getTime();var tmr=setInterval(function(){var et=new Date().getTime()-t0;if(et<t){var f=et*fq;if(a==1)f=Math.sin(f);else if(a==2)f=1-Math.cos(f);f=Math.abs(f);e.style[p]=xRgbToHex(Math.round(f*d.r+c0.r),Math.round(f*d.g+c0.g),Math.round(f*d.b+c0.b));}else{clearInterval(tmr);e.style[p]=c.s;if(typeof oe=='function')oe();else if(typeof oe=='string')eval(oe);}},10);}function xAniXY(e,x,y,t){if(!(e=xGetElementById(e)))return;var x0=xLeft(e),y0=xTop(e);var dx=x-x0,dy=y-y0;var fq=1/t;var t0=new Date().getTime();var tmr=setInterval(function(){var xi=x,yi=y;var et=new Date().getTime()-t0;if(et<t){var f=et*fq;xi=f*dx+x0;yi=f*dy+y0;}else{clearInterval(tmr);}e.style.left=Math.round(xi)+'px';e.style.top=Math.round(yi)+'px';},10);}function xAppendChild(oParent,oChild){if(oParent.appendChild)return oParent.appendChild(oChild);else return null;}function xBackground(e,c,i){if(!(e=xGetElementById(e)))return'';var bg='';if(e.style){if(xStr(c)){e.style.backgroundColor=c;}if(xStr(i)){e.style.backgroundImage=(i!='')?'url('+i+')':null;}bg=e.style.backgroundColor;}return bg;}function xCamelize(cssPropStr){var i,c,a=cssPropStr.split('-');var s=a[0];for(i=1;i<a.length;++i){c=a[i].charAt(0);s+=a[i].replace(c,c.toUpperCase());}return s;}function xCapitalize(str){var i,c,wd,s='',cap=true;for(i=0;i<str.length;++i){c=str.charAt(i);wd=isWordDelim(c);if(wd){cap=true;}if(cap&&!wd){c=c.toUpperCase();cap=false;}s+=c;}return s;function isWordDelim(c){return c==' '||c=='\n'||c=='\t';}}function xCardinalPosition(e,cp,margin,outside){if(!(e=xGetElementById(e)))return;if(typeof(cp)!='string'){window.status='xCardinalPosition error: cp='+cp+', id='+e.id;return;}var x=xLeft(e),y=xTop(e),w=xWidth(e),h=xHeight(e);var pw,ph,p=e.offsetParent;if(p==document||p.nodeName.toLowerCase()=='html'){pw=xClientWidth();ph=xClientHeight();}else{pw=xWidth(p);ph=xHeight(p);}var sx=xScrollLeft(p),sy=xScrollTop(p);var right=sx+pw,bottom=sy+ph;var cenLeft=sx+Math.floor((pw-w)/2),cenTop=sy+Math.floor((ph-h)/2);if(!margin)margin=0;else{if(outside)margin=-margin;sx+=margin;sy+=margin;right-=margin;bottom-=margin;}switch(cp.toLowerCase()){case'n':x=cenLeft;if(outside)y=sy-h;else y=sy;break;case'ne':if(outside){x=right;y=sy-h;}else{x=right-w;y=sy;}break;case'e':y=cenTop;if(outside)x=right;else x=right-w;break;case'se':if(outside){x=right;y=bottom;}else{x=right-w;y=bottom-h}break;case's':x=cenLeft;if(outside)y=sy-h;else y=bottom-h;break;case'sw':if(outside){x=sx-w;y=bottom;}else{x=sx;y=bottom-h;}break;case'w':y=cenTop;if(outside)x=sx-w;else x=sx;break;case'nw':if(outside){x=sx-w;y=sy-h;}else{x=sx;y=sy;}break;case'cen':x=cenLeft;y=cenTop;break;case'cenh':x=cenLeft;break;case'cenv':y=cenTop;break;}var o=new Object();o.x=x;o.y=y;return o;}function xClientHeight(){var v=0,d=document,w=window;if((!d.compatMode||d.compatMode=='CSS1Compat')&&!w.opera&&d.documentElement&&d.documentElement.clientHeight){v=d.documentElement.clientHeight;}else if(d.body&&d.body.clientHeight){v=d.body.clientHeight;}else if(xDef(w.innerWidth,w.innerHeight,d.width)){v=w.innerHeight;if(d.width>w.innerWidth)v-=16;}return v;}function xClientWidth(){var v=0,d=document,w=window;if((!d.compatMode||d.compatMode=='CSS1Compat')&&!w.opera&&d.documentElement&&d.documentElement.clientWidth){v=d.documentElement.clientWidth;}else if(d.body&&d.body.clientWidth){v=d.body.clientWidth;}else if(xDef(w.innerWidth,w.innerHeight,d.height)){v=w.innerWidth;if(d.height>w.innerHeight)v-=16;}return v;}function xClip(e,t,r,b,l){if(!(e=xGetElementById(e)))return;if(e.style){if(xNum(l))e.style.clip='rect('+t+'px '+r+'px '+b+'px '+l+'px)';else e.style.clip='rect(0 '+parseInt(e.style.width)+'px '+parseInt(e.style.height)+'px 0)';}}function xColEqualizer(){var i,j,h=[];for(i=1,j=0;i<arguments.length;i+=2,++j){h[j]=xHeight(arguments[i]);}h.sort(d);for(i=0;i<arguments.length;i+=2){xHeight(arguments[i],h[0]);}return h[0];function d(a,b){return b-a;}}function xColor(e,s){if(!(e=xGetElementById(e)))return'';var c='';if(e.style&&xDef(e.style.color)){if(xStr(s))e.style.color=s;c=e.style.color;}return c;}function xCreateElement(sTag){if(document.createElement)return document.createElement(sTag);else return null;}function xDef(){for(var i=0;i<arguments.length;++i){if(typeof(arguments[i])=='undefined')return false;}return true;}function xDeg(rad){return rad*(180/Math.PI);}function xDeleteCookie(name,path){if(xGetCookie(name)){document.cookie=name+"="+"; path="+((!path)?"/":path)+"; expires="+new Date(0).toGMTString();}}function xDisplay(e,s){if((e=xGetElementById(e))&&e.style&&xDef(e.style.display)){if(xStr(s)){try{e.style.display=s;}catch(ex){e.style.display='';}}return e.style.display;}return null;}function xDocSize(){var b=document.body,e=document.documentElement;var esw=0,eow=0,bsw=0,bow=0,esh=0,eoh=0,bsh=0,boh=0;if(e){esw=e.scrollWidth;eow=e.offsetWidth;esh=e.scrollHeight;eoh=e.offsetHeight;}if(b){bsw=b.scrollWidth;bow=b.offsetWidth;bsh=b.scrollHeight;boh=b.offsetHeight;}return{w:Math.max(esw,eow,bsw,bow),h:Math.max(esh,eoh,bsh,boh)};}function xEach(c,f,s){var l=c.length;for(var i=(s||0);i<l;i++){f(c[i],i,l);}};function xEachUntilReturn(c,f,s){var r,l=c.length;for(var i=(s||0);i<l;i++){r=f(c[i],i,l);if(r!==undefined)break;}return r;};function xEditable(container,trigger){var editElement=null;var container=xGetElementById(container);var trigger=xGetElementById(trigger);var newID=container.id+"_edit";xAddEventListener(container,'click',BeginEdit);function BeginEdit(){if(!editElement){editElement=document.createElement('input');editElement.setAttribute('id',newID);editElement.setAttribute('name',newID);editElement.setAttribute('value',container.innerHTML);editElement.setAttribute('autocomplete','OFF');xAddEventListener(editElement,'blur',EndEditClick);xAddEventListener(editElement,'keypress',EndEditKey);container.innerHTML='';container.appendChild(editElement);editElement.select();editElement.focus();}else{editElement.select();editElement.focus();}}function EndEditClick(){container.innerHTML=editElement.value;editElement=null;}function EndEditKey(evt){var e=new xEvent(evt);if(e.keyCode==13){container.innerHTML=editElement.value;editElement=null;}}}function xEllipse(e,xRadius,yRadius,radiusInc,totalTime,startAngle,stopAngle){if(!(e=xGetElementById(e)))return;if(!e.timeout)e.timeout=25;e.xA=xRadius;e.yA=yRadius;e.radiusInc=radiusInc;e.slideTime=totalTime;startAngle*=(Math.PI/180);stopAngle*=(Math.PI/180);var startTime=(startAngle*e.slideTime)/(stopAngle-startAngle);e.stopTime=e.slideTime+startTime;e.B=(stopAngle-startAngle)/e.slideTime;e.xD=xLeft(e)-Math.round(e.xA*Math.cos(e.B*startTime));e.yD=xTop(e)-Math.round(e.yA*Math.sin(e.B*startTime));e.xTarget=Math.round(e.xA*Math.cos(e.B*e.stopTime)+e.xD);e.yTarget=Math.round(e.yA*Math.sin(e.B*e.stopTime)+e.yD);var d=new Date();e.C=d.getTime()-startTime;if(!e.moving){e.stop=false;_xEllipse(e);}}function _xEllipse(e){if(!(e=xGetElementById(e)))return;var now,t,newY,newX;now=new Date();t=now.getTime()-e.C;if(e.stop){e.moving=false;}else if(t<e.stopTime){setTimeout("_xEllipse('"+e.id+"')",e.timeout);if(e.radiusInc){e.xA+=e.radiusInc;e.yA+=e.radiusInc;}newX=Math.round(e.xA*Math.cos(e.B*t)+e.xD);newY=Math.round(e.yA*Math.sin(e.B*t)+e.yD);xMoveTo(e,newX,newY);e.moving=true;}else{if(e.radiusInc){e.xTarget=Math.round(e.xA*Math.cos(e.B*e.slideTime)+e.xD);e.yTarget=Math.round(e.yA*Math.sin(e.B*e.slideTime)+e.yD);}xMoveTo(e,e.xTarget,e.yTarget);e.moving=false;if(e.onslideend)e.onslideend();}}function xEnableDrag(id,fS,fD,fE){var mx=0,my=0,el=xGetElementById(id);if(el){el.xDragEnabled=true;xAddEventListener(el,'mousedown',dragStart,false);}function dragStart(e){if(el.xDragEnabled){var ev=new xEvent(e);xPreventDefault(e);mx=ev.pageX;my=ev.pageY;xAddEventListener(document,'mousemove',drag,false);xAddEventListener(document,'mouseup',dragEnd,false);if(fS){fS(el,ev.pageX,ev.pageY,ev);}}}function drag(e){var ev,dx,dy;xPreventDefault(e);ev=new xEvent(e);dx=ev.pageX-mx;dy=ev.pageY-my;mx=ev.pageX;my=ev.pageY;if(fD){fD(el,dx,dy,ev);}else{xMoveTo(el,el.offsetLeft+dx,el.offsetTop+dy);}}function dragEnd(e){var ev=new xEvent(e);xPreventDefault(e);xRemoveEventListener(document,'mouseup',dragEnd,false);xRemoveEventListener(document,'mousemove',drag,false);if(fE){fE(el,ev.pageX,ev.pageY,ev);}if(xEnableDrag.drop){xEnableDrag.drop(el,ev);}}}xEnableDrag.drops=[];function xEvalTextarea(){var f=document.createElement('FORM');f.onsubmit='return false';var t=document.createElement('TEXTAREA');t.id='xDebugTA';t.name='xDebugTA';t.rows='20';t.cols='60';var b=document.createElement('INPUT');b.type='button';b.value='Evaluate';b.onclick=function(){eval(this.form.xDebugTA.value);};f.appendChild(t);f.appendChild(b);document.body.appendChild(f);}function xFindAfterByClassName(ele,clsName){var re=new RegExp('\\b'+clsName+'\\b','i');return xWalkToLast(ele,function(n){if(n.className.search(re)!=-1)return n;});}function xFindBeforeByClassName(ele,clsName){var re=new RegExp('\\b'+clsName+'\\b','i');return xWalkToFirst(ele,function(n){if(n.className.search(re)!=-1)return n;});}function xFirstChild(e,t){e=xGetElementById(e);var c=e?e.firstChild:null;while(c){if(c.nodeType==1&&(!t||c.nodeName.toLowerCase()==t.toLowerCase())){break;}c=c.nextSibling;}return c;}function xGetCSSRules(ss){return ss.rules?ss.rules:ss.cssRules;}function xGetComputedStyle(e,p,i){if(!(e=xGetElementById(e)))return null;var s,v='undefined',dv=document.defaultView;if(dv&&dv.getComputedStyle){s=dv.getComputedStyle(e,'');if(s)v=s.getPropertyValue(p);}else if(e.currentStyle){v=e.currentStyle[xCamelize(p)];}else return null;return i?(parseInt(v)||0):v;}function xGetCookie(name){var value=null,search=name+"=";if(document.cookie.length>0){var offset=document.cookie.indexOf(search);if(offset!=-1){offset+=search.length;var end=document.cookie.indexOf(";",offset);if(end==-1)end=document.cookie.length;value=unescape(document.cookie.substring(offset,end));}}return value;}function xGetEleAtPoint(x,y){var he=null,z,hz=0;var i,list=xGetElementsByTagName('*');for(i=0;i<list.length;++i){if(xHasPoint(list[i],x,y)){z=parseInt(list[i].style.zIndex);z=z||0;if(z>=hz){hz=z;he=list[i];}}}return he;}function xGetElePropsArray(ele,eleName){var u='undefined';var i=0,a=new Array();nv('Element',eleName);nv('id',(xDef(ele.id)?ele.id:u));nv('tagName',(xDef(ele.tagName)?ele.tagName:u));nv('xWidth()',xWidth(ele));nv('style.width',(xDef(ele.style)&&xDef(ele.style.width)?ele.style.width:u));nv('offsetWidth',(xDef(ele.offsetWidth)?ele.offsetWidth:u));nv('scrollWidth',(xDef(ele.offsetWidth)?ele.offsetWidth:u));nv('clientWidth',(xDef(ele.clientWidth)?ele.clientWidth:u));nv('xHeight()',xHeight(ele));nv('style.height',(xDef(ele.style)&&xDef(ele.style.height)?ele.style.height:u));nv('offsetHeight',(xDef(ele.offsetHeight)?ele.offsetHeight:u));nv('scrollHeight',(xDef(ele.offsetHeight)?ele.offsetHeight:u));nv('clientHeight',(xDef(ele.clientHeight)?ele.clientHeight:u));nv('xLeft()',xLeft(ele));nv('style.left',(xDef(ele.style)&&xDef(ele.style.left)?ele.style.left:u));nv('offsetLeft',(xDef(ele.offsetLeft)?ele.offsetLeft:u));nv('style.pixelLeft',(xDef(ele.style)&&xDef(ele.style.pixelLeft)?ele.style.pixelLeft:u));nv('xTop()',xTop(ele));nv('style.top',(xDef(ele.style)&&xDef(ele.style.top)?ele.style.top:u));nv('offsetTop',(xDef(ele.offsetTop)?ele.offsetTop:u));nv('style.pixelTop',(xDef(ele.style)&&xDef(ele.style.pixelTop)?ele.style.pixelTop:u));nv('','');nv('xGetComputedStyle()','');nv('top');nv('right');nv('bottom');nv('left');nv('width');nv('height');nv('color');nv('background-color');nv('font-family');nv('font-size');nv('text-align');nv('line-height');nv('content');nv('float');nv('clear');nv('margin');nv('padding');nv('padding-top');nv('padding-right');nv('padding-bottom');nv('padding-left');nv('border-top-width');nv('border-right-width');nv('border-bottom-width');nv('border-left-width');nv('position');nv('overflow');nv('visibility');nv('display');nv('z-index');nv('clip');nv('cursor');return a;function nv(name,value){a[i]=new Object();a[i].name=name;a[i].value=typeof(value)=='undefined'?xGetComputedStyle(ele,name):value;++i;}}function xGetElePropsString(ele,eleName,newLine){var s='',a=xGetElePropsArray(ele,eleName);for(var i=0;i<a.length;++i){s+=a[i].name+' = '+a[i].value+(newLine||'\n');}return s;}function xGetElementById(e){if(typeof(e)=='string'){if(document.getElementById)e=document.getElementById(e);else if(document.all)e=document.all[e];else e=null;}return e;}function xGetElementsByAttribute(sTag,sAtt,sRE,fn){var a,list,found=new Array(),re=new RegExp(sRE,'i');list=xGetElementsByTagName(sTag);for(var i=0;i<list.length;++i){a=list[i].getAttribute(sAtt);if(!a){a=list[i][sAtt];}if(typeof(a)=='string'&&a.search(re)!=-1){found[found.length]=list[i];if(fn)fn(list[i]);}}return found;}function xGetElementsByClassName(c,p,t,f){var r=new Array();var re=new RegExp("(^|\\s)"+c+"(\\s|$)");var e=xGetElementsByTagName(t,p);for(var i=0;i<e.length;++i){if(re.test(e[i].className)){r[r.length]=e[i];if(f)f(e[i]);}}return r;}function xGetElementsByTagName(t,p){var list=null;t=t||'*';p=p||document;if(typeof p.getElementsByTagName!='undefined'){list=p.getElementsByTagName(t);if(t=='*'&&(!list||!list.length))list=p.all;}else{if(t=='*')list=p.all;else if(p.all&&p.all.tags)list=p.all.tags(t);}return list||new Array();}function xGetStyleSheetFromLink(cl){return cl.styleSheet?cl.styleSheet:cl.sheet;}function xGetURLArguments(){var idx=location.href.indexOf('?');var params=new Array();if(idx!=-1){var pairs=location.href.substring(idx+1,location.href.length).split('&');for(var i=0;i<pairs.length;i++){nameVal=pairs[i].split('=');params[i]=nameVal[1];params[nameVal[0]]=nameVal[1];}}return params;}function xHasClass(e,c){e=xGetElementById(e);if(!e||e.className=='')return false;var re=new RegExp("(^|\\s)"+c+"(\\s|$)");return re.test(e.className);}function xHasPoint(e,x,y,t,r,b,l){if(!xNum(t)){t=r=b=l=0;}else if(!xNum(r)){r=b=l=t;}else if(!xNum(b)){l=r;b=t;}var eX=xPageX(e),eY=xPageY(e);return(x>=eX+l&&x<=eX+xWidth(e)-r&&y>=eY+t&&y<=eY+xHeight(e)-b);}function xHasStyleSelector(ss){if(!xHasStyleSheets())return undefined;function testSelector(cr){return cr.selectorText.indexOf(ss)>=0;}return xTraverseDocumentStyleSheets(testSelector);}function xHasStyleSheets(){return document.styleSheets?true:false;}function xHeight(e,h){if(!(e=xGetElementById(e)))return 0;if(xNum(h)){if(h<0)h=0;else h=Math.round(h);}else h=-1;var css=xDef(e.style);if(e==document||e.tagName.toLowerCase()=='html'||e.tagName.toLowerCase()=='body'){h=xClientHeight();}else if(css&&xDef(e.offsetHeight)&&xStr(e.style.height)){if(h>=0){var pt=0,pb=0,bt=0,bb=0;if(document.compatMode=='CSS1Compat'){var gcs=xGetComputedStyle;pt=gcs(e,'padding-top',1);if(pt!==null){pb=gcs(e,'padding-bottom',1);bt=gcs(e,'border-top-width',1);bb=gcs(e,'border-bottom-width',1);}else if(xDef(e.offsetHeight,e.style.height)){e.style.height=h+'px';pt=e.offsetHeight-h;}}h-=(pt+pb+bt+bb);if(isNaN(h)||h<0)return;else e.style.height=h+'px';}h=e.offsetHeight;}else if(css&&xDef(e.style.pixelHeight)){if(h>=0)e.style.pixelHeight=h;h=e.style.pixelHeight;}return h;}function xHex(n,digits,prefix){var p='',n=Math.ceil(n);if(prefix)p=prefix;n=n.toString(16);for(var i=0;i<digits-n.length;++i){p+='0';}return p+n;}function xHide(e){return xVisibility(e,0);}function xImgAsyncWait(fnStatus,fnInit,fnError,sErrorImg,sAbortImg,imgArray){var i,imgs=imgArray||document.images;for(i=0;i<imgs.length;++i){imgs[i].onload=imgOnLoad;imgs[i].onerror=imgOnError;imgs[i].onabort=imgOnAbort;}xIAW.fnStatus=fnStatus;xIAW.fnInit=fnInit;xIAW.fnError=fnError;xIAW.imgArray=imgArray;xIAW();function imgOnLoad(){this.wasLoaded=true;}function imgOnError(){if(sErrorImg&&!this.wasError){this.src=sErrorImg;}this.wasError=true;}function imgOnAbort(){if(sAbortImg&&!this.wasAborted){this.src=sAbortImg;}this.wasAborted=true;}}function xIAW(){var me=arguments.callee;if(!me){return;}var i,imgs=me.imgArray?me.imgArray:document.images;var c=0,e=0,a=0,n=imgs.length;for(i=0;i<n;++i){if(imgs[i].wasError){++e;}else if(imgs[i].wasAborted){++a;}else if(imgs[i].complete||imgs[i].wasLoaded){++c;}}if(me.fnStatus){me.fnStatus(n,c,e,a);}if(c+e+a==n){if((e||a)&&me.fnError){me.fnError(n,c,e,a);}else if(me.fnInit){me.fnInit();}}else setTimeout('xIAW()',250);}function xImgRollSetup(p,s,x){var ele,id;for(var i=3;i<arguments.length;++i){id=arguments[i];if(ele=xGetElementById(id)){ele.xIOU=p+id+x;ele.xIOO=new Image();ele.xIOO.src=p+id+s+x;ele.onmouseout=imgOnMouseout;ele.onmouseover=imgOnMouseover;}}function imgOnMouseout(e){if(this.xIOU){this.src=this.xIOU;}}function imgOnMouseover(e){if(this.xIOO&&this.xIOO.complete){this.src=this.xIOO.src;}}}function xInnerHtml(e,h){if(!(e=xGetElementById(e))||!xStr(e.innerHTML))return null;var s=e.innerHTML;if(xStr(h)){e.innerHTML=h;}return s;}function xInsertRule(ss,sel,rule,idx){if(!(ss=xGetElementById(ss)))return false;if(ss.insertRule){ss.insertRule(sel+"{"+rule+"}",(idx>=0?idx:ss.cssRules.length));}else if(ss.addRule){ss.addRule(sel,rule,idx);}else return false;return true;}function xIntersection(e1,e2,o){var ix1,iy2,iw,ih,intersect=true;var e1x1=xPageX(e1);var e1x2=e1x1+xWidth(e1);var e1y1=xPageY(e1);var e1y2=e1y1+xHeight(e1);var e2x1=xPageX(e2);var e2x2=e2x1+xWidth(e2);var e2y1=xPageY(e2);var e2y2=e2y1+xHeight(e2);if(e1x1<=e2x1){ix1=e2x1;if(e1x2<e2x1)intersect=false;else iw=Math.min(e1x2,e2x2)-e2x1;}else{ix1=e1x1;if(e2x2<e1x1)intersect=false;else iw=Math.min(e1x2,e2x2)-e1x1;}if(e1y2>=e2y2){iy2=e2y2;if(e1y1>e2y2)intersect=false;else ih=e2y2-Math.max(e1y1,e2y1);}else{iy2=e1y2;if(e2y1>e1y2)intersect=false;else ih=e1y2-Math.max(e1y1,e2y1);}if(intersect&&typeof(o)=='object'){o.x=ix1;o.y=iy2-ih;o.w=iw;o.h=ih;}return intersect;}function xLeft(e,iX){if(!(e=xGetElementById(e)))return 0;var css=xDef(e.style);if(css&&xStr(e.style.left)){if(xNum(iX))e.style.left=iX+'px';else{iX=parseInt(e.style.left);if(isNaN(iX))iX=xGetComputedStyle(e,'left',1);if(isNaN(iX))iX=0;}}else if(css&&xDef(e.style.pixelLeft)){if(xNum(iX))e.style.pixelLeft=iX;else iX=e.style.pixelLeft;}return iX;}function xLinearScale(val,iL,iH,oL,oH){var m=(oH-oL)/(iH-iL);var b=oL-(iL*m);return m*val+b;}function xLoadScript(url){if(document.createElement&&document.getElementsByTagName){var s=document.createElement('script');var h=document.getElementsByTagName('head');if(s&&h.length){s.src=url;h[0].appendChild(s);}}}function xMoveTo(e,x,y){xLeft(e,x);xTop(e,y);}function xName(e){try{if(!e)return e;else if(e.id&&e.id!="")return e.id;else if(e.name&&e.name!="")return e.name;else if(e.nodeName&&e.nodeName!="")return e.nodeName;else if(e.tagName&&e.tagName!="")return e.tagName;else return e;}catch(err){return e;}}function xNextSib(e,t){e=xGetElementById(e);var s=e?e.nextSibling:null;while(s){if(s.nodeType==1&&(!t||s.nodeName.toLowerCase()==t.toLowerCase())){break;}s=s.nextSibling;}return s;}function xNum(){for(var i=0;i<arguments.length;++i){if(isNaN(arguments[i])||typeof(arguments[i])!='number')return false;}return true;}function xOffsetLeft(e){if(!(e=xGetElementById(e)))return 0;if(xDef(e.offsetLeft))return e.offsetLeft;else return 0;}function xOffsetTop(e){if(!(e=xGetElementById(e)))return 0;if(xDef(e.offsetTop))return e.offsetTop;else return 0;}function xOpacity(e,o){var set=xDef(o);if(!(e=xGetElementById(e)))return 2;if(xStr(e.style.opacity)){if(set)e.style.opacity=o+'';else o=parseFloat(e.style.opacity);}else if(xStr(e.style.filter)){if(set)e.style.filter='alpha(opacity='+(100*o)+')';else if(e.filters&&e.filters.alpha){o=e.filters.alpha.opacity/100;}}else if(xStr(e.style.MozOpacity)){if(set)e.style.MozOpacity=o+'';else o=parseFloat(e.style.MozOpacity);}else if(xStr(e.style.KhtmlOpacity)){if(set)e.style.KhtmlOpacity=o+'';else o=parseFloat(e.style.KhtmlOpacity);}return isNaN(o)?1:o;}function xPad(s,len,c,left){if(typeof s!='string')s=s+'';if(left){for(var i=s.length;i<len;++i)s=c+s;}else{for(var i=s.length;i<len;++i)s+=c;}return s;}function xPageX(e){var x=0;e=xGetElementById(e);while(e){if(xDef(e.offsetLeft))x+=e.offsetLeft;e=xDef(e.offsetParent)?e.offsetParent:null;}return x;}function xPageY(e){var y=0;e=xGetElementById(e);while(e){if(xDef(e.offsetTop))y+=e.offsetTop;e=xDef(e.offsetParent)?e.offsetParent:null;}return y;}function xParaEq(e,xExpr,yExpr,totalTime){if(!(e=xGetElementById(e)))return;e.t=0;e.tStep=.008;if(!e.timeout)e.timeout=25;e.xExpr=xExpr;e.yExpr=yExpr;e.slideTime=totalTime;var d=new Date();e.C=d.getTime();if(!e.moving){e.stop=false;_xParaEq(e);}}function _xParaEq(e){if(!(e=xGetElementById(e)))return;var now=new Date();var et=now.getTime()-e.C;e.t+=e.tStep;t=e.t;if(e.stop){e.moving=false;}else if(!e.slideTime||et<e.slideTime){setTimeout("_xParaEq('"+e.id+"')",e.timeout);var p=e.offsetParent,centerX,centerY;centerX=(xWidth(p)/2)-(xWidth(e)/2);centerY=(xHeight(p)/2)-(xHeight(e)/2);e.xTarget=Math.round((eval(e.xExpr)*centerX)+centerX)+xScrollLeft(p);e.yTarget=Math.round((eval(e.yExpr)*centerY)+centerY)+xScrollTop(p);xMoveTo(e,e.xTarget,e.yTarget);e.moving=true;}else{e.moving=false;if(e.onslideend)e.onslideend();}}function xParent(e,bNode){if(!(e=xGetElementById(e)))return null;var p=null;if(!bNode&&xDef(e.offsetParent))p=e.offsetParent;else if(xDef(e.parentNode))p=e.parentNode;else if(xDef(e.parentElement))p=e.parentElement;return p;}function xParentChain(e,delim,bNode){if(!(e=xGetElementById(e)))return;var lim=100,s="",d=delim||"\n";while(e){s+=xName(e)+', ofsL:'+e.offsetLeft+', ofsT:'+e.offsetTop+d;e=e.parentNode;if(!lim--)break;}return s;}function xParentNode(ele,n){while(ele&&n--){ele=ele.parentNode;}return ele;}function xParseColor(c){var o={};if(xStr(c)){if(c.indexOf('rgb')!=-1){var a=c.match(/(\d*)\s*,\s*(\d*)\s*,\s*(\d*)/);o.r=parseInt(a[1])||0;o.g=parseInt(a[2])||0;o.b=parseInt(a[3])||0;o.n=(o.r<<16)|(o.g<<8)|o.b;}else{pn(parseInt(c.substr(1),16));}}else{pn(c);}o.s=xHex(o.n,6,'#');return o;function pn(n){o.n=n||0;o.r=(o.n&0xFF0000)>>16;o.g=(o.n&0xFF00)>>8;o.b=o.n&0xFF;}}function xPrevSib(e,t){e=xGetElementById(e);var s=e?e.previousSibling:null;while(s){if(s.nodeType==1&&(!t||s.nodeName.toLowerCase()==t.toLowerCase())){break;}s=s.previousSibling;}return s;}function xPreventDefault(e){if(e&&e.preventDefault)e.preventDefault();else if(window.event)window.event.returnValue=false;}function xRad(deg){return deg*(Math.PI/180);}function xRemoveClass(e,c){if(!(e=xGetElementById(e)))return false;e.className=e.className.replace(new RegExp("(^|\\s)"+c+"(\\s|$)",'g'),function(str,p1,p2){return(p1==' '&&p2==' ')?' ':'';});return true;}function xRemoveEventListener(e,eT,eL,cap){if(!(e=xGetElementById(e)))return;eT=eT.toLowerCase();if(e.removeEventListener)e.removeEventListener(eT,eL,cap||false);else if(e.detachEvent)e.detachEvent('on'+eT,eL);else e['on'+eT]=null;}function xResizeTo(e,w,h){xWidth(e,w);xHeight(e,h);}function xRgbToHex(r,g,b){return xHex((r<<16)|(g<<8)|b,6,'#');}function xScrollLeft(e,bWin){var offset=0;if(!xDef(e)||bWin||e==document||e.tagName.toLowerCase()=='html'||e.tagName.toLowerCase()=='body'){var w=window;if(bWin&&e)w=e;if(w.document.documentElement&&w.document.documentElement.scrollLeft)offset=w.document.documentElement.scrollLeft;else if(w.document.body&&xDef(w.document.body.scrollLeft))offset=w.document.body.scrollLeft;}else{e=xGetElementById(e);if(e&&xNum(e.scrollLeft))offset=e.scrollLeft;}return offset;}function xScrollTop(e,bWin){var offset=0;if(!xDef(e)||bWin||e==document||e.tagName.toLowerCase()=='html'||e.tagName.toLowerCase()=='body'){var w=window;if(bWin&&e)w=e;if(w.document.documentElement&&w.document.documentElement.scrollTop)offset=w.document.documentElement.scrollTop;else if(w.document.body&&xDef(w.document.body.scrollTop))offset=w.document.body.scrollTop;}else{e=xGetElementById(e);if(e&&xNum(e.scrollTop))offset=e.scrollTop;}return offset;}function xSetCookie(name,value,expire,path){document.cookie=name+"="+escape(value)+((!expire)?"":("; expires="+expire.toGMTString()))+"; path="+((!path)?"/":path);}function xSetIETitle(){var ua=navigator.userAgent.toLowerCase();if(!window.opera&&navigator.vendor!='KDE'&&document.all&&ua.indexOf('msie')!=-1&&!document.layers){var i=ua.indexOf('msie')+1;var v=ua.substr(i+4,3);document.title='IE '+v+' - '+document.title;}}function xShow(e){return xVisibility(e,1);}function xSlideCornerTo(e,corner,targetX,targetY,totalTime){if(!(e=xGetElementById(e)))return;if(!e.timeout)e.timeout=25;e.xT=targetX;e.yT=targetY;e.slideTime=totalTime;e.corner=corner.toLowerCase();e.stop=false;switch(e.corner){case'nw':e.xA=e.xT-xLeft(e);e.yA=e.yT-xTop(e);e.xD=xLeft(e);e.yD=xTop(e);break;case'sw':e.xA=e.xT-xLeft(e);e.yA=e.yT-(xTop(e)+xHeight(e));e.xD=xLeft(e);e.yD=xTop(e)+xHeight(e);break;case'ne':e.xA=e.xT-(xLeft(e)+xWidth(e));e.yA=e.yT-xTop(e);e.xD=xLeft(e)+xWidth(e);e.yD=xTop(e);break;case'se':e.xA=e.xT-(xLeft(e)+xWidth(e));e.yA=e.yT-(xTop(e)+xHeight(e));e.xD=xLeft(e)+xWidth(e);e.yD=xTop(e)+xHeight(e);break;default:alert("xSlideCornerTo: Invalid corner");return;}if(e.slideLinear)e.B=1/e.slideTime;else e.B=Math.PI/(2*e.slideTime);var d=new Date();e.C=d.getTime();if(!e.moving)_xSlideCornerTo(e);}function _xSlideCornerTo(e){if(!(e=xGetElementById(e)))return;var now,seX,seY;now=new Date();t=now.getTime()-e.C;if(e.stop){e.moving=false;e.stop=false;return;}else if(t<e.slideTime){setTimeout("_xSlideCornerTo('"+e.id+"')",e.timeout);s=e.B*t;if(!e.slideLinear)s=Math.sin(s);newX=Math.round(e.xA*s+e.xD);newY=Math.round(e.yA*s+e.yD);}else{newX=e.xT;newY=e.yT;}seX=xLeft(e)+xWidth(e);seY=xTop(e)+xHeight(e);switch(e.corner){case'nw':xMoveTo(e,newX,newY);xResizeTo(e,seX-xLeft(e),seY-xTop(e));break;case'sw':if(e.xT!=xLeft(e)){xLeft(e,newX);xWidth(e,seX-xLeft(e));}xHeight(e,newY-xTop(e));break;case'ne':xWidth(e,newX-xLeft(e));if(e.yT!=xTop(e)){xTop(e,newY);xHeight(e,seY-xTop(e));}break;case'se':xWidth(e,newX-xLeft(e));xHeight(e,newY-xTop(e));break;default:e.stop=true;}e.moving=true;if(t>=e.slideTime){e.moving=false;if(e.onslideend)e.onslideend();}}function xSlideTo(e,x,y,uTime){if(!(e=xGetElementById(e)))return;if(!e.timeout)e.timeout=25;e.xTarget=x;e.yTarget=y;e.slideTime=uTime;e.stop=false;e.yA=e.yTarget-xTop(e);e.xA=e.xTarget-xLeft(e);if(e.slideLinear)e.B=1/e.slideTime;else e.B=Math.PI/(2*e.slideTime);e.yD=xTop(e);e.xD=xLeft(e);var d=new Date();e.C=d.getTime();if(!e.moving)_xSlideTo(e);}function _xSlideTo(e){if(!(e=xGetElementById(e)))return;var now,s,t,newY,newX;now=new Date();t=now.getTime()-e.C;if(e.stop){e.moving=false;}else if(t<e.slideTime){setTimeout("_xSlideTo('"+e.id+"')",e.timeout);s=e.B*t;if(!e.slideLinear)s=Math.sin(s);newX=Math.round(e.xA*s+e.xD);newY=Math.round(e.yA*s+e.yD);xMoveTo(e,newX,newY);e.moving=true;}else{xMoveTo(e,e.xTarget,e.yTarget);e.moving=false;if(e.onslideend)e.onslideend();}}function xSmartLoad(what,url){var loadedBefore=false;var s;for(var i=0;i<xSmartLoad.list.length;i++){if(xSmartLoad.list[i].url==url){loadedBefore=true;s=xSmartLoad.list[i].node;break;}}if(document.createElement&&document.getElementsByTagName&&!loadedBefore){s=document.createElement(what);var h=document.getElementsByTagName('head');if(s&&h.length){switch(what.toUpperCase()){case'SCRIPT':s.src=url;break;case'LINK':s.rel='stylesheet';s.type='text/css';s.href=url;break;default:s=null;break;}h[0].appendChild(s);xSmartLoad.list[xSmartLoad.list.length]={url:url,node:s};}}return s;}xSmartLoad.list=[];function xSmartLoad2(what,url1,url2,url3,etc){var u,i,j,s,h,loaded,c=0,e=what.toLowerCase();if(document.createElement&&document.getElementsByTagName){h=document.getElementsByTagName('head');if(h.length&&h[0].appendChild){for(i=1;i<arguments.length;++i){loaded=false;u=arguments[i];for(j=0;j<xSmartLoad2.list.length;j++){if(xSmartLoad2.list[j]==u){loaded=true;break;}}if(!loaded){s=document.createElement(e);if(s){switch(e){case'script':s.type='text/javascript';s.src=u;break;case'link':s.rel='stylesheet';s.type='text/css';s.href=u;break;default:continue;}h[0].appendChild(s);xSmartLoad2.list[xSmartLoad2.list.length]=u;++c;}}}}}return c;}xSmartLoad2.list=[];function xSmartLoadScript(url){xSmartLoad('script',url);}function xStopPropagation(evt){if(evt&&evt.stopPropagation)evt.stopPropagation();else if(window.event)window.event.cancelBubble=true;}function xStr(s){for(var i=0;i<arguments.length;++i){if(typeof(arguments[i])!='string')return false;}return true;}function xStrEndsWith(s,end){if(!xStr(s,end))return false;var l=s.length;var r=l-end.length;if(r>0)return s.substring(r,l)==end;return s==end;}function xStrReplaceEnd(s,newEnd){if(!xStr(s,newEnd))return s;var l=s.length;var r=l-newEnd.length;if(r>0)return s.substring(0,r)+newEnd;return newEnd;}function xStrStartsWith(s,beg){if(!xStr(s,beg))return false;var l=s.length;var r=beg.length;if(r>l)return false;if(r<l)return s.substring(0,r)==beg;return s==beg;}function xStyle(sProp,sVal){var i,e;for(i=2;i<arguments.length;++i){e=xGetElementById(arguments[i]);if(e.style){try{e.style[sProp]=sVal;}catch(err){e.style[sProp]='';}}}}function xTableCellVisibility(bShow,sec,nRow,nCol){sec=xGetElementById(sec);if(sec&&nRow<sec.rows.length&&nCol<sec.rows[nRow].cells.length){sec.rows[nRow].cells[nCol].style.visibility=bShow?'visible':'hidden';}}function xTableColDisplay(bShow,sec,nCol){var r;sec=xGetElementById(sec);if(sec&&nCol<sec.rows[0].cells.length){for(r=0;r<sec.rows.length;++r){sec.rows[r].cells[nCol].style.display=bShow?'':'none';}}}function xTableIterate(sec,fnCallback,data){var r,c;sec=xGetElementById(sec);if(!sec||!fnCallback){return;}for(r=0;r<sec.rows.length;++r){if(false==fnCallback(sec.rows[r],true,r,c,data)){return;}for(c=0;c<sec.rows[r].cells.length;++c){if(false==fnCallback(sec.rows[r].cells[c],false,r,c,data)){return;}}}}function xTableRowDisplay(bShow,sec,nRow){sec=xGetElementById(sec);if(sec&&nRow<sec.rows.length){sec.rows[nRow].style.display=bShow?'':'none';}}function xTableSync(sT1Id,sT2Id,sEvent,fn){var t1=xGetElementById(sT1Id);var t2=xGetElementById(sT2Id);sEvent='on'+sEvent.toLowerCase();t1[sEvent]=t2[sEvent]=function(e){e=e||window.event;var t=e.target||e.srcElement;while(t&&t.nodeName.toLowerCase()!='td'){t=t.parentNode;}if(t){var r=t.parentNode.sectionRowIndex,c=t.cellIndex;var tbl=xGetElementById(this.id==sT1Id?sT2Id:sT1Id);fn(t,tbl.rows[r].cells[c]);}};t1=t2=null;}function xTimes(n,f,s){s=s||0;n=n+s;for(var i=s;i<n;i++)f(i);};function xToggleClass(e,c){if(!(e=xGetElementById(e)))return null;if(!xRemoveClass(e,c)&&!xAddClass(e,c))return false;return true;}function xTop(e,iY){if(!(e=xGetElementById(e)))return 0;var css=xDef(e.style);if(css&&xStr(e.style.top)){if(xNum(iY))e.style.top=iY+'px';else{iY=parseInt(e.style.top);if(isNaN(iY))iY=xGetComputedStyle(e,'top',1);if(isNaN(iY))iY=0;}}else if(css&&xDef(e.style.pixelTop)){if(xNum(iY))e.style.pixelTop=iY;else iY=e.style.pixelTop;}return iY;}function xTraverseDocumentStyleSheets(cb){var ssList=document.styleSheets;if(!ssList)return undefined;for(i=0;i<ssList.length;i++){var ss=ssList[i];if(!ss)continue;if(xTraverseStyleSheet(ss,cb))return true;}return false;}function xTraverseStyleSheet(ss,cb){if(!ss)return false;var rls=xGetCSSRules(ss);if(!rls)return undefined;var result;for(var j=0;j<rls.length;j++){var cr=rls[j];if(cr.selectorText){result=cb(cr);if(result)return true;}if(cr.type&&cr.type==3&&cr.styleSheet)xTraverseStyleSheet(cr.styleSheet,cb);}if(ss.imports){for(var j=0;j<ss.imports.length;j++){if(xTraverseStyleSheet(ss.imports[j],cb))return true;}}return false;}function xTrim(s){return s.replace(/^\s+|\s+$/g,'');}function xVisibility(e,bShow){if(!(e=xGetElementById(e)))return null;if(e.style&&xDef(e.style.visibility)){if(xDef(bShow))e.style.visibility=bShow?'visible':'hidden';return e.style.visibility;}return null;}function xWalkToFirst(oNode,fnVisit,skip,data){var r=null;while(oNode){if(oNode.nodeType==1&&oNode!=skip){r=fnVisit(oNode,data);if(r)return r;}var n=oNode;while(n=n.previousSibling){if(n!=skip){r=xWalkTreeRev(n,fnVisit,skip,data);if(r)return r;}}oNode=oNode.parentNode;}return r;}function xWalkToLast(oNode,fnVisit,skip,data){var r=null;if(oNode){r=xWalkTree2(oNode,fnVisit,skip,data);if(r)return r;while(oNode){var n=oNode;while(n=n.nextSibling){if(n!=skip){r=xWalkTree2(n,fnVisit,skip,data);if(r)return r;}}oNode=oNode.parentNode;}}return r;}function xWalkTree(n,f){f(n);for(var c=n.firstChild;c;c=c.nextSibling){if(c.nodeType==1)xWalkTree(c,f);}}function xWalkTree2(oNode,fnVisit,skip,data){var r=null;if(oNode){if(oNode.nodeType==1&&oNode!=skip){r=fnVisit(oNode,data);if(r)return r;}for(var c=oNode.firstChild;c;c=c.nextSibling){if(c!=skip)r=xWalkTree2(c,fnVisit,skip,data);if(r)return r;}}return r;}function xWalkTree3(n,f,d,l,b){if(typeof l=='undefined')l=0;if(typeof b=='undefined')b=0;var v=f(n,l,b,d);if(!v)return 0;if(v==1){for(var c=n.firstChild;c;c=c.nextSibling){if(c.nodeType==1){if(!l)++b;if(!xWalkTree3(c,f,d,l+1,b))return 0;}}}return 1;}function xWalkTreeRev(oNode,fnVisit,skip,data){var r=null;if(oNode){if(oNode.nodeType==1&&oNode!=skip){r=fnVisit(oNode,data);if(r)return r;}for(var c=oNode.lastChild;c;c=c.previousSibling){if(c!=skip)r=xWalkTreeRev(c,fnVisit,skip,data);if(r)return r;}}return r;}function xWalkUL(pu,d,f,lv){var r,cu,li=xFirstChild(pu);if(!lv){lv=0;}while(li){cu=xFirstChild(li,'ul');r=f(pu,li,cu,d,lv);if(cu){if(!r||!xWalkUL(cu,d,f,lv+1)){return 0;};}li=xNextSib(li);}return 1;}function xWidth(e,w){if(!(e=xGetElementById(e)))return 0;if(xNum(w)){if(w<0)w=0;else w=Math.round(w);}else w=-1;var css=xDef(e.style);if(e==document||e.tagName.toLowerCase()=='html'||e.tagName.toLowerCase()=='body'){w=xClientWidth();}else if(css&&xDef(e.offsetWidth)&&xStr(e.style.width)){if(w>=0){var pl=0,pr=0,bl=0,br=0;if(document.compatMode=='CSS1Compat'){var gcs=xGetComputedStyle;pl=gcs(e,'padding-left',1);if(pl!==null){pr=gcs(e,'padding-right',1);bl=gcs(e,'border-left-width',1);br=gcs(e,'border-right-width',1);}else if(xDef(e.offsetWidth,e.style.width)){e.style.width=w+'px';pl=e.offsetWidth-w;}}w-=(pl+pr+bl+br);if(isNaN(w)||w<0)return;else e.style.width=w+'px';}w=e.offsetWidth;}else if(css&&xDef(e.style.pixelWidth)){if(w>=0)e.style.pixelWidth=w;w=e.style.pixelWidth;}return w;}var xChildWindow=null;function xWinOpen(sUrl){var features="left=0,top=0,width=600,height=500,location=0,menubar=0,"+"resizable=1,scrollbars=1,status=0,toolbar=0";if(xChildWindow&&!xChildWindow.closed){xChildWindow.location.href=sUrl;}else{xChildWindow=window.open(sUrl,"myWinName",features);}xChildWindow.focus();return false;}var xWinScrollWin=null;function xWinScrollTo(win,x,y,uTime){var e=win;if(!e.timeout)e.timeout=25;var st=xScrollTop(e,1);var sl=xScrollLeft(e,1);e.xTarget=x;e.yTarget=y;e.slideTime=uTime;e.stop=false;e.yA=e.yTarget-st;e.xA=e.xTarget-sl;if(e.slideLinear)e.B=1/e.slideTime;else e.B=Math.PI/(2*e.slideTime);e.yD=st;e.xD=sl;var d=new Date();e.C=d.getTime();if(!e.moving){xWinScrollWin=e;_xWinScrollTo();}}function _xWinScrollTo(){var e=xWinScrollWin||window;var now,s,t,newY,newX;now=new Date();t=now.getTime()-e.C;if(e.stop){e.moving=false;}else if(t<e.slideTime){setTimeout("_xWinScrollTo()",e.timeout);s=e.B*t;if(!e.slideLinear)s=Math.sin(s);newX=Math.round(e.xA*s+e.xD);newY=Math.round(e.yA*s+e.yD);e.scrollTo(newX,newY);e.moving=true;}else{e.scrollTo(e.xTarget,e.yTarget);xWinScrollWin=null;e.moving=false;if(e.onslideend)e.onslideend();}}function xZIndex(e,uZ){if(!(e=xGetElementById(e)))return 0;if(e.style&&xDef(e.style.zIndex)){if(xNum(uZ))e.style.zIndex=uZ;uZ=parseInt(e.style.zIndex);}return uZ;}