<!--

function Delegate(){}
Delegate.create=function(o,f){
var oVcup=new Array();
var SgeCA=arguments.length;
for(var i=2;i<SgeCA;i++) oVcup[i-2]=arguments[i];
return function(){
var CxTib=[].concat(arguments,oVcup);
f.apply(o,CxTib);
}
}
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.cIUsc=0;
t.qgKEb=0;
t.NCuxK=0;
t.WAUTS=0;
t.vFvUS=0;
t.ZAHZJ=0;
t.HKGkY=false;
t.name='';
t.suffixe='';
t.fAZal=new Array();
t.setTime=function(t){
this.prevTime=this.qgKEb;
if(t>this.getDuration()){
if(this.looping){
this.rewind(t-this.cIUsc);
this.update();
this.gUIFe('onMotionLooped',{target:this,type:'onMotionLooped'});
}else{
this.qgKEb=this.cIUsc;
this.update();
this.stop();
this.gUIFe('onMotionFinished',{target:this,type:'onMotionFinished'});
}
}else if(t<0){
this.rewind();
this.update();
}else{
this.qgKEb=t;
this.update();
}
}
t.isRunning=function(){
return this.HKGkY;
}
t.getTime=function(){
return this.qgKEb;
}
t.setDuration=function(d){
this.cIUsc=(d==null||d<=0)?100000:d;
}
t.getDuration=function(){
return this.cIUsc;
}
t.setPosition=function(p){
this.prevPos=this.NCuxK;
var a=this.suffixe!=''?this.suffixe:'';
this.obj[this.prop]=Math.round(p)+a;
this.NCuxK=p;
this.gUIFe('onMotionChanged',{target:this,type:'onMotionChanged'});
}
t.getPosition=function(t){
if(t==undefined) t=this.qgKEb;
return this.func(t,this.begin,this.change,this.cIUsc);
};
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.fAZal=new Array();
this.addListener(this);
if(suffixe) this.suffixe=suffixe;
this.obj=obj;
this.prop=prop;
this.begin=begin;
this.NCuxK=begin;
this.setDuration(duration);
if(func!=null&&func!=''){
this.func=func;
}
this.setFinish(finish);
}
t.start=function(){
this.rewind();
this.startEnterFrame();
this.gUIFe('onMotionStarted',{target:this,type:'onMotionStarted'});
}
t.rewind=function(t){
this.stop();
this.qgKEb=(t==undefined)?0:t;
this.fixTime();
this.update();
}
t.fforward=function(){
this.qgKEb=this.cIUsc;
this.fixTime();
this.update();
}
t.update=function(){
this.setPosition(this.getPosition(this.qgKEb));
}
t.startEnterFrame=function(){
this.stopEnterFrame();
this.HKGkY=true;
this.onEnterFrame();
}
t.onEnterFrame=function(){
if(this.HKGkY){
this.nextFrame();
wa_timeout(Delegate.create(this,this.onEnterFrame),0);
}
}
t.nextFrame=function(){
this.setTime((this.getTimer()-this.vFvUS)/1000);
}
t.stop=function(){
this.stopEnterFrame();
this.gUIFe('onMotionStopped',{target:this,type:'onMotionStopped'});
}
t.stopEnterFrame=function(){
this.HKGkY=false;
}
t.continueTo=function(finish,duration){
this.begin=this.NCuxK;
this.setFinish(finish);
if(this.cIUsc!=undefined)
this.setDuration(duration);
this.start();
}
t.resume=function(){
this.fixTime();
this.startEnterFrame();
this.gUIFe('onMotionResumed',{target:this,type:'onMotionResumed'});
}
t.yoyo=function(){
this.continueTo(this.begin,this.qgKEb);
}
t.addListener=function(o){
this.removeListener(o);
return this.fAZal.push(o);
}
t.removeListener=function(o){
var a=this.fAZal;
var i=a.length;
while(i--){
if(a[i]==o){
a.splice(i,1);
return true;
}
}
return false;
}
t.gUIFe=function(){
var arr=new Array();
for(var i=0;i<arguments.length;i++){
arr.push(arguments[i])
}
var e=arr.shift();
var a=this.fAZal;
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.vFvUS=this.getTimer()-this.qgKEb*1000;
}
t.getTimer=function(){
return new Date().getTime()-this.qgKEb;
}
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,ibItM,eSOiP,cIUsc){
this.targetObject=obj;
this.init(new Object(),'a',func,ibItM,eSOiP,cIUsc);
this.onMotionChanged=function(evt){
var v=evt.target.NCuxK;
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(uDYAU,ufBgF,EdLLk)
{
return "<canvas id='"+uDYAU+"' width='"+ufBgF+"' height='"+EdLLk+"'></canvas>"
}
function WA_canvas(uDYAU,ufBgF,EdLLk)
{
document.write(html_canvas(uDYAU,ufBgF,EdLLk))
}
function QJkqm(jLqgB,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;
jLqgB.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;
jLqgB.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;
jLqgB.quadraticCurveTo(cx,cy,px,py);
}
}
function mlSLh(c,x,y,lx,ly,arc,clowckwise)
{
c.beginPath()
MbFum(c,x,y,lx,ly,arc,clowckwise)
}
function MbFum(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 SnNLN()
{
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 iXCnn(lx,ly,parent,id_suffixe)
{
var wkOmk=document.createElement('canvas');wkOmk.width=lx;wkOmk.height=ly;
return wkOmk;
}
function cuuAx(RTnZK)
{
var FhhsN=(-RTnZK+45);
return new Point(Math.cos(FhhsN*(2*Math.PI)/360),Math.sin(FhhsN*(2*Math.PI)/360))
}
function LVmQU(c,RTnZK)
{
var offset=cuuAx(RTnZK)
c.shadowOffsetX=2*offset.x;
c.shadowOffsetY=2*offset.y;
c.shadowBlur=4;
}
function WA_over_img_html(OIfIE,sePAP,milkN)
{
if(!OIfIE.src)
{
var GEGlC=OIfIE.getElementsByTagName("IMG")
if(GEGlC.length==1)OIfIE=GEGlC[0]
}
if(OIfIE.src1==undefined)
{
OIfIE.src1=OIfIE.src;
OIfIE.src2=sePAP;
}
if(milkN)
{
OIfIE.src=OIfIE.src2;
}
else
{
OIfIE.src=OIfIE.src1;
}
}
function WA_over_img(id,milkN)
{
var el=document.getElementById(id+"-canvas") 

var OIfIE=(milkN)?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,[OIfIE,OIfIE],el.wa_shadow,el.wa_rot,el.wa_reflex)
}
function esoIB(uDYAU,lx,ly,arc,side)
{
this.id=uDYAU;
this.lx=lx;
this.ly=ly;
this.arc=arc;
var nSide=side
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.YXjrv=function(canv2)
{
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 hvZCg=document.getElementById(this.id+"-reflex")
var XpiWn=hvZCg.getContext('2d');
XpiWn.translate(this.lx,0)
XpiWn.scale(-1,1)
XpiWn.beginPath()
mlSLh(XpiWn,1,1,this.lx-2,this.ly-2,this.arc)
XpiWn.clip()
XpiWn.drawImage(canv2,this.sX,this.sY,this.sLx,this.sLy,this.sX,this.sY,this.sLx,this.sLy);
XpiWn.globalCompositeOperation="destination-out";
var gradient=XpiWn.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)");
XpiWn.fillStyle=gradient;
XpiWn.beginPath()
XpiWn.rect(this.sX-this.decX,this.sY-this.decY,this.sLx,this.sLy);
XpiWn.fill();
XpiWn.globalCompositeOperation="source-over";
XpiWn.scale(-1,1)
XpiWn.translate(-this.lx,0) 
}
}
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 ULXrr(c2,lx,ly,TCZFt,bord_col,arc,arc2)
{
if(TCZFt>0)
{
c2.beginPath()
c2.fillStyle=bord_col;
c2.beginPath()
mlSLh(c2,0,0,lx,ly,arc)
MbFum(c2,TCZFt,TCZFt,lx-2*TCZFt,ly-2*TCZFt,arc2,true)
c2.fill()
}
}
function xLCCc()
{
this.tx=0
this.ty=0
this.rotation=0
}
function frbwH(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 xLCCc()
}
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 Ruaiw=0;
if(shadow)Ruaiw=6
var PFwBk=id+"-canvas"
var el=document.getElementById(PFwBk)
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)-Ruaiw,div.wa_pos.y-Ruaiw)
html_SetCanvasSize(el,div.wa_size.height+2*Ruaiw,div.wa_size.width+2*Ruaiw)
html_SetCanvasSize(canv2,div.wa_size.height+4*Ruaiw,div.wa_size.width+4*Ruaiw)
html_SetSize(div,div.wa_size.height+2*Ruaiw,div.wa_size.width+2*Ruaiw) 
matrix.tx=ly+2*Ruaiw
matrix.ty=2*Ruaiw
}
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-Ruaiw,div.wa_pos.y-lx-Ruaiw)
html_SetCanvasSize(el,div.wa_size.height+2*Ruaiw,div.wa_size.width+2*Ruaiw)
html_SetCanvasSize(canv2,div.wa_size.height+4*Ruaiw,div.wa_size.width+4*Ruaiw)
html_SetSize(div,div.wa_size.height+2*Ruaiw,div.wa_size.width+2*Ruaiw) 
matrix.tx=2*Ruaiw
matrix.ty=lx+2*Ruaiw
}
matrix.rotation=rot*2*Math.PI/360
c2.translate(matrix.tx,matrix.ty)
c2.rotate(matrix.rotation)
}
}
function WA_img(id,lx,ly,arc,TCZFt,bord_col,s_img,shadow,rot,EaMGT)
{
var PFwBk=id+"-canvas"
var el=document.getElementById(PFwBk)
var c=el.getContext('2d');
var KsUJb=false;
if(EaMGT!=undefined)
{
KsUJb=new esoIB(PFwBk,lx,ly,arc,EaMGT)
}
var Ruaiw=0;
if(shadow)Ruaiw=6 

if(el.wa_lx==undefined)
{
el.wa_lx=lx
el.wa_ly=ly
el.wa_arc=arc
el.wa_bord_siz=TCZFt
el.wa_bord_col=bord_col
el.wa_s_img=s_img
el.wa_shadow=shadow
el.wa_rot=rot
el.wa_reflex=EaMGT
c.translate(Ruaiw,Ruaiw)
}
var YmmLW_img=document.getElementById(id+"-cache")
YmmLW_img.onload=function()
{
c.clearRect(0,0,lx+2*Ruaiw,ly+2*Ruaiw)
var arc2=arc-TCZFt;
if(arc2<0)arc2=0;
this.width=lx-2*TCZFt
this.height=ly-2*TCZFt
if(isMSIE())
{
if(shadow) pujTa(c,0,0,lx,ly,arc,false,rot)
var SQUxE=c.createPattern(this,'no-repeat');
c.fillStyle=SQUxE;
c.beginPath()
mlSLh(c,TCZFt,TCZFt,lx-2*TCZFt,ly-2*TCZFt,arc2)
c.translate(TCZFt,TCZFt)
c.fill()
c.translate(-TCZFt,-TCZFt)
ULXrr(c,lx,ly,TCZFt,bord_col,arc,arc2)
}
else
if(navigator.userAgent.match(/Firefox/i)&&(shadow))
{
var Elgqh=new  xLCCc()
frbwH(id,lx,ly,rot,c,el,shadow,Elgqh)
if(shadow) pujTa(c,0,0,lx,ly,arc,false,rot)
var c2=c
ULXrr(c2,lx,ly,TCZFt,bord_col,arc,arc2)
c2.beginPath()
mlSLh(c2,TCZFt,TCZFt,lx-2*TCZFt,ly-2*TCZFt,arc2)
c2.clip()
c2.drawImage(this,TCZFt,TCZFt,lx-2*TCZFt,ly-2*TCZFt);
c2.rotate(-Elgqh.rotation)
c2.translate(-Elgqh.tx,-Elgqh.ty)
}
else
{
var canv2=iXCnn(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
var Elgqh=new  xLCCc()
frbwH(id,lx,ly,rot,c2,canv2,shadow,Elgqh)
c.clearRect(-Ruaiw,-Ruaiw,lx+2*Ruaiw,ly+2*Ruaiw)
ULXrr(c2,lx,ly,TCZFt,bord_col,arc,arc2)
c2.beginPath()
mlSLh(c2,TCZFt,TCZFt,lx-2*TCZFt,ly-2*TCZFt,arc2)
c2.clip()
c2.drawImage(this,TCZFt,TCZFt,lx-2*TCZFt,ly-2*TCZFt);
c2.rotate(-Elgqh.rotation)
c2.translate(-Elgqh.tx,-Elgqh.ty)
if(shadow) LVmQU(c,rot)
c.drawImage(canv2,0,0);
if(KsUJb)
{
KsUJb.YXjrv(canv2)
}
}
}
YmmLW_img.src=s_img[0];
}
function kVXEX(glsRa,RTnZK,ghXAG,wJNwn)
{
glsRa.style.left=ghXAG+"px"
glsRa.style.top=wJNwn+"px"
glsRa.style.webkitTransformOrigin="0 0"
glsRa.style.webkitTransform="rotate("+RTnZK+"deg)";
}
function tPpro(c,type,lx,ly,corner)
{
if(type==1)
QJkqm(c,0,0,lx,ly)
else
mlSLh(c,0,0,lx,ly,corner)
}
function PuLhu(el,c,type,lx,ly,corner,bg,jWhLP,rot)
{
if(SnNLN()==false)
{
c.fillStyle=bg;
tPpro(c,type,lx,ly,corner)
c.fill()
}
else
{
var canv2=iXCnn(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.fillStyle=bg;
tPpro(c2,type,lx,ly,corner)
c2.fill()
if(jWhLP) LVmQU(c,rot)
c.drawImage(canv2,0,0);
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
}
}
function ibYIQ(c,type,lx,ly,gUcZt,bg,uSgRe,ELrCt_glow)
{
if(uSgRe)
{
var x1=uSgRe[0];var y1=uSgRe[1];var lx1=uSgRe[2];var ly1=uSgRe[3];var gxnOF=uSgRe[4];
var mQoDh=c.createLinearGradient(x1,y1,x1,y1+ly1);
mQoDh.addColorStop(0,"rgba(255,255,255,0.7)");mQoDh.addColorStop(1,"rgba(255,255,255,0.1)");
c.fillStyle=mQoDh;
if(type==1) QJkqm(c,x1,y1,lx1,ly1)
else
mlSLh(c,x1,y1,lx1,ly1,gxnOF)
c.fill()
}
if(ELrCt_glow)
{
var x2=ELrCt_glow[0];var y2=ELrCt_glow[1];var lx2=ELrCt_glow[2];var ly2=ELrCt_glow[3];
var amWSs=ELrCt_glow[4];
var PNYMc_glow=new RGBColor(ELrCt_glow[5]);
PNYMc_glow.a=0;
var col1=ELrCt_glow[5];
var col2=PNYMc_glow.toRGB();
var bsvit=c.createLinearGradient(x2,y2,x2,y2+ly2);
bsvit.addColorStop(0,col2);
bsvit.addColorStop(0.2,col2);
bsvit.addColorStop(1,col1);
c.fillStyle=bsvit;
if(type==1) QJkqm(c,x2,y2,lx2,ly2)
else
mlSLh(c,x2,y2,lx2,ly2,amWSs)
c.fill()
}
}
function nhuqL(MsKIm,uDYAU,wSeiC,ufBgF,EdLLk,gUcZt,xpVlM,uSgRe,ELrCt_glow,jWhLP,RTnZK)
{
MsKIm.uDYAU=uDYAU;MsKIm.wSeiC=wSeiC;
MsKIm.ufBgF=ufBgF;MsKIm.EdLLk=EdLLk;
MsKIm.gUcZt=gUcZt;MsKIm.xpVlM=xpVlM,MsKIm.uSgRe=uSgRe;
MsKIm.ELrCt_glow=ELrCt_glow;MsKIm.jWhLP=jWhLP;MsKIm.RTnZK=RTnZK;
}
function WA_but_over(uDYAU,xpVlM_over,PNYMc_glow)
{
var lQsGD=document.getElementById(uDYAU) 
if(lQsGD&&lQsGD.KgTqD)
with(lQsGD.KgTqD)
{
var ELrCt_glow_over;
if(ELrCt_glow&&PNYMc_glow)
{
ELrCt_glow_over=new Array();
for(var tMtmJ=0;tMtmJ<ELrCt_glow.length;tMtmJ++)ELrCt_glow_over[tMtmJ]=ELrCt_glow[tMtmJ];
ELrCt_glow_over[5]=PNYMc_glow;
}
WA_but(uDYAU,wSeiC,ufBgF,EdLLk,gUcZt,xpVlM_over,uSgRe,ELrCt_glow_over,jWhLP,RTnZK);
}
var OIxeK_over0=document.getElementById(uDYAU+"-div0")
if(OIxeK_over0)html_SetVisibility(OIxeK_over0,false);
var aceBZ=document.getElementById(uDYAU+"-div1")
if(aceBZ)html_SetVisibility(aceBZ,true);
}
function WA_but_out(uDYAU)
{
var lQsGD=document.getElementById(uDYAU)
with(lQsGD.KgTqD)
{
WA_but(uDYAU,wSeiC,ufBgF,EdLLk,gUcZt,xpVlM,uSgRe,ELrCt_glow,jWhLP,RTnZK);
}
var OIxeK_over0=document.getElementById(uDYAU+"-div0")
if(OIxeK_over0)html_SetVisibility(OIxeK_over0,true);
var aceBZ=document.getElementById(uDYAU+"-div1")
if(aceBZ)html_SetVisibility(aceBZ,false);
}
function WA_but(id,type,lx,ly,corner,bg,top_light,s_glow,jWhLP,rot)
{
var el=document.getElementById(id)
if(el.KgTqD==undefined)
{
el.KgTqD=new Array();
nhuqL(el.KgTqD,id,type,lx,ly,corner,bg,top_light,s_glow,jWhLP,rot);
}
var c=el.getContext('2d');
var Ruaiw=0;
if(jWhLP)Ruaiw=6 
c.fillStyle="#000000";
c.fillRect(0,0,lx+2*Ruaiw,ly+2*Ruaiw) 
c.clearRect(0,0,lx+2*Ruaiw,ly+2*Ruaiw) 
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(SnNLN()==false)
{
c.translate(Ruaiw,Ruaiw)
img.width=lx
img.height=ly 
if(jWhLP)
pujTa(c,0,0,lx,ly,corner,(type==1),rot)
if(navigator.userAgent.match(/Firefox/i))
{
c.beginPath()
tPpro(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()
tPpro(c,type,lx,ly,corner)
c.fill()
}
ibYIQ(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-Ruaiw,-Ruaiw)
}
else
{
var canv2=iXCnn(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.beginPath()
tPpro(c2,type,lx,ly,corner)
c2.clip()
c2.drawImage(img,0,0,lx,ly);
ibYIQ(c2,type,lx,ly,corner,bg,top_light,s_glow)
if(jWhLP) LVmQU(c,rot) 
c.drawImage(canv2,Ruaiw,Ruaiw);
}
}
img.src=bg2;
return;
}
c.translate(Ruaiw,Ruaiw) 
if(jWhLP&&(SnNLN()==false))
{
var bopak=new RGBColor(bg);
if(bopak.a>0)
{
pujTa(c,0,0,lx,ly,corner,(type==1),rot)
}
}
PuLhu(el,c,type,lx,ly,corner,bg2,jWhLP,rot)
ibYIQ(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-Ruaiw,-Ruaiw)
}
function pujTa(c,x0,y0,lx0,ly0,corner,is_circle,rot)
{
var decShadow=2;
var offset=cuuAx(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) QJkqm(c,x,y,lx,ly);else mlSLh(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 LFGPs(id,x,y,lx,ly,arc,TCZFt,bord_col,bg,shadow,rot,iVBjI,LobAX)
{
if(LobAX==undefined)LobAX=true;
var el=document.getElementById(id)
var c=el.getContext('2d');
if(iVBjI==undefined)iVBjI=1.0;
var Ruaiw=0;
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
if(shadow)
{
Ruaiw=6;
}
if(LobAX) c.clearRect(0,0,el.width,el.height)
c.globalAlpha=iVBjI 
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 IYcXv=bg1.split(";");
var x1=parseFloat(IYcXv[0]);
var y1=parseFloat(IYcXv[1]);
var x2=parseFloat(IYcXv[2]);
var y2=parseFloat(IYcXv[3]);
var col1=IYcXv[4];
var col2=IYcXv[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-TCZFt;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
{
if(shadow) pujTa(c,Ruaiw,Ruaiw,lx,ly,arc,false,rot)
}
if(TCZFt>0)
{
c2.fillStyle=bord_col;
mlSLh(c2,x,y,lx,ly,arc)
MbFum(c2,x+TCZFt,y+TCZFt,lx-2*TCZFt,ly-2*TCZFt,arc2,true)
c2.fill()
}


c2.fillStyle=fill_obj 
mlSLh(c2,x+TCZFt,y+TCZFt,lx-2*TCZFt,ly-2*TCZFt,arc2)
c2.fill();
}
function jLnKJ(AdQUu,xjWYp,PJNTH)
{
return new Point(Math.round(AdQUu*Math.cos(PJNTH)-xjWYp*Math.sin(PJNTH)),Math.round(AdQUu*Math.sin(PJNTH)+xjWYp*Math.cos(PJNTH)))
}
function XKZjI(c,x,y,lx,ly,arc,clowckwise,RTnZK)
{
c.beginPath()
GPvNn(c,x,y,lx,ly,arc,clowckwise,RTnZK)
}
function GPvNn(c,x,y,lx,ly,arc,clowckwise,RTnZK)
{
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 VsSZr=[[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=RTnZK*2*Math.PI/360
for(var n=0;n<VsSZr.length;n++)
{
var QSaOu=VsSZr[n][0]
var hMUBq=VsSZr[n][1]
VsSZr[n][0]=QSaOu*Math.cos(theta)-hMUBq*Math.sin(theta);
VsSZr[n][1]=QSaOu*Math.sin(theta)+hMUBq*Math.cos(theta);
}
var n=0;
c.moveTo(VsSZr[n][0],VsSZr[n++][1]);
c.lineTo(VsSZr[n][0],VsSZr[n++][1]);
c.quadraticCurveTo(VsSZr[n][0],VsSZr[n++][1],VsSZr[n][0],VsSZr[n++][1]);
c.lineTo(VsSZr[n][0],VsSZr[n++][1]);
c.quadraticCurveTo(VsSZr[n][0],VsSZr[n++][1],VsSZr[n][0],VsSZr[n++][1]);
c.lineTo(VsSZr[n][0],VsSZr[n++][1]);
c.quadraticCurveTo(VsSZr[n][0],VsSZr[n++][1],VsSZr[n][0],VsSZr[n++][1]);
c.lineTo(VsSZr[n][0],VsSZr[n++][1]);
c.quadraticCurveTo(VsSZr[n][0],VsSZr[n++][1],VsSZr[n][0],VsSZr[n++][1]);
}
function HIUqg(a,b,x,y)
{
return(a*x-y+b)/(Math.sqrt(1+a*a))
}
function rwwQr(new_a1,new_b1,eHqeK,multi)
{
var d=0;
for(var i=0;i<eHqeK.length;i++)
{
var CLMOG=eHqeK[i]
var d1=HIUqg(new_a1,new_b1,CLMOG.x,CLMOG.y)
if(multi<0)
{
if(d1<0) d=Math.max(d,-d1);
}
else
{
if(d1>0) d=Math.max(d,d1);
}
}
return d;
}
function FIXEl(o1,o2)
{
if(o1<o2) return-1
if(o1>o2) return 1
return 0
}
function aPhMT(c,lx,ly,bg1)
{
var fill_obj=false;
var EaHNn=false;
var OTloM=false;
var eHqeK=false
if(bg1.substring(0,1)=="(")
{
bg1=bg1.substring(1);
bg1=bg1.substring(0,bg1.length-1)
var IYcXv=bg1.split(";");
var RMkph=new Point(parseFloat(IYcXv[0]),parseFloat(IYcXv[1]));
var KmPlJ=new Point(parseFloat(IYcXv[2]),parseFloat(IYcXv[3]));
EaHNn=RMkph.clone()
OTloM=KmPlJ.clone()
var col1=IYcXv[4];
var col2=IYcXv[5];
var grad=c.createLinearGradient(EaHNn.x,EaHNn.y,OTloM.x,OTloM.y);
if(isMSIE())
{
EaHNn=RMkph.clone()
OTloM=KmPlJ.clone() 
var mQoDh=0;
var bsvit=1;
{
eHqeK=[{x:0,y:0},{x:lx,y:0},{x:lx,y:ly},{x:0,y:ly}]
var d1=0;
var d2=0;
var a=(OTloM.y-EaHNn.y)/(OTloM.x-EaHNn.x);
var b=EaHNn.y-a*EaHNn.x;
var diff=1;
if(a==Infinity)
{
d1=(EaHNn.y)
d2=(ly-OTloM.y)
}
else
if(a==0)
{
d1=(EaHNn.x)
d2=(lx-OTloM.x)
}
else
{
var new_a1=-1/a;
var new_b1=EaHNn.y-new_a1*EaHNn.x;
d1=rwwQr(new_a1,new_b1,eHqeK,-1)
var new_b2=OTloM.y-new_a1*OTloM.x;
d2=rwwQr(new_a1,new_b2,eHqeK,1)
if(new_a1<0)diff=-1;
}
var d=Math.sqrt(Math.pow(OTloM.x-EaHNn.x,2)+Math.pow(OTloM.y-EaHNn.y,2))
var total=(d1+d+d2)
mQoDh=d1/total;
bsvit=(d1+d)/total;
var pt_prod0=new Point(OTloM.x-EaHNn.x,OTloM.y-EaHNn.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)
{
mQoDh=d2/total;
bsvit=(d2+d)/total;
}
}
grad.addColorStop(mQoDh,col1);
grad.addColorStop(bsvit,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,TCZFt,bord_col,bg,shadow,rot,DrKoN,Cepgs,iVBjI,LobAX)
{


var theta=rot*2*Math.PI/360 
if(LobAX==undefined)LobAX=true;
if(iVBjI==undefined)iVBjI=1.0;
var el=document.getElementById(id)
if(!el)return
var c=el.getContext('2d');
var Ruaiw=(el.width-lx)/2;
if(LobAX) c.clearRect(0,0,el.width,el.height)
var x_rect0=Ruaiw;
var y_rect0=Ruaiw;
var bg1=bg[0]
var fill_obj=false;
var EaHNn=false;
var OTloM=false;
var eHqeK=false
fill_obj=aPhMT(c,lx,ly,bg1) 
if(iVBjI==undefined)iVBjI=1.0;
var arc2=arc-TCZFt;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
if(shadow)
{
c2.translate(DrKoN+6,Cepgs+6)
}
else
{
c2.translate(DrKoN,Cepgs)
}
c2.fillStyle=fill_obj;
XKZjI(c2,TCZFt,TCZFt,lx-2*TCZFt,ly-2*TCZFt,arc2,false,rot)
c2.fill();
}
function WA_bg(id,lx,ly,arc,TCZFt,bord_col,bg,shadow,rot,iVBjI,LobAX)
{

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

var fill_obj=aPhMT(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()
FIAmN(c,el,lx,ly,arc,TCZFt,bord_col,ptrn,shadow,rot,iVBjI)
}
img.src=bg2;
}
else
{
FIAmN(c,el,lx,ly,arc,TCZFt,bord_col,fill_obj,shadow,rot,iVBjI)
}
}
function FIAmN(c,el,lx,ly,arc,TCZFt,bord_col,fill_obj,shadow,rot,iVBjI)
{
if(iVBjI==undefined)iVBjI=1.0;
var arc2=arc-TCZFt;
if(arc2<0)arc2=0
var Ruaiw=(el.width-lx)/2;
var x_rect0=Ruaiw;
var y_rect0=Ruaiw;
var canv2=false;
var c2=c;
c.globalAlpha=iVBjI
if(SnNLN()==true)
{
canv2=iXCnn(lx,ly);
c2=canv2.getContext('2d');
c2.globalAlpha=iVBjI
}
else
{
c2.translate(Ruaiw,Ruaiw)
if(shadow) pujTa(c,0,0,lx,ly,arc,false,rot)
}
if(TCZFt>0)
{
c2.fillStyle=bord_col;
mlSLh(c2,0,0,lx,ly,arc)
MbFum(c2,TCZFt,TCZFt,lx-2*TCZFt,ly-2*TCZFt,arc2,true)
c2.fill()
}
c2.fillStyle=fill_obj;
mlSLh(c2,TCZFt,TCZFt,lx-2*TCZFt,ly-2*TCZFt,arc2)
c2.fill();
if(SnNLN()==true)
{
if(shadow) LVmQU(c,rot)
c.drawImage(canv2,Ruaiw,Ruaiw);
}
else
{
c2.translate(-Ruaiw,-Ruaiw)
}
}
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(ELrCt){return(this.width>ELrCt.width)&&(this.height>ELrCt.height)}
this.scale=function(MUGDc,YqCJa)
{
if(!YqCJa)YqCJa=false
var mOubi=this;
var KChjb=mOubi.width
var TeOSb=mOubi.height
var p1=KChjb*MUGDc.height;
var p2=MUGDc.width*TeOSb;
var r1=KChjb/TeOSb;
var r2=TeOSb/KChjb;
var newSize1=new Size(MUGDc.height*r1,MUGDc.height);
var newSize2=new Size(MUGDc.width,MUGDc.width*r2);
if(p2>p1)
{
if((YqCJa==true)||((newSize1.width<=mOubi.width)&&(newSize1.height<=mOubi.height)))
{
mOubi.width=Math.round(newSize1.width);
mOubi.height=Math.round(newSize1.height);
}
}
else
{
if((YqCJa==true)||((newSize2.width<=mOubi.width)&&(newSize2.height<=mOubi.height)))
{
mOubi.width=Math.round(newSize2.width);
mOubi.height=Math.round(newSize2.height);
}
}
this.width=mOubi.width;
this.height=mOubi.height;
return true;
}
}
function Point(p_x,p_y){this.x=p_x;this.y=p_y;
this.translate=function(AdQUu,xjWYp){this.x+=AdQUu;this.y+=xjWYp;}
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(glsRa){return(this.x==glsRa.x)&&(this.y==glsRa.y)&&(this.width==glsRa.width)&&(this.height==glsRa.height);}
this.copy=function(glsRa){this.x=glsRa.x;this.y=glsRa.y;this.width=glsRa.width;this.height=glsRa.height;}
this.translate=function(AdQUu,xjWYp){this.x+=AdQUu;this.y+=xjWYp;}
}
function html_getLayer(glsRa)
{
if(typeof(glsRa)=="string")return document.getElementById(glsRa);
return glsRa;
}
function html_SetPosition(glsRa,AdQUu,xjWYp){
glsRa=html_getLayer(glsRa);
glsRa.style.left=AdQUu+"px";glsRa.style.top=xjWYp+"px";
}
function html_SetSize(DCsqi,ufBgF,EdLLk){
glsRa=html_getLayer(DCsqi);
glsRa.style.width=ufBgF+"px";glsRa.style.height=EdLLk+"px";
}
function html_SetRect(glsRa,dwixe){html_SetGeometry(glsRa,dwixe.x,dwixe.y,dwixe.width,dwixe.height);}
function html_SetGeometry(glsRa,AdQUu,xjWYp,ufBgF,EdLLk){html_SetPosition(glsRa,AdQUu,xjWYp);html_SetSize(glsRa,ufBgF,EdLLk);}
function html_SetVisibility(glsRa,wZoJF){glsRa=html_getLayer(glsRa);glsRa.style.visibility=(wZoJF)?"visible":"hidden";}
function html_SetDisplay(glsRa,wZoJF){glsRa=html_getLayer(glsRa);glsRa.style.display=(wZoJF)?"block":"none";}
function html_SetCanvasSize(glsRa,ufBgF,EdLLk){glsRa=html_getLayer(glsRa);glsRa.width=ufBgF;glsRa.height=EdLLk;}
function html_writeContent(glsRa,ELrCt){glsRa=html_getLayer(glsRa);glsRa.innerHTML=ELrCt;}
function html_SetOpacity(glsRa,oVcup)
{
glsRa=html_getLayer(glsRa);
glsRa.style['opacity']=oVcup;
glsRa.style['-moz-opacity']=oVcup;
glsRa.style.filter=(oVcup==1)?'':'alpha(opacity='+(oVcup*100)+')';
}
var AGRMj=[
{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<AGRMj.length;i++)
{
var array2=AGRMj[i].l;
for(var i2=0;i2<array2.length;i2++)
{
var reg=new RegExp(array2[i2],"g");
res=res.replace(reg,AGRMj[i].acc)
}
}
return res;
}
function trimString(str)
{
return str.replace(/^\s*|\s*$/g,"");
}
function IsNumeric(ACvdh)
{
var HGrgi="0123456789.";var iEjld=true;var svQME;
for(tMtmJ=0;tMtmJ<ACvdh.length&&iEjld==true;tMtmJ++){svQME=ACvdh.charAt(tMtmJ);if(HGrgi.indexOf(svQME)==-1) iEjld=false;}
return iEjld;
}
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(YLtkQ)
{
var dSoFE=YLtkQ*60;
var USTQZ=new Date();
var FRrcq=0;
FRrcq+=USTQZ.getYear()*12*31*24*60*60;
FRrcq+=USTQZ.getMonth()*31*24*60*60;
FRrcq+=USTQZ.getDate()*24*60*60;
FRrcq+=USTQZ.getHours()*60*60;
FRrcq+=USTQZ.getMinutes()*60;
FRrcq+=USTQZ.getSeconds();
if(dSoFE!=0)
{
FRrcq=Math.floor(FRrcq/dSoFE)*dSoFE
}
return "-"+FRrcq;
}
function html_findPos(obj)
{
var oVcup=MtLRi(obj)
return new Point(oVcup[0],oVcup[1])
}
function MtLRi(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(QeEHE,ufBgF,EdLLk)
{
document.write("<input id='"+QeEHE+"' type=search results=0 placeholder='' style='width:"+ufBgF+"px;height:"+EdLLk+"px;'>")
}
function hOplr()
{
var GEGlC=document.getElementsByTagName("A");
for(var tMtmJ=0;tMtmJ<GEGlC.length;tMtmJ++)
{
var glsRa=GEGlC[tMtmJ];
if(glsRa.onmouseover)glsRa.onmouseover=null;
if(glsRa.onmouseout)glsRa.onmouseout=null;
}
}
function sDnYX()
{
for(var QPkhr in document.wa_global_list_element)
{
var uDYAU=document.wa_global_list_element[QPkhr]
var lQsGD=document.getElementById(uDYAU)
lQsGD.onclick=function()
{
WA_focus(this)
}
}
}
function WA_declare(uDYAU)
{
if(!document.wa_global_list_element)
{
document.wa_global_list_element=new Array();;
}
document.wa_global_list_element.push(uDYAU)
}
function hTfWp()
{
var GWCwT=window.location.search;
if(GWCwT.substr(0,1)=="?")GWCwT=GWCwT.substr(1);
if(GWCwT.length==0)return;
var avuIk=new Array();
var ZmUEv=GWCwT.split("&");
for(var i=0;i<ZmUEv.length;i++)
{
var SMQas=ZmUEv[i].split("=");avuIk[SMQas[0]]=SMQas[1];
}
var ELrCt_info=avuIk["crbst_info"];
if(!ELrCt_info)return;
var QBvJb=new Array();
QBvJb.m_unid=ELrCt_info;
QBvJb.m_index_item=-1;
var rNQNS=ELrCt_info.indexOf("-");
if(rNQNS!=-1)
{
QBvJb.m_unid="wa-id-"+ELrCt_info.substring(0,rNQNS);
QBvJb.m_index_item=parseInt(ELrCt_info.substring(rNQNS+1));
}
document.wa_global_query_info=QBvJb;
}
function IS_onload_WA()
{

if(isMSIE8())
{
wa_timeout("IS_onload_ui()",0)
}
else
{
IS_onload_ui()
}
if(isIPhone())
{
hOplr()
}
else
{
sDnYX()
}
hTfWp();

HEPHJ()
}
function HEPHJ()
{
var lQGxT=0;
var ZgJbx=document.webaca_banner_height;
if(document.webaca_page_is_centered)
{
var QXNuW=getWindowSize().width
var wfIhJ=document.webaca_width_page
if(QXNuW>wfIhJ)lQGxT=(QXNuW-wfIhJ)/2;
}
document.body.style.backgroundPosition=lQGxT+"px "+ZgJbx+"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 qBwEH=CONST_WA_COUNTRIES.codes[n]
var mHlhv=CONST_WA_COUNTRIES.labels[n]
Translator.m_countries[qBwEH]=mHlhv
}
}
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(uDYAU,EwjcB,jWhLP)
{
this.uDYAU=uDYAU;
this.EwjcB=EwjcB
this.jWhLP=jWhLP;
this.cgYGc=this.uDYAU+"-div"
this.GKEME=this.uDYAU+"-canvas"
this.BJVYS=new Rect(0,0,0,0)
this.JAcGU=false;
this.csMOp=false;
this.Ruaiw=6;
this.mgOOG=false;
this.pAjmo=false;
this.igXqE=false;
this.CSufR="";
this.shadow=function()
{
return this.jWhLP;
}
this.marginShadow=function()
{
return this.Ruaiw;
}
this.rect=function()
{
return this.BJVYS;
}
this.canvasId=function()
{
return this.GKEME;
}
this.divId=function()
{
return this.cgYGc;
}
this.opacity=function()
{
return this.YcTIR;
}
this.img_clip=function()
{
return this.pAjmo;
}
this.img_src=function()
{
return this.mgOOG;
}
this.toHtml=function()
{
var ELrCt=""
ELrCt+="<div id='"+this.cgYGc+"' style=\"";
ELrCt+="position:absolute;";
if(this.CSufR.length>0)
{
ELrCt+="cursor:pointer;";
}
if(this.rect.x>0)ELrCt+="left:"+this.rect.x+"px;";
if(this.rect.y>0)ELrCt+="top:"+this.rect.y+"px;";
if(this.rect.width>0)ELrCt+="width:"+this.rect.width+"px;";
if(this.rect.height>0)ELrCt+="height:"+this.rect.height+"px;";
if(EwjcB)
ELrCt+="z-index:"+EwjcB+";";
ELrCt+="\" ";
if(this.CSufR.length>0)
{
ELrCt+="onclick=\""+this.CSufR+"\" "
}
ELrCt+=">";
if((this.rect.width>0)&&this.shadow())
{
ELrCt+=html_canvas(this.GKEME,this.rect.width+2*this.Ruaiw,this.rect.height+2*this.Ruaiw)+"</div>";
}
else
{
ELrCt+=html_canvas(this.GKEME,0,0)+"</div>";
}
return ELrCt
}
this.setImage=function(TVkKb,nCPgN,RTnZK)
{
if(RTnZK==undefined)RTnZK=0;
if((TVkKb==this.mgOOG)&&(this.pAjmo&&this.pAjmo.equals(nCPgN))&&(this.igXqE==RTnZK))
{
return;
}
this.igXqE=RTnZK;
this.mgOOG=TVkKb;
this.pAjmo=nCPgN;
this.Ixjtd()
}
this.registerDynamicCanvas=function()
{
registerDynamicCanvas(this.GKEME);
this.csMOp=true;
this.setRect(this.BJVYS.x,this.BJVYS.y,this.BJVYS.width,this.BJVYS.height)
}
this.Ixjtd=function()
{
if((this.BJVYS.width>0)&&(this.BJVYS.height>0))
{
this.draw()
}
this.JAcGU=true
};
this.draw=function(){};
this.setPosition=function(AdQUu,xjWYp)
{
this.BJVYS.x=AdQUu;this.BJVYS.y=xjWYp;
if(this.csMOp==false)return
html_SetPosition(this.cgYGc,this.BJVYS.x,this.BJVYS.y)
if(this.JAcGU==false)
{
this.Ixjtd()
}
}
this.setOnClick=function(ELrCt)
{
this.CSufR=ELrCt
}
this.width=function(){return this.BJVYS.width;}
this.height=function(){return this.BJVYS.height;}
this.setSize=function(ufBgF,EdLLk)
{
this.BJVYS.width=ufBgF;this.BJVYS.height=EdLLk;
var DPswW=ufBgF
var RgDth=EdLLk
if(this.jWhLP)
{
DPswW+=2*this.Ruaiw
RgDth+=2*this.Ruaiw
}
if(this.csMOp==false)return
html_SetSize(this.cgYGc,DPswW,RgDth)
html_SetCanvasSize(this.GKEME,ufBgF,EdLLk)
this.Ixjtd()
}
this.setRect=function(AdQUu,xjWYp,ufBgF,EdLLk)
{
this.BJVYS.x=AdQUu;this.BJVYS.y=xjWYp;this.BJVYS.width=ufBgF;this.BJVYS.height=EdLLk;
var DPswW=ufBgF
var RgDth=EdLLk
var nlIvs=AdQUu
var EcEBQ=xjWYp
if(this.jWhLP)
{
DPswW+=2*this.Ruaiw
RgDth+=2*this.Ruaiw
nlIvs-=this.Ruaiw
EcEBQ-=this.Ruaiw
}
if(this.csMOp==false)return 
html_SetGeometry(this.cgYGc,nlIvs,EcEBQ,DPswW,RgDth);
html_SetCanvasSize(this.GKEME,DPswW,RgDth)
try{this.Ixjtd()}catch(e){
alert(e.message)
}
}
this.setVisible=function(wZoJF)
{
if(this.csMOp==false)return
html_SetVisibility(this.cgYGc,wZoJF)
}
this.setOpacity=function(oVcup)
{
this.YcTIR=oVcup 
if(this.csMOp==false)return
this.Ixjtd()
}
}

function is_onresize()
{
WA_Dialog.resizeUI()
try
{
if(WA_PhotoAlbum_resizeUI)WA_PhotoAlbum_resizeUI()
}
catch(e){}
HEPHJ()
}
function is_onscroll()
{
centerFullPageContainer();
}
function registerDynamicCanvas(id)
{
if(isMSIE())
G_vmlCanvasManager.initElement(document.getElementById(id));
}
function WA_openDialogAction(QPkhr)
{
var AamTC=WA_Dialog.sdwjt;
if(QPkhr==-1){AamTC.closeWin();return;}
var YTcsN=AamTC.kfkhJ(QPkhr);
if(YTcsN[5])
{
YTcsN[4].call(YTcsN[6],YTcsN[5])
}
else
{
YTcsN[4](YTcsN[5]);
}
}
function WA_Dialog(wZoJF_close_button)
{
this.YnINO=0;
this.lqPWf=0;
this.MUGDc_win_width=600;
this.MUGDc_win_height=400;
this.SpOLo=new Array();
this.RNBIE="wa-dialog-but-";
this.SHEmI=this.RNBIE+"div-";
this.lXCeo=this.RNBIE+"canvas-";
this.BUTTON_HEIGHT=25;
this.JRlVA=CONST_WA_GLOBAL_COLOR_THEME;
this.wZoJF_close_button=wZoJF_close_button;
this.sDOQa=6;
this.NLXNa=function()
{
if(this.wZoJF_close_button==undefined)this.wZoJF_close_button=true;
this.qODpW();
}
this.resetButtons=function()
{
this.qODpW();
}
this.idealHeight=function()
{
return this.jCqcg
}
this.displayWindowWithAutoResize=function(npbVX,wJiQk)
{
this.nbvKS=false
this.jCqcg=npbVX
this.sBXYa=wJiQk 
this.resetButtons();
wJiQk.call(this)
var l=document.getElementById('wa-dialog-content');
if(this.nbvKS==false)
if(l.scrollHeight>200)
{
this.nbvKS=true
this.jCqcg=l.scrollHeight+150
this.resetButtons();
wJiQk.call(this)
}
}
this.initializeWindow=function(MUGDc_lx,MUGDc_ly)
{
if(WA_Dialog.sdwjt)WA_Dialog.sdwjt.closeWin()
WA_Dialog.sdwjt=this;
this.MUGDc_win_width=MUGDc_lx;
this.MUGDc_win_height=MUGDc_ly;
this.XFIWR()
}
this.progress=function()
{
this.initializeWindow(300,100) 
this.writeContent("<div width=100% align=center><img src='wa_loading.gif'></div>")
}
this.xCilj=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(mHlhv,urBPK,YmmLW,rjGJK)
{
var MlIeK=this.SpOLo.length
if(this.wZoJF_close_button==true)
{
MlIeK--;
}
var ufBgF=Math.max((mHlhv.length*8)*1.2+30,80)
var mOubi=new Size(ufBgF,this.BUTTON_HEIGHT);
this.VlpKa("action_"+MlIeK,MlIeK,mHlhv,urBPK,mOubi,YmmLW,rjGJK)
}
this.qODpW=function()
{
this.SpOLo=new Array();
if(this.wZoJF_close_button)
{
var mOubi=new Size(120,20);
this.VlpKa("close",-1,Translator.tr("Close")+" - X",null,mOubi)
}
}
this.VlpKa=function(sdpKe,MlIeK,mHlhv,urBPK,mOubi,YmmLW,rjGJK)
{
var YTcsN=[sdpKe,mOubi,MlIeK,mHlhv,urBPK,YmmLW,rjGJK];
this.SpOLo.push(YTcsN);
}
this.writeContent=function(s)
{
var l=document.getElementById('wa-dialog-content');
l.innerHTML=s
}
this.kfkhJ=function(sdpKe)
{
for(var QPkhr=0;QPkhr<this.SpOLo.length;QPkhr++)
{
var YTcsN=this.SpOLo[QPkhr];
if((YTcsN[0]==sdpKe)||(YTcsN[2]+""==sdpKe+""))
return YTcsN;
}
return undefined;
}
this.Ajebh=function(sdpKe)
{
var YTcsN=this.kfkhJ(sdpKe);
return YTcsN[1]
}
this.wXdNx=function(sctmd)
{
var YTcsN=this.kfkhJ(sctmd);
var sdpKe=YTcsN[0];
var MlIeK=YTcsN[2];
var PNYMc_text=this.JRlVA[4]
var PNYMc_bg=this.JRlVA[5]
var PNYMc_glow=this.JRlVA[7]
if(MlIeK==-1)
{
PNYMc_text=this.JRlVA[10]
PNYMc_bg=this.JRlVA[8]
PNYMc_glow=this.JRlVA[11]
}
var TrINZ=this.SHEmI+sdpKe;
var nJkBP=this.lXCeo+sdpKe;
var mOubi=this.Ajebh(sctmd)
var tgTnw=this.sDOQa;
var s=""
s+="<a href='javascript:WA_openDialogAction("+sctmd+")' ";
var PNYMc=new RGBColor(PNYMc_bg);
var ZAjrQ=PNYMc.toHsl();
PNYMc.fromHsl(ZAjrQ[0],ZAjrQ[1],ZAjrQ[2]+0.2)
PNYMc_bg=PNYMc.toRGB();
var xQfXE_glow=new RGBColor(PNYMc_glow);
var Hbqow=xQfXE_glow.toHsl();
xQfXE_glow.fromHsl(Hbqow[0],Hbqow[1],Hbqow[2]+0.2)
PNYMc_glow=xQfXE_glow.toRGB();
s+="onmouseover=\"WA_but_over('"+nJkBP+"','"+PNYMc_bg+"','"+PNYMc_glow+"')"+"\" ";
s+="onmouseout=\""+"WA_but_out('"+nJkBP+"')"+"\" ";
s+="style='text-decoration:none;'>";
s+="<div id='"+this.SHEmI+sdpKe+"' style='position:absolute;cursor:pointer;left:0px;top:0px;height:"+mOubi.height+"px;width:"+mOubi.width+"px;' >";
s+="<div style='position:absolute;left:"+(-tgTnw)+"px;top:"+(-tgTnw)+"px;height:"+mOubi.height+"px;'>"
s+="<canvas id='"+this.lXCeo+sdpKe+"' width="+(mOubi.width+tgTnw*2)+" height="+(mOubi.height+tgTnw*2)+" ></canvas>";
s+="</div>"
s+="<div align=center style='position:absolute;left:0px;top:"+(0)+"px;vertical-align:middle;width:100%;height:"+(mOubi.height)+"px;line-height:"+(mOubi.height)+"px;font-family:arial;font-size:13px;font-weight:bold;color:"+PNYMc_text+"'>"
s+=YTcsN[3];
s+="</div>"
s+="</div>"
s+="</a>"
return s;
}
this.getColorTheme=function(QPkhr)
{
return this.JRlVA[QPkhr];
}
this.Xaopx=function(sdpKe)
{
var YTcsN=this.kfkhJ(sdpKe);
var MlIeK=YTcsN[2];
var PNYMc_bg=this.JRlVA[5]
var PNYMc_glow=this.JRlVA[7]
var PNYMc_text=this.JRlVA[3]
if(MlIeK==-1)
{
PNYMc_bg=this.JRlVA[8]
PNYMc_glow=this.JRlVA[11]
PNYMc_text=this.JRlVA[10]
}
var qBwEH=this.lXCeo+sdpKe;
registerDynamicCanvas(qBwEH);
var mOubi=this.Ajebh(sdpKe);
var gUcZt=mOubi.height*0.25;
var pZNNR=(mOubi.height-gUcZt)/2;
var xGgkH=(mOubi.width-2);
var EdLLk_circle_top=gUcZt*2;
var IYcXv_top=[(mOubi.width-xGgkH)/2,1,xGgkH,EdLLk_circle_top,pZNNR];
var ufBgF_circle_bottom=mOubi.width*0.9;
var EdLLk_circle_bottom=mOubi.height*0.45;
var OQWeY=PNYMc_glow;
var UqAuW=PNYMc_glow;
var oUadw=EdLLk_circle_bottom/2;
var IYcXv_bottom=[(mOubi.width-ufBgF_circle_bottom)/2,mOubi.height-EdLLk_circle_bottom-1,ufBgF_circle_bottom,EdLLk_circle_bottom,oUadw,OQWeY,UqAuW];
WA_but(qBwEH,0,mOubi.width,mOubi.height,gUcZt,PNYMc_bg,IYcXv_top,IYcXv_bottom,true,0)
}
this.bIHgv=function(sdpKe)
{
var YTcsN=this.kfkhJ(sdpKe)
if(YTcsN)
{
var qBwEH=this.SHEmI+YTcsN[0];
return document.getElementById(qBwEH);
}
return undefined
}
this.XFIWR=function()
{
var l=document.getElementById('wa-dialog-container');
l.style.display="block" 

var s="";
var ZDqkp=document.webaca_banner_height
s+="<div  style='position:absolute;left:0px;top:"+ZDqkp+"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:"+ZDqkp+"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 tMtmJ in this.SpOLo)
{
s+=this.wXdNx(this.SpOLo[tMtmJ][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.FqUaA)
}
this.FqUaA=function()
{
registerDynamicCanvas('wa-dialog1');
for(var tMtmJ in this.SpOLo)
{
this.Xaopx(this.SpOLo[tMtmJ][0])
}
this.Iiaff()
}
this.intern_closeWin=function()
{
var l=document.getElementById('wa-dialog-container');
l.style.display="none"
WA_Dialog.sdwjt=false
}
this.closeWin=function()
{
this.intern_closeWin()
}
this.cssText1=function()
{
return "font-family:Arial;font-size:15px;color:"+this.JRlVA[3]+";";
}
this.onCustomKeypress=function(GkUaL)
{
if((this.SpOLo.length==1)&&(GkUaL==13))
{
this.closeWin()
return true;
}
return false;
}
this.onkeypress=function(GkUaL)
{
return this.onCustomKeypress(GkUaL)
}
this.onkeydown=function(GkUaL)
{
if(GkUaL==27)
{
this.closeWin()
return true;
}
return this.onCustomKeypress(GkUaL) 
}
this.customUpdate=function(){}
this.Iiaff=function()
{
var ufBgF_page=document.webaca_width_page;
var EdLLk_page=document.webaca_height_page;
var UhpFp=getWindowSize().width
var EdLLk_window=getWindowSize().height 

this.YnINO=Math.min(UhpFp*0.9,this.MUGDc_win_width)
this.lqPWf=Math.min(EdLLk_window*0.9,this.MUGDc_win_height)
var hGmDJ=document.getElementById('wa-dialog1');
hGmDJ.width=this.YnINO+10
hGmDJ.height=this.lqPWf+10
var AdQUu=getWindowScroll().x+(UhpFp-hGmDJ.width)/2
var xjWYp=getWindowScroll().y+(EdLLk_window-hGmDJ.height)/2
AdQUu=(UhpFp-hGmDJ.width)/2
xjWYp=(EdLLk_window-hGmDJ.height)/2
AdQUu=Math.max(0,AdQUu)
xjWYp=Math.max(0,xjWYp) 
var oIWxH=document.getElementById('wa-dialog-main');
html_SetGeometry('wa-dialog-main',AdQUu,xjWYp,hGmDJ.width,hGmDJ.height);
var coQqY_bg="(0;0;0;"+this.lqPWf*0.25+";"+this.JRlVA[1]+";"+this.JRlVA[2]+")";
WA_bg('wa-dialog1',this.YnINO,this.lqPWf,10,3,this.JRlVA[0],[coQqY_bg],true,0)
var qilfM=10;
var BdTAw=this.bIHgv(-1)
if(BdTAw)
{
var OuVrU_close=this.Ajebh(-1)
html_SetPosition(BdTAw,this.YnINO-OuVrU_close.width+this.sDOQa-qilfM,this.sDOQa+qilfM)
}
var pHSYG_buttons=this.SpOLo.length;
if(this.wZoJF_close_button==true)
{
pHSYG_buttons--;
}
var uFEES=10;
var rXhhe=0;
for(var tMtmJ=0;tMtmJ<pHSYG_buttons;tMtmJ++)
{
if(tMtmJ>0) rXhhe+=uFEES;
var OuVrU=this.Ajebh(tMtmJ);
rXhhe+=OuVrU.width;
}
var CUXRJ=(this.YnINO-rXhhe)/2
for(var tMtmJ=0;tMtmJ<pHSYG_buttons;tMtmJ++)
{
if(tMtmJ>0) CUXRJ+=uFEES;
var IhdWY=this.bIHgv(tMtmJ);
var OuVrU=this.Ajebh(tMtmJ);
html_SetPosition(IhdWY,CUXRJ+this.sDOQa,+this.sDOQa+this.lqPWf-OuVrU.height-2*qilfM)
CUXRJ+=OuVrU.width;
}
var EdLLk_top=45;
var EdLLk_bottom=this.BUTTON_HEIGHT+2*qilfM;
if(pHSYG_buttons==0)
{
EdLLk_bottom=0;
}
var EdLLk_content=(this.lqPWf-EdLLk_top-EdLLk_bottom)-qilfM
var wfPKB=document.getElementById('wa-dialog-content');
var AamTC_content=Math.round(this.YnINO-2*qilfM)
var OnFKF=Math.round(EdLLk_content)
this.m_content_lx=AamTC_content
this.m_content_ly=OnFKF
html_SetGeometry('wa-dialog-content',Math.round(5+(this.YnINO-AamTC_content)/2),Math.round(5+EdLLk_top+(EdLLk_content-OnFKF)/2),AamTC_content,OnFKF);
this.customUpdate() 
var FbhTP=document.getElementById('wa-dialog-container');
HwRjq=getWindowFullSize().width
EdLLk_full_client=getWindowFullSize().height
html_SetSize('wa-dialog-container',HwRjq,EdLLk_full_client);
centerFullPageContainer();
}
this.NLXNa();
}
function WA_exec_callback_opera_compliant(YmmLW,qvnIu)
{
if(/opera/i.test(navigator.userAgent))
WA_exec_delayedCallback(YmmLW,qvnIu)
else
qvnIu.call(YmmLW)
}
function WA_exec_delayedCallback(YmmLW,qvnIu)
{
wa_timeout(Delegate.create(YmmLW,qvnIu),0);
}
WA_Dialog.getCurrent=function()
{
return WA_Dialog.sdwjt;
}
WA_Dialog.sdwjt=false;
WA_Dialog.resizeUI=function()
{
if(WA_Dialog.sdwjt)
{
WA_Dialog.sdwjt.Iiaff()
}
}
WA_Dialog.alert=function(s)
{
var w=new WA_Dialog();
w.xCilj(s)
}
WA_Dialog.progress=function()
{
var w=new WA_Dialog(false);
w.progress()
}
function centerFullPageContainer()
{
var ufBgF_page=document.webaca_width_page;
var EdLLk_page=document.webaca_height_page;
var FbhTP=document.getElementById('wa-dialog-container');
HwRjq=getWindowSize().width
EdLLk_full_client=getWindowSize().height
var xjWYp_bg=getWindowScroll().y;
xjWYp_bg=Math.min(xjWYp_bg,EdLLk_page-EdLLk_full_client+1)
xjWYp_bg=Math.max(xjWYp_bg,0)
var vYBXv=getWindowScroll().x;
vYBXv=Math.min(vYBXv,ufBgF_page-HwRjq+1)
vYBXv=Math.max(vYBXv,0) 
html_SetPosition('wa-dialog-container',vYBXv,xjWYp_bg,HwRjq,EdLLk_full_client);
}

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

}
};
return http_request;
}
function makePOSTRequest(url,parameters,callback,PGVVq)
{
var http_request=getXMLHttpRequest(callback,PGVVq);
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(ungIc,ZUYOo,rjGJK)
{
var result=ZUYOo.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 GcXng=rjGJK[0] 
WA_Dialog.alert(Translator.tr("Success:Mail sended"));
var form=document.getElementById(GcXng);
form.reset()
}
else
{
var vPfEa="error_string="
n=result.indexOf(vPfEa)
if(n>-1)
{
result=result.substring(n+vPfEa.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 bmcnt=el.value
bmcnt=encodeURI(bmcnt)
bmcnt=bmcnt.replace(/&/g,escape("&")) 
poststr+=el.name.replace("_mandatory","")+"="+bmcnt+"&"
}
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(kqajw)
{
var HBFie=document.getElementById(kqajw);
HBFie.submit() 
}
function QnxQI(uDYAU,rjGJK)
{
var GkUaL=rjGJK[0]
if(GkUaL==13)
{
var kqajw=uDYAU+"-form";
var HBFie=document.getElementById(kqajw);
for(var i=0;i<HBFie.elements.length;i++)
{
var lQsGD=HBFie.elements[i];
if((lQsGD.type=="textarea")&&(lQsGD.focused))return true;
}
WA_form_submit(kqajw);
return false;
}
return true;
}
function WA_addFormDeclaration(uDYAU,WliMX)
{
return WA_addHandler(uDYAU,"keypress",QnxQI)
}
function WA_form_bg(id,lx,ly,arc,TCZFt,bord_col,bg,shadow,RTnZK,Xmdmd)
{
WA_bg(id,lx,ly,arc,TCZFt,bord_col,bg,shadow,RTnZK,1.0,true) 
var NAKJX=Xmdmd.x;
var IPbVR=0;
var vemhh=Xmdmd.cells
for(var n=0;n<vemhh.length;n++)
{
var lVJSn=vemhh[n]
var arc2=0
LFGPs(id,NAKJX,IPbVR+lVJSn.y,Xmdmd.w,lVJSn.h,arc2,1,Xmdmd.border,[''],false,0,1.0,false)
LFGPs(id,NAKJX,IPbVR+lVJSn.y,lVJSn.w,lVJSn.h,arc2,1,"rgba(0,0,0,0)",[Xmdmd.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(xZKMo)
{
this.ok=false;this.a=1.0;
if(xZKMo.charAt(0)=='#'){xZKMo=xZKMo.substr(1);}
xZKMo=xZKMo.replace(/ /g,'');
xZKMo=xZKMo.toLowerCase();
var SIYuX=[
{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<SIYuX.length;i++){
var QXOOx=SIYuX[i].re;
var IdpLa=SIYuX[i]._process;
var pbSlT=QXOOx.exec(xZKMo);
if(pbSlT){
var gwwOJ=IdpLa(pbSlT);
this.r=gwwOJ[0];this.g=gwwOJ[1];this.b=gwwOJ[2];this.a=gwwOJ[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.AKZkL=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.AKZkL(p,q,h+1/3);g=this.AKZkL(p,q,h);b=this.AKZkL(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 CRFDu(XLVHH,rjGJK)
{
if(document.wa_global_handlers!=undefined)
{
var uDYAU=WA_focused_element()
if(uDYAU)
{
var urBPK=document.wa_global_handlers[uDYAU+"-"+XLVHH]
if(urBPK) return urBPK([uDYAU],rjGJK)
}
}
return true;
}
function PmFrE(e)
{
if(window.event){return e.keyCode;}
else 
if(e.which) return  e.which;
return-1;
}
function WA_onkeypress(e)
{
var GkUaL=PmFrE(e);
if(WA_Dialog.sdwjt)
{
if(WA_Dialog.sdwjt.onkeypress(GkUaL))
{
return false;
}
}
return CRFDu("keypress",[GkUaL]);
}
function WA_ondblclick(e)
{
return CRFDu("dblclic",[""]);
}
function WA_onkeydown(e)
{
var GkUaL=PmFrE(e)
if(WA_Dialog.sdwjt)
{
if(WA_Dialog.sdwjt.onkeydown(GkUaL))
{
return false;
}
}
if(GkUaL==13) return true;

if(wa_global_photo_album&&wa_global_photo_album.fullpage_object)
{
var YmmLW=wa_global_photo_album.fullpage_object
return YmmLW.onFullScreenKeydown(GkUaL) 
}
return CRFDu("keydown",[GkUaL]);
}
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 uDYAU=this.id
var urBPK=document.wa_global_handlers[uDYAU+"-mousewheel"]
if(urBPK)
{
if(urBPK([uDYAU],[delta]))
{
b_default=true;
}
}
}
}
if(b_default)
if(e.preventDefault)
e.preventDefault();
e.returnValue=!b_default;
}
function WA_addHandler(uDYAU,XLVHH,qvnIu)
{
if(document.wa_global_handlers==undefined) document.wa_global_handlers=new Array()
if(XLVHH=="mousewheel")
{
var OIxeK=document.getElementById(uDYAU);
if(OIxeK.addEventListener)
OIxeK.addEventListener('DOMMouseScroll',WA_genericMouseWheelHandler,false);
OIxeK.onmousewheel=WA_genericMouseWheelHandler
}
document.wa_global_handlers[uDYAU+"-"+XLVHH]=qvnIu
}
function WA_loadPhotoAlbum(uDYAU,WbeuI,mOubi,uDYAU_modif)
{
if(typeof(wa_global_photo_album[uDYAU])=="undefined")
{
var o=new Array();
o.src_folder=WbeuI
o.size_container=mOubi
o.id_modif=uDYAU_modif
wa_global_photo_album[uDYAU]=o;
}
}
function WA_focused_element()
{
return document.wa_global_focused_element
}
function WA_focus(YmmLW)
{
document.wa_global_focused_element=YmmLW.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(ZaCrn,rkKqW,WdXXs)
{
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[rkKqW])document.wa_global_blogs_elements[rkKqW]=new Array()
document.wa_global_blogs_elements[rkKqW].id_blog=ZaCrn
document.wa_global_blogs_elements[rkKqW].has_email=WdXXs
}
function WA_addSearchHandler(uDYAU)
{
return WA_addHandler(uDYAU,"keypress",SXGHR)
}
function SXGHR(uDYAU,rjGJK)
{
var GkUaL=rjGJK[0]
if(GkUaL==13)
{
var CUiGg=uDYAU+"-search-input";
WA_onSearch(CUiGg)
return false;
}
return true;
}
function WA_declareSearchIndex(HuhPe,kQfZn)
{
document.const_wa_search_js=HuhPe
document.const_wa_search_index_js=kQfZn
}
function WA_onSearch(CUiGg)
{
var swTYA=document.getElementById(CUiGg);
if(document.wa_search_js_loaded==true)
{
WA_openSearchDialog(swTYA,document.const_wa_search_index_js)
}
else
{
WA_Dialog.progress();
iJtPF(swTYA)
}
}
function DvENW(rjGJK)
{
document.wa_search_js_loaded=true
WA_openSearchDialog(rjGJK[0],document.const_wa_search_index_js)
}
function iJtPF(wxqcj)
{
WA_loadScript(document.const_wa_search_js,DvENW,[wxqcj])
}
function DkEgx(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 DkEgx(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(uDYAU)
{
var MMHZB=document.wa_global_menu_declaration[uDYAU]
WA_bg(uDYAU,MMHZB.root_lx,MMHZB.root_ly,MMHZB.root_corner,MMHZB.root_border,MMHZB.root_col_border,[MMHZB.root_bg],false,0)
var lQsGD=document.getElementById(MMHZB.id)
if(!lQsGD)return;
var c=lQsGD.getContext('2d');
c.lineWidth=1
c.strokeStyle=MMHZB.root_col_separator
var NCuxK=0.5;

var QUPLe=MMHZB.root_sizes.length
if(MMHZB.root_extend==false)
{
QUPLe--;
}
var wYcGH=3;
for(var i=0;i<QUPLe;i++)
{
var mOubi=MMHZB.root_sizes[i] 

c.beginPath();
if(MMHZB.root_vertical==false)
{
NCuxK+=(mOubi-1)
c.moveTo(NCuxK,wYcGH)
c.lineTo(NCuxK,MMHZB.root_ly-wYcGH)
}
else
{
NCuxK+=(mOubi)
c.moveTo(wYcGH,NCuxK-1,0)
c.lineTo(MMHZB.root_lx-wYcGH,NCuxK-1)
}
c.closePath();
c.stroke()
}
}
function WA_declare_menu(uDYAU,MMHZB)
{
if(!document.wa_global_menu_declaration)document.wa_global_menu_declaration=new Array();
MMHZB.id=uDYAU
document.wa_global_menu_declaration[uDYAU]=MMHZB
WA_bg_menu(uDYAU)
}
function WA_declareMarket(uDYAU,gTFCC_market,uDYAU_modif)
{
if(typeof(wa_global_market.markets[uDYAU])=="undefined")
{
var o=new Array();
o.src_folder=gTFCC_market
o.id_modif=uDYAU_modif 

o.id=uDYAU
wa_global_market.markets[uDYAU]=o;
}
}
function WA_button_market_declare(uDYAU,mHlhv)
{
if(!document.wa_global_button_market_declaration)document.wa_global_button_market_declaration=new Array();
document.wa_global_button_market_declaration[uDYAU]=mHlhv
}
function SDWAY(c,img,AdQUu,xjWYp,ufBgF,EdLLk,nCPgN,iVBjI,LobAX)
{
c.globalAlpha=iVBjI
if(LobAX) c.clearRect(0,0,ufBgF,EdLLk) 
if(iVBjI==0)return;
if(nCPgN)
{
c.drawImage(img,nCPgN.x,nCPgN.y,nCPgN.width,nCPgN.height,AdQUu,xjWYp,ufBgF,EdLLk)
}
else
{
c.drawImage(img,AdQUu,xjWYp,ufBgF,EdLLk)
}
}
function WA_drawImage(id,TVkKb,AdQUu,xjWYp,ufBgF,EdLLk,nCPgN,iVBjI,LobAX)
{
if(LobAX==undefined)LobAX=true;
if(iVBjI==undefined)iVBjI=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==TVkKb)
{
SDWAY(c,c.LOggZ,AdQUu,xjWYp,ufBgF,EdLLk,nCPgN,iVBjI,LobAX)
return;
}
var img=new Image();
img.SeSUr=el.SeSUr
img.onload=function()
{
c.old_src=TVkKb
c.LOggZ=this;
SDWAY(c,this,AdQUu,xjWYp,ufBgF,EdLLk,nCPgN,iVBjI,LobAX)
}
img.src=TVkKb;
}

-->
