<!--

function Delegate(){}
Delegate.create=function(o,f){
var LrVlq=new Array();
var CHOLA=arguments.length;
for(var i=2;i<CHOLA;i++) LrVlq[i-2]=arguments[i];
return function(){
var fFIJs=[].concat(arguments,LrVlq);
f.apply(o,fFIJs);
}
}
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.aDhqu=0;
t.BJdvB=0;
t.dKYkT=0;
t.fTIiA=0;
t.njtOG=0;
t.MTRvr=0;
t.daSJB=false;
t.name='';
t.suffixe='';
t.OgYiS=new Array();
t.setTime=function(t){
this.prevTime=this.BJdvB;
if(t>this.getDuration()){
if(this.looping){
this.rewind(t-this.aDhqu);
this.update();
this.NbRwb('onMotionLooped',{target:this,type:'onMotionLooped'});
}else{
this.BJdvB=this.aDhqu;
this.update();
this.stop();
this.NbRwb('onMotionFinished',{target:this,type:'onMotionFinished'});
}
}else if(t<0){
this.rewind();
this.update();
}else{
this.BJdvB=t;
this.update();
}
}
t.isRunning=function(){
return this.daSJB;
}
t.getTime=function(){
return this.BJdvB;
}
t.setDuration=function(d){
this.aDhqu=(d==null||d<=0)?100000:d;
}
t.getDuration=function(){
return this.aDhqu;
}
t.setPosition=function(p){
this.prevPos=this.dKYkT;
var a=this.suffixe!=''?this.suffixe:'';
this.obj[this.prop]=Math.round(p)+a;
this.dKYkT=p;
this.NbRwb('onMotionChanged',{target:this,type:'onMotionChanged'});
}
t.getPosition=function(t){
if(t==undefined) t=this.BJdvB;
return this.func(t,this.begin,this.change,this.aDhqu);
};
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.OgYiS=new Array();
this.addListener(this);
if(suffixe) this.suffixe=suffixe;
this.obj=obj;
this.prop=prop;
this.begin=begin;
this.dKYkT=begin;
this.setDuration(duration);
if(func!=null&&func!=''){
this.func=func;
}
this.setFinish(finish);
}
t.start=function(){
this.rewind();
this.startEnterFrame();
this.NbRwb('onMotionStarted',{target:this,type:'onMotionStarted'});
}
t.rewind=function(t){
this.stop();
this.BJdvB=(t==undefined)?0:t;
this.fixTime();
this.update();
}
t.fforward=function(){
this.BJdvB=this.aDhqu;
this.fixTime();
this.update();
}
t.update=function(){
this.setPosition(this.getPosition(this.BJdvB));
}
t.startEnterFrame=function(){
this.stopEnterFrame();
this.daSJB=true;
this.onEnterFrame();
}
t.onEnterFrame=function(){
if(this.daSJB){
this.nextFrame();
wa_timeout(Delegate.create(this,this.onEnterFrame),0);
}
}
t.nextFrame=function(){
this.setTime((this.getTimer()-this.njtOG)/1000);
}
t.stop=function(){
this.stopEnterFrame();
this.NbRwb('onMotionStopped',{target:this,type:'onMotionStopped'});
}
t.stopEnterFrame=function(){
this.daSJB=false;
}
t.continueTo=function(finish,duration){
this.begin=this.dKYkT;
this.setFinish(finish);
if(this.aDhqu!=undefined)
this.setDuration(duration);
this.start();
}
t.resume=function(){
this.fixTime();
this.startEnterFrame();
this.NbRwb('onMotionResumed',{target:this,type:'onMotionResumed'});
}
t.yoyo=function(){
this.continueTo(this.begin,this.BJdvB);
}
t.addListener=function(o){
this.removeListener(o);
return this.OgYiS.push(o);
}
t.removeListener=function(o){
var a=this.OgYiS;
var i=a.length;
while(i--){
if(a[i]==o){
a.splice(i,1);
return true;
}
}
return false;
}
t.NbRwb=function(){
var arr=new Array();
for(var i=0;i<arguments.length;i++){
arr.push(arguments[i])
}
var e=arr.shift();
var a=this.OgYiS;
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.njtOG=this.getTimer()-this.BJdvB*1000;
}
t.getTimer=function(){
return new Date().getTime()-this.BJdvB;
}
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,TYSBF,GMiGP,aDhqu){
this.targetObject=obj;
this.init(new Object(),'a',func,TYSBF,GMiGP,aDhqu);
this.onMotionChanged=function(evt){
var v=evt.target.dKYkT;
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(ehAZP,exRNc,nxlbf)
{
return "<canvas id='"+ehAZP+"' width='"+exRNc+"' height='"+nxlbf+"'></canvas>"
}
function WA_canvas(ehAZP,exRNc,nxlbf)
{
document.write(html_canvas(ehAZP,exRNc,nxlbf))
}
function DTevD(MVcDl,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;
MVcDl.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;
MVcDl.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;
MVcDl.quadraticCurveTo(cx,cy,px,py);
}
}
function aftZA(c,x,y,lx,ly,arc,clowckwise)
{
c.beginPath()
EOiua(c,x,y,lx,ly,arc,clowckwise)
}
function EOiua(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 aCVWJ()
{
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 kYbgE(lx,ly,parent,id_suffixe)
{
var eDvPn=document.createElement('canvas');eDvPn.width=lx;eDvPn.height=ly;
return eDvPn;
}
function CJTwS(rFosv)
{
var mxWrP=(-rFosv+45);
return new Point(Math.cos(mxWrP*(2*Math.PI)/360),Math.sin(mxWrP*(2*Math.PI)/360))
}
function msrGI(c,rFosv)
{
var offset=CJTwS(rFosv)
c.shadowOffsetX=2*offset.x;
c.shadowOffsetY=2*offset.y;
c.shadowBlur=4;
}
function WA_over_img_html(FIehP,Sjujn,VMeLp)
{
if(!FIehP.src)
{
var OIRPJ=FIehP.getElementsByTagName("IMG")
if(OIRPJ.length==1)FIehP=OIRPJ[0]
}
if(FIehP.src1==undefined)
{
FIehP.src1=FIehP.src;
FIehP.src2=Sjujn;
}
if(VMeLp)
{
FIehP.src=FIehP.src2;
}
else
{
FIehP.src=FIehP.src1;
}
}
function WA_over_img(id,VMeLp)
{
var el=document.getElementById(id+"-canvas") 

var FIehP=(VMeLp)?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,[FIehP,FIehP],el.wa_shadow,el.wa_rot,el.wa_reflex,VMeLp)
}
function fXFwH(ehAZP,lx,ly,arc,side)
{
this.id=ehAZP;
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.bhoXU=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 uKlrF=document.getElementById(this.id+"-reflex")
var FfuGs=uKlrF.getContext('2d');

var irMOv=0;
var ekFXU=0;
if(this.side==2)
{
irMOv=this.lx;
ekFXU=-this.ly*0.75;
}
else
if(this.side==0)
{
irMOv=this.lx;
}
else
if(this.side==3)
{
irMOv=0.25*this.lx;
}
else
if(this.side==1)
{
irMOv=this.lx;
}
FfuGs.translate(irMOv,ekFXU)
FfuGs.scale(-1,1)
FfuGs.beginPath()
aftZA(FfuGs,1,1,this.lx-2,this.ly-2,this.arc)
FfuGs.clip() 

FfuGs.drawImage(canv2,this.sX,this.sY,this.sLx,this.sLy,this.sX,this.sY,this.sLx,this.sLy);
FfuGs.globalCompositeOperation="destination-out";
var gradient=FfuGs.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)");
FfuGs.fillStyle=gradient;
FfuGs.beginPath()
FfuGs.rect(this.sX-this.decX,this.sY-this.decY,this.sLx,this.sLy);
FfuGs.fill();
FfuGs.globalCompositeOperation="source-over";
FfuGs.scale(-1,1)
FfuGs.translate(-irMOv,-ekFXU) 
}
}
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 tAhJU(c2,lx,ly,OtTsi,bord_col,arc,arc2)
{
if(OtTsi>0)
{
c2.beginPath()
c2.fillStyle=bord_col;
c2.beginPath()
aftZA(c2,0,0,lx,ly,arc)
EOiua(c2,OtTsi,OtTsi,lx-2*OtTsi,ly-2*OtTsi,arc2,true)
c2.fill()
}
}
function AMZjk()
{
this.tx=0
this.ty=0
this.rotation=0
}
function gHVbF(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 AMZjk()
}
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 Iqtnl=0;
if(shadow)Iqtnl=6
var LmJRs=id+"-canvas"
var el=document.getElementById(LmJRs)
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)-Iqtnl,div.wa_pos.y-Iqtnl)
html_SetCanvasSize(el,div.wa_size.height+2*Iqtnl,div.wa_size.width+2*Iqtnl)
html_SetCanvasSize(canv2,div.wa_size.height+4*Iqtnl,div.wa_size.width+4*Iqtnl)
html_SetSize(div,div.wa_size.height+2*Iqtnl,div.wa_size.width+2*Iqtnl) 
matrix.tx=ly+2*Iqtnl
matrix.ty=2*Iqtnl
}
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-Iqtnl,div.wa_pos.y-lx-Iqtnl)
html_SetCanvasSize(el,div.wa_size.height+2*Iqtnl,div.wa_size.width+2*Iqtnl)
html_SetCanvasSize(canv2,div.wa_size.height+4*Iqtnl,div.wa_size.width+4*Iqtnl)
html_SetSize(div,div.wa_size.height+2*Iqtnl,div.wa_size.width+2*Iqtnl) 
matrix.tx=2*Iqtnl
matrix.ty=lx+2*Iqtnl
}
matrix.rotation=rot*2*Math.PI/360
c2.translate(matrix.tx,matrix.ty)
c2.rotate(matrix.rotation)
}
}
function WA_img(id,lx,ly,arc,OtTsi,bord_col,s_img,shadow,rot,ZTDis,b_over)
{
var LmJRs=id+"-canvas"
var el=document.getElementById(LmJRs)
var c=el.getContext('2d');
var qjCEJ=false;
if((ZTDis!=undefined)&&(ZTDis!=-1))
{
qjCEJ=new fXFwH(LmJRs,lx,ly,arc,ZTDis)
}
var Iqtnl=0;
if(shadow)Iqtnl=6 


if(el.wa_lx==undefined)
{
el.wa_lx=lx
el.wa_ly=ly
el.wa_arc=arc
el.wa_bord_siz=OtTsi
el.wa_bord_col=bord_col
el.wa_s_img=s_img
el.wa_shadow=shadow
el.wa_rot=rot
el.wa_reflex=ZTDis
c.translate(Iqtnl,Iqtnl)
}
var rZmQp_img=document.getElementById(id+"-cache")
rZmQp_img.onload=function()
{
c.clearRect(0,0,lx+2*Iqtnl,ly+2*Iqtnl)
var arc2=arc-OtTsi;
if(arc2<0)arc2=0;
this.width=lx-2*OtTsi
this.height=ly-2*OtTsi
if(isMSIE())
{
if(shadow) itOfI(c,0,0,lx,ly,arc,false,rot)
var AECdM=c.createPattern(this,'no-repeat');
c.fillStyle=AECdM;
c.beginPath()
aftZA(c,OtTsi,OtTsi,lx-2*OtTsi,ly-2*OtTsi,arc2)
c.translate(OtTsi,OtTsi)
c.fill()
c.translate(-OtTsi,-OtTsi)
tAhJU(c,lx,ly,OtTsi,bord_col,arc,arc2)
}
else
if(navigator.userAgent.match(/Firefox/i)&&(shadow))
{
var bVFHn=new  AMZjk()
gHVbF(id,lx,ly,rot,c,el,shadow,bVFHn)
if(shadow) itOfI(c,0,0,lx,ly,arc,false,rot)
var c2=c
tAhJU(c2,lx,ly,OtTsi,bord_col,arc,arc2)
c2.beginPath()
aftZA(c2,OtTsi,OtTsi,lx-2*OtTsi,ly-2*OtTsi,arc2)
c2.clip()
c2.drawImage(this,OtTsi,OtTsi,lx-2*OtTsi,ly-2*OtTsi);
c2.rotate(-bVFHn.rotation)
c2.translate(-bVFHn.tx,-bVFHn.ty)
}
else
{
var canv2=kYbgE(lx,ly,el,"bis2");
var c2=canv2.getContext('2d');
var bVFHn=new  AMZjk()
gHVbF(id,lx,ly,rot,c2,canv2,shadow,bVFHn)
c.clearRect(-Iqtnl,-Iqtnl,lx+2*Iqtnl,ly+2*Iqtnl)
tAhJU(c2,lx,ly,OtTsi,bord_col,arc,arc2)
c2.beginPath()
aftZA(c2,OtTsi,OtTsi,lx-2*OtTsi,ly-2*OtTsi,arc2)
c2.clip()
c2.drawImage(this,OtTsi,OtTsi,lx-2*OtTsi,ly-2*OtTsi);
c2.rotate(-bVFHn.rotation)
c2.translate(-bVFHn.tx,-bVFHn.ty)
if(shadow) msrGI(c,rot)
c.drawImage(canv2,0,0);
c2.translate(bVFHn.tx,bVFHn.ty)
c2.rotate(bVFHn.rotation)
if(qjCEJ)
{
qjCEJ.bhoXU(canv2)
}
}
}
rZmQp_img.src=s_img[0];
}
function LgYlM(PDagn,rFosv,DbZXe,OwYjq)
{
PDagn.style.left=DbZXe+"px"
PDagn.style.top=OwYjq+"px"
PDagn.style.webkitTransformOrigin="0 0"
PDagn.style.webkitTransform="rotate("+rFosv+"deg)";
}
function jfmGc(c,type,lx,ly,corner)
{
if(type==1)
DTevD(c,0,0,lx,ly)
else
aftZA(c,0,0,lx,ly,corner)
}
function IQask(el,c,type,lx,ly,corner,bg,DqtqP,rot)
{
if(aCVWJ()==false)
{
c.fillStyle=bg;
jfmGc(c,type,lx,ly,corner)
c.fill()
}
else
{
var canv2=kYbgE(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.fillStyle=bg;
jfmGc(c2,type,lx,ly,corner)
c2.fill()
if(DqtqP) msrGI(c,rot)
c.drawImage(canv2,0,0);
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
}
}
function IAQgL(c,type,lx,ly,WLApr,bg,FixaC,HWdUD_glow)
{
if(FixaC)
{
var x1=FixaC[0];var y1=FixaC[1];var lx1=FixaC[2];var ly1=FixaC[3];var gCFOs=FixaC[4];
var EXULb=c.createLinearGradient(x1,y1,x1,y1+ly1);
EXULb.addColorStop(0,"rgba(255,255,255,0.7)");EXULb.addColorStop(1,"rgba(255,255,255,0.1)");
c.fillStyle=EXULb;
if(type==1) DTevD(c,x1,y1,lx1,ly1)
else
aftZA(c,x1,y1,lx1,ly1,gCFOs)
c.fill()
}
if(HWdUD_glow)
{
var x2=HWdUD_glow[0];var y2=HWdUD_glow[1];var lx2=HWdUD_glow[2];var ly2=HWdUD_glow[3];
var aAKxc=HWdUD_glow[4];
var csYTu_glow=new RGBColor(HWdUD_glow[5]);
csYTu_glow.a=0;
var col1=HWdUD_glow[5];
var col2=csYTu_glow.toRGB();
var fwQAe=c.createLinearGradient(x2,y2,x2,y2+ly2);
fwQAe.addColorStop(0,col2);
fwQAe.addColorStop(0.2,col2);
fwQAe.addColorStop(1,col1);
c.fillStyle=fwQAe;
if(type==1) DTevD(c,x2,y2,lx2,ly2)
else
aftZA(c,x2,y2,lx2,ly2,aAKxc)
c.fill()
}
}
function dCjRs(ZUDBe,ehAZP,tEgPN,exRNc,nxlbf,WLApr,Lvmka,FixaC,HWdUD_glow,DqtqP,rFosv)
{
ZUDBe.ehAZP=ehAZP;ZUDBe.tEgPN=tEgPN;
ZUDBe.exRNc=exRNc;ZUDBe.nxlbf=nxlbf;
ZUDBe.WLApr=WLApr;ZUDBe.Lvmka=Lvmka,ZUDBe.FixaC=FixaC;
ZUDBe.HWdUD_glow=HWdUD_glow;ZUDBe.DqtqP=DqtqP;ZUDBe.rFosv=rFosv;
}
function WA_but_over(ehAZP,Lvmka_over,csYTu_glow)
{
var kRQWE=document.getElementById(ehAZP) 
if(kRQWE&&kRQWE.qvaBj)
with(kRQWE.qvaBj)
{
var HWdUD_glow_over;
if(HWdUD_glow&&csYTu_glow)
{
HWdUD_glow_over=new Array();
for(var Mkocd=0;Mkocd<HWdUD_glow.length;Mkocd++)HWdUD_glow_over[Mkocd]=HWdUD_glow[Mkocd];
HWdUD_glow_over[5]=csYTu_glow;
}
WA_but(ehAZP,tEgPN,exRNc,nxlbf,WLApr,Lvmka_over,FixaC,HWdUD_glow_over,DqtqP,rFosv);
}
var BoPeu_over0=document.getElementById(ehAZP+"-div0")
if(BoPeu_over0)html_SetVisibility(BoPeu_over0,false);
var sHaMp=document.getElementById(ehAZP+"-div1")
if(sHaMp)html_SetVisibility(sHaMp,true);
}
function WA_but_out(ehAZP)
{
var kRQWE=document.getElementById(ehAZP)
with(kRQWE.qvaBj)
{
WA_but(ehAZP,tEgPN,exRNc,nxlbf,WLApr,Lvmka,FixaC,HWdUD_glow,DqtqP,rFosv);
}
var BoPeu_over0=document.getElementById(ehAZP+"-div0")
if(BoPeu_over0)html_SetVisibility(BoPeu_over0,true);
var sHaMp=document.getElementById(ehAZP+"-div1")
if(sHaMp)html_SetVisibility(sHaMp,false);
}
function WA_but(id,type,lx,ly,corner,bg,top_light,s_glow,DqtqP,rot)
{
var el=document.getElementById(id)
if(el.qvaBj==undefined)
{
el.qvaBj=new Array();
dCjRs(el.qvaBj,id,type,lx,ly,corner,bg,top_light,s_glow,DqtqP,rot);
}
var c=el.getContext('2d');
var Iqtnl=0;
if(DqtqP)Iqtnl=6 
c.fillStyle="#000000";
c.fillRect(0,0,lx+2*Iqtnl,ly+2*Iqtnl) 
c.clearRect(0,0,lx+2*Iqtnl,ly+2*Iqtnl) 
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(aCVWJ()==false)
{
c.translate(Iqtnl,Iqtnl)
img.width=lx
img.height=ly 
if(DqtqP)
itOfI(c,0,0,lx,ly,corner,(type==1),rot)
if(navigator.userAgent.match(/Firefox/i))
{
c.beginPath()
jfmGc(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()
jfmGc(c,type,lx,ly,corner)
c.fill()
}
IAQgL(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-Iqtnl,-Iqtnl)
}
else
{
var canv2=kYbgE(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.beginPath()
jfmGc(c2,type,lx,ly,corner)
c2.clip()
c2.drawImage(img,0,0,lx,ly);
IAQgL(c2,type,lx,ly,corner,bg,top_light,s_glow)
if(DqtqP) msrGI(c,rot) 
c.drawImage(canv2,Iqtnl,Iqtnl);
}
}
img.src=bg2;
return;
}
c.translate(Iqtnl,Iqtnl) 
if(DqtqP&&(aCVWJ()==false))
{
var eAvoZ=new RGBColor(bg);
if(eAvoZ.a>0)
{
itOfI(c,0,0,lx,ly,corner,(type==1),rot)
}
}
IQask(el,c,type,lx,ly,corner,bg2,DqtqP,rot)
IAQgL(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-Iqtnl,-Iqtnl)
}
function itOfI(c,x0,y0,lx0,ly0,corner,is_circle,rot)
{
var decShadow=2;
var offset=CJTwS(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) DTevD(c,x,y,lx,ly);else aftZA(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 UipVb(id,x,y,lx,ly,arc,OtTsi,bord_col,bg,shadow,rot,tGxeS,CXITJ)
{
if(CXITJ==undefined)CXITJ=true;
var el=document.getElementById(id)
var c=el.getContext('2d');
if(tGxeS==undefined)tGxeS=1.0;
var Iqtnl=0;
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
if(shadow)
{
Iqtnl=6;
}
if(CXITJ) c.clearRect(0,0,el.width,el.height)
c.globalAlpha=tGxeS 
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 GYPWW=bg1.split(";");
var x1=parseFloat(GYPWW[0]);
var y1=parseFloat(GYPWW[1]);
var x2=parseFloat(GYPWW[2]);
var y2=parseFloat(GYPWW[3]);
var col1=GYPWW[4];
var col2=GYPWW[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-OtTsi;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
{
if(shadow) itOfI(c,Iqtnl,Iqtnl,lx,ly,arc,false,rot)
}
if(OtTsi>0)
{
c2.fillStyle=bord_col;
aftZA(c2,x,y,lx,ly,arc)
EOiua(c2,x+OtTsi,y+OtTsi,lx-2*OtTsi,ly-2*OtTsi,arc2,true)
c2.fill()
}


c2.fillStyle=fill_obj 
aftZA(c2,x+OtTsi,y+OtTsi,lx-2*OtTsi,ly-2*OtTsi,arc2)
c2.fill();
}
function whxiM(xKtLd,uQYDA,wPxYo)
{
return new Point(Math.round(xKtLd*Math.cos(wPxYo)-uQYDA*Math.sin(wPxYo)),Math.round(xKtLd*Math.sin(wPxYo)+uQYDA*Math.cos(wPxYo)))
}
function KnvDR(c,x,y,lx,ly,arc,clowckwise,rFosv)
{
c.beginPath()
rjOpB(c,x,y,lx,ly,arc,clowckwise,rFosv)
}
function rjOpB(c,x,y,lx,ly,arc,clowckwise,rFosv)
{
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 XHrip=[[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=rFosv*2*Math.PI/360
for(var n=0;n<XHrip.length;n++)
{
var offRL=XHrip[n][0]
var eYSkN=XHrip[n][1]
XHrip[n][0]=offRL*Math.cos(theta)-eYSkN*Math.sin(theta);
XHrip[n][1]=offRL*Math.sin(theta)+eYSkN*Math.cos(theta);
}
var n=0;
c.moveTo(XHrip[n][0],XHrip[n++][1]);
c.lineTo(XHrip[n][0],XHrip[n++][1]);
c.quadraticCurveTo(XHrip[n][0],XHrip[n++][1],XHrip[n][0],XHrip[n++][1]);
c.lineTo(XHrip[n][0],XHrip[n++][1]);
c.quadraticCurveTo(XHrip[n][0],XHrip[n++][1],XHrip[n][0],XHrip[n++][1]);
c.lineTo(XHrip[n][0],XHrip[n++][1]);
c.quadraticCurveTo(XHrip[n][0],XHrip[n++][1],XHrip[n][0],XHrip[n++][1]);
c.lineTo(XHrip[n][0],XHrip[n++][1]);
c.quadraticCurveTo(XHrip[n][0],XHrip[n++][1],XHrip[n][0],XHrip[n++][1]);
}
function YagaS(a,b,x,y)
{
return(a*x-y+b)/(Math.sqrt(1+a*a))
}
function EZTIC(new_a1,new_b1,XihQP,multi)
{
var d=0;
for(var i=0;i<XihQP.length;i++)
{
var sNGei=XihQP[i]
var d1=YagaS(new_a1,new_b1,sNGei.x,sNGei.y)
if(multi<0)
{
if(d1<0) d=Math.max(d,-d1);
}
else
{
if(d1>0) d=Math.max(d,d1);
}
}
return d;
}
function CWGim(o1,o2)
{
if(o1<o2) return-1
if(o1>o2) return 1
return 0
}
function nhfFB(c,lx,ly,bg1)
{
var fill_obj=false;
var mbdrQ=false;
var tDjIw=false;
var XihQP=false
if(bg1.substring(0,1)=="(")
{
bg1=bg1.substring(1);
bg1=bg1.substring(0,bg1.length-1)
var GYPWW=bg1.split(";");
var RSCvW=new Point(parseFloat(GYPWW[0]),parseFloat(GYPWW[1]));
var KFwPr=new Point(parseFloat(GYPWW[2]),parseFloat(GYPWW[3]));
mbdrQ=RSCvW.clone()
tDjIw=KFwPr.clone()
var col1=GYPWW[4];
var col2=GYPWW[5];
var grad=c.createLinearGradient(mbdrQ.x,mbdrQ.y,tDjIw.x,tDjIw.y);
if(isMSIE())
{
mbdrQ=RSCvW.clone()
tDjIw=KFwPr.clone() 
var EXULb=0;
var fwQAe=1;
{
XihQP=[{x:0,y:0},{x:lx,y:0},{x:lx,y:ly},{x:0,y:ly}]
var d1=0;
var d2=0;
var a=(tDjIw.y-mbdrQ.y)/(tDjIw.x-mbdrQ.x);
var b=mbdrQ.y-a*mbdrQ.x;
var diff=1;
if(a==Infinity)
{
d1=(mbdrQ.y)
d2=(ly-tDjIw.y)
}
else
if(a==0)
{
d1=(mbdrQ.x)
d2=(lx-tDjIw.x)
}
else
{
var new_a1=-1/a;
var new_b1=mbdrQ.y-new_a1*mbdrQ.x;
d1=EZTIC(new_a1,new_b1,XihQP,-1)
var new_b2=tDjIw.y-new_a1*tDjIw.x;
d2=EZTIC(new_a1,new_b2,XihQP,1)
if(new_a1<0)diff=-1;
}
var d=Math.sqrt(Math.pow(tDjIw.x-mbdrQ.x,2)+Math.pow(tDjIw.y-mbdrQ.y,2))
var total=(d1+d+d2)
EXULb=d1/total;
fwQAe=(d1+d)/total;
var pt_prod0=new Point(tDjIw.x-mbdrQ.x,tDjIw.y-mbdrQ.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)
{
EXULb=d2/total;
fwQAe=(d2+d)/total;
}
}
grad.addColorStop(EXULb,col1);
grad.addColorStop(fwQAe,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,OtTsi,bord_col,bg,shadow,rot,ewnQr,jpkFM,tGxeS,CXITJ)
{


var theta=rot*2*Math.PI/360 
if(CXITJ==undefined)CXITJ=true;
if(tGxeS==undefined)tGxeS=1.0;
var el=document.getElementById(id)
if(!el)return
var c=el.getContext('2d');
var Iqtnl=(el.width-lx)/2;
if(CXITJ) c.clearRect(0,0,el.width,el.height)
var x_rect0=Iqtnl;
var y_rect0=Iqtnl;
var bg1=bg[0]
var fill_obj=false;
var mbdrQ=false;
var tDjIw=false;
var XihQP=false
fill_obj=nhfFB(c,lx,ly,bg1) 
if(tGxeS==undefined)tGxeS=1.0;
var arc2=arc-OtTsi;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
if(shadow)
{
c2.translate(ewnQr+6,jpkFM+6)
}
else
{
c2.translate(ewnQr,jpkFM)
}
c2.fillStyle=fill_obj;
KnvDR(c2,OtTsi,OtTsi,lx-2*OtTsi,ly-2*OtTsi,arc2,false,rot)
c2.fill();
}
function WA_bg(id,lx,ly,arc,OtTsi,bord_col,bg,shadow,rot,tGxeS,CXITJ)
{

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

var fill_obj=nhfFB(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()
NoLeh(c,el,lx,ly,arc,OtTsi,bord_col,ptrn,shadow,rot,tGxeS)
}
img.src=bg2;
}
else
{
NoLeh(c,el,lx,ly,arc,OtTsi,bord_col,fill_obj,shadow,rot,tGxeS)
}
}
function NoLeh(c,el,lx,ly,arc,OtTsi,bord_col,fill_obj,shadow,rot,tGxeS)
{
if(tGxeS==undefined)tGxeS=1.0;
var arc2=arc-OtTsi;
if(arc2<0)arc2=0
var Iqtnl=(el.width-lx)/2;
var x_rect0=Iqtnl;
var y_rect0=Iqtnl;
var canv2=false;
var c2=c;
c.globalAlpha=tGxeS
if(aCVWJ()==true)
{
canv2=kYbgE(lx,ly);
c2=canv2.getContext('2d');
c2.globalAlpha=tGxeS
}
else
{
c2.translate(Iqtnl,Iqtnl)
if(shadow) itOfI(c,0,0,lx,ly,arc,false,rot)
}
if(OtTsi>0)
{
c2.fillStyle=bord_col;
aftZA(c2,0,0,lx,ly,arc)
EOiua(c2,OtTsi,OtTsi,lx-2*OtTsi,ly-2*OtTsi,arc2,true)
c2.fill()
}
c2.fillStyle=fill_obj;
aftZA(c2,OtTsi,OtTsi,lx-2*OtTsi,ly-2*OtTsi,arc2)
c2.fill();
if(aCVWJ()==true)
{
if(shadow) msrGI(c,rot)
c.drawImage(canv2,Iqtnl,Iqtnl);
}
else
{
c2.translate(-Iqtnl,-Iqtnl)
}
}
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(HWdUD){return(this.width>HWdUD.width)&&(this.height>HWdUD.height)}
this.scale=function(HUjUt,uuesx)
{
if(!uuesx)uuesx=false
var FgMYF=this;
var XIrYQ=FgMYF.width
var lnRgO=FgMYF.height
var p1=XIrYQ*HUjUt.height;
var p2=HUjUt.width*lnRgO;
var r1=XIrYQ/lnRgO;
var r2=lnRgO/XIrYQ;
var newSize1=new Size(HUjUt.height*r1,HUjUt.height);
var newSize2=new Size(HUjUt.width,HUjUt.width*r2);
if(p2>p1)
{
if((uuesx==true)||((newSize1.width<=FgMYF.width)&&(newSize1.height<=FgMYF.height)))
{
FgMYF.width=Math.round(newSize1.width);
FgMYF.height=Math.round(newSize1.height);
}
}
else
{
if((uuesx==true)||((newSize2.width<=FgMYF.width)&&(newSize2.height<=FgMYF.height)))
{
FgMYF.width=Math.round(newSize2.width);
FgMYF.height=Math.round(newSize2.height);
}
}
this.width=FgMYF.width;
this.height=FgMYF.height;
return true;
}
}
function Point(p_x,p_y){this.x=p_x;this.y=p_y;
this.translate=function(xKtLd,uQYDA){this.x+=xKtLd;this.y+=uQYDA;}
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(PDagn){return(this.x==PDagn.x)&&(this.y==PDagn.y)&&(this.width==PDagn.width)&&(this.height==PDagn.height);}
this.copy=function(PDagn){this.x=PDagn.x;this.y=PDagn.y;this.width=PDagn.width;this.height=PDagn.height;}
this.translate=function(xKtLd,uQYDA){this.x+=xKtLd;this.y+=uQYDA;}
this.isValid=function(){return(this.width>0)&&(this.height>0);}
}
function html_getLayer(PDagn)
{
if(typeof(PDagn)=="string")return document.getElementById(PDagn);
return PDagn;
}
function html_SetPosition(PDagn,xKtLd,uQYDA){
PDagn=html_getLayer(PDagn);
PDagn.style.left=xKtLd+"px";PDagn.style.top=uQYDA+"px";
}
function html_SetSize(HWJIW,exRNc,nxlbf){
PDagn=html_getLayer(HWJIW);
PDagn.style.width=exRNc+"px";PDagn.style.height=nxlbf+"px";
}
function html_SetRect(PDagn,bYATa){html_SetGeometry(PDagn,bYATa.x,bYATa.y,bYATa.width,bYATa.height);}
function html_SetGeometry(PDagn,xKtLd,uQYDA,exRNc,nxlbf){html_SetPosition(PDagn,xKtLd,uQYDA);html_SetSize(PDagn,exRNc,nxlbf);}
function html_SetVisibility(PDagn,MHHNx){PDagn=html_getLayer(PDagn);PDagn.style.visibility=(MHHNx)?"visible":"hidden";}
function html_SetDisplay(PDagn,MHHNx){PDagn=html_getLayer(PDagn);PDagn.style.display=(MHHNx)?"block":"none";}
function html_SetCanvasSize(PDagn,exRNc,nxlbf){PDagn=html_getLayer(PDagn);PDagn.width=exRNc;PDagn.height=nxlbf;}
function html_writeContent(PDagn,HWdUD){PDagn=html_getLayer(PDagn);PDagn.innerHTML=HWdUD;}
function html_SetOpacity(PDagn,LrVlq)
{
PDagn=html_getLayer(PDagn);
PDagn.style['opacity']=LrVlq;
PDagn.style['-moz-opacity']=LrVlq;
PDagn.style.filter=(LrVlq==1)?'':'alpha(opacity='+(LrVlq*100)+')';
}
var gfuFK=[
{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<gfuFK.length;i++)
{
var array2=gfuFK[i].l;
for(var i2=0;i2<array2.length;i2++)
{
var reg=new RegExp(array2[i2],"g");
res=res.replace(reg,gfuFK[i].acc)
}
}
return res;
}
function trimString(str)
{
return str.replace(/^\s*|\s*$/g,"");
}
function IsNumeric(sMcLv)
{
var jcGvn="0123456789.";var rJURY=true;var HCjVL;
for(Mkocd=0;Mkocd<sMcLv.length&&rJURY==true;Mkocd++){HCjVL=sMcLv.charAt(Mkocd);if(jcGvn.indexOf(HCjVL)==-1) rJURY=false;}
return rJURY;
}
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(HDXQw)
{
var dliba=HDXQw*60;
var FsEIf=new Date();
var ILQbk=0;
ILQbk+=FsEIf.getYear()*12*31*24*60*60;
ILQbk+=FsEIf.getMonth()*31*24*60*60;
ILQbk+=FsEIf.getDate()*24*60*60;
ILQbk+=FsEIf.getHours()*60*60;
ILQbk+=FsEIf.getMinutes()*60;
ILQbk+=FsEIf.getSeconds();
if(dliba!=0)
{
ILQbk=Math.floor(ILQbk/dliba)*dliba
}
return "-"+ILQbk;
}
function urlAntiCacheForPreview()
{
if(document.webaca_is_preview) return urlSuffixe(0);
return "";
}
function html_findPos(obj)
{
var LrVlq=WSOoC(obj)
return new Point(LrVlq[0],LrVlq[1])
}
function WSOoC(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(eoubd,exRNc,nxlbf)
{
document.write("<input id='"+eoubd+"' type=search results=0 placeholder='' style='width:"+exRNc+"px;height:"+nxlbf+"px;'>")
}
function xPbSW()
{
var OIRPJ=document.getElementsByTagName("A");
for(var Mkocd=0;Mkocd<OIRPJ.length;Mkocd++)
{
var PDagn=OIRPJ[Mkocd];
if(PDagn.onmouseover)PDagn.onmouseover=null;
if(PDagn.onmouseout)PDagn.onmouseout=null;
}
}
function ScoeY()
{
for(var WNIdM in document.wa_global_list_element)
{
var ehAZP=document.wa_global_list_element[WNIdM]
var kRQWE=document.getElementById(ehAZP)
kRQWE.onclick=function()
{
WA_focus(this)
}
}
}
function WA_declare(ehAZP)
{
if(!document.wa_global_list_element)
{
document.wa_global_list_element=new Array();;
}
document.wa_global_list_element.push(ehAZP)
}
function FmOKW()
{
var JZVQG=window.location.search;
if(JZVQG.substr(0,1)=="?")JZVQG=JZVQG.substr(1);
if(JZVQG.length==0)return;
var tKFJL=new Array();
var GxKGG=JZVQG.split("&");
for(var i=0;i<GxKGG.length;i++)
{
var HnQJN=GxKGG[i].split("=");tKFJL[HnQJN[0]]=HnQJN[1];
}
var HWdUD_info=tKFJL["crbst_info"];
if(!HWdUD_info)return;
var gMLLJ=new Array();
gMLLJ.m_unid=HWdUD_info;
gMLLJ.m_index_item=-1;
var UIuSH=HWdUD_info.indexOf("-");
if(UIuSH!=-1)
{
gMLLJ.m_unid="wa-id-"+HWdUD_info.substring(0,UIuSH);
gMLLJ.m_index_item=parseInt(HWdUD_info.substring(UIuSH+1));
}
document.wa_global_query_info=gMLLJ;
}
function IS_onload_WA()
{

if(isMSIE8())
{
wa_timeout("IS_onload_ui()",0)
}
else
{
IS_onload_ui()
}
if(isIPhone())
{
xPbSW()
}
else
{
ScoeY()
}
FmOKW();

pwUWb()
}
function pwUWb()
{
var QtYwo=0;
var oufIM=document.webaca_banner_height;
if(document.webaca_page_is_centered)
{
var HqIQM=getWindowSize().width
var qYbdJ=document.webaca_width_page
if(HqIQM>qYbdJ)QtYwo=(HqIQM-qYbdJ)/2;
}
document.body.style.backgroundPosition=QtYwo+"px "+oufIM+"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 pksHN=CONST_WA_COUNTRIES.codes[n]
var GeSpA=CONST_WA_COUNTRIES.labels[n]
Translator.m_countries[pksHN]=GeSpA
}
}
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(ehAZP,Hlbxb,DqtqP)
{
this.ehAZP=ehAZP;
this.Hlbxb=Hlbxb
this.DqtqP=DqtqP;
this.pueaL=this.ehAZP+"-div"
this.GcNDE=this.ehAZP+"-canvas"
this.pHfrD=new Rect(0,0,0,0)
this.CTIct=false;
this.iHmVJ=false;
this.Iqtnl=6;
this.DfoWh=false;
this.LoXtZ=false;
this.EuYUt=false;
this.btGeZ="";
this.shadow=function()
{
return this.DqtqP;
}
this.marginShadow=function()
{
return this.Iqtnl;
}
this.rect=function()
{
return this.pHfrD;
}
this.canvasId=function()
{
return this.GcNDE;
}
this.divId=function()
{
return this.pueaL;
}
this.opacity=function()
{
return this.GRVvr;
}
this.img_clip=function()
{
return this.LoXtZ;
}
this.img_src=function()
{
return this.DfoWh;
}
this.toHtml=function()
{
var HWdUD=""
HWdUD+="<div id='"+this.pueaL+"' style=\"";
HWdUD+="position:absolute;";
if(this.btGeZ.length>0)
{
HWdUD+="cursor:pointer;";
}
if(this.rect.x>0)HWdUD+="left:"+this.rect.x+"px;";
if(this.rect.y>0)HWdUD+="top:"+this.rect.y+"px;";
if(this.rect.width>0)HWdUD+="width:"+this.rect.width+"px;";
if(this.rect.height>0)HWdUD+="height:"+this.rect.height+"px;";
if(Hlbxb)
HWdUD+="z-index:"+Hlbxb+";";
HWdUD+="\" ";
if(this.btGeZ.length>0)
{
HWdUD+="onclick=\""+this.btGeZ+"\" "
}
HWdUD+=">";
if((this.rect.width>0)&&this.shadow())
{
HWdUD+=html_canvas(this.GcNDE,this.rect.width+2*this.Iqtnl,this.rect.height+2*this.Iqtnl)+"</div>";
}
else
{
HWdUD+=html_canvas(this.GcNDE,0,0)+"</div>";
}
return HWdUD
}
this.setImage=function(kchWX,mxetW,rFosv)
{
if(rFosv==undefined)rFosv=0;
if((kchWX==this.DfoWh)&&(this.LoXtZ&&this.LoXtZ.equals(mxetW))&&(this.EuYUt==rFosv))
{
return;
}
this.EuYUt=rFosv;
this.DfoWh=kchWX;
this.LoXtZ=mxetW;
this.GSKJQ()
}
this.registerDynamicCanvas=function()
{
registerDynamicCanvas(this.GcNDE);
this.iHmVJ=true;
this.setRect(this.pHfrD.x,this.pHfrD.y,this.pHfrD.width,this.pHfrD.height)
}
this.GSKJQ=function()
{
if((this.pHfrD.width>0)&&(this.pHfrD.height>0))
{
this.draw()
}
this.CTIct=true
};
this.draw=function(){};
this.setPosition=function(xKtLd,uQYDA)
{
this.pHfrD.x=xKtLd;this.pHfrD.y=uQYDA;
if(this.iHmVJ==false)return
html_SetPosition(this.pueaL,this.pHfrD.x,this.pHfrD.y)
if(this.CTIct==false)
{
this.GSKJQ()
}
}
this.setOnClick=function(HWdUD)
{
this.btGeZ=HWdUD
}
this.width=function(){return this.pHfrD.width;}
this.height=function(){return this.pHfrD.height;}
this.setSize=function(exRNc,nxlbf)
{
this.pHfrD.width=exRNc;this.pHfrD.height=nxlbf;
var ouMZY=exRNc
var SjsFR=nxlbf
if(this.DqtqP)
{
ouMZY+=2*this.Iqtnl
SjsFR+=2*this.Iqtnl
}
if(this.iHmVJ==false)return
html_SetSize(this.pueaL,ouMZY,SjsFR)
html_SetCanvasSize(this.GcNDE,exRNc,nxlbf)
this.GSKJQ()
}
this.setRect=function(xKtLd,uQYDA,exRNc,nxlbf)
{
this.pHfrD.x=xKtLd;this.pHfrD.y=uQYDA;this.pHfrD.width=exRNc;this.pHfrD.height=nxlbf;
var ouMZY=exRNc
var SjsFR=nxlbf
var hkmUA=xKtLd
var ibEge=uQYDA
if(this.DqtqP)
{
ouMZY+=2*this.Iqtnl
SjsFR+=2*this.Iqtnl
hkmUA-=this.Iqtnl
ibEge-=this.Iqtnl
}
if(this.iHmVJ==false)return 
html_SetGeometry(this.pueaL,hkmUA,ibEge,ouMZY,SjsFR);
html_SetCanvasSize(this.GcNDE,ouMZY,SjsFR)
try{this.GSKJQ()}catch(e){
alert(e.message)
}
}
this.setVisible=function(MHHNx)
{
if(this.iHmVJ==false)return
html_SetVisibility(this.pueaL,MHHNx)
}
this.setOpacity=function(LrVlq)
{
this.GRVvr=LrVlq 
if(this.iHmVJ==false)return
this.GSKJQ()
}
}

function is_onresize()
{
WA_Dialog.resizeUI()
try
{
if(WA_PhotoAlbum_resizeUI)WA_PhotoAlbum_resizeUI()
}
catch(e){}
pwUWb()
}
function is_onscroll()
{
centerFullPageContainer();
}
function registerDynamicCanvas(id)
{
if(isMSIE())
G_vmlCanvasManager.initElement(document.getElementById(id));
}
function WA_openDialogAction(WNIdM)
{
var kIsNf=WA_Dialog.tUVtt;
if(WNIdM==-1){kIsNf.closeWin();return;}
var CtAMA=kIsNf.oAUnX(WNIdM);
if(CtAMA[5])
{
CtAMA[4].call(CtAMA[6],CtAMA[5])
}
else
{
CtAMA[4](CtAMA[5]);
}
}
function WA_Dialog(MHHNx_close_button)
{
this.beLYv=0;
this.LTGQQ=0;
this.HUjUt_win_width=600;
this.HUjUt_win_height=400;
this.DZNFO=new Array();
this.KTkAS="wa-dialog-but-";
this.VJQZk=this.KTkAS+"div-";
this.XPEGC=this.KTkAS+"canvas-";
this.BUTTON_HEIGHT=22;
this.fSdnA=CONST_WA_GLOBAL_COLOR_THEME;
this.MHHNx_close_button=MHHNx_close_button;
this.poqEL=6;
this.tnwHg=function()
{
if(this.MHHNx_close_button==undefined)this.MHHNx_close_button=true;
this.vCmpW();
}
this.resetButtons=function()
{
this.vCmpW();
}
this.idealHeight=function()
{
return this.XsEvu
}
this.displayWindowWithAutoResize=function(ttecN,Jplsx)
{
this.ekuUn=false
this.XsEvu=ttecN
this.ShnOi=Jplsx 
this.resetButtons();
Jplsx.call(this)
var l=document.getElementById('wa-dialog-content');
if(this.ekuUn==false)
if(l.scrollHeight>200)
{
this.ekuUn=true
this.XsEvu=l.scrollHeight+150
this.resetButtons();
Jplsx.call(this)
}
}
this.initializeWindow=function(HUjUt_lx,HUjUt_ly)
{
if(WA_Dialog.tUVtt)WA_Dialog.tUVtt.closeWin()
WA_Dialog.tUVtt=this;
this.HUjUt_win_width=HUjUt_lx;
this.HUjUt_win_height=HUjUt_ly;
this.JTYFL()
}
this.progress=function()
{
this.initializeWindow(300,100)
this.writeContent("<div width=100% align=center><img src='wa_loading.gif'></div>")
}
this.HgHJb=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(GeSpA,ASjgZ,rZmQp,mPKBL)
{
var BdNKV=this.DZNFO.length
if(this.MHHNx_close_button==true)
{
BdNKV--;
}
var exRNc=Math.max((GeSpA.length*8)*1.2+30,80)
var FgMYF=new Size(exRNc,this.BUTTON_HEIGHT);
this.idalu("action_"+BdNKV,BdNKV,GeSpA,ASjgZ,FgMYF,rZmQp,mPKBL)
}
this.vCmpW=function()
{
this.DZNFO=new Array();
if(this.MHHNx_close_button)
{

var FgMYF=new Size(50,20);
this.idalu("close",-1,"X",null,FgMYF)
}
}
this.idalu=function(OEjlO,BdNKV,GeSpA,ASjgZ,FgMYF,rZmQp,mPKBL)
{
var CtAMA=[OEjlO,FgMYF,BdNKV,GeSpA,ASjgZ,rZmQp,mPKBL];
this.DZNFO.push(CtAMA);
}
this.writeContent=function(s)
{
var l=document.getElementById('wa-dialog-content');
l.innerHTML=s
}
this.oAUnX=function(OEjlO)
{
for(var WNIdM=0;WNIdM<this.DZNFO.length;WNIdM++)
{
var CtAMA=this.DZNFO[WNIdM];
if((CtAMA[0]==OEjlO)||(CtAMA[2]+""==OEjlO+""))
return CtAMA;
}
return undefined;
}
this.nQaDK=function(OEjlO)
{
var CtAMA=this.oAUnX(OEjlO);
return CtAMA[1]
}
this.getColorTheme=function(WNIdM)
{
return this.fSdnA[WNIdM];
}
this.JoHoC=function(TIsVp)
{
var CtAMA=this.oAUnX(TIsVp);
var OEjlO=CtAMA[0];
var BdNKV=CtAMA[2];
var csYTu_text=this.fSdnA[4]
var csYTu_bg=this.fSdnA[5]
var csYTu_glow=this.fSdnA[7]
if(BdNKV==-1)
{
csYTu_text=this.fSdnA[10]
csYTu_bg=this.fSdnA[8]
csYTu_glow=this.fSdnA[11]
}
var WYNuw=this.VJQZk+OEjlO;
var lLgNP=this.XPEGC+OEjlO;
var FgMYF=this.nQaDK(TIsVp)
var qlqZL=0;
var s=""
s+="<a href='javascript:WA_openDialogAction("+TIsVp+")' ";
var csYTu=new RGBColor(csYTu_bg);
var vFRwd=csYTu.toHsl();
csYTu.fromHsl(vFRwd[0],vFRwd[1],vFRwd[2]+0.2)
csYTu_bg=csYTu.toRGB();
var HMCUY_glow=new RGBColor(csYTu_glow);
var ZqtpC=HMCUY_glow.toHsl();
HMCUY_glow.fromHsl(ZqtpC[0],ZqtpC[1],ZqtpC[2]+0.2)
csYTu_glow=HMCUY_glow.toRGB();
s+="onmouseover=\"WA_but_over('"+lLgNP+"','"+csYTu_bg+"','"+csYTu_glow+"')"+"\" ";
s+="onmouseout=\""+"WA_but_out('"+lLgNP+"')"+"\" ";
s+="style='text-decoration:none;'>";
s+="<div id='"+this.VJQZk+OEjlO+"' style='position:absolute;cursor:pointer;left:0px;top:0px;height:"+FgMYF.height+"px;width:"+FgMYF.width+"px;' >";
s+="<div style='position:absolute;left:"+(-qlqZL)+"px;top:"+(-qlqZL)+"px;height:"+FgMYF.height+"px;'>"
s+="<canvas id='"+this.XPEGC+OEjlO+"' width="+(FgMYF.width+qlqZL*2)+" height="+(FgMYF.height+qlqZL*2)+" ></canvas>";
s+="</div>"
s+="<div align=center style='position:absolute;left:0px;top:"+(0)+"px;vertical-align:middle;width:100%;height:"+(FgMYF.height)+"px;line-height:"+(FgMYF.height)+"px;font-family:arial;font-size:13px;font-weight:bold;color:"+csYTu_text+"'>"
s+=CtAMA[3];
s+="</div>"
s+="</div>"
s+="</a>"
return s;
}
this.kTEjT=function(OEjlO)
{
var CtAMA=this.oAUnX(OEjlO);
var BdNKV=CtAMA[2];
var csYTu_bg=this.fSdnA[5]
var csYTu_glow=this.fSdnA[7]
var csYTu_text=this.fSdnA[3]
if(BdNKV==-1)
{
csYTu_bg=this.fSdnA[8]
csYTu_glow=this.fSdnA[11]
csYTu_text=this.fSdnA[10]
}
var pksHN=this.XPEGC+OEjlO;
registerDynamicCanvas(pksHN);
var FgMYF=this.nQaDK(OEjlO);
var WLApr=FgMYF.height*0.25;
var qXTfQ=true;
WLApr=0;
qXTfQ=false;
var WPlqo=0;
var kUDfq=(FgMYF.width-2);
var nxlbf_circle_top=FgMYF.height*0.45;

var GYPWW_top=[1,1,kUDfq,nxlbf_circle_top,WPlqo];
var exRNc_circle_bottom=FgMYF.width-2;
var nxlbf_circle_bottom=FgMYF.height*0.45;
var EdgXQ=csYTu_glow;
var fALHJ=csYTu_glow;
var PJElJ=0;

var GYPWW_bottom=[(FgMYF.width-exRNc_circle_bottom)/2,FgMYF.height-nxlbf_circle_bottom-1,exRNc_circle_bottom,nxlbf_circle_bottom,PJElJ,EdgXQ,fALHJ];
WA_but(pksHN,0,FgMYF.width,FgMYF.height,WLApr,csYTu_bg,GYPWW_top,GYPWW_bottom,qXTfQ,0)
}
this.PsEwr=function(OEjlO)
{
var CtAMA=this.oAUnX(OEjlO)
if(CtAMA)
{
var pksHN=this.VJQZk+CtAMA[0];
return document.getElementById(pksHN);
}
return undefined
}
this.JTYFL=function()
{
var l=document.getElementById('wa-dialog-container');
l.style.display="block" 

var s="";
var DLMAh=document.webaca_banner_height
s+="<div  style='position:absolute;left:0px;top:"+DLMAh+"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:"+DLMAh+"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 Mkocd in this.DZNFO)
{
s+=this.JoHoC(this.DZNFO[Mkocd][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.ICQrO)
}
this.ICQrO=function()
{
registerDynamicCanvas('wa-dialog1');
for(var Mkocd in this.DZNFO)
{
this.kTEjT(this.DZNFO[Mkocd][0])
}
this.LvoCQ()
if(this.JJGKN())
{
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.tUVtt=false
}
this.closeWin=function()
{
this.intern_closeWin()
}
this.cssText1=function()
{
return "font-family:Arial;font-size:15px;color:"+this.fSdnA[3]+";";
}
this.onCustomKeypress=function(EsTea)
{
if((this.DZNFO.length==1)&&(EsTea==13))
{
this.closeWin()
return true;
}
return false;
}
this.onkeypress=function(EsTea)
{
return this.onCustomKeypress(EsTea)
}
this.onkeydown=function(EsTea)
{
if(EsTea==27)
{
this.closeWin()
return true;
}
return this.onCustomKeypress(EsTea) 
}
this.customUpdate=function(){}
this.JJGKN=function()
{
return isIPhone();
}
this.LvoCQ=function()
{
var exRNc_page=document.webaca_width_page;
var nxlbf_page=document.webaca_height_page;
var qbqob=getWindowSize().width
var nxlbf_window=getWindowSize().height
var qwbmc=getWindowFullSize().width
var nxlbf_full_client=getWindowFullSize().height
var JEWut=550;
var nGPYr=400;
qbqob=Math.max(qbqob,JEWut);
nxlbf_window=Math.max(nxlbf_window,nGPYr);
if(this.JJGKN())
{
qbqob=600;
nxlbf_window=700;
}
this.beLYv=Math.min(qbqob*0.9,this.HUjUt_win_width)
this.LTGQQ=Math.min(nxlbf_window*0.9,this.HUjUt_win_height)
var giBCq=document.getElementById('wa-dialog1');
giBCq.width=this.beLYv+10
giBCq.height=this.LTGQQ+10
var xKtLd=getWindowScroll().x+(qbqob-giBCq.width)/2
var uQYDA=getWindowScroll().y+(nxlbf_window-giBCq.height)/2
xKtLd=(qbqob-giBCq.width)/2
uQYDA=(nxlbf_window-giBCq.height)/2
xKtLd=Math.max(0,xKtLd)
uQYDA=Math.max(0,uQYDA)
if(this.JJGKN())
{
xKtLd=0
uQYDA=0;
}
var KLkbg=document.getElementById('wa-dialog-main');
html_SetGeometry('wa-dialog-main',xKtLd,uQYDA,giBCq.width,giBCq.height);
var IvNdJ_bg="(0;0;0;"+this.LTGQQ*0.25+";"+this.fSdnA[1]+";"+this.fSdnA[2]+")";
var vKxwV=4;
WA_bg('wa-dialog1',this.beLYv,this.LTGQQ,vKxwV,3,this.fSdnA[0],[IvNdJ_bg],true,0)
var SdOUr=10;
var iXwqi=this.PsEwr(-1)
if(iXwqi)
{
var ZNAMq_close=this.nQaDK(-1) 
var marginClose=3
html_SetPosition(iXwqi,this.beLYv-ZNAMq_close.width-marginClose+this.poqEL-1,marginClose+this.poqEL-1)
}
var QpwAX_buttons=this.DZNFO.length;
if(this.MHHNx_close_button==true)
{
QpwAX_buttons--;
}
var JZVMh=10;
var sNbBH=0;
for(var Mkocd=0;Mkocd<QpwAX_buttons;Mkocd++)
{
if(Mkocd>0) sNbBH+=JZVMh;
var ZNAMq=this.nQaDK(Mkocd);
sNbBH+=ZNAMq.width;
}
var Spfki=(this.beLYv-sNbBH)/2
for(var Mkocd=0;Mkocd<QpwAX_buttons;Mkocd++)
{
if(Mkocd>0) Spfki+=JZVMh;
var wvmcP=this.PsEwr(Mkocd);
var ZNAMq=this.nQaDK(Mkocd);
html_SetPosition(wvmcP,Spfki+this.poqEL,+this.poqEL+this.LTGQQ-ZNAMq.height-2*SdOUr)
Spfki+=ZNAMq.width;
}
var nxlbf_top=45;
var nxlbf_bottom=this.BUTTON_HEIGHT+2*SdOUr;
if(QpwAX_buttons==0)
{
nxlbf_bottom=0;
}
var nxlbf_content=(this.LTGQQ-nxlbf_top-nxlbf_bottom)-SdOUr
var WxsiR=document.getElementById('wa-dialog-content');
var kIsNf_content=Math.round(this.beLYv-2*SdOUr)
var bpLGq=Math.round(nxlbf_content)
this.m_content_lx=kIsNf_content
this.m_content_ly=bpLGq
html_SetGeometry('wa-dialog-content',Math.round(5+(this.beLYv-kIsNf_content)/2),Math.round(5+nxlbf_top+(nxlbf_content-bpLGq)/2),kIsNf_content,bpLGq);
this.customUpdate() 
var oEMvO=document.getElementById('wa-dialog-container');
var ZbBwY=nxlbf_full_client
ZbBwY=Math.max(ZbBwY,nxlbf_window) 
var CieYU=qwbmc
CieYU=Math.max(CieYU,qbqob)
if(this.JJGKN())
{
CieYU=Math.max(CieYU,exRNc_page)
ZbBwY=Math.max(ZbBwY,nxlbf_page)
}
html_SetSize('wa-dialog-container',CieYU,ZbBwY);
centerFullPageContainer();
}
this.tnwHg();
}
function centerFullPageContainer()
{
var wckMx=WA_Dialog.getCurrent() 
var exRNc_page=document.webaca_width_page;
var nxlbf_page=document.webaca_height_page;
var oEMvO=document.getElementById('wa-dialog-container');
var qwbmc=getWindowSize().width 
var nxlbf_full_client=getWindowSize().height
var uQYDA_bg=getWindowScroll().y;
var vUYOU=wckMx&&wckMx.JJGKN();
if(vUYOU)
{
uQYDA_bg=0
}
uQYDA_bg=Math.min(uQYDA_bg,nxlbf_page-nxlbf_full_client+1)
uQYDA_bg=Math.max(uQYDA_bg,0)
var dYpEk=getWindowScroll().x;
if(vUYOU)
{
dYpEk=0
}
dYpEk=Math.min(dYpEk,exRNc_page-qwbmc+1)
dYpEk=Math.max(dYpEk,0)
html_SetPosition('wa-dialog-container',dYpEk,uQYDA_bg,qwbmc,nxlbf_full_client);
}
function WA_exec_callback_opera_compliant(rZmQp,MiMfD)
{
if(/opera/i.test(navigator.userAgent))
WA_exec_delayedCallback(rZmQp,MiMfD)
else
MiMfD.call(rZmQp)
}
function WA_exec_delayedCallback(rZmQp,MiMfD)
{
wa_timeout(Delegate.create(rZmQp,MiMfD),0);
}
WA_Dialog.getCurrent=function()
{
return WA_Dialog.tUVtt;
}
WA_Dialog.tUVtt=false;
WA_Dialog.resizeUI=function()
{
if(WA_Dialog.tUVtt)
{
var wckMx=WA_Dialog.tUVtt
if(wckMx.JJGKN()==false)
{
wckMx.LvoCQ()
}
}
}
WA_Dialog.alert=function(s)
{
var w=new WA_Dialog();
w.HgHJb(s)
}
WA_Dialog.progress=function()
{
var w=new WA_Dialog(false);
w.progress()
}

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

}
};
return http_request;
}
function makePOSTRequest(url,parameters,callback,PxNAv)
{
var http_request=getXMLHttpRequest(callback,PxNAv);
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(lKxMY,agPus,mPKBL)
{
var result=agPus.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 HcMFB=mPKBL[0] 
WA_Dialog.alert(Translator.tr("Success:Mail sended"));
var form=document.getElementById(HcMFB);
form.reset()
}
else
{
var LXOOT="error_string="
n=result.indexOf(LXOOT)
if(n>-1)
{
result=result.substring(n+LXOOT.length)
n=result.indexOf("END_IS_PHP")
if(n>-1)
{
result=result.substring(0,n)
}
WA_Dialog.alert(result);
}
else
{
WA_Dialog.alert("*error send mail!");
}
}
}
}
function WA_form_action(id_form,action,b_email_is_valid)
{
var form=document.getElementById(id_form);
var poststr=""
for(var i=0;i<form.elements.length;i++)
{
var el=form.elements[i];
el.style.backgroundColor="#ffffff"
if((el.value.length==0)&&(el.name.indexOf("_mandatory")>-1))
{
el.style.backgroundColor="#ff0000";el.focus();return;
}
var VJDEM=el.value
VJDEM=encodeURI(VJDEM)
VJDEM=VJDEM.replace(/&/g,escape("&")) 
poststr+=el.name.replace("_mandatory","")+"="+VJDEM+"&"
}
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(YFhfE)
{
var vHxPq=document.getElementById(YFhfE);
vHxPq.submit() 
}
function CakLw(ehAZP,mPKBL)
{
var EsTea=mPKBL[0]
if(EsTea==13)
{
var YFhfE=ehAZP+"-form";
var vHxPq=document.getElementById(YFhfE);
for(var i=0;i<vHxPq.elements.length;i++)
{
var kRQWE=vHxPq.elements[i];
if((kRQWE.type=="textarea")&&(kRQWE.focused))return true;
}
WA_form_submit(YFhfE);
return false;
}
return true;
}
function WA_addFormDeclaration(ehAZP,piFIS)
{
return WA_addHandler(ehAZP,"keypress",CakLw)
}
function WA_form_bg(id,lx,ly,arc,OtTsi,bord_col,bg,shadow,rFosv,SLYaK)
{
WA_bg(id,lx,ly,arc,OtTsi,bord_col,bg,shadow,rFosv,1.0,true) 
var lYXBZ=SLYaK.x;
var SePsS=0;
var UVhGv=SLYaK.cells
for(var n=0;n<UVhGv.length;n++)
{
var idhLk=UVhGv[n]
var arc2=0
UipVb(id,lYXBZ,SePsS+idhLk.y,SLYaK.w,idhLk.h,arc2,1,SLYaK.border,[''],false,0,1.0,false)
UipVb(id,lYXBZ,SePsS+idhLk.y,idhLk.w,idhLk.h,arc2,1,"rgba(0,0,0,0)",[SLYaK.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(YUPUA)
{
this.ok=false;this.a=1.0;
if(YUPUA.charAt(0)=='#'){YUPUA=YUPUA.substr(1);}
YUPUA=YUPUA.replace(/ /g,'');
YUPUA=YUPUA.toLowerCase();
var bcSeI=[
{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<bcSeI.length;i++){
var snFKG=bcSeI[i].re;
var Ufctw=bcSeI[i]._process;
var ktXlv=snFKG.exec(YUPUA);
if(ktXlv){
var TQdYY=Ufctw(ktXlv);
this.r=TQdYY[0];this.g=TQdYY[1];this.b=TQdYY[2];this.a=TQdYY[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.qGJmT=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.qGJmT(p,q,h+1/3);g=this.qGJmT(p,q,h);b=this.qGJmT(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 WSwdm(eLppG,mPKBL)
{
if(document.wa_global_handlers!=undefined)
{
var ehAZP=WA_focused_element()
if(ehAZP)
{
var ASjgZ=document.wa_global_handlers[ehAZP+"-"+eLppG]
if(ASjgZ) return ASjgZ([ehAZP],mPKBL)
}
}
return true;
}
function sRwsY(e)
{
if(window.event){return e.keyCode;}
else 
if(e.which) return  e.which;
return-1;
}
function WA_onkeypress(e)
{
var EsTea=sRwsY(e);
if(WA_Dialog.tUVtt)
{
if(WA_Dialog.tUVtt.onkeypress(EsTea))
{
return false;
}
}
return WSwdm("keypress",[EsTea]);
}
function WA_ondblclick(e)
{
return WSwdm("dblclic",[""]);
}
function WA_onkeydown(e)
{
var EsTea=sRwsY(e)
if(WA_Dialog.tUVtt)
{
if(WA_Dialog.tUVtt.onkeydown(EsTea))
{
return false;
}
}
if(EsTea==13) return true;

if(wa_global_photo_album&&wa_global_photo_album.fullpage_object)
{
var rZmQp=wa_global_photo_album.fullpage_object
return rZmQp.onFullScreenKeydown(EsTea) 
}
return WSwdm("keydown",[EsTea]);
}
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 ehAZP=this.id
var ASjgZ=document.wa_global_handlers[ehAZP+"-mousewheel"]
if(ASjgZ)
{
if(ASjgZ([ehAZP],[delta]))
{
b_default=true;
}
}
}
}
if(b_default)
if(e.preventDefault)
e.preventDefault();
e.returnValue=!b_default;
}
function WA_addHandler(ehAZP,eLppG,MiMfD)
{
if(document.wa_global_handlers==undefined) document.wa_global_handlers=new Array()
if(eLppG=="mousewheel")
{
var BoPeu=document.getElementById(ehAZP);
if(BoPeu.addEventListener)
BoPeu.addEventListener('DOMMouseScroll',WA_genericMouseWheelHandler,false);
BoPeu.onmousewheel=WA_genericMouseWheelHandler
}
document.wa_global_handlers[ehAZP+"-"+eLppG]=MiMfD
}
function WA_loadPhotoAlbum(ehAZP,hfwDd,FgMYF,ehAZP_modif)
{
if(typeof(wa_global_photo_album[ehAZP])=="undefined")
{
var o=new Array();
o.src_folder=hfwDd
o.size_container=FgMYF
o.id_modif=ehAZP_modif
wa_global_photo_album[ehAZP]=o;
}
}
function WA_focused_element()
{
return document.wa_global_focused_element
}
function WA_focus(rZmQp)
{
document.wa_global_focused_element=rZmQp.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(JnDDB,KXwrt,JXDpg)
{
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[KXwrt])document.wa_global_blogs_elements[KXwrt]=new Array()
document.wa_global_blogs_elements[KXwrt].id_blog=JnDDB
document.wa_global_blogs_elements[KXwrt].has_email=JXDpg
}
function WA_addSearchHandler(ehAZP)
{
return WA_addHandler(ehAZP,"keypress",dVfjT)
}
function dVfjT(ehAZP,mPKBL)
{
var EsTea=mPKBL[0]
if(EsTea==13)
{
var tKnGo=ehAZP+"-search-input";
WA_onSearch(tKnGo)
return false;
}
return true;
}
function WA_declareSearchIndex(WGJLu,lOwPT)
{
document.const_wa_search_js=WGJLu
document.const_wa_search_index_js=lOwPT
}
function WA_onSearch(tKnGo)
{
var ljXqf=document.getElementById(tKnGo);
if(document.wa_search_js_loaded==true)
{
WA_openSearchDialog(ljXqf,document.const_wa_search_index_js)
}
else
{
WA_Dialog.progress();
KDkmT(ljXqf)
}
}
function hGbwD(mPKBL)
{
document.wa_search_js_loaded=true
WA_openSearchDialog(mPKBL[0],document.const_wa_search_index_js)
}
function KDkmT(RKPks)
{
WA_loadScript(document.const_wa_search_js,hGbwD,[RKPks])
}
function hvUVE(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 hvUVE(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(ehAZP)
{
var VeDWF=document.wa_global_menu_declaration[ehAZP]
WA_bg(ehAZP,VeDWF.root_lx,VeDWF.root_ly,VeDWF.root_corner,VeDWF.root_border,VeDWF.root_col_border,[VeDWF.root_bg],false,0)
var kRQWE=document.getElementById(VeDWF.id)
if(!kRQWE)return;
var c=kRQWE.getContext('2d');
c.lineWidth=1
c.strokeStyle=VeDWF.root_col_separator
var dKYkT=0.5;

var obxRL=VeDWF.root_sizes.length
if(VeDWF.root_extend==false)
{
obxRL--;
}
var QrplU=3;
for(var i=0;i<obxRL;i++)
{
var FgMYF=VeDWF.root_sizes[i] 

c.beginPath();
if(VeDWF.root_vertical==false)
{
dKYkT+=(FgMYF-1)
c.moveTo(dKYkT,QrplU)
c.lineTo(dKYkT,VeDWF.root_ly-QrplU)
}
else
{
dKYkT+=(FgMYF)
c.moveTo(QrplU,dKYkT-1,0)
c.lineTo(VeDWF.root_lx-QrplU,dKYkT-1)
}
c.closePath();
c.stroke()
}
}
function WA_declare_menu(ehAZP,VeDWF)
{
if(!document.wa_global_menu_declaration)document.wa_global_menu_declaration=new Array();
VeDWF.id=ehAZP
document.wa_global_menu_declaration[ehAZP]=VeDWF
WA_bg_menu(ehAZP)
}
function WA_declareMarket(ehAZP,DmYUn_market,ehAZP_modif)
{
if(typeof(wa_global_market.markets[ehAZP])=="undefined")
{
var o=new Array();
o.src_folder=DmYUn_market
o.id_modif=ehAZP_modif 

o.id=ehAZP
wa_global_market.markets[ehAZP]=o;
}
}
function WA_button_market_declare(ehAZP,GeSpA)
{
if(!document.wa_global_button_market_declaration)document.wa_global_button_market_declaration=new Array();
document.wa_global_button_market_declaration[ehAZP]=GeSpA
}
function nMpIN(c,img,xKtLd,uQYDA,exRNc,nxlbf,mxetW,tGxeS,CXITJ)
{
c.globalAlpha=tGxeS
if(CXITJ) c.clearRect(0,0,exRNc,nxlbf) 
if(tGxeS==0)return;
if(mxetW)
{
c.drawImage(img,mxetW.x,mxetW.y,mxetW.width,mxetW.height,xKtLd,uQYDA,exRNc,nxlbf)
}
else
{
c.drawImage(img,xKtLd,uQYDA,exRNc,nxlbf)
}
}
function WA_drawImage(id,kchWX,xKtLd,uQYDA,exRNc,nxlbf,mxetW,tGxeS,CXITJ)
{
if(CXITJ==undefined)CXITJ=true;
if(tGxeS==undefined)tGxeS=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==kchWX)
{
nMpIN(c,c.KJfDg,xKtLd,uQYDA,exRNc,nxlbf,mxetW,tGxeS,CXITJ)
return;
}
var img=new Image();
img.DGfaB=el.DGfaB
img.onload=function()
{
c.old_src=kchWX
c.KJfDg=this;
nMpIN(c,this,xKtLd,uQYDA,exRNc,nxlbf,mxetW,tGxeS,CXITJ)
}
img.src=kchWX;
}

-->
