<!--

function Delegate(){}
Delegate.create=function(o,f){
var XxPKP=new Array();
var SvQum=arguments.length;
for(var i=2;i<SvQum;i++) XxPKP[i-2]=arguments[i];
return function(){
var BrdKg=[].concat(arguments,XxPKP);
f.apply(o,BrdKg);
}
}
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.gVoxZ=0;
t.SxBDe=0;
t.AmYoa=0;
t.buUAI=0;
t.kFJbn=0;
t.jleIZ=0;
t.bnItJ=false;
t.name='';
t.suffixe='';
t.Gqbnk=new Array();
t.setTime=function(t){
this.prevTime=this.SxBDe;
if(t>this.getDuration()){
if(this.looping){
this.rewind(t-this.gVoxZ);
this.update();
this.iHaaY('onMotionLooped',{target:this,type:'onMotionLooped'});
}else{
this.SxBDe=this.gVoxZ;
this.update();
this.stop();
this.iHaaY('onMotionFinished',{target:this,type:'onMotionFinished'});
}
}else if(t<0){
this.rewind();
this.update();
}else{
this.SxBDe=t;
this.update();
}
}
t.isRunning=function(){
return this.bnItJ;
}
t.getTime=function(){
return this.SxBDe;
}
t.setDuration=function(d){
this.gVoxZ=(d==null||d<=0)?100000:d;
}
t.getDuration=function(){
return this.gVoxZ;
}
t.setPosition=function(p){
this.prevPos=this.AmYoa;
var a=this.suffixe!=''?this.suffixe:'';
this.obj[this.prop]=Math.round(p)+a;
this.AmYoa=p;
this.iHaaY('onMotionChanged',{target:this,type:'onMotionChanged'});
}
t.getPosition=function(t){
if(t==undefined) t=this.SxBDe;
return this.func(t,this.begin,this.change,this.gVoxZ);
};
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.Gqbnk=new Array();
this.addListener(this);
if(suffixe) this.suffixe=suffixe;
this.obj=obj;
this.prop=prop;
this.begin=begin;
this.AmYoa=begin;
this.setDuration(duration);
if(func!=null&&func!=''){
this.func=func;
}
this.setFinish(finish);
}
t.start=function(){
this.rewind();
this.startEnterFrame();
this.iHaaY('onMotionStarted',{target:this,type:'onMotionStarted'});
}
t.rewind=function(t){
this.stop();
this.SxBDe=(t==undefined)?0:t;
this.fixTime();
this.update();
}
t.fforward=function(){
this.SxBDe=this.gVoxZ;
this.fixTime();
this.update();
}
t.update=function(){
this.setPosition(this.getPosition(this.SxBDe));
}
t.startEnterFrame=function(){
this.stopEnterFrame();
this.bnItJ=true;
this.onEnterFrame();
}
t.onEnterFrame=function(){
if(this.bnItJ){
this.nextFrame();
wa_timeout(Delegate.create(this,this.onEnterFrame),0);
}
}
t.nextFrame=function(){
this.setTime((this.getTimer()-this.kFJbn)/1000);
}
t.stop=function(){
this.stopEnterFrame();
this.iHaaY('onMotionStopped',{target:this,type:'onMotionStopped'});
}
t.stopEnterFrame=function(){
this.bnItJ=false;
}
t.continueTo=function(finish,duration){
this.begin=this.AmYoa;
this.setFinish(finish);
if(this.gVoxZ!=undefined)
this.setDuration(duration);
this.start();
}
t.resume=function(){
this.fixTime();
this.startEnterFrame();
this.iHaaY('onMotionResumed',{target:this,type:'onMotionResumed'});
}
t.yoyo=function(){
this.continueTo(this.begin,this.SxBDe);
}
t.addListener=function(o){
this.removeListener(o);
return this.Gqbnk.push(o);
}
t.removeListener=function(o){
var a=this.Gqbnk;
var i=a.length;
while(i--){
if(a[i]==o){
a.splice(i,1);
return true;
}
}
return false;
}
t.iHaaY=function(){
var arr=new Array();
for(var i=0;i<arguments.length;i++){
arr.push(arguments[i])
}
var e=arr.shift();
var a=this.Gqbnk;
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.kFJbn=this.getTimer()-this.SxBDe*1000;
}
t.getTimer=function(){
return new Date().getTime()-this.SxBDe;
}
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,ZZkEr,kXUQU,gVoxZ){
this.targetObject=obj;
this.init(new Object(),'a',func,ZZkEr,kXUQU,gVoxZ);
this.onMotionChanged=function(evt){
var v=evt.target.AmYoa;
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(HZdVw,ObFmd,GnDrB)
{
return "<canvas id='"+HZdVw+"' width='"+ObFmd+"' height='"+GnDrB+"'></canvas>"
}
function WA_canvas(HZdVw,ObFmd,GnDrB)
{
document.write(html_canvas(HZdVw,ObFmd,GnDrB))
}
function leuSo(ZRYRs,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;
ZRYRs.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;
ZRYRs.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;
ZRYRs.quadraticCurveTo(cx,cy,px,py);
}
}
function hcHUp(c,x,y,lx,ly,arc,clowckwise)
{
c.beginPath()
pPjPS(c,x,y,lx,ly,arc,clowckwise)
}
function pPjPS(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 hOFig()
{
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 FvYWN(lx,ly,parent,id_suffixe)
{
var fVjJQ=document.createElement('canvas');fVjJQ.width=lx;fVjJQ.height=ly;
return fVjJQ;
}
function kkIYF(QLGLl)
{
var pQVNv=(-QLGLl+45);
return new Point(Math.cos(pQVNv*(2*Math.PI)/360),Math.sin(pQVNv*(2*Math.PI)/360))
}
function auejl(c,QLGLl)
{
var offset=kkIYF(QLGLl)
c.shadowOffsetX=2*offset.x;
c.shadowOffsetY=2*offset.y;
c.shadowBlur=4;
}
function WA_over_img_html(QBMip,ClQFQ,lNXSB)
{
if(!QBMip.src)
{
var TuLeT=QBMip.getElementsByTagName("IMG")
if(TuLeT.length==1)QBMip=TuLeT[0]
}
if(QBMip.src1==undefined)
{
QBMip.src1=QBMip.src;
QBMip.src2=ClQFQ;
}
if(lNXSB)
{
QBMip.src=QBMip.src2;
}
else
{
QBMip.src=QBMip.src1;
}
}
function WA_over_img(id,lNXSB)
{
var el=document.getElementById(id+"-canvas") 

var QBMip=(lNXSB)?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,[QBMip,QBMip],el.wa_shadow,el.wa_rot,el.wa_reflex,lNXSB)
}
function ETbdd(HZdVw,lx,ly,arc,side)
{
this.id=HZdVw;
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.fXiAl=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 ZxPBK=document.getElementById(this.id+"-reflex")
var Wblfl=ZxPBK.getContext('2d');

var nvFsB=0;
var vPuFR=0;
if(this.side==2)
{
nvFsB=this.lx;
vPuFR=-this.ly*0.75;
}
else
if(this.side==0)
{
nvFsB=this.lx;
}
else
if(this.side==3)
{
nvFsB=0.25*this.lx;
}
else
if(this.side==1)
{
nvFsB=this.lx;
}
Wblfl.translate(nvFsB,vPuFR)
Wblfl.scale(-1,1)
Wblfl.beginPath()
hcHUp(Wblfl,1,1,this.lx-2,this.ly-2,this.arc)
Wblfl.clip() 

Wblfl.drawImage(canv2,this.sX,this.sY,this.sLx,this.sLy,this.sX,this.sY,this.sLx,this.sLy);
Wblfl.globalCompositeOperation="destination-out";
var gradient=Wblfl.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)");
Wblfl.fillStyle=gradient;
Wblfl.beginPath()
Wblfl.rect(this.sX-this.decX,this.sY-this.decY,this.sLx,this.sLy);
Wblfl.fill();
Wblfl.globalCompositeOperation="source-over";
Wblfl.scale(-1,1)
Wblfl.translate(-nvFsB,-vPuFR) 
}
}
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 srOhA(c2,lx,ly,IADxT,bord_col,arc,arc2)
{
if(IADxT>0)
{
c2.beginPath()
c2.fillStyle=bord_col;
c2.beginPath()
hcHUp(c2,0,0,lx,ly,arc)
pPjPS(c2,IADxT,IADxT,lx-2*IADxT,ly-2*IADxT,arc2,true)
c2.fill()
}
}
function Hghgg()
{
this.tx=0
this.ty=0
this.rotation=0
}
function aFmEa(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 Hghgg()
}
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 WPQPI=0;
if(shadow)WPQPI=6
var OTrgG=id+"-canvas"
var el=document.getElementById(OTrgG)
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)-WPQPI,div.wa_pos.y-WPQPI)
html_SetCanvasSize(el,div.wa_size.height+2*WPQPI,div.wa_size.width+2*WPQPI)
html_SetCanvasSize(canv2,div.wa_size.height+4*WPQPI,div.wa_size.width+4*WPQPI)
html_SetSize(div,div.wa_size.height+2*WPQPI,div.wa_size.width+2*WPQPI) 
matrix.tx=ly+2*WPQPI
matrix.ty=2*WPQPI
}
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-WPQPI,div.wa_pos.y-lx-WPQPI)
html_SetCanvasSize(el,div.wa_size.height+2*WPQPI,div.wa_size.width+2*WPQPI)
html_SetCanvasSize(canv2,div.wa_size.height+4*WPQPI,div.wa_size.width+4*WPQPI)
html_SetSize(div,div.wa_size.height+2*WPQPI,div.wa_size.width+2*WPQPI) 
matrix.tx=2*WPQPI
matrix.ty=lx+2*WPQPI
}
matrix.rotation=rot*2*Math.PI/360
c2.translate(matrix.tx,matrix.ty)
c2.rotate(matrix.rotation)
}
}
function WA_img(id,lx,ly,arc,IADxT,bord_col,s_img,shadow,rot,gKoYp,b_over)
{
var OTrgG=id+"-canvas"
var el=document.getElementById(OTrgG)
var c=el.getContext('2d');
var xOajT=false;
if((gKoYp!=undefined)&&(gKoYp!=-1))
{
xOajT=new ETbdd(OTrgG,lx,ly,arc,gKoYp)
}
var WPQPI=0;
if(shadow)WPQPI=6 


if(el.wa_lx==undefined)
{
el.wa_lx=lx
el.wa_ly=ly
el.wa_arc=arc
el.wa_bord_siz=IADxT
el.wa_bord_col=bord_col
el.wa_s_img=s_img
el.wa_shadow=shadow
el.wa_rot=rot
el.wa_reflex=gKoYp
c.translate(WPQPI,WPQPI)
}
var hCAaC_img=document.getElementById(id+"-cache")
hCAaC_img.onload=function()
{
c.clearRect(0,0,lx+2*WPQPI,ly+2*WPQPI)
var arc2=arc-IADxT;
if(arc2<0)arc2=0;
this.width=lx-2*IADxT
this.height=ly-2*IADxT
if(isMSIE())
{
if(shadow) tmFju(c,0,0,lx,ly,arc,false,rot)
var LhegV=c.createPattern(this,'no-repeat');
c.fillStyle=LhegV;
c.beginPath()
hcHUp(c,IADxT,IADxT,lx-2*IADxT,ly-2*IADxT,arc2)
c.translate(IADxT,IADxT)
c.fill()
c.translate(-IADxT,-IADxT)
srOhA(c,lx,ly,IADxT,bord_col,arc,arc2)
}
else
if(navigator.userAgent.match(/Firefox/i)&&(shadow))
{
var krrEx=new  Hghgg()
aFmEa(id,lx,ly,rot,c,el,shadow,krrEx)
if(shadow) tmFju(c,0,0,lx,ly,arc,false,rot)
var c2=c
srOhA(c2,lx,ly,IADxT,bord_col,arc,arc2)
c2.beginPath()
hcHUp(c2,IADxT,IADxT,lx-2*IADxT,ly-2*IADxT,arc2)
c2.clip()
c2.drawImage(this,IADxT,IADxT,lx-2*IADxT,ly-2*IADxT);
c2.rotate(-krrEx.rotation)
c2.translate(-krrEx.tx,-krrEx.ty)
}
else
{
var canv2=FvYWN(lx,ly,el,"bis2");
var c2=canv2.getContext('2d');
var krrEx=new  Hghgg()
aFmEa(id,lx,ly,rot,c2,canv2,shadow,krrEx)
c.clearRect(-WPQPI,-WPQPI,lx+2*WPQPI,ly+2*WPQPI)
srOhA(c2,lx,ly,IADxT,bord_col,arc,arc2)
c2.beginPath()
hcHUp(c2,IADxT,IADxT,lx-2*IADxT,ly-2*IADxT,arc2)
c2.clip()
c2.drawImage(this,IADxT,IADxT,lx-2*IADxT,ly-2*IADxT);
c2.rotate(-krrEx.rotation)
c2.translate(-krrEx.tx,-krrEx.ty)
if(shadow) auejl(c,rot)
c.drawImage(canv2,0,0);
c2.translate(krrEx.tx,krrEx.ty)
c2.rotate(krrEx.rotation)
if(xOajT)
{
xOajT.fXiAl(canv2)
}
}
}
hCAaC_img.src=s_img[0];
}
function elErl(WrYqr,QLGLl,xDHgN,GRiEW)
{
WrYqr.style.left=xDHgN+"px"
WrYqr.style.top=GRiEW+"px"
WrYqr.style.webkitTransformOrigin="0 0"
WrYqr.style.webkitTransform="rotate("+QLGLl+"deg)";
}
function XOcUH(c,type,lx,ly,corner)
{
if(type==1)
leuSo(c,0,0,lx,ly)
else
hcHUp(c,0,0,lx,ly,corner)
}
function frYqE(el,c,type,lx,ly,corner,bg,IHwpW,rot)
{
if(hOFig()==false)
{
c.fillStyle=bg;
XOcUH(c,type,lx,ly,corner)
c.fill()
}
else
{
var canv2=FvYWN(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.fillStyle=bg;
XOcUH(c2,type,lx,ly,corner)
c2.fill()
if(IHwpW) auejl(c,rot)
c.drawImage(canv2,0,0);
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
}
}
function NnmFO(c,type,lx,ly,cJCEt,bg,gUZuP,xmkVe_glow)
{
if(gUZuP)
{
var x1=gUZuP[0];var y1=gUZuP[1];var lx1=gUZuP[2];var ly1=gUZuP[3];var CkMGf=gUZuP[4];
var rHBnw=c.createLinearGradient(x1,y1,x1,y1+ly1);
rHBnw.addColorStop(0,"rgba(255,255,255,0.7)");rHBnw.addColorStop(1,"rgba(255,255,255,0.1)");
c.fillStyle=rHBnw;
if(type==1) leuSo(c,x1,y1,lx1,ly1)
else
hcHUp(c,x1,y1,lx1,ly1,CkMGf)
c.fill()
}
if(xmkVe_glow)
{
var x2=xmkVe_glow[0];var y2=xmkVe_glow[1];var lx2=xmkVe_glow[2];var ly2=xmkVe_glow[3];
var oYIWj=xmkVe_glow[4];
var jhXmd_glow=new RGBColor(xmkVe_glow[5]);
jhXmd_glow.a=0;
var col1=xmkVe_glow[5];
var col2=jhXmd_glow.toRGB();
var Ywnhf=c.createLinearGradient(x2,y2,x2,y2+ly2);
Ywnhf.addColorStop(0,col2);
Ywnhf.addColorStop(0.2,col2);
Ywnhf.addColorStop(1,col1);
c.fillStyle=Ywnhf;
if(type==1) leuSo(c,x2,y2,lx2,ly2)
else
hcHUp(c,x2,y2,lx2,ly2,oYIWj)
c.fill()
}
}
function dmPag(KTgeJ,HZdVw,LFGsC,ObFmd,GnDrB,cJCEt,BEBqS,gUZuP,xmkVe_glow,IHwpW,QLGLl)
{
KTgeJ.HZdVw=HZdVw;KTgeJ.LFGsC=LFGsC;
KTgeJ.ObFmd=ObFmd;KTgeJ.GnDrB=GnDrB;
KTgeJ.cJCEt=cJCEt;KTgeJ.BEBqS=BEBqS,KTgeJ.gUZuP=gUZuP;
KTgeJ.xmkVe_glow=xmkVe_glow;KTgeJ.IHwpW=IHwpW;KTgeJ.QLGLl=QLGLl;
}
function WA_but_over(HZdVw,BEBqS_over,jhXmd_glow)
{
var qQxWC=document.getElementById(HZdVw) 
if(qQxWC&&qQxWC.jWJla)
with(qQxWC.jWJla)
{
var xmkVe_glow_over;
if(xmkVe_glow&&jhXmd_glow)
{
xmkVe_glow_over=new Array();
for(var mQZtN=0;mQZtN<xmkVe_glow.length;mQZtN++)xmkVe_glow_over[mQZtN]=xmkVe_glow[mQZtN];
xmkVe_glow_over[5]=jhXmd_glow;
}
WA_but(HZdVw,LFGsC,ObFmd,GnDrB,cJCEt,BEBqS_over,gUZuP,xmkVe_glow_over,IHwpW,QLGLl);
}
var uhhKu_over0=document.getElementById(HZdVw+"-div0")
if(uhhKu_over0)html_SetVisibility(uhhKu_over0,false);
var GEKeR=document.getElementById(HZdVw+"-div1")
if(GEKeR)html_SetVisibility(GEKeR,true);
}
function WA_but_out(HZdVw)
{
var qQxWC=document.getElementById(HZdVw)
with(qQxWC.jWJla)
{
WA_but(HZdVw,LFGsC,ObFmd,GnDrB,cJCEt,BEBqS,gUZuP,xmkVe_glow,IHwpW,QLGLl);
}
var uhhKu_over0=document.getElementById(HZdVw+"-div0")
if(uhhKu_over0)html_SetVisibility(uhhKu_over0,true);
var GEKeR=document.getElementById(HZdVw+"-div1")
if(GEKeR)html_SetVisibility(GEKeR,false);
}
function WA_but(id,type,lx,ly,corner,bg,top_light,s_glow,IHwpW,rot)
{
var el=document.getElementById(id)
if(el.jWJla==undefined)
{
el.jWJla=new Array();
dmPag(el.jWJla,id,type,lx,ly,corner,bg,top_light,s_glow,IHwpW,rot);
}
var c=el.getContext('2d');
var WPQPI=0;
if(IHwpW)WPQPI=6 
c.fillStyle="#000000";
c.fillRect(0,0,lx+2*WPQPI,ly+2*WPQPI) 
c.clearRect(0,0,lx+2*WPQPI,ly+2*WPQPI) 
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(hOFig()==false)
{
c.translate(WPQPI,WPQPI)
img.width=lx
img.height=ly 
if(IHwpW)
tmFju(c,0,0,lx,ly,corner,(type==1),rot)
if(navigator.userAgent.match(/Firefox/i))
{
c.beginPath()
XOcUH(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()
XOcUH(c,type,lx,ly,corner)
c.fill()
}
NnmFO(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-WPQPI,-WPQPI)
}
else
{
var canv2=FvYWN(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.beginPath()
XOcUH(c2,type,lx,ly,corner)
c2.clip()
c2.drawImage(img,0,0,lx,ly);
NnmFO(c2,type,lx,ly,corner,bg,top_light,s_glow)
if(IHwpW) auejl(c,rot) 
c.drawImage(canv2,WPQPI,WPQPI);
}
}
img.src=bg2;
return;
}
c.translate(WPQPI,WPQPI) 
if(IHwpW&&(hOFig()==false))
{
var NUwuu=new RGBColor(bg);
if(NUwuu.a>0)
{
tmFju(c,0,0,lx,ly,corner,(type==1),rot)
}
}
frYqE(el,c,type,lx,ly,corner,bg2,IHwpW,rot)
NnmFO(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-WPQPI,-WPQPI)
}
function tmFju(c,x0,y0,lx0,ly0,corner,is_circle,rot)
{
var decShadow=2;
var offset=kkIYF(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) leuSo(c,x,y,lx,ly);else hcHUp(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 BSulZ(id,x,y,lx,ly,arc,IADxT,bord_col,bg,shadow,rot,xlYTH,tvfwJ)
{
if(tvfwJ==undefined)tvfwJ=true;
var el=document.getElementById(id)
var c=el.getContext('2d');
if(xlYTH==undefined)xlYTH=1.0;
var WPQPI=0;
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
if(shadow)
{
WPQPI=6;
}
if(tvfwJ) c.clearRect(0,0,el.width,el.height)
c.globalAlpha=xlYTH 
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 FhNSH=bg1.split(";");
var x1=parseFloat(FhNSH[0]);
var y1=parseFloat(FhNSH[1]);
var x2=parseFloat(FhNSH[2]);
var y2=parseFloat(FhNSH[3]);
var col1=FhNSH[4];
var col2=FhNSH[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-IADxT;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
{
if(shadow) tmFju(c,WPQPI,WPQPI,lx,ly,arc,false,rot)
}
if(IADxT>0)
{
c2.fillStyle=bord_col;
hcHUp(c2,x,y,lx,ly,arc)
pPjPS(c2,x+IADxT,y+IADxT,lx-2*IADxT,ly-2*IADxT,arc2,true)
c2.fill()
}


c2.fillStyle=fill_obj 
hcHUp(c2,x+IADxT,y+IADxT,lx-2*IADxT,ly-2*IADxT,arc2)
c2.fill();
}
function YrcJY(rFEph,eImNF,urdxN)
{
return new Point(Math.round(rFEph*Math.cos(urdxN)-eImNF*Math.sin(urdxN)),Math.round(rFEph*Math.sin(urdxN)+eImNF*Math.cos(urdxN)))
}
function SHtwW(c,x,y,lx,ly,arc,clowckwise,QLGLl)
{
c.beginPath()
YIYID(c,x,y,lx,ly,arc,clowckwise,QLGLl)
}
function YIYID(c,x,y,lx,ly,arc,clowckwise,QLGLl)
{
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 MWdOM=[[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=QLGLl*2*Math.PI/360
for(var n=0;n<MWdOM.length;n++)
{
var bNnmb=MWdOM[n][0]
var Rkstc=MWdOM[n][1]
MWdOM[n][0]=bNnmb*Math.cos(theta)-Rkstc*Math.sin(theta);
MWdOM[n][1]=bNnmb*Math.sin(theta)+Rkstc*Math.cos(theta);
}
var n=0;
c.moveTo(MWdOM[n][0],MWdOM[n++][1]);
c.lineTo(MWdOM[n][0],MWdOM[n++][1]);
c.quadraticCurveTo(MWdOM[n][0],MWdOM[n++][1],MWdOM[n][0],MWdOM[n++][1]);
c.lineTo(MWdOM[n][0],MWdOM[n++][1]);
c.quadraticCurveTo(MWdOM[n][0],MWdOM[n++][1],MWdOM[n][0],MWdOM[n++][1]);
c.lineTo(MWdOM[n][0],MWdOM[n++][1]);
c.quadraticCurveTo(MWdOM[n][0],MWdOM[n++][1],MWdOM[n][0],MWdOM[n++][1]);
c.lineTo(MWdOM[n][0],MWdOM[n++][1]);
c.quadraticCurveTo(MWdOM[n][0],MWdOM[n++][1],MWdOM[n][0],MWdOM[n++][1]);
}
function qbRXA(a,b,x,y)
{
return(a*x-y+b)/(Math.sqrt(1+a*a))
}
function uVRHY(new_a1,new_b1,NrfsK,multi)
{
var d=0;
for(var i=0;i<NrfsK.length;i++)
{
var KJwYE=NrfsK[i]
var d1=qbRXA(new_a1,new_b1,KJwYE.x,KJwYE.y)
if(multi<0)
{
if(d1<0) d=Math.max(d,-d1);
}
else
{
if(d1>0) d=Math.max(d,d1);
}
}
return d;
}
function ppusF(o1,o2)
{
if(o1<o2) return-1
if(o1>o2) return 1
return 0
}
function ZBwIA(c,lx,ly,bg1)
{
var fill_obj=false;
var idliv=false;
var pspfU=false;
var NrfsK=false
if(bg1.substring(0,1)=="(")
{
bg1=bg1.substring(1);
bg1=bg1.substring(0,bg1.length-1)
var FhNSH=bg1.split(";");
var CgUTE=new Point(parseFloat(FhNSH[0]),parseFloat(FhNSH[1]));
var FJjLg=new Point(parseFloat(FhNSH[2]),parseFloat(FhNSH[3]));
idliv=CgUTE.clone()
pspfU=FJjLg.clone()
var col1=FhNSH[4];
var col2=FhNSH[5];
var grad=c.createLinearGradient(idliv.x,idliv.y,pspfU.x,pspfU.y);
if(isMSIE())
{
idliv=CgUTE.clone()
pspfU=FJjLg.clone() 
var rHBnw=0;
var Ywnhf=1;
{
NrfsK=[{x:0,y:0},{x:lx,y:0},{x:lx,y:ly},{x:0,y:ly}]
var d1=0;
var d2=0;
var a=(pspfU.y-idliv.y)/(pspfU.x-idliv.x);
var b=idliv.y-a*idliv.x;
var diff=1;
if(a==Infinity)
{
d1=(idliv.y)
d2=(ly-pspfU.y)
}
else
if(a==0)
{
d1=(idliv.x)
d2=(lx-pspfU.x)
}
else
{
var new_a1=-1/a;
var new_b1=idliv.y-new_a1*idliv.x;
d1=uVRHY(new_a1,new_b1,NrfsK,-1)
var new_b2=pspfU.y-new_a1*pspfU.x;
d2=uVRHY(new_a1,new_b2,NrfsK,1)
if(new_a1<0)diff=-1;
}
var d=Math.sqrt(Math.pow(pspfU.x-idliv.x,2)+Math.pow(pspfU.y-idliv.y,2))
var total=(d1+d+d2)
rHBnw=d1/total;
Ywnhf=(d1+d)/total;
var pt_prod0=new Point(pspfU.x-idliv.x,pspfU.y-idliv.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)
{
rHBnw=d2/total;
Ywnhf=(d2+d)/total;
}
}
grad.addColorStop(rHBnw,col1);
grad.addColorStop(Ywnhf,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,IADxT,bord_col,bg,shadow,rot,bgmRF,WFkIL,xlYTH,tvfwJ)
{


var theta=rot*2*Math.PI/360 
if(tvfwJ==undefined)tvfwJ=true;
if(xlYTH==undefined)xlYTH=1.0;
var el=document.getElementById(id)
if(!el)return
var c=el.getContext('2d');
var WPQPI=(el.width-lx)/2;
if(tvfwJ) c.clearRect(0,0,el.width,el.height)
var x_rect0=WPQPI;
var y_rect0=WPQPI;
var bg1=bg[0]
var fill_obj=false;
var idliv=false;
var pspfU=false;
var NrfsK=false
fill_obj=ZBwIA(c,lx,ly,bg1) 
if(xlYTH==undefined)xlYTH=1.0;
var arc2=arc-IADxT;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
if(shadow)
{
c2.translate(bgmRF+6,WFkIL+6)
}
else
{
c2.translate(bgmRF,WFkIL)
}
c2.fillStyle=fill_obj;
SHtwW(c2,IADxT,IADxT,lx-2*IADxT,ly-2*IADxT,arc2,false,rot)
c2.fill();
}
function WA_bg(id,lx,ly,arc,IADxT,bord_col,bg,shadow,rot,xlYTH,tvfwJ)
{

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

var fill_obj=ZBwIA(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()
hLZkR(c,el,lx,ly,arc,IADxT,bord_col,ptrn,shadow,rot,xlYTH)
}
img.src=bg2;
}
else
{
hLZkR(c,el,lx,ly,arc,IADxT,bord_col,fill_obj,shadow,rot,xlYTH)
}
}
function hLZkR(c,el,lx,ly,arc,IADxT,bord_col,fill_obj,shadow,rot,xlYTH)
{
if(xlYTH==undefined)xlYTH=1.0;
var arc2=arc-IADxT;
if(arc2<0)arc2=0
var WPQPI=(el.width-lx)/2;
var x_rect0=WPQPI;
var y_rect0=WPQPI;
var canv2=false;
var c2=c;
c.globalAlpha=xlYTH
if(hOFig()==true)
{
canv2=FvYWN(lx,ly);
c2=canv2.getContext('2d');
c2.globalAlpha=xlYTH
}
else
{
c2.translate(WPQPI,WPQPI)
if(shadow) tmFju(c,0,0,lx,ly,arc,false,rot)
}
if(IADxT>0)
{
c2.fillStyle=bord_col;
hcHUp(c2,0,0,lx,ly,arc)
pPjPS(c2,IADxT,IADxT,lx-2*IADxT,ly-2*IADxT,arc2,true)
c2.fill()
}
c2.fillStyle=fill_obj;
hcHUp(c2,IADxT,IADxT,lx-2*IADxT,ly-2*IADxT,arc2)
c2.fill();
if(hOFig()==true)
{
if(shadow) auejl(c,rot)
c.drawImage(canv2,WPQPI,WPQPI);
}
else
{
c2.translate(-WPQPI,-WPQPI)
}
}
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(xmkVe){return(this.width>xmkVe.width)&&(this.height>xmkVe.height)}
this.scale=function(FruIt,qMWoj)
{
if(!qMWoj)qMWoj=false
var IdShR=this;
var wfZdL=IdShR.width
var UofLP=IdShR.height
var p1=wfZdL*FruIt.height;
var p2=FruIt.width*UofLP;
var r1=wfZdL/UofLP;
var r2=UofLP/wfZdL;
var newSize1=new Size(FruIt.height*r1,FruIt.height);
var newSize2=new Size(FruIt.width,FruIt.width*r2);
if(p2>p1)
{
if((qMWoj==true)||((newSize1.width<=IdShR.width)&&(newSize1.height<=IdShR.height)))
{
IdShR.width=Math.round(newSize1.width);
IdShR.height=Math.round(newSize1.height);
}
}
else
{
if((qMWoj==true)||((newSize2.width<=IdShR.width)&&(newSize2.height<=IdShR.height)))
{
IdShR.width=Math.round(newSize2.width);
IdShR.height=Math.round(newSize2.height);
}
}
this.width=IdShR.width;
this.height=IdShR.height;
return true;
}
}
function Point(p_x,p_y){this.x=p_x;this.y=p_y;
this.translate=function(rFEph,eImNF){this.x+=rFEph;this.y+=eImNF;}
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(WrYqr){return(this.x==WrYqr.x)&&(this.y==WrYqr.y)&&(this.width==WrYqr.width)&&(this.height==WrYqr.height);}
this.copy=function(WrYqr){this.x=WrYqr.x;this.y=WrYqr.y;this.width=WrYqr.width;this.height=WrYqr.height;}
this.translate=function(rFEph,eImNF){this.x+=rFEph;this.y+=eImNF;}
this.isValid=function(){return(this.width>0)&&(this.height>0);}
}
function html_getLayer(WrYqr)
{
if(typeof(WrYqr)=="string")return document.getElementById(WrYqr);
return WrYqr;
}
function html_SetPosition(WrYqr,rFEph,eImNF){
WrYqr=html_getLayer(WrYqr);
WrYqr.style.left=rFEph+"px";WrYqr.style.top=eImNF+"px";
}
function html_SetSize(DJCpx,ObFmd,GnDrB){
WrYqr=html_getLayer(DJCpx);
WrYqr.style.width=ObFmd+"px";WrYqr.style.height=GnDrB+"px";
}
function html_SetRect(WrYqr,EhFDG){html_SetGeometry(WrYqr,EhFDG.x,EhFDG.y,EhFDG.width,EhFDG.height);}
function html_SetGeometry(WrYqr,rFEph,eImNF,ObFmd,GnDrB){html_SetPosition(WrYqr,rFEph,eImNF);html_SetSize(WrYqr,ObFmd,GnDrB);}
function html_SetVisibility(WrYqr,Ntllp){WrYqr=html_getLayer(WrYqr);WrYqr.style.visibility=(Ntllp)?"visible":"hidden";}
function html_SetDisplay(WrYqr,Ntllp){WrYqr=html_getLayer(WrYqr);WrYqr.style.display=(Ntllp)?"block":"none";}
function html_SetCanvasSize(WrYqr,ObFmd,GnDrB){WrYqr=html_getLayer(WrYqr);WrYqr.width=ObFmd;WrYqr.height=GnDrB;}
function html_writeContent(WrYqr,xmkVe){WrYqr=html_getLayer(WrYqr);WrYqr.innerHTML=xmkVe;}
function html_SetOpacity(WrYqr,XxPKP)
{
WrYqr=html_getLayer(WrYqr);
WrYqr.style['opacity']=XxPKP;
WrYqr.style['-moz-opacity']=XxPKP;
WrYqr.style.filter=(XxPKP==1)?'':'alpha(opacity='+(XxPKP*100)+')';
}
var MLCkr=[
{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<MLCkr.length;i++)
{
var array2=MLCkr[i].l;
for(var i2=0;i2<array2.length;i2++)
{
var reg=new RegExp(array2[i2],"g");
res=res.replace(reg,MLCkr[i].acc)
}
}
return res;
}
function trimString(str)
{
return str.replace(/^\s*|\s*$/g,"");
}
function IsNumeric(IDcRn)
{
var gwAQo="0123456789.";var StbEj=true;var uEwFB;
for(mQZtN=0;mQZtN<IDcRn.length&&StbEj==true;mQZtN++){uEwFB=IDcRn.charAt(mQZtN);if(gwAQo.indexOf(uEwFB)==-1) StbEj=false;}
return StbEj;
}
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(QmoQi)
{
var Lcmum=QmoQi*60;
var XcWkK=new Date();
var QTQho=0;
QTQho+=XcWkK.getYear()*12*31*24*60*60;
QTQho+=XcWkK.getMonth()*31*24*60*60;
QTQho+=XcWkK.getDate()*24*60*60;
QTQho+=XcWkK.getHours()*60*60;
QTQho+=XcWkK.getMinutes()*60;
QTQho+=XcWkK.getSeconds();
if(Lcmum!=0)
{
QTQho=Math.floor(QTQho/Lcmum)*Lcmum
}
return "-"+QTQho;
}
function urlAntiCacheForPreview()
{
if(document.webaca_is_preview) return urlSuffixe(0);
return "";
}
function html_findPos(obj)
{
var XxPKP=KrVfX(obj)
return new Point(XxPKP[0],XxPKP[1])
}
function KrVfX(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(nvcJH,ObFmd,GnDrB)
{
document.write("<input id='"+nvcJH+"' type=search results=0 placeholder='' style='width:"+ObFmd+"px;height:"+GnDrB+"px;'>")
}
function PADQU()
{
var TuLeT=document.getElementsByTagName("A");
for(var mQZtN=0;mQZtN<TuLeT.length;mQZtN++)
{
var WrYqr=TuLeT[mQZtN];
if(WrYqr.onmouseover)WrYqr.onmouseover=null;
if(WrYqr.onmouseout)WrYqr.onmouseout=null;
}
}
function CjSiC()
{
for(var FQSXr in document.wa_global_list_element)
{
var HZdVw=document.wa_global_list_element[FQSXr]
var qQxWC=document.getElementById(HZdVw)
qQxWC.onclick=function()
{
WA_focus(this)
}
}
}
function WA_declare(HZdVw)
{
if(!document.wa_global_list_element)
{
document.wa_global_list_element=new Array();;
}
document.wa_global_list_element.push(HZdVw)
}
function RPHkf()
{
var VomrG=window.location.search;
if(VomrG.substr(0,1)=="?")VomrG=VomrG.substr(1);
if(VomrG.length==0)return;
var teVHr=new Array();
var BrPMq=VomrG.split("&");
for(var i=0;i<BrPMq.length;i++)
{
var fqVCQ=BrPMq[i].split("=");teVHr[fqVCQ[0]]=fqVCQ[1];
}
var xmkVe_info=teVHr["crbst_info"];
if(!xmkVe_info)return;
var TNhiQ=new Array();
TNhiQ.m_unid=xmkVe_info;
TNhiQ.m_index_item=-1;
var XAIbZ=xmkVe_info.indexOf("-");
if(XAIbZ!=-1)
{
TNhiQ.m_unid="wa-id-"+xmkVe_info.substring(0,XAIbZ);
TNhiQ.m_index_item=parseInt(xmkVe_info.substring(XAIbZ+1));
}
document.wa_global_query_info=TNhiQ;
}
function IS_onload_WA()
{

if(isMSIE8())
{
wa_timeout("IS_onload_ui()",0)
}
else
{
IS_onload_ui()
}
if(isIPhone())
{
PADQU()
}
else
{
CjSiC()
}
RPHkf();

txGNO()
}
function txGNO()
{
var NxlOj=0;
var UFQNl=document.webaca_banner_height;
if(document.webaca_page_is_centered)
{
var DbRsi=getWindowSize().width
var EBFeP=document.webaca_width_page
if(DbRsi>EBFeP)NxlOj=(DbRsi-EBFeP)/2;
}
document.body.style.backgroundPosition=NxlOj+"px "+UFQNl+"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 pojwf=CONST_WA_COUNTRIES.codes[n]
var UavLB=CONST_WA_COUNTRIES.labels[n]
Translator.m_countries[pojwf]=UavLB
}
}
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(HZdVw,qfvGI,IHwpW)
{
this.HZdVw=HZdVw;
this.qfvGI=qfvGI
this.IHwpW=IHwpW;
this.BvogJ=this.HZdVw+"-div"
this.bKqKG=this.HZdVw+"-canvas"
this.JEniR=new Rect(0,0,0,0)
this.laxKG=false;
this.lKRIa=false;
this.WPQPI=6;
this.gMmZb=false;
this.fgruj=false;
this.HjsEo=false;
this.PFxdi="";
this.shadow=function()
{
return this.IHwpW;
}
this.marginShadow=function()
{
return this.WPQPI;
}
this.rect=function()
{
return this.JEniR;
}
this.canvasId=function()
{
return this.bKqKG;
}
this.divId=function()
{
return this.BvogJ;
}
this.opacity=function()
{
return this.qgZTY;
}
this.img_clip=function()
{
return this.fgruj;
}
this.img_src=function()
{
return this.gMmZb;
}
this.toHtml=function()
{
var xmkVe=""
xmkVe+="<div id='"+this.BvogJ+"' style=\"";
xmkVe+="position:absolute;";
if(this.PFxdi.length>0)
{
xmkVe+="cursor:pointer;";
}
if(this.rect.x>0)xmkVe+="left:"+this.rect.x+"px;";
if(this.rect.y>0)xmkVe+="top:"+this.rect.y+"px;";
if(this.rect.width>0)xmkVe+="width:"+this.rect.width+"px;";
if(this.rect.height>0)xmkVe+="height:"+this.rect.height+"px;";
if(qfvGI)
xmkVe+="z-index:"+qfvGI+";";
xmkVe+="\" ";
if(this.PFxdi.length>0)
{
xmkVe+="onclick=\""+this.PFxdi+"\" "
}
xmkVe+=">";
if((this.rect.width>0)&&this.shadow())
{
xmkVe+=html_canvas(this.bKqKG,this.rect.width+2*this.WPQPI,this.rect.height+2*this.WPQPI)+"</div>";
}
else
{
xmkVe+=html_canvas(this.bKqKG,0,0)+"</div>";
}
return xmkVe
}
this.setImage=function(kuuVu,fBYpf,QLGLl)
{
if(QLGLl==undefined)QLGLl=0;
if((kuuVu==this.gMmZb)&&(this.fgruj&&this.fgruj.equals(fBYpf))&&(this.HjsEo==QLGLl))
{
return;
}
this.HjsEo=QLGLl;
this.gMmZb=kuuVu;
this.fgruj=fBYpf;
this.nAaAJ()
}
this.registerDynamicCanvas=function()
{
registerDynamicCanvas(this.bKqKG);
this.lKRIa=true;
this.setRect(this.JEniR.x,this.JEniR.y,this.JEniR.width,this.JEniR.height)
}
this.nAaAJ=function()
{
if((this.JEniR.width>0)&&(this.JEniR.height>0))
{
this.draw()
}
this.laxKG=true
};
this.draw=function(){};
this.setPosition=function(rFEph,eImNF)
{
this.JEniR.x=rFEph;this.JEniR.y=eImNF;
if(this.lKRIa==false)return
html_SetPosition(this.BvogJ,this.JEniR.x,this.JEniR.y)
if(this.laxKG==false)
{
this.nAaAJ()
}
}
this.setOnClick=function(xmkVe)
{
this.PFxdi=xmkVe
}
this.width=function(){return this.JEniR.width;}
this.height=function(){return this.JEniR.height;}
this.setSize=function(ObFmd,GnDrB)
{
this.JEniR.width=ObFmd;this.JEniR.height=GnDrB;
var fkKXQ=ObFmd
var YrIsC=GnDrB
if(this.IHwpW)
{
fkKXQ+=2*this.WPQPI
YrIsC+=2*this.WPQPI
}
if(this.lKRIa==false)return
html_SetSize(this.BvogJ,fkKXQ,YrIsC)
html_SetCanvasSize(this.bKqKG,ObFmd,GnDrB)
this.nAaAJ()
}
this.setRect=function(rFEph,eImNF,ObFmd,GnDrB)
{
this.JEniR.x=rFEph;this.JEniR.y=eImNF;this.JEniR.width=ObFmd;this.JEniR.height=GnDrB;
var fkKXQ=ObFmd
var YrIsC=GnDrB
var HZCdp=rFEph
var TGLqA=eImNF
if(this.IHwpW)
{
fkKXQ+=2*this.WPQPI
YrIsC+=2*this.WPQPI
HZCdp-=this.WPQPI
TGLqA-=this.WPQPI
}
if(this.lKRIa==false)return 
html_SetGeometry(this.BvogJ,HZCdp,TGLqA,fkKXQ,YrIsC);
html_SetCanvasSize(this.bKqKG,fkKXQ,YrIsC)
try{this.nAaAJ()}catch(e){
alert(e.message)
}
}
this.setVisible=function(Ntllp)
{
if(this.lKRIa==false)return
html_SetVisibility(this.BvogJ,Ntllp)
}
this.setOpacity=function(XxPKP)
{
this.qgZTY=XxPKP 
if(this.lKRIa==false)return
this.nAaAJ()
}
}

function is_onresize()
{
WA_Dialog.resizeUI()
try
{
if(WA_PhotoAlbum_resizeUI)WA_PhotoAlbum_resizeUI()
}
catch(e){}
txGNO()
}
function is_onscroll()
{
centerFullPageContainer();
}
function registerDynamicCanvas(id)
{
if(isMSIE())
G_vmlCanvasManager.initElement(document.getElementById(id));
}
function WA_openDialogAction(FQSXr)
{
var tngcV=WA_Dialog.NUAva;
if(FQSXr==-1){tngcV.closeWin();return;}
var TKCFG=tngcV.QZoFA(FQSXr);
if(TKCFG[5])
{
TKCFG[4].call(TKCFG[6],TKCFG[5])
}
else
{
TKCFG[4](TKCFG[5]);
}
}
function WA_Dialog(Ntllp_close_button)
{
this.rVLlq=0;
this.HKdVA=0;
this.FruIt_win_width=600;
this.FruIt_win_height=400;
this.kwEaY=new Array();
this.xufjX="wa-dialog-but-";
this.PITRl=this.xufjX+"div-";
this.oqVea=this.xufjX+"canvas-";
this.BUTTON_HEIGHT=22;
this.nuKiJ=CONST_WA_GLOBAL_COLOR_THEME;
this.Ntllp_close_button=Ntllp_close_button;
this.uPffb=6;
this.XBScH=function()
{
if(this.Ntllp_close_button==undefined)this.Ntllp_close_button=true;
this.natud();
}
this.resetButtons=function()
{
this.natud();
}
this.idealHeight=function()
{
return this.xBphS
}
this.displayWindowWithAutoResize=function(cunpq,KpWMk)
{
this.OgvQn=false
this.xBphS=cunpq
this.wpgFY=KpWMk 
this.resetButtons();
KpWMk.call(this)
var l=document.getElementById('wa-dialog-content');
if(this.OgvQn==false)
if(l.scrollHeight>200)
{
this.OgvQn=true
this.xBphS=l.scrollHeight+150
this.resetButtons();
KpWMk.call(this)
}
}
this.initializeWindow=function(FruIt_lx,FruIt_ly)
{
if(WA_Dialog.NUAva)WA_Dialog.NUAva.closeWin()
WA_Dialog.NUAva=this;
this.FruIt_win_width=FruIt_lx;
this.FruIt_win_height=FruIt_ly;
this.DTnZP()
}
this.progress=function()
{
this.initializeWindow(300,100)
this.writeContent("<div width=100% align=center><img src='wa_loading.gif'></div>")
}
this.uZkcm=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(UavLB,vIGGd,hCAaC,DOWMJ)
{
var TPkpw=this.kwEaY.length
if(this.Ntllp_close_button==true)
{
TPkpw--;
}
var ObFmd=Math.max((UavLB.length*8)*1.2+30,80)
var IdShR=new Size(ObFmd,this.BUTTON_HEIGHT);
this.BeaQQ("action_"+TPkpw,TPkpw,UavLB,vIGGd,IdShR,hCAaC,DOWMJ)
}
this.natud=function()
{
this.kwEaY=new Array();
if(this.Ntllp_close_button)
{

var IdShR=new Size(50,20);
this.BeaQQ("close",-1,"X",null,IdShR)
}
}
this.BeaQQ=function(Ctqhb,TPkpw,UavLB,vIGGd,IdShR,hCAaC,DOWMJ)
{
var TKCFG=[Ctqhb,IdShR,TPkpw,UavLB,vIGGd,hCAaC,DOWMJ];
this.kwEaY.push(TKCFG);
}
this.writeContent=function(s)
{
var l=document.getElementById('wa-dialog-content');
l.innerHTML=s
}
this.QZoFA=function(Ctqhb)
{
for(var FQSXr=0;FQSXr<this.kwEaY.length;FQSXr++)
{
var TKCFG=this.kwEaY[FQSXr];
if((TKCFG[0]==Ctqhb)||(TKCFG[2]+""==Ctqhb+""))
return TKCFG;
}
return undefined;
}
this.VVJDV=function(Ctqhb)
{
var TKCFG=this.QZoFA(Ctqhb);
return TKCFG[1]
}
this.getColorTheme=function(FQSXr)
{
return this.nuKiJ[FQSXr];
}
this.sfnML=function(xaSUw)
{
var TKCFG=this.QZoFA(xaSUw);
var Ctqhb=TKCFG[0];
var TPkpw=TKCFG[2];
var jhXmd_text=this.nuKiJ[4]
var jhXmd_bg=this.nuKiJ[5]
var jhXmd_glow=this.nuKiJ[7]
if(TPkpw==-1)
{
jhXmd_text=this.nuKiJ[10]
jhXmd_bg=this.nuKiJ[8]
jhXmd_glow=this.nuKiJ[11]
}
var QeSkr=this.PITRl+Ctqhb;
var EcYXY=this.oqVea+Ctqhb;
var IdShR=this.VVJDV(xaSUw)
var dQCxn=0;
var s=""
s+="<a href='javascript:WA_openDialogAction("+xaSUw+")' ";
var jhXmd=new RGBColor(jhXmd_bg);
var lNFXn=jhXmd.toHsl();
jhXmd.fromHsl(lNFXn[0],lNFXn[1],lNFXn[2]+0.2)
jhXmd_bg=jhXmd.toRGB();
var SXbYG_glow=new RGBColor(jhXmd_glow);
var fiBnA=SXbYG_glow.toHsl();
SXbYG_glow.fromHsl(fiBnA[0],fiBnA[1],fiBnA[2]+0.2)
jhXmd_glow=SXbYG_glow.toRGB();
s+="onmouseover=\"WA_but_over('"+EcYXY+"','"+jhXmd_bg+"','"+jhXmd_glow+"')"+"\" ";
s+="onmouseout=\""+"WA_but_out('"+EcYXY+"')"+"\" ";
s+="style='text-decoration:none;'>";
s+="<div id='"+this.PITRl+Ctqhb+"' style='position:absolute;cursor:pointer;left:0px;top:0px;height:"+IdShR.height+"px;width:"+IdShR.width+"px;' >";
s+="<div style='position:absolute;left:"+(-dQCxn)+"px;top:"+(-dQCxn)+"px;height:"+IdShR.height+"px;'>"
s+="<canvas id='"+this.oqVea+Ctqhb+"' width="+(IdShR.width+dQCxn*2)+" height="+(IdShR.height+dQCxn*2)+" ></canvas>";
s+="</div>"
s+="<div align=center style='position:absolute;left:0px;top:"+(0)+"px;vertical-align:middle;width:100%;height:"+(IdShR.height)+"px;line-height:"+(IdShR.height)+"px;font-family:arial;font-size:13px;font-weight:bold;color:"+jhXmd_text+"'>"
s+=TKCFG[3];
s+="</div>"
s+="</div>"
s+="</a>"
return s;
}
this.dqGBG=function(Ctqhb)
{
var TKCFG=this.QZoFA(Ctqhb);
var TPkpw=TKCFG[2];
var jhXmd_bg=this.nuKiJ[5]
var jhXmd_glow=this.nuKiJ[7]
var jhXmd_text=this.nuKiJ[3]
if(TPkpw==-1)
{
jhXmd_bg=this.nuKiJ[8]
jhXmd_glow=this.nuKiJ[11]
jhXmd_text=this.nuKiJ[10]
}
var pojwf=this.oqVea+Ctqhb;
registerDynamicCanvas(pojwf);
var IdShR=this.VVJDV(Ctqhb);
var cJCEt=IdShR.height*0.25;
var fkWeX=true;
cJCEt=0;
fkWeX=false;
var OqqCb=0;
var hCWEm=(IdShR.width-2);
var GnDrB_circle_top=IdShR.height*0.45;

var FhNSH_top=[1,1,hCWEm,GnDrB_circle_top,OqqCb];
var ObFmd_circle_bottom=IdShR.width-2;
var GnDrB_circle_bottom=IdShR.height*0.45;
var XPSoA=jhXmd_glow;
var hTPAU=jhXmd_glow;
var RmGAE=0;

var FhNSH_bottom=[(IdShR.width-ObFmd_circle_bottom)/2,IdShR.height-GnDrB_circle_bottom-1,ObFmd_circle_bottom,GnDrB_circle_bottom,RmGAE,XPSoA,hTPAU];
WA_but(pojwf,0,IdShR.width,IdShR.height,cJCEt,jhXmd_bg,FhNSH_top,FhNSH_bottom,fkWeX,0)
}
this.iGXVw=function(Ctqhb)
{
var TKCFG=this.QZoFA(Ctqhb)
if(TKCFG)
{
var pojwf=this.PITRl+TKCFG[0];
return document.getElementById(pojwf);
}
return undefined
}
this.DTnZP=function()
{
var l=document.getElementById('wa-dialog-container');
l.style.display="block" 

var s="";
var eQVdP=document.webaca_banner_height
s+="<div  style='position:absolute;left:0px;top:"+eQVdP+"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:"+eQVdP+"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 mQZtN in this.kwEaY)
{
s+=this.sfnML(this.kwEaY[mQZtN][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.PDPLM)
}
this.PDPLM=function()
{
registerDynamicCanvas('wa-dialog1');
for(var mQZtN in this.kwEaY)
{
this.dqGBG(this.kwEaY[mQZtN][0])
}
this.uOGTc()
if(this.AYWNY())
{
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.NUAva=false
}
this.closeWin=function()
{
this.intern_closeWin()
}
this.cssText1=function()
{
return "font-family:Arial;font-size:15px;color:"+this.nuKiJ[3]+";";
}
this.onCustomKeypress=function(kFAUg)
{
if((this.kwEaY.length==1)&&(kFAUg==13))
{
this.closeWin()
return true;
}
return false;
}
this.onkeypress=function(kFAUg)
{
return this.onCustomKeypress(kFAUg)
}
this.onkeydown=function(kFAUg)
{
if(kFAUg==27)
{
this.closeWin()
return true;
}
return this.onCustomKeypress(kFAUg) 
}
this.customUpdate=function(){}
this.AYWNY=function()
{
return isIPhone();
}
this.uOGTc=function()
{
var ObFmd_page=document.webaca_width_page;
var GnDrB_page=document.webaca_height_page;
var dlMXL=getWindowSize().width
var GnDrB_window=getWindowSize().height
var VlhMj=getWindowFullSize().width
var GnDrB_full_client=getWindowFullSize().height
var lXxRH=550;
var lTkkH=400;
dlMXL=Math.max(dlMXL,lXxRH);
GnDrB_window=Math.max(GnDrB_window,lTkkH);
if(this.AYWNY())
{
dlMXL=600;
GnDrB_window=700;
}
this.rVLlq=Math.min(dlMXL*0.9,this.FruIt_win_width)
this.HKdVA=Math.min(GnDrB_window*0.9,this.FruIt_win_height)
var JGHNd=document.getElementById('wa-dialog1');
JGHNd.width=this.rVLlq+10
JGHNd.height=this.HKdVA+10
var rFEph=getWindowScroll().x+(dlMXL-JGHNd.width)/2
var eImNF=getWindowScroll().y+(GnDrB_window-JGHNd.height)/2
rFEph=(dlMXL-JGHNd.width)/2
eImNF=(GnDrB_window-JGHNd.height)/2
rFEph=Math.max(0,rFEph)
eImNF=Math.max(0,eImNF)
if(this.AYWNY())
{
rFEph=0
eImNF=0;
}
var QcZNq=document.getElementById('wa-dialog-main');
html_SetGeometry('wa-dialog-main',rFEph,eImNF,JGHNd.width,JGHNd.height);
var ClBxx_bg="(0;0;0;"+this.HKdVA*0.25+";"+this.nuKiJ[1]+";"+this.nuKiJ[2]+")";
var qeYHB=4;
WA_bg('wa-dialog1',this.rVLlq,this.HKdVA,qeYHB,3,this.nuKiJ[0],[ClBxx_bg],true,0)
var ZMIOX=10;
var vGxVF=this.iGXVw(-1)
if(vGxVF)
{
var CdRRi_close=this.VVJDV(-1) 
var marginClose=3
html_SetPosition(vGxVF,this.rVLlq-CdRRi_close.width-marginClose+this.uPffb-1,marginClose+this.uPffb-1)
}
var GZBpY_buttons=this.kwEaY.length;
if(this.Ntllp_close_button==true)
{
GZBpY_buttons--;
}
var jYhXK=10;
var TYUIg=0;
for(var mQZtN=0;mQZtN<GZBpY_buttons;mQZtN++)
{
if(mQZtN>0) TYUIg+=jYhXK;
var CdRRi=this.VVJDV(mQZtN);
TYUIg+=CdRRi.width;
}
var VWIbw=(this.rVLlq-TYUIg)/2
for(var mQZtN=0;mQZtN<GZBpY_buttons;mQZtN++)
{
if(mQZtN>0) VWIbw+=jYhXK;
var GCHPF=this.iGXVw(mQZtN);
var CdRRi=this.VVJDV(mQZtN);
html_SetPosition(GCHPF,VWIbw+this.uPffb,+this.uPffb+this.HKdVA-CdRRi.height-2*ZMIOX)
VWIbw+=CdRRi.width;
}
var GnDrB_top=45;
var GnDrB_bottom=this.BUTTON_HEIGHT+2*ZMIOX;
if(GZBpY_buttons==0)
{
GnDrB_bottom=0;
}
var GnDrB_content=(this.HKdVA-GnDrB_top-GnDrB_bottom)-ZMIOX
var WZKdY=document.getElementById('wa-dialog-content');
var tngcV_content=Math.round(this.rVLlq-2*ZMIOX)
var gkojL=Math.round(GnDrB_content)
this.m_content_lx=tngcV_content
this.m_content_ly=gkojL
html_SetGeometry('wa-dialog-content',Math.round(5+(this.rVLlq-tngcV_content)/2),Math.round(5+GnDrB_top+(GnDrB_content-gkojL)/2),tngcV_content,gkojL);
this.customUpdate() 
var ctnmP=document.getElementById('wa-dialog-container');
var ITxoB=GnDrB_full_client
ITxoB=Math.max(ITxoB,GnDrB_window) 
var XXGAW=VlhMj
XXGAW=Math.max(XXGAW,dlMXL)
if(this.AYWNY())
{
XXGAW=Math.max(XXGAW,ObFmd_page)
ITxoB=Math.max(ITxoB,GnDrB_page)
}
html_SetSize('wa-dialog-container',XXGAW,ITxoB);
centerFullPageContainer();
}
this.XBScH();
}
function centerFullPageContainer()
{
var keuiq=WA_Dialog.getCurrent() 
var ObFmd_page=document.webaca_width_page;
var GnDrB_page=document.webaca_height_page;
var ctnmP=document.getElementById('wa-dialog-container');
var VlhMj=getWindowSize().width 
var GnDrB_full_client=getWindowSize().height
var eImNF_bg=getWindowScroll().y;
var FJRip=keuiq&&keuiq.AYWNY();
if(FJRip)
{
eImNF_bg=0
}
eImNF_bg=Math.min(eImNF_bg,GnDrB_page-GnDrB_full_client+1)
eImNF_bg=Math.max(eImNF_bg,0)
var ZjACI=getWindowScroll().x;
if(FJRip)
{
ZjACI=0
}
ZjACI=Math.min(ZjACI,ObFmd_page-VlhMj+1)
ZjACI=Math.max(ZjACI,0)
html_SetPosition('wa-dialog-container',ZjACI,eImNF_bg,VlhMj,GnDrB_full_client);
}
function WA_exec_callback_opera_compliant(hCAaC,kufOG)
{
if(/opera/i.test(navigator.userAgent))
WA_exec_delayedCallback(hCAaC,kufOG)
else
kufOG.call(hCAaC)
}
function WA_exec_delayedCallback(hCAaC,kufOG)
{
wa_timeout(Delegate.create(hCAaC,kufOG),0);
}
WA_Dialog.getCurrent=function()
{
return WA_Dialog.NUAva;
}
WA_Dialog.NUAva=false;
WA_Dialog.resizeUI=function()
{
if(WA_Dialog.NUAva)
{
var keuiq=WA_Dialog.NUAva
if(keuiq.AYWNY()==false)
{
keuiq.uOGTc()
}
}
}
WA_Dialog.alert=function(s)
{
var w=new WA_Dialog();
w.uZkcm(s)
}
WA_Dialog.progress=function()
{
var w=new WA_Dialog(false);
w.progress()
}

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

}
};
return http_request;
}
function makePOSTRequest(url,parameters,callback,Rnxbe)
{
var http_request=getXMLHttpRequest(callback,Rnxbe);
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(ZMDmS,pVdbh,DOWMJ)
{
var result=pVdbh.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 gigXh=DOWMJ[0] 
WA_Dialog.alert(Translator.tr("Success:Mail sended"));
var form=document.getElementById(gigXh);
form.reset()
}
else
{
var GkBBD="error_string="
n=result.indexOf(GkBBD)
if(n>-1)
{
result=result.substring(n+GkBBD.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 jXpRP=el.value
jXpRP=encodeURI(jXpRP)
jXpRP=jXpRP.replace(/&/g,escape("&")) 
poststr+=el.name.replace("_mandatory","")+"="+jXpRP+"&"
}
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(ZehLd)
{
var DmLnY=document.getElementById(ZehLd);
DmLnY.submit() 
}
function CYtxJ(HZdVw,DOWMJ)
{
var kFAUg=DOWMJ[0]
if(kFAUg==13)
{
var ZehLd=HZdVw+"-form";
var DmLnY=document.getElementById(ZehLd);
for(var i=0;i<DmLnY.elements.length;i++)
{
var qQxWC=DmLnY.elements[i];
if((qQxWC.type=="textarea")&&(qQxWC.focused))return true;
}
WA_form_submit(ZehLd);
return false;
}
return true;
}
function WA_addFormDeclaration(HZdVw,SKqoO)
{
return WA_addHandler(HZdVw,"keypress",CYtxJ)
}
function WA_form_bg(id,lx,ly,arc,IADxT,bord_col,bg,shadow,QLGLl,XasGv)
{
WA_bg(id,lx,ly,arc,IADxT,bord_col,bg,shadow,QLGLl,1.0,true) 
var RPCuw=XasGv.x;
var Aphht=0;
var VtUOb=XasGv.cells
for(var n=0;n<VtUOb.length;n++)
{
var gBIxN=VtUOb[n]
var arc2=0
BSulZ(id,RPCuw,Aphht+gBIxN.y,XasGv.w,gBIxN.h,arc2,1,XasGv.border,[''],false,0,1.0,false)
BSulZ(id,RPCuw,Aphht+gBIxN.y,gBIxN.w,gBIxN.h,arc2,1,"rgba(0,0,0,0)",[XasGv.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(ZHZss)
{
this.ok=false;this.a=1.0;
if(ZHZss.charAt(0)=='#'){ZHZss=ZHZss.substr(1);}
ZHZss=ZHZss.replace(/ /g,'');
ZHZss=ZHZss.toLowerCase();
var DFquM=[
{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<DFquM.length;i++){
var ShawE=DFquM[i].re;
var FPaUJ=DFquM[i]._process;
var LUDmM=ShawE.exec(ZHZss);
if(LUDmM){
var oJvWB=FPaUJ(LUDmM);
this.r=oJvWB[0];this.g=oJvWB[1];this.b=oJvWB[2];this.a=oJvWB[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.Odabf=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.Odabf(p,q,h+1/3);g=this.Odabf(p,q,h);b=this.Odabf(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 oXOQf(wumfA,DOWMJ)
{
if(document.wa_global_handlers!=undefined)
{
var HZdVw=WA_focused_element()
if(HZdVw)
{
var vIGGd=document.wa_global_handlers[HZdVw+"-"+wumfA]
if(vIGGd) return vIGGd([HZdVw],DOWMJ)
}
}
return true;
}
function IeBrG(e)
{
if(window.event){return e.keyCode;}
else 
if(e.which) return  e.which;
return-1;
}
function WA_onkeypress(e)
{
var kFAUg=IeBrG(e);
if(WA_Dialog.NUAva)
{
if(WA_Dialog.NUAva.onkeypress(kFAUg))
{
return false;
}
}
return oXOQf("keypress",[kFAUg]);
}
function WA_ondblclick(e)
{
return oXOQf("dblclic",[""]);
}
function WA_onkeydown(e)
{
var kFAUg=IeBrG(e)
if(WA_Dialog.NUAva)
{
if(WA_Dialog.NUAva.onkeydown(kFAUg))
{
return false;
}
}
if(kFAUg==13) return true;

if(wa_global_photo_album&&wa_global_photo_album.fullpage_object)
{
var hCAaC=wa_global_photo_album.fullpage_object
return hCAaC.onFullScreenKeydown(kFAUg) 
}
return oXOQf("keydown",[kFAUg]);
}
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 HZdVw=this.id
var vIGGd=document.wa_global_handlers[HZdVw+"-mousewheel"]
if(vIGGd)
{
if(vIGGd([HZdVw],[delta]))
{
b_default=true;
}
}
}
}
if(b_default)
if(e.preventDefault)
e.preventDefault();
e.returnValue=!b_default;
}
function WA_addHandler(HZdVw,wumfA,kufOG)
{
if(document.wa_global_handlers==undefined) document.wa_global_handlers=new Array()
if(wumfA=="mousewheel")
{
var uhhKu=document.getElementById(HZdVw);
if(uhhKu.addEventListener)
uhhKu.addEventListener('DOMMouseScroll',WA_genericMouseWheelHandler,false);
uhhKu.onmousewheel=WA_genericMouseWheelHandler
}
document.wa_global_handlers[HZdVw+"-"+wumfA]=kufOG
}
function WA_loadPhotoAlbum(HZdVw,iaZcw,IdShR,HZdVw_modif)
{
if(typeof(wa_global_photo_album[HZdVw])=="undefined")
{
var o=new Array();
o.src_folder=iaZcw
o.size_container=IdShR
o.id_modif=HZdVw_modif
wa_global_photo_album[HZdVw]=o;
}
}
function WA_focused_element()
{
return document.wa_global_focused_element
}
function WA_focus(hCAaC)
{
document.wa_global_focused_element=hCAaC.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(OceAf,VCalC,smQAc)
{
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[VCalC])document.wa_global_blogs_elements[VCalC]=new Array()
document.wa_global_blogs_elements[VCalC].id_blog=OceAf
document.wa_global_blogs_elements[VCalC].has_email=smQAc
}
function WA_addSearchHandler(HZdVw)
{
return WA_addHandler(HZdVw,"keypress",HfUCr)
}
function HfUCr(HZdVw,DOWMJ)
{
var kFAUg=DOWMJ[0]
if(kFAUg==13)
{
var FQYlr=HZdVw+"-search-input";
WA_onSearch(FQYlr)
return false;
}
return true;
}
function WA_declareSearchIndex(okxEZ,RLwpV)
{
document.const_wa_search_js=okxEZ
document.const_wa_search_index_js=RLwpV
}
function WA_onSearch(FQYlr)
{
var gxnhk=document.getElementById(FQYlr);
if(document.wa_search_js_loaded==true)
{
WA_openSearchDialog(gxnhk,document.const_wa_search_index_js)
}
else
{
WA_Dialog.progress();
SGeik(gxnhk)
}
}
function dDskr(DOWMJ)
{
document.wa_search_js_loaded=true
WA_openSearchDialog(DOWMJ[0],document.const_wa_search_index_js)
}
function SGeik(ubSDH)
{
WA_loadScript(document.const_wa_search_js,dDskr,[ubSDH])
}
function vCgRJ(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 vCgRJ(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(HZdVw)
{
var GGfka=document.wa_global_menu_declaration[HZdVw]
WA_bg(HZdVw,GGfka.root_lx,GGfka.root_ly,GGfka.root_corner,GGfka.root_border,GGfka.root_col_border,[GGfka.root_bg],false,0)
var qQxWC=document.getElementById(GGfka.id)
if(!qQxWC)return;
var c=qQxWC.getContext('2d');
c.lineWidth=1
c.strokeStyle=GGfka.root_col_separator
var AmYoa=0.5;

var GdvjD=GGfka.root_sizes.length
if(GGfka.root_extend==false)
{
GdvjD--;
}
var xiqCN=3;
for(var i=0;i<GdvjD;i++)
{
var IdShR=GGfka.root_sizes[i] 

c.beginPath();
if(GGfka.root_vertical==false)
{
AmYoa+=(IdShR-1)
c.moveTo(AmYoa,xiqCN)
c.lineTo(AmYoa,GGfka.root_ly-xiqCN)
}
else
{
AmYoa+=(IdShR)
c.moveTo(xiqCN,AmYoa-1,0)
c.lineTo(GGfka.root_lx-xiqCN,AmYoa-1)
}
c.closePath();
c.stroke()
}
}
function WA_declare_menu(HZdVw,GGfka)
{
if(!document.wa_global_menu_declaration)document.wa_global_menu_declaration=new Array();
GGfka.id=HZdVw
document.wa_global_menu_declaration[HZdVw]=GGfka
WA_bg_menu(HZdVw)
}
function WA_declareMarket(HZdVw,QCZmK_market,HZdVw_modif)
{
if(typeof(wa_global_market.markets[HZdVw])=="undefined")
{
var o=new Array();
o.src_folder=QCZmK_market
o.id_modif=HZdVw_modif 

o.id=HZdVw
wa_global_market.markets[HZdVw]=o;
}
}
function WA_button_market_declare(HZdVw,UavLB)
{
if(!document.wa_global_button_market_declaration)document.wa_global_button_market_declaration=new Array();
document.wa_global_button_market_declaration[HZdVw]=UavLB
}
function eTbCL(c,img,rFEph,eImNF,ObFmd,GnDrB,fBYpf,xlYTH,tvfwJ)
{
c.globalAlpha=xlYTH
if(tvfwJ) c.clearRect(0,0,ObFmd,GnDrB) 
if(xlYTH==0)return;
if(fBYpf)
{
c.drawImage(img,fBYpf.x,fBYpf.y,fBYpf.width,fBYpf.height,rFEph,eImNF,ObFmd,GnDrB)
}
else
{
c.drawImage(img,rFEph,eImNF,ObFmd,GnDrB)
}
}
function WA_drawImage(id,kuuVu,rFEph,eImNF,ObFmd,GnDrB,fBYpf,xlYTH,tvfwJ)
{
if(tvfwJ==undefined)tvfwJ=true;
if(xlYTH==undefined)xlYTH=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==kuuVu)
{
eTbCL(c,c.HkJKw,rFEph,eImNF,ObFmd,GnDrB,fBYpf,xlYTH,tvfwJ)
return;
}
var img=new Image();
img.wrvTo=el.wrvTo
img.onload=function()
{
c.old_src=kuuVu
c.HkJKw=this;
eTbCL(c,this,rFEph,eImNF,ObFmd,GnDrB,fBYpf,xlYTH,tvfwJ)
}
img.src=kuuVu;
}

-->
