<!--

function Delegate(){}
Delegate.create=function(o,f){
var BXHuY=new Array();
var bSlIA=arguments.length;
for(var i=2;i<bSlIA;i++) BXHuY[i-2]=arguments[i];
return function(){
var pjXJM=[].concat(arguments,BXHuY);
f.apply(o,pjXJM);
}
}
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.vipws=0;
t.uwCZb=0;
t.uFKkn=0;
t.khjSH=0;
t.JaiUw=0;
t.xcLnm=0;
t.mfkeo=false;
t.name='';
t.suffixe='';
t.OEVit=new Array();
t.setTime=function(t){
this.prevTime=this.uwCZb;
if(t>this.getDuration()){
if(this.looping){
this.rewind(t-this.vipws);
this.update();
this.vhRJC('onMotionLooped',{target:this,type:'onMotionLooped'});
}else{
this.uwCZb=this.vipws;
this.update();
this.stop();
this.vhRJC('onMotionFinished',{target:this,type:'onMotionFinished'});
}
}else if(t<0){
this.rewind();
this.update();
}else{
this.uwCZb=t;
this.update();
}
}
t.isRunning=function(){
return this.mfkeo;
}
t.getTime=function(){
return this.uwCZb;
}
t.setDuration=function(d){
this.vipws=(d==null||d<=0)?100000:d;
}
t.getDuration=function(){
return this.vipws;
}
t.setPosition=function(p){
this.prevPos=this.uFKkn;
var a=this.suffixe!=''?this.suffixe:'';
this.obj[this.prop]=Math.round(p)+a;
this.uFKkn=p;
this.vhRJC('onMotionChanged',{target:this,type:'onMotionChanged'});
}
t.getPosition=function(t){
if(t==undefined) t=this.uwCZb;
return this.func(t,this.begin,this.change,this.vipws);
};
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.OEVit=new Array();
this.addListener(this);
if(suffixe) this.suffixe=suffixe;
this.obj=obj;
this.prop=prop;
this.begin=begin;
this.uFKkn=begin;
this.setDuration(duration);
if(func!=null&&func!=''){
this.func=func;
}
this.setFinish(finish);
}
t.start=function(){
this.rewind();
this.startEnterFrame();
this.vhRJC('onMotionStarted',{target:this,type:'onMotionStarted'});
}
t.rewind=function(t){
this.stop();
this.uwCZb=(t==undefined)?0:t;
this.fixTime();
this.update();
}
t.fforward=function(){
this.uwCZb=this.vipws;
this.fixTime();
this.update();
}
t.update=function(){
this.setPosition(this.getPosition(this.uwCZb));
}
t.startEnterFrame=function(){
this.stopEnterFrame();
this.mfkeo=true;
this.onEnterFrame();
}
t.onEnterFrame=function(){
if(this.mfkeo){
this.nextFrame();
wa_timeout(Delegate.create(this,this.onEnterFrame),0);
}
}
t.nextFrame=function(){
this.setTime((this.getTimer()-this.JaiUw)/1000);
}
t.stop=function(){
this.stopEnterFrame();
this.vhRJC('onMotionStopped',{target:this,type:'onMotionStopped'});
}
t.stopEnterFrame=function(){
this.mfkeo=false;
}
t.continueTo=function(finish,duration){
this.begin=this.uFKkn;
this.setFinish(finish);
if(this.vipws!=undefined)
this.setDuration(duration);
this.start();
}
t.resume=function(){
this.fixTime();
this.startEnterFrame();
this.vhRJC('onMotionResumed',{target:this,type:'onMotionResumed'});
}
t.yoyo=function(){
this.continueTo(this.begin,this.uwCZb);
}
t.addListener=function(o){
this.removeListener(o);
return this.OEVit.push(o);
}
t.removeListener=function(o){
var a=this.OEVit;
var i=a.length;
while(i--){
if(a[i]==o){
a.splice(i,1);
return true;
}
}
return false;
}
t.vhRJC=function(){
var arr=new Array();
for(var i=0;i<arguments.length;i++){
arr.push(arguments[i])
}
var e=arr.shift();
var a=this.OEVit;
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.JaiUw=this.getTimer()-this.uwCZb*1000;
}
t.getTimer=function(){
return new Date().getTime()-this.uwCZb;
}
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,WLBwD,lWoxk,vipws){
this.targetObject=obj;
this.init(new Object(),'a',func,WLBwD,lWoxk,vipws);
this.onMotionChanged=function(evt){
var v=evt.target.uFKkn;
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(DHHoI,WDiJT,vfBJG)
{
return "<canvas id='"+DHHoI+"' style='position:absolute;left:0px;top:0px;'  width='"+WDiJT+"' height='"+vfBJG+"'></canvas>";
}
function WA_canvas(DHHoI,WDiJT,vfBJG)
{
document.write(html_canvas(DHHoI,WDiJT,vfBJG))
}
function vVXdx(dEXtW,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;
dEXtW.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;
dEXtW.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;
dEXtW.quadraticCurveTo(cx,cy,px,py);
}
}
function FxGtx(c,x,y,lx,ly,arc,clowckwise)
{
c.beginPath()
LDnrD(c,x,y,lx,ly,arc,clowckwise)
c.closePath();
}
function LDnrD(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 isFirefox()
{
return BrowserDetect.browser=="Firefox" 
}
function isWindowsOS()
{
if(BrowserDetect.OS.match(/windows/i)) return true;
return false;
}
function isMSIE8()
{
if((BrowserDetect.browser=="Explorer")&&(BrowserDetect.version==8))
{
return true;
}
return false;
}
function isMSIE9()
{
if((BrowserDetect.browser=="Explorer")&&(BrowserDetect.version>=9))
{
return true;
}
return false;
}
function isMSIE_lower_than_ie9()
{
if(isMSIE())
{
if(document.documentMode)
{
if(document.documentMode==9)
{
return false;
}
}
return true;
}
return false;
}
function PnKIX()
{
if(isMSIE_lower_than_ie9())
{
return false;
}
if((isChrome()&&isWindowsOS())||isFirefox())
{
return false;
}
return true;
}
function isMobileWithoutFlash()
{
return isIPhone();
}
function isMobileBrowser()
{
return isIPhone();
}
function isChrome()
{
if(navigator.userAgent.match(/Chrome/i))
return true;
return false;
}
function isIPhone()
{
if(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i))
return true;
return false;
}
function lQHSg(lx,ly,parent,id_suffixe)
{
var TKVVQ=document.createElement('canvas');TKVVQ.width=lx;TKVVQ.height=ly;
return TKVVQ;
}
function uCCBU(hjVQv)
{
var lkxxp=(-hjVQv+45);
return new Point(Math.cos(lkxxp*(2*Math.PI)/360),Math.sin(lkxxp*(2*Math.PI)/360))
}
function DKPon(c,hjVQv)
{
var offset=uCCBU(hjVQv) 
c.shadowColor="#000000";
c.shadowOffsetX=Math.round(2*offset.x);
c.shadowOffsetY=Math.round(2*offset.y);
c.shadowBlur=4;
}
function RRNHA(c)
{
c.shadowColor="rgba(0,0,0,0)";
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
}
function WA_over_img_html(eJBuO,RCYmA,ejYwq)
{
if(!eJBuO.src)
{
var HJAuM=eJBuO.getElementsByTagName("IMG")
if(HJAuM.length==1)eJBuO=HJAuM[0]
}
if(eJBuO.src1==undefined)
{
eJBuO.src1=eJBuO.src;
eJBuO.src2=RCYmA;
}
if(ejYwq)
{
eJBuO.src=eJBuO.src2;
}
else
{
eJBuO.src=eJBuO.src1;
}
}
function WA_over_img(id,ejYwq)
{
var el=document.getElementById(id+"-canvas") 

var eJBuO=(ejYwq)?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,[eJBuO,eJBuO],el.wa_shadow,el.wa_rot,el.wa_reflex,ejYwq)
}
function oIxfk(DHHoI,lx,ly,arc,side)
{
this.id=DHHoI;
this.lx=lx;
this.ly=ly;
this.arc=arc;
var nSide=side;
this.side=nSide;
this.FPFnR=0.2;
var sizeReflex=ly*this.FPFnR;
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*this.FPFnR;
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*this.FPFnR;
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*this.FPFnR;
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.CmapL=function(canv2)
{
if(isIPhone()) return;
if(/opera/i.test(navigator.userAgent)) return;
if(isMSIE9()) return;
if(navigator.userAgent.match(/Firefox/i))
{
var div=document.getElementById(this.id)
if(div.style.MozTransform===undefined) return;
}
var xtjZO=document.getElementById(this.id+"-reflex")
var NbPFh=xtjZO.getContext('2d');
var fDUsw=0;
var iOEhj=0;
if(this.side==2)
{
fDUsw=this.lx;
iOEhj=-this.ly*(1-this.FPFnR);
}
else
if(this.side==0)
{
fDUsw=this.lx;
}
else
if(this.side==3)
{
fDUsw=this.FPFnR*this.lx;
}
else
if(this.side==1)
{
fDUsw=this.lx;
}
NbPFh.translate(fDUsw,iOEhj)
NbPFh.scale(-1,1)
NbPFh.beginPath() 
var dec=0;
FxGtx(NbPFh,dec,dec,this.lx-2*dec,this.ly-2*dec,this.arc)
NbPFh.clip() 

NbPFh.drawImage(canv2,this.sX,this.sY,this.sLx,this.sLy,this.sX,this.sY,this.sLx,this.sLy);
NbPFh.globalCompositeOperation="destination-out";
var gradient=NbPFh.createLinearGradient(this.gradX1,this.gradY1,this.gradX2,this.gradY2);
var QRUeR=0.40;
gradient.addColorStop(0,"rgba(255, 255, 255, 1)");
gradient.addColorStop(1,"rgba(255, 255, 255, "+(1-QRUeR)+")");
NbPFh.fillStyle=gradient;
NbPFh.beginPath()
NbPFh.rect(this.sX-this.decX,this.sY-this.decY,this.sLx,this.sLy);
NbPFh.fill();
NbPFh.globalCompositeOperation="source-over";
NbPFh.scale(-1,1)
NbPFh.translate(-fDUsw,-iOEhj) 
}
}
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 DYofN(c2,lx,ly,OdEVa,bord_col,arc,arc2)
{
if(OdEVa>0)
{
c2.beginPath()
c2.fillStyle=bord_col;
c2.beginPath()
FxGtx(c2,0,0,lx,ly,arc)
LDnrD(c2,OdEVa,OdEVa,lx-2*OdEVa,ly-2*OdEVa,arc2,true)
c2.fill()
}
}
function uqwUg()
{
this.tx=0
this.ty=0
this.rotation=0
}
function MrakU(id,lx,ly,rot,c2,canv2,shadow,matrix)
{
}
function WA_img(id,lx,ly,arc,OdEVa,bord_col,s_img,shadow,rot,KcJtW,b_over)
{
var SQYKM=id+"-canvas"
var el=document.getElementById(SQYKM)
var c=el.getContext('2d');
var SrkPv=false;
if((KcJtW!=undefined)&&(KcJtW!=-1))
{
SrkPv=new oIxfk(SQYKM,lx,ly,arc,KcJtW)
}
var IeJqC=0;
if(shadow)IeJqC=6
if(el.wa_lx==undefined)
{
el.wa_lx=lx
el.wa_ly=ly
el.wa_arc=arc
el.wa_bord_siz=OdEVa
el.wa_bord_col=bord_col
el.wa_s_img=s_img
el.wa_shadow=shadow
el.wa_rot=rot
el.wa_reflex=KcJtW
c.translate(IeJqC,IeJqC)
}
var TAGPt_img=document.getElementById(id+"-cache")
TAGPt_img.onload=function()
{
c.clearRect(0,0,lx+2*IeJqC,ly+2*IeJqC)
var arc2=arc-OdEVa;
if(arc2<0)arc2=0;
this.width=lx-2*OdEVa
this.height=ly-2*OdEVa
if(isMSIE_lower_than_ie9()) 
{
if(shadow) bgfJi(c,0,0,lx,ly,arc,false,rot)
var xnkTS=c.createPattern(this,'no-repeat');
c.fillStyle=xnkTS;
c.beginPath()
FxGtx(c,OdEVa,OdEVa,lx-2*OdEVa,ly-2*OdEVa,arc2)
c.translate(OdEVa,OdEVa)
c.fill()
c.translate(-OdEVa,-OdEVa)
DYofN(c,lx,ly,OdEVa,bord_col,arc,arc2)
}
else
if(isFirefox()&&shadow)
{
if(shadow) bgfJi(c,0,0,lx,ly,arc,false,rot)
var xnkTS=c.createPattern(this,'no-repeat');
c.fillStyle=xnkTS;
c.beginPath()
FxGtx(c,OdEVa,OdEVa,lx-2*OdEVa,ly-2*OdEVa,arc2)
c.translate(OdEVa,OdEVa)
c.fill()
c.translate(-OdEVa,-OdEVa)
DYofN(c,lx,ly,OdEVa,bord_col,arc,arc2)
}
else
{
var canv2=lQHSg(lx,ly,el,"bis2");
var c2=canv2.getContext('2d');
var pinAa=new  uqwUg()
MrakU(id,lx,ly,rot,c2,canv2,shadow,pinAa)
c.clearRect(-IeJqC,-IeJqC,lx+2*IeJqC,ly+2*IeJqC)
DYofN(c2,lx,ly,OdEVa,bord_col,arc,arc2)
c2.beginPath()
FxGtx(c2,OdEVa,OdEVa,lx-2*OdEVa,ly-2*OdEVa,arc2)
c2.clip()
c2.drawImage(this,OdEVa,OdEVa,lx-2*OdEVa,ly-2*OdEVa);
c2.rotate(-pinAa.rotation)
c2.translate(-pinAa.tx,-pinAa.ty) 
if(shadow) DKPon(c,rot)
c.drawImage(canv2,0,0);
RRNHA(c) 

c2.translate(pinAa.tx,pinAa.ty)
c2.rotate(pinAa.rotation)
if(SrkPv)
{
SrkPv.CmapL(canv2)
}
}
}
TAGPt_img.src=s_img[0];
}
function eFRBw(IVejg,hjVQv,fhLHN,iTOni)
{
IVejg.style.left=fhLHN+"px"
IVejg.style.top=iTOni+"px"
IVejg.style.webkitTransformOrigin="0 0"
IVejg.style.webkitTransform="rotate("+hjVQv+"deg)";
}
function TCExF(c,type,lx,ly,corner)
{
if(type==1)
vVXdx(c,0,0,lx,ly)
else
FxGtx(c,0,0,lx,ly,corner)
}
function XHrWo(el,c,type,lx,ly,corner,bg,ctePd,rot)
{
var CsFLQ=PnKIX();
if(CsFLQ==false)
{
c.fillStyle=bg;
TCExF(c,type,lx,ly,corner)
c.fill()
}
else
{
var canv2=lQHSg(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.fillStyle=bg;
TCExF(c2,type,lx,ly,corner)
c2.closePath();
c2.fill()
if(ctePd) DKPon(c,rot)
c.drawImage(canv2,0,0);
RRNHA(c)
}
}
function kVEGq(c,type,lx,ly,CRxAm,bg,phaOk,Pnlac_glow)
{
if(phaOk)
{
var x1=phaOk[0];var y1=phaOk[1];var lx1=phaOk[2];var ly1=phaOk[3];var QTKnX=phaOk[4];
var rgcQi=c.createLinearGradient(x1,y1,x1,y1+ly1);
rgcQi.addColorStop(0,"rgba(255,255,255,0.7)");rgcQi.addColorStop(1,"rgba(255,255,255,0.1)");
c.fillStyle=rgcQi;
if(type==1) vVXdx(c,x1,y1,lx1,ly1)
else
FxGtx(c,x1,y1,lx1,ly1,QTKnX)
c.fill()
}
if(Pnlac_glow)
{
var x2=Pnlac_glow[0];var y2=Pnlac_glow[1];var lx2=Pnlac_glow[2];var ly2=Pnlac_glow[3];
var MVbSK=Pnlac_glow[4];
var BZwpc_glow=new RGBColor(Pnlac_glow[5]);
BZwpc_glow.a=0;
var col1=Pnlac_glow[5];
var col2=BZwpc_glow.toRGB();
var KOQiU=c.createLinearGradient(x2,y2,x2,y2+ly2);
KOQiU.addColorStop(0,col2);
KOQiU.addColorStop(0.2,col2);
KOQiU.addColorStop(1,col1);
c.fillStyle=KOQiU;
if(type==1) vVXdx(c,x2,y2,lx2,ly2)
else
FxGtx(c,x2,y2,lx2,ly2,MVbSK)
c.fill()
}
}
function NTKeq(JHPmn,DHHoI,HkUiG,WDiJT,vfBJG,CRxAm,qusNW,phaOk,Pnlac_glow,ctePd,hjVQv)
{
JHPmn.DHHoI=DHHoI;JHPmn.HkUiG=HkUiG;
JHPmn.WDiJT=WDiJT;JHPmn.vfBJG=vfBJG;
JHPmn.CRxAm=CRxAm;JHPmn.qusNW=qusNW,JHPmn.phaOk=phaOk;
JHPmn.Pnlac_glow=Pnlac_glow;JHPmn.ctePd=ctePd;JHPmn.hjVQv=hjVQv;
}
function WA_but_over(DHHoI,eWBlx,BZwpc_glow)
{
var qbWSj=document.getElementById(DHHoI) 
if(qbWSj&&qbWSj.gifgU)
with(qbWSj.gifgU)
{
var Pnlac_glow_over;
if(Pnlac_glow&&BZwpc_glow)
{
Pnlac_glow_over=new Array();
for(var INWBS=0;INWBS<Pnlac_glow.length;INWBS++)Pnlac_glow_over[INWBS]=Pnlac_glow[INWBS];
Pnlac_glow_over[5]=BZwpc_glow;
}
WA_but(DHHoI,HkUiG,WDiJT,vfBJG,CRxAm,eWBlx,phaOk,Pnlac_glow_over,ctePd,hjVQv);
}
var WFNfP=document.getElementById(DHHoI+"-div0")
if(WFNfP)html_SetVisibility(WFNfP,false);
var nRosI=document.getElementById(DHHoI+"-div1")
if(nRosI)html_SetVisibility(nRosI,true);
}
function WA_but_out(DHHoI)
{
var qbWSj=document.getElementById(DHHoI)
with(qbWSj.gifgU)
{
WA_but(DHHoI,HkUiG,WDiJT,vfBJG,CRxAm,qusNW,phaOk,Pnlac_glow,ctePd,hjVQv);
}
var WFNfP=document.getElementById(DHHoI+"-div0")
if(WFNfP)html_SetVisibility(WFNfP,true);
var nRosI=document.getElementById(DHHoI+"-div1")
if(nRosI)html_SetVisibility(nRosI,false);
}
function WA_but(id,type,lx,ly,corner,bg,top_light,s_glow,ctePd,rot)
{
var el=document.getElementById(id)
if(el.gifgU==undefined)
{
el.gifgU=new Array();
NTKeq(el.gifgU,id,type,lx,ly,corner,bg,top_light,s_glow,ctePd,rot);
}
var c=el.getContext('2d');
var IeJqC=0;
if(ctePd)IeJqC=6 

c.fillStyle="#000000";
c.fillRect(-0,-0,lx+2*IeJqC,ly+2*IeJqC) 
c.clearRect(-10,-10,lx+2*IeJqC+10,ly+2*IeJqC+10) 
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(PnKIX()==false)
{
c.translate(IeJqC,IeJqC)
img.width=lx
img.height=ly 
if((isChrome()&&isWindowsOS())==false)
{
if(ctePd) bgfJi(c,0,0,lx,ly,corner,(type==1),rot)
}
{
var ptrn=c.createPattern(img,'no-repeat');
c.fillStyle=ptrn;
c.beginPath()
TCExF(c,type,lx,ly,corner)
c.fill()
}
kVEGq(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-IeJqC,-IeJqC)
}
else
{
var canv2=lQHSg(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.beginPath()
TCExF(c2,type,lx,ly,corner)
c2.closePath() 
c2.clip()
c2.drawImage(img,0,0,lx,ly);
kVEGq(c2,type,lx,ly,corner,bg,top_light,s_glow)
if(ctePd) DKPon(c,rot) 

c.clearRect(-10,-10,lx+2*IeJqC+10,ly+2*IeJqC+10)
c.drawImage(canv2,IeJqC,IeJqC);
RRNHA(c)
}
}
img.src=bg2;
return;
}
c.translate(IeJqC,IeJqC)
if(ctePd&&(PnKIX()==false))
{
var OfhFA=new RGBColor(bg);
if(OfhFA.a>0)
{
bgfJi(c,0,0,lx,ly,corner,(type==1),rot)
}
}
XHrWo(el,c,type,lx,ly,corner,bg2,ctePd,rot)
kVEGq(c,type,lx,ly,corner,bg,top_light,s_glow) 
c.translate(-IeJqC,-IeJqC)
}
function bgfJi(c,x0,y0,lx0,ly0,corner,is_circle,rot)
{
var decShadow=2;
var offset=uCCBU(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.fillStyle="rgba(0,0,0, "+opacity+")"
c.beginPath()
if(is_circle) vVXdx(c,x,y,lx,ly);else FxGtx(c,x,y,lx,ly,corner);
c.fill()
x+=1;y+=1;lx-=2;ly-=2;opacity+=0.04
c.closePath();
}
c.translate(-decShadow*offset.x,-decShadow*offset.y)
}
function KHAwT(id,x,y,lx,ly,arc,OdEVa,bord_col,bg,shadow,rot,Cawvm,SpUMe)
{
if(SpUMe==undefined)SpUMe=true;
var el=document.getElementById(id)
var c=el.getContext('2d');
if(Cawvm==undefined)Cawvm=1.0;
var IeJqC=0;
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
if(shadow)
{
IeJqC=6;
}
if(SpUMe) c.clearRect(0,0,el.width,el.height)
c.globalAlpha=Cawvm 
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 YTiqa=bg1.split(";");
var x1=parseFloat(YTiqa[0]);
var y1=parseFloat(YTiqa[1]);
var x2=parseFloat(YTiqa[2]);
var y2=parseFloat(YTiqa[3]);
var col1=YTiqa[4];
var col2=YTiqa[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-OdEVa;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
{
if(shadow) bgfJi(c,IeJqC,IeJqC,lx,ly,arc,false,rot)
}
if(OdEVa>0)
{
c2.fillStyle=bord_col;
FxGtx(c2,x,y,lx,ly,arc)
LDnrD(c2,x+OdEVa,y+OdEVa,lx-2*OdEVa,ly-2*OdEVa,arc2,true)
c2.fill()
}


c2.fillStyle=fill_obj 
FxGtx(c2,x+OdEVa,y+OdEVa,lx-2*OdEVa,ly-2*OdEVa,arc2)
c2.fill();
}
function bvwXo(MFItB,MENIr,TJOBc)
{
return new Point(Math.round(MFItB*Math.cos(TJOBc)-MENIr*Math.sin(TJOBc)),Math.round(MFItB*Math.sin(TJOBc)+MENIr*Math.cos(TJOBc)))
}
function OdnZo(c,x,y,lx,ly,arc,clowckwise,hjVQv)
{
c.beginPath()
aCfcb(c,x,y,lx,ly,arc,clowckwise,hjVQv)
}
function aCfcb(c,x,y,lx,ly,arc,clowckwise,hjVQv)
{
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 BnZPV=[[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=hjVQv*2*Math.PI/360
for(var n=0;n<BnZPV.length;n++)
{
var OpbfG=BnZPV[n][0]
var PSPFn=BnZPV[n][1]
BnZPV[n][0]=OpbfG*Math.cos(theta)-PSPFn*Math.sin(theta);
BnZPV[n][1]=OpbfG*Math.sin(theta)+PSPFn*Math.cos(theta);
}
var n=0;
c.moveTo(BnZPV[n][0],BnZPV[n++][1]);
c.lineTo(BnZPV[n][0],BnZPV[n++][1]);
c.quadraticCurveTo(BnZPV[n][0],BnZPV[n++][1],BnZPV[n][0],BnZPV[n++][1]);
c.lineTo(BnZPV[n][0],BnZPV[n++][1]);
c.quadraticCurveTo(BnZPV[n][0],BnZPV[n++][1],BnZPV[n][0],BnZPV[n++][1]);
c.lineTo(BnZPV[n][0],BnZPV[n++][1]);
c.quadraticCurveTo(BnZPV[n][0],BnZPV[n++][1],BnZPV[n][0],BnZPV[n++][1]);
c.lineTo(BnZPV[n][0],BnZPV[n++][1]);
c.quadraticCurveTo(BnZPV[n][0],BnZPV[n++][1],BnZPV[n][0],BnZPV[n++][1]);
}
function BUFEh(a,b,x,y)
{
return(a*x-y+b)/(Math.sqrt(1+a*a))
}
function YBdGX(new_a1,new_b1,lIksW,multi)
{
var d=0;
for(var i=0;i<lIksW.length;i++)
{
var YPFGn=lIksW[i]
var d1=BUFEh(new_a1,new_b1,YPFGn.x,YPFGn.y)
if(multi<0)
{
if(d1<0) d=Math.max(d,-d1);
}
else
{
if(d1>0) d=Math.max(d,d1);
}
}
return d;
}
function qOEOp(o1,o2)
{
if(o1<o2) return-1
if(o1>o2) return 1
return 0
}
function eVdtx(c,lx,ly,bg1)
{
var fill_obj=false;
var TDRBl=false;
var FDukA=false;
var lIksW=false
if(bg1.substring(0,1)=="(")
{
bg1=bg1.substring(1);
bg1=bg1.substring(0,bg1.length-1)
var YTiqa=bg1.split(";");
var toulU=new Point(parseFloat(YTiqa[0]),parseFloat(YTiqa[1]));
var fQeFi=new Point(parseFloat(YTiqa[2]),parseFloat(YTiqa[3]));
TDRBl=toulU.clone()
FDukA=fQeFi.clone()
var col1=YTiqa[4];
var col2=YTiqa[5];
var grad=c.createLinearGradient(TDRBl.x,TDRBl.y,FDukA.x,FDukA.y);
if(isMSIE_lower_than_ie9())
{
TDRBl=toulU.clone()
FDukA=fQeFi.clone() 
var rgcQi=0;
var KOQiU=1;
{
lIksW=[{x:0,y:0},{x:lx,y:0},{x:lx,y:ly},{x:0,y:ly}]
var d1=0;
var d2=0;
var a=(FDukA.y-TDRBl.y)/(FDukA.x-TDRBl.x);
var b=TDRBl.y-a*TDRBl.x;
var diff=1;
if(a==Infinity)
{
d1=(TDRBl.y)
d2=(ly-FDukA.y)
}
else
if(a==0)
{
d1=(TDRBl.x)
d2=(lx-FDukA.x)
}
else
{
var new_a1=-1/a;
var new_b1=TDRBl.y-new_a1*TDRBl.x;
d1=YBdGX(new_a1,new_b1,lIksW,-1)
var new_b2=FDukA.y-new_a1*FDukA.x;
d2=YBdGX(new_a1,new_b2,lIksW,1)
if(new_a1<0)diff=-1;
}
var d=Math.sqrt(Math.pow(FDukA.x-TDRBl.x,2)+Math.pow(FDukA.y-TDRBl.y,2))
var total=(d1+d+d2)
rgcQi=d1/total;
KOQiU=(d1+d)/total;
var pt_prod0=new Point(FDukA.x-TDRBl.x,FDukA.y-TDRBl.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)
{
rgcQi=d2/total;
KOQiU=(d2+d)/total;
}
}
grad.addColorStop(rgcQi,col1);
grad.addColorStop(KOQiU,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,OdEVa,bord_col,bg,shadow,rot,TrVVO,VsLCR,Cawvm,SpUMe)
{


var theta=rot*2*Math.PI/360 
if(SpUMe==undefined)SpUMe=true;
if(Cawvm==undefined)Cawvm=1.0;
var el=document.getElementById(id)
if(!el)return
var c=el.getContext('2d');
var IeJqC=(el.width-lx)/2;
if(SpUMe) c.clearRect(0,0,el.width,el.height)
var x_rect0=IeJqC;
var y_rect0=IeJqC;
var bg1=bg[0]
var fill_obj=false;
var TDRBl=false;
var FDukA=false;
var lIksW=false
fill_obj=eVdtx(c,lx,ly,bg1) 
if(Cawvm==undefined)Cawvm=1.0;
var arc2=arc-OdEVa;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
if(shadow)
{
c2.translate(TrVVO+6,VsLCR+6)
}
else
{
c2.translate(TrVVO,VsLCR)
}
c2.fillStyle=fill_obj;
OdnZo(c2,OdEVa,OdEVa,lx-2*OdEVa,ly-2*OdEVa,arc2,false,rot)
c2.fill();
}
function WA_bg(id,lx,ly,arc,OdEVa,bord_col,bg,shadow,rot,Cawvm,SpUMe)
{

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

var fill_obj=eVdtx(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()
ljtMm(c,el,lx,ly,arc,OdEVa,bord_col,ptrn,shadow,rot,Cawvm);
}
img.src=bg2;
}
else
{
ljtMm(c,el,lx,ly,arc,OdEVa,bord_col,fill_obj,shadow,rot,Cawvm)
}
}
function ljtMm(c,el,lx,ly,arc,OdEVa,bord_col,fill_obj,shadow,rot,Cawvm)
{
if(Cawvm==undefined)Cawvm=1.0;
var arc2=arc-OdEVa;
if(arc2<0)arc2=0
var IeJqC=(el.width-lx)/2;
var x_rect0=IeJqC;
var y_rect0=IeJqC;
var canv2=false;
var c2=c;
c.globalAlpha=1;

var CsFLQ=PnKIX();


if(CsFLQ==true)
{
canv2=lQHSg(lx,ly);
c2=canv2.getContext('2d');
c2.globalAlpha=Cawvm
}
else
{
c2.translate(IeJqC,IeJqC)
if(shadow) bgfJi(c2,0,0,lx,ly,arc,false,rot)
}

{
c2.fillStyle=bord_col;
FxGtx(c2,0,0,lx,ly,arc)
LDnrD(c2,OdEVa,OdEVa,lx-2*OdEVa,ly-2*OdEVa,arc2,true)
c2.fill()
}

c2.fillStyle=fill_obj;


FxGtx(c2,OdEVa,OdEVa,lx-2*OdEVa,ly-2*OdEVa,arc2)
c2.fill();
if(CsFLQ==true)
{
if(shadow) DKPon(c,rot)
c.globalAlpha=1.0
c.drawImage(canv2,IeJqC,IeJqC);
RRNHA(c)
}
else
{
c2.translate(-IeJqC,-IeJqC)
}
}
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(Pnlac){return(this.width>Pnlac.width)&&(this.height>Pnlac.height)}
this.scale=function(gYkTg,tmoAU)
{
if(!tmoAU)tmoAU=false
var VHXOD=this;
var ZFlxS=VHXOD.width
var XcZNg=VHXOD.height
var p1=ZFlxS*gYkTg.height;
var p2=gYkTg.width*XcZNg;
var r1=ZFlxS/XcZNg;
var r2=XcZNg/ZFlxS;
var newSize1=new Size(gYkTg.height*r1,gYkTg.height);
var newSize2=new Size(gYkTg.width,gYkTg.width*r2);
if(p2>p1)
{
if((tmoAU==true)||((newSize1.width<=VHXOD.width)&&(newSize1.height<=VHXOD.height)))
{
VHXOD.width=Math.round(newSize1.width);
VHXOD.height=Math.round(newSize1.height);
}
}
else
{
if((tmoAU==true)||((newSize2.width<=VHXOD.width)&&(newSize2.height<=VHXOD.height)))
{
VHXOD.width=Math.round(newSize2.width);
VHXOD.height=Math.round(newSize2.height);
}
}
this.width=VHXOD.width;
this.height=VHXOD.height;
return true;
}
}
function Point(p_x,p_y){this.x=p_x;this.y=p_y;
this.translate=function(MFItB,MENIr){this.x+=MFItB;this.y+=MENIr;}
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(IVejg){return(this.x==IVejg.x)&&(this.y==IVejg.y)&&(this.width==IVejg.width)&&(this.height==IVejg.height);}
this.copy=function(IVejg){this.x=IVejg.x;this.y=IVejg.y;this.width=IVejg.width;this.height=IVejg.height;}
this.translate=function(MFItB,MENIr){this.x+=MFItB;this.y+=MENIr;}
this.isValid=function(){return(this.width>0)&&(this.height>0);}
}
function html_getLayer(IVejg)
{
if(typeof(IVejg)=="string")return document.getElementById(IVejg);
return IVejg;
}
function html_SetPosition(IVejg,MFItB,MENIr){
IVejg=html_getLayer(IVejg);
IVejg.style.left=MFItB+"px";IVejg.style.top=MENIr+"px";
}
function html_SetSize(vFotT,WDiJT,vfBJG){
IVejg=html_getLayer(vFotT);
IVejg.style.width=WDiJT+"px";IVejg.style.height=vfBJG+"px";
}
function html_SetRect(IVejg,AOpsX){html_SetGeometry(IVejg,AOpsX.x,AOpsX.y,AOpsX.width,AOpsX.height);}
function html_SetGeometry(IVejg,MFItB,MENIr,WDiJT,vfBJG){html_SetPosition(IVejg,MFItB,MENIr);html_SetSize(IVejg,WDiJT,vfBJG);}
function html_SetVisibility(IVejg,UlBHS){IVejg=html_getLayer(IVejg);IVejg.style.visibility=(UlBHS)?"visible":"hidden";}
function html_SetDisplay(IVejg,UlBHS){IVejg=html_getLayer(IVejg);IVejg.style.display=(UlBHS)?"block":"none";}
function html_SetCanvasSize(IVejg,WDiJT,vfBJG){IVejg=html_getLayer(IVejg);IVejg.width=WDiJT;IVejg.height=vfBJG;}
function html_writeContent(IVejg,Pnlac){IVejg=html_getLayer(IVejg);IVejg.innerHTML=Pnlac;}
function html_SetOpacity(IVejg,BXHuY)
{
IVejg=html_getLayer(IVejg);
IVejg.style['opacity']=BXHuY;
IVejg.style['-moz-opacity']=BXHuY;
IVejg.style.filter=(BXHuY==1)?'':'alpha(opacity='+(BXHuY*100)+')';
}
var oOeTg=[
{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<oOeTg.length;i++)
{
var array2=oOeTg[i].l;
for(var i2=0;i2<array2.length;i2++)
{
var reg=new RegExp(array2[i2],"g");
res=res.replace(reg,oOeTg[i].acc)
}
}
return res;
}
function trimString(str)
{
return str.replace(/^\s*|\s*$/g,"");
}
function IsNumeric(bHijr)
{
var KSPpw="0123456789.";var wnwFU=true;var AjpXF;
for(INWBS=0;INWBS<bHijr.length&&wnwFU==true;INWBS++){AjpXF=bHijr.charAt(INWBS);if(KSPpw.indexOf(AjpXF)==-1) wnwFU=false;}
return wnwFU;
}
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(QWEen)
{
var Frxqo=QWEen*60;
var vZgxJ=new Date();
var MNcVS=0;
MNcVS+=vZgxJ.getYear()*12*31*24*60*60;
MNcVS+=vZgxJ.getMonth()*31*24*60*60;
MNcVS+=vZgxJ.getDate()*24*60*60;
MNcVS+=vZgxJ.getHours()*60*60;
MNcVS+=vZgxJ.getMinutes()*60;
MNcVS+=vZgxJ.getSeconds();
if(Frxqo!=0)
{
MNcVS=Math.floor(MNcVS/Frxqo)*Frxqo
}
return "-"+MNcVS;
}
function urlAntiCacheForPreview()
{
if(document.webaca_is_preview) return urlSuffixe(0);
return "";
}
function html_findPos(obj)
{
var BXHuY=wwiOI(obj)
return new Point(BXHuY[0],BXHuY[1])
}
function wwiOI(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(TuQhL,WDiJT,vfBJG)
{
vfBJG=vfBJG-4;
vfBJG=Math.max(18,vfBJG);
vfBJG=Math.min(25,vfBJG);

document.write("<input id='"+TuQhL+"' type=search results=0 placeholder='' style='width:"+WDiJT+"px;height:"+vfBJG+"px;'>")
}
function whObM()
{
var HJAuM=document.getElementsByTagName("A");
for(var INWBS=0;INWBS<HJAuM.length;INWBS++)
{
var IVejg=HJAuM[INWBS];
if(IVejg.onmouseover)IVejg.onmouseover=null;
if(IVejg.onmouseout)IVejg.onmouseout=null;
}
}
function lPfvT()
{
for(var nEqSM in document.wa_global_list_element)
{
var DHHoI=document.wa_global_list_element[nEqSM]
var qbWSj=document.getElementById(DHHoI)
qbWSj.onclick=function()
{
WA_focus(this)
}
}
}
function WA_declare(DHHoI)
{
if(!document.wa_global_list_element)
{
document.wa_global_list_element=new Array();;
}
document.wa_global_list_element.push(DHHoI)
}
function HBKLd()
{
var iGuAq=window.location.search;
if(iGuAq.substr(0,1)=="?")iGuAq=iGuAq.substr(1);
if(iGuAq.length==0)return;
var hwBtI=new Array();
var GefhG=iGuAq.split("&");
for(var i=0;i<GefhG.length;i++)
{
var vvYxb=GefhG[i].split("=");hwBtI[vvYxb[0]]=vvYxb[1];
}
var Pnlac_info=hwBtI["crbst_info"];
if(!Pnlac_info)return;
var oHNda=new Array();
oHNda.m_unid=Pnlac_info;
oHNda.m_index_item=-1;
var KpFPR_info=Pnlac_info.indexOf("-");
if(KpFPR_info!=-1)
{
oHNda.m_unid="wa-id-"+Pnlac_info.substring(0,KpFPR_info);
oHNda.m_index_item=parseInt(Pnlac_info.substring(KpFPR_info+1));
}
document.wa_global_query_info=oHNda;
}
function IS_onload_WA()
{

if(isMSIE8())
{
wa_timeout("IS_onload_ui()",0)
}
else
{
IS_onload_ui()
}
if(isIPhone())
{
whObM()
}
else
{
lPfvT()
}
HBKLd();

tqwEY()
}
function tqwEY()
{
var Fmkbw=0;
var qtdti=document.webaca_banner_height;
if(document.webaca_page_is_centered)
{
var vwDvU=getWindowSize().width
var ZMZDa=document.webaca_width_page
if(vwDvU>ZMZDa)Fmkbw=(vwDvU-ZMZDa)/2;
}
document.body.style.backgroundPosition=Fmkbw+"px "+qtdti+"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 hAAPe=CONST_WA_COUNTRIES.codes[n]
var DXpYN=CONST_WA_COUNTRIES.labels[n]
Translator.m_countries[hAAPe]=DXpYN
}
}
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(DHHoI,IocML,ctePd)
{
this.DHHoI=DHHoI;
this.IocML=IocML
this.ctePd=ctePd;
this.DHHoI_div=this.DHHoI+"-div"
this.DHHoI_canvas=this.DHHoI+"-canvas"
this.PuEXa=new Rect(0,0,0,0)
this.RLglo=false;
this.sCLFU=false;
this.IeJqC=6;
this.eJBuO_src=false;
this.eJBuO_clip=false;
this.eJBuO_rot=false;
this.QWVeh="";
this.shadow=function()
{
return this.ctePd;
}
this.marginShadow=function()
{
return this.IeJqC;
}
this.rect=function()
{
return this.PuEXa;
}
this.canvasId=function()
{
return this.DHHoI_canvas;
}
this.divId=function()
{
return this.DHHoI_div;
}
this.opacity=function()
{
return this.aunfO;
}
this.img_clip=function()
{
return this.eJBuO_clip;
}
this.img_src=function()
{
return this.eJBuO_src;
}
this.toHtml=function()
{
var Pnlac=""
Pnlac+="<div id='"+this.DHHoI_div+"' style=\"";
Pnlac+="position:absolute;";
if(this.QWVeh.length>0)
{
Pnlac+="cursor:pointer;";
}
if(this.rect.x>0)Pnlac+="left:"+this.rect.x+"px;";
if(this.rect.y>0)Pnlac+="top:"+this.rect.y+"px;";
if(this.rect.width>0)Pnlac+="width:"+this.rect.width+"px;";
if(this.rect.height>0)Pnlac+="height:"+this.rect.height+"px;";
if(IocML)
Pnlac+="z-index:"+IocML+";";
Pnlac+="\" ";
if(this.QWVeh.length>0)
{
Pnlac+="onclick=\""+this.QWVeh+"\" "
}
Pnlac+=">";
if((this.rect.width>0)&&this.shadow())
{
Pnlac+=html_canvas(this.DHHoI_canvas,this.rect.width+2*this.IeJqC,this.rect.height+2*this.IeJqC)+"</div>";
}
else
{
Pnlac+=html_canvas(this.DHHoI_canvas,0,0)+"</div>";
}
return Pnlac
}
this.setImage=function(CEgAf,DlwtG,hjVQv)
{
if(hjVQv==undefined)hjVQv=0;
if((CEgAf==this.eJBuO_src)&&(this.eJBuO_clip&&this.eJBuO_clip.equals(DlwtG))&&(this.eJBuO_rot==hjVQv))
{
return;
}
this.eJBuO_rot=hjVQv;
this.eJBuO_src=CEgAf;
this.eJBuO_clip=DlwtG;
this.fCpsE()
}
this.registerDynamicCanvas=function()
{
registerDynamicCanvas(this.DHHoI_canvas);
this.sCLFU=true;
this.setRect(this.PuEXa.x,this.PuEXa.y,this.PuEXa.width,this.PuEXa.height)
}
this.fCpsE=function()
{
if((this.PuEXa.width>0)&&(this.PuEXa.height>0))
{
this.draw()
}
this.RLglo=true
};
this.draw=function(){};
this.setPosition=function(MFItB,MENIr)
{
this.PuEXa.x=MFItB;this.PuEXa.y=MENIr;
if(this.sCLFU==false)return
html_SetPosition(this.DHHoI_div,this.PuEXa.x,this.PuEXa.y)
if(this.RLglo==false)
{
this.fCpsE()
}
}
this.setOnClick=function(Pnlac)
{
this.QWVeh=Pnlac
}
this.width=function(){return this.PuEXa.width;}
this.height=function(){return this.PuEXa.height;}
this.setSize=function(WDiJT,vfBJG)
{
this.PuEXa.width=WDiJT;this.PuEXa.height=vfBJG;
var RvjUi=WDiJT
var QnXfP=vfBJG
if(this.ctePd)
{
RvjUi+=2*this.IeJqC
QnXfP+=2*this.IeJqC
}
if(this.sCLFU==false)return
html_SetSize(this.DHHoI_div,RvjUi,QnXfP)
html_SetCanvasSize(this.DHHoI_canvas,WDiJT,vfBJG)
this.fCpsE()
}
this.setRect=function(MFItB,MENIr,WDiJT,vfBJG)
{
this.PuEXa.x=MFItB;this.PuEXa.y=MENIr;this.PuEXa.width=WDiJT;this.PuEXa.height=vfBJG;
var RvjUi=WDiJT
var QnXfP=vfBJG
var GHrQf=MFItB
var sXthc=MENIr
if(this.ctePd)
{
RvjUi+=2*this.IeJqC
QnXfP+=2*this.IeJqC
GHrQf-=this.IeJqC
sXthc-=this.IeJqC
}
if(this.sCLFU==false)return 
html_SetGeometry(this.DHHoI_div,GHrQf,sXthc,RvjUi,QnXfP);
html_SetCanvasSize(this.DHHoI_canvas,RvjUi,QnXfP)
try{this.fCpsE()}catch(e){
}
}
this.setVisible=function(UlBHS)
{
if(this.sCLFU==false)return
html_SetVisibility(this.DHHoI_div,UlBHS)
}
this.setOpacity=function(BXHuY)
{
this.aunfO=BXHuY 

if(this.sCLFU==false)return
this.fCpsE()
}
}

function is_onresize()
{
WA_Dialog.resizeUI()
try
{
if(WA_PhotoAlbum_resizeUI)WA_PhotoAlbum_resizeUI()
}
catch(e){}
tqwEY()
}
function is_onscroll()
{
centerFullPageContainer();
}
function registerDynamicCanvas(id)
{
if(isMSIE_lower_than_ie9())
G_vmlCanvasManager.initElement(document.getElementById(id));
}
function WA_openDialogAction(nEqSM)
{
var bJlol=WA_Dialog.mgaZT;
if(nEqSM==-1){bJlol.closeWin();return;}
var uHWMR=bJlol.fgwZE(nEqSM);
if(uHWMR[5])
{
uHWMR[4].call(uHWMR[6],uHWMR[5])
}
else
{
uHWMR[4](uHWMR[5]);
}
}
function WA_Dialog(UlBHS_close_button)
{
this.WLNCc=0;
this.mJYdG=0;
this.gYkTg_win_width=600;
this.YNRCA=400;
this.TNNwl=new Array();
this.rfLmZ="wa-dialog-but-";
this.YJCtY=this.rfLmZ+"div-";
this.lWVLX=this.rfLmZ+"canvas-";
this.BUTTON_HEIGHT=22;
this.OYQgn=CONST_WA_GLOBAL_COLOR_THEME;
this.UlBHS_close_button=UlBHS_close_button;
this.LEKeA=6;
this.aIvXA=function()
{
if(this.UlBHS_close_button==undefined)this.UlBHS_close_button=true;
this.UEJJe();
}
this.resetButtons=function()
{
this.UEJJe();
}
this.idealHeight=function()
{
return this.fHroq
}
this.displayWindowWithAutoResize=function(QOMWB,nxPEX)
{
this.JFjWS=false
this.fHroq=QOMWB
this.UGZNX=nxPEX 
this.resetButtons();
nxPEX.call(this)
var l=document.getElementById('wa-dialog-content');
if(this.JFjWS==false)
if(l.scrollHeight>200)
{
this.JFjWS=true
this.fHroq=l.scrollHeight+150
this.resetButtons();
nxPEX.call(this)
}
}
this.initializeWindow=function(gYkTg_lx,gYkTg_ly)
{
if(WA_Dialog.mgaZT)WA_Dialog.mgaZT.closeWin()
WA_Dialog.mgaZT=this;
this.gYkTg_win_width=gYkTg_lx;
this.YNRCA=gYkTg_ly;
this.NeLmL()
}
this.progress=function()
{
this.initializeWindow(300,100)
this.writeContent("<div width=100% align=center><img src='wa_loading.gif'></div>")
}
this.CKIAj=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(DXpYN,UqKso,TAGPt,svYjg)
{
var OdLHT=this.TNNwl.length
if(this.UlBHS_close_button==true)
{
OdLHT--;
}
var WDiJT=Math.max((DXpYN.length*8)*1.2+30,80)
var VHXOD=new Size(WDiJT,this.BUTTON_HEIGHT);
this.xtwWg("action_"+OdLHT,OdLHT,DXpYN,UqKso,VHXOD,TAGPt,svYjg)
}
this.UEJJe=function()
{
this.TNNwl=new Array();
if(this.UlBHS_close_button)
{

var VHXOD=new Size(50,20);
this.xtwWg("close",-1,"X",null,VHXOD)
}
}
this.xtwWg=function(xJTKm,OdLHT,DXpYN,UqKso,VHXOD,TAGPt,svYjg)
{
var uHWMR=[xJTKm,VHXOD,OdLHT,DXpYN,UqKso,TAGPt,svYjg];
this.TNNwl.push(uHWMR);
}
this.writeContent=function(s)
{
var l=document.getElementById('wa-dialog-content');
l.innerHTML=s
}
this.fgwZE=function(xJTKm)
{
for(var nEqSM=0;nEqSM<this.TNNwl.length;nEqSM++)
{
var uHWMR=this.TNNwl[nEqSM];
if((uHWMR[0]==xJTKm)||(uHWMR[2]+""==xJTKm+""))
return uHWMR;
}
return undefined;
}
this.ZnmGk=function(xJTKm)
{
var uHWMR=this.fgwZE(xJTKm);
return uHWMR[1]
}
this.getColorTheme=function(nEqSM)
{
return this.OYQgn[nEqSM];
}
this.kwDeN=function(UfTDQ)
{
var uHWMR=this.fgwZE(UfTDQ);
var xJTKm=uHWMR[0];
var OdLHT=uHWMR[2];
var BZwpc_text=this.OYQgn[4]
var BZwpc_bg=this.OYQgn[5]
var BZwpc_glow=this.OYQgn[7]
if(OdLHT==-1)
{
BZwpc_text=this.OYQgn[10]
BZwpc_bg=this.OYQgn[8]
BZwpc_glow=this.OYQgn[11]
}
var PVKrp=this.YJCtY+xJTKm;
var IQTnq=this.lWVLX+xJTKm;
var VHXOD=this.ZnmGk(UfTDQ)
var bwtxG=0;
var s=""
s+="<a href='javascript:WA_openDialogAction("+UfTDQ+")' ";
var BZwpc=new RGBColor(BZwpc_bg);
var BZwpc_hsl=BZwpc.toHsl();
BZwpc.fromHsl(BZwpc_hsl[0],BZwpc_hsl[1],BZwpc_hsl[2]+0.2)
BZwpc_bg=BZwpc.toRGB();
var SKqWD_glow=new RGBColor(BZwpc_glow);
var SKqWD_glow_hsl=SKqWD_glow.toHsl();
SKqWD_glow.fromHsl(SKqWD_glow_hsl[0],SKqWD_glow_hsl[1],SKqWD_glow_hsl[2]+0.2)
BZwpc_glow=SKqWD_glow.toRGB();
s+="onmouseover=\"WA_but_over('"+IQTnq+"','"+BZwpc_bg+"','"+BZwpc_glow+"')"+"\" ";
s+="onmouseout=\""+"WA_but_out('"+IQTnq+"')"+"\" ";
s+="style='text-decoration:none;'>";
s+="<div id='"+this.YJCtY+xJTKm+"' style='position:absolute;cursor:pointer;left:0px;top:0px;height:"+VHXOD.height+"px;width:"+VHXOD.width+"px;' >";
s+="<div style='position:absolute;left:"+(-bwtxG)+"px;top:"+(-bwtxG)+"px;height:"+VHXOD.height+"px;'>" 
s+=html_canvas(this.lWVLX+xJTKm,(VHXOD.width+bwtxG*2),(VHXOD.height+bwtxG*2));
s+="</div>"
s+="<div align=center style='position:absolute;left:0px;top:"+(0)+"px;vertical-align:middle;width:100%;height:"+(VHXOD.height)+"px;line-height:"+(VHXOD.height)+"px;font-family:arial;font-size:13px;font-weight:bold;color:"+BZwpc_text+"'>"
s+=uHWMR[3];
s+="</div>"
s+="</div>"
s+="</a>"
return s;
}
this.Pjqku=function(xJTKm)
{
var uHWMR=this.fgwZE(xJTKm);
var OdLHT=uHWMR[2];
var BZwpc_bg=this.OYQgn[5]
var BZwpc_glow=this.OYQgn[7]
var BZwpc_text=this.OYQgn[3]
if(OdLHT==-1)
{
BZwpc_bg=this.OYQgn[8]
BZwpc_glow=this.OYQgn[11]
BZwpc_text=this.OYQgn[10]
}
var hAAPe=this.lWVLX+xJTKm;
registerDynamicCanvas(hAAPe);
var VHXOD=this.ZnmGk(xJTKm);
var CRxAm=VHXOD.height*0.25;
var ZurWR=true;
CRxAm=0;
ZurWR=false;
var RmgSh=0;
var aMRTW=(VHXOD.width-2);
var dfxOd=VHXOD.height*0.45;

var YTiqa_top=[1,1,aMRTW,dfxOd,RmgSh];
var DGitw=VHXOD.width-2;
var PAHQR=VHXOD.height*0.45;
var TrqWL=BZwpc_glow;
var FNNbH=BZwpc_glow;
var GAUhQ=0;

var YTiqa_bottom=[(VHXOD.width-DGitw)/2,VHXOD.height-PAHQR-1,DGitw,PAHQR,GAUhQ,TrqWL,FNNbH];
WA_but(hAAPe,0,VHXOD.width,VHXOD.height,CRxAm,BZwpc_bg,YTiqa_top,YTiqa_bottom,ZurWR,0)
}
this.GRSkI=function(xJTKm)
{
var uHWMR=this.fgwZE(xJTKm)
if(uHWMR)
{
var hAAPe=this.YJCtY+uHWMR[0];
return document.getElementById(hAAPe);
}
return undefined
}
this.NeLmL=function()
{
var l=document.getElementById('wa-dialog-container');
l.style.display="block" 

var s="";
var CYIEf=document.webaca_banner_height
s+="<div  style='position:absolute;left:0px;top:"+CYIEf+"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:"+CYIEf+"px;width:100px;height:100px;' >"
s+="<div style='position:absolute;left:0px;top:0px;width:100px;height:100px;' >";
s+=html_canvas('wa-dialog1',100,100);
s+="</div>"
for(var INWBS in this.TNNwl)
{
s+=this.kwDeN(this.TNNwl[INWBS][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.JsnGI)
}
this.JsnGI=function()
{
registerDynamicCanvas('wa-dialog1');
for(var INWBS in this.TNNwl)
{
this.Pjqku(this.TNNwl[INWBS][0])
}
this.uxSnK()
if(this.jPlxW())
{
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.mgaZT=false
}
this.closeWin=function()
{
this.intern_closeWin()
}
this.cssText1=function()
{
return "font-family:Arial;font-size:15px;color:"+this.OYQgn[3]+";";
}
this.onCustomKeypress=function(ZboZi)
{
if((this.TNNwl.length==1)&&(ZboZi==13))
{
this.closeWin()
return true;
}
return false;
}
this.onkeypress=function(ZboZi)
{
return this.onCustomKeypress(ZboZi)
}
this.onkeydown=function(ZboZi)
{
if(ZboZi==27)
{
this.closeWin()
return true;
}
return this.onCustomKeypress(ZboZi) 
}
this.customUpdate=function(){}
this.jPlxW=function()
{
return isIPhone();
}
this.uxSnK=function()
{
var SKcTs=document.webaca_width_page;
var rYZFb=document.webaca_height_page;
var LEEOj=getWindowSize().width
var JaZnD=getWindowSize().height
var miWdZ=getWindowFullSize().width
var eENUT=getWindowFullSize().height
var CQbRY=550;
var VXFtk=400;
LEEOj=Math.max(LEEOj,CQbRY);
JaZnD=Math.max(JaZnD,VXFtk);
if(this.jPlxW())
{
LEEOj=600;
JaZnD=700;
}
this.WLNCc=Math.min(LEEOj*0.9,this.gYkTg_win_width)
this.mJYdG=Math.min(JaZnD*0.9,this.YNRCA)
var jHYPm=document.getElementById('wa-dialog1');
jHYPm.width=this.WLNCc+10
jHYPm.height=this.mJYdG+10
var MFItB=getWindowScroll().x+(LEEOj-jHYPm.width)/2
var MENIr=getWindowScroll().y+(JaZnD-jHYPm.height)/2
MFItB=(LEEOj-jHYPm.width)/2
MENIr=(JaZnD-jHYPm.height)/2
MFItB=Math.max(0,MFItB)
MENIr=Math.max(0,MENIr)
if(this.jPlxW())
{
MFItB=0
MENIr=0;
}
var bapWv=document.getElementById('wa-dialog-main');
html_SetGeometry('wa-dialog-main',MFItB,MENIr,jHYPm.width,jHYPm.height);
var QBljV_bg="(0;0;0;"+this.mJYdG*0.25+";"+this.OYQgn[1]+";"+this.OYQgn[2]+")";
var RvIaE=4;
WA_bg('wa-dialog1',this.WLNCc,this.mJYdG,RvIaE,3,this.OYQgn[0],[QBljV_bg],true,0)
var GZkhY=10;
var RcgAK_close=this.GRSkI(-1)
if(RcgAK_close)
{
var EpaKf=this.ZnmGk(-1) 
var marginClose=3
html_SetPosition(RcgAK_close,this.WLNCc-EpaKf.width-marginClose+this.LEKeA-1,marginClose+this.LEKeA-1)
}
var VhBsm=this.TNNwl.length;
if(this.UlBHS_close_button==true)
{
VhBsm--;
}
var MVLxe=10;
var HIXFJ=0;
for(var INWBS=0;INWBS<VhBsm;INWBS++)
{
if(INWBS>0) HIXFJ+=MVLxe;
var VHXOD_but=this.ZnmGk(INWBS);
HIXFJ+=VHXOD_but.width;
}
var gOGjm=(this.WLNCc-HIXFJ)/2
for(var INWBS=0;INWBS<VhBsm;INWBS++)
{
if(INWBS>0) gOGjm+=MVLxe;
var RcgAK_div=this.GRSkI(INWBS);
var VHXOD_but=this.ZnmGk(INWBS);
html_SetPosition(RcgAK_div,gOGjm+this.LEKeA,+this.LEKeA+this.mJYdG-VHXOD_but.height-2*GZkhY)
gOGjm+=VHXOD_but.width;
}
var YDIck=45;
var SGoCT=this.BUTTON_HEIGHT+2*GZkhY;
if(VhBsm==0)
{
SGoCT=0;
}
var VdoZh=(this.mJYdG-YDIck-SGoCT)-GZkhY
var ZjEbb=document.getElementById('wa-dialog-content');
var bJlol_content=Math.round(this.WLNCc-2*GZkhY)
var BJZAE=Math.round(VdoZh)
this.m_content_lx=bJlol_content
this.m_content_ly=BJZAE
html_SetGeometry('wa-dialog-content',Math.round(5+(this.WLNCc-bJlol_content)/2),Math.round(5+YDIck+(VdoZh-BJZAE)/2),bJlol_content,BJZAE);
this.customUpdate() 
var GAWwa=document.getElementById('wa-dialog-container');
var fQZTb=eENUT
fQZTb=Math.max(fQZTb,JaZnD) 
var JcQPS=miWdZ
JcQPS=Math.max(JcQPS,LEEOj)
if(this.jPlxW())
{
JcQPS=Math.max(JcQPS,SKcTs)
fQZTb=Math.max(fQZTb,rYZFb)
}
html_SetSize('wa-dialog-container',JcQPS,fQZTb);
centerFullPageContainer();
}
this.aIvXA();
}
function centerFullPageContainer()
{
var QUHsG=WA_Dialog.getCurrent() 


var SKcTs=document.webaca_width_page;
var rYZFb=document.webaca_height_page;
var GAWwa=document.getElementById('wa-dialog-container');
if(/opera/i.test(navigator.userAgent))
{
if((GAWwa.style.display=="none")||(GAWwa.style.display=="")) return;
return;
}
var miWdZ=getWindowSize().width 
var eENUT=getWindowSize().height
var MENIr_bg=getWindowScroll().y;
var OulOd=QUHsG&&QUHsG.jPlxW();
if(OulOd)
{
MENIr_bg=0
}
MENIr_bg=Math.min(MENIr_bg,rYZFb-eENUT+1)
MENIr_bg=Math.max(MENIr_bg,0)
var WmTTN=getWindowScroll().x;
if(OulOd)
{
WmTTN=0
}
WmTTN=Math.min(WmTTN,SKcTs-miWdZ+1)
WmTTN=Math.max(WmTTN,0)
html_SetPosition('wa-dialog-container',WmTTN,MENIr_bg,miWdZ,eENUT);
}
function isOperaBrowser()
{
return(/opera/i.test(navigator.userAgent))
}
function WA_exec_callback_opera_compliant(TAGPt,SrMwG)
{
if(/opera/i.test(navigator.userAgent))
WA_exec_delayedCallback(TAGPt,SrMwG)
else
SrMwG.call(TAGPt)
}
function WA_exec_delayedCallback(TAGPt,SrMwG)
{
wa_timeout(Delegate.create(TAGPt,SrMwG),0);
}
WA_Dialog.getCurrent=function()
{
return WA_Dialog.mgaZT;
}
WA_Dialog.mgaZT=false;
WA_Dialog.resizeUI=function()
{
if(WA_Dialog.mgaZT)
{
var QUHsG=WA_Dialog.mgaZT
if(QUHsG.jPlxW()==false)
{
QUHsG.uxSnK()
}
}
}
WA_Dialog.alert=function(s)
{
var w=new WA_Dialog();
w.CKIAj(s)
}
WA_Dialog.progress=function()
{
var w=new WA_Dialog(false);
w.progress()
}

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

}
};
return http_request;
}
function makePOSTRequest(url,parameters,callback,ROJhg)
{
var http_request=getXMLHttpRequest(callback,ROJhg);
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(DxVcZ,dPGbY,svYjg)
{
var result=dPGbY.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 qvcQI=svYjg[0] 
WA_Dialog.alert(Translator.tr("Success:Mail sended"));
var form=document.getElementById(qvcQI);
form.reset()
}
else
{
var MSdRn="error_string="
n=result.indexOf(MSdRn)
if(n>-1)
{
result=result.substring(n+MSdRn.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((trimString(el.value).length==0)&&(el.name.indexOf("_mandatory")>-1))
{
el.style.backgroundColor="#ff0000";el.focus();return;
}
var qWHwG=el.value
qWHwG=encodeURI(qWHwG)
qWHwG=qWHwG.replace(/&/g,escape("&")) 
poststr+=el.name.replace("_mandatory","")+"="+qWHwG+"&"
}
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(oPVwm)
{
var UhCaV=document.getElementById(oPVwm);
UhCaV.submit() 
}
function fAVwO(DHHoI,svYjg)
{
var ZboZi=svYjg[0]
if(ZboZi==13)
{
var oPVwm=DHHoI+"-form";
var UhCaV=document.getElementById(oPVwm);
for(var i=0;i<UhCaV.elements.length;i++)
{
var qbWSj=UhCaV.elements[i];
if((qbWSj.type=="textarea")&&(qbWSj.hasFocus))
{
return true;
}
}
WA_form_submit(oPVwm);
return false;
}
return true;
}
function WA_addFormDeclaration(DHHoI,wcxWt)
{
var oPVwm=DHHoI+"-form";
var UhCaV=document.getElementById(oPVwm);
for(var i=0;i<UhCaV.elements.length;i++)
{
var qbWSj=UhCaV.elements[i];
if(/^text/.test(qbWSj.type))
{
qbWSj.hasFocus=false;
qbWSj.onfocus=function(){this.hasFocus=true;};
qbWSj.onblur=function(){this.hasFocus=false;};
}
}
return WA_addHandler(DHHoI,"keypress",fAVwO)
}
function WA_form_bg(id,lx,ly,arc,OdEVa,bord_col,bg,shadow,hjVQv,LqrLH)
{
WA_bg(id,lx,ly,arc,OdEVa,bord_col,bg,shadow,hjVQv,1.0,true) 
var mdUSw=LqrLH.x;
var ZNYGf=0;
var ctlvo=LqrLH.cells
for(var n=0;n<ctlvo.length;n++)
{
var QHWVk=ctlvo[n]
var arc2=0
KHAwT(id,mdUSw,ZNYGf+QHWVk.y,LqrLH.w,QHWVk.h,arc2,1,LqrLH.border,[''],false,0,1.0,false)
KHAwT(id,mdUSw,ZNYGf+QHWVk.y,QHWVk.w,QHWVk.h,arc2,1,"rgba(0,0,0,0)",[LqrLH.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);
if(this.browser==undefined)
{
if(navigator.appName.search(/explorer/i)!=-1) this.browser="Explorer";
}
if(this.browser==undefined)
{
this.browser="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(uaBiu)
{
this.ok=false;this.a=1.0;
if(uaBiu.charAt(0)=='#'){uaBiu=uaBiu.substr(1);}
uaBiu=uaBiu.replace(/ /g,'');
uaBiu=uaBiu.toLowerCase();
var PSaes=[
{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<PSaes.length;i++){
var PxQrw=PSaes[i].re;
var HIQcu=PSaes[i]._process;
var OifnK=PxQrw.exec(uaBiu);
if(OifnK){
var OMCxL=HIQcu(OifnK);
this.r=OMCxL[0];this.g=OMCxL[1];this.b=OMCxL[2];this.a=OMCxL[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.XnUls=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.XnUls(p,q,h+1/3);g=this.XnUls(p,q,h);b=this.XnUls(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 eYdPr(HkUiG_event,svYjg)
{
if(document.wa_global_handlers!=undefined)
{
var DHHoI=WA_focused_element()
if(DHHoI)
{
var UqKso=document.wa_global_handlers[DHHoI+"-"+HkUiG_event] 
if(UqKso) return UqKso([DHHoI],svYjg)
}
}
return true;
}
function Tllcn(e)
{
if(!e) e=window.event;
if(window.event){return e.keyCode;}
else 
if(e.which) return  e.which;
return-1;
}
function WA_onkeypress(e)
{
var ZboZi=Tllcn(e);
if(WA_Dialog.mgaZT)
{
if(WA_Dialog.mgaZT.onkeypress(ZboZi))
{
return false;
}
}
var FKnGP=eYdPr("keypress",[ZboZi]);
return FKnGP
}
function WA_ondblclick(e)
{
return eYdPr("dblclic",[""]);
}
function WA_onkeydown(e)
{
var ZboZi=Tllcn(e)
if(WA_Dialog.mgaZT)
{
if(WA_Dialog.mgaZT.onkeydown(ZboZi))
{
return false;
}
}
if(ZboZi==13) return true;

if(wa_global_photo_album&&wa_global_photo_album.fullpage_object)
{
var TAGPt=wa_global_photo_album.fullpage_object
return TAGPt.onFullScreenKeydown(ZboZi) 
}
return eYdPr("keydown",[ZboZi]);
}
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 DHHoI=this.id
var UqKso=document.wa_global_handlers[DHHoI+"-mousewheel"]
if(UqKso)
{
if(UqKso([DHHoI],[delta]))
{
b_default=true;
}
}
}
}
if(b_default)
if(e.preventDefault)
e.preventDefault();
e.returnValue=!b_default;
}
function WA_addHandler(DHHoI,HkUiG_event,SrMwG)
{
if(document.wa_global_handlers==undefined) document.wa_global_handlers=new Array()
if(HkUiG_event=="mousewheel")
{
var wmGdj=document.getElementById(DHHoI);
if(wmGdj.addEventListener)
wmGdj.addEventListener('DOMMouseScroll',WA_genericMouseWheelHandler,false);
wmGdj.onmousewheel=WA_genericMouseWheelHandler
}
document.wa_global_handlers[DHHoI+"-"+HkUiG_event]=SrMwG
}
function WA_loadPhotoAlbum(DHHoI,AKiuV,VHXOD,DHHoI_modif)
{
if(typeof(wa_global_photo_album[DHHoI])=="undefined")
{
var o=new Array();
o.src_folder=AKiuV
o.size_container=VHXOD
o.id_modif=DHHoI_modif
wa_global_photo_album[DHHoI]=o;
}
}
function WA_focused_element()
{
return document.wa_global_focused_element
}
function WA_focus(TAGPt)
{
document.wa_global_focused_element=TAGPt.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(DHHoI_blog,DHHoI_button,UVVDB)
{
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[DHHoI_button])document.wa_global_blogs_elements[DHHoI_button]=new Array()
document.wa_global_blogs_elements[DHHoI_button].id_blog=DHHoI_blog
document.wa_global_blogs_elements[DHHoI_button].has_email=UVVDB
}
function WA_addSearchHandler(DHHoI)
{
return WA_addHandler(DHHoI,"keypress",nUFYt)
}
function nUFYt(DHHoI,svYjg)
{
var ZboZi=svYjg[0]
if(ZboZi==13)
{
var DHHoI_input=DHHoI+"-search-input";
WA_onSearch(DHHoI_input)
return false;
}
return true;
}
function WA_declareSearchIndex(ugUIh,pDblg)
{
document.const_wa_search_js=ugUIh
document.const_wa_search_index_js=pDblg
}
function WA_onSearch(DHHoI_input)
{
var tYSZH=document.getElementById(DHHoI_input);
if(document.wa_search_js_loaded==true)
{
WA_openSearchDialog(tYSZH,document.const_wa_search_index_js)
}
else
{
WA_Dialog.progress();
biePJ(tYSZH)
}
}
function sAFsk(svYjg)
{
document.wa_search_js_loaded=true
WA_openSearchDialog(svYjg[0],document.const_wa_search_index_js)
}
function biePJ(tYSZH_field)
{
WA_loadScript(document.const_wa_search_js,sAFsk,[tYSZH_field])
}
function fpFdx(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 fpFdx(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(DHHoI)
{
var iDVtQ=document.wa_global_menu_declaration[DHHoI]
WA_bg(DHHoI,iDVtQ.root_lx,iDVtQ.root_ly,iDVtQ.root_corner,iDVtQ.root_border,iDVtQ.root_col_border,[iDVtQ.root_bg],false,0)
var qbWSj=document.getElementById(iDVtQ.id)
if(!qbWSj)return;
var c=qbWSj.getContext('2d');
c.lineWidth=1
c.strokeStyle=iDVtQ.root_col_separator
var uFKkn=0.5;

var iHXuM=iDVtQ.root_sizes.length
if(iDVtQ.root_extend==false)
{
iHXuM--;
}
var lvUNV=3;
for(var i=0;i<iHXuM;i++)
{
var VHXOD=iDVtQ.root_sizes[i] 

c.beginPath();
if(iDVtQ.root_vertical==false)
{
uFKkn+=(VHXOD-1)
c.moveTo(uFKkn,lvUNV)
c.lineTo(uFKkn,iDVtQ.root_ly-lvUNV)
}
else
{
uFKkn+=(VHXOD)
c.moveTo(lvUNV,uFKkn-1,0)
c.lineTo(iDVtQ.root_lx-lvUNV,uFKkn-1)
}
c.closePath();
c.stroke()
}
}
function WA_declare_menu(DHHoI,iDVtQ)
{
if(!document.wa_global_menu_declaration)document.wa_global_menu_declaration=new Array();
iDVtQ.id=DHHoI
document.wa_global_menu_declaration[DHHoI]=iDVtQ
WA_bg_menu(DHHoI)
}
function WA_declareMarket(DHHoI,IDXwZ,DHHoI_modif)
{
if(typeof(wa_global_market.markets[IDXwZ])=="undefined")
{
var o=new Array();
o.src_folder=IDXwZ
o.id_modif=DHHoI_modif 

o.id=DHHoI
wa_global_market.markets[IDXwZ]=o;
}
}
function WA_button_market_declare(DHHoI,DXpYN)
{
if(!document.wa_global_button_market_declaration)document.wa_global_button_market_declaration=new Array();
document.wa_global_button_market_declaration[DHHoI]=DXpYN
}
function VoRoP(c,img,MFItB,MENIr,WDiJT,vfBJG,DlwtG,Cawvm,SpUMe)
{
c.globalAlpha=Cawvm
if(SpUMe) c.clearRect(0,0,WDiJT,vfBJG) 
if(Cawvm==0)
{
return;
}
if(Cawvm==0)return;
if(DlwtG)
{
c.drawImage(img,DlwtG.x,DlwtG.y,DlwtG.width,DlwtG.height,MFItB,MENIr,WDiJT,vfBJG)
}
else
{
c.drawImage(img,MFItB,MENIr,WDiJT,vfBJG)
}
}
function WA_drawImage(id,CEgAf,MFItB,MENIr,WDiJT,vfBJG,DlwtG,Cawvm,SpUMe)
{
if(SpUMe==undefined)SpUMe=true;
if(Cawvm==undefined)Cawvm=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==CEgAf)
{
VoRoP(c,c.WPKbW,MFItB,MENIr,WDiJT,vfBJG,DlwtG,Cawvm,SpUMe)
return;
}
var img=new Image();
img.PonMw=el.PonMw
img.onload=function()
{
c.old_src=CEgAf
c.WPKbW=this;
VoRoP(c,this,MFItB,MENIr,WDiJT,vfBJG,DlwtG,Cawvm,SpUMe)
}
img.src=CEgAf;
}

-->
