<!--

function Delegate(){}
Delegate.create=function(o,f){
var LsHlf=new Array();
var LmnvB=arguments.length;
for(var i=2;i<LmnvB;i++) LsHlf[i-2]=arguments[i];
return function(){
var dIaxP=[].concat(arguments,LsHlf);
f.apply(o,dIaxP);
}
}
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.oQOKp=0;
t.TsEdv=0;
t.OKKim=0;
t.XGfvX=0;
t.SEYXk=0;
t.IWdtd=0;
t.sFSOu=false;
t.name='';
t.suffixe='';
t.UKVAS=new Array();
t.setTime=function(t){
this.prevTime=this.TsEdv;
if(t>this.getDuration()){
if(this.looping){
this.rewind(t-this.oQOKp);
this.update();
this.qolss('onMotionLooped',{target:this,type:'onMotionLooped'});
}else{
this.TsEdv=this.oQOKp;
this.update();
this.stop();
this.qolss('onMotionFinished',{target:this,type:'onMotionFinished'});
}
}else if(t<0){
this.rewind();
this.update();
}else{
this.TsEdv=t;
this.update();
}
}
t.isRunning=function(){
return this.sFSOu;
}
t.getTime=function(){
return this.TsEdv;
}
t.setDuration=function(d){
this.oQOKp=(d==null||d<=0)?100000:d;
}
t.getDuration=function(){
return this.oQOKp;
}
t.setPosition=function(p){
this.prevPos=this.OKKim;
var a=this.suffixe!=''?this.suffixe:'';
this.obj[this.prop]=Math.round(p)+a;
this.OKKim=p;
this.qolss('onMotionChanged',{target:this,type:'onMotionChanged'});
}
t.getPosition=function(t){
if(t==undefined) t=this.TsEdv;
return this.func(t,this.begin,this.change,this.oQOKp);
};
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.UKVAS=new Array();
this.addListener(this);
if(suffixe) this.suffixe=suffixe;
this.obj=obj;
this.prop=prop;
this.begin=begin;
this.OKKim=begin;
this.setDuration(duration);
if(func!=null&&func!=''){
this.func=func;
}
this.setFinish(finish);
}
t.start=function(){
this.rewind();
this.startEnterFrame();
this.qolss('onMotionStarted',{target:this,type:'onMotionStarted'});
}
t.rewind=function(t){
this.stop();
this.TsEdv=(t==undefined)?0:t;
this.fixTime();
this.update();
}
t.fforward=function(){
this.TsEdv=this.oQOKp;
this.fixTime();
this.update();
}
t.update=function(){
this.setPosition(this.getPosition(this.TsEdv));
}
t.startEnterFrame=function(){
this.stopEnterFrame();
this.sFSOu=true;
this.onEnterFrame();
}
t.onEnterFrame=function(){
if(this.sFSOu){
this.nextFrame();
wa_timeout(Delegate.create(this,this.onEnterFrame),0);
}
}
t.nextFrame=function(){
this.setTime((this.getTimer()-this.SEYXk)/1000);
}
t.stop=function(){
this.stopEnterFrame();
this.qolss('onMotionStopped',{target:this,type:'onMotionStopped'});
}
t.stopEnterFrame=function(){
this.sFSOu=false;
}
t.continueTo=function(finish,duration){
this.begin=this.OKKim;
this.setFinish(finish);
if(this.oQOKp!=undefined)
this.setDuration(duration);
this.start();
}
t.resume=function(){
this.fixTime();
this.startEnterFrame();
this.qolss('onMotionResumed',{target:this,type:'onMotionResumed'});
}
t.yoyo=function(){
this.continueTo(this.begin,this.TsEdv);
}
t.addListener=function(o){
this.removeListener(o);
return this.UKVAS.push(o);
}
t.removeListener=function(o){
var a=this.UKVAS;
var i=a.length;
while(i--){
if(a[i]==o){
a.splice(i,1);
return true;
}
}
return false;
}
t.qolss=function(){
var arr=new Array();
for(var i=0;i<arguments.length;i++){
arr.push(arguments[i])
}
var e=arr.shift();
var a=this.UKVAS;
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.SEYXk=this.getTimer()-this.TsEdv*1000;
}
t.getTimer=function(){
return new Date().getTime()-this.TsEdv;
}
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,IRPOG,qtCxr,oQOKp){
this.targetObject=obj;
this.init(new Object(),'a',func,IRPOG,qtCxr,oQOKp);
this.onMotionChanged=function(evt){
var v=evt.target.OKKim;
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(IAWpP,weLGf,tvhWD)
{
return "<canvas id='"+IAWpP+"' width='"+weLGf+"' height='"+tvhWD+"'></canvas>"
}
function WA_canvas(IAWpP,weLGf,tvhWD)
{
document.write(html_canvas(IAWpP,weLGf,tvhWD))
}
function xrqYI(hAElN,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;
hAElN.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;
hAElN.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;
hAElN.quadraticCurveTo(cx,cy,px,py);
}
}
function bwEMH(c,x,y,lx,ly,arc,clowckwise)
{
c.beginPath()
MVXpV(c,x,y,lx,ly,arc,clowckwise)
}
function MVXpV(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 mMXAr()
{
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 AvRVw(lx,ly,parent,id_suffixe)
{
var gQeVX=document.createElement('canvas');gQeVX.width=lx;gQeVX.height=ly;
return gQeVX;
}
function ZkcqQ(SsvkG)
{
var xGnCo=(-SsvkG+45);
return new Point(Math.cos(xGnCo*(2*Math.PI)/360),Math.sin(xGnCo*(2*Math.PI)/360))
}
function HveLV(c,SsvkG)
{
var offset=ZkcqQ(SsvkG)
c.shadowOffsetX=2*offset.x;
c.shadowOffsetY=2*offset.y;
c.shadowBlur=4;
}
function WA_over_img_html(sufkt,STTXZ,ruYGw)
{
if(!sufkt.src)
{
var tvTjX=sufkt.getElementsByTagName("IMG")
if(tvTjX.length==1)sufkt=tvTjX[0]
}
if(sufkt.src1==undefined)
{
sufkt.src1=sufkt.src;
sufkt.src2=STTXZ;
}
if(ruYGw)
{
sufkt.src=sufkt.src2;
}
else
{
sufkt.src=sufkt.src1;
}
}
function WA_over_img(id,ruYGw)
{
var el=document.getElementById(id+"-canvas") 

var sufkt=(ruYGw)?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,[sufkt,sufkt],el.wa_shadow,el.wa_rot,el.wa_reflex,ruYGw)
}
function nqWaM(IAWpP,lx,ly,arc,side)
{
this.id=IAWpP;
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.slVpU=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 khvSL=document.getElementById(this.id+"-reflex")
var tNhFT=khvSL.getContext('2d');

var KHlKB=0;
var ttukY=0;
if(this.side==2)
{
KHlKB=this.lx;
ttukY=-this.ly*0.75;
}
else
if(this.side==0)
{
KHlKB=this.lx;
}
else
if(this.side==3)
{
KHlKB=0.25*this.lx;
}
else
if(this.side==1)
{
KHlKB=this.lx;
}
tNhFT.translate(KHlKB,ttukY)
tNhFT.scale(-1,1)
tNhFT.beginPath()
bwEMH(tNhFT,1,1,this.lx-2,this.ly-2,this.arc)
tNhFT.clip() 

tNhFT.drawImage(canv2,this.sX,this.sY,this.sLx,this.sLy,this.sX,this.sY,this.sLx,this.sLy);
tNhFT.globalCompositeOperation="destination-out";
var gradient=tNhFT.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)");
tNhFT.fillStyle=gradient;
tNhFT.beginPath()
tNhFT.rect(this.sX-this.decX,this.sY-this.decY,this.sLx,this.sLy);
tNhFT.fill();
tNhFT.globalCompositeOperation="source-over";
tNhFT.scale(-1,1)
tNhFT.translate(-KHlKB,-ttukY) 
}
}
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 apEpj(c2,lx,ly,LGVbg,bord_col,arc,arc2)
{
if(LGVbg>0)
{
c2.beginPath()
c2.fillStyle=bord_col;
c2.beginPath()
bwEMH(c2,0,0,lx,ly,arc)
MVXpV(c2,LGVbg,LGVbg,lx-2*LGVbg,ly-2*LGVbg,arc2,true)
c2.fill()
}
}
function uAYwA()
{
this.tx=0
this.ty=0
this.rotation=0
}
function cqhvn(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 uAYwA()
}
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 xuAZs=0;
if(shadow)xuAZs=6
var OPUZr=id+"-canvas"
var el=document.getElementById(OPUZr)
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)-xuAZs,div.wa_pos.y-xuAZs)
html_SetCanvasSize(el,div.wa_size.height+2*xuAZs,div.wa_size.width+2*xuAZs)
html_SetCanvasSize(canv2,div.wa_size.height+4*xuAZs,div.wa_size.width+4*xuAZs)
html_SetSize(div,div.wa_size.height+2*xuAZs,div.wa_size.width+2*xuAZs) 
matrix.tx=ly+2*xuAZs
matrix.ty=2*xuAZs
}
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-xuAZs,div.wa_pos.y-lx-xuAZs)
html_SetCanvasSize(el,div.wa_size.height+2*xuAZs,div.wa_size.width+2*xuAZs)
html_SetCanvasSize(canv2,div.wa_size.height+4*xuAZs,div.wa_size.width+4*xuAZs)
html_SetSize(div,div.wa_size.height+2*xuAZs,div.wa_size.width+2*xuAZs) 
matrix.tx=2*xuAZs
matrix.ty=lx+2*xuAZs
}
matrix.rotation=rot*2*Math.PI/360
c2.translate(matrix.tx,matrix.ty)
c2.rotate(matrix.rotation)
}
}
function WA_img(id,lx,ly,arc,LGVbg,bord_col,s_img,shadow,rot,hbPhb,b_over)
{
var OPUZr=id+"-canvas"
var el=document.getElementById(OPUZr)
var c=el.getContext('2d');
var BISoA=false;
if((hbPhb!=undefined)&&(hbPhb!=-1))
{
BISoA=new nqWaM(OPUZr,lx,ly,arc,hbPhb)
}
var xuAZs=0;
if(shadow)xuAZs=6 


if(el.wa_lx==undefined)
{
el.wa_lx=lx
el.wa_ly=ly
el.wa_arc=arc
el.wa_bord_siz=LGVbg
el.wa_bord_col=bord_col
el.wa_s_img=s_img
el.wa_shadow=shadow
el.wa_rot=rot
el.wa_reflex=hbPhb
c.translate(xuAZs,xuAZs)
}
var HQXWr_img=document.getElementById(id+"-cache")
HQXWr_img.onload=function()
{
c.clearRect(0,0,lx+2*xuAZs,ly+2*xuAZs)
var arc2=arc-LGVbg;
if(arc2<0)arc2=0;
this.width=lx-2*LGVbg
this.height=ly-2*LGVbg
if(isMSIE())
{
if(shadow) hEsKR(c,0,0,lx,ly,arc,false,rot)
var RsuDU=c.createPattern(this,'no-repeat');
c.fillStyle=RsuDU;
c.beginPath()
bwEMH(c,LGVbg,LGVbg,lx-2*LGVbg,ly-2*LGVbg,arc2)
c.translate(LGVbg,LGVbg)
c.fill()
c.translate(-LGVbg,-LGVbg)
apEpj(c,lx,ly,LGVbg,bord_col,arc,arc2)
}
else
if(navigator.userAgent.match(/Firefox/i)&&(shadow))
{
var VAaKZ=new  uAYwA()
cqhvn(id,lx,ly,rot,c,el,shadow,VAaKZ)
if(shadow) hEsKR(c,0,0,lx,ly,arc,false,rot)
var c2=c
apEpj(c2,lx,ly,LGVbg,bord_col,arc,arc2)
c2.beginPath()
bwEMH(c2,LGVbg,LGVbg,lx-2*LGVbg,ly-2*LGVbg,arc2)
c2.clip()
c2.drawImage(this,LGVbg,LGVbg,lx-2*LGVbg,ly-2*LGVbg);
c2.rotate(-VAaKZ.rotation)
c2.translate(-VAaKZ.tx,-VAaKZ.ty)
}
else
{
var canv2=AvRVw(lx,ly,el,"bis2");
var c2=canv2.getContext('2d');
var VAaKZ=new  uAYwA()
cqhvn(id,lx,ly,rot,c2,canv2,shadow,VAaKZ)
c.clearRect(-xuAZs,-xuAZs,lx+2*xuAZs,ly+2*xuAZs)
apEpj(c2,lx,ly,LGVbg,bord_col,arc,arc2)
c2.beginPath()
bwEMH(c2,LGVbg,LGVbg,lx-2*LGVbg,ly-2*LGVbg,arc2)
c2.clip()
c2.drawImage(this,LGVbg,LGVbg,lx-2*LGVbg,ly-2*LGVbg);
c2.rotate(-VAaKZ.rotation)
c2.translate(-VAaKZ.tx,-VAaKZ.ty)
if(shadow) HveLV(c,rot)
c.drawImage(canv2,0,0);
c2.translate(VAaKZ.tx,VAaKZ.ty)
c2.rotate(VAaKZ.rotation)
if(BISoA)
{
BISoA.slVpU(canv2)
}
}
}
HQXWr_img.src=s_img[0];
}
function UcKGU(nIYuT,SsvkG,nGoLY,CRDUv)
{
nIYuT.style.left=nGoLY+"px"
nIYuT.style.top=CRDUv+"px"
nIYuT.style.webkitTransformOrigin="0 0"
nIYuT.style.webkitTransform="rotate("+SsvkG+"deg)";
}
function llSAS(c,type,lx,ly,corner)
{
if(type==1)
xrqYI(c,0,0,lx,ly)
else
bwEMH(c,0,0,lx,ly,corner)
}
function AtlKq(el,c,type,lx,ly,corner,bg,HYQOF,rot)
{
if(mMXAr()==false)
{
c.fillStyle=bg;
llSAS(c,type,lx,ly,corner)
c.fill()
}
else
{
var canv2=AvRVw(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.fillStyle=bg;
llSAS(c2,type,lx,ly,corner)
c2.fill()
if(HYQOF) HveLV(c,rot)
c.drawImage(canv2,0,0);
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
}
}
function EapoN(c,type,lx,ly,UZfNX,bg,ucCoe,OeNHE_glow)
{
if(ucCoe)
{
var x1=ucCoe[0];var y1=ucCoe[1];var lx1=ucCoe[2];var ly1=ucCoe[3];var IWtgh=ucCoe[4];
var AxTIS=c.createLinearGradient(x1,y1,x1,y1+ly1);
AxTIS.addColorStop(0,"rgba(255,255,255,0.7)");AxTIS.addColorStop(1,"rgba(255,255,255,0.1)");
c.fillStyle=AxTIS;
if(type==1) xrqYI(c,x1,y1,lx1,ly1)
else
bwEMH(c,x1,y1,lx1,ly1,IWtgh)
c.fill()
}
if(OeNHE_glow)
{
var x2=OeNHE_glow[0];var y2=OeNHE_glow[1];var lx2=OeNHE_glow[2];var ly2=OeNHE_glow[3];
var BVkDs=OeNHE_glow[4];
var cIRvB_glow=new RGBColor(OeNHE_glow[5]);
cIRvB_glow.a=0;
var col1=OeNHE_glow[5];
var col2=cIRvB_glow.toRGB();
var KrdJV=c.createLinearGradient(x2,y2,x2,y2+ly2);
KrdJV.addColorStop(0,col2);
KrdJV.addColorStop(0.2,col2);
KrdJV.addColorStop(1,col1);
c.fillStyle=KrdJV;
if(type==1) xrqYI(c,x2,y2,lx2,ly2)
else
bwEMH(c,x2,y2,lx2,ly2,BVkDs)
c.fill()
}
}
function VQOlh(NocjE,IAWpP,GPnQt,weLGf,tvhWD,UZfNX,FOGqP,ucCoe,OeNHE_glow,HYQOF,SsvkG)
{
NocjE.IAWpP=IAWpP;NocjE.GPnQt=GPnQt;
NocjE.weLGf=weLGf;NocjE.tvhWD=tvhWD;
NocjE.UZfNX=UZfNX;NocjE.FOGqP=FOGqP,NocjE.ucCoe=ucCoe;
NocjE.OeNHE_glow=OeNHE_glow;NocjE.HYQOF=HYQOF;NocjE.SsvkG=SsvkG;
}
function WA_but_over(IAWpP,gjTIP,cIRvB_glow)
{
var YahVd=document.getElementById(IAWpP) 
if(YahVd&&YahVd.iRXha)
with(YahVd.iRXha)
{
var OeNHE_glow_over;
if(OeNHE_glow&&cIRvB_glow)
{
OeNHE_glow_over=new Array();
for(var SvfBU=0;SvfBU<OeNHE_glow.length;SvfBU++)OeNHE_glow_over[SvfBU]=OeNHE_glow[SvfBU];
OeNHE_glow_over[5]=cIRvB_glow;
}
WA_but(IAWpP,GPnQt,weLGf,tvhWD,UZfNX,gjTIP,ucCoe,OeNHE_glow_over,HYQOF,SsvkG);
}
var JwoRh=document.getElementById(IAWpP+"-div0")
if(JwoRh)html_SetVisibility(JwoRh,false);
var wxPsE=document.getElementById(IAWpP+"-div1")
if(wxPsE)html_SetVisibility(wxPsE,true);
}
function WA_but_out(IAWpP)
{
var YahVd=document.getElementById(IAWpP)
with(YahVd.iRXha)
{
WA_but(IAWpP,GPnQt,weLGf,tvhWD,UZfNX,FOGqP,ucCoe,OeNHE_glow,HYQOF,SsvkG);
}
var JwoRh=document.getElementById(IAWpP+"-div0")
if(JwoRh)html_SetVisibility(JwoRh,true);
var wxPsE=document.getElementById(IAWpP+"-div1")
if(wxPsE)html_SetVisibility(wxPsE,false);
}
function WA_but(id,type,lx,ly,corner,bg,top_light,s_glow,HYQOF,rot)
{
var el=document.getElementById(id)
if(el.iRXha==undefined)
{
el.iRXha=new Array();
VQOlh(el.iRXha,id,type,lx,ly,corner,bg,top_light,s_glow,HYQOF,rot);
}
var c=el.getContext('2d');
var xuAZs=0;
if(HYQOF)xuAZs=6 
c.fillStyle="#000000";
c.fillRect(0,0,lx+2*xuAZs,ly+2*xuAZs) 
c.clearRect(0,0,lx+2*xuAZs,ly+2*xuAZs) 
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(mMXAr()==false)
{
c.translate(xuAZs,xuAZs)
img.width=lx
img.height=ly 
if(HYQOF)
hEsKR(c,0,0,lx,ly,corner,(type==1),rot)
if(navigator.userAgent.match(/Firefox/i))
{
c.beginPath()
llSAS(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()
llSAS(c,type,lx,ly,corner)
c.fill()
}
EapoN(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-xuAZs,-xuAZs)
}
else
{
var canv2=AvRVw(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.beginPath()
llSAS(c2,type,lx,ly,corner)
c2.clip()
c2.drawImage(img,0,0,lx,ly);
EapoN(c2,type,lx,ly,corner,bg,top_light,s_glow)
if(HYQOF) HveLV(c,rot) 
c.drawImage(canv2,xuAZs,xuAZs);
}
}
img.src=bg2;
return;
}
c.translate(xuAZs,xuAZs) 
if(HYQOF&&(mMXAr()==false))
{
var POQDG=new RGBColor(bg);
if(POQDG.a>0)
{
hEsKR(c,0,0,lx,ly,corner,(type==1),rot)
}
}
AtlKq(el,c,type,lx,ly,corner,bg2,HYQOF,rot)
EapoN(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-xuAZs,-xuAZs)
}
function hEsKR(c,x0,y0,lx0,ly0,corner,is_circle,rot)
{
var decShadow=2;
var offset=ZkcqQ(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) xrqYI(c,x,y,lx,ly);else bwEMH(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 UXtvJ(id,x,y,lx,ly,arc,LGVbg,bord_col,bg,shadow,rot,YxQvE,tMifc)
{
if(tMifc==undefined)tMifc=true;
var el=document.getElementById(id)
var c=el.getContext('2d');
if(YxQvE==undefined)YxQvE=1.0;
var xuAZs=0;
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
if(shadow)
{
xuAZs=6;
}
if(tMifc) c.clearRect(0,0,el.width,el.height)
c.globalAlpha=YxQvE 
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 nHcpR=bg1.split(";");
var x1=parseFloat(nHcpR[0]);
var y1=parseFloat(nHcpR[1]);
var x2=parseFloat(nHcpR[2]);
var y2=parseFloat(nHcpR[3]);
var col1=nHcpR[4];
var col2=nHcpR[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-LGVbg;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
{
if(shadow) hEsKR(c,xuAZs,xuAZs,lx,ly,arc,false,rot)
}
if(LGVbg>0)
{
c2.fillStyle=bord_col;
bwEMH(c2,x,y,lx,ly,arc)
MVXpV(c2,x+LGVbg,y+LGVbg,lx-2*LGVbg,ly-2*LGVbg,arc2,true)
c2.fill()
}


c2.fillStyle=fill_obj 
bwEMH(c2,x+LGVbg,y+LGVbg,lx-2*LGVbg,ly-2*LGVbg,arc2)
c2.fill();
}
function qMJGg(xxmmi,NErgu,kVmvW)
{
return new Point(Math.round(xxmmi*Math.cos(kVmvW)-NErgu*Math.sin(kVmvW)),Math.round(xxmmi*Math.sin(kVmvW)+NErgu*Math.cos(kVmvW)))
}
function hhwWK(c,x,y,lx,ly,arc,clowckwise,SsvkG)
{
c.beginPath()
fvwuj(c,x,y,lx,ly,arc,clowckwise,SsvkG)
}
function fvwuj(c,x,y,lx,ly,arc,clowckwise,SsvkG)
{
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 eQJuj=[[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=SsvkG*2*Math.PI/360
for(var n=0;n<eQJuj.length;n++)
{
var miMmp=eQJuj[n][0]
var bmVmh=eQJuj[n][1]
eQJuj[n][0]=miMmp*Math.cos(theta)-bmVmh*Math.sin(theta);
eQJuj[n][1]=miMmp*Math.sin(theta)+bmVmh*Math.cos(theta);
}
var n=0;
c.moveTo(eQJuj[n][0],eQJuj[n++][1]);
c.lineTo(eQJuj[n][0],eQJuj[n++][1]);
c.quadraticCurveTo(eQJuj[n][0],eQJuj[n++][1],eQJuj[n][0],eQJuj[n++][1]);
c.lineTo(eQJuj[n][0],eQJuj[n++][1]);
c.quadraticCurveTo(eQJuj[n][0],eQJuj[n++][1],eQJuj[n][0],eQJuj[n++][1]);
c.lineTo(eQJuj[n][0],eQJuj[n++][1]);
c.quadraticCurveTo(eQJuj[n][0],eQJuj[n++][1],eQJuj[n][0],eQJuj[n++][1]);
c.lineTo(eQJuj[n][0],eQJuj[n++][1]);
c.quadraticCurveTo(eQJuj[n][0],eQJuj[n++][1],eQJuj[n][0],eQJuj[n++][1]);
}
function cuVAT(a,b,x,y)
{
return(a*x-y+b)/(Math.sqrt(1+a*a))
}
function anFcf(new_a1,new_b1,nvvcJ,multi)
{
var d=0;
for(var i=0;i<nvvcJ.length;i++)
{
var MNXpP=nvvcJ[i]
var d1=cuVAT(new_a1,new_b1,MNXpP.x,MNXpP.y)
if(multi<0)
{
if(d1<0) d=Math.max(d,-d1);
}
else
{
if(d1>0) d=Math.max(d,d1);
}
}
return d;
}
function mhCCY(o1,o2)
{
if(o1<o2) return-1
if(o1>o2) return 1
return 0
}
function dTSGQ(c,lx,ly,bg1)
{
var fill_obj=false;
var FDDVt=false;
var CTBxE=false;
var nvvcJ=false
if(bg1.substring(0,1)=="(")
{
bg1=bg1.substring(1);
bg1=bg1.substring(0,bg1.length-1)
var nHcpR=bg1.split(";");
var McRBx=new Point(parseFloat(nHcpR[0]),parseFloat(nHcpR[1]));
var HFiQo=new Point(parseFloat(nHcpR[2]),parseFloat(nHcpR[3]));
FDDVt=McRBx.clone()
CTBxE=HFiQo.clone()
var col1=nHcpR[4];
var col2=nHcpR[5];
var grad=c.createLinearGradient(FDDVt.x,FDDVt.y,CTBxE.x,CTBxE.y);
if(isMSIE())
{
FDDVt=McRBx.clone()
CTBxE=HFiQo.clone() 
var AxTIS=0;
var KrdJV=1;
{
nvvcJ=[{x:0,y:0},{x:lx,y:0},{x:lx,y:ly},{x:0,y:ly}]
var d1=0;
var d2=0;
var a=(CTBxE.y-FDDVt.y)/(CTBxE.x-FDDVt.x);
var b=FDDVt.y-a*FDDVt.x;
var diff=1;
if(a==Infinity)
{
d1=(FDDVt.y)
d2=(ly-CTBxE.y)
}
else
if(a==0)
{
d1=(FDDVt.x)
d2=(lx-CTBxE.x)
}
else
{
var new_a1=-1/a;
var new_b1=FDDVt.y-new_a1*FDDVt.x;
d1=anFcf(new_a1,new_b1,nvvcJ,-1)
var new_b2=CTBxE.y-new_a1*CTBxE.x;
d2=anFcf(new_a1,new_b2,nvvcJ,1)
if(new_a1<0)diff=-1;
}
var d=Math.sqrt(Math.pow(CTBxE.x-FDDVt.x,2)+Math.pow(CTBxE.y-FDDVt.y,2))
var total=(d1+d+d2)
AxTIS=d1/total;
KrdJV=(d1+d)/total;
var pt_prod0=new Point(CTBxE.x-FDDVt.x,CTBxE.y-FDDVt.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)
{
AxTIS=d2/total;
KrdJV=(d2+d)/total;
}
}
grad.addColorStop(AxTIS,col1);
grad.addColorStop(KrdJV,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,LGVbg,bord_col,bg,shadow,rot,ClnKT,PAKEP,YxQvE,tMifc)
{


var theta=rot*2*Math.PI/360 
if(tMifc==undefined)tMifc=true;
if(YxQvE==undefined)YxQvE=1.0;
var el=document.getElementById(id)
if(!el)return
var c=el.getContext('2d');
var xuAZs=(el.width-lx)/2;
if(tMifc) c.clearRect(0,0,el.width,el.height)
var x_rect0=xuAZs;
var y_rect0=xuAZs;
var bg1=bg[0]
var fill_obj=false;
var FDDVt=false;
var CTBxE=false;
var nvvcJ=false
fill_obj=dTSGQ(c,lx,ly,bg1) 
if(YxQvE==undefined)YxQvE=1.0;
var arc2=arc-LGVbg;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
if(shadow)
{
c2.translate(ClnKT+6,PAKEP+6)
}
else
{
c2.translate(ClnKT,PAKEP)
}
c2.fillStyle=fill_obj;
hhwWK(c2,LGVbg,LGVbg,lx-2*LGVbg,ly-2*LGVbg,arc2,false,rot)
c2.fill();
}
function WA_bg(id,lx,ly,arc,LGVbg,bord_col,bg,shadow,rot,YxQvE,tMifc)
{

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

var fill_obj=dTSGQ(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()
NLbaU(c,el,lx,ly,arc,LGVbg,bord_col,ptrn,shadow,rot,YxQvE)
}
img.src=bg2;
}
else
{
NLbaU(c,el,lx,ly,arc,LGVbg,bord_col,fill_obj,shadow,rot,YxQvE)
}
}
function NLbaU(c,el,lx,ly,arc,LGVbg,bord_col,fill_obj,shadow,rot,YxQvE)
{
if(YxQvE==undefined)YxQvE=1.0;
var arc2=arc-LGVbg;
if(arc2<0)arc2=0
var xuAZs=(el.width-lx)/2;
var x_rect0=xuAZs;
var y_rect0=xuAZs;
var canv2=false;
var c2=c;
c.globalAlpha=YxQvE
if(mMXAr()==true)
{
canv2=AvRVw(lx,ly);
c2=canv2.getContext('2d');
c2.globalAlpha=YxQvE
}
else
{
c2.translate(xuAZs,xuAZs)
if(shadow) hEsKR(c,0,0,lx,ly,arc,false,rot)
}
if(LGVbg>0)
{
c2.fillStyle=bord_col;
bwEMH(c2,0,0,lx,ly,arc)
MVXpV(c2,LGVbg,LGVbg,lx-2*LGVbg,ly-2*LGVbg,arc2,true)
c2.fill()
}
c2.fillStyle=fill_obj;
bwEMH(c2,LGVbg,LGVbg,lx-2*LGVbg,ly-2*LGVbg,arc2)
c2.fill();
if(mMXAr()==true)
{
if(shadow) HveLV(c,rot)
c.drawImage(canv2,xuAZs,xuAZs);
}
else
{
c2.translate(-xuAZs,-xuAZs)
}
}
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(OeNHE){return(this.width>OeNHE.width)&&(this.height>OeNHE.height)}
this.scale=function(kGgem,uVXHp)
{
if(!uVXHp)uVXHp=false
var KHKqj=this;
var PNjQi=KHKqj.width
var KrYri=KHKqj.height
var p1=PNjQi*kGgem.height;
var p2=kGgem.width*KrYri;
var r1=PNjQi/KrYri;
var r2=KrYri/PNjQi;
var newSize1=new Size(kGgem.height*r1,kGgem.height);
var newSize2=new Size(kGgem.width,kGgem.width*r2);
if(p2>p1)
{
if((uVXHp==true)||((newSize1.width<=KHKqj.width)&&(newSize1.height<=KHKqj.height)))
{
KHKqj.width=Math.round(newSize1.width);
KHKqj.height=Math.round(newSize1.height);
}
}
else
{
if((uVXHp==true)||((newSize2.width<=KHKqj.width)&&(newSize2.height<=KHKqj.height)))
{
KHKqj.width=Math.round(newSize2.width);
KHKqj.height=Math.round(newSize2.height);
}
}
this.width=KHKqj.width;
this.height=KHKqj.height;
return true;
}
}
function Point(p_x,p_y){this.x=p_x;this.y=p_y;
this.translate=function(xxmmi,NErgu){this.x+=xxmmi;this.y+=NErgu;}
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(nIYuT){return(this.x==nIYuT.x)&&(this.y==nIYuT.y)&&(this.width==nIYuT.width)&&(this.height==nIYuT.height);}
this.copy=function(nIYuT){this.x=nIYuT.x;this.y=nIYuT.y;this.width=nIYuT.width;this.height=nIYuT.height;}
this.translate=function(xxmmi,NErgu){this.x+=xxmmi;this.y+=NErgu;}
this.isValid=function(){return(this.width>0)&&(this.height>0);}
}
function html_getLayer(nIYuT)
{
if(typeof(nIYuT)=="string")return document.getElementById(nIYuT);
return nIYuT;
}
function html_SetPosition(nIYuT,xxmmi,NErgu){
nIYuT=html_getLayer(nIYuT);
nIYuT.style.left=xxmmi+"px";nIYuT.style.top=NErgu+"px";
}
function html_SetSize(CXpVE,weLGf,tvhWD){
nIYuT=html_getLayer(CXpVE);
nIYuT.style.width=weLGf+"px";nIYuT.style.height=tvhWD+"px";
}
function html_SetRect(nIYuT,UCNNp){html_SetGeometry(nIYuT,UCNNp.x,UCNNp.y,UCNNp.width,UCNNp.height);}
function html_SetGeometry(nIYuT,xxmmi,NErgu,weLGf,tvhWD){html_SetPosition(nIYuT,xxmmi,NErgu);html_SetSize(nIYuT,weLGf,tvhWD);}
function html_SetVisibility(nIYuT,jDVeq){nIYuT=html_getLayer(nIYuT);nIYuT.style.visibility=(jDVeq)?"visible":"hidden";}
function html_SetDisplay(nIYuT,jDVeq){nIYuT=html_getLayer(nIYuT);nIYuT.style.display=(jDVeq)?"block":"none";}
function html_SetCanvasSize(nIYuT,weLGf,tvhWD){nIYuT=html_getLayer(nIYuT);nIYuT.width=weLGf;nIYuT.height=tvhWD;}
function html_writeContent(nIYuT,OeNHE){nIYuT=html_getLayer(nIYuT);nIYuT.innerHTML=OeNHE;}
function html_SetOpacity(nIYuT,LsHlf)
{
nIYuT=html_getLayer(nIYuT);
nIYuT.style['opacity']=LsHlf;
nIYuT.style['-moz-opacity']=LsHlf;
nIYuT.style.filter=(LsHlf==1)?'':'alpha(opacity='+(LsHlf*100)+')';
}
var YIrDI=[
{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<YIrDI.length;i++)
{
var array2=YIrDI[i].l;
for(var i2=0;i2<array2.length;i2++)
{
var reg=new RegExp(array2[i2],"g");
res=res.replace(reg,YIrDI[i].acc)
}
}
return res;
}
function trimString(str)
{
return str.replace(/^\s*|\s*$/g,"");
}
function IsNumeric(GabNs)
{
var GYcLZ="0123456789.";var RJwIF=true;var DrSMP;
for(SvfBU=0;SvfBU<GabNs.length&&RJwIF==true;SvfBU++){DrSMP=GabNs.charAt(SvfBU);if(GYcLZ.indexOf(DrSMP)==-1) RJwIF=false;}
return RJwIF;
}
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(mQBff)
{
var nXsTn=mQBff*60;
var ELAUw=new Date();
var oqiko=0;
oqiko+=ELAUw.getYear()*12*31*24*60*60;
oqiko+=ELAUw.getMonth()*31*24*60*60;
oqiko+=ELAUw.getDate()*24*60*60;
oqiko+=ELAUw.getHours()*60*60;
oqiko+=ELAUw.getMinutes()*60;
oqiko+=ELAUw.getSeconds();
if(nXsTn!=0)
{
oqiko=Math.floor(oqiko/nXsTn)*nXsTn
}
return "-"+oqiko;
}
function urlAntiCacheForPreview()
{
if(document.webaca_is_preview) return urlSuffixe(0);
return "";
}
function html_findPos(obj)
{
var LsHlf=vmgSv(obj)
return new Point(LsHlf[0],LsHlf[1])
}
function vmgSv(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(EBLvn,weLGf,tvhWD)
{
document.write("<input id='"+EBLvn+"' type=search results=0 placeholder='' style='width:"+weLGf+"px;height:"+tvhWD+"px;'>")
}
function smBxi()
{
var tvTjX=document.getElementsByTagName("A");
for(var SvfBU=0;SvfBU<tvTjX.length;SvfBU++)
{
var nIYuT=tvTjX[SvfBU];
if(nIYuT.onmouseover)nIYuT.onmouseover=null;
if(nIYuT.onmouseout)nIYuT.onmouseout=null;
}
}
function qnnDK()
{
for(var qIoKs in document.wa_global_list_element)
{
var IAWpP=document.wa_global_list_element[qIoKs]
var YahVd=document.getElementById(IAWpP)
YahVd.onclick=function()
{
WA_focus(this)
}
}
}
function WA_declare(IAWpP)
{
if(!document.wa_global_list_element)
{
document.wa_global_list_element=new Array();;
}
document.wa_global_list_element.push(IAWpP)
}
function QMonM()
{
var fYZtt=window.location.search;
if(fYZtt.substr(0,1)=="?")fYZtt=fYZtt.substr(1);
if(fYZtt.length==0)return;
var sQBBu=new Array();
var idltR=fYZtt.split("&");
for(var i=0;i<idltR.length;i++)
{
var RqVQW=idltR[i].split("=");sQBBu[RqVQW[0]]=RqVQW[1];
}
var OeNHE_info=sQBBu["crbst_info"];
if(!OeNHE_info)return;
var gDcOX=new Array();
gDcOX.m_unid=OeNHE_info;
gDcOX.m_index_item=-1;
var xClmw_info=OeNHE_info.indexOf("-");
if(xClmw_info!=-1)
{
gDcOX.m_unid="wa-id-"+OeNHE_info.substring(0,xClmw_info);
gDcOX.m_index_item=parseInt(OeNHE_info.substring(xClmw_info+1));
}
document.wa_global_query_info=gDcOX;
}
function IS_onload_WA()
{

if(isMSIE8())
{
wa_timeout("IS_onload_ui()",0)
}
else
{
IS_onload_ui()
}
if(isIPhone())
{
smBxi()
}
else
{
qnnDK()
}
QMonM();

DNWOb()
}
function DNWOb()
{
var gVJoY=0;
var HGIvi=document.webaca_banner_height;
if(document.webaca_page_is_centered)
{
var QOHke=getWindowSize().width
var UtOTP=document.webaca_width_page
if(QOHke>UtOTP)gVJoY=(QOHke-UtOTP)/2;
}
document.body.style.backgroundPosition=gVJoY+"px "+HGIvi+"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 nRbqM=CONST_WA_COUNTRIES.codes[n]
var hkZZk=CONST_WA_COUNTRIES.labels[n]
Translator.m_countries[nRbqM]=hkZZk
}
}
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(IAWpP,gWYZw,HYQOF)
{
this.IAWpP=IAWpP;
this.gWYZw=gWYZw
this.HYQOF=HYQOF;
this.IAWpP_div=this.IAWpP+"-div"
this.IAWpP_canvas=this.IAWpP+"-canvas"
this.QYWon=new Rect(0,0,0,0)
this.hDFUU=false;
this.NmchL=false;
this.xuAZs=6;
this.sufkt_src=false;
this.sufkt_clip=false;
this.sufkt_rot=false;
this.YUwAr="";
this.shadow=function()
{
return this.HYQOF;
}
this.marginShadow=function()
{
return this.xuAZs;
}
this.rect=function()
{
return this.QYWon;
}
this.canvasId=function()
{
return this.IAWpP_canvas;
}
this.divId=function()
{
return this.IAWpP_div;
}
this.opacity=function()
{
return this.OsSjn;
}
this.img_clip=function()
{
return this.sufkt_clip;
}
this.img_src=function()
{
return this.sufkt_src;
}
this.toHtml=function()
{
var OeNHE=""
OeNHE+="<div id='"+this.IAWpP_div+"' style=\"";
OeNHE+="position:absolute;";
if(this.YUwAr.length>0)
{
OeNHE+="cursor:pointer;";
}
if(this.rect.x>0)OeNHE+="left:"+this.rect.x+"px;";
if(this.rect.y>0)OeNHE+="top:"+this.rect.y+"px;";
if(this.rect.width>0)OeNHE+="width:"+this.rect.width+"px;";
if(this.rect.height>0)OeNHE+="height:"+this.rect.height+"px;";
if(gWYZw)
OeNHE+="z-index:"+gWYZw+";";
OeNHE+="\" ";
if(this.YUwAr.length>0)
{
OeNHE+="onclick=\""+this.YUwAr+"\" "
}
OeNHE+=">";
if((this.rect.width>0)&&this.shadow())
{
OeNHE+=html_canvas(this.IAWpP_canvas,this.rect.width+2*this.xuAZs,this.rect.height+2*this.xuAZs)+"</div>";
}
else
{
OeNHE+=html_canvas(this.IAWpP_canvas,0,0)+"</div>";
}
return OeNHE
}
this.setImage=function(rujYt,jfSXH,SsvkG)
{
if(SsvkG==undefined)SsvkG=0;
if((rujYt==this.sufkt_src)&&(this.sufkt_clip&&this.sufkt_clip.equals(jfSXH))&&(this.sufkt_rot==SsvkG))
{
return;
}
this.sufkt_rot=SsvkG;
this.sufkt_src=rujYt;
this.sufkt_clip=jfSXH;
this.iChva()
}
this.registerDynamicCanvas=function()
{
registerDynamicCanvas(this.IAWpP_canvas);
this.NmchL=true;
this.setRect(this.QYWon.x,this.QYWon.y,this.QYWon.width,this.QYWon.height)
}
this.iChva=function()
{
if((this.QYWon.width>0)&&(this.QYWon.height>0))
{
this.draw()
}
this.hDFUU=true
};
this.draw=function(){};
this.setPosition=function(xxmmi,NErgu)
{
this.QYWon.x=xxmmi;this.QYWon.y=NErgu;
if(this.NmchL==false)return
html_SetPosition(this.IAWpP_div,this.QYWon.x,this.QYWon.y)
if(this.hDFUU==false)
{
this.iChva()
}
}
this.setOnClick=function(OeNHE)
{
this.YUwAr=OeNHE
}
this.width=function(){return this.QYWon.width;}
this.height=function(){return this.QYWon.height;}
this.setSize=function(weLGf,tvhWD)
{
this.QYWon.width=weLGf;this.QYWon.height=tvhWD;
var MjlQI=weLGf
var vEwLe=tvhWD
if(this.HYQOF)
{
MjlQI+=2*this.xuAZs
vEwLe+=2*this.xuAZs
}
if(this.NmchL==false)return
html_SetSize(this.IAWpP_div,MjlQI,vEwLe)
html_SetCanvasSize(this.IAWpP_canvas,weLGf,tvhWD)
this.iChva()
}
this.setRect=function(xxmmi,NErgu,weLGf,tvhWD)
{
this.QYWon.x=xxmmi;this.QYWon.y=NErgu;this.QYWon.width=weLGf;this.QYWon.height=tvhWD;
var MjlQI=weLGf
var vEwLe=tvhWD
var xFhfQ=xxmmi
var wNvDi=NErgu
if(this.HYQOF)
{
MjlQI+=2*this.xuAZs
vEwLe+=2*this.xuAZs
xFhfQ-=this.xuAZs
wNvDi-=this.xuAZs
}
if(this.NmchL==false)return 
html_SetGeometry(this.IAWpP_div,xFhfQ,wNvDi,MjlQI,vEwLe);
html_SetCanvasSize(this.IAWpP_canvas,MjlQI,vEwLe)
try{this.iChva()}catch(e){
alert(e.message)
}
}
this.setVisible=function(jDVeq)
{
if(this.NmchL==false)return
html_SetVisibility(this.IAWpP_div,jDVeq)
}
this.setOpacity=function(LsHlf)
{
this.OsSjn=LsHlf 
if(this.NmchL==false)return
this.iChva()
}
}

function is_onresize()
{
WA_Dialog.resizeUI()
try
{
if(WA_PhotoAlbum_resizeUI)WA_PhotoAlbum_resizeUI()
}
catch(e){}
DNWOb()
}
function is_onscroll()
{
centerFullPageContainer();
}
function registerDynamicCanvas(id)
{
if(isMSIE())
G_vmlCanvasManager.initElement(document.getElementById(id));
}
function WA_openDialogAction(qIoKs)
{
var TLBIa=WA_Dialog.JCUYl;
if(qIoKs==-1){TLBIa.closeWin();return;}
var PXbwC=TLBIa.BmRQj(qIoKs);
if(PXbwC[5])
{
PXbwC[4].call(PXbwC[6],PXbwC[5])
}
else
{
PXbwC[4](PXbwC[5]);
}
}
function WA_Dialog(jDVeq_close_button)
{
this.kwtvL=0;
this.iDAok=0;
this.kGgem_win_width=600;
this.pGERx=400;
this.RCSdQ=new Array();
this.nPugF="wa-dialog-but-";
this.XJrNu=this.nPugF+"div-";
this.MaGaV=this.nPugF+"canvas-";
this.BUTTON_HEIGHT=22;
this.hbAPr=CONST_WA_GLOBAL_COLOR_THEME;
this.jDVeq_close_button=jDVeq_close_button;
this.OLlXk=6;
this.EXVjt=function()
{
if(this.jDVeq_close_button==undefined)this.jDVeq_close_button=true;
this.gLIFT();
}
this.resetButtons=function()
{
this.gLIFT();
}
this.idealHeight=function()
{
return this.xYdRo
}
this.displayWindowWithAutoResize=function(EvXvH,vZEke)
{
this.eVQDi=false
this.xYdRo=EvXvH
this.EcFAo=vZEke 
this.resetButtons();
vZEke.call(this)
var l=document.getElementById('wa-dialog-content');
if(this.eVQDi==false)
if(l.scrollHeight>200)
{
this.eVQDi=true
this.xYdRo=l.scrollHeight+150
this.resetButtons();
vZEke.call(this)
}
}
this.initializeWindow=function(kGgem_lx,kGgem_ly)
{
if(WA_Dialog.JCUYl)WA_Dialog.JCUYl.closeWin()
WA_Dialog.JCUYl=this;
this.kGgem_win_width=kGgem_lx;
this.pGERx=kGgem_ly;
this.ZKTGP()
}
this.progress=function()
{
this.initializeWindow(300,100)
this.writeContent("<div width=100% align=center><img src='wa_loading.gif'></div>")
}
this.RpFea=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(hkZZk,UvaNU,HQXWr,lvXcx)
{
var DFrvU=this.RCSdQ.length
if(this.jDVeq_close_button==true)
{
DFrvU--;
}
var weLGf=Math.max((hkZZk.length*8)*1.2+30,80)
var KHKqj=new Size(weLGf,this.BUTTON_HEIGHT);
this.xugBT("action_"+DFrvU,DFrvU,hkZZk,UvaNU,KHKqj,HQXWr,lvXcx)
}
this.gLIFT=function()
{
this.RCSdQ=new Array();
if(this.jDVeq_close_button)
{

var KHKqj=new Size(50,20);
this.xugBT("close",-1,"X",null,KHKqj)
}
}
this.xugBT=function(ggPbP,DFrvU,hkZZk,UvaNU,KHKqj,HQXWr,lvXcx)
{
var PXbwC=[ggPbP,KHKqj,DFrvU,hkZZk,UvaNU,HQXWr,lvXcx];
this.RCSdQ.push(PXbwC);
}
this.writeContent=function(s)
{
var l=document.getElementById('wa-dialog-content');
l.innerHTML=s
}
this.BmRQj=function(ggPbP)
{
for(var qIoKs=0;qIoKs<this.RCSdQ.length;qIoKs++)
{
var PXbwC=this.RCSdQ[qIoKs];
if((PXbwC[0]==ggPbP)||(PXbwC[2]+""==ggPbP+""))
return PXbwC;
}
return undefined;
}
this.KxGJf=function(ggPbP)
{
var PXbwC=this.BmRQj(ggPbP);
return PXbwC[1]
}
this.getColorTheme=function(qIoKs)
{
return this.hbAPr[qIoKs];
}
this.vEUhh=function(HwKeO)
{
var PXbwC=this.BmRQj(HwKeO);
var ggPbP=PXbwC[0];
var DFrvU=PXbwC[2];
var cIRvB_text=this.hbAPr[4]
var cIRvB_bg=this.hbAPr[5]
var cIRvB_glow=this.hbAPr[7]
if(DFrvU==-1)
{
cIRvB_text=this.hbAPr[10]
cIRvB_bg=this.hbAPr[8]
cIRvB_glow=this.hbAPr[11]
}
var UdBQn=this.XJrNu+ggPbP;
var PevOF=this.MaGaV+ggPbP;
var KHKqj=this.KxGJf(HwKeO)
var SFpSK=0;
var s=""
s+="<a href='javascript:WA_openDialogAction("+HwKeO+")' ";
var cIRvB=new RGBColor(cIRvB_bg);
var cIRvB_hsl=cIRvB.toHsl();
cIRvB.fromHsl(cIRvB_hsl[0],cIRvB_hsl[1],cIRvB_hsl[2]+0.2)
cIRvB_bg=cIRvB.toRGB();
var aqIaP_glow=new RGBColor(cIRvB_glow);
var aqIaP_glow_hsl=aqIaP_glow.toHsl();
aqIaP_glow.fromHsl(aqIaP_glow_hsl[0],aqIaP_glow_hsl[1],aqIaP_glow_hsl[2]+0.2)
cIRvB_glow=aqIaP_glow.toRGB();
s+="onmouseover=\"WA_but_over('"+PevOF+"','"+cIRvB_bg+"','"+cIRvB_glow+"')"+"\" ";
s+="onmouseout=\""+"WA_but_out('"+PevOF+"')"+"\" ";
s+="style='text-decoration:none;'>";
s+="<div id='"+this.XJrNu+ggPbP+"' style='position:absolute;cursor:pointer;left:0px;top:0px;height:"+KHKqj.height+"px;width:"+KHKqj.width+"px;' >";
s+="<div style='position:absolute;left:"+(-SFpSK)+"px;top:"+(-SFpSK)+"px;height:"+KHKqj.height+"px;'>"
s+="<canvas id='"+this.MaGaV+ggPbP+"' width="+(KHKqj.width+SFpSK*2)+" height="+(KHKqj.height+SFpSK*2)+" ></canvas>";
s+="</div>"
s+="<div align=center style='position:absolute;left:0px;top:"+(0)+"px;vertical-align:middle;width:100%;height:"+(KHKqj.height)+"px;line-height:"+(KHKqj.height)+"px;font-family:arial;font-size:13px;font-weight:bold;color:"+cIRvB_text+"'>"
s+=PXbwC[3];
s+="</div>"
s+="</div>"
s+="</a>"
return s;
}
this.TPJcd=function(ggPbP)
{
var PXbwC=this.BmRQj(ggPbP);
var DFrvU=PXbwC[2];
var cIRvB_bg=this.hbAPr[5]
var cIRvB_glow=this.hbAPr[7]
var cIRvB_text=this.hbAPr[3]
if(DFrvU==-1)
{
cIRvB_bg=this.hbAPr[8]
cIRvB_glow=this.hbAPr[11]
cIRvB_text=this.hbAPr[10]
}
var nRbqM=this.MaGaV+ggPbP;
registerDynamicCanvas(nRbqM);
var KHKqj=this.KxGJf(ggPbP);
var UZfNX=KHKqj.height*0.25;
var fodUk=true;
UZfNX=0;
fodUk=false;
var BqIsm=0;
var Kgvnf=(KHKqj.width-2);
var pOBxQ=KHKqj.height*0.45;

var nHcpR_top=[1,1,Kgvnf,pOBxQ,BqIsm];
var WjIbe=KHKqj.width-2;
var HdbHP=KHKqj.height*0.45;
var gRNmk=cIRvB_glow;
var heepv=cIRvB_glow;
var Mnmdf=0;

var nHcpR_bottom=[(KHKqj.width-WjIbe)/2,KHKqj.height-HdbHP-1,WjIbe,HdbHP,Mnmdf,gRNmk,heepv];
WA_but(nRbqM,0,KHKqj.width,KHKqj.height,UZfNX,cIRvB_bg,nHcpR_top,nHcpR_bottom,fodUk,0)
}
this.gFtsM=function(ggPbP)
{
var PXbwC=this.BmRQj(ggPbP)
if(PXbwC)
{
var nRbqM=this.XJrNu+PXbwC[0];
return document.getElementById(nRbqM);
}
return undefined
}
this.ZKTGP=function()
{
var l=document.getElementById('wa-dialog-container');
l.style.display="block" 

var s="";
var sPTMD=document.webaca_banner_height
s+="<div  style='position:absolute;left:0px;top:"+sPTMD+"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:"+sPTMD+"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 SvfBU in this.RCSdQ)
{
s+=this.vEUhh(this.RCSdQ[SvfBU][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.rSHBY)
}
this.rSHBY=function()
{
registerDynamicCanvas('wa-dialog1');
for(var SvfBU in this.RCSdQ)
{
this.TPJcd(this.RCSdQ[SvfBU][0])
}
this.oVKfm()
if(this.dYTbF())
{
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.JCUYl=false
}
this.closeWin=function()
{
this.intern_closeWin()
}
this.cssText1=function()
{
return "font-family:Arial;font-size:15px;color:"+this.hbAPr[3]+";";
}
this.onCustomKeypress=function(ofVaD)
{
if((this.RCSdQ.length==1)&&(ofVaD==13))
{
this.closeWin()
return true;
}
return false;
}
this.onkeypress=function(ofVaD)
{
return this.onCustomKeypress(ofVaD)
}
this.onkeydown=function(ofVaD)
{
if(ofVaD==27)
{
this.closeWin()
return true;
}
return this.onCustomKeypress(ofVaD) 
}
this.customUpdate=function(){}
this.dYTbF=function()
{
return isIPhone();
}
this.oVKfm=function()
{
var bpYWM=document.webaca_width_page;
var KOPfN=document.webaca_height_page;
var uFJTJ=getWindowSize().width
var TIenu=getWindowSize().height
var rliVV=getWindowFullSize().width
var THrQh=getWindowFullSize().height
var qkXuq=550;
var gmcpW=400;
uFJTJ=Math.max(uFJTJ,qkXuq);
TIenu=Math.max(TIenu,gmcpW);
if(this.dYTbF())
{
uFJTJ=600;
TIenu=700;
}
this.kwtvL=Math.min(uFJTJ*0.9,this.kGgem_win_width)
this.iDAok=Math.min(TIenu*0.9,this.pGERx)
var HoXbJ=document.getElementById('wa-dialog1');
HoXbJ.width=this.kwtvL+10
HoXbJ.height=this.iDAok+10
var xxmmi=getWindowScroll().x+(uFJTJ-HoXbJ.width)/2
var NErgu=getWindowScroll().y+(TIenu-HoXbJ.height)/2
xxmmi=(uFJTJ-HoXbJ.width)/2
NErgu=(TIenu-HoXbJ.height)/2
xxmmi=Math.max(0,xxmmi)
NErgu=Math.max(0,NErgu)
if(this.dYTbF())
{
xxmmi=0
NErgu=0;
}
var bFXWl=document.getElementById('wa-dialog-main');
html_SetGeometry('wa-dialog-main',xxmmi,NErgu,HoXbJ.width,HoXbJ.height);
var LDkjq_bg="(0;0;0;"+this.iDAok*0.25+";"+this.hbAPr[1]+";"+this.hbAPr[2]+")";
var noxhZ=4;
WA_bg('wa-dialog1',this.kwtvL,this.iDAok,noxhZ,3,this.hbAPr[0],[LDkjq_bg],true,0)
var MAcmZ=10;
var XpJnP_close=this.gFtsM(-1)
if(XpJnP_close)
{
var LcCUH=this.KxGJf(-1) 
var marginClose=3
html_SetPosition(XpJnP_close,this.kwtvL-LcCUH.width-marginClose+this.OLlXk-1,marginClose+this.OLlXk-1)
}
var twbSR=this.RCSdQ.length;
if(this.jDVeq_close_button==true)
{
twbSR--;
}
var xKjlY=10;
var cPaVR=0;
for(var SvfBU=0;SvfBU<twbSR;SvfBU++)
{
if(SvfBU>0) cPaVR+=xKjlY;
var KHKqj_but=this.KxGJf(SvfBU);
cPaVR+=KHKqj_but.width;
}
var XGUmC=(this.kwtvL-cPaVR)/2
for(var SvfBU=0;SvfBU<twbSR;SvfBU++)
{
if(SvfBU>0) XGUmC+=xKjlY;
var XpJnP_div=this.gFtsM(SvfBU);
var KHKqj_but=this.KxGJf(SvfBU);
html_SetPosition(XpJnP_div,XGUmC+this.OLlXk,+this.OLlXk+this.iDAok-KHKqj_but.height-2*MAcmZ)
XGUmC+=KHKqj_but.width;
}
var mPqhd=45;
var NlIfX=this.BUTTON_HEIGHT+2*MAcmZ;
if(twbSR==0)
{
NlIfX=0;
}
var MwsMV=(this.iDAok-mPqhd-NlIfX)-MAcmZ
var ZOsMj=document.getElementById('wa-dialog-content');
var TLBIa_content=Math.round(this.kwtvL-2*MAcmZ)
var ZkfMw=Math.round(MwsMV)
this.m_content_lx=TLBIa_content
this.m_content_ly=ZkfMw
html_SetGeometry('wa-dialog-content',Math.round(5+(this.kwtvL-TLBIa_content)/2),Math.round(5+mPqhd+(MwsMV-ZkfMw)/2),TLBIa_content,ZkfMw);
this.customUpdate() 
var eMdbu=document.getElementById('wa-dialog-container');
var GarBq=THrQh
GarBq=Math.max(GarBq,TIenu) 
var cJnvn=rliVV
cJnvn=Math.max(cJnvn,uFJTJ)
if(this.dYTbF())
{
cJnvn=Math.max(cJnvn,bpYWM)
GarBq=Math.max(GarBq,KOPfN)
}
html_SetSize('wa-dialog-container',cJnvn,GarBq);
centerFullPageContainer();
}
this.EXVjt();
}
function centerFullPageContainer()
{
var rMXrx=WA_Dialog.getCurrent() 
var bpYWM=document.webaca_width_page;
var KOPfN=document.webaca_height_page;
var eMdbu=document.getElementById('wa-dialog-container');
var rliVV=getWindowSize().width 
var THrQh=getWindowSize().height
var NErgu_bg=getWindowScroll().y;
var iIYgx=rMXrx&&rMXrx.dYTbF();
if(iIYgx)
{
NErgu_bg=0
}
NErgu_bg=Math.min(NErgu_bg,KOPfN-THrQh+1)
NErgu_bg=Math.max(NErgu_bg,0)
var iEGRm=getWindowScroll().x;
if(iIYgx)
{
iEGRm=0
}
iEGRm=Math.min(iEGRm,bpYWM-rliVV+1)
iEGRm=Math.max(iEGRm,0)
html_SetPosition('wa-dialog-container',iEGRm,NErgu_bg,rliVV,THrQh);
}
function isOperaBrowser()
{
return(/opera/i.test(navigator.userAgent))
}
function WA_exec_callback_opera_compliant(HQXWr,QFbNg)
{
if(/opera/i.test(navigator.userAgent))
WA_exec_delayedCallback(HQXWr,QFbNg)
else
QFbNg.call(HQXWr)
}
function WA_exec_delayedCallback(HQXWr,QFbNg)
{
wa_timeout(Delegate.create(HQXWr,QFbNg),0);
}
WA_Dialog.getCurrent=function()
{
return WA_Dialog.JCUYl;
}
WA_Dialog.JCUYl=false;
WA_Dialog.resizeUI=function()
{
if(WA_Dialog.JCUYl)
{
var rMXrx=WA_Dialog.JCUYl
if(rMXrx.dYTbF()==false)
{
rMXrx.oVKfm()
}
}
}
WA_Dialog.alert=function(s)
{
var w=new WA_Dialog();
w.RpFea(s)
}
WA_Dialog.progress=function()
{
var w=new WA_Dialog(false);
w.progress()
}

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

}
};
return http_request;
}
function makePOSTRequest(url,parameters,callback,DswFm)
{
var http_request=getXMLHttpRequest(callback,DswFm);
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(dBxtl,CXQLL,lvXcx)
{
var result=CXQLL.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 naBWq=lvXcx[0] 
WA_Dialog.alert(Translator.tr("Success:Mail sended"));
var form=document.getElementById(naBWq);
form.reset()
}
else
{
var jTdib="error_string="
n=result.indexOf(jTdib)
if(n>-1)
{
result=result.substring(n+jTdib.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 WcGFs=el.value
WcGFs=encodeURI(WcGFs)
WcGFs=WcGFs.replace(/&/g,escape("&")) 
poststr+=el.name.replace("_mandatory","")+"="+WcGFs+"&"
}
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(AIOPG)
{
var Alqmo=document.getElementById(AIOPG);
Alqmo.submit() 
}
function rmGSw(IAWpP,lvXcx)
{
var ofVaD=lvXcx[0]
if(ofVaD==13)
{
var AIOPG=IAWpP+"-form";
var Alqmo=document.getElementById(AIOPG);
for(var i=0;i<Alqmo.elements.length;i++)
{
var YahVd=Alqmo.elements[i];
if((YahVd.type=="textarea")&&(YahVd.focused))return true;
}
WA_form_submit(AIOPG);
return false;
}
return true;
}
function WA_addFormDeclaration(IAWpP,fouUs)
{
return WA_addHandler(IAWpP,"keypress",rmGSw)
}
function WA_form_bg(id,lx,ly,arc,LGVbg,bord_col,bg,shadow,SsvkG,OcMZE)
{
WA_bg(id,lx,ly,arc,LGVbg,bord_col,bg,shadow,SsvkG,1.0,true) 
var OUkwi=OcMZE.x;
var OkwLh=0;
var EMMFe=OcMZE.cells
for(var n=0;n<EMMFe.length;n++)
{
var cdAdZ=EMMFe[n]
var arc2=0
UXtvJ(id,OUkwi,OkwLh+cdAdZ.y,OcMZE.w,cdAdZ.h,arc2,1,OcMZE.border,[''],false,0,1.0,false)
UXtvJ(id,OUkwi,OkwLh+cdAdZ.y,cdAdZ.w,cdAdZ.h,arc2,1,"rgba(0,0,0,0)",[OcMZE.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(ctxkk)
{
this.ok=false;this.a=1.0;
if(ctxkk.charAt(0)=='#'){ctxkk=ctxkk.substr(1);}
ctxkk=ctxkk.replace(/ /g,'');
ctxkk=ctxkk.toLowerCase();
var SSddQ=[
{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<SSddQ.length;i++){
var xFItD=SSddQ[i].re;
var voFuB=SSddQ[i]._process;
var rvmYM=xFItD.exec(ctxkk);
if(rvmYM){
var QVboc=voFuB(rvmYM);
this.r=QVboc[0];this.g=QVboc[1];this.b=QVboc[2];this.a=QVboc[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.GnMJb=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.GnMJb(p,q,h+1/3);g=this.GnMJb(p,q,h);b=this.GnMJb(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 ZgZPn(GPnQt_event,lvXcx)
{
if(document.wa_global_handlers!=undefined)
{
var IAWpP=WA_focused_element()
if(IAWpP)
{
var UvaNU=document.wa_global_handlers[IAWpP+"-"+GPnQt_event]
if(UvaNU) return UvaNU([IAWpP],lvXcx)
}
}
return true;
}
function fHxIl(e)
{
if(window.event){return e.keyCode;}
else 
if(e.which) return  e.which;
return-1;
}
function WA_onkeypress(e)
{
var ofVaD=fHxIl(e);
if(WA_Dialog.JCUYl)
{
if(WA_Dialog.JCUYl.onkeypress(ofVaD))
{
return false;
}
}
return ZgZPn("keypress",[ofVaD]);
}
function WA_ondblclick(e)
{
return ZgZPn("dblclic",[""]);
}
function WA_onkeydown(e)
{
var ofVaD=fHxIl(e)
if(WA_Dialog.JCUYl)
{
if(WA_Dialog.JCUYl.onkeydown(ofVaD))
{
return false;
}
}
if(ofVaD==13) return true;

if(wa_global_photo_album&&wa_global_photo_album.fullpage_object)
{
var HQXWr=wa_global_photo_album.fullpage_object
return HQXWr.onFullScreenKeydown(ofVaD) 
}
return ZgZPn("keydown",[ofVaD]);
}
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 IAWpP=this.id
var UvaNU=document.wa_global_handlers[IAWpP+"-mousewheel"]
if(UvaNU)
{
if(UvaNU([IAWpP],[delta]))
{
b_default=true;
}
}
}
}
if(b_default)
if(e.preventDefault)
e.preventDefault();
e.returnValue=!b_default;
}
function WA_addHandler(IAWpP,GPnQt_event,QFbNg)
{
if(document.wa_global_handlers==undefined) document.wa_global_handlers=new Array()
if(GPnQt_event=="mousewheel")
{
var agocI=document.getElementById(IAWpP);
if(agocI.addEventListener)
agocI.addEventListener('DOMMouseScroll',WA_genericMouseWheelHandler,false);
agocI.onmousewheel=WA_genericMouseWheelHandler
}
document.wa_global_handlers[IAWpP+"-"+GPnQt_event]=QFbNg
}
function WA_loadPhotoAlbum(IAWpP,WcGjx,KHKqj,IAWpP_modif)
{
if(typeof(wa_global_photo_album[IAWpP])=="undefined")
{
var o=new Array();
o.src_folder=WcGjx
o.size_container=KHKqj
o.id_modif=IAWpP_modif
wa_global_photo_album[IAWpP]=o;
}
}
function WA_focused_element()
{
return document.wa_global_focused_element
}
function WA_focus(HQXWr)
{
document.wa_global_focused_element=HQXWr.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(IAWpP_blog,IAWpP_button,FosAp)
{
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[IAWpP_button])document.wa_global_blogs_elements[IAWpP_button]=new Array()
document.wa_global_blogs_elements[IAWpP_button].id_blog=IAWpP_blog
document.wa_global_blogs_elements[IAWpP_button].has_email=FosAp
}
function WA_addSearchHandler(IAWpP)
{
return WA_addHandler(IAWpP,"keypress",HXSbK)
}
function HXSbK(IAWpP,lvXcx)
{
var ofVaD=lvXcx[0]
if(ofVaD==13)
{
var IAWpP_input=IAWpP+"-search-input";
WA_onSearch(IAWpP_input)
return false;
}
return true;
}
function WA_declareSearchIndex(ntSCr,sQQQb)
{
document.const_wa_search_js=ntSCr
document.const_wa_search_index_js=sQQQb
}
function WA_onSearch(IAWpP_input)
{
var GwIKR=document.getElementById(IAWpP_input);
if(document.wa_search_js_loaded==true)
{
WA_openSearchDialog(GwIKR,document.const_wa_search_index_js)
}
else
{
WA_Dialog.progress();
AHZwB(GwIKR)
}
}
function HPDxD(lvXcx)
{
document.wa_search_js_loaded=true
WA_openSearchDialog(lvXcx[0],document.const_wa_search_index_js)
}
function AHZwB(GwIKR_field)
{
WA_loadScript(document.const_wa_search_js,HPDxD,[GwIKR_field])
}
function BsxJS(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 BsxJS(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(IAWpP)
{
var jjSPc=document.wa_global_menu_declaration[IAWpP]
WA_bg(IAWpP,jjSPc.root_lx,jjSPc.root_ly,jjSPc.root_corner,jjSPc.root_border,jjSPc.root_col_border,[jjSPc.root_bg],false,0)
var YahVd=document.getElementById(jjSPc.id)
if(!YahVd)return;
var c=YahVd.getContext('2d');
c.lineWidth=1
c.strokeStyle=jjSPc.root_col_separator
var OKKim=0.5;

var nTeVA=jjSPc.root_sizes.length
if(jjSPc.root_extend==false)
{
nTeVA--;
}
var UUljM=3;
for(var i=0;i<nTeVA;i++)
{
var KHKqj=jjSPc.root_sizes[i] 

c.beginPath();
if(jjSPc.root_vertical==false)
{
OKKim+=(KHKqj-1)
c.moveTo(OKKim,UUljM)
c.lineTo(OKKim,jjSPc.root_ly-UUljM)
}
else
{
OKKim+=(KHKqj)
c.moveTo(UUljM,OKKim-1,0)
c.lineTo(jjSPc.root_lx-UUljM,OKKim-1)
}
c.closePath();
c.stroke()
}
}
function WA_declare_menu(IAWpP,jjSPc)
{
if(!document.wa_global_menu_declaration)document.wa_global_menu_declaration=new Array();
jjSPc.id=IAWpP
document.wa_global_menu_declaration[IAWpP]=jjSPc
WA_bg_menu(IAWpP)
}
function WA_declareMarket(IAWpP,KioxD,IAWpP_modif)
{
if(typeof(wa_global_market.markets[KioxD])=="undefined")
{
var o=new Array();
o.src_folder=KioxD
o.id_modif=IAWpP_modif 

o.id=IAWpP
wa_global_market.markets[KioxD]=o;
}
}
function WA_button_market_declare(IAWpP,hkZZk)
{
if(!document.wa_global_button_market_declaration)document.wa_global_button_market_declaration=new Array();
document.wa_global_button_market_declaration[IAWpP]=hkZZk
}
function moSik(c,img,xxmmi,NErgu,weLGf,tvhWD,jfSXH,YxQvE,tMifc)
{
c.globalAlpha=YxQvE
if(tMifc) c.clearRect(0,0,weLGf,tvhWD) 
if(YxQvE==0)return;
if(jfSXH)
{
c.drawImage(img,jfSXH.x,jfSXH.y,jfSXH.width,jfSXH.height,xxmmi,NErgu,weLGf,tvhWD)
}
else
{
c.drawImage(img,xxmmi,NErgu,weLGf,tvhWD)
}
}
function WA_drawImage(id,rujYt,xxmmi,NErgu,weLGf,tvhWD,jfSXH,YxQvE,tMifc)
{
if(tMifc==undefined)tMifc=true;
if(YxQvE==undefined)YxQvE=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==rujYt)
{
moSik(c,c.nauBh,xxmmi,NErgu,weLGf,tvhWD,jfSXH,YxQvE,tMifc)
return;
}
var img=new Image();
img.bVOFW=el.bVOFW
img.onload=function()
{
c.old_src=rujYt
c.nauBh=this;
moSik(c,this,xxmmi,NErgu,weLGf,tvhWD,jfSXH,YxQvE,tMifc)
}
img.src=rujYt;
}

-->
