<!--

function Delegate(){}
Delegate.create=function(o,f){
var hrZFY=new Array();
var aWunr=arguments.length;
for(var i=2;i<aWunr;i++) hrZFY[i-2]=arguments[i];
return function(){
var AAnLg=[].concat(arguments,hrZFY);
f.apply(o,AAnLg);
}
}
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.NqQSu=0;
t.TDqfM=0;
t.SwQhg=0;
t.MTKlX=0;
t.KIudg=0;
t.wtXkf=0;
t.WEFfP=false;
t.name='';
t.suffixe='';
t.oLbru=new Array();
t.setTime=function(t){
this.prevTime=this.TDqfM;
if(t>this.getDuration()){
if(this.looping){
this.rewind(t-this.NqQSu);
this.update();
this.mHcEm('onMotionLooped',{target:this,type:'onMotionLooped'});
}else{
this.TDqfM=this.NqQSu;
this.update();
this.stop();
this.mHcEm('onMotionFinished',{target:this,type:'onMotionFinished'});
}
}else if(t<0){
this.rewind();
this.update();
}else{
this.TDqfM=t;
this.update();
}
}
t.isRunning=function(){
return this.WEFfP;
}
t.getTime=function(){
return this.TDqfM;
}
t.setDuration=function(d){
this.NqQSu=(d==null||d<=0)?100000:d;
}
t.getDuration=function(){
return this.NqQSu;
}
t.setPosition=function(p){
this.prevPos=this.SwQhg;
var a=this.suffixe!=''?this.suffixe:'';
this.obj[this.prop]=Math.round(p)+a;
this.SwQhg=p;
this.mHcEm('onMotionChanged',{target:this,type:'onMotionChanged'});
}
t.getPosition=function(t){
if(t==undefined) t=this.TDqfM;
return this.func(t,this.begin,this.change,this.NqQSu);
};
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.oLbru=new Array();
this.addListener(this);
if(suffixe) this.suffixe=suffixe;
this.obj=obj;
this.prop=prop;
this.begin=begin;
this.SwQhg=begin;
this.setDuration(duration);
if(func!=null&&func!=''){
this.func=func;
}
this.setFinish(finish);
}
t.start=function(){
this.rewind();
this.startEnterFrame();
this.mHcEm('onMotionStarted',{target:this,type:'onMotionStarted'});
}
t.rewind=function(t){
this.stop();
this.TDqfM=(t==undefined)?0:t;
this.fixTime();
this.update();
}
t.fforward=function(){
this.TDqfM=this.NqQSu;
this.fixTime();
this.update();
}
t.update=function(){
this.setPosition(this.getPosition(this.TDqfM));
}
t.startEnterFrame=function(){
this.stopEnterFrame();
this.WEFfP=true;
this.onEnterFrame();
}
t.onEnterFrame=function(){
if(this.WEFfP){
this.nextFrame();
wa_timeout(Delegate.create(this,this.onEnterFrame),0);
}
}
t.nextFrame=function(){
this.setTime((this.getTimer()-this.KIudg)/1000);
}
t.stop=function(){
this.stopEnterFrame();
this.mHcEm('onMotionStopped',{target:this,type:'onMotionStopped'});
}
t.stopEnterFrame=function(){
this.WEFfP=false;
}
t.continueTo=function(finish,duration){
this.begin=this.SwQhg;
this.setFinish(finish);
if(this.NqQSu!=undefined)
this.setDuration(duration);
this.start();
}
t.resume=function(){
this.fixTime();
this.startEnterFrame();
this.mHcEm('onMotionResumed',{target:this,type:'onMotionResumed'});
}
t.yoyo=function(){
this.continueTo(this.begin,this.TDqfM);
}
t.addListener=function(o){
this.removeListener(o);
return this.oLbru.push(o);
}
t.removeListener=function(o){
var a=this.oLbru;
var i=a.length;
while(i--){
if(a[i]==o){
a.splice(i,1);
return true;
}
}
return false;
}
t.mHcEm=function(){
var arr=new Array();
for(var i=0;i<arguments.length;i++){
arr.push(arguments[i])
}
var e=arr.shift();
var a=this.oLbru;
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.KIudg=this.getTimer()-this.TDqfM*1000;
}
t.getTimer=function(){
return new Date().getTime()-this.TDqfM;
}
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,QWvsp,tWHMG,NqQSu){
this.targetObject=obj;
this.init(new Object(),'a',func,QWvsp,tWHMG,NqQSu);
this.onMotionChanged=function(evt){
var v=evt.target.SwQhg;
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(ilRZo,bRvRF,udFsc)
{
return "<canvas id='"+ilRZo+"' width='"+bRvRF+"' height='"+udFsc+"'></canvas>"
}
function WA_canvas(ilRZo,bRvRF,udFsc)
{
document.write(html_canvas(ilRZo,bRvRF,udFsc))
}
function KfXXX(hhuoC,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;
hhuoC.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;
hhuoC.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;
hhuoC.quadraticCurveTo(cx,cy,px,py);
}
}
function xcloJ(c,x,y,lx,ly,arc,clowckwise)
{
c.beginPath()
BIGOq(c,x,y,lx,ly,arc,clowckwise)
}
function BIGOq(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 hKCpH()
{
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 FXoGv(lx,ly,parent,id_suffixe)
{
var sZXcu=document.createElement('canvas');sZXcu.width=lx;sZXcu.height=ly;
return sZXcu;
}
function DkRlb(HpCXo)
{
var OXFGg=(-HpCXo+45);
return new Point(Math.cos(OXFGg*(2*Math.PI)/360),Math.sin(OXFGg*(2*Math.PI)/360))
}
function NmRiC(c,HpCXo)
{
var offset=DkRlb(HpCXo)
c.shadowOffsetX=2*offset.x;
c.shadowOffsetY=2*offset.y;
c.shadowBlur=4;
}
function WA_over_img_html(cHpHC,SLSQK,DRmqa)
{
if(!cHpHC.src)
{
var cgLio=cHpHC.getElementsByTagName("IMG")
if(cgLio.length==1)cHpHC=cgLio[0]
}
if(cHpHC.src1==undefined)
{
cHpHC.src1=cHpHC.src;
cHpHC.src2=SLSQK;
}
if(DRmqa)
{
cHpHC.src=cHpHC.src2;
}
else
{
cHpHC.src=cHpHC.src1;
}
}
function WA_over_img(id,DRmqa)
{
var el=document.getElementById(id+"-canvas") 

var cHpHC=(DRmqa)?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,[cHpHC,cHpHC],el.wa_shadow,el.wa_rot,el.wa_reflex,DRmqa)
}
function JifVJ(ilRZo,lx,ly,arc,side)
{
this.id=ilRZo;
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.RWvdT=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 NxTNS=document.getElementById(this.id+"-reflex")
var mgPFA=NxTNS.getContext('2d');

var XbLrl=0;
var TfLgT=0;
if(this.side==2)
{
XbLrl=this.lx;
TfLgT=-this.ly*0.75;
}
else
if(this.side==0)
{
XbLrl=this.lx;
}
else
if(this.side==3)
{
XbLrl=0.25*this.lx;
}
else
if(this.side==1)
{
XbLrl=this.lx;
}
mgPFA.translate(XbLrl,TfLgT)
mgPFA.scale(-1,1)
mgPFA.beginPath()
xcloJ(mgPFA,1,1,this.lx-2,this.ly-2,this.arc)
mgPFA.clip() 

mgPFA.drawImage(canv2,this.sX,this.sY,this.sLx,this.sLy,this.sX,this.sY,this.sLx,this.sLy);
mgPFA.globalCompositeOperation="destination-out";
var gradient=mgPFA.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)");
mgPFA.fillStyle=gradient;
mgPFA.beginPath()
mgPFA.rect(this.sX-this.decX,this.sY-this.decY,this.sLx,this.sLy);
mgPFA.fill();
mgPFA.globalCompositeOperation="source-over";
mgPFA.scale(-1,1)
mgPFA.translate(-XbLrl,-TfLgT) 
}
}
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 ZjkUW(c2,lx,ly,CcSHh,bord_col,arc,arc2)
{
if(CcSHh>0)
{
c2.beginPath()
c2.fillStyle=bord_col;
c2.beginPath()
xcloJ(c2,0,0,lx,ly,arc)
BIGOq(c2,CcSHh,CcSHh,lx-2*CcSHh,ly-2*CcSHh,arc2,true)
c2.fill()
}
}
function rmEPB()
{
this.tx=0
this.ty=0
this.rotation=0
}
function kugIQ(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 rmEPB()
}
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 rTPYC=0;
if(shadow)rTPYC=6
var kperF=id+"-canvas"
var el=document.getElementById(kperF)
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)-rTPYC,div.wa_pos.y-rTPYC)
html_SetCanvasSize(el,div.wa_size.height+2*rTPYC,div.wa_size.width+2*rTPYC)
html_SetCanvasSize(canv2,div.wa_size.height+4*rTPYC,div.wa_size.width+4*rTPYC)
html_SetSize(div,div.wa_size.height+2*rTPYC,div.wa_size.width+2*rTPYC) 
matrix.tx=ly+2*rTPYC
matrix.ty=2*rTPYC
}
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-rTPYC,div.wa_pos.y-lx-rTPYC)
html_SetCanvasSize(el,div.wa_size.height+2*rTPYC,div.wa_size.width+2*rTPYC)
html_SetCanvasSize(canv2,div.wa_size.height+4*rTPYC,div.wa_size.width+4*rTPYC)
html_SetSize(div,div.wa_size.height+2*rTPYC,div.wa_size.width+2*rTPYC) 
matrix.tx=2*rTPYC
matrix.ty=lx+2*rTPYC
}
matrix.rotation=rot*2*Math.PI/360
c2.translate(matrix.tx,matrix.ty)
c2.rotate(matrix.rotation)
}
}
function WA_img(id,lx,ly,arc,CcSHh,bord_col,s_img,shadow,rot,BHPGC,b_over)
{
var kperF=id+"-canvas"
var el=document.getElementById(kperF)
var c=el.getContext('2d');
var QEQnl=false;
if((BHPGC!=undefined)&&(BHPGC!=-1))
{
QEQnl=new JifVJ(kperF,lx,ly,arc,BHPGC)
}
var rTPYC=0;
if(shadow)rTPYC=6 


if(el.wa_lx==undefined)
{
el.wa_lx=lx
el.wa_ly=ly
el.wa_arc=arc
el.wa_bord_siz=CcSHh
el.wa_bord_col=bord_col
el.wa_s_img=s_img
el.wa_shadow=shadow
el.wa_rot=rot
el.wa_reflex=BHPGC
c.translate(rTPYC,rTPYC)
}
var OUbFO_img=document.getElementById(id+"-cache")
OUbFO_img.onload=function()
{
c.clearRect(0,0,lx+2*rTPYC,ly+2*rTPYC)
var arc2=arc-CcSHh;
if(arc2<0)arc2=0;
this.width=lx-2*CcSHh
this.height=ly-2*CcSHh
if(isMSIE())
{
if(shadow) EZodJ(c,0,0,lx,ly,arc,false,rot)
var hdDdd=c.createPattern(this,'no-repeat');
c.fillStyle=hdDdd;
c.beginPath()
xcloJ(c,CcSHh,CcSHh,lx-2*CcSHh,ly-2*CcSHh,arc2)
c.translate(CcSHh,CcSHh)
c.fill()
c.translate(-CcSHh,-CcSHh)
ZjkUW(c,lx,ly,CcSHh,bord_col,arc,arc2)
}
else
if(navigator.userAgent.match(/Firefox/i)&&(shadow))
{
var YxwHC=new  rmEPB()
kugIQ(id,lx,ly,rot,c,el,shadow,YxwHC)
if(shadow) EZodJ(c,0,0,lx,ly,arc,false,rot)
var c2=c
ZjkUW(c2,lx,ly,CcSHh,bord_col,arc,arc2)
c2.beginPath()
xcloJ(c2,CcSHh,CcSHh,lx-2*CcSHh,ly-2*CcSHh,arc2)
c2.clip()
c2.drawImage(this,CcSHh,CcSHh,lx-2*CcSHh,ly-2*CcSHh);
c2.rotate(-YxwHC.rotation)
c2.translate(-YxwHC.tx,-YxwHC.ty)
}
else
{
var canv2=FXoGv(lx,ly,el,"bis2");
var c2=canv2.getContext('2d');
var YxwHC=new  rmEPB()
kugIQ(id,lx,ly,rot,c2,canv2,shadow,YxwHC)
c.clearRect(-rTPYC,-rTPYC,lx+2*rTPYC,ly+2*rTPYC)
ZjkUW(c2,lx,ly,CcSHh,bord_col,arc,arc2)
c2.beginPath()
xcloJ(c2,CcSHh,CcSHh,lx-2*CcSHh,ly-2*CcSHh,arc2)
c2.clip()
c2.drawImage(this,CcSHh,CcSHh,lx-2*CcSHh,ly-2*CcSHh);
c2.rotate(-YxwHC.rotation)
c2.translate(-YxwHC.tx,-YxwHC.ty)
if(shadow) NmRiC(c,rot)
c.drawImage(canv2,0,0);
c2.translate(YxwHC.tx,YxwHC.ty)
c2.rotate(YxwHC.rotation)
if(QEQnl)
{
QEQnl.RWvdT(canv2)
}
}
}
OUbFO_img.src=s_img[0];
}
function SDmaS(VnAjV,HpCXo,xshZJ,JibnP)
{
VnAjV.style.left=xshZJ+"px"
VnAjV.style.top=JibnP+"px"
VnAjV.style.webkitTransformOrigin="0 0"
VnAjV.style.webkitTransform="rotate("+HpCXo+"deg)";
}
function KCque(c,type,lx,ly,corner)
{
if(type==1)
KfXXX(c,0,0,lx,ly)
else
xcloJ(c,0,0,lx,ly,corner)
}
function nvMWq(el,c,type,lx,ly,corner,bg,KJFxC,rot)
{
if(hKCpH()==false)
{
c.fillStyle=bg;
KCque(c,type,lx,ly,corner)
c.fill()
}
else
{
var canv2=FXoGv(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.fillStyle=bg;
KCque(c2,type,lx,ly,corner)
c2.fill()
if(KJFxC) NmRiC(c,rot)
c.drawImage(canv2,0,0);
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
}
}
function WUnVh(c,type,lx,ly,GArks,bg,CtFdR,JUIwq_glow)
{
if(CtFdR)
{
var x1=CtFdR[0];var y1=CtFdR[1];var lx1=CtFdR[2];var ly1=CtFdR[3];var prVYf=CtFdR[4];
var aAaNh=c.createLinearGradient(x1,y1,x1,y1+ly1);
aAaNh.addColorStop(0,"rgba(255,255,255,0.7)");aAaNh.addColorStop(1,"rgba(255,255,255,0.1)");
c.fillStyle=aAaNh;
if(type==1) KfXXX(c,x1,y1,lx1,ly1)
else
xcloJ(c,x1,y1,lx1,ly1,prVYf)
c.fill()
}
if(JUIwq_glow)
{
var x2=JUIwq_glow[0];var y2=JUIwq_glow[1];var lx2=JUIwq_glow[2];var ly2=JUIwq_glow[3];
var YiUUk=JUIwq_glow[4];
var ubxNI_glow=new RGBColor(JUIwq_glow[5]);
ubxNI_glow.a=0;
var col1=JUIwq_glow[5];
var col2=ubxNI_glow.toRGB();
var WZlQf=c.createLinearGradient(x2,y2,x2,y2+ly2);
WZlQf.addColorStop(0,col2);
WZlQf.addColorStop(0.2,col2);
WZlQf.addColorStop(1,col1);
c.fillStyle=WZlQf;
if(type==1) KfXXX(c,x2,y2,lx2,ly2)
else
xcloJ(c,x2,y2,lx2,ly2,YiUUk)
c.fill()
}
}
function UjXui(lvGso,ilRZo,FJlei,bRvRF,udFsc,GArks,rWQcR,CtFdR,JUIwq_glow,KJFxC,HpCXo)
{
lvGso.ilRZo=ilRZo;lvGso.FJlei=FJlei;
lvGso.bRvRF=bRvRF;lvGso.udFsc=udFsc;
lvGso.GArks=GArks;lvGso.rWQcR=rWQcR,lvGso.CtFdR=CtFdR;
lvGso.JUIwq_glow=JUIwq_glow;lvGso.KJFxC=KJFxC;lvGso.HpCXo=HpCXo;
}
function WA_but_over(ilRZo,YDxWh,ubxNI_glow)
{
var KadHL=document.getElementById(ilRZo) 
if(KadHL&&KadHL.bUUfL)
with(KadHL.bUUfL)
{
var JUIwq_glow_over;
if(JUIwq_glow&&ubxNI_glow)
{
JUIwq_glow_over=new Array();
for(var pKugQ=0;pKugQ<JUIwq_glow.length;pKugQ++)JUIwq_glow_over[pKugQ]=JUIwq_glow[pKugQ];
JUIwq_glow_over[5]=ubxNI_glow;
}
WA_but(ilRZo,FJlei,bRvRF,udFsc,GArks,YDxWh,CtFdR,JUIwq_glow_over,KJFxC,HpCXo);
}
var DIFKJ=document.getElementById(ilRZo+"-div0")
if(DIFKJ)html_SetVisibility(DIFKJ,false);
var OwvJa=document.getElementById(ilRZo+"-div1")
if(OwvJa)html_SetVisibility(OwvJa,true);
}
function WA_but_out(ilRZo)
{
var KadHL=document.getElementById(ilRZo)
with(KadHL.bUUfL)
{
WA_but(ilRZo,FJlei,bRvRF,udFsc,GArks,rWQcR,CtFdR,JUIwq_glow,KJFxC,HpCXo);
}
var DIFKJ=document.getElementById(ilRZo+"-div0")
if(DIFKJ)html_SetVisibility(DIFKJ,true);
var OwvJa=document.getElementById(ilRZo+"-div1")
if(OwvJa)html_SetVisibility(OwvJa,false);
}
function WA_but(id,type,lx,ly,corner,bg,top_light,s_glow,KJFxC,rot)
{
var el=document.getElementById(id)
if(el.bUUfL==undefined)
{
el.bUUfL=new Array();
UjXui(el.bUUfL,id,type,lx,ly,corner,bg,top_light,s_glow,KJFxC,rot);
}
var c=el.getContext('2d');
var rTPYC=0;
if(KJFxC)rTPYC=6 
c.fillStyle="#000000";
c.fillRect(0,0,lx+2*rTPYC,ly+2*rTPYC) 
c.clearRect(0,0,lx+2*rTPYC,ly+2*rTPYC) 
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(hKCpH()==false)
{
c.translate(rTPYC,rTPYC)
img.width=lx
img.height=ly 
if(KJFxC)
EZodJ(c,0,0,lx,ly,corner,(type==1),rot)
if(navigator.userAgent.match(/Firefox/i))
{
c.beginPath()
KCque(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()
KCque(c,type,lx,ly,corner)
c.fill()
}
WUnVh(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-rTPYC,-rTPYC)
}
else
{
var canv2=FXoGv(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.beginPath()
KCque(c2,type,lx,ly,corner)
c2.clip()
c2.drawImage(img,0,0,lx,ly);
WUnVh(c2,type,lx,ly,corner,bg,top_light,s_glow)
if(KJFxC) NmRiC(c,rot) 
c.drawImage(canv2,rTPYC,rTPYC);
}
}
img.src=bg2;
return;
}
c.translate(rTPYC,rTPYC) 
if(KJFxC&&(hKCpH()==false))
{
var nhLLf=new RGBColor(bg);
if(nhLLf.a>0)
{
EZodJ(c,0,0,lx,ly,corner,(type==1),rot)
}
}
nvMWq(el,c,type,lx,ly,corner,bg2,KJFxC,rot)
WUnVh(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-rTPYC,-rTPYC)
}
function EZodJ(c,x0,y0,lx0,ly0,corner,is_circle,rot)
{
var decShadow=2;
var offset=DkRlb(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) KfXXX(c,x,y,lx,ly);else xcloJ(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 RlTTo(id,x,y,lx,ly,arc,CcSHh,bord_col,bg,shadow,rot,kPHff,NUlGi)
{
if(NUlGi==undefined)NUlGi=true;
var el=document.getElementById(id)
var c=el.getContext('2d');
if(kPHff==undefined)kPHff=1.0;
var rTPYC=0;
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
if(shadow)
{
rTPYC=6;
}
if(NUlGi) c.clearRect(0,0,el.width,el.height)
c.globalAlpha=kPHff 
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 lsewa=bg1.split(";");
var x1=parseFloat(lsewa[0]);
var y1=parseFloat(lsewa[1]);
var x2=parseFloat(lsewa[2]);
var y2=parseFloat(lsewa[3]);
var col1=lsewa[4];
var col2=lsewa[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-CcSHh;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
{
if(shadow) EZodJ(c,rTPYC,rTPYC,lx,ly,arc,false,rot)
}
if(CcSHh>0)
{
c2.fillStyle=bord_col;
xcloJ(c2,x,y,lx,ly,arc)
BIGOq(c2,x+CcSHh,y+CcSHh,lx-2*CcSHh,ly-2*CcSHh,arc2,true)
c2.fill()
}


c2.fillStyle=fill_obj 
xcloJ(c2,x+CcSHh,y+CcSHh,lx-2*CcSHh,ly-2*CcSHh,arc2)
c2.fill();
}
function NMUpG(ETwwx,NQnWL,UQMRa)
{
return new Point(Math.round(ETwwx*Math.cos(UQMRa)-NQnWL*Math.sin(UQMRa)),Math.round(ETwwx*Math.sin(UQMRa)+NQnWL*Math.cos(UQMRa)))
}
function aYqaP(c,x,y,lx,ly,arc,clowckwise,HpCXo)
{
c.beginPath()
LYBjr(c,x,y,lx,ly,arc,clowckwise,HpCXo)
}
function LYBjr(c,x,y,lx,ly,arc,clowckwise,HpCXo)
{
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 orARp=[[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=HpCXo*2*Math.PI/360
for(var n=0;n<orARp.length;n++)
{
var mIEbW=orARp[n][0]
var gorBd=orARp[n][1]
orARp[n][0]=mIEbW*Math.cos(theta)-gorBd*Math.sin(theta);
orARp[n][1]=mIEbW*Math.sin(theta)+gorBd*Math.cos(theta);
}
var n=0;
c.moveTo(orARp[n][0],orARp[n++][1]);
c.lineTo(orARp[n][0],orARp[n++][1]);
c.quadraticCurveTo(orARp[n][0],orARp[n++][1],orARp[n][0],orARp[n++][1]);
c.lineTo(orARp[n][0],orARp[n++][1]);
c.quadraticCurveTo(orARp[n][0],orARp[n++][1],orARp[n][0],orARp[n++][1]);
c.lineTo(orARp[n][0],orARp[n++][1]);
c.quadraticCurveTo(orARp[n][0],orARp[n++][1],orARp[n][0],orARp[n++][1]);
c.lineTo(orARp[n][0],orARp[n++][1]);
c.quadraticCurveTo(orARp[n][0],orARp[n++][1],orARp[n][0],orARp[n++][1]);
}
function Jdlrf(a,b,x,y)
{
return(a*x-y+b)/(Math.sqrt(1+a*a))
}
function sWfWP(new_a1,new_b1,XDOGP,multi)
{
var d=0;
for(var i=0;i<XDOGP.length;i++)
{
var DRhEu=XDOGP[i]
var d1=Jdlrf(new_a1,new_b1,DRhEu.x,DRhEu.y)
if(multi<0)
{
if(d1<0) d=Math.max(d,-d1);
}
else
{
if(d1>0) d=Math.max(d,d1);
}
}
return d;
}
function GWhSX(o1,o2)
{
if(o1<o2) return-1
if(o1>o2) return 1
return 0
}
function lLtfM(c,lx,ly,bg1)
{
var fill_obj=false;
var rPTGY=false;
var oujIX=false;
var XDOGP=false
if(bg1.substring(0,1)=="(")
{
bg1=bg1.substring(1);
bg1=bg1.substring(0,bg1.length-1)
var lsewa=bg1.split(";");
var PUUhF=new Point(parseFloat(lsewa[0]),parseFloat(lsewa[1]));
var Yjsgh=new Point(parseFloat(lsewa[2]),parseFloat(lsewa[3]));
rPTGY=PUUhF.clone()
oujIX=Yjsgh.clone()
var col1=lsewa[4];
var col2=lsewa[5];
var grad=c.createLinearGradient(rPTGY.x,rPTGY.y,oujIX.x,oujIX.y);
if(isMSIE())
{
rPTGY=PUUhF.clone()
oujIX=Yjsgh.clone() 
var aAaNh=0;
var WZlQf=1;
{
XDOGP=[{x:0,y:0},{x:lx,y:0},{x:lx,y:ly},{x:0,y:ly}]
var d1=0;
var d2=0;
var a=(oujIX.y-rPTGY.y)/(oujIX.x-rPTGY.x);
var b=rPTGY.y-a*rPTGY.x;
var diff=1;
if(a==Infinity)
{
d1=(rPTGY.y)
d2=(ly-oujIX.y)
}
else
if(a==0)
{
d1=(rPTGY.x)
d2=(lx-oujIX.x)
}
else
{
var new_a1=-1/a;
var new_b1=rPTGY.y-new_a1*rPTGY.x;
d1=sWfWP(new_a1,new_b1,XDOGP,-1)
var new_b2=oujIX.y-new_a1*oujIX.x;
d2=sWfWP(new_a1,new_b2,XDOGP,1)
if(new_a1<0)diff=-1;
}
var d=Math.sqrt(Math.pow(oujIX.x-rPTGY.x,2)+Math.pow(oujIX.y-rPTGY.y,2))
var total=(d1+d+d2)
aAaNh=d1/total;
WZlQf=(d1+d)/total;
var pt_prod0=new Point(oujIX.x-rPTGY.x,oujIX.y-rPTGY.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)
{
aAaNh=d2/total;
WZlQf=(d2+d)/total;
}
}
grad.addColorStop(aAaNh,col1);
grad.addColorStop(WZlQf,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,CcSHh,bord_col,bg,shadow,rot,cpWkx,EshId,kPHff,NUlGi)
{


var theta=rot*2*Math.PI/360 
if(NUlGi==undefined)NUlGi=true;
if(kPHff==undefined)kPHff=1.0;
var el=document.getElementById(id)
if(!el)return
var c=el.getContext('2d');
var rTPYC=(el.width-lx)/2;
if(NUlGi) c.clearRect(0,0,el.width,el.height)
var x_rect0=rTPYC;
var y_rect0=rTPYC;
var bg1=bg[0]
var fill_obj=false;
var rPTGY=false;
var oujIX=false;
var XDOGP=false
fill_obj=lLtfM(c,lx,ly,bg1) 
if(kPHff==undefined)kPHff=1.0;
var arc2=arc-CcSHh;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
if(shadow)
{
c2.translate(cpWkx+6,EshId+6)
}
else
{
c2.translate(cpWkx,EshId)
}
c2.fillStyle=fill_obj;
aYqaP(c2,CcSHh,CcSHh,lx-2*CcSHh,ly-2*CcSHh,arc2,false,rot)
c2.fill();
}
function WA_bg(id,lx,ly,arc,CcSHh,bord_col,bg,shadow,rot,kPHff,NUlGi)
{

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

var fill_obj=lLtfM(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()
HmRAW(c,el,lx,ly,arc,CcSHh,bord_col,ptrn,shadow,rot,kPHff)
}
img.src=bg2;
}
else
{
HmRAW(c,el,lx,ly,arc,CcSHh,bord_col,fill_obj,shadow,rot,kPHff)
}
}
function HmRAW(c,el,lx,ly,arc,CcSHh,bord_col,fill_obj,shadow,rot,kPHff)
{
if(kPHff==undefined)kPHff=1.0;
var arc2=arc-CcSHh;
if(arc2<0)arc2=0
var rTPYC=(el.width-lx)/2;
var x_rect0=rTPYC;
var y_rect0=rTPYC;
var canv2=false;
var c2=c;
c.globalAlpha=kPHff
if(hKCpH()==true)
{
canv2=FXoGv(lx,ly);
c2=canv2.getContext('2d');
c2.globalAlpha=kPHff
}
else
{
c2.translate(rTPYC,rTPYC)
if(shadow) EZodJ(c,0,0,lx,ly,arc,false,rot)
}
if(CcSHh>0)
{
c2.fillStyle=bord_col;
xcloJ(c2,0,0,lx,ly,arc)
BIGOq(c2,CcSHh,CcSHh,lx-2*CcSHh,ly-2*CcSHh,arc2,true)
c2.fill()
}
c2.fillStyle=fill_obj;
xcloJ(c2,CcSHh,CcSHh,lx-2*CcSHh,ly-2*CcSHh,arc2)
c2.fill();
if(hKCpH()==true)
{
if(shadow) NmRiC(c,rot)
c.drawImage(canv2,rTPYC,rTPYC);
}
else
{
c2.translate(-rTPYC,-rTPYC)
}
}
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(JUIwq){return(this.width>JUIwq.width)&&(this.height>JUIwq.height)}
this.scale=function(GKIjJ,CItDe)
{
if(!CItDe)CItDe=false
var OqvbC=this;
var OntYw=OqvbC.width
var JrnwV=OqvbC.height
var p1=OntYw*GKIjJ.height;
var p2=GKIjJ.width*JrnwV;
var r1=OntYw/JrnwV;
var r2=JrnwV/OntYw;
var newSize1=new Size(GKIjJ.height*r1,GKIjJ.height);
var newSize2=new Size(GKIjJ.width,GKIjJ.width*r2);
if(p2>p1)
{
if((CItDe==true)||((newSize1.width<=OqvbC.width)&&(newSize1.height<=OqvbC.height)))
{
OqvbC.width=Math.round(newSize1.width);
OqvbC.height=Math.round(newSize1.height);
}
}
else
{
if((CItDe==true)||((newSize2.width<=OqvbC.width)&&(newSize2.height<=OqvbC.height)))
{
OqvbC.width=Math.round(newSize2.width);
OqvbC.height=Math.round(newSize2.height);
}
}
this.width=OqvbC.width;
this.height=OqvbC.height;
return true;
}
}
function Point(p_x,p_y){this.x=p_x;this.y=p_y;
this.translate=function(ETwwx,NQnWL){this.x+=ETwwx;this.y+=NQnWL;}
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(VnAjV){return(this.x==VnAjV.x)&&(this.y==VnAjV.y)&&(this.width==VnAjV.width)&&(this.height==VnAjV.height);}
this.copy=function(VnAjV){this.x=VnAjV.x;this.y=VnAjV.y;this.width=VnAjV.width;this.height=VnAjV.height;}
this.translate=function(ETwwx,NQnWL){this.x+=ETwwx;this.y+=NQnWL;}
this.isValid=function(){return(this.width>0)&&(this.height>0);}
}
function html_getLayer(VnAjV)
{
if(typeof(VnAjV)=="string")return document.getElementById(VnAjV);
return VnAjV;
}
function html_SetPosition(VnAjV,ETwwx,NQnWL){
VnAjV=html_getLayer(VnAjV);
VnAjV.style.left=ETwwx+"px";VnAjV.style.top=NQnWL+"px";
}
function html_SetSize(jLOee,bRvRF,udFsc){
VnAjV=html_getLayer(jLOee);
VnAjV.style.width=bRvRF+"px";VnAjV.style.height=udFsc+"px";
}
function html_SetRect(VnAjV,mXjWl){html_SetGeometry(VnAjV,mXjWl.x,mXjWl.y,mXjWl.width,mXjWl.height);}
function html_SetGeometry(VnAjV,ETwwx,NQnWL,bRvRF,udFsc){html_SetPosition(VnAjV,ETwwx,NQnWL);html_SetSize(VnAjV,bRvRF,udFsc);}
function html_SetVisibility(VnAjV,nsZGu){VnAjV=html_getLayer(VnAjV);VnAjV.style.visibility=(nsZGu)?"visible":"hidden";}
function html_SetDisplay(VnAjV,nsZGu){VnAjV=html_getLayer(VnAjV);VnAjV.style.display=(nsZGu)?"block":"none";}
function html_SetCanvasSize(VnAjV,bRvRF,udFsc){VnAjV=html_getLayer(VnAjV);VnAjV.width=bRvRF;VnAjV.height=udFsc;}
function html_writeContent(VnAjV,JUIwq){VnAjV=html_getLayer(VnAjV);VnAjV.innerHTML=JUIwq;}
function html_SetOpacity(VnAjV,hrZFY)
{
VnAjV=html_getLayer(VnAjV);
VnAjV.style['opacity']=hrZFY;
VnAjV.style['-moz-opacity']=hrZFY;
VnAjV.style.filter=(hrZFY==1)?'':'alpha(opacity='+(hrZFY*100)+')';
}
var DuJHM=[
{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<DuJHM.length;i++)
{
var array2=DuJHM[i].l;
for(var i2=0;i2<array2.length;i2++)
{
var reg=new RegExp(array2[i2],"g");
res=res.replace(reg,DuJHM[i].acc)
}
}
return res;
}
function trimString(str)
{
return str.replace(/^\s*|\s*$/g,"");
}
function IsNumeric(QDjbV)
{
var vObTA="0123456789.";var MvsJT=true;var FPCQF;
for(pKugQ=0;pKugQ<QDjbV.length&&MvsJT==true;pKugQ++){FPCQF=QDjbV.charAt(pKugQ);if(vObTA.indexOf(FPCQF)==-1) MvsJT=false;}
return MvsJT;
}
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(wSbCv)
{
var qMqGp=wSbCv*60;
var IOHAs=new Date();
var CZxNQ=0;
CZxNQ+=IOHAs.getYear()*12*31*24*60*60;
CZxNQ+=IOHAs.getMonth()*31*24*60*60;
CZxNQ+=IOHAs.getDate()*24*60*60;
CZxNQ+=IOHAs.getHours()*60*60;
CZxNQ+=IOHAs.getMinutes()*60;
CZxNQ+=IOHAs.getSeconds();
if(qMqGp!=0)
{
CZxNQ=Math.floor(CZxNQ/qMqGp)*qMqGp
}
return "-"+CZxNQ;
}
function urlAntiCacheForPreview()
{
if(document.webaca_is_preview) return urlSuffixe(0);
return "";
}
function html_findPos(obj)
{
var hrZFY=fkruM(obj)
return new Point(hrZFY[0],hrZFY[1])
}
function fkruM(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(CHfCa,bRvRF,udFsc)
{
document.write("<input id='"+CHfCa+"' type=search results=0 placeholder='' style='width:"+bRvRF+"px;height:"+udFsc+"px;'>")
}
function fgRNO()
{
var cgLio=document.getElementsByTagName("A");
for(var pKugQ=0;pKugQ<cgLio.length;pKugQ++)
{
var VnAjV=cgLio[pKugQ];
if(VnAjV.onmouseover)VnAjV.onmouseover=null;
if(VnAjV.onmouseout)VnAjV.onmouseout=null;
}
}
function PGhHB()
{
for(var RIgRO in document.wa_global_list_element)
{
var ilRZo=document.wa_global_list_element[RIgRO]
var KadHL=document.getElementById(ilRZo)
KadHL.onclick=function()
{
WA_focus(this)
}
}
}
function WA_declare(ilRZo)
{
if(!document.wa_global_list_element)
{
document.wa_global_list_element=new Array();;
}
document.wa_global_list_element.push(ilRZo)
}
function BOIKB()
{
var ALHqR=window.location.search;
if(ALHqR.substr(0,1)=="?")ALHqR=ALHqR.substr(1);
if(ALHqR.length==0)return;
var UwQtX=new Array();
var EaTOV=ALHqR.split("&");
for(var i=0;i<EaTOV.length;i++)
{
var JQkbw=EaTOV[i].split("=");UwQtX[JQkbw[0]]=JQkbw[1];
}
var JUIwq_info=UwQtX["crbst_info"];
if(!JUIwq_info)return;
var mWATG=new Array();
mWATG.m_unid=JUIwq_info;
mWATG.m_index_item=-1;
var NjoYq_info=JUIwq_info.indexOf("-");
if(NjoYq_info!=-1)
{
mWATG.m_unid="wa-id-"+JUIwq_info.substring(0,NjoYq_info);
mWATG.m_index_item=parseInt(JUIwq_info.substring(NjoYq_info+1));
}
document.wa_global_query_info=mWATG;
}
function IS_onload_WA()
{

if(isMSIE8())
{
wa_timeout("IS_onload_ui()",0)
}
else
{
IS_onload_ui()
}
if(isIPhone())
{
fgRNO()
}
else
{
PGhHB()
}
BOIKB();

lCoGT()
}
function lCoGT()
{
var juacn=0;
var AjUsK=document.webaca_banner_height;
if(document.webaca_page_is_centered)
{
var xXTiA=getWindowSize().width
var tqgvD=document.webaca_width_page
if(xXTiA>tqgvD)juacn=(xXTiA-tqgvD)/2;
}
document.body.style.backgroundPosition=juacn+"px "+AjUsK+"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 ipOHJ=CONST_WA_COUNTRIES.codes[n]
var kGVHH=CONST_WA_COUNTRIES.labels[n]
Translator.m_countries[ipOHJ]=kGVHH
}
}
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(ilRZo,OtdGN,KJFxC)
{
this.ilRZo=ilRZo;
this.OtdGN=OtdGN
this.KJFxC=KJFxC;
this.ilRZo_div=this.ilRZo+"-div"
this.ilRZo_canvas=this.ilRZo+"-canvas"
this.lQodv=new Rect(0,0,0,0)
this.MnloL=false;
this.OaNKd=false;
this.rTPYC=6;
this.cHpHC_src=false;
this.cHpHC_clip=false;
this.cHpHC_rot=false;
this.YBLYu="";
this.shadow=function()
{
return this.KJFxC;
}
this.marginShadow=function()
{
return this.rTPYC;
}
this.rect=function()
{
return this.lQodv;
}
this.canvasId=function()
{
return this.ilRZo_canvas;
}
this.divId=function()
{
return this.ilRZo_div;
}
this.opacity=function()
{
return this.jSjjk;
}
this.img_clip=function()
{
return this.cHpHC_clip;
}
this.img_src=function()
{
return this.cHpHC_src;
}
this.toHtml=function()
{
var JUIwq=""
JUIwq+="<div id='"+this.ilRZo_div+"' style=\"";
JUIwq+="position:absolute;";
if(this.YBLYu.length>0)
{
JUIwq+="cursor:pointer;";
}
if(this.rect.x>0)JUIwq+="left:"+this.rect.x+"px;";
if(this.rect.y>0)JUIwq+="top:"+this.rect.y+"px;";
if(this.rect.width>0)JUIwq+="width:"+this.rect.width+"px;";
if(this.rect.height>0)JUIwq+="height:"+this.rect.height+"px;";
if(OtdGN)
JUIwq+="z-index:"+OtdGN+";";
JUIwq+="\" ";
if(this.YBLYu.length>0)
{
JUIwq+="onclick=\""+this.YBLYu+"\" "
}
JUIwq+=">";
if((this.rect.width>0)&&this.shadow())
{
JUIwq+=html_canvas(this.ilRZo_canvas,this.rect.width+2*this.rTPYC,this.rect.height+2*this.rTPYC)+"</div>";
}
else
{
JUIwq+=html_canvas(this.ilRZo_canvas,0,0)+"</div>";
}
return JUIwq
}
this.setImage=function(rcbVt,irEhh,HpCXo)
{
if(HpCXo==undefined)HpCXo=0;
if((rcbVt==this.cHpHC_src)&&(this.cHpHC_clip&&this.cHpHC_clip.equals(irEhh))&&(this.cHpHC_rot==HpCXo))
{
return;
}
this.cHpHC_rot=HpCXo;
this.cHpHC_src=rcbVt;
this.cHpHC_clip=irEhh;
this.vNRqE()
}
this.registerDynamicCanvas=function()
{
registerDynamicCanvas(this.ilRZo_canvas);
this.OaNKd=true;
this.setRect(this.lQodv.x,this.lQodv.y,this.lQodv.width,this.lQodv.height)
}
this.vNRqE=function()
{
if((this.lQodv.width>0)&&(this.lQodv.height>0))
{
this.draw()
}
this.MnloL=true
};
this.draw=function(){};
this.setPosition=function(ETwwx,NQnWL)
{
this.lQodv.x=ETwwx;this.lQodv.y=NQnWL;
if(this.OaNKd==false)return
html_SetPosition(this.ilRZo_div,this.lQodv.x,this.lQodv.y)
if(this.MnloL==false)
{
this.vNRqE()
}
}
this.setOnClick=function(JUIwq)
{
this.YBLYu=JUIwq
}
this.width=function(){return this.lQodv.width;}
this.height=function(){return this.lQodv.height;}
this.setSize=function(bRvRF,udFsc)
{
this.lQodv.width=bRvRF;this.lQodv.height=udFsc;
var RVrrB=bRvRF
var wTDdS=udFsc
if(this.KJFxC)
{
RVrrB+=2*this.rTPYC
wTDdS+=2*this.rTPYC
}
if(this.OaNKd==false)return
html_SetSize(this.ilRZo_div,RVrrB,wTDdS)
html_SetCanvasSize(this.ilRZo_canvas,bRvRF,udFsc)
this.vNRqE()
}
this.setRect=function(ETwwx,NQnWL,bRvRF,udFsc)
{
this.lQodv.x=ETwwx;this.lQodv.y=NQnWL;this.lQodv.width=bRvRF;this.lQodv.height=udFsc;
var RVrrB=bRvRF
var wTDdS=udFsc
var LoNeK=ETwwx
var AjpeE=NQnWL
if(this.KJFxC)
{
RVrrB+=2*this.rTPYC
wTDdS+=2*this.rTPYC
LoNeK-=this.rTPYC
AjpeE-=this.rTPYC
}
if(this.OaNKd==false)return 
html_SetGeometry(this.ilRZo_div,LoNeK,AjpeE,RVrrB,wTDdS);
html_SetCanvasSize(this.ilRZo_canvas,RVrrB,wTDdS)
try{this.vNRqE()}catch(e){
alert(e.message)
}
}
this.setVisible=function(nsZGu)
{
if(this.OaNKd==false)return
html_SetVisibility(this.ilRZo_div,nsZGu)
}
this.setOpacity=function(hrZFY)
{
this.jSjjk=hrZFY 
if(this.OaNKd==false)return
this.vNRqE()
}
}

function is_onresize()
{
WA_Dialog.resizeUI()
try
{
if(WA_PhotoAlbum_resizeUI)WA_PhotoAlbum_resizeUI()
}
catch(e){}
lCoGT()
}
function is_onscroll()
{
centerFullPageContainer();
}
function registerDynamicCanvas(id)
{
if(isMSIE())
G_vmlCanvasManager.initElement(document.getElementById(id));
}
function WA_openDialogAction(RIgRO)
{
var RbGJB=WA_Dialog.IsEDA;
if(RIgRO==-1){RbGJB.closeWin();return;}
var omSxa=RbGJB.GWKPV(RIgRO);
if(omSxa[5])
{
omSxa[4].call(omSxa[6],omSxa[5])
}
else
{
omSxa[4](omSxa[5]);
}
}
function WA_Dialog(nsZGu_close_button)
{
this.eJHnT=0;
this.fNfdm=0;
this.GKIjJ_win_width=600;
this.skZEp=400;
this.MdxAt=new Array();
this.OFHux="wa-dialog-but-";
this.Tfgfe=this.OFHux+"div-";
this.wtevb=this.OFHux+"canvas-";
this.BUTTON_HEIGHT=22;
this.iMqoH=CONST_WA_GLOBAL_COLOR_THEME;
this.nsZGu_close_button=nsZGu_close_button;
this.SlPJv=6;
this.nVWdO=function()
{
if(this.nsZGu_close_button==undefined)this.nsZGu_close_button=true;
this.GHgwW();
}
this.resetButtons=function()
{
this.GHgwW();
}
this.idealHeight=function()
{
return this.phTME
}
this.displayWindowWithAutoResize=function(kZVVn,sSKeF)
{
this.UZBDa=false
this.phTME=kZVVn
this.HNXQQ=sSKeF 
this.resetButtons();
sSKeF.call(this)
var l=document.getElementById('wa-dialog-content');
if(this.UZBDa==false)
if(l.scrollHeight>200)
{
this.UZBDa=true
this.phTME=l.scrollHeight+150
this.resetButtons();
sSKeF.call(this)
}
}
this.initializeWindow=function(GKIjJ_lx,GKIjJ_ly)
{
if(WA_Dialog.IsEDA)WA_Dialog.IsEDA.closeWin()
WA_Dialog.IsEDA=this;
this.GKIjJ_win_width=GKIjJ_lx;
this.skZEp=GKIjJ_ly;
this.eJgql()
}
this.progress=function()
{
this.initializeWindow(300,100)
this.writeContent("<div width=100% align=center><img src='wa_loading.gif'></div>")
}
this.HNqkm=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(kGVHH,FbGME,OUbFO,kXgNq)
{
var DSXhB=this.MdxAt.length
if(this.nsZGu_close_button==true)
{
DSXhB--;
}
var bRvRF=Math.max((kGVHH.length*8)*1.2+30,80)
var OqvbC=new Size(bRvRF,this.BUTTON_HEIGHT);
this.Mvrbg("action_"+DSXhB,DSXhB,kGVHH,FbGME,OqvbC,OUbFO,kXgNq)
}
this.GHgwW=function()
{
this.MdxAt=new Array();
if(this.nsZGu_close_button)
{

var OqvbC=new Size(50,20);
this.Mvrbg("close",-1,"X",null,OqvbC)
}
}
this.Mvrbg=function(NQXXq,DSXhB,kGVHH,FbGME,OqvbC,OUbFO,kXgNq)
{
var omSxa=[NQXXq,OqvbC,DSXhB,kGVHH,FbGME,OUbFO,kXgNq];
this.MdxAt.push(omSxa);
}
this.writeContent=function(s)
{
var l=document.getElementById('wa-dialog-content');
l.innerHTML=s
}
this.GWKPV=function(NQXXq)
{
for(var RIgRO=0;RIgRO<this.MdxAt.length;RIgRO++)
{
var omSxa=this.MdxAt[RIgRO];
if((omSxa[0]==NQXXq)||(omSxa[2]+""==NQXXq+""))
return omSxa;
}
return undefined;
}
this.ipsqJ=function(NQXXq)
{
var omSxa=this.GWKPV(NQXXq);
return omSxa[1]
}
this.getColorTheme=function(RIgRO)
{
return this.iMqoH[RIgRO];
}
this.cDeTm=function(kBqkR)
{
var omSxa=this.GWKPV(kBqkR);
var NQXXq=omSxa[0];
var DSXhB=omSxa[2];
var ubxNI_text=this.iMqoH[4]
var ubxNI_bg=this.iMqoH[5]
var ubxNI_glow=this.iMqoH[7]
if(DSXhB==-1)
{
ubxNI_text=this.iMqoH[10]
ubxNI_bg=this.iMqoH[8]
ubxNI_glow=this.iMqoH[11]
}
var dWera=this.Tfgfe+NQXXq;
var pjmZc=this.wtevb+NQXXq;
var OqvbC=this.ipsqJ(kBqkR)
var vShZa=0;
var s=""
s+="<a href='javascript:WA_openDialogAction("+kBqkR+")' ";
var ubxNI=new RGBColor(ubxNI_bg);
var ubxNI_hsl=ubxNI.toHsl();
ubxNI.fromHsl(ubxNI_hsl[0],ubxNI_hsl[1],ubxNI_hsl[2]+0.2)
ubxNI_bg=ubxNI.toRGB();
var mcZpN_glow=new RGBColor(ubxNI_glow);
var mcZpN_glow_hsl=mcZpN_glow.toHsl();
mcZpN_glow.fromHsl(mcZpN_glow_hsl[0],mcZpN_glow_hsl[1],mcZpN_glow_hsl[2]+0.2)
ubxNI_glow=mcZpN_glow.toRGB();
s+="onmouseover=\"WA_but_over('"+pjmZc+"','"+ubxNI_bg+"','"+ubxNI_glow+"')"+"\" ";
s+="onmouseout=\""+"WA_but_out('"+pjmZc+"')"+"\" ";
s+="style='text-decoration:none;'>";
s+="<div id='"+this.Tfgfe+NQXXq+"' style='position:absolute;cursor:pointer;left:0px;top:0px;height:"+OqvbC.height+"px;width:"+OqvbC.width+"px;' >";
s+="<div style='position:absolute;left:"+(-vShZa)+"px;top:"+(-vShZa)+"px;height:"+OqvbC.height+"px;'>"
s+="<canvas id='"+this.wtevb+NQXXq+"' width="+(OqvbC.width+vShZa*2)+" height="+(OqvbC.height+vShZa*2)+" ></canvas>";
s+="</div>"
s+="<div align=center style='position:absolute;left:0px;top:"+(0)+"px;vertical-align:middle;width:100%;height:"+(OqvbC.height)+"px;line-height:"+(OqvbC.height)+"px;font-family:arial;font-size:13px;font-weight:bold;color:"+ubxNI_text+"'>"
s+=omSxa[3];
s+="</div>"
s+="</div>"
s+="</a>"
return s;
}
this.nalnE=function(NQXXq)
{
var omSxa=this.GWKPV(NQXXq);
var DSXhB=omSxa[2];
var ubxNI_bg=this.iMqoH[5]
var ubxNI_glow=this.iMqoH[7]
var ubxNI_text=this.iMqoH[3]
if(DSXhB==-1)
{
ubxNI_bg=this.iMqoH[8]
ubxNI_glow=this.iMqoH[11]
ubxNI_text=this.iMqoH[10]
}
var ipOHJ=this.wtevb+NQXXq;
registerDynamicCanvas(ipOHJ);
var OqvbC=this.ipsqJ(NQXXq);
var GArks=OqvbC.height*0.25;
var vJABr=true;
GArks=0;
vJABr=false;
var nlBKQ=0;
var KsaRD=(OqvbC.width-2);
var prmJe=OqvbC.height*0.45;

var lsewa_top=[1,1,KsaRD,prmJe,nlBKQ];
var IfdAj=OqvbC.width-2;
var gcsjT=OqvbC.height*0.45;
var HaKdZ=ubxNI_glow;
var QWMKh=ubxNI_glow;
var XXEVc=0;

var lsewa_bottom=[(OqvbC.width-IfdAj)/2,OqvbC.height-gcsjT-1,IfdAj,gcsjT,XXEVc,HaKdZ,QWMKh];
WA_but(ipOHJ,0,OqvbC.width,OqvbC.height,GArks,ubxNI_bg,lsewa_top,lsewa_bottom,vJABr,0)
}
this.xeulw=function(NQXXq)
{
var omSxa=this.GWKPV(NQXXq)
if(omSxa)
{
var ipOHJ=this.Tfgfe+omSxa[0];
return document.getElementById(ipOHJ);
}
return undefined
}
this.eJgql=function()
{
var l=document.getElementById('wa-dialog-container');
l.style.display="block" 

var s="";
var lFjOJ=document.webaca_banner_height
s+="<div  style='position:absolute;left:0px;top:"+lFjOJ+"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:"+lFjOJ+"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 pKugQ in this.MdxAt)
{
s+=this.cDeTm(this.MdxAt[pKugQ][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.JoXRB)
}
this.JoXRB=function()
{
registerDynamicCanvas('wa-dialog1');
for(var pKugQ in this.MdxAt)
{
this.nalnE(this.MdxAt[pKugQ][0])
}
this.bsMPw()
if(this.gKLCs())
{
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.IsEDA=false
}
this.closeWin=function()
{
this.intern_closeWin()
}
this.cssText1=function()
{
return "font-family:Arial;font-size:15px;color:"+this.iMqoH[3]+";";
}
this.onCustomKeypress=function(lbpmn)
{
if((this.MdxAt.length==1)&&(lbpmn==13))
{
this.closeWin()
return true;
}
return false;
}
this.onkeypress=function(lbpmn)
{
return this.onCustomKeypress(lbpmn)
}
this.onkeydown=function(lbpmn)
{
if(lbpmn==27)
{
this.closeWin()
return true;
}
return this.onCustomKeypress(lbpmn) 
}
this.customUpdate=function(){}
this.gKLCs=function()
{
return isIPhone();
}
this.bsMPw=function()
{
var VHaad=document.webaca_width_page;
var qYNOv=document.webaca_height_page;
var EgjNX=getWindowSize().width
var qNZdc=getWindowSize().height
var mYUuL=getWindowFullSize().width
var hAwHe=getWindowFullSize().height
var fvKBo=550;
var ETcmf=400;
EgjNX=Math.max(EgjNX,fvKBo);
qNZdc=Math.max(qNZdc,ETcmf);
if(this.gKLCs())
{
EgjNX=600;
qNZdc=700;
}
this.eJHnT=Math.min(EgjNX*0.9,this.GKIjJ_win_width)
this.fNfdm=Math.min(qNZdc*0.9,this.skZEp)
var ocKIb=document.getElementById('wa-dialog1');
ocKIb.width=this.eJHnT+10
ocKIb.height=this.fNfdm+10
var ETwwx=getWindowScroll().x+(EgjNX-ocKIb.width)/2
var NQnWL=getWindowScroll().y+(qNZdc-ocKIb.height)/2
ETwwx=(EgjNX-ocKIb.width)/2
NQnWL=(qNZdc-ocKIb.height)/2
ETwwx=Math.max(0,ETwwx)
NQnWL=Math.max(0,NQnWL)
if(this.gKLCs())
{
ETwwx=0
NQnWL=0;
}
var dORXI=document.getElementById('wa-dialog-main');
html_SetGeometry('wa-dialog-main',ETwwx,NQnWL,ocKIb.width,ocKIb.height);
var sDWdK_bg="(0;0;0;"+this.fNfdm*0.25+";"+this.iMqoH[1]+";"+this.iMqoH[2]+")";
var kSGDW=4;
WA_bg('wa-dialog1',this.eJHnT,this.fNfdm,kSGDW,3,this.iMqoH[0],[sDWdK_bg],true,0)
var crmaS=10;
var bopJp_close=this.xeulw(-1)
if(bopJp_close)
{
var LbBEp=this.ipsqJ(-1) 
var marginClose=3
html_SetPosition(bopJp_close,this.eJHnT-LbBEp.width-marginClose+this.SlPJv-1,marginClose+this.SlPJv-1)
}
var AuMGj=this.MdxAt.length;
if(this.nsZGu_close_button==true)
{
AuMGj--;
}
var cViDM=10;
var MbCqL=0;
for(var pKugQ=0;pKugQ<AuMGj;pKugQ++)
{
if(pKugQ>0) MbCqL+=cViDM;
var OqvbC_but=this.ipsqJ(pKugQ);
MbCqL+=OqvbC_but.width;
}
var pxIKp=(this.eJHnT-MbCqL)/2
for(var pKugQ=0;pKugQ<AuMGj;pKugQ++)
{
if(pKugQ>0) pxIKp+=cViDM;
var bopJp_div=this.xeulw(pKugQ);
var OqvbC_but=this.ipsqJ(pKugQ);
html_SetPosition(bopJp_div,pxIKp+this.SlPJv,+this.SlPJv+this.fNfdm-OqvbC_but.height-2*crmaS)
pxIKp+=OqvbC_but.width;
}
var RdtkS=45;
var kYGbr=this.BUTTON_HEIGHT+2*crmaS;
if(AuMGj==0)
{
kYGbr=0;
}
var iLmIm=(this.fNfdm-RdtkS-kYGbr)-crmaS
var DaSVe=document.getElementById('wa-dialog-content');
var RbGJB_content=Math.round(this.eJHnT-2*crmaS)
var UFpQB=Math.round(iLmIm)
this.m_content_lx=RbGJB_content
this.m_content_ly=UFpQB
html_SetGeometry('wa-dialog-content',Math.round(5+(this.eJHnT-RbGJB_content)/2),Math.round(5+RdtkS+(iLmIm-UFpQB)/2),RbGJB_content,UFpQB);
this.customUpdate() 
var EAFCE=document.getElementById('wa-dialog-container');
var ksQnW=hAwHe
ksQnW=Math.max(ksQnW,qNZdc) 
var YsUXM=mYUuL
YsUXM=Math.max(YsUXM,EgjNX)
if(this.gKLCs())
{
YsUXM=Math.max(YsUXM,VHaad)
ksQnW=Math.max(ksQnW,qYNOv)
}
html_SetSize('wa-dialog-container',YsUXM,ksQnW);
centerFullPageContainer();
}
this.nVWdO();
}
function centerFullPageContainer()
{
var LXkhT=WA_Dialog.getCurrent() 
var VHaad=document.webaca_width_page;
var qYNOv=document.webaca_height_page;
var EAFCE=document.getElementById('wa-dialog-container');
var mYUuL=getWindowSize().width 
var hAwHe=getWindowSize().height
var NQnWL_bg=getWindowScroll().y;
var spWhd=LXkhT&&LXkhT.gKLCs();
if(spWhd)
{
NQnWL_bg=0
}
NQnWL_bg=Math.min(NQnWL_bg,qYNOv-hAwHe+1)
NQnWL_bg=Math.max(NQnWL_bg,0)
var qLpaT=getWindowScroll().x;
if(spWhd)
{
qLpaT=0
}
qLpaT=Math.min(qLpaT,VHaad-mYUuL+1)
qLpaT=Math.max(qLpaT,0)
html_SetPosition('wa-dialog-container',qLpaT,NQnWL_bg,mYUuL,hAwHe);
}
function isOperaBrowser()
{
return(/opera/i.test(navigator.userAgent))
}
function WA_exec_callback_opera_compliant(OUbFO,kMGCi)
{
if(/opera/i.test(navigator.userAgent))
WA_exec_delayedCallback(OUbFO,kMGCi)
else
kMGCi.call(OUbFO)
}
function WA_exec_delayedCallback(OUbFO,kMGCi)
{
wa_timeout(Delegate.create(OUbFO,kMGCi),0);
}
WA_Dialog.getCurrent=function()
{
return WA_Dialog.IsEDA;
}
WA_Dialog.IsEDA=false;
WA_Dialog.resizeUI=function()
{
if(WA_Dialog.IsEDA)
{
var LXkhT=WA_Dialog.IsEDA
if(LXkhT.gKLCs()==false)
{
LXkhT.bsMPw()
}
}
}
WA_Dialog.alert=function(s)
{
var w=new WA_Dialog();
w.HNqkm(s)
}
WA_Dialog.progress=function()
{
var w=new WA_Dialog(false);
w.progress()
}

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

}
};
return http_request;
}
function makePOSTRequest(url,parameters,callback,bIvcZ)
{
var http_request=getXMLHttpRequest(callback,bIvcZ);
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(pLQXu,UgSTk,kXgNq)
{
var result=UgSTk.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 QASms=kXgNq[0] 
WA_Dialog.alert(Translator.tr("Success:Mail sended"));
var form=document.getElementById(QASms);
form.reset()
}
else
{
var vEXbC="error_string="
n=result.indexOf(vEXbC)
if(n>-1)
{
result=result.substring(n+vEXbC.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 QvXEH=el.value
QvXEH=encodeURI(QvXEH)
QvXEH=QvXEH.replace(/&/g,escape("&")) 
poststr+=el.name.replace("_mandatory","")+"="+QvXEH+"&"
}
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(MTdkD)
{
var XPZGC=document.getElementById(MTdkD);
XPZGC.submit() 
}
function MlIhf(ilRZo,kXgNq)
{
var lbpmn=kXgNq[0]
if(lbpmn==13)
{
var MTdkD=ilRZo+"-form";
var XPZGC=document.getElementById(MTdkD);
for(var i=0;i<XPZGC.elements.length;i++)
{
var KadHL=XPZGC.elements[i];
if((KadHL.type=="textarea")&&(KadHL.focused))return true;
}
WA_form_submit(MTdkD);
return false;
}
return true;
}
function WA_addFormDeclaration(ilRZo,NKXHW)
{
return WA_addHandler(ilRZo,"keypress",MlIhf)
}
function WA_form_bg(id,lx,ly,arc,CcSHh,bord_col,bg,shadow,HpCXo,RSpvS)
{
WA_bg(id,lx,ly,arc,CcSHh,bord_col,bg,shadow,HpCXo,1.0,true) 
var csloq=RSpvS.x;
var UEcSw=0;
var ljmVr=RSpvS.cells
for(var n=0;n<ljmVr.length;n++)
{
var pTxwr=ljmVr[n]
var arc2=0
RlTTo(id,csloq,UEcSw+pTxwr.y,RSpvS.w,pTxwr.h,arc2,1,RSpvS.border,[''],false,0,1.0,false)
RlTTo(id,csloq,UEcSw+pTxwr.y,pTxwr.w,pTxwr.h,arc2,1,"rgba(0,0,0,0)",[RSpvS.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(FHWTO)
{
this.ok=false;this.a=1.0;
if(FHWTO.charAt(0)=='#'){FHWTO=FHWTO.substr(1);}
FHWTO=FHWTO.replace(/ /g,'');
FHWTO=FHWTO.toLowerCase();
var YgkMo=[
{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<YgkMo.length;i++){
var aEMtk=YgkMo[i].re;
var Emclv=YgkMo[i]._process;
var gAsdA=aEMtk.exec(FHWTO);
if(gAsdA){
var jsILH=Emclv(gAsdA);
this.r=jsILH[0];this.g=jsILH[1];this.b=jsILH[2];this.a=jsILH[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.FqAYa=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.FqAYa(p,q,h+1/3);g=this.FqAYa(p,q,h);b=this.FqAYa(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 QskrM(FJlei_event,kXgNq)
{
if(document.wa_global_handlers!=undefined)
{
var ilRZo=WA_focused_element()
if(ilRZo)
{
var FbGME=document.wa_global_handlers[ilRZo+"-"+FJlei_event]
if(FbGME) return FbGME([ilRZo],kXgNq)
}
}
return true;
}
function aldOr(e)
{
if(window.event){return e.keyCode;}
else 
if(e.which) return  e.which;
return-1;
}
function WA_onkeypress(e)
{
var lbpmn=aldOr(e);
if(WA_Dialog.IsEDA)
{
if(WA_Dialog.IsEDA.onkeypress(lbpmn))
{
return false;
}
}
return QskrM("keypress",[lbpmn]);
}
function WA_ondblclick(e)
{
return QskrM("dblclic",[""]);
}
function WA_onkeydown(e)
{
var lbpmn=aldOr(e)
if(WA_Dialog.IsEDA)
{
if(WA_Dialog.IsEDA.onkeydown(lbpmn))
{
return false;
}
}
if(lbpmn==13) return true;

if(wa_global_photo_album&&wa_global_photo_album.fullpage_object)
{
var OUbFO=wa_global_photo_album.fullpage_object
return OUbFO.onFullScreenKeydown(lbpmn) 
}
return QskrM("keydown",[lbpmn]);
}
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 ilRZo=this.id
var FbGME=document.wa_global_handlers[ilRZo+"-mousewheel"]
if(FbGME)
{
if(FbGME([ilRZo],[delta]))
{
b_default=true;
}
}
}
}
if(b_default)
if(e.preventDefault)
e.preventDefault();
e.returnValue=!b_default;
}
function WA_addHandler(ilRZo,FJlei_event,kMGCi)
{
if(document.wa_global_handlers==undefined) document.wa_global_handlers=new Array()
if(FJlei_event=="mousewheel")
{
var Ectfh=document.getElementById(ilRZo);
if(Ectfh.addEventListener)
Ectfh.addEventListener('DOMMouseScroll',WA_genericMouseWheelHandler,false);
Ectfh.onmousewheel=WA_genericMouseWheelHandler
}
document.wa_global_handlers[ilRZo+"-"+FJlei_event]=kMGCi
}
function WA_loadPhotoAlbum(ilRZo,xVXqR,OqvbC,ilRZo_modif)
{
if(typeof(wa_global_photo_album[ilRZo])=="undefined")
{
var o=new Array();
o.src_folder=xVXqR
o.size_container=OqvbC
o.id_modif=ilRZo_modif
wa_global_photo_album[ilRZo]=o;
}
}
function WA_focused_element()
{
return document.wa_global_focused_element
}
function WA_focus(OUbFO)
{
document.wa_global_focused_element=OUbFO.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(ilRZo_blog,ilRZo_button,gCHRH)
{
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[ilRZo_button])document.wa_global_blogs_elements[ilRZo_button]=new Array()
document.wa_global_blogs_elements[ilRZo_button].id_blog=ilRZo_blog
document.wa_global_blogs_elements[ilRZo_button].has_email=gCHRH
}
function WA_addSearchHandler(ilRZo)
{
return WA_addHandler(ilRZo,"keypress",aGqHW)
}
function aGqHW(ilRZo,kXgNq)
{
var lbpmn=kXgNq[0]
if(lbpmn==13)
{
var ilRZo_input=ilRZo+"-search-input";
WA_onSearch(ilRZo_input)
return false;
}
return true;
}
function WA_declareSearchIndex(TWwgo,UFfBi)
{
document.const_wa_search_js=TWwgo
document.const_wa_search_index_js=UFfBi
}
function WA_onSearch(ilRZo_input)
{
var aLdGa=document.getElementById(ilRZo_input);
if(document.wa_search_js_loaded==true)
{
WA_openSearchDialog(aLdGa,document.const_wa_search_index_js)
}
else
{
WA_Dialog.progress();
efhEU(aLdGa)
}
}
function NvOcZ(kXgNq)
{
document.wa_search_js_loaded=true
WA_openSearchDialog(kXgNq[0],document.const_wa_search_index_js)
}
function efhEU(aLdGa_field)
{
WA_loadScript(document.const_wa_search_js,NvOcZ,[aLdGa_field])
}
function ADGcS(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 ADGcS(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(ilRZo)
{
var Lsbdo=document.wa_global_menu_declaration[ilRZo]
WA_bg(ilRZo,Lsbdo.root_lx,Lsbdo.root_ly,Lsbdo.root_corner,Lsbdo.root_border,Lsbdo.root_col_border,[Lsbdo.root_bg],false,0)
var KadHL=document.getElementById(Lsbdo.id)
if(!KadHL)return;
var c=KadHL.getContext('2d');
c.lineWidth=1
c.strokeStyle=Lsbdo.root_col_separator
var SwQhg=0.5;

var bGUtr=Lsbdo.root_sizes.length
if(Lsbdo.root_extend==false)
{
bGUtr--;
}
var PEOQI=3;
for(var i=0;i<bGUtr;i++)
{
var OqvbC=Lsbdo.root_sizes[i] 

c.beginPath();
if(Lsbdo.root_vertical==false)
{
SwQhg+=(OqvbC-1)
c.moveTo(SwQhg,PEOQI)
c.lineTo(SwQhg,Lsbdo.root_ly-PEOQI)
}
else
{
SwQhg+=(OqvbC)
c.moveTo(PEOQI,SwQhg-1,0)
c.lineTo(Lsbdo.root_lx-PEOQI,SwQhg-1)
}
c.closePath();
c.stroke()
}
}
function WA_declare_menu(ilRZo,Lsbdo)
{
if(!document.wa_global_menu_declaration)document.wa_global_menu_declaration=new Array();
Lsbdo.id=ilRZo
document.wa_global_menu_declaration[ilRZo]=Lsbdo
WA_bg_menu(ilRZo)
}
function WA_declareMarket(ilRZo,moriw,ilRZo_modif)
{
if(typeof(wa_global_market.markets[moriw])=="undefined")
{
var o=new Array();
o.src_folder=moriw
o.id_modif=ilRZo_modif 

o.id=ilRZo
wa_global_market.markets[moriw]=o;
}
}
function WA_button_market_declare(ilRZo,kGVHH)
{
if(!document.wa_global_button_market_declaration)document.wa_global_button_market_declaration=new Array();
document.wa_global_button_market_declaration[ilRZo]=kGVHH
}
function wAqlI(c,img,ETwwx,NQnWL,bRvRF,udFsc,irEhh,kPHff,NUlGi)
{
c.globalAlpha=kPHff
if(NUlGi) c.clearRect(0,0,bRvRF,udFsc) 
if(kPHff==0)return;
if(irEhh)
{
c.drawImage(img,irEhh.x,irEhh.y,irEhh.width,irEhh.height,ETwwx,NQnWL,bRvRF,udFsc)
}
else
{
c.drawImage(img,ETwwx,NQnWL,bRvRF,udFsc)
}
}
function WA_drawImage(id,rcbVt,ETwwx,NQnWL,bRvRF,udFsc,irEhh,kPHff,NUlGi)
{
if(NUlGi==undefined)NUlGi=true;
if(kPHff==undefined)kPHff=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==rcbVt)
{
wAqlI(c,c.wlLHc,ETwwx,NQnWL,bRvRF,udFsc,irEhh,kPHff,NUlGi)
return;
}
var img=new Image();
img.uufbd=el.uufbd
img.onload=function()
{
c.old_src=rcbVt
c.wlLHc=this;
wAqlI(c,this,ETwwx,NQnWL,bRvRF,udFsc,irEhh,kPHff,NUlGi)
}
img.src=rcbVt;
}

-->
