/* Compiled from X 4.06 with XC 1.01 on 03Nov06 */
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 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();}}xLibrary={version:'4.06',license:'GNU LGPL',url:'http://cross-browser.com/'};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=xParent(e),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 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 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();}}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();}}