<!--

function Delegate(){}
Delegate.create=function(o,f){
var iIRxm=new Array();
var BvsUs=arguments.length;
for(var i=2;i<BvsUs;i++) iIRxm[i-2]=arguments[i];
return function(){
var JDUwo=[].concat(arguments,iIRxm);
f.apply(o,JDUwo);
}
}
Tween=function(obj,prop,func,begin,finish,duration,suffixe){
this.init(obj,prop,func,begin,finish,duration,suffixe)
}
var t=Tween.prototype;
t.obj=new Object();
t.prop='';
t.func=function(t,b,c,d){return c*t/d+b;};
t.begin=0;
t.change=0;
t.prevTime=0;
t.prevPos=0;
t.looping=false;
t.gdQGW=0;
t.rYCKS=0;
t.SnbLR=0;
t.bUvRQ=0;
t.UDwjt=0;
t.QWWLA=0;
t.gsPhU=false;
t.name='';
t.suffixe='';
t.SexGp=new Array();
t.setTime=function(t){
this.prevTime=this.rYCKS;
if(t>this.getDuration()){
if(this.looping){
this.rewind(t-this.gdQGW);
this.update();
this.wkLUa('onMotionLooped',{target:this,type:'onMotionLooped'});
}else{
this.rYCKS=this.gdQGW;
this.update();
this.stop();
this.wkLUa('onMotionFinished',{target:this,type:'onMotionFinished'});
}
}else if(t<0){
this.rewind();
this.update();
}else{
this.rYCKS=t;
this.update();
}
}
t.isRunning=function(){
return this.gsPhU;
}
t.getTime=function(){
return this.rYCKS;
}
t.setDuration=function(d){
this.gdQGW=(d==null||d<=0)?100000:d;
}
t.getDuration=function(){
return this.gdQGW;
}
t.setPosition=function(p){
this.prevPos=this.SnbLR;
var a=this.suffixe!=''?this.suffixe:'';
this.obj[this.prop]=Math.round(p)+a;
this.SnbLR=p;
this.wkLUa('onMotionChanged',{target:this,type:'onMotionChanged'});
}
t.getPosition=function(t){
if(t==undefined) t=this.rYCKS;
return this.func(t,this.begin,this.change,this.gdQGW);
};
t.setFinish=function(f){
this.change=f-this.begin;
};
t.geFinish=function(){
return this.begin+this.change;
};
t.init=function(obj,prop,func,begin,finish,duration,suffixe){
if(!arguments.length) return;
this.SexGp=new Array();
this.addListener(this);
if(suffixe) this.suffixe=suffixe;
this.obj=obj;
this.prop=prop;
this.begin=begin;
this.SnbLR=begin;
this.setDuration(duration);
if(func!=null&&func!=''){
this.func=func;
}
this.setFinish(finish);
}
t.start=function(){
this.rewind();
this.startEnterFrame();
this.wkLUa('onMotionStarted',{target:this,type:'onMotionStarted'});
}
t.rewind=function(t){
this.stop();
this.rYCKS=(t==undefined)?0:t;
this.fixTime();
this.update();
}
t.fforward=function(){
this.rYCKS=this.gdQGW;
this.fixTime();
this.update();
}
t.update=function(){
this.setPosition(this.getPosition(this.rYCKS));
}
t.startEnterFrame=function(){
this.stopEnterFrame();
this.gsPhU=true;
this.onEnterFrame();
}
t.onEnterFrame=function(){
if(this.gsPhU){
this.nextFrame();
wa_timeout(Delegate.create(this,this.onEnterFrame),0);
}
}
t.nextFrame=function(){
this.setTime((this.getTimer()-this.UDwjt)/1000);
}
t.stop=function(){
this.stopEnterFrame();
this.wkLUa('onMotionStopped',{target:this,type:'onMotionStopped'});
}
t.stopEnterFrame=function(){
this.gsPhU=false;
}
t.continueTo=function(finish,duration){
this.begin=this.SnbLR;
this.setFinish(finish);
if(this.gdQGW!=undefined)
this.setDuration(duration);
this.start();
}
t.resume=function(){
this.fixTime();
this.startEnterFrame();
this.wkLUa('onMotionResumed',{target:this,type:'onMotionResumed'});
}
t.yoyo=function(){
this.continueTo(this.begin,this.rYCKS);
}
t.addListener=function(o){
this.removeListener(o);
return this.SexGp.push(o);
}
t.removeListener=function(o){
var a=this.SexGp;
var i=a.length;
while(i--){
if(a[i]==o){
a.splice(i,1);
return true;
}
}
return false;
}
t.wkLUa=function(){
var arr=new Array();
for(var i=0;i<arguments.length;i++){
arr.push(arguments[i])
}
var e=arr.shift();
var a=this.SexGp;
var l=a.length;
for(var i=0;i<l;i++){
if(a[i][e])
a[i][e].apply(a[i],arr);
}
}
t.fixTime=function(){
this.UDwjt=this.getTimer()-this.rYCKS*1000;
}
t.getTimer=function(){
return new Date().getTime()-this.rYCKS;
}
Tween.backEaseIn=function(t,b,c,d,a,p){
if(s==undefined) var s=1.70158;
return c*(t/=d)*t*((s+1)*t-s)+b;
}
Tween.backEaseOut=function(t,b,c,d,a,p){
if(s==undefined) var s=1.70158;
return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;
}
Tween.backEaseInOut=function(t,b,c,d,a,p){
if(s==undefined) var s=1.70158;
if((t/=d/2)<1) return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;
}
Tween.elasticEaseIn=function(t,b,c,d,a,p){
if(t==0) return b;
if((t/=d)==1) return b+c;
if(!p) p=d*.3;
if(!a||a<Math.abs(c)){
a=c;var s=p/4;
}
else
var s=p/(2*Math.PI)*Math.asin(c/a);
return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;
}
Tween.elasticEaseOut=function(t,b,c,d,a,p){
if(t==0) return b;if((t/=d)==1) return b+c;if(!p) p=d*.3;
if(!a||a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);
return(a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b);
}
Tween.elasticEaseInOut=function(t,b,c,d,a,p){
if(t==0) return b;if((t/=d/2)==2) return b+c;if(!p) var p=d*(.3*1.5);
if(!a||a<Math.abs(c)){var a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);
if(t<1) return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;
return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b;
}
Tween.bounceEaseOut=function(t,b,c,d){
if((t/=d)<(1/2.75)){
return c*(7.5625*t*t)+b;
}else if(t<(2/2.75)){
return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b;
}else if(t<(2.5/2.75)){
return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b;
}else{
return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b;
}
}
Tween.bounceEaseIn=function(t,b,c,d){
return c-Tween.bounceEaseOut(d-t,0,c,d)+b;
}
Tween.bounceEaseInOut=function(t,b,c,d){
if(t<d/2) return Tween.bounceEaseIn(t*2,0,c,d)*.5+b;
else return Tween.bounceEaseOut(t*2-d,0,c,d)*.5+c*.5+b;
}
Tween.strongEaseInOut=function(t,b,c,d){
return c*(t/=d)*t*t*t*t+b;
}
Tween.regularEaseIn=function(t,b,c,d){
return c*(t/=d)*t+b;
}
Tween.regularEaseOut=function(t,b,c,d){
return-c*(t/=d)*(t-2)+b;
}
Tween.regularEaseInOut=function(t,b,c,d){
if((t/=d/2)<1) return c/2*t*t+b;
return-c/2*((--t)*(t-2)-1)+b;
}
Tween.strongEaseIn=function(t,b,c,d){
return c*(t/=d)*t*t*t*t+b;
}
Tween.strongEaseOut=function(t,b,c,d){
return c*((t=t/d-1)*t*t*t*t+1)+b;
}
Tween.strongEaseInOut=function(t,b,c,d){
if((t/=d/2)<1) return c/2*t*t*t*t*t+b;
return c/2*((t-=2)*t*t*t*t+2)+b;
}
OpacityTween.prototype=new Tween();
OpacityTween.prototype.constructor=Tween;
OpacityTween.superclass=Tween.prototype;
function OpacityTween(obj,func,LvetS,VYUfi,gdQGW){
this.targetObject=obj;
this.init(new Object(),'a',func,LvetS,VYUfi,gdQGW);
this.onMotionChanged=function(evt){
var v=evt.target.SnbLR;
var t=this.targetObject;
v=Math.round(v*100)/100
t.style['opacity']=v/100;
t.style['-moz-opacity']=v/100;
html_SetOpacity(t,v/100);
}
}
function html_canvas(NhMPa,SlgfT,nvwdg)
{
return "<canvas id='"+NhMPa+"' width='"+SlgfT+"' height='"+nvwdg+"'></canvas>"
}
function WA_canvas(NhMPa,SlgfT,nvwdg)
{
document.write(html_canvas(NhMPa,SlgfT,nvwdg))
}
function NoiJN(EslMB,x0,y0,lx0,ly0)
{
var x=x0+lx0/2;var y=y0+ly0/2;var lx=lx0/2;var ly=ly0/2;var radius=lx0/2;var yRadius=ly0/2;
EslMB.beginPath();
var theta,xrCtrl,yrCtrl,angleMid,px,py,cx,cy;
theta=Math.PI/4;xrCtrl=radius/Math.cos(theta/2);yrCtrl=yRadius/Math.cos(theta/2);var angle=0;
EslMB.moveTo(x+radius,y);
for(var i=0;i<8;i++){
angle+=theta;angleMid=angle-(theta/2);cx=x+Math.cos(angleMid)*xrCtrl;cy=y+Math.sin(angleMid)*yrCtrl;px=x+Math.cos(angle)*radius;py=y+Math.sin(angle)*yRadius;
EslMB.quadraticCurveTo(cx,cy,px,py);
}
}
function QooCw(c,x,y,lx,ly,arc,clowckwise)
{
c.beginPath()
eWaal(c,x,y,lx,ly,arc,clowckwise)
}
function eWaal(c,x,y,lx,ly,arc,clowckwise)
{
if(clowckwise)
{
c.moveTo(x+arc,y);c.lineTo(x+lx-arc,y);c.quadraticCurveTo(x+lx,y,x+lx,y+arc);c.lineTo(x+lx,y+ly-arc);c.quadraticCurveTo(x+lx,y+ly,x+lx-arc,y+ly);c.lineTo(x+arc,y+ly);c.quadraticCurveTo(x,y+ly,x,y+ly-arc);c.lineTo(x,y+arc);c.quadraticCurveTo(x,y,x+arc,y);
return;
}
c.moveTo(x,y+arc);c.lineTo(x,y+ly-arc);c.quadraticCurveTo(x,y+ly,x+arc,y+ly);c.lineTo(x+lx-arc,y+ly);c.quadraticCurveTo(x+lx,y+ly,x+lx,y+ly-arc);c.lineTo(x+lx,y+arc);c.quadraticCurveTo(x+lx,y,x+lx-arc,y);c.lineTo(x+arc,y);c.quadraticCurveTo(x,y,x,y+arc);
}
function isWebKit()
{
if(navigator.userAgent.match(/webkit/i)) return true;
return false;
}
function isMSIE()
{
return BrowserDetect.browser=="Explorer" 
}
function isMSIE8()
{
if((BrowserDetect.browser=="Explorer")&&(BrowserDetect.version==8))
{
return true;
}
return false;
}
function EOMsd()
{
return isWebKit();
}
function isMobileWithoutFlash()
{
return isIPhone();
}
function isMobileBrowser()
{
return isIPhone();
}
function isIPhone()
{
if(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i))
return true;
return false;
}
function wdPOs(lx,ly,parent,id_suffixe)
{
var GhZFA=document.createElement('canvas');GhZFA.width=lx;GhZFA.height=ly;
return GhZFA;
}
function bUNtu(nEpDB)
{
var QtGGL=(-nEpDB+45);
return new Point(Math.cos(QtGGL*(2*Math.PI)/360),Math.sin(QtGGL*(2*Math.PI)/360))
}
function jBnof(c,nEpDB)
{
var offset=bUNtu(nEpDB)
c.shadowOffsetX=2*offset.x;
c.shadowOffsetY=2*offset.y;
c.shadowBlur=4;
}
function WA_over_img_html(lIEMq,lcifc,aSRnJ)
{
if(!lIEMq.src)
{
var bBHvd=lIEMq.getElementsByTagName("IMG")
if(bBHvd.length==1)lIEMq=bBHvd[0]
}
if(lIEMq.src1==undefined)
{
lIEMq.src1=lIEMq.src;
lIEMq.src2=lcifc;
}
if(aSRnJ)
{
lIEMq.src=lIEMq.src2;
}
else
{
lIEMq.src=lIEMq.src1;
}
}
function WA_over_img(id,aSRnJ)
{
var el=document.getElementById(id+"-canvas") 

var lIEMq=(aSRnJ)?el.wa_s_img[1]:el.wa_s_img[0]
WA_img(id,el.wa_lx,el.wa_ly,el.wa_arc,el.wa_bord_siz,el.wa_bord_col,[lIEMq,lIEMq],el.wa_shadow,el.wa_rot,el.wa_reflex,aSRnJ)
}
function DuhwS(NhMPa,lx,ly,arc,side)
{
this.id=NhMPa;
this.lx=lx;
this.ly=ly;
this.arc=arc;
var nSide=side
this.side=nSide
var reflexion=0.25
var sizeReflex=ly*reflexion;
this.decX=0
this.decY=0
this.sX=0;
this.sY=ly-sizeReflex;
this.sLx=lx;
this.sLy=sizeReflex;
this.gradX1=0
this.gradY1=this.sY
this.gradX2=0
this.gradY2=ly 

if(nSide==2)
{
this.decY=1 
}
if(nSide==1)
{
sizeReflex=lx*reflexion;
this.sX=lx-sizeReflex;
this.sY=0;
this.sLx=sizeReflex;
this.sLy=ly;
this.gradX1=this.sX
this.gradY1=0
this.gradX2=lx
this.gradY2=0
this.decX=1
}
if(nSide==0)
{
sizeReflex=ly*reflexion;
this.sX=0;
this.sY=0;
this.sLx=lx;
this.sLy=sizeReflex;
this.gradX1=0
this.gradY1=sizeReflex
this.gradX2=0
this.gradY2=0
this.decY=-1
}
if(nSide==3)
{
sizeReflex=lx*reflexion;
this.sX=0;
this.sY=0;
this.sLx=sizeReflex;
this.sLy=ly;
this.gradX1=sizeReflex
this.gradY1=0
this.gradX2=0
this.gradY2=0
this.decX=-1
}
this.vHwBw=function(canv2)
{
if(isIPhone()) return;
if(/opera/i.test(navigator.userAgent)) return;
if(navigator.userAgent.match(/Firefox/i))
{
var div=document.getElementById(this.id)
if(div.style.MozTransform===undefined) return;
}
var acbux=document.getElementById(this.id+"-reflex")
var eLkkn=acbux.getContext('2d');

var DMBNM=0;
var hgHuD=0;
if(this.side==2)
{
DMBNM=this.lx;
hgHuD=-this.ly*0.75;
}
else
if(this.side==0)
{
DMBNM=this.lx;
}
else
if(this.side==3)
{
DMBNM=0.25*this.lx;
}
else
if(this.side==1)
{
DMBNM=this.lx;
}
eLkkn.translate(DMBNM,hgHuD)
eLkkn.scale(-1,1)
eLkkn.beginPath()
QooCw(eLkkn,1,1,this.lx-2,this.ly-2,this.arc)
eLkkn.clip() 

eLkkn.drawImage(canv2,this.sX,this.sY,this.sLx,this.sLy,this.sX,this.sY,this.sLx,this.sLy);
eLkkn.globalCompositeOperation="destination-out";
var gradient=eLkkn.createLinearGradient(this.gradX1,this.gradY1,this.gradX2,this.gradY2);
gradient.addColorStop(0,"rgba(255, 255, 255, 1)");
gradient.addColorStop(1,"rgba(255, 255, 255, 0.1)");
eLkkn.fillStyle=gradient;
eLkkn.beginPath()
eLkkn.rect(this.sX-this.decX,this.sY-this.decY,this.sLx,this.sLy);
eLkkn.fill();
eLkkn.globalCompositeOperation="source-over";
eLkkn.scale(-1,1)
eLkkn.translate(-DMBNM,-hgHuD) 
}
}
function extractNum(st)
{
var len=st.length
if((len>0)&&(st.substring(len-2,len)=="px"))
{
return wa_evaluate(st.substring(0,len-2))
}
return 0;
}
function aVgVl(c2,lx,ly,inCla,bord_col,arc,arc2)
{
if(inCla>0)
{
c2.beginPath()
c2.fillStyle=bord_col;
c2.beginPath()
QooCw(c2,0,0,lx,ly,arc)
eWaal(c2,inCla,inCla,lx-2*inCla,ly-2*inCla,arc2,true)
c2.fill()
}
}
function serxQ()
{
this.tx=0
this.ty=0
this.rotation=0
}
function mhfha(id,lx,ly,rot,c2,canv2,shadow,matrix)
{
if(navigator.userAgent.match(/Firefox/i)||navigator.userAgent.match(/opera/i))
{
var div=document.getElementById(id)
if(div.style.MozTransform!=undefined) return;
if(matrix==undefined)
{
matrix=new serxQ()
}
div.style.webkitTransformOrigin="0 0"
div.style.webkitTransform="rotate(0deg)";
if(div.style.MozTransform!=undefined)
{
div.style.MozTransform="rotate(0deg)";
div.style.MozTransformOrigin="top left"
}
rot=Math.round(rot/90)*90 
var sCgRY=0;
if(shadow)sCgRY=6
var TnTGC=id+"-canvas"
var el=document.getElementById(TnTGC)
if(div.wa_pos==undefined)
{
div.wa_pos=new Point(extractNum(div.style.left),extractNum(div.style.top))
}
if(div.wa_size==undefined)
{
div.wa_size=new Size(extractNum(div.style.width),extractNum(div.style.height))
}
if(rot==90)
{
html_SetPosition(div,div.wa_pos.x-(ly)-sCgRY,div.wa_pos.y-sCgRY)
html_SetCanvasSize(el,div.wa_size.height+2*sCgRY,div.wa_size.width+2*sCgRY)
html_SetCanvasSize(canv2,div.wa_size.height+4*sCgRY,div.wa_size.width+4*sCgRY)
html_SetSize(div,div.wa_size.height+2*sCgRY,div.wa_size.width+2*sCgRY) 
matrix.tx=ly+2*sCgRY
matrix.ty=2*sCgRY
}
if(rot==180)
{
html_SetPosition(div,div.wa_pos.x-lx,div.wa_pos.y-ly)
matrix.tx=lx
matrix.ty=ly
}
if(rot==270)
{
html_SetPosition(div,div.wa_pos.x-sCgRY,div.wa_pos.y-lx-sCgRY)
html_SetCanvasSize(el,div.wa_size.height+2*sCgRY,div.wa_size.width+2*sCgRY)
html_SetCanvasSize(canv2,div.wa_size.height+4*sCgRY,div.wa_size.width+4*sCgRY)
html_SetSize(div,div.wa_size.height+2*sCgRY,div.wa_size.width+2*sCgRY) 
matrix.tx=2*sCgRY
matrix.ty=lx+2*sCgRY
}
matrix.rotation=rot*2*Math.PI/360
c2.translate(matrix.tx,matrix.ty)
c2.rotate(matrix.rotation)
}
}
function WA_img(id,lx,ly,arc,inCla,bord_col,s_img,shadow,rot,aAfwP,b_over)
{
var TnTGC=id+"-canvas"
var el=document.getElementById(TnTGC)
var c=el.getContext('2d');
var mRWiP=false;
if((aAfwP!=undefined)&&(aAfwP!=-1))
{
mRWiP=new DuhwS(TnTGC,lx,ly,arc,aAfwP)
}
var sCgRY=0;
if(shadow)sCgRY=6 


if(el.wa_lx==undefined)
{
el.wa_lx=lx
el.wa_ly=ly
el.wa_arc=arc
el.wa_bord_siz=inCla
el.wa_bord_col=bord_col
el.wa_s_img=s_img
el.wa_shadow=shadow
el.wa_rot=rot
el.wa_reflex=aAfwP
c.translate(sCgRY,sCgRY)
}
var FJYHq_img=document.getElementById(id+"-cache")
FJYHq_img.onload=function()
{
c.clearRect(0,0,lx+2*sCgRY,ly+2*sCgRY)
var arc2=arc-inCla;
if(arc2<0)arc2=0;
this.width=lx-2*inCla
this.height=ly-2*inCla
if(isMSIE())
{
if(shadow) HmdWk(c,0,0,lx,ly,arc,false,rot)
var nZTOY=c.createPattern(this,'no-repeat');
c.fillStyle=nZTOY;
c.beginPath()
QooCw(c,inCla,inCla,lx-2*inCla,ly-2*inCla,arc2)
c.translate(inCla,inCla)
c.fill()
c.translate(-inCla,-inCla)
aVgVl(c,lx,ly,inCla,bord_col,arc,arc2)
}
else
if(navigator.userAgent.match(/Firefox/i)&&(shadow))
{
var TGqpd=new  serxQ()
mhfha(id,lx,ly,rot,c,el,shadow,TGqpd)
if(shadow) HmdWk(c,0,0,lx,ly,arc,false,rot)
var c2=c
aVgVl(c2,lx,ly,inCla,bord_col,arc,arc2)
c2.beginPath()
QooCw(c2,inCla,inCla,lx-2*inCla,ly-2*inCla,arc2)
c2.clip()
c2.drawImage(this,inCla,inCla,lx-2*inCla,ly-2*inCla);
c2.rotate(-TGqpd.rotation)
c2.translate(-TGqpd.tx,-TGqpd.ty)
}
else
{
var canv2=wdPOs(lx,ly,el,"bis2");
var c2=canv2.getContext('2d');
var TGqpd=new  serxQ()
mhfha(id,lx,ly,rot,c2,canv2,shadow,TGqpd)
c.clearRect(-sCgRY,-sCgRY,lx+2*sCgRY,ly+2*sCgRY)
aVgVl(c2,lx,ly,inCla,bord_col,arc,arc2)
c2.beginPath()
QooCw(c2,inCla,inCla,lx-2*inCla,ly-2*inCla,arc2)
c2.clip()
c2.drawImage(this,inCla,inCla,lx-2*inCla,ly-2*inCla);
c2.rotate(-TGqpd.rotation)
c2.translate(-TGqpd.tx,-TGqpd.ty)
if(shadow) jBnof(c,rot)
c.drawImage(canv2,0,0);
c2.translate(TGqpd.tx,TGqpd.ty)
c2.rotate(TGqpd.rotation)
if(mRWiP)
{
mRWiP.vHwBw(canv2)
}
}
}
FJYHq_img.src=s_img[0];
}
function fCCwe(NxZud,nEpDB,cSDak,baJfL)
{
NxZud.style.left=cSDak+"px"
NxZud.style.top=baJfL+"px"
NxZud.style.webkitTransformOrigin="0 0"
NxZud.style.webkitTransform="rotate("+nEpDB+"deg)";
}
function pkGtM(c,type,lx,ly,corner)
{
if(type==1)
NoiJN(c,0,0,lx,ly)
else
QooCw(c,0,0,lx,ly,corner)
}
function IPKYh(el,c,type,lx,ly,corner,bg,ErbIf,rot)
{
if(EOMsd()==false)
{
c.fillStyle=bg;
pkGtM(c,type,lx,ly,corner)
c.fill()
}
else
{
var canv2=wdPOs(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.fillStyle=bg;
pkGtM(c2,type,lx,ly,corner)
c2.fill()
if(ErbIf) jBnof(c,rot)
c.drawImage(canv2,0,0);
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
}
}
function MMBcV(c,type,lx,ly,xLWEe,bg,ovjPo,eKAne_glow)
{
if(ovjPo)
{
var x1=ovjPo[0];var y1=ovjPo[1];var lx1=ovjPo[2];var ly1=ovjPo[3];var bOgLd=ovjPo[4];
var eUXba=c.createLinearGradient(x1,y1,x1,y1+ly1);
eUXba.addColorStop(0,"rgba(255,255,255,0.7)");eUXba.addColorStop(1,"rgba(255,255,255,0.1)");
c.fillStyle=eUXba;
if(type==1) NoiJN(c,x1,y1,lx1,ly1)
else
QooCw(c,x1,y1,lx1,ly1,bOgLd)
c.fill()
}
if(eKAne_glow)
{
var x2=eKAne_glow[0];var y2=eKAne_glow[1];var lx2=eKAne_glow[2];var ly2=eKAne_glow[3];
var CTXmh=eKAne_glow[4];
var wZOeE_glow=new RGBColor(eKAne_glow[5]);
wZOeE_glow.a=0;
var col1=eKAne_glow[5];
var col2=wZOeE_glow.toRGB();
var APDLD=c.createLinearGradient(x2,y2,x2,y2+ly2);
APDLD.addColorStop(0,col2);
APDLD.addColorStop(0.2,col2);
APDLD.addColorStop(1,col1);
c.fillStyle=APDLD;
if(type==1) NoiJN(c,x2,y2,lx2,ly2)
else
QooCw(c,x2,y2,lx2,ly2,CTXmh)
c.fill()
}
}
function cPrvX(QaHrt,NhMPa,IYUFM,SlgfT,nvwdg,xLWEe,pgiup,ovjPo,eKAne_glow,ErbIf,nEpDB)
{
QaHrt.NhMPa=NhMPa;QaHrt.IYUFM=IYUFM;
QaHrt.SlgfT=SlgfT;QaHrt.nvwdg=nvwdg;
QaHrt.xLWEe=xLWEe;QaHrt.pgiup=pgiup,QaHrt.ovjPo=ovjPo;
QaHrt.eKAne_glow=eKAne_glow;QaHrt.ErbIf=ErbIf;QaHrt.nEpDB=nEpDB;
}
function WA_but_over(NhMPa,pgiup_over,wZOeE_glow)
{
var aVhTs=document.getElementById(NhMPa) 
if(aVhTs&&aVhTs.oOlKB)
with(aVhTs.oOlKB)
{
var eKAne_glow_over;
if(eKAne_glow&&wZOeE_glow)
{
eKAne_glow_over=new Array();
for(var XLmfh=0;XLmfh<eKAne_glow.length;XLmfh++)eKAne_glow_over[XLmfh]=eKAne_glow[XLmfh];
eKAne_glow_over[5]=wZOeE_glow;
}
WA_but(NhMPa,IYUFM,SlgfT,nvwdg,xLWEe,pgiup_over,ovjPo,eKAne_glow_over,ErbIf,nEpDB);
}
var asqGl_over0=document.getElementById(NhMPa+"-div0")
if(asqGl_over0)html_SetVisibility(asqGl_over0,false);
var jlVhu=document.getElementById(NhMPa+"-div1")
if(jlVhu)html_SetVisibility(jlVhu,true);
}
function WA_but_out(NhMPa)
{
var aVhTs=document.getElementById(NhMPa)
with(aVhTs.oOlKB)
{
WA_but(NhMPa,IYUFM,SlgfT,nvwdg,xLWEe,pgiup,ovjPo,eKAne_glow,ErbIf,nEpDB);
}
var asqGl_over0=document.getElementById(NhMPa+"-div0")
if(asqGl_over0)html_SetVisibility(asqGl_over0,true);
var jlVhu=document.getElementById(NhMPa+"-div1")
if(jlVhu)html_SetVisibility(jlVhu,false);
}
function WA_but(id,type,lx,ly,corner,bg,top_light,s_glow,ErbIf,rot)
{
var el=document.getElementById(id)
if(el.oOlKB==undefined)
{
el.oOlKB=new Array();
cPrvX(el.oOlKB,id,type,lx,ly,corner,bg,top_light,s_glow,ErbIf,rot);
}
var c=el.getContext('2d');
var sCgRY=0;
if(ErbIf)sCgRY=6 
c.fillStyle="#000000";
c.fillRect(0,0,lx+2*sCgRY,ly+2*sCgRY) 
c.clearRect(0,0,lx+2*sCgRY,ly+2*sCgRY) 
var bg2=bg
if(bg2.substring(0,1)=="(")
{
bg2=bg2.substring(1)
bg2=bg2.substring(0,bg2.length-1)
var img=new Image();
img.onload=function()
{
if(EOMsd()==false)
{
c.translate(sCgRY,sCgRY)
img.width=lx
img.height=ly 
if(ErbIf)
HmdWk(c,0,0,lx,ly,corner,(type==1),rot)
if(navigator.userAgent.match(/Firefox/i))
{
c.beginPath()
pkGtM(c,type,lx,ly,corner)
c.clip()
c.drawImage(img,0,0,lx,ly);
}
else
{
var ptrn=c.createPattern(img,'no-repeat');
c.fillStyle=ptrn;
c.beginPath()
pkGtM(c,type,lx,ly,corner)
c.fill()
}
MMBcV(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-sCgRY,-sCgRY)
}
else
{
var canv2=wdPOs(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.beginPath()
pkGtM(c2,type,lx,ly,corner)
c2.clip()
c2.drawImage(img,0,0,lx,ly);
MMBcV(c2,type,lx,ly,corner,bg,top_light,s_glow)
if(ErbIf) jBnof(c,rot) 
c.drawImage(canv2,sCgRY,sCgRY);
}
}
img.src=bg2;
return;
}
c.translate(sCgRY,sCgRY) 
if(ErbIf&&(EOMsd()==false))
{
var svWZr=new RGBColor(bg);
if(svWZr.a>0)
{
HmdWk(c,0,0,lx,ly,corner,(type==1),rot)
}
}
IPKYh(el,c,type,lx,ly,corner,bg2,ErbIf,rot)
MMBcV(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-sCgRY,-sCgRY)
}
function HmdWk(c,x0,y0,lx0,ly0,corner,is_circle,rot)
{
var decShadow=2;
var offset=bUNtu(rot)
c.translate(decShadow*offset.x,decShadow*offset.y)
var dec_init=2;
var x=x0-dec_init;var y=y0-dec_init;var lx=lx0+2*dec_init;var ly=ly0+2*dec_init;var opacity=0.1;
for(var n=0;n<4;n++)
{
c.beginPath()
if(is_circle) NoiJN(c,x,y,lx,ly);else QooCw(c,x,y,lx,ly,corner);
c.fillStyle="rgba(0,0,0, "+opacity+")"
c.fill()
x+=1;y+=1;lx-=2;ly-=2;opacity+=0.04
}
c.translate(-decShadow*offset.x,-decShadow*offset.y)
}
function LZqLV(id,x,y,lx,ly,arc,inCla,bord_col,bg,shadow,rot,saLuE,CDCAb)
{
if(CDCAb==undefined)CDCAb=true;
var el=document.getElementById(id)
var c=el.getContext('2d');
if(saLuE==undefined)saLuE=1.0;
var sCgRY=0;
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
if(shadow)
{
sCgRY=6;
}
if(CDCAb) c.clearRect(0,0,el.width,el.height)
c.globalAlpha=saLuE 
var x_rect0=0;
var y_rect0=0;
var bg1=bg[0]
var fill_obj=false;
if(bg1.substring(0,1)=="(")
{
bg1=bg1.substring(1);
bg1=bg1.substring(0,bg1.length-1)
var EPUcD=bg1.split(";");
var x1=parseFloat(EPUcD[0]);
var y1=parseFloat(EPUcD[1]);
var x2=parseFloat(EPUcD[2]);
var y2=parseFloat(EPUcD[3]);
var col1=EPUcD[4];
var col2=EPUcD[5];
var grad=c.createLinearGradient(x1,y1,x2,y2);
grad.addColorStop(0,col1);
grad.addColorStop(1,col2);
fill_obj=grad
}
else
{
if(bg1.length==0)bg1='rgba(0,0,0,0)'
fill_obj=bg1;
}
var arc2=arc-inCla;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
{
if(shadow) HmdWk(c,sCgRY,sCgRY,lx,ly,arc,false,rot)
}
if(inCla>0)
{
c2.fillStyle=bord_col;
QooCw(c2,x,y,lx,ly,arc)
eWaal(c2,x+inCla,y+inCla,lx-2*inCla,ly-2*inCla,arc2,true)
c2.fill()
}


c2.fillStyle=fill_obj 
QooCw(c2,x+inCla,y+inCla,lx-2*inCla,ly-2*inCla,arc2)
c2.fill();
}
function CteSv(TgUgc,ZiloB,oPKPj)
{
return new Point(Math.round(TgUgc*Math.cos(oPKPj)-ZiloB*Math.sin(oPKPj)),Math.round(TgUgc*Math.sin(oPKPj)+ZiloB*Math.cos(oPKPj)))
}
function vYUXJ(c,x,y,lx,ly,arc,clowckwise,nEpDB)
{
c.beginPath()
VqEfV(c,x,y,lx,ly,arc,clowckwise,nEpDB)
}
function VqEfV(c,x,y,lx,ly,arc,clowckwise,nEpDB)
{
if(clowckwise)
{
c.moveTo(x+arc,y);
c.lineTo(x+lx-arc,y);
c.quadraticCurveTo(x+lx,y,x+lx,y+arc);
c.lineTo(x+lx,y+ly-arc);
c.quadraticCurveTo(x+lx,y+ly,x+lx-arc,y+ly);
c.lineTo(x+arc,y+ly);
c.quadraticCurveTo(x,y+ly,x,y+ly-arc);
c.lineTo(x,y+arc);
c.quadraticCurveTo(x,y,x+arc,y);
return;
}
var cfxoO=[[x,y+arc],[x,y+ly-arc],[x,y+ly],[x+arc,y+ly],[x+lx-arc,y+ly],[x+lx,y+ly],[x+lx,y+ly-arc],[x+lx,y+arc],[x+lx,y],[x+lx-arc,y],[x+arc,y],[x,y],[x,y+arc]];
var theta=nEpDB*2*Math.PI/360
for(var n=0;n<cfxoO.length;n++)
{
var iUXxP=cfxoO[n][0]
var ZHwOi=cfxoO[n][1]
cfxoO[n][0]=iUXxP*Math.cos(theta)-ZHwOi*Math.sin(theta);
cfxoO[n][1]=iUXxP*Math.sin(theta)+ZHwOi*Math.cos(theta);
}
var n=0;
c.moveTo(cfxoO[n][0],cfxoO[n++][1]);
c.lineTo(cfxoO[n][0],cfxoO[n++][1]);
c.quadraticCurveTo(cfxoO[n][0],cfxoO[n++][1],cfxoO[n][0],cfxoO[n++][1]);
c.lineTo(cfxoO[n][0],cfxoO[n++][1]);
c.quadraticCurveTo(cfxoO[n][0],cfxoO[n++][1],cfxoO[n][0],cfxoO[n++][1]);
c.lineTo(cfxoO[n][0],cfxoO[n++][1]);
c.quadraticCurveTo(cfxoO[n][0],cfxoO[n++][1],cfxoO[n][0],cfxoO[n++][1]);
c.lineTo(cfxoO[n][0],cfxoO[n++][1]);
c.quadraticCurveTo(cfxoO[n][0],cfxoO[n++][1],cfxoO[n][0],cfxoO[n++][1]);
}
function OESEU(a,b,x,y)
{
return(a*x-y+b)/(Math.sqrt(1+a*a))
}
function TctrH(new_a1,new_b1,ExAPa,multi)
{
var d=0;
for(var i=0;i<ExAPa.length;i++)
{
var uUudm=ExAPa[i]
var d1=OESEU(new_a1,new_b1,uUudm.x,uUudm.y)
if(multi<0)
{
if(d1<0) d=Math.max(d,-d1);
}
else
{
if(d1>0) d=Math.max(d,d1);
}
}
return d;
}
function IkupK(o1,o2)
{
if(o1<o2) return-1
if(o1>o2) return 1
return 0
}
function Wtxww(c,lx,ly,bg1)
{
var fill_obj=false;
var xMeSs=false;
var daXIs=false;
var ExAPa=false
if(bg1.substring(0,1)=="(")
{
bg1=bg1.substring(1);
bg1=bg1.substring(0,bg1.length-1)
var EPUcD=bg1.split(";");
var GPlAu=new Point(parseFloat(EPUcD[0]),parseFloat(EPUcD[1]));
var PSCxO=new Point(parseFloat(EPUcD[2]),parseFloat(EPUcD[3]));
xMeSs=GPlAu.clone()
daXIs=PSCxO.clone()
var col1=EPUcD[4];
var col2=EPUcD[5];
var grad=c.createLinearGradient(xMeSs.x,xMeSs.y,daXIs.x,daXIs.y);
if(isMSIE())
{
xMeSs=GPlAu.clone()
daXIs=PSCxO.clone() 
var eUXba=0;
var APDLD=1;
{
ExAPa=[{x:0,y:0},{x:lx,y:0},{x:lx,y:ly},{x:0,y:ly}]
var d1=0;
var d2=0;
var a=(daXIs.y-xMeSs.y)/(daXIs.x-xMeSs.x);
var b=xMeSs.y-a*xMeSs.x;
var diff=1;
if(a==Infinity)
{
d1=(xMeSs.y)
d2=(ly-daXIs.y)
}
else
if(a==0)
{
d1=(xMeSs.x)
d2=(lx-daXIs.x)
}
else
{
var new_a1=-1/a;
var new_b1=xMeSs.y-new_a1*xMeSs.x;
d1=TctrH(new_a1,new_b1,ExAPa,-1)
var new_b2=daXIs.y-new_a1*daXIs.x;
d2=TctrH(new_a1,new_b2,ExAPa,1)
if(new_a1<0)diff=-1;
}
var d=Math.sqrt(Math.pow(daXIs.x-xMeSs.x,2)+Math.pow(daXIs.y-xMeSs.y,2))
var total=(d1+d+d2)
eUXba=d1/total;
APDLD=(d1+d)/total;
var pt_prod0=new Point(daXIs.x-xMeSs.x,daXIs.y-xMeSs.y)
var pt_prod1=new Point(0,100)
var prod=(pt_prod0.x*pt_prod1.y-pt_prod1.x*pt_prod0.y);
if(prod*diff<0)
{
eUXba=d2/total;
APDLD=(d2+d)/total;
}
}
grad.addColorStop(eUXba,col1);
grad.addColorStop(APDLD,col2);

}
else
{
grad.addColorStop(0,col1);
grad.addColorStop(1,col2);
}
fill_obj=grad
}
else
{
fill_obj=bg1;
}
return fill_obj;
}
function WA_bg3(id,lx,ly,arc,inCla,bord_col,bg,shadow,rot,qNcmA,sxwSf,saLuE,CDCAb)
{


var theta=rot*2*Math.PI/360 
if(CDCAb==undefined)CDCAb=true;
if(saLuE==undefined)saLuE=1.0;
var el=document.getElementById(id)
if(!el)return
var c=el.getContext('2d');
var sCgRY=(el.width-lx)/2;
if(CDCAb) c.clearRect(0,0,el.width,el.height)
var x_rect0=sCgRY;
var y_rect0=sCgRY;
var bg1=bg[0]
var fill_obj=false;
var xMeSs=false;
var daXIs=false;
var ExAPa=false
fill_obj=Wtxww(c,lx,ly,bg1) 
if(saLuE==undefined)saLuE=1.0;
var arc2=arc-inCla;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
if(shadow)
{
c2.translate(qNcmA+6,sxwSf+6)
}
else
{
c2.translate(qNcmA,sxwSf)
}
c2.fillStyle=fill_obj;
vYUXJ(c2,inCla,inCla,lx-2*inCla,ly-2*inCla,arc2,false,rot)
c2.fill();
}
function WA_bg(id,lx,ly,arc,inCla,bord_col,bg,shadow,rot,saLuE,CDCAb)
{

if(CDCAb==undefined)CDCAb=true;
if(saLuE==undefined)saLuE=1.0;
var el=document.getElementById(id)
if(!el)return
var c=el.getContext('2d');
var sCgRY=(el.width-lx)/2;
if(CDCAb) c.clearRect(0,0,el.width,el.height) 

var fill_obj=Wtxww(c,lx,ly,bg[0])
if(bg.length>1)
{
var bg2=bg[1]
var img=new Image();
img.onload=function()
{
var ptrn=c.createPattern(img,'repeat');
c.fillStyle=ptrn;
c.beginPath()
aQNWP(c,el,lx,ly,arc,inCla,bord_col,ptrn,shadow,rot,saLuE)
}
img.src=bg2;
}
else
{
aQNWP(c,el,lx,ly,arc,inCla,bord_col,fill_obj,shadow,rot,saLuE)
}
}
function aQNWP(c,el,lx,ly,arc,inCla,bord_col,fill_obj,shadow,rot,saLuE)
{
if(saLuE==undefined)saLuE=1.0;
var arc2=arc-inCla;
if(arc2<0)arc2=0
var sCgRY=(el.width-lx)/2;
var x_rect0=sCgRY;
var y_rect0=sCgRY;
var canv2=false;
var c2=c;
c.globalAlpha=saLuE
if(EOMsd()==true)
{
canv2=wdPOs(lx,ly);
c2=canv2.getContext('2d');
c2.globalAlpha=saLuE
}
else
{
c2.translate(sCgRY,sCgRY)
if(shadow) HmdWk(c,0,0,lx,ly,arc,false,rot)
}
if(inCla>0)
{
c2.fillStyle=bord_col;
QooCw(c2,0,0,lx,ly,arc)
eWaal(c2,inCla,inCla,lx-2*inCla,ly-2*inCla,arc2,true)
c2.fill()
}
c2.fillStyle=fill_obj;
QooCw(c2,inCla,inCla,lx-2*inCla,ly-2*inCla,arc2)
c2.fill();
if(EOMsd()==true)
{
if(shadow) jBnof(c,rot)
c.drawImage(canv2,sCgRY,sCgRY);
}
else
{
c2.translate(-sCgRY,-sCgRY)
}
}
function WA_div_offset(id,x,y)
{
if(isMSIE())
{
var el=document.getElementById(id)
if(el.filters)
{
el.style.left=""+x+"px";el.style.top=""+y+"px";
}
}
}


function Size(lx,ly)
{
this.width=lx;this.height=ly;
this.clone=function(){return new Size(this.width,this.height)}
this.greaterThan=function(eKAne){return(this.width>eKAne.width)&&(this.height>eKAne.height)}
this.scale=function(baALa,SbaQe)
{
if(!SbaQe)SbaQe=false
var wqLRn=this;
var RoxEt=wqLRn.width
var CLktq=wqLRn.height
var p1=RoxEt*baALa.height;
var p2=baALa.width*CLktq;
var r1=RoxEt/CLktq;
var r2=CLktq/RoxEt;
var newSize1=new Size(baALa.height*r1,baALa.height);
var newSize2=new Size(baALa.width,baALa.width*r2);
if(p2>p1)
{
if((SbaQe==true)||((newSize1.width<=wqLRn.width)&&(newSize1.height<=wqLRn.height)))
{
wqLRn.width=Math.round(newSize1.width);
wqLRn.height=Math.round(newSize1.height);
}
}
else
{
if((SbaQe==true)||((newSize2.width<=wqLRn.width)&&(newSize2.height<=wqLRn.height)))
{
wqLRn.width=Math.round(newSize2.width);
wqLRn.height=Math.round(newSize2.height);
}
}
this.width=wqLRn.width;
this.height=wqLRn.height;
return true;
}
}
function Point(p_x,p_y){this.x=p_x;this.y=p_y;
this.translate=function(TgUgc,ZiloB){this.x+=TgUgc;this.y+=ZiloB;}
this.clone=function(){return new Point(this.x,this.y)}
}
function Rect(p_x,p_y,lx,ly)
{
this.x=p_x;this.y=p_y;this.width=lx;this.height=ly;
this.clone=function(){return new Rect(this.x,this.y,this.width,this.height)}
this.equals=function(NxZud){return(this.x==NxZud.x)&&(this.y==NxZud.y)&&(this.width==NxZud.width)&&(this.height==NxZud.height);}
this.copy=function(NxZud){this.x=NxZud.x;this.y=NxZud.y;this.width=NxZud.width;this.height=NxZud.height;}
this.translate=function(TgUgc,ZiloB){this.x+=TgUgc;this.y+=ZiloB;}
this.isValid=function(){return(this.width>0)&&(this.height>0);}
}
function html_getLayer(NxZud)
{
if(typeof(NxZud)=="string")return document.getElementById(NxZud);
return NxZud;
}
function html_SetPosition(NxZud,TgUgc,ZiloB){
NxZud=html_getLayer(NxZud);
NxZud.style.left=TgUgc+"px";NxZud.style.top=ZiloB+"px";
}
function html_SetSize(ooNSM,SlgfT,nvwdg){
NxZud=html_getLayer(ooNSM);
NxZud.style.width=SlgfT+"px";NxZud.style.height=nvwdg+"px";
}
function html_SetRect(NxZud,LmlZq){html_SetGeometry(NxZud,LmlZq.x,LmlZq.y,LmlZq.width,LmlZq.height);}
function html_SetGeometry(NxZud,TgUgc,ZiloB,SlgfT,nvwdg){html_SetPosition(NxZud,TgUgc,ZiloB);html_SetSize(NxZud,SlgfT,nvwdg);}
function html_SetVisibility(NxZud,nmiJn){NxZud=html_getLayer(NxZud);NxZud.style.visibility=(nmiJn)?"visible":"hidden";}
function html_SetDisplay(NxZud,nmiJn){NxZud=html_getLayer(NxZud);NxZud.style.display=(nmiJn)?"block":"none";}
function html_SetCanvasSize(NxZud,SlgfT,nvwdg){NxZud=html_getLayer(NxZud);NxZud.width=SlgfT;NxZud.height=nvwdg;}
function html_writeContent(NxZud,eKAne){NxZud=html_getLayer(NxZud);NxZud.innerHTML=eKAne;}
function html_SetOpacity(NxZud,iIRxm)
{
NxZud=html_getLayer(NxZud);
NxZud.style['opacity']=iIRxm;
NxZud.style['-moz-opacity']=iIRxm;
NxZud.style.filter=(iIRxm==1)?'':'alpha(opacity='+(iIRxm*100)+')';
}
var XqSaw=[
{acc:"e",l:["é","è","ë"]},{acc:"a",l:["à","ä","â"]},{acc:"u",l:["ü","û"]},{acc:"c",l:["ç"]},{acc:"o",l:["ö","ô"]}
];
function removeAccentsFromString(s)
{
var res=s.toLowerCase();
for(var i=0;i<XqSaw.length;i++)
{
var array2=XqSaw[i].l;
for(var i2=0;i2<array2.length;i2++)
{
var reg=new RegExp(array2[i2],"g");
res=res.replace(reg,XqSaw[i].acc)
}
}
return res;
}
function trimString(str)
{
return str.replace(/^\s*|\s*$/g,"");
}
function IsNumeric(joCNC)
{
var gmWEE="0123456789.";var LtrAm=true;var cwPUo;
for(XLmfh=0;XLmfh<joCNC.length&&LtrAm==true;XLmfh++){cwPUo=joCNC.charAt(XLmfh);if(gmWEE.indexOf(cwPUo)==-1) LtrAm=false;}
return LtrAm;
}
function getWindowScroll()
{
var x=0;var y=0;
if(typeof(window.pageYOffset)=='number'){
x=window.pageXOffset;y=window.pageYOffset;
}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){
x=document.body.scrollLeft;y=document.body.scrollTop;
}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){
x=document.documentElement.scrollLeft;y=document.documentElement.scrollTop;
}
return new Point(x,y);
}
function getWindowSize()
{
var lx=0;var ly=0;;
if(isMSIE())
{
lx=document.documentElement.clientWidth;ly=document.documentElement.clientHeight;
if((lx==0)&&(ly==0))
{
if(document.body&&(document.body.clientWidth)){
lx=document.body.clientWidth;ly=document.body.clientHeight;
}
}
}
else
if(typeof(window.innerWidth)=='number')
{
lx=window.innerWidth;
if(document.documentElement.clientWidth>0)lx=document.documentElement.clientWidth
ly=window.innerHeight;
if(document.documentElement.clientHeight>0)ly=document.documentElement.clientHeight
}
if(isIPhone())
if(typeof(window.innerWidth)=='number')
{
lx=window.innerWidth;ly=window.innerHeight;
}
return new Size(lx,ly);
}
function getWindowFullSize()
{
var lx=0;var ly=0;;
if(isMSIE())
{
lx=document.documentElement.clientWidth;ly=document.documentElement.clientHeight;
if((lx==0)&&(ly==0))
{
if(document.body&&(document.body.clientWidth)){
lx=document.body.clientWidth;ly=document.body.clientHeight;
}
}
}
else
if(typeof(window.innerWidth)=='number'){
lx=window.innerWidth;
if(document.documentElement.clientWidth>0)lx=document.documentElement.clientWidth
ly=window.innerHeight;
if(document.documentElement.clientHeight>0)ly=document.documentElement.clientHeight
}
return new Size(lx,ly);
}
function urlSuffixe(EmeQL)
{
var dGnBx=EmeQL*60;
var rKHUD=new Date();
var OJlRR=0;
OJlRR+=rKHUD.getYear()*12*31*24*60*60;
OJlRR+=rKHUD.getMonth()*31*24*60*60;
OJlRR+=rKHUD.getDate()*24*60*60;
OJlRR+=rKHUD.getHours()*60*60;
OJlRR+=rKHUD.getMinutes()*60;
OJlRR+=rKHUD.getSeconds();
if(dGnBx!=0)
{
OJlRR=Math.floor(OJlRR/dGnBx)*dGnBx
}
return "-"+OJlRR;
}
function urlAntiCacheForPreview()
{
if(document.webaca_is_preview) return urlSuffixe(0);
return "";
}
function html_findPos(obj)
{
var iIRxm=LNirm(obj)
return new Point(iIRxm[0],iIRxm[1])
}
function LNirm(obj)
{
var curleft=curtop=0;
if(obj.offsetParent)
{
do
{
curleft+=obj.offsetLeft;curtop+=obj.offsetTop;
}while(obj=obj.offsetParent);
}
return [curleft,curtop];
}
function Wa_search_input(dbJsl,SlgfT,nvwdg)
{
document.write("<input id='"+dbJsl+"' type=search results=0 placeholder='' style='width:"+SlgfT+"px;height:"+nvwdg+"px;'>")
}
function PlGOL()
{
var bBHvd=document.getElementsByTagName("A");
for(var XLmfh=0;XLmfh<bBHvd.length;XLmfh++)
{
var NxZud=bBHvd[XLmfh];
if(NxZud.onmouseover)NxZud.onmouseover=null;
if(NxZud.onmouseout)NxZud.onmouseout=null;
}
}
function AqNAH()
{
for(var tSjSD in document.wa_global_list_element)
{
var NhMPa=document.wa_global_list_element[tSjSD]
var aVhTs=document.getElementById(NhMPa)
aVhTs.onclick=function()
{
WA_focus(this)
}
}
}
function WA_declare(NhMPa)
{
if(!document.wa_global_list_element)
{
document.wa_global_list_element=new Array();;
}
document.wa_global_list_element.push(NhMPa)
}
function mJZWD()
{
var iQsaR=window.location.search;
if(iQsaR.substr(0,1)=="?")iQsaR=iQsaR.substr(1);
if(iQsaR.length==0)return;
var ZRKqw=new Array();
var GIhbJ=iQsaR.split("&");
for(var i=0;i<GIhbJ.length;i++)
{
var nbLmi=GIhbJ[i].split("=");ZRKqw[nbLmi[0]]=nbLmi[1];
}
var eKAne_info=ZRKqw["crbst_info"];
if(!eKAne_info)return;
var WerBo=new Array();
WerBo.m_unid=eKAne_info;
WerBo.m_index_item=-1;
var QmTZt=eKAne_info.indexOf("-");
if(QmTZt!=-1)
{
WerBo.m_unid="wa-id-"+eKAne_info.substring(0,QmTZt);
WerBo.m_index_item=parseInt(eKAne_info.substring(QmTZt+1));
}
document.wa_global_query_info=WerBo;
}
function IS_onload_WA()
{

if(isMSIE8())
{
wa_timeout("IS_onload_ui()",0)
}
else
{
IS_onload_ui()
}
if(isIPhone())
{
PlGOL()
}
else
{
AqNAH()
}
mJZWD();

TbxNT()
}
function TbxNT()
{
var YZudq=0;
var lkSPb=document.webaca_banner_height;
if(document.webaca_page_is_centered)
{
var rSgBO=getWindowSize().width
var EsFfK=document.webaca_width_page
if(rSgBO>EsFfK)YZudq=(rSgBO-EsFfK)/2;
}
document.body.style.backgroundPosition=YZudq+"px "+lkSPb+"px";
}


function WA_loadMessages()
{
for(var k in CONST_WA_TR)
{
var key=CONST_WA_TR[k]
Translator.m_tr[key[0]]=key[1]
}
for(var n=0;n<CONST_WA_COUNTRIES.codes.length;n++)
{
var jJiHK=CONST_WA_COUNTRIES.codes[n]
var lAwDt=CONST_WA_COUNTRIES.labels[n]
Translator.m_countries[jJiHK]=lAwDt
}
}
function Translator()
{
}
Translator.m_tr=new Array();
Translator.m_countries=new Array();
Translator.tr=function(k)
{
try
{
var v=Translator.m_tr[k]
if((v==undefined)||(v.length==0))return "@"+k;
v=v.replace(/\n/g,"<br>")
return v
}
catch(e){}
return k;
}
Translator.country=function(k)
{
try
{
var v=Translator.m_countries[k]
if((v==undefined)||(v.length==0))return "@"+k;
return v
}
catch(e){}
return k;
}
function WA_GraphicElement(NhMPa,uMsAa,ErbIf)
{
this.NhMPa=NhMPa;
this.uMsAa=uMsAa
this.ErbIf=ErbIf;
this.DNFmU=this.NhMPa+"-div"
this.XuUpV=this.NhMPa+"-canvas"
this.fTQwc=new Rect(0,0,0,0)
this.XMriS=false;
this.RsRlB=false;
this.sCgRY=6;
this.DhZPn=false;
this.EAupM=false;
this.eKUDR=false;
this.pGhnb="";
this.shadow=function()
{
return this.ErbIf;
}
this.marginShadow=function()
{
return this.sCgRY;
}
this.rect=function()
{
return this.fTQwc;
}
this.canvasId=function()
{
return this.XuUpV;
}
this.divId=function()
{
return this.DNFmU;
}
this.opacity=function()
{
return this.UXlVx;
}
this.img_clip=function()
{
return this.EAupM;
}
this.img_src=function()
{
return this.DhZPn;
}
this.toHtml=function()
{
var eKAne=""
eKAne+="<div id='"+this.DNFmU+"' style=\"";
eKAne+="position:absolute;";
if(this.pGhnb.length>0)
{
eKAne+="cursor:pointer;";
}
if(this.rect.x>0)eKAne+="left:"+this.rect.x+"px;";
if(this.rect.y>0)eKAne+="top:"+this.rect.y+"px;";
if(this.rect.width>0)eKAne+="width:"+this.rect.width+"px;";
if(this.rect.height>0)eKAne+="height:"+this.rect.height+"px;";
if(uMsAa)
eKAne+="z-index:"+uMsAa+";";
eKAne+="\" ";
if(this.pGhnb.length>0)
{
eKAne+="onclick=\""+this.pGhnb+"\" "
}
eKAne+=">";
if((this.rect.width>0)&&this.shadow())
{
eKAne+=html_canvas(this.XuUpV,this.rect.width+2*this.sCgRY,this.rect.height+2*this.sCgRY)+"</div>";
}
else
{
eKAne+=html_canvas(this.XuUpV,0,0)+"</div>";
}
return eKAne
}
this.setImage=function(xNPgr,srjAV,nEpDB)
{
if(nEpDB==undefined)nEpDB=0;
if((xNPgr==this.DhZPn)&&(this.EAupM&&this.EAupM.equals(srjAV))&&(this.eKUDR==nEpDB))
{
return;
}
this.eKUDR=nEpDB;
this.DhZPn=xNPgr;
this.EAupM=srjAV;
this.FduHq()
}
this.registerDynamicCanvas=function()
{
registerDynamicCanvas(this.XuUpV);
this.RsRlB=true;
this.setRect(this.fTQwc.x,this.fTQwc.y,this.fTQwc.width,this.fTQwc.height)
}
this.FduHq=function()
{
if((this.fTQwc.width>0)&&(this.fTQwc.height>0))
{
this.draw()
}
this.XMriS=true
};
this.draw=function(){};
this.setPosition=function(TgUgc,ZiloB)
{
this.fTQwc.x=TgUgc;this.fTQwc.y=ZiloB;
if(this.RsRlB==false)return
html_SetPosition(this.DNFmU,this.fTQwc.x,this.fTQwc.y)
if(this.XMriS==false)
{
this.FduHq()
}
}
this.setOnClick=function(eKAne)
{
this.pGhnb=eKAne
}
this.width=function(){return this.fTQwc.width;}
this.height=function(){return this.fTQwc.height;}
this.setSize=function(SlgfT,nvwdg)
{
this.fTQwc.width=SlgfT;this.fTQwc.height=nvwdg;
var PVnTg=SlgfT
var ioPog=nvwdg
if(this.ErbIf)
{
PVnTg+=2*this.sCgRY
ioPog+=2*this.sCgRY
}
if(this.RsRlB==false)return
html_SetSize(this.DNFmU,PVnTg,ioPog)
html_SetCanvasSize(this.XuUpV,SlgfT,nvwdg)
this.FduHq()
}
this.setRect=function(TgUgc,ZiloB,SlgfT,nvwdg)
{
this.fTQwc.x=TgUgc;this.fTQwc.y=ZiloB;this.fTQwc.width=SlgfT;this.fTQwc.height=nvwdg;
var PVnTg=SlgfT
var ioPog=nvwdg
var FfWJt=TgUgc
var IPjhs=ZiloB
if(this.ErbIf)
{
PVnTg+=2*this.sCgRY
ioPog+=2*this.sCgRY
FfWJt-=this.sCgRY
IPjhs-=this.sCgRY
}
if(this.RsRlB==false)return 
html_SetGeometry(this.DNFmU,FfWJt,IPjhs,PVnTg,ioPog);
html_SetCanvasSize(this.XuUpV,PVnTg,ioPog)
try{this.FduHq()}catch(e){
alert(e.message)
}
}
this.setVisible=function(nmiJn)
{
if(this.RsRlB==false)return
html_SetVisibility(this.DNFmU,nmiJn)
}
this.setOpacity=function(iIRxm)
{
this.UXlVx=iIRxm 
if(this.RsRlB==false)return
this.FduHq()
}
}

function is_onresize()
{
WA_Dialog.resizeUI()
try
{
if(WA_PhotoAlbum_resizeUI)WA_PhotoAlbum_resizeUI()
}
catch(e){}
TbxNT()
}
function is_onscroll()
{
centerFullPageContainer();
}
function registerDynamicCanvas(id)
{
if(isMSIE())
G_vmlCanvasManager.initElement(document.getElementById(id));
}
function WA_openDialogAction(tSjSD)
{
var htisr=WA_Dialog.plGfp;
if(tSjSD==-1){htisr.closeWin();return;}
var CYbIT=htisr.Wllrs(tSjSD);
if(CYbIT[5])
{
CYbIT[4].call(CYbIT[6],CYbIT[5])
}
else
{
CYbIT[4](CYbIT[5]);
}
}
function WA_Dialog(nmiJn_close_button)
{
this.FBWUJ=0;
this.rmcLw=0;
this.baALa_win_width=600;
this.baALa_win_height=400;
this.UBqfC=new Array();
this.pGbbR="wa-dialog-but-";
this.gEgDe=this.pGbbR+"div-";
this.Ntjit=this.pGbbR+"canvas-";
this.BUTTON_HEIGHT=22;
this.xpEFS=CONST_WA_GLOBAL_COLOR_THEME;
this.nmiJn_close_button=nmiJn_close_button;
this.bJYOZ=6;
this.EQIIW=function()
{
if(this.nmiJn_close_button==undefined)this.nmiJn_close_button=true;
this.KshcP();
}
this.resetButtons=function()
{
this.KshcP();
}
this.idealHeight=function()
{
return this.ppPNU
}
this.displayWindowWithAutoResize=function(sUctK,ovNOU)
{
this.CvWtK=false
this.ppPNU=sUctK
this.vaRKU=ovNOU 
this.resetButtons();
ovNOU.call(this)
var l=document.getElementById('wa-dialog-content');
if(this.CvWtK==false)
if(l.scrollHeight>200)
{
this.CvWtK=true
this.ppPNU=l.scrollHeight+150
this.resetButtons();
ovNOU.call(this)
}
}
this.initializeWindow=function(baALa_lx,baALa_ly)
{
if(WA_Dialog.plGfp)WA_Dialog.plGfp.closeWin()
WA_Dialog.plGfp=this;
this.baALa_win_width=baALa_lx;
this.baALa_win_height=baALa_ly;
this.fKoUB()
}
this.progress=function()
{
this.initializeWindow(300,100)
this.writeContent("<div width=100% align=center><img src='wa_loading.gif'></div>")
}
this.fBakL=function(mess)
{


this.initializeWindow(450,130)
var s=""
s+="<table border=0 style='width:100%;'><tr>";
s+="<td align=center style='"+this.cssText1()+"'>"
s+=mess
s+="</td></tr></table>"
this.writeContent(s)
}
this.addButton=function(lAwDt,PFUtC,FJYHq,MRowO)
{
var BVCiP=this.UBqfC.length
if(this.nmiJn_close_button==true)
{
BVCiP--;
}
var SlgfT=Math.max((lAwDt.length*8)*1.2+30,80)
var wqLRn=new Size(SlgfT,this.BUTTON_HEIGHT);
this.lLVnf("action_"+BVCiP,BVCiP,lAwDt,PFUtC,wqLRn,FJYHq,MRowO)
}
this.KshcP=function()
{
this.UBqfC=new Array();
if(this.nmiJn_close_button)
{

var wqLRn=new Size(50,20);
this.lLVnf("close",-1,"X",null,wqLRn)
}
}
this.lLVnf=function(NsXPl,BVCiP,lAwDt,PFUtC,wqLRn,FJYHq,MRowO)
{
var CYbIT=[NsXPl,wqLRn,BVCiP,lAwDt,PFUtC,FJYHq,MRowO];
this.UBqfC.push(CYbIT);
}
this.writeContent=function(s)
{
var l=document.getElementById('wa-dialog-content');
l.innerHTML=s
}
this.Wllrs=function(NsXPl)
{
for(var tSjSD=0;tSjSD<this.UBqfC.length;tSjSD++)
{
var CYbIT=this.UBqfC[tSjSD];
if((CYbIT[0]==NsXPl)||(CYbIT[2]+""==NsXPl+""))
return CYbIT;
}
return undefined;
}
this.uNEeY=function(NsXPl)
{
var CYbIT=this.Wllrs(NsXPl);
return CYbIT[1]
}
this.getColorTheme=function(tSjSD)
{
return this.xpEFS[tSjSD];
}
this.HhBdt=function(BsDxQ)
{
var CYbIT=this.Wllrs(BsDxQ);
var NsXPl=CYbIT[0];
var BVCiP=CYbIT[2];
var wZOeE_text=this.xpEFS[4]
var wZOeE_bg=this.xpEFS[5]
var wZOeE_glow=this.xpEFS[7]
if(BVCiP==-1)
{
wZOeE_text=this.xpEFS[10]
wZOeE_bg=this.xpEFS[8]
wZOeE_glow=this.xpEFS[11]
}
var UKvcM=this.gEgDe+NsXPl;
var eYuYU=this.Ntjit+NsXPl;
var wqLRn=this.uNEeY(BsDxQ)
var UxpCs=0;
var s=""
s+="<a href='javascript:WA_openDialogAction("+BsDxQ+")' ";
var wZOeE=new RGBColor(wZOeE_bg);
var TlGxr=wZOeE.toHsl();
wZOeE.fromHsl(TlGxr[0],TlGxr[1],TlGxr[2]+0.2)
wZOeE_bg=wZOeE.toRGB();
var uHQnE_glow=new RGBColor(wZOeE_glow);
var kirrI=uHQnE_glow.toHsl();
uHQnE_glow.fromHsl(kirrI[0],kirrI[1],kirrI[2]+0.2)
wZOeE_glow=uHQnE_glow.toRGB();
s+="onmouseover=\"WA_but_over('"+eYuYU+"','"+wZOeE_bg+"','"+wZOeE_glow+"')"+"\" ";
s+="onmouseout=\""+"WA_but_out('"+eYuYU+"')"+"\" ";
s+="style='text-decoration:none;'>";
s+="<div id='"+this.gEgDe+NsXPl+"' style='position:absolute;cursor:pointer;left:0px;top:0px;height:"+wqLRn.height+"px;width:"+wqLRn.width+"px;' >";
s+="<div style='position:absolute;left:"+(-UxpCs)+"px;top:"+(-UxpCs)+"px;height:"+wqLRn.height+"px;'>"
s+="<canvas id='"+this.Ntjit+NsXPl+"' width="+(wqLRn.width+UxpCs*2)+" height="+(wqLRn.height+UxpCs*2)+" ></canvas>";
s+="</div>"
s+="<div align=center style='position:absolute;left:0px;top:"+(0)+"px;vertical-align:middle;width:100%;height:"+(wqLRn.height)+"px;line-height:"+(wqLRn.height)+"px;font-family:arial;font-size:13px;font-weight:bold;color:"+wZOeE_text+"'>"
s+=CYbIT[3];
s+="</div>"
s+="</div>"
s+="</a>"
return s;
}
this.eQort=function(NsXPl)
{
var CYbIT=this.Wllrs(NsXPl);
var BVCiP=CYbIT[2];
var wZOeE_bg=this.xpEFS[5]
var wZOeE_glow=this.xpEFS[7]
var wZOeE_text=this.xpEFS[3]
if(BVCiP==-1)
{
wZOeE_bg=this.xpEFS[8]
wZOeE_glow=this.xpEFS[11]
wZOeE_text=this.xpEFS[10]
}
var jJiHK=this.Ntjit+NsXPl;
registerDynamicCanvas(jJiHK);
var wqLRn=this.uNEeY(NsXPl);
var xLWEe=wqLRn.height*0.25;
var lHoWR=true;
xLWEe=0;
lHoWR=false;
var srpiX=0;
var xWmZp=(wqLRn.width-2);
var nvwdg_circle_top=wqLRn.height*0.45;

var EPUcD_top=[1,1,xWmZp,nvwdg_circle_top,srpiX];
var SlgfT_circle_bottom=wqLRn.width-2;
var nvwdg_circle_bottom=wqLRn.height*0.45;
var pEnCR=wZOeE_glow;
var bZVfA=wZOeE_glow;
var HbPET=0;

var EPUcD_bottom=[(wqLRn.width-SlgfT_circle_bottom)/2,wqLRn.height-nvwdg_circle_bottom-1,SlgfT_circle_bottom,nvwdg_circle_bottom,HbPET,pEnCR,bZVfA];
WA_but(jJiHK,0,wqLRn.width,wqLRn.height,xLWEe,wZOeE_bg,EPUcD_top,EPUcD_bottom,lHoWR,0)
}
this.vaIZT=function(NsXPl)
{
var CYbIT=this.Wllrs(NsXPl)
if(CYbIT)
{
var jJiHK=this.gEgDe+CYbIT[0];
return document.getElementById(jJiHK);
}
return undefined
}
this.fKoUB=function()
{
var l=document.getElementById('wa-dialog-container');
l.style.display="block" 

var s="";
var PQUOx=document.webaca_banner_height
s+="<div  style='position:absolute;left:0px;top:"+PQUOx+"px;width:100%;height:100%;background-color:#000000;filter:alpha(opacity=50);-moz-opacity:0.5;opacity:0.5;'></div>"
s+="<div id='wa-dialog-main' style='position:absolute;left:0px;top:"+PQUOx+"px;width:100px;height:100px;' >"
s+="<div style='position:absolute;left:0px;top:0px;width:100px;height:100px;' ><canvas id='wa-dialog1' width=100 height=100 ></canvas></div>"
for(var XLmfh in this.UBqfC)
{
s+=this.HhBdt(this.UBqfC[XLmfh][2]);
}
s+="<div id='wa-dialog-content' style='position:absolute;left:0px;top:0px;width:100px;" 
s+="overflow:auto;' ></div>"
s+="</div>"
l.innerHTML=s 
WA_exec_callback_opera_compliant(this,this.JNBZL)
}
this.JNBZL=function()
{
registerDynamicCanvas('wa-dialog1');
for(var XLmfh in this.UBqfC)
{
this.eQort(this.UBqfC[XLmfh][0])
}
this.RksTP()
if(this.iYTrK())
{
document.body.scrollLeft=0
document.body.scrollTop=0
}
}
this.intern_closeWin=function()
{
var l=document.getElementById('wa-dialog-container');
l.style.display="none"
WA_Dialog.plGfp=false
}
this.closeWin=function()
{
this.intern_closeWin()
}
this.cssText1=function()
{
return "font-family:Arial;font-size:15px;color:"+this.xpEFS[3]+";";
}
this.onCustomKeypress=function(onMHu)
{
if((this.UBqfC.length==1)&&(onMHu==13))
{
this.closeWin()
return true;
}
return false;
}
this.onkeypress=function(onMHu)
{
return this.onCustomKeypress(onMHu)
}
this.onkeydown=function(onMHu)
{
if(onMHu==27)
{
this.closeWin()
return true;
}
return this.onCustomKeypress(onMHu) 
}
this.customUpdate=function(){}
this.iYTrK=function()
{
return isIPhone();
}
this.RksTP=function()
{
var SlgfT_page=document.webaca_width_page;
var nvwdg_page=document.webaca_height_page;
var iZPYs=getWindowSize().width
var nvwdg_window=getWindowSize().height
var NaIwO=getWindowFullSize().width
var nvwdg_full_client=getWindowFullSize().height
var OgpSc=550;
var VmJCu=400;
iZPYs=Math.max(iZPYs,OgpSc);
nvwdg_window=Math.max(nvwdg_window,VmJCu);
if(this.iYTrK())
{
iZPYs=600;
nvwdg_window=700;
}
this.FBWUJ=Math.min(iZPYs*0.9,this.baALa_win_width)
this.rmcLw=Math.min(nvwdg_window*0.9,this.baALa_win_height)
var ZhBpP=document.getElementById('wa-dialog1');
ZhBpP.width=this.FBWUJ+10
ZhBpP.height=this.rmcLw+10
var TgUgc=getWindowScroll().x+(iZPYs-ZhBpP.width)/2
var ZiloB=getWindowScroll().y+(nvwdg_window-ZhBpP.height)/2
TgUgc=(iZPYs-ZhBpP.width)/2
ZiloB=(nvwdg_window-ZhBpP.height)/2
TgUgc=Math.max(0,TgUgc)
ZiloB=Math.max(0,ZiloB)
if(this.iYTrK())
{
TgUgc=0
ZiloB=0;
}
var oHZPH=document.getElementById('wa-dialog-main');
html_SetGeometry('wa-dialog-main',TgUgc,ZiloB,ZhBpP.width,ZhBpP.height);
var aGjsw_bg="(0;0;0;"+this.rmcLw*0.25+";"+this.xpEFS[1]+";"+this.xpEFS[2]+")";
var nTmEW=4;
WA_bg('wa-dialog1',this.FBWUJ,this.rmcLw,nTmEW,3,this.xpEFS[0],[aGjsw_bg],true,0)
var KSNmv=10;
var IPAYu=this.vaIZT(-1)
if(IPAYu)
{
var ncQMA_close=this.uNEeY(-1) 
var marginClose=3
html_SetPosition(IPAYu,this.FBWUJ-ncQMA_close.width-marginClose+this.bJYOZ-1,marginClose+this.bJYOZ-1)
}
var ivKYE_buttons=this.UBqfC.length;
if(this.nmiJn_close_button==true)
{
ivKYE_buttons--;
}
var UdJFj=10;
var duLKk=0;
for(var XLmfh=0;XLmfh<ivKYE_buttons;XLmfh++)
{
if(XLmfh>0) duLKk+=UdJFj;
var ncQMA=this.uNEeY(XLmfh);
duLKk+=ncQMA.width;
}
var Tenbs=(this.FBWUJ-duLKk)/2
for(var XLmfh=0;XLmfh<ivKYE_buttons;XLmfh++)
{
if(XLmfh>0) Tenbs+=UdJFj;
var kBfCg=this.vaIZT(XLmfh);
var ncQMA=this.uNEeY(XLmfh);
html_SetPosition(kBfCg,Tenbs+this.bJYOZ,+this.bJYOZ+this.rmcLw-ncQMA.height-2*KSNmv)
Tenbs+=ncQMA.width;
}
var nvwdg_top=45;
var nvwdg_bottom=this.BUTTON_HEIGHT+2*KSNmv;
if(ivKYE_buttons==0)
{
nvwdg_bottom=0;
}
var nvwdg_content=(this.rmcLw-nvwdg_top-nvwdg_bottom)-KSNmv
var QIMGR=document.getElementById('wa-dialog-content');
var htisr_content=Math.round(this.FBWUJ-2*KSNmv)
var BDgLi=Math.round(nvwdg_content)
this.m_content_lx=htisr_content
this.m_content_ly=BDgLi
html_SetGeometry('wa-dialog-content',Math.round(5+(this.FBWUJ-htisr_content)/2),Math.round(5+nvwdg_top+(nvwdg_content-BDgLi)/2),htisr_content,BDgLi);
this.customUpdate() 
var VsjMV=document.getElementById('wa-dialog-container');
var HcKrX=nvwdg_full_client
HcKrX=Math.max(HcKrX,nvwdg_window) 
var XJpFu=NaIwO
XJpFu=Math.max(XJpFu,iZPYs)
if(this.iYTrK())
{
XJpFu=Math.max(XJpFu,SlgfT_page)
HcKrX=Math.max(HcKrX,nvwdg_page)
}
html_SetSize('wa-dialog-container',XJpFu,HcKrX);
centerFullPageContainer();
}
this.EQIIW();
}
function centerFullPageContainer()
{
var piGkG=WA_Dialog.getCurrent() 
var SlgfT_page=document.webaca_width_page;
var nvwdg_page=document.webaca_height_page;
var VsjMV=document.getElementById('wa-dialog-container');
var NaIwO=getWindowSize().width 
var nvwdg_full_client=getWindowSize().height
var ZiloB_bg=getWindowScroll().y;
var GXSeb=piGkG&&piGkG.iYTrK();
if(GXSeb)
{
ZiloB_bg=0
}
ZiloB_bg=Math.min(ZiloB_bg,nvwdg_page-nvwdg_full_client+1)
ZiloB_bg=Math.max(ZiloB_bg,0)
var cKLmG=getWindowScroll().x;
if(GXSeb)
{
cKLmG=0
}
cKLmG=Math.min(cKLmG,SlgfT_page-NaIwO+1)
cKLmG=Math.max(cKLmG,0)
html_SetPosition('wa-dialog-container',cKLmG,ZiloB_bg,NaIwO,nvwdg_full_client);
}
function isOperaBrowser()
{
return(/opera/i.test(navigator.userAgent))
}
function WA_exec_callback_opera_compliant(FJYHq,KsCqh)
{
if(/opera/i.test(navigator.userAgent))
WA_exec_delayedCallback(FJYHq,KsCqh)
else
KsCqh.call(FJYHq)
}
function WA_exec_delayedCallback(FJYHq,KsCqh)
{
wa_timeout(Delegate.create(FJYHq,KsCqh),0);
}
WA_Dialog.getCurrent=function()
{
return WA_Dialog.plGfp;
}
WA_Dialog.plGfp=false;
WA_Dialog.resizeUI=function()
{
if(WA_Dialog.plGfp)
{
var piGkG=WA_Dialog.plGfp
if(piGkG.iYTrK()==false)
{
piGkG.RksTP()
}
}
}
WA_Dialog.alert=function(s)
{
var w=new WA_Dialog();
w.fBakL(s)
}
WA_Dialog.progress=function()
{
var w=new WA_Dialog(false);
w.progress()
}

function getXMLHttpRequest(fct_callback,MRowO)
{
var http_request=false;
if(window.XMLHttpRequest){
http_request=new XMLHttpRequest();
if(http_request.overrideMimeType){
}
}else if(window.ActiveXObject){
try{http_request=new ActiveXObject("Msxml2.XMLHTTP");
}catch(e){
try{http_request=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}
}
if(!http_request)
{
alert('Cannot create XMLHTTP instance');
return false;
}
http_request.bAxeg=fct_callback
http_request.MRowO=MRowO
http_request.onreadystatechange=function()
{
var req=this 
if(req.readyState==4)
{
this.bAxeg(true,this,this.MRowO) 

}
};
return http_request;
}
function makePOSTRequest(url,parameters,callback,Disno)
{
var http_request=getXMLHttpRequest(callback,Disno);
http_request.open('POST',url,true);
http_request.setRequestHeader("Content-type","application/x-www-form-urlencoded");
http_request.setRequestHeader("Content-length",parameters.length);
http_request.setRequestHeader("Connection","close");
http_request.send(parameters);
}
function intern_WA_responseForm(CwKdh,nJORS,MRowO)
{
var result=nJORS.responseText
var n=result.indexOf("BEGIN_IS_PHP=1")
if(n==-1)
{
WA_Dialog.alert(Translator.tr("Error:No php on server"));
}
else
{
n=result.indexOf("mail_sended=1")
if(n>-1)
{
var KvPbT=MRowO[0] 
WA_Dialog.alert(Translator.tr("Success:Mail sended"));
var form=document.getElementById(KvPbT);
form.reset()
}
else
{
var idrXf="error_string="
n=result.indexOf(idrXf)
if(n>-1)
{
result=result.substring(n+idrXf.length)
n=result.indexOf("END_IS_PHP")
if(n>-1)
{
result=result.substring(0,n)
}
WA_Dialog.alert(result);
}
else
{
WA_Dialog.alert("*error send mail!");
}
}
}
}
function WA_form_action(id_form,action,b_email_is_valid)
{
var form=document.getElementById(id_form);
var poststr=""
for(var i=0;i<form.elements.length;i++)
{
var el=form.elements[i];
el.style.backgroundColor="#ffffff"
if((el.value.length==0)&&(el.name.indexOf("_mandatory")>-1))
{
el.style.backgroundColor="#ff0000";el.focus();return;
}
var bIaaw=el.value
bIaaw=encodeURI(bIaaw)
bIaaw=bIaaw.replace(/&/g,escape("&")) 
poststr+=el.name.replace("_mandatory","")+"="+bIaaw+"&"
}
if(b_email_is_valid==false)
{
WA_Dialog.alert(Translator.tr("Email have to be filled in order to the form works correctly"));return;
}
if(document.webaca_is_preview)
{
WA_Dialog.alert(Translator.tr("Operation not allowed in preview mode"));return;
}
WA_Dialog.progress();
makePOSTRequest(action,poststr,intern_WA_responseForm,[id_form]);
}
function WA_form_submit(iRbXe)
{
var mpmkN=document.getElementById(iRbXe);
mpmkN.submit() 
}
function vfMPA(NhMPa,MRowO)
{
var onMHu=MRowO[0]
if(onMHu==13)
{
var iRbXe=NhMPa+"-form";
var mpmkN=document.getElementById(iRbXe);
for(var i=0;i<mpmkN.elements.length;i++)
{
var aVhTs=mpmkN.elements[i];
if((aVhTs.type=="textarea")&&(aVhTs.focused))return true;
}
WA_form_submit(iRbXe);
return false;
}
return true;
}
function WA_addFormDeclaration(NhMPa,LukUP)
{
return WA_addHandler(NhMPa,"keypress",vfMPA)
}
function WA_form_bg(id,lx,ly,arc,inCla,bord_col,bg,shadow,nEpDB,erEkF)
{
WA_bg(id,lx,ly,arc,inCla,bord_col,bg,shadow,nEpDB,1.0,true) 
var CnvfX=erEkF.x;
var fGcsf=0;
var HhlFq=erEkF.cells
for(var n=0;n<HhlFq.length;n++)
{
var Xljfu=HhlFq[n]
var arc2=0
LZqLV(id,CnvfX,fGcsf+Xljfu.y,erEkF.w,Xljfu.h,arc2,1,erEkF.border,[''],false,0,1.0,false)
LZqLV(id,CnvfX,fGcsf+Xljfu.y,Xljfu.w,Xljfu.h,arc2,1,"rgba(0,0,0,0)",[erEkF.bg],false,0,1.0,false)
}
}
function WA_form_reset(id_form)
{
var form=document.getElementById(id_form);
form.reset() 
}
var BrowserDetect={
init:function(){
this.browser=this.searchString(this.dataBrowser)||"An unknown browser";
this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";
this.OS=this.searchString(this.dataOS)||"an unknown OS";
},searchString:function(data){
for(var i=0;i<data.length;i++){
var dataString=data[i].string;var dataProp=data[i].prop;
this.versionSearchString=data[i].versionSearch||data[i].identity;
if(dataString){
if(dataString.indexOf(data[i].subString)!=-1)
return data[i].identity;
}
else if(dataProp)
return data[i].identity;
}
},searchVersion:function(dataString){
var index=dataString.indexOf(this.versionSearchString);
if(index==-1) return;
return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
},
dataBrowser:[
{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},
{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}
],dataOS:[
{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}
]
};
BrowserDetect.init();
function RGBColor(PCiai)
{
this.ok=false;this.a=1.0;
if(PCiai.charAt(0)=='#'){PCiai=PCiai.substr(1);}
PCiai=PCiai.replace(/ /g,'');
PCiai=PCiai.toLowerCase();
var WLpXs=[
{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d{1,2}\.*\d{0,2})\)$/,_process:function(bits){return [ parseInt(bits[1]),parseInt(bits[2]),parseInt(bits[3]),parseFloat(""+bits[4]) ];}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,_process:function(bits){return [ parseInt(bits[1]),parseInt(bits[2]),parseInt(bits[3])];}},{re:/^(\w{2})(\w{2})(\w{2})(\w{2})$/,_process:function(bits){return [ parseInt(bits[1],16),parseInt(bits[2],16),parseInt(bits[3],16),Math.round(parseInt(bits[4],16)*100/255)/100 ];}},{re:/^(\w{2})(\w{2})(\w{2})$/,_process:function(bits){return [ parseInt(bits[1],16),parseInt(bits[2],16),parseInt(bits[3],16) ];}}
];
for(var i=0;i<WLpXs.length;i++){
var cwsbJ=WLpXs[i].re;
var bRGRm=WLpXs[i]._process;
var hWpZD=cwsbJ.exec(PCiai);
if(hWpZD){
var vViiU=bRGRm(hWpZD);
this.r=vViiU[0];this.g=vViiU[1];this.b=vViiU[2];this.a=vViiU[3];
this.ok=true;
}
}
this.r=(this.r<0||isNaN(this.r))?0:((this.r>255)?255:this.r);
this.g=(this.g<0||isNaN(this.g))?0:((this.g>255)?255:this.g);
this.b=(this.b<0||isNaN(this.b))?0:((this.b>255)?255:this.b);
this.a=(this.a>1||isNaN(this.a))?1:((this.a<0)?0:this.a);
this.toRGB=function()
{
if(this.a==1)return 'rgb('+this.r+', '+this.g+', '+this.b+')';
return 'rgba('+this.r+', '+this.g+', '+this.b+','+this.a+')';
}
this.toRGB_opaque=function()
{
return 'rgb('+this.r+', '+this.g+', '+this.b+')';
}
this.toHsl=function(){
var r=this.r;var g=this.g;var b=this.b;r/=255,g/=255,b/=255;
var max=Math.max(r,g,b),min=Math.min(r,g,b);
var h,s,l=(max+min)/2;
if(max==min){h=s=0;
}else{
var d=max-min;s=l>0.5?d/(2-max-min):d/(max+min);
switch(max){
case r:h=(g-b)/d+(g<b?6:0);break;
case g:h=(b-r)/d+2;break;
case b:h=(r-g)/d+4;break;
}
h/=6;
}
return [h,s,l];
}
this.OqVkD=function(p,q,t)
{
if(t<0) t+=1;if(t>1) t-=1;if(t<1/6) return p+(q-p)*6*t;if(t<1/2) return q;if(t<2/3) return p+(q-p)*(2/3-t)*6;
return p;
};
this.fromHsl=function(h,s,l){
if(l>1.0)l=1.0
var r,g,b;
if(s==0){r=g=b=l;
}else{
var q=l<0.5?l*(1+s):l+s-l*s;
var p=2*l-q;
r=this.OqVkD(p,q,h+1/3);g=this.OqVkD(p,q,h);b=this.OqVkD(p,q,h-1/3);
}
r=r*255;g=g*255;b=b*255;
r=Math.round(r);g=Math.round(g);b=Math.round(b);
if(r<0)r=-r;if(g<0)g=-g;if(b<0)b=-b
this.r=r;this.g=g;this.b=b;
};
}
function kZAes(QuvpG,MRowO)
{
if(document.wa_global_handlers!=undefined)
{
var NhMPa=WA_focused_element()
if(NhMPa)
{
var PFUtC=document.wa_global_handlers[NhMPa+"-"+QuvpG]
if(PFUtC) return PFUtC([NhMPa],MRowO)
}
}
return true;
}
function UnRLr(e)
{
if(window.event){return e.keyCode;}
else 
if(e.which) return  e.which;
return-1;
}
function WA_onkeypress(e)
{
var onMHu=UnRLr(e);
if(WA_Dialog.plGfp)
{
if(WA_Dialog.plGfp.onkeypress(onMHu))
{
return false;
}
}
return kZAes("keypress",[onMHu]);
}
function WA_ondblclick(e)
{
return kZAes("dblclic",[""]);
}
function WA_onkeydown(e)
{
var onMHu=UnRLr(e)
if(WA_Dialog.plGfp)
{
if(WA_Dialog.plGfp.onkeydown(onMHu))
{
return false;
}
}
if(onMHu==13) return true;

if(wa_global_photo_album&&wa_global_photo_album.fullpage_object)
{
var FJYHq=wa_global_photo_album.fullpage_object
return FJYHq.onFullScreenKeydown(onMHu) 
}
return kZAes("keydown",[onMHu]);
}
function WA_genericMouseWheelHandler(e)
{
var delta=0;
if(!e) e=window.event;
if(e.wheelDelta){
delta=e.wheelDelta/120;
if(window.opera) delta=-delta;
}else if(e.detail){
delta=-e.detail/3;
}
if(navigator.userAgent.match(/opera/i)) delta=-delta;
var b_default=false;
if(delta)
{
if(document.wa_global_handlers!=undefined)
{
var NhMPa=this.id
var PFUtC=document.wa_global_handlers[NhMPa+"-mousewheel"]
if(PFUtC)
{
if(PFUtC([NhMPa],[delta]))
{
b_default=true;
}
}
}
}
if(b_default)
if(e.preventDefault)
e.preventDefault();
e.returnValue=!b_default;
}
function WA_addHandler(NhMPa,QuvpG,KsCqh)
{
if(document.wa_global_handlers==undefined) document.wa_global_handlers=new Array()
if(QuvpG=="mousewheel")
{
var asqGl=document.getElementById(NhMPa);
if(asqGl.addEventListener)
asqGl.addEventListener('DOMMouseScroll',WA_genericMouseWheelHandler,false);
asqGl.onmousewheel=WA_genericMouseWheelHandler
}
document.wa_global_handlers[NhMPa+"-"+QuvpG]=KsCqh
}
function WA_loadPhotoAlbum(NhMPa,ALDAK,wqLRn,NhMPa_modif)
{
if(typeof(wa_global_photo_album[NhMPa])=="undefined")
{
var o=new Array();
o.src_folder=ALDAK
o.size_container=wqLRn
o.id_modif=NhMPa_modif
wa_global_photo_album[NhMPa]=o;
}
}
function WA_focused_element()
{
return document.wa_global_focused_element
}
function WA_focus(FJYHq)
{
document.wa_global_focused_element=FJYHq.id
}
function WA_loadScript(url,callback,params)
{
var e=document.createElement("script");
e.src=url;
e.type="text/javascript";
e.onerror=function(){callback(params,false);}
if(/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)){
e.onreadystatechange=function(){
if((this.readyState=='complete')||(this.readyState=='loaded')){
callback(params,true);
}
}
}else
{
e.onload=function(){
if(/opera/i.test(navigator.userAgent))
wa_timeout(callback,0,params,true);
else
callback(params,true);
}
}
document.getElementsByTagName("head")[0].appendChild(e);
}
function WA_blog_declare(WXDmI,qrOFB,sphAB)
{
if(!document.wa_global_blogs_elements)document.wa_global_blogs_elements=new Array()
if(!document.wa_global_blogs_buttons)document.wa_global_blogs_buttons=new Array()
if(!document.wa_global_blogs_elements[qrOFB])document.wa_global_blogs_elements[qrOFB]=new Array()
document.wa_global_blogs_elements[qrOFB].id_blog=WXDmI
document.wa_global_blogs_elements[qrOFB].has_email=sphAB
}
function WA_addSearchHandler(NhMPa)
{
return WA_addHandler(NhMPa,"keypress",XTtIk)
}
function XTtIk(NhMPa,MRowO)
{
var onMHu=MRowO[0]
if(onMHu==13)
{
var oPmac=NhMPa+"-search-input";
WA_onSearch(oPmac)
return false;
}
return true;
}
function WA_declareSearchIndex(bRFDO,aoHJl)
{
document.const_wa_search_js=bRFDO
document.const_wa_search_index_js=aoHJl
}
function WA_onSearch(oPmac)
{
var dIaFl=document.getElementById(oPmac);
if(document.wa_search_js_loaded==true)
{
WA_openSearchDialog(dIaFl,document.const_wa_search_index_js)
}
else
{
WA_Dialog.progress();
fOQth(dIaFl)
}
}
function lWSLN(MRowO)
{
document.wa_search_js_loaded=true
WA_openSearchDialog(MRowO[0],document.const_wa_search_index_js)
}
function fOQth(SDbDJ)
{
WA_loadScript(document.const_wa_search_js,lWSLN,[SDbDJ])
}
function EQELA(offset){
var endstr=document.cookie.indexOf(";",offset);
if(endstr==-1)
endstr=document.cookie.length;
return unescape(document.cookie.substring(offset,endstr));
}
function WA_GetCookie(name)
{
var arg=name+"=";
var alen=arg.length;
var clen=document.cookie.length;
var i=0;
while(i<clen)
{
var j=i+alen;
if(document.cookie.substring(i,j)==arg)
return EQELA(j);
i=document.cookie.indexOf(" ",i)+1;
if(i==0) break;
}
return "";
}
function WA_SetCookie(name,value){
var argv=WA_SetCookie.arguments;
var argc=WA_SetCookie.arguments.length;
var expires=(argc>2)?argv[2]:null;
var path=(argc>3)?argv[3]:null;
var domain=(argc>4)?argv[4]:null;
var secure=(argc>5)?argv[5]:false;
document.cookie=name+"="+escape(value)+((expires==null)?"":("; expires="+expires.toGMTString()))+((path==null)?"":("; path="+path))+((domain==null)?"":("; domain="+domain))+((secure==true)?"; secure":"");
}
function WA_bg_menu(NhMPa)
{
var UsjdU=document.wa_global_menu_declaration[NhMPa]
WA_bg(NhMPa,UsjdU.root_lx,UsjdU.root_ly,UsjdU.root_corner,UsjdU.root_border,UsjdU.root_col_border,[UsjdU.root_bg],false,0)
var aVhTs=document.getElementById(UsjdU.id)
if(!aVhTs)return;
var c=aVhTs.getContext('2d');
c.lineWidth=1
c.strokeStyle=UsjdU.root_col_separator
var SnbLR=0.5;

var RgtdM=UsjdU.root_sizes.length
if(UsjdU.root_extend==false)
{
RgtdM--;
}
var PQHdN=3;
for(var i=0;i<RgtdM;i++)
{
var wqLRn=UsjdU.root_sizes[i] 

c.beginPath();
if(UsjdU.root_vertical==false)
{
SnbLR+=(wqLRn-1)
c.moveTo(SnbLR,PQHdN)
c.lineTo(SnbLR,UsjdU.root_ly-PQHdN)
}
else
{
SnbLR+=(wqLRn)
c.moveTo(PQHdN,SnbLR-1,0)
c.lineTo(UsjdU.root_lx-PQHdN,SnbLR-1)
}
c.closePath();
c.stroke()
}
}
function WA_declare_menu(NhMPa,UsjdU)
{
if(!document.wa_global_menu_declaration)document.wa_global_menu_declaration=new Array();
UsjdU.id=NhMPa
document.wa_global_menu_declaration[NhMPa]=UsjdU
WA_bg_menu(NhMPa)
}
function WA_declareMarket(NhMPa,eBvno_market,NhMPa_modif)
{
if(typeof(wa_global_market.markets[NhMPa])=="undefined")
{
var o=new Array();
o.src_folder=eBvno_market
o.id_modif=NhMPa_modif 

o.id=NhMPa
wa_global_market.markets[NhMPa]=o;
}
}
function WA_button_market_declare(NhMPa,lAwDt)
{
if(!document.wa_global_button_market_declaration)document.wa_global_button_market_declaration=new Array();
document.wa_global_button_market_declaration[NhMPa]=lAwDt
}
function BksMr(c,img,TgUgc,ZiloB,SlgfT,nvwdg,srjAV,saLuE,CDCAb)
{
c.globalAlpha=saLuE
if(CDCAb) c.clearRect(0,0,SlgfT,nvwdg) 
if(saLuE==0)return;
if(srjAV)
{
c.drawImage(img,srjAV.x,srjAV.y,srjAV.width,srjAV.height,TgUgc,ZiloB,SlgfT,nvwdg)
}
else
{
c.drawImage(img,TgUgc,ZiloB,SlgfT,nvwdg)
}
}
function WA_drawImage(id,xNPgr,TgUgc,ZiloB,SlgfT,nvwdg,srjAV,saLuE,CDCAb)
{
if(CDCAb==undefined)CDCAb=true;
if(saLuE==undefined)saLuE=1.0;
var el=document.getElementById(id)
if(!el)return
var c=el.getContext('2d');
c.shadowOffsetX=0;c.shadowOffsetY=0;c.shadowBlur=0;
if(c.old_src==xNPgr)
{
BksMr(c,c.KsfmC,TgUgc,ZiloB,SlgfT,nvwdg,srjAV,saLuE,CDCAb)
return;
}
var img=new Image();
img.PvVpg=el.PvVpg
img.onload=function()
{
c.old_src=xNPgr
c.KsfmC=this;
BksMr(c,this,TgUgc,ZiloB,SlgfT,nvwdg,srjAV,saLuE,CDCAb)
}
img.src=xNPgr;
}

-->
