<!--

function Delegate(){}
Delegate.create=function(o,f){
var pwOen=new Array();
var PoCSB=arguments.length;
for(var i=2;i<PoCSB;i++) pwOen[i-2]=arguments[i];
return function(){
var QNKsV=[].concat(arguments,pwOen);
f.apply(o,QNKsV);
}
}
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.ZcGAj=0;
t.AYvRC=0;
t.EaGHO=0;
t.hPcHa=0;
t.vpcbR=0;
t.UZQIP=0;
t.YUUvV=false;
t.name='';
t.suffixe='';
t.WWsCg=new Array();
t.setTime=function(t){
this.prevTime=this.AYvRC;
if(t>this.getDuration()){
if(this.looping){
this.rewind(t-this.ZcGAj);
this.update();
this.mvahY('onMotionLooped',{target:this,type:'onMotionLooped'});
}else{
this.AYvRC=this.ZcGAj;
this.update();
this.stop();
this.mvahY('onMotionFinished',{target:this,type:'onMotionFinished'});
}
}else if(t<0){
this.rewind();
this.update();
}else{
this.AYvRC=t;
this.update();
}
}
t.isRunning=function(){
return this.YUUvV;
}
t.getTime=function(){
return this.AYvRC;
}
t.setDuration=function(d){
this.ZcGAj=(d==null||d<=0)?100000:d;
}
t.getDuration=function(){
return this.ZcGAj;
}
t.setPosition=function(p){
this.prevPos=this.EaGHO;
var a=this.suffixe!=''?this.suffixe:'';
this.obj[this.prop]=Math.round(p)+a;
this.EaGHO=p;
this.mvahY('onMotionChanged',{target:this,type:'onMotionChanged'});
}
t.getPosition=function(t){
if(t==undefined) t=this.AYvRC;
return this.func(t,this.begin,this.change,this.ZcGAj);
};
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.WWsCg=new Array();
this.addListener(this);
if(suffixe) this.suffixe=suffixe;
this.obj=obj;
this.prop=prop;
this.begin=begin;
this.EaGHO=begin;
this.setDuration(duration);
if(func!=null&&func!=''){
this.func=func;
}
this.setFinish(finish);
}
t.start=function(){
this.rewind();
this.startEnterFrame();
this.mvahY('onMotionStarted',{target:this,type:'onMotionStarted'});
}
t.rewind=function(t){
this.stop();
this.AYvRC=(t==undefined)?0:t;
this.fixTime();
this.update();
}
t.fforward=function(){
this.AYvRC=this.ZcGAj;
this.fixTime();
this.update();
}
t.update=function(){
this.setPosition(this.getPosition(this.AYvRC));
}
t.startEnterFrame=function(){
this.stopEnterFrame();
this.YUUvV=true;
this.onEnterFrame();
}
t.onEnterFrame=function(){
if(this.YUUvV){
this.nextFrame();
wa_timeout(Delegate.create(this,this.onEnterFrame),0);
}
}
t.nextFrame=function(){
this.setTime((this.getTimer()-this.vpcbR)/1000);
}
t.stop=function(){
this.stopEnterFrame();
this.mvahY('onMotionStopped',{target:this,type:'onMotionStopped'});
}
t.stopEnterFrame=function(){
this.YUUvV=false;
}
t.continueTo=function(finish,duration){
this.begin=this.EaGHO;
this.setFinish(finish);
if(this.ZcGAj!=undefined)
this.setDuration(duration);
this.start();
}
t.resume=function(){
this.fixTime();
this.startEnterFrame();
this.mvahY('onMotionResumed',{target:this,type:'onMotionResumed'});
}
t.yoyo=function(){
this.continueTo(this.begin,this.AYvRC);
}
t.addListener=function(o){
this.removeListener(o);
return this.WWsCg.push(o);
}
t.removeListener=function(o){
var a=this.WWsCg;
var i=a.length;
while(i--){
if(a[i]==o){
a.splice(i,1);
return true;
}
}
return false;
}
t.mvahY=function(){
var arr=new Array();
for(var i=0;i<arguments.length;i++){
arr.push(arguments[i])
}
var e=arr.shift();
var a=this.WWsCg;
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.vpcbR=this.getTimer()-this.AYvRC*1000;
}
t.getTimer=function(){
return new Date().getTime()-this.AYvRC;
}
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,BbIDn,VGJui,ZcGAj){
this.targetObject=obj;
this.init(new Object(),'a',func,BbIDn,VGJui,ZcGAj);
this.onMotionChanged=function(evt){
var v=evt.target.EaGHO;
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(LFSwC,aRfvH,bUPUU)
{
return "<canvas id='"+LFSwC+"' width='"+aRfvH+"' height='"+bUPUU+"'></canvas>"
}
function WA_canvas(LFSwC,aRfvH,bUPUU)
{
document.write(html_canvas(LFSwC,aRfvH,bUPUU))
}
function YjrFg(Vtfwi,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;
Vtfwi.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;
Vtfwi.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;
Vtfwi.quadraticCurveTo(cx,cy,px,py);
}
}
function GeSsf(c,x,y,lx,ly,arc,clowckwise)
{
c.beginPath()
vFawV(c,x,y,lx,ly,arc,clowckwise)
}
function vFawV(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 wKoQq()
{
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 YkgWS(lx,ly,parent,id_suffixe)
{
var FwBxo=document.createElement('canvas');FwBxo.width=lx;FwBxo.height=ly;
return FwBxo;
}
function ssSKb(gJEtN)
{
var NcJrx=(-gJEtN+45);
return new Point(Math.cos(NcJrx*(2*Math.PI)/360),Math.sin(NcJrx*(2*Math.PI)/360))
}
function AUhkE(c,gJEtN)
{
var offset=ssSKb(gJEtN)
c.shadowOffsetX=2*offset.x;
c.shadowOffsetY=2*offset.y;
c.shadowBlur=4;
}
function WA_over_img_html(FKhSt,ZHLoB,joTnL)
{
if(!FKhSt.src)
{
var sTUQL=FKhSt.getElementsByTagName("IMG")
if(sTUQL.length==1)FKhSt=sTUQL[0]
}
if(FKhSt.src1==undefined)
{
FKhSt.src1=FKhSt.src;
FKhSt.src2=ZHLoB;
}
if(joTnL)
{
FKhSt.src=FKhSt.src2;
}
else
{
FKhSt.src=FKhSt.src1;
}
}
function WA_over_img(id,joTnL)
{
var el=document.getElementById(id+"-canvas") 

var FKhSt=(joTnL)?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,[FKhSt,FKhSt],el.wa_shadow,el.wa_rot,el.wa_reflex,joTnL)
}
function gOlBE(LFSwC,lx,ly,arc,side)
{
this.id=LFSwC;
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.SgJFF=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 UIwFK=document.getElementById(this.id+"-reflex")
var kTXpI=UIwFK.getContext('2d');

var veZSZ=0;
var HfoJY=0;
if(this.side==2)
{
veZSZ=this.lx;
HfoJY=-this.ly*0.75;
}
else
if(this.side==0)
{
veZSZ=this.lx;
}
else
if(this.side==3)
{
veZSZ=0.25*this.lx;
}
else
if(this.side==1)
{
veZSZ=this.lx;
}
kTXpI.translate(veZSZ,HfoJY)
kTXpI.scale(-1,1)
kTXpI.beginPath()
GeSsf(kTXpI,1,1,this.lx-2,this.ly-2,this.arc)
kTXpI.clip() 

kTXpI.drawImage(canv2,this.sX,this.sY,this.sLx,this.sLy,this.sX,this.sY,this.sLx,this.sLy);
kTXpI.globalCompositeOperation="destination-out";
var gradient=kTXpI.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)");
kTXpI.fillStyle=gradient;
kTXpI.beginPath()
kTXpI.rect(this.sX-this.decX,this.sY-this.decY,this.sLx,this.sLy);
kTXpI.fill();
kTXpI.globalCompositeOperation="source-over";
kTXpI.scale(-1,1)
kTXpI.translate(-veZSZ,-HfoJY) 
}
}
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 XfpwV(c2,lx,ly,vWcDV,bord_col,arc,arc2)
{
if(vWcDV>0)
{
c2.beginPath()
c2.fillStyle=bord_col;
c2.beginPath()
GeSsf(c2,0,0,lx,ly,arc)
vFawV(c2,vWcDV,vWcDV,lx-2*vWcDV,ly-2*vWcDV,arc2,true)
c2.fill()
}
}
function MdsmW()
{
this.tx=0
this.ty=0
this.rotation=0
}
function pFMFs(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 MdsmW()
}
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 ULnNa=0;
if(shadow)ULnNa=6
var rxkUX=id+"-canvas"
var el=document.getElementById(rxkUX)
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)-ULnNa,div.wa_pos.y-ULnNa)
html_SetCanvasSize(el,div.wa_size.height+2*ULnNa,div.wa_size.width+2*ULnNa)
html_SetCanvasSize(canv2,div.wa_size.height+4*ULnNa,div.wa_size.width+4*ULnNa)
html_SetSize(div,div.wa_size.height+2*ULnNa,div.wa_size.width+2*ULnNa) 
matrix.tx=ly+2*ULnNa
matrix.ty=2*ULnNa
}
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-ULnNa,div.wa_pos.y-lx-ULnNa)
html_SetCanvasSize(el,div.wa_size.height+2*ULnNa,div.wa_size.width+2*ULnNa)
html_SetCanvasSize(canv2,div.wa_size.height+4*ULnNa,div.wa_size.width+4*ULnNa)
html_SetSize(div,div.wa_size.height+2*ULnNa,div.wa_size.width+2*ULnNa) 
matrix.tx=2*ULnNa
matrix.ty=lx+2*ULnNa
}
matrix.rotation=rot*2*Math.PI/360
c2.translate(matrix.tx,matrix.ty)
c2.rotate(matrix.rotation)
}
}
function WA_img(id,lx,ly,arc,vWcDV,bord_col,s_img,shadow,rot,VYehQ,b_over)
{
var rxkUX=id+"-canvas"
var el=document.getElementById(rxkUX)
var c=el.getContext('2d');
var mfhtD=false;
if((VYehQ!=undefined)&&(VYehQ!=-1))
{
mfhtD=new gOlBE(rxkUX,lx,ly,arc,VYehQ)
}
var ULnNa=0;
if(shadow)ULnNa=6 


if(el.wa_lx==undefined)
{
el.wa_lx=lx
el.wa_ly=ly
el.wa_arc=arc
el.wa_bord_siz=vWcDV
el.wa_bord_col=bord_col
el.wa_s_img=s_img
el.wa_shadow=shadow
el.wa_rot=rot
el.wa_reflex=VYehQ
c.translate(ULnNa,ULnNa)
}
var bSiCf_img=document.getElementById(id+"-cache")
bSiCf_img.onload=function()
{
c.clearRect(0,0,lx+2*ULnNa,ly+2*ULnNa)
var arc2=arc-vWcDV;
if(arc2<0)arc2=0;
this.width=lx-2*vWcDV
this.height=ly-2*vWcDV
if(isMSIE())
{
if(shadow) HTKqT(c,0,0,lx,ly,arc,false,rot)
var atZie=c.createPattern(this,'no-repeat');
c.fillStyle=atZie;
c.beginPath()
GeSsf(c,vWcDV,vWcDV,lx-2*vWcDV,ly-2*vWcDV,arc2)
c.translate(vWcDV,vWcDV)
c.fill()
c.translate(-vWcDV,-vWcDV)
XfpwV(c,lx,ly,vWcDV,bord_col,arc,arc2)
}
else
if(navigator.userAgent.match(/Firefox/i)&&(shadow))
{
var UMQgY=new  MdsmW()
pFMFs(id,lx,ly,rot,c,el,shadow,UMQgY)
if(shadow) HTKqT(c,0,0,lx,ly,arc,false,rot)
var c2=c
XfpwV(c2,lx,ly,vWcDV,bord_col,arc,arc2)
c2.beginPath()
GeSsf(c2,vWcDV,vWcDV,lx-2*vWcDV,ly-2*vWcDV,arc2)
c2.clip()
c2.drawImage(this,vWcDV,vWcDV,lx-2*vWcDV,ly-2*vWcDV);
c2.rotate(-UMQgY.rotation)
c2.translate(-UMQgY.tx,-UMQgY.ty)
}
else
{
var canv2=YkgWS(lx,ly,el,"bis2");
var c2=canv2.getContext('2d');
var UMQgY=new  MdsmW()
pFMFs(id,lx,ly,rot,c2,canv2,shadow,UMQgY)
c.clearRect(-ULnNa,-ULnNa,lx+2*ULnNa,ly+2*ULnNa)
XfpwV(c2,lx,ly,vWcDV,bord_col,arc,arc2)
c2.beginPath()
GeSsf(c2,vWcDV,vWcDV,lx-2*vWcDV,ly-2*vWcDV,arc2)
c2.clip()
c2.drawImage(this,vWcDV,vWcDV,lx-2*vWcDV,ly-2*vWcDV);
c2.rotate(-UMQgY.rotation)
c2.translate(-UMQgY.tx,-UMQgY.ty)
if(shadow) AUhkE(c,rot)
c.drawImage(canv2,0,0);
c2.translate(UMQgY.tx,UMQgY.ty)
c2.rotate(UMQgY.rotation)
if(mfhtD)
{
mfhtD.SgJFF(canv2)
}
}
}
bSiCf_img.src=s_img[0];
}
function RiCOK(onJXO,gJEtN,sOqSw,omeDu)
{
onJXO.style.left=sOqSw+"px"
onJXO.style.top=omeDu+"px"
onJXO.style.webkitTransformOrigin="0 0"
onJXO.style.webkitTransform="rotate("+gJEtN+"deg)";
}
function PAMeQ(c,type,lx,ly,corner)
{
if(type==1)
YjrFg(c,0,0,lx,ly)
else
GeSsf(c,0,0,lx,ly,corner)
}
function SqxFl(el,c,type,lx,ly,corner,bg,cTqGZ,rot)
{
if(wKoQq()==false)
{
c.fillStyle=bg;
PAMeQ(c,type,lx,ly,corner)
c.fill()
}
else
{
var canv2=YkgWS(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.fillStyle=bg;
PAMeQ(c2,type,lx,ly,corner)
c2.fill()
if(cTqGZ) AUhkE(c,rot)
c.drawImage(canv2,0,0);
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
}
}
function gnPEx(c,type,lx,ly,aubBA,bg,hkjgM,mBKWx_glow)
{
if(hkjgM)
{
var x1=hkjgM[0];var y1=hkjgM[1];var lx1=hkjgM[2];var ly1=hkjgM[3];var KgYDC=hkjgM[4];
var BWaCE=c.createLinearGradient(x1,y1,x1,y1+ly1);
BWaCE.addColorStop(0,"rgba(255,255,255,0.7)");BWaCE.addColorStop(1,"rgba(255,255,255,0.1)");
c.fillStyle=BWaCE;
if(type==1) YjrFg(c,x1,y1,lx1,ly1)
else
GeSsf(c,x1,y1,lx1,ly1,KgYDC)
c.fill()
}
if(mBKWx_glow)
{
var x2=mBKWx_glow[0];var y2=mBKWx_glow[1];var lx2=mBKWx_glow[2];var ly2=mBKWx_glow[3];
var XqoMh=mBKWx_glow[4];
var pINns_glow=new RGBColor(mBKWx_glow[5]);
pINns_glow.a=0;
var col1=mBKWx_glow[5];
var col2=pINns_glow.toRGB();
var YskQJ=c.createLinearGradient(x2,y2,x2,y2+ly2);
YskQJ.addColorStop(0,col2);
YskQJ.addColorStop(0.2,col2);
YskQJ.addColorStop(1,col1);
c.fillStyle=YskQJ;
if(type==1) YjrFg(c,x2,y2,lx2,ly2)
else
GeSsf(c,x2,y2,lx2,ly2,XqoMh)
c.fill()
}
}
function mpRbp(CZUIQ,LFSwC,cMpkq,aRfvH,bUPUU,aubBA,hJhrt,hkjgM,mBKWx_glow,cTqGZ,gJEtN)
{
CZUIQ.LFSwC=LFSwC;CZUIQ.cMpkq=cMpkq;
CZUIQ.aRfvH=aRfvH;CZUIQ.bUPUU=bUPUU;
CZUIQ.aubBA=aubBA;CZUIQ.hJhrt=hJhrt,CZUIQ.hkjgM=hkjgM;
CZUIQ.mBKWx_glow=mBKWx_glow;CZUIQ.cTqGZ=cTqGZ;CZUIQ.gJEtN=gJEtN;
}
function WA_but_over(LFSwC,hJhrt_over,pINns_glow)
{
var TcRTJ=document.getElementById(LFSwC) 
if(TcRTJ&&TcRTJ.mDZqE)
with(TcRTJ.mDZqE)
{
var mBKWx_glow_over;
if(mBKWx_glow&&pINns_glow)
{
mBKWx_glow_over=new Array();
for(var SVoWq=0;SVoWq<mBKWx_glow.length;SVoWq++)mBKWx_glow_over[SVoWq]=mBKWx_glow[SVoWq];
mBKWx_glow_over[5]=pINns_glow;
}
WA_but(LFSwC,cMpkq,aRfvH,bUPUU,aubBA,hJhrt_over,hkjgM,mBKWx_glow_over,cTqGZ,gJEtN);
}
var jBhlD_over0=document.getElementById(LFSwC+"-div0")
if(jBhlD_over0)html_SetVisibility(jBhlD_over0,false);
var LLaFb=document.getElementById(LFSwC+"-div1")
if(LLaFb)html_SetVisibility(LLaFb,true);
}
function WA_but_out(LFSwC)
{
var TcRTJ=document.getElementById(LFSwC)
with(TcRTJ.mDZqE)
{
WA_but(LFSwC,cMpkq,aRfvH,bUPUU,aubBA,hJhrt,hkjgM,mBKWx_glow,cTqGZ,gJEtN);
}
var jBhlD_over0=document.getElementById(LFSwC+"-div0")
if(jBhlD_over0)html_SetVisibility(jBhlD_over0,true);
var LLaFb=document.getElementById(LFSwC+"-div1")
if(LLaFb)html_SetVisibility(LLaFb,false);
}
function WA_but(id,type,lx,ly,corner,bg,top_light,s_glow,cTqGZ,rot)
{
var el=document.getElementById(id)
if(el.mDZqE==undefined)
{
el.mDZqE=new Array();
mpRbp(el.mDZqE,id,type,lx,ly,corner,bg,top_light,s_glow,cTqGZ,rot);
}
var c=el.getContext('2d');
var ULnNa=0;
if(cTqGZ)ULnNa=6 
c.fillStyle="#000000";
c.fillRect(0,0,lx+2*ULnNa,ly+2*ULnNa) 
c.clearRect(0,0,lx+2*ULnNa,ly+2*ULnNa) 
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(wKoQq()==false)
{
c.translate(ULnNa,ULnNa)
img.width=lx
img.height=ly 
if(cTqGZ)
HTKqT(c,0,0,lx,ly,corner,(type==1),rot)
if(navigator.userAgent.match(/Firefox/i))
{
c.beginPath()
PAMeQ(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()
PAMeQ(c,type,lx,ly,corner)
c.fill()
}
gnPEx(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-ULnNa,-ULnNa)
}
else
{
var canv2=YkgWS(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.beginPath()
PAMeQ(c2,type,lx,ly,corner)
c2.clip()
c2.drawImage(img,0,0,lx,ly);
gnPEx(c2,type,lx,ly,corner,bg,top_light,s_glow)
if(cTqGZ) AUhkE(c,rot) 
c.drawImage(canv2,ULnNa,ULnNa);
}
}
img.src=bg2;
return;
}
c.translate(ULnNa,ULnNa) 
if(cTqGZ&&(wKoQq()==false))
{
var ODXfV=new RGBColor(bg);
if(ODXfV.a>0)
{
HTKqT(c,0,0,lx,ly,corner,(type==1),rot)
}
}
SqxFl(el,c,type,lx,ly,corner,bg2,cTqGZ,rot)
gnPEx(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-ULnNa,-ULnNa)
}
function HTKqT(c,x0,y0,lx0,ly0,corner,is_circle,rot)
{
var decShadow=2;
var offset=ssSKb(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) YjrFg(c,x,y,lx,ly);else GeSsf(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 CoOAv(id,x,y,lx,ly,arc,vWcDV,bord_col,bg,shadow,rot,IcEau,WJGdZ)
{
if(WJGdZ==undefined)WJGdZ=true;
var el=document.getElementById(id)
var c=el.getContext('2d');
if(IcEau==undefined)IcEau=1.0;
var ULnNa=0;
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
if(shadow)
{
ULnNa=6;
}
if(WJGdZ) c.clearRect(0,0,el.width,el.height)
c.globalAlpha=IcEau 
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 espHl=bg1.split(";");
var x1=parseFloat(espHl[0]);
var y1=parseFloat(espHl[1]);
var x2=parseFloat(espHl[2]);
var y2=parseFloat(espHl[3]);
var col1=espHl[4];
var col2=espHl[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-vWcDV;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
{
if(shadow) HTKqT(c,ULnNa,ULnNa,lx,ly,arc,false,rot)
}
if(vWcDV>0)
{
c2.fillStyle=bord_col;
GeSsf(c2,x,y,lx,ly,arc)
vFawV(c2,x+vWcDV,y+vWcDV,lx-2*vWcDV,ly-2*vWcDV,arc2,true)
c2.fill()
}


c2.fillStyle=fill_obj 
GeSsf(c2,x+vWcDV,y+vWcDV,lx-2*vWcDV,ly-2*vWcDV,arc2)
c2.fill();
}
function YitKT(xvgUE,xruFv,tXlEo)
{
return new Point(Math.round(xvgUE*Math.cos(tXlEo)-xruFv*Math.sin(tXlEo)),Math.round(xvgUE*Math.sin(tXlEo)+xruFv*Math.cos(tXlEo)))
}
function Osaqk(c,x,y,lx,ly,arc,clowckwise,gJEtN)
{
c.beginPath()
qQSrr(c,x,y,lx,ly,arc,clowckwise,gJEtN)
}
function qQSrr(c,x,y,lx,ly,arc,clowckwise,gJEtN)
{
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 HOuSE=[[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=gJEtN*2*Math.PI/360
for(var n=0;n<HOuSE.length;n++)
{
var SrYmR=HOuSE[n][0]
var HgMBn=HOuSE[n][1]
HOuSE[n][0]=SrYmR*Math.cos(theta)-HgMBn*Math.sin(theta);
HOuSE[n][1]=SrYmR*Math.sin(theta)+HgMBn*Math.cos(theta);
}
var n=0;
c.moveTo(HOuSE[n][0],HOuSE[n++][1]);
c.lineTo(HOuSE[n][0],HOuSE[n++][1]);
c.quadraticCurveTo(HOuSE[n][0],HOuSE[n++][1],HOuSE[n][0],HOuSE[n++][1]);
c.lineTo(HOuSE[n][0],HOuSE[n++][1]);
c.quadraticCurveTo(HOuSE[n][0],HOuSE[n++][1],HOuSE[n][0],HOuSE[n++][1]);
c.lineTo(HOuSE[n][0],HOuSE[n++][1]);
c.quadraticCurveTo(HOuSE[n][0],HOuSE[n++][1],HOuSE[n][0],HOuSE[n++][1]);
c.lineTo(HOuSE[n][0],HOuSE[n++][1]);
c.quadraticCurveTo(HOuSE[n][0],HOuSE[n++][1],HOuSE[n][0],HOuSE[n++][1]);
}
function tqnji(a,b,x,y)
{
return(a*x-y+b)/(Math.sqrt(1+a*a))
}
function HRJMK(new_a1,new_b1,YcflG,multi)
{
var d=0;
for(var i=0;i<YcflG.length;i++)
{
var tHYMj=YcflG[i]
var d1=tqnji(new_a1,new_b1,tHYMj.x,tHYMj.y)
if(multi<0)
{
if(d1<0) d=Math.max(d,-d1);
}
else
{
if(d1>0) d=Math.max(d,d1);
}
}
return d;
}
function IGFET(o1,o2)
{
if(o1<o2) return-1
if(o1>o2) return 1
return 0
}
function VSAav(c,lx,ly,bg1)
{
var fill_obj=false;
var bEEMN=false;
var unnXU=false;
var YcflG=false
if(bg1.substring(0,1)=="(")
{
bg1=bg1.substring(1);
bg1=bg1.substring(0,bg1.length-1)
var espHl=bg1.split(";");
var NsNna=new Point(parseFloat(espHl[0]),parseFloat(espHl[1]));
var egjvx=new Point(parseFloat(espHl[2]),parseFloat(espHl[3]));
bEEMN=NsNna.clone()
unnXU=egjvx.clone()
var col1=espHl[4];
var col2=espHl[5];
var grad=c.createLinearGradient(bEEMN.x,bEEMN.y,unnXU.x,unnXU.y);
if(isMSIE())
{
bEEMN=NsNna.clone()
unnXU=egjvx.clone() 
var BWaCE=0;
var YskQJ=1;
{
YcflG=[{x:0,y:0},{x:lx,y:0},{x:lx,y:ly},{x:0,y:ly}]
var d1=0;
var d2=0;
var a=(unnXU.y-bEEMN.y)/(unnXU.x-bEEMN.x);
var b=bEEMN.y-a*bEEMN.x;
var diff=1;
if(a==Infinity)
{
d1=(bEEMN.y)
d2=(ly-unnXU.y)
}
else
if(a==0)
{
d1=(bEEMN.x)
d2=(lx-unnXU.x)
}
else
{
var new_a1=-1/a;
var new_b1=bEEMN.y-new_a1*bEEMN.x;
d1=HRJMK(new_a1,new_b1,YcflG,-1)
var new_b2=unnXU.y-new_a1*unnXU.x;
d2=HRJMK(new_a1,new_b2,YcflG,1)
if(new_a1<0)diff=-1;
}
var d=Math.sqrt(Math.pow(unnXU.x-bEEMN.x,2)+Math.pow(unnXU.y-bEEMN.y,2))
var total=(d1+d+d2)
BWaCE=d1/total;
YskQJ=(d1+d)/total;
var pt_prod0=new Point(unnXU.x-bEEMN.x,unnXU.y-bEEMN.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)
{
BWaCE=d2/total;
YskQJ=(d2+d)/total;
}
}
grad.addColorStop(BWaCE,col1);
grad.addColorStop(YskQJ,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,vWcDV,bord_col,bg,shadow,rot,nADjP,WeTTf,IcEau,WJGdZ)
{


var theta=rot*2*Math.PI/360 
if(WJGdZ==undefined)WJGdZ=true;
if(IcEau==undefined)IcEau=1.0;
var el=document.getElementById(id)
if(!el)return
var c=el.getContext('2d');
var ULnNa=(el.width-lx)/2;
if(WJGdZ) c.clearRect(0,0,el.width,el.height)
var x_rect0=ULnNa;
var y_rect0=ULnNa;
var bg1=bg[0]
var fill_obj=false;
var bEEMN=false;
var unnXU=false;
var YcflG=false
fill_obj=VSAav(c,lx,ly,bg1) 
if(IcEau==undefined)IcEau=1.0;
var arc2=arc-vWcDV;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
if(shadow)
{
c2.translate(nADjP+6,WeTTf+6)
}
else
{
c2.translate(nADjP,WeTTf)
}
c2.fillStyle=fill_obj;
Osaqk(c2,vWcDV,vWcDV,lx-2*vWcDV,ly-2*vWcDV,arc2,false,rot)
c2.fill();
}
function WA_bg(id,lx,ly,arc,vWcDV,bord_col,bg,shadow,rot,IcEau,WJGdZ)
{

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

var fill_obj=VSAav(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()
Fccag(c,el,lx,ly,arc,vWcDV,bord_col,ptrn,shadow,rot,IcEau)
}
img.src=bg2;
}
else
{
Fccag(c,el,lx,ly,arc,vWcDV,bord_col,fill_obj,shadow,rot,IcEau)
}
}
function Fccag(c,el,lx,ly,arc,vWcDV,bord_col,fill_obj,shadow,rot,IcEau)
{
if(IcEau==undefined)IcEau=1.0;
var arc2=arc-vWcDV;
if(arc2<0)arc2=0
var ULnNa=(el.width-lx)/2;
var x_rect0=ULnNa;
var y_rect0=ULnNa;
var canv2=false;
var c2=c;
c.globalAlpha=IcEau
if(wKoQq()==true)
{
canv2=YkgWS(lx,ly);
c2=canv2.getContext('2d');
c2.globalAlpha=IcEau
}
else
{
c2.translate(ULnNa,ULnNa)
if(shadow) HTKqT(c,0,0,lx,ly,arc,false,rot)
}
if(vWcDV>0)
{
c2.fillStyle=bord_col;
GeSsf(c2,0,0,lx,ly,arc)
vFawV(c2,vWcDV,vWcDV,lx-2*vWcDV,ly-2*vWcDV,arc2,true)
c2.fill()
}
c2.fillStyle=fill_obj;
GeSsf(c2,vWcDV,vWcDV,lx-2*vWcDV,ly-2*vWcDV,arc2)
c2.fill();
if(wKoQq()==true)
{
if(shadow) AUhkE(c,rot)
c.drawImage(canv2,ULnNa,ULnNa);
}
else
{
c2.translate(-ULnNa,-ULnNa)
}
}
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(mBKWx){return(this.width>mBKWx.width)&&(this.height>mBKWx.height)}
this.scale=function(ZbrwQ,bQSEp)
{
if(!bQSEp)bQSEp=false
var gToWa=this;
var YODUU=gToWa.width
var oaTcP=gToWa.height
var p1=YODUU*ZbrwQ.height;
var p2=ZbrwQ.width*oaTcP;
var r1=YODUU/oaTcP;
var r2=oaTcP/YODUU;
var newSize1=new Size(ZbrwQ.height*r1,ZbrwQ.height);
var newSize2=new Size(ZbrwQ.width,ZbrwQ.width*r2);
if(p2>p1)
{
if((bQSEp==true)||((newSize1.width<=gToWa.width)&&(newSize1.height<=gToWa.height)))
{
gToWa.width=Math.round(newSize1.width);
gToWa.height=Math.round(newSize1.height);
}
}
else
{
if((bQSEp==true)||((newSize2.width<=gToWa.width)&&(newSize2.height<=gToWa.height)))
{
gToWa.width=Math.round(newSize2.width);
gToWa.height=Math.round(newSize2.height);
}
}
this.width=gToWa.width;
this.height=gToWa.height;
return true;
}
}
function Point(p_x,p_y){this.x=p_x;this.y=p_y;
this.translate=function(xvgUE,xruFv){this.x+=xvgUE;this.y+=xruFv;}
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(onJXO){return(this.x==onJXO.x)&&(this.y==onJXO.y)&&(this.width==onJXO.width)&&(this.height==onJXO.height);}
this.copy=function(onJXO){this.x=onJXO.x;this.y=onJXO.y;this.width=onJXO.width;this.height=onJXO.height;}
this.translate=function(xvgUE,xruFv){this.x+=xvgUE;this.y+=xruFv;}
this.isValid=function(){return(this.width>0)&&(this.height>0);}
}
function html_getLayer(onJXO)
{
if(typeof(onJXO)=="string")return document.getElementById(onJXO);
return onJXO;
}
function html_SetPosition(onJXO,xvgUE,xruFv){
onJXO=html_getLayer(onJXO);
onJXO.style.left=xvgUE+"px";onJXO.style.top=xruFv+"px";
}
function html_SetSize(lcLNj,aRfvH,bUPUU){
onJXO=html_getLayer(lcLNj);
onJXO.style.width=aRfvH+"px";onJXO.style.height=bUPUU+"px";
}
function html_SetRect(onJXO,UVVvT){html_SetGeometry(onJXO,UVVvT.x,UVVvT.y,UVVvT.width,UVVvT.height);}
function html_SetGeometry(onJXO,xvgUE,xruFv,aRfvH,bUPUU){html_SetPosition(onJXO,xvgUE,xruFv);html_SetSize(onJXO,aRfvH,bUPUU);}
function html_SetVisibility(onJXO,eLLMb){onJXO=html_getLayer(onJXO);onJXO.style.visibility=(eLLMb)?"visible":"hidden";}
function html_SetDisplay(onJXO,eLLMb){onJXO=html_getLayer(onJXO);onJXO.style.display=(eLLMb)?"block":"none";}
function html_SetCanvasSize(onJXO,aRfvH,bUPUU){onJXO=html_getLayer(onJXO);onJXO.width=aRfvH;onJXO.height=bUPUU;}
function html_writeContent(onJXO,mBKWx){onJXO=html_getLayer(onJXO);onJXO.innerHTML=mBKWx;}
function html_SetOpacity(onJXO,pwOen)
{
onJXO=html_getLayer(onJXO);
onJXO.style['opacity']=pwOen;
onJXO.style['-moz-opacity']=pwOen;
onJXO.style.filter=(pwOen==1)?'':'alpha(opacity='+(pwOen*100)+')';
}
var tEGUP=[
{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<tEGUP.length;i++)
{
var array2=tEGUP[i].l;
for(var i2=0;i2<array2.length;i2++)
{
var reg=new RegExp(array2[i2],"g");
res=res.replace(reg,tEGUP[i].acc)
}
}
return res;
}
function trimString(str)
{
return str.replace(/^\s*|\s*$/g,"");
}
function IsNumeric(hDYBl)
{
var vjLKT="0123456789.";var UFpnD=true;var gBTPM;
for(SVoWq=0;SVoWq<hDYBl.length&&UFpnD==true;SVoWq++){gBTPM=hDYBl.charAt(SVoWq);if(vjLKT.indexOf(gBTPM)==-1) UFpnD=false;}
return UFpnD;
}
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(RQFZf)
{
var vKGDC=RQFZf*60;
var EwHoK=new Date();
var RlOcI=0;
RlOcI+=EwHoK.getYear()*12*31*24*60*60;
RlOcI+=EwHoK.getMonth()*31*24*60*60;
RlOcI+=EwHoK.getDate()*24*60*60;
RlOcI+=EwHoK.getHours()*60*60;
RlOcI+=EwHoK.getMinutes()*60;
RlOcI+=EwHoK.getSeconds();
if(vKGDC!=0)
{
RlOcI=Math.floor(RlOcI/vKGDC)*vKGDC
}
return "-"+RlOcI;
}
function urlAntiCacheForPreview()
{
if(document.webaca_is_preview) return urlSuffixe(0);
return "";
}
function html_findPos(obj)
{
var pwOen=VWNgv(obj)
return new Point(pwOen[0],pwOen[1])
}
function VWNgv(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(XjqJk,aRfvH,bUPUU)
{
document.write("<input id='"+XjqJk+"' type=search results=0 placeholder='' style='width:"+aRfvH+"px;height:"+bUPUU+"px;'>")
}
function OoqKr()
{
var sTUQL=document.getElementsByTagName("A");
for(var SVoWq=0;SVoWq<sTUQL.length;SVoWq++)
{
var onJXO=sTUQL[SVoWq];
if(onJXO.onmouseover)onJXO.onmouseover=null;
if(onJXO.onmouseout)onJXO.onmouseout=null;
}
}
function tjPvo()
{
for(var bIrLH in document.wa_global_list_element)
{
var LFSwC=document.wa_global_list_element[bIrLH]
var TcRTJ=document.getElementById(LFSwC)
TcRTJ.onclick=function()
{
WA_focus(this)
}
}
}
function WA_declare(LFSwC)
{
if(!document.wa_global_list_element)
{
document.wa_global_list_element=new Array();;
}
document.wa_global_list_element.push(LFSwC)
}
function CTwto()
{
var eLHks=window.location.search;
if(eLHks.substr(0,1)=="?")eLHks=eLHks.substr(1);
if(eLHks.length==0)return;
var htgxD=new Array();
var unmFs=eLHks.split("&");
for(var i=0;i<unmFs.length;i++)
{
var RQUOJ=unmFs[i].split("=");htgxD[RQUOJ[0]]=RQUOJ[1];
}
var mBKWx_info=htgxD["crbst_info"];
if(!mBKWx_info)return;
var UfKvE=new Array();
UfKvE.m_unid=mBKWx_info;
UfKvE.m_index_item=-1;
var LwSsN=mBKWx_info.indexOf("-");
if(LwSsN!=-1)
{
UfKvE.m_unid="wa-id-"+mBKWx_info.substring(0,LwSsN);
UfKvE.m_index_item=parseInt(mBKWx_info.substring(LwSsN+1));
}
document.wa_global_query_info=UfKvE;
}
function IS_onload_WA()
{

if(isMSIE8())
{
wa_timeout("IS_onload_ui()",0)
}
else
{
IS_onload_ui()
}
if(isIPhone())
{
OoqKr()
}
else
{
tjPvo()
}
CTwto();

PIkaV()
}
function PIkaV()
{
var VVwLJ=0;
var lxFDh=document.webaca_banner_height;
if(document.webaca_page_is_centered)
{
var uaSvJ=getWindowSize().width
var KqEus=document.webaca_width_page
if(uaSvJ>KqEus)VVwLJ=(uaSvJ-KqEus)/2;
}
document.body.style.backgroundPosition=VVwLJ+"px "+lxFDh+"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 QnQxe=CONST_WA_COUNTRIES.codes[n]
var KlGJH=CONST_WA_COUNTRIES.labels[n]
Translator.m_countries[QnQxe]=KlGJH
}
}
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(LFSwC,GPbZL,cTqGZ)
{
this.LFSwC=LFSwC;
this.GPbZL=GPbZL
this.cTqGZ=cTqGZ;
this.PLdai=this.LFSwC+"-div"
this.cmQFi=this.LFSwC+"-canvas"
this.iBWPH=new Rect(0,0,0,0)
this.mNoLv=false;
this.VqJEc=false;
this.ULnNa=6;
this.dbADC=false;
this.xuncL=false;
this.iqYYP=false;
this.giFwx="";
this.shadow=function()
{
return this.cTqGZ;
}
this.marginShadow=function()
{
return this.ULnNa;
}
this.rect=function()
{
return this.iBWPH;
}
this.canvasId=function()
{
return this.cmQFi;
}
this.divId=function()
{
return this.PLdai;
}
this.opacity=function()
{
return this.kWXEl;
}
this.img_clip=function()
{
return this.xuncL;
}
this.img_src=function()
{
return this.dbADC;
}
this.toHtml=function()
{
var mBKWx=""
mBKWx+="<div id='"+this.PLdai+"' style=\"";
mBKWx+="position:absolute;";
if(this.giFwx.length>0)
{
mBKWx+="cursor:pointer;";
}
if(this.rect.x>0)mBKWx+="left:"+this.rect.x+"px;";
if(this.rect.y>0)mBKWx+="top:"+this.rect.y+"px;";
if(this.rect.width>0)mBKWx+="width:"+this.rect.width+"px;";
if(this.rect.height>0)mBKWx+="height:"+this.rect.height+"px;";
if(GPbZL)
mBKWx+="z-index:"+GPbZL+";";
mBKWx+="\" ";
if(this.giFwx.length>0)
{
mBKWx+="onclick=\""+this.giFwx+"\" "
}
mBKWx+=">";
if((this.rect.width>0)&&this.shadow())
{
mBKWx+=html_canvas(this.cmQFi,this.rect.width+2*this.ULnNa,this.rect.height+2*this.ULnNa)+"</div>";
}
else
{
mBKWx+=html_canvas(this.cmQFi,0,0)+"</div>";
}
return mBKWx
}
this.setImage=function(wggTv,FXVJt,gJEtN)
{
if(gJEtN==undefined)gJEtN=0;
if((wggTv==this.dbADC)&&(this.xuncL&&this.xuncL.equals(FXVJt))&&(this.iqYYP==gJEtN))
{
return;
}
this.iqYYP=gJEtN;
this.dbADC=wggTv;
this.xuncL=FXVJt;
this.VNvaf()
}
this.registerDynamicCanvas=function()
{
registerDynamicCanvas(this.cmQFi);
this.VqJEc=true;
this.setRect(this.iBWPH.x,this.iBWPH.y,this.iBWPH.width,this.iBWPH.height)
}
this.VNvaf=function()
{
if((this.iBWPH.width>0)&&(this.iBWPH.height>0))
{
this.draw()
}
this.mNoLv=true
};
this.draw=function(){};
this.setPosition=function(xvgUE,xruFv)
{
this.iBWPH.x=xvgUE;this.iBWPH.y=xruFv;
if(this.VqJEc==false)return
html_SetPosition(this.PLdai,this.iBWPH.x,this.iBWPH.y)
if(this.mNoLv==false)
{
this.VNvaf()
}
}
this.setOnClick=function(mBKWx)
{
this.giFwx=mBKWx
}
this.width=function(){return this.iBWPH.width;}
this.height=function(){return this.iBWPH.height;}
this.setSize=function(aRfvH,bUPUU)
{
this.iBWPH.width=aRfvH;this.iBWPH.height=bUPUU;
var APldm=aRfvH
var qmbbi=bUPUU
if(this.cTqGZ)
{
APldm+=2*this.ULnNa
qmbbi+=2*this.ULnNa
}
if(this.VqJEc==false)return
html_SetSize(this.PLdai,APldm,qmbbi)
html_SetCanvasSize(this.cmQFi,aRfvH,bUPUU)
this.VNvaf()
}
this.setRect=function(xvgUE,xruFv,aRfvH,bUPUU)
{
this.iBWPH.x=xvgUE;this.iBWPH.y=xruFv;this.iBWPH.width=aRfvH;this.iBWPH.height=bUPUU;
var APldm=aRfvH
var qmbbi=bUPUU
var Jrkar=xvgUE
var FWrsd=xruFv
if(this.cTqGZ)
{
APldm+=2*this.ULnNa
qmbbi+=2*this.ULnNa
Jrkar-=this.ULnNa
FWrsd-=this.ULnNa
}
if(this.VqJEc==false)return 
html_SetGeometry(this.PLdai,Jrkar,FWrsd,APldm,qmbbi);
html_SetCanvasSize(this.cmQFi,APldm,qmbbi)
try{this.VNvaf()}catch(e){
alert(e.message)
}
}
this.setVisible=function(eLLMb)
{
if(this.VqJEc==false)return
html_SetVisibility(this.PLdai,eLLMb)
}
this.setOpacity=function(pwOen)
{
this.kWXEl=pwOen 
if(this.VqJEc==false)return
this.VNvaf()
}
}

function is_onresize()
{
WA_Dialog.resizeUI()
try
{
if(WA_PhotoAlbum_resizeUI)WA_PhotoAlbum_resizeUI()
}
catch(e){}
PIkaV()
}
function is_onscroll()
{
centerFullPageContainer();
}
function registerDynamicCanvas(id)
{
if(isMSIE())
G_vmlCanvasManager.initElement(document.getElementById(id));
}
function WA_openDialogAction(bIrLH)
{
var lmDOt=WA_Dialog.dYDme;
if(bIrLH==-1){lmDOt.closeWin();return;}
var iqghJ=lmDOt.LCZsR(bIrLH);
if(iqghJ[5])
{
iqghJ[4].call(iqghJ[6],iqghJ[5])
}
else
{
iqghJ[4](iqghJ[5]);
}
}
function WA_Dialog(eLLMb_close_button)
{
this.meMnQ=0;
this.ZBnlB=0;
this.ZbrwQ_win_width=600;
this.ZbrwQ_win_height=400;
this.kjjuX=new Array();
this.fkUar="wa-dialog-but-";
this.ncsXn=this.fkUar+"div-";
this.uBLmY=this.fkUar+"canvas-";
this.BUTTON_HEIGHT=22;
this.TALVW=CONST_WA_GLOBAL_COLOR_THEME;
this.eLLMb_close_button=eLLMb_close_button;
this.TajbW=6;
this.WNkgX=function()
{
if(this.eLLMb_close_button==undefined)this.eLLMb_close_button=true;
this.NPqqf();
}
this.resetButtons=function()
{
this.NPqqf();
}
this.idealHeight=function()
{
return this.fLWox
}
this.displayWindowWithAutoResize=function(rvMwl,jhAws)
{
this.BpbvW=false
this.fLWox=rvMwl
this.FfWNc=jhAws 
this.resetButtons();
jhAws.call(this)
var l=document.getElementById('wa-dialog-content');
if(this.BpbvW==false)
if(l.scrollHeight>200)
{
this.BpbvW=true
this.fLWox=l.scrollHeight+150
this.resetButtons();
jhAws.call(this)
}
}
this.initializeWindow=function(ZbrwQ_lx,ZbrwQ_ly)
{
if(WA_Dialog.dYDme)WA_Dialog.dYDme.closeWin()
WA_Dialog.dYDme=this;
this.ZbrwQ_win_width=ZbrwQ_lx;
this.ZbrwQ_win_height=ZbrwQ_ly;
this.grbGG()
}
this.progress=function()
{
this.initializeWindow(300,100)
this.writeContent("<div width=100% align=center><img src='wa_loading.gif'></div>")
}
this.jmAOk=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(KlGJH,IABHb,bSiCf,GrZOX)
{
var ZSDjW=this.kjjuX.length
if(this.eLLMb_close_button==true)
{
ZSDjW--;
}
var aRfvH=Math.max((KlGJH.length*8)*1.2+30,80)
var gToWa=new Size(aRfvH,this.BUTTON_HEIGHT);
this.FPiEI("action_"+ZSDjW,ZSDjW,KlGJH,IABHb,gToWa,bSiCf,GrZOX)
}
this.NPqqf=function()
{
this.kjjuX=new Array();
if(this.eLLMb_close_button)
{

var gToWa=new Size(50,20);
this.FPiEI("close",-1,"X",null,gToWa)
}
}
this.FPiEI=function(wFIiv,ZSDjW,KlGJH,IABHb,gToWa,bSiCf,GrZOX)
{
var iqghJ=[wFIiv,gToWa,ZSDjW,KlGJH,IABHb,bSiCf,GrZOX];
this.kjjuX.push(iqghJ);
}
this.writeContent=function(s)
{
var l=document.getElementById('wa-dialog-content');
l.innerHTML=s
}
this.LCZsR=function(wFIiv)
{
for(var bIrLH=0;bIrLH<this.kjjuX.length;bIrLH++)
{
var iqghJ=this.kjjuX[bIrLH];
if((iqghJ[0]==wFIiv)||(iqghJ[2]+""==wFIiv+""))
return iqghJ;
}
return undefined;
}
this.CBgaA=function(wFIiv)
{
var iqghJ=this.LCZsR(wFIiv);
return iqghJ[1]
}
this.getColorTheme=function(bIrLH)
{
return this.TALVW[bIrLH];
}
this.CxAVw=function(TKJds)
{
var iqghJ=this.LCZsR(TKJds);
var wFIiv=iqghJ[0];
var ZSDjW=iqghJ[2];
var pINns_text=this.TALVW[4]
var pINns_bg=this.TALVW[5]
var pINns_glow=this.TALVW[7]
if(ZSDjW==-1)
{
pINns_text=this.TALVW[10]
pINns_bg=this.TALVW[8]
pINns_glow=this.TALVW[11]
}
var dVcjG=this.ncsXn+wFIiv;
var NgaQq=this.uBLmY+wFIiv;
var gToWa=this.CBgaA(TKJds)
var XTSJe=0;
var s=""
s+="<a href='javascript:WA_openDialogAction("+TKJds+")' ";
var pINns=new RGBColor(pINns_bg);
var YkZbp=pINns.toHsl();
pINns.fromHsl(YkZbp[0],YkZbp[1],YkZbp[2]+0.2)
pINns_bg=pINns.toRGB();
var mmOeA_glow=new RGBColor(pINns_glow);
var kjRBZ=mmOeA_glow.toHsl();
mmOeA_glow.fromHsl(kjRBZ[0],kjRBZ[1],kjRBZ[2]+0.2)
pINns_glow=mmOeA_glow.toRGB();
s+="onmouseover=\"WA_but_over('"+NgaQq+"','"+pINns_bg+"','"+pINns_glow+"')"+"\" ";
s+="onmouseout=\""+"WA_but_out('"+NgaQq+"')"+"\" ";
s+="style='text-decoration:none;'>";
s+="<div id='"+this.ncsXn+wFIiv+"' style='position:absolute;cursor:pointer;left:0px;top:0px;height:"+gToWa.height+"px;width:"+gToWa.width+"px;' >";
s+="<div style='position:absolute;left:"+(-XTSJe)+"px;top:"+(-XTSJe)+"px;height:"+gToWa.height+"px;'>"
s+="<canvas id='"+this.uBLmY+wFIiv+"' width="+(gToWa.width+XTSJe*2)+" height="+(gToWa.height+XTSJe*2)+" ></canvas>";
s+="</div>"
s+="<div align=center style='position:absolute;left:0px;top:"+(0)+"px;vertical-align:middle;width:100%;height:"+(gToWa.height)+"px;line-height:"+(gToWa.height)+"px;font-family:arial;font-size:13px;font-weight:bold;color:"+pINns_text+"'>"
s+=iqghJ[3];
s+="</div>"
s+="</div>"
s+="</a>"
return s;
}
this.VNLhG=function(wFIiv)
{
var iqghJ=this.LCZsR(wFIiv);
var ZSDjW=iqghJ[2];
var pINns_bg=this.TALVW[5]
var pINns_glow=this.TALVW[7]
var pINns_text=this.TALVW[3]
if(ZSDjW==-1)
{
pINns_bg=this.TALVW[8]
pINns_glow=this.TALVW[11]
pINns_text=this.TALVW[10]
}
var QnQxe=this.uBLmY+wFIiv;
registerDynamicCanvas(QnQxe);
var gToWa=this.CBgaA(wFIiv);
var aubBA=gToWa.height*0.25;
var MjtgO=true;
aubBA=0;
MjtgO=false;
var HlbYW=0;
var VRbCc=(gToWa.width-2);
var bUPUU_circle_top=gToWa.height*0.45;

var espHl_top=[1,1,VRbCc,bUPUU_circle_top,HlbYW];
var aRfvH_circle_bottom=gToWa.width-2;
var bUPUU_circle_bottom=gToWa.height*0.45;
var cJbrt=pINns_glow;
var XcqNb=pINns_glow;
var FxQaF=0;

var espHl_bottom=[(gToWa.width-aRfvH_circle_bottom)/2,gToWa.height-bUPUU_circle_bottom-1,aRfvH_circle_bottom,bUPUU_circle_bottom,FxQaF,cJbrt,XcqNb];
WA_but(QnQxe,0,gToWa.width,gToWa.height,aubBA,pINns_bg,espHl_top,espHl_bottom,MjtgO,0)
}
this.mQFdH=function(wFIiv)
{
var iqghJ=this.LCZsR(wFIiv)
if(iqghJ)
{
var QnQxe=this.ncsXn+iqghJ[0];
return document.getElementById(QnQxe);
}
return undefined
}
this.grbGG=function()
{
var l=document.getElementById('wa-dialog-container');
l.style.display="block" 

var s="";
var VJZnU=document.webaca_banner_height
s+="<div  style='position:absolute;left:0px;top:"+VJZnU+"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:"+VJZnU+"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 SVoWq in this.kjjuX)
{
s+=this.CxAVw(this.kjjuX[SVoWq][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.nQidB)
}
this.nQidB=function()
{
registerDynamicCanvas('wa-dialog1');
for(var SVoWq in this.kjjuX)
{
this.VNLhG(this.kjjuX[SVoWq][0])
}
this.fIWXI()
if(this.CgEUS())
{
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.dYDme=false
}
this.closeWin=function()
{
this.intern_closeWin()
}
this.cssText1=function()
{
return "font-family:Arial;font-size:15px;color:"+this.TALVW[3]+";";
}
this.onCustomKeypress=function(sTJxK)
{
if((this.kjjuX.length==1)&&(sTJxK==13))
{
this.closeWin()
return true;
}
return false;
}
this.onkeypress=function(sTJxK)
{
return this.onCustomKeypress(sTJxK)
}
this.onkeydown=function(sTJxK)
{
if(sTJxK==27)
{
this.closeWin()
return true;
}
return this.onCustomKeypress(sTJxK) 
}
this.customUpdate=function(){}
this.CgEUS=function()
{
return isIPhone();
}
this.fIWXI=function()
{
var aRfvH_page=document.webaca_width_page;
var bUPUU_page=document.webaca_height_page;
var ZMZnm=getWindowSize().width
var bUPUU_window=getWindowSize().height
var FQfPT=getWindowFullSize().width
var bUPUU_full_client=getWindowFullSize().height
var BlJAE=550;
var DGpoc=400;
ZMZnm=Math.max(ZMZnm,BlJAE);
bUPUU_window=Math.max(bUPUU_window,DGpoc);
if(this.CgEUS())
{
ZMZnm=600;
bUPUU_window=700;
}
this.meMnQ=Math.min(ZMZnm*0.9,this.ZbrwQ_win_width)
this.ZBnlB=Math.min(bUPUU_window*0.9,this.ZbrwQ_win_height)
var OxBEc=document.getElementById('wa-dialog1');
OxBEc.width=this.meMnQ+10
OxBEc.height=this.ZBnlB+10
var xvgUE=getWindowScroll().x+(ZMZnm-OxBEc.width)/2
var xruFv=getWindowScroll().y+(bUPUU_window-OxBEc.height)/2
xvgUE=(ZMZnm-OxBEc.width)/2
xruFv=(bUPUU_window-OxBEc.height)/2
xvgUE=Math.max(0,xvgUE)
xruFv=Math.max(0,xruFv)
if(this.CgEUS())
{
xvgUE=0
xruFv=0;
}
var flNBu=document.getElementById('wa-dialog-main');
html_SetGeometry('wa-dialog-main',xvgUE,xruFv,OxBEc.width,OxBEc.height);
var DmbmZ_bg="(0;0;0;"+this.ZBnlB*0.25+";"+this.TALVW[1]+";"+this.TALVW[2]+")";
var pTqWc=4;
WA_bg('wa-dialog1',this.meMnQ,this.ZBnlB,pTqWc,3,this.TALVW[0],[DmbmZ_bg],true,0)
var qTIwd=10;
var JgMAh=this.mQFdH(-1)
if(JgMAh)
{
var uJHGQ_close=this.CBgaA(-1) 
var marginClose=3
html_SetPosition(JgMAh,this.meMnQ-uJHGQ_close.width-marginClose+this.TajbW-1,marginClose+this.TajbW-1)
}
var CVetx_buttons=this.kjjuX.length;
if(this.eLLMb_close_button==true)
{
CVetx_buttons--;
}
var ZHmLm=10;
var UuXuk=0;
for(var SVoWq=0;SVoWq<CVetx_buttons;SVoWq++)
{
if(SVoWq>0) UuXuk+=ZHmLm;
var uJHGQ=this.CBgaA(SVoWq);
UuXuk+=uJHGQ.width;
}
var qWRJG=(this.meMnQ-UuXuk)/2
for(var SVoWq=0;SVoWq<CVetx_buttons;SVoWq++)
{
if(SVoWq>0) qWRJG+=ZHmLm;
var dRYCN=this.mQFdH(SVoWq);
var uJHGQ=this.CBgaA(SVoWq);
html_SetPosition(dRYCN,qWRJG+this.TajbW,+this.TajbW+this.ZBnlB-uJHGQ.height-2*qTIwd)
qWRJG+=uJHGQ.width;
}
var bUPUU_top=45;
var bUPUU_bottom=this.BUTTON_HEIGHT+2*qTIwd;
if(CVetx_buttons==0)
{
bUPUU_bottom=0;
}
var bUPUU_content=(this.ZBnlB-bUPUU_top-bUPUU_bottom)-qTIwd
var IZLbO=document.getElementById('wa-dialog-content');
var lmDOt_content=Math.round(this.meMnQ-2*qTIwd)
var higuw=Math.round(bUPUU_content)
this.m_content_lx=lmDOt_content
this.m_content_ly=higuw
html_SetGeometry('wa-dialog-content',Math.round(5+(this.meMnQ-lmDOt_content)/2),Math.round(5+bUPUU_top+(bUPUU_content-higuw)/2),lmDOt_content,higuw);
this.customUpdate() 
var ALVGO=document.getElementById('wa-dialog-container');
var GEQwI=bUPUU_full_client
GEQwI=Math.max(GEQwI,bUPUU_window) 
var fVxpO=FQfPT
fVxpO=Math.max(fVxpO,ZMZnm)
if(this.CgEUS())
{
fVxpO=Math.max(fVxpO,aRfvH_page)
GEQwI=Math.max(GEQwI,bUPUU_page)
}
html_SetSize('wa-dialog-container',fVxpO,GEQwI);
centerFullPageContainer();
}
this.WNkgX();
}
function centerFullPageContainer()
{
var spgoH=WA_Dialog.getCurrent() 
var aRfvH_page=document.webaca_width_page;
var bUPUU_page=document.webaca_height_page;
var ALVGO=document.getElementById('wa-dialog-container');
var FQfPT=getWindowSize().width 
var bUPUU_full_client=getWindowSize().height
var xruFv_bg=getWindowScroll().y;
var fSPcS=spgoH&&spgoH.CgEUS();
if(fSPcS)
{
xruFv_bg=0
}
xruFv_bg=Math.min(xruFv_bg,bUPUU_page-bUPUU_full_client+1)
xruFv_bg=Math.max(xruFv_bg,0)
var ZaWQE=getWindowScroll().x;
if(fSPcS)
{
ZaWQE=0
}
ZaWQE=Math.min(ZaWQE,aRfvH_page-FQfPT+1)
ZaWQE=Math.max(ZaWQE,0)
html_SetPosition('wa-dialog-container',ZaWQE,xruFv_bg,FQfPT,bUPUU_full_client);
}
function isOperaBrowser()
{
return(/opera/i.test(navigator.userAgent))
}
function WA_exec_callback_opera_compliant(bSiCf,xEoaO)
{
if(/opera/i.test(navigator.userAgent))
WA_exec_delayedCallback(bSiCf,xEoaO)
else
xEoaO.call(bSiCf)
}
function WA_exec_delayedCallback(bSiCf,xEoaO)
{
wa_timeout(Delegate.create(bSiCf,xEoaO),0);
}
WA_Dialog.getCurrent=function()
{
return WA_Dialog.dYDme;
}
WA_Dialog.dYDme=false;
WA_Dialog.resizeUI=function()
{
if(WA_Dialog.dYDme)
{
var spgoH=WA_Dialog.dYDme
if(spgoH.CgEUS()==false)
{
spgoH.fIWXI()
}
}
}
WA_Dialog.alert=function(s)
{
var w=new WA_Dialog();
w.jmAOk(s)
}
WA_Dialog.progress=function()
{
var w=new WA_Dialog(false);
w.progress()
}

function getXMLHttpRequest(fct_callback,GrZOX)
{
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.uQHsV=fct_callback
http_request.GrZOX=GrZOX
http_request.onreadystatechange=function()
{
var req=this 
if(req.readyState==4)
{
this.uQHsV(true,this,this.GrZOX) 

}
};
return http_request;
}
function makePOSTRequest(url,parameters,callback,OoNQs)
{
var http_request=getXMLHttpRequest(callback,OoNQs);
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(TsNjP,gYvIs,GrZOX)
{
var result=gYvIs.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 QExEs=GrZOX[0] 
WA_Dialog.alert(Translator.tr("Success:Mail sended"));
var form=document.getElementById(QExEs);
form.reset()
}
else
{
var jctpk="error_string="
n=result.indexOf(jctpk)
if(n>-1)
{
result=result.substring(n+jctpk.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 XZrTd=el.value
XZrTd=encodeURI(XZrTd)
XZrTd=XZrTd.replace(/&/g,escape("&")) 
poststr+=el.name.replace("_mandatory","")+"="+XZrTd+"&"
}
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(utkDx)
{
var qdFGJ=document.getElementById(utkDx);
qdFGJ.submit() 
}
function tjVTu(LFSwC,GrZOX)
{
var sTJxK=GrZOX[0]
if(sTJxK==13)
{
var utkDx=LFSwC+"-form";
var qdFGJ=document.getElementById(utkDx);
for(var i=0;i<qdFGJ.elements.length;i++)
{
var TcRTJ=qdFGJ.elements[i];
if((TcRTJ.type=="textarea")&&(TcRTJ.focused))return true;
}
WA_form_submit(utkDx);
return false;
}
return true;
}
function WA_addFormDeclaration(LFSwC,sTgVG)
{
return WA_addHandler(LFSwC,"keypress",tjVTu)
}
function WA_form_bg(id,lx,ly,arc,vWcDV,bord_col,bg,shadow,gJEtN,XjlQB)
{
WA_bg(id,lx,ly,arc,vWcDV,bord_col,bg,shadow,gJEtN,1.0,true) 
var NtDnu=XjlQB.x;
var xuaTI=0;
var JLoqh=XjlQB.cells
for(var n=0;n<JLoqh.length;n++)
{
var eaVZK=JLoqh[n]
var arc2=0
CoOAv(id,NtDnu,xuaTI+eaVZK.y,XjlQB.w,eaVZK.h,arc2,1,XjlQB.border,[''],false,0,1.0,false)
CoOAv(id,NtDnu,xuaTI+eaVZK.y,eaVZK.w,eaVZK.h,arc2,1,"rgba(0,0,0,0)",[XjlQB.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(ACfEY)
{
this.ok=false;this.a=1.0;
if(ACfEY.charAt(0)=='#'){ACfEY=ACfEY.substr(1);}
ACfEY=ACfEY.replace(/ /g,'');
ACfEY=ACfEY.toLowerCase();
var EGFUg=[
{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<EGFUg.length;i++){
var mQSYH=EGFUg[i].re;
var daruv=EGFUg[i]._process;
var FAakp=mQSYH.exec(ACfEY);
if(FAakp){
var RULVR=daruv(FAakp);
this.r=RULVR[0];this.g=RULVR[1];this.b=RULVR[2];this.a=RULVR[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.CGYuZ=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.CGYuZ(p,q,h+1/3);g=this.CGYuZ(p,q,h);b=this.CGYuZ(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 iaOWL(KmBWB,GrZOX)
{
if(document.wa_global_handlers!=undefined)
{
var LFSwC=WA_focused_element()
if(LFSwC)
{
var IABHb=document.wa_global_handlers[LFSwC+"-"+KmBWB]
if(IABHb) return IABHb([LFSwC],GrZOX)
}
}
return true;
}
function faLSD(e)
{
if(window.event){return e.keyCode;}
else 
if(e.which) return  e.which;
return-1;
}
function WA_onkeypress(e)
{
var sTJxK=faLSD(e);
if(WA_Dialog.dYDme)
{
if(WA_Dialog.dYDme.onkeypress(sTJxK))
{
return false;
}
}
return iaOWL("keypress",[sTJxK]);
}
function WA_ondblclick(e)
{
return iaOWL("dblclic",[""]);
}
function WA_onkeydown(e)
{
var sTJxK=faLSD(e)
if(WA_Dialog.dYDme)
{
if(WA_Dialog.dYDme.onkeydown(sTJxK))
{
return false;
}
}
if(sTJxK==13) return true;

if(wa_global_photo_album&&wa_global_photo_album.fullpage_object)
{
var bSiCf=wa_global_photo_album.fullpage_object
return bSiCf.onFullScreenKeydown(sTJxK) 
}
return iaOWL("keydown",[sTJxK]);
}
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 LFSwC=this.id
var IABHb=document.wa_global_handlers[LFSwC+"-mousewheel"]
if(IABHb)
{
if(IABHb([LFSwC],[delta]))
{
b_default=true;
}
}
}
}
if(b_default)
if(e.preventDefault)
e.preventDefault();
e.returnValue=!b_default;
}
function WA_addHandler(LFSwC,KmBWB,xEoaO)
{
if(document.wa_global_handlers==undefined) document.wa_global_handlers=new Array()
if(KmBWB=="mousewheel")
{
var jBhlD=document.getElementById(LFSwC);
if(jBhlD.addEventListener)
jBhlD.addEventListener('DOMMouseScroll',WA_genericMouseWheelHandler,false);
jBhlD.onmousewheel=WA_genericMouseWheelHandler
}
document.wa_global_handlers[LFSwC+"-"+KmBWB]=xEoaO
}
function WA_loadPhotoAlbum(LFSwC,BikIG,gToWa,LFSwC_modif)
{
if(typeof(wa_global_photo_album[LFSwC])=="undefined")
{
var o=new Array();
o.src_folder=BikIG
o.size_container=gToWa
o.id_modif=LFSwC_modif
wa_global_photo_album[LFSwC]=o;
}
}
function WA_focused_element()
{
return document.wa_global_focused_element
}
function WA_focus(bSiCf)
{
document.wa_global_focused_element=bSiCf.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(MkMGV,JPSKF,ZYAqI)
{
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[JPSKF])document.wa_global_blogs_elements[JPSKF]=new Array()
document.wa_global_blogs_elements[JPSKF].id_blog=MkMGV
document.wa_global_blogs_elements[JPSKF].has_email=ZYAqI
}
function WA_addSearchHandler(LFSwC)
{
return WA_addHandler(LFSwC,"keypress",amDFB)
}
function amDFB(LFSwC,GrZOX)
{
var sTJxK=GrZOX[0]
if(sTJxK==13)
{
var OLAcC=LFSwC+"-search-input";
WA_onSearch(OLAcC)
return false;
}
return true;
}
function WA_declareSearchIndex(XgqYJ,IHvBS)
{
document.const_wa_search_js=XgqYJ
document.const_wa_search_index_js=IHvBS
}
function WA_onSearch(OLAcC)
{
var EgcaV=document.getElementById(OLAcC);
if(document.wa_search_js_loaded==true)
{
WA_openSearchDialog(EgcaV,document.const_wa_search_index_js)
}
else
{
WA_Dialog.progress();
MpWKk(EgcaV)
}
}
function vNbkP(GrZOX)
{
document.wa_search_js_loaded=true
WA_openSearchDialog(GrZOX[0],document.const_wa_search_index_js)
}
function MpWKk(VYnfq)
{
WA_loadScript(document.const_wa_search_js,vNbkP,[VYnfq])
}
function AEdHD(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 AEdHD(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(LFSwC)
{
var TPbXi=document.wa_global_menu_declaration[LFSwC]
WA_bg(LFSwC,TPbXi.root_lx,TPbXi.root_ly,TPbXi.root_corner,TPbXi.root_border,TPbXi.root_col_border,[TPbXi.root_bg],false,0)
var TcRTJ=document.getElementById(TPbXi.id)
if(!TcRTJ)return;
var c=TcRTJ.getContext('2d');
c.lineWidth=1
c.strokeStyle=TPbXi.root_col_separator
var EaGHO=0.5;

var DoLUW=TPbXi.root_sizes.length
if(TPbXi.root_extend==false)
{
DoLUW--;
}
var dqgVc=3;
for(var i=0;i<DoLUW;i++)
{
var gToWa=TPbXi.root_sizes[i] 

c.beginPath();
if(TPbXi.root_vertical==false)
{
EaGHO+=(gToWa-1)
c.moveTo(EaGHO,dqgVc)
c.lineTo(EaGHO,TPbXi.root_ly-dqgVc)
}
else
{
EaGHO+=(gToWa)
c.moveTo(dqgVc,EaGHO-1,0)
c.lineTo(TPbXi.root_lx-dqgVc,EaGHO-1)
}
c.closePath();
c.stroke()
}
}
function WA_declare_menu(LFSwC,TPbXi)
{
if(!document.wa_global_menu_declaration)document.wa_global_menu_declaration=new Array();
TPbXi.id=LFSwC
document.wa_global_menu_declaration[LFSwC]=TPbXi
WA_bg_menu(LFSwC)
}
function WA_declareMarket(LFSwC,EHeOo_market,LFSwC_modif)
{
if(typeof(wa_global_market.markets[LFSwC])=="undefined")
{
var o=new Array();
o.src_folder=EHeOo_market
o.id_modif=LFSwC_modif 

o.id=LFSwC
wa_global_market.markets[LFSwC]=o;
}
}
function WA_button_market_declare(LFSwC,KlGJH)
{
if(!document.wa_global_button_market_declaration)document.wa_global_button_market_declaration=new Array();
document.wa_global_button_market_declaration[LFSwC]=KlGJH
}
function HeuIW(c,img,xvgUE,xruFv,aRfvH,bUPUU,FXVJt,IcEau,WJGdZ)
{
c.globalAlpha=IcEau
if(WJGdZ) c.clearRect(0,0,aRfvH,bUPUU) 
if(IcEau==0)return;
if(FXVJt)
{
c.drawImage(img,FXVJt.x,FXVJt.y,FXVJt.width,FXVJt.height,xvgUE,xruFv,aRfvH,bUPUU)
}
else
{
c.drawImage(img,xvgUE,xruFv,aRfvH,bUPUU)
}
}
function WA_drawImage(id,wggTv,xvgUE,xruFv,aRfvH,bUPUU,FXVJt,IcEau,WJGdZ)
{
if(WJGdZ==undefined)WJGdZ=true;
if(IcEau==undefined)IcEau=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==wggTv)
{
HeuIW(c,c.SxvxU,xvgUE,xruFv,aRfvH,bUPUU,FXVJt,IcEau,WJGdZ)
return;
}
var img=new Image();
img.BKGWo=el.BKGWo
img.onload=function()
{
c.old_src=wggTv
c.SxvxU=this;
HeuIW(c,this,xvgUE,xruFv,aRfvH,bUPUU,FXVJt,IcEau,WJGdZ)
}
img.src=wggTv;
}

-->
