<!--

function Delegate(){}
Delegate.create=function(o,f){
var PsgIS=new Array();
var TASDX=arguments.length;
for(var i=2;i<TASDX;i++) PsgIS[i-2]=arguments[i];
return function(){
var OWuCd=[].concat(arguments,PsgIS);
f.apply(o,OWuCd);
}
}
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.wpKYY=0;
t.HEXIl=0;
t.MYsTd=0;
t.EtIQQ=0;
t.vmkcr=0;
t.YcxxM=0;
t.bhaOP=false;
t.name='';
t.suffixe='';
t.UidST=new Array();
t.setTime=function(t){
this.prevTime=this.HEXIl;
if(t>this.getDuration()){
if(this.looping){
this.rewind(t-this.wpKYY);
this.update();
this.nYZxQ('onMotionLooped',{target:this,type:'onMotionLooped'});
}else{
this.HEXIl=this.wpKYY;
this.update();
this.stop();
this.nYZxQ('onMotionFinished',{target:this,type:'onMotionFinished'});
}
}else if(t<0){
this.rewind();
this.update();
}else{
this.HEXIl=t;
this.update();
}
}
t.isRunning=function(){
return this.bhaOP;
}
t.getTime=function(){
return this.HEXIl;
}
t.setDuration=function(d){
this.wpKYY=(d==null||d<=0)?100000:d;
}
t.getDuration=function(){
return this.wpKYY;
}
t.setPosition=function(p){
this.prevPos=this.MYsTd;
var a=this.suffixe!=''?this.suffixe:'';
this.obj[this.prop]=Math.round(p)+a;
this.MYsTd=p;
this.nYZxQ('onMotionChanged',{target:this,type:'onMotionChanged'});
}
t.getPosition=function(t){
if(t==undefined) t=this.HEXIl;
return this.func(t,this.begin,this.change,this.wpKYY);
};
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.UidST=new Array();
this.addListener(this);
if(suffixe) this.suffixe=suffixe;
this.obj=obj;
this.prop=prop;
this.begin=begin;
this.MYsTd=begin;
this.setDuration(duration);
if(func!=null&&func!=''){
this.func=func;
}
this.setFinish(finish);
}
t.start=function(){
this.rewind();
this.startEnterFrame();
this.nYZxQ('onMotionStarted',{target:this,type:'onMotionStarted'});
}
t.rewind=function(t){
this.stop();
this.HEXIl=(t==undefined)?0:t;
this.fixTime();
this.update();
}
t.fforward=function(){
this.HEXIl=this.wpKYY;
this.fixTime();
this.update();
}
t.update=function(){
this.setPosition(this.getPosition(this.HEXIl));
}
t.startEnterFrame=function(){
this.stopEnterFrame();
this.bhaOP=true;
this.onEnterFrame();
}
t.onEnterFrame=function(){
if(this.bhaOP){
this.nextFrame();
wa_timeout(Delegate.create(this,this.onEnterFrame),0);
}
}
t.nextFrame=function(){
this.setTime((this.getTimer()-this.vmkcr)/1000);
}
t.stop=function(){
this.stopEnterFrame();
this.nYZxQ('onMotionStopped',{target:this,type:'onMotionStopped'});
}
t.stopEnterFrame=function(){
this.bhaOP=false;
}
t.continueTo=function(finish,duration){
this.begin=this.MYsTd;
this.setFinish(finish);
if(this.wpKYY!=undefined)
this.setDuration(duration);
this.start();
}
t.resume=function(){
this.fixTime();
this.startEnterFrame();
this.nYZxQ('onMotionResumed',{target:this,type:'onMotionResumed'});
}
t.yoyo=function(){
this.continueTo(this.begin,this.HEXIl);
}
t.addListener=function(o){
this.removeListener(o);
return this.UidST.push(o);
}
t.removeListener=function(o){
var a=this.UidST;
var i=a.length;
while(i--){
if(a[i]==o){
a.splice(i,1);
return true;
}
}
return false;
}
t.nYZxQ=function(){
var arr=new Array();
for(var i=0;i<arguments.length;i++){
arr.push(arguments[i])
}
var e=arr.shift();
var a=this.UidST;
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.vmkcr=this.getTimer()-this.HEXIl*1000;
}
t.getTimer=function(){
return new Date().getTime()-this.HEXIl;
}
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,kndAe,HmiXU,wpKYY){
this.targetObject=obj;
this.init(new Object(),'a',func,kndAe,HmiXU,wpKYY);
this.onMotionChanged=function(evt){
var v=evt.target.MYsTd;
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(nCBnV,ANNKD,inUFS)
{
return "<canvas id='"+nCBnV+"' width='"+ANNKD+"' height='"+inUFS+"'></canvas>"
}
function WA_canvas(nCBnV,ANNKD,inUFS)
{
document.write(html_canvas(nCBnV,ANNKD,inUFS))
}
function LxquT(uGCJO,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;
uGCJO.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;
uGCJO.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;
uGCJO.quadraticCurveTo(cx,cy,px,py);
}
}
function UxSiS(c,x,y,lx,ly,arc,clowckwise)
{
c.beginPath()
mYtYG(c,x,y,lx,ly,arc,clowckwise)
}
function mYtYG(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 Koapu()
{
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 jwFHA(lx,ly,parent,id_suffixe)
{
var grpMk=document.createElement('canvas');grpMk.width=lx;grpMk.height=ly;
return grpMk;
}
function vWpQU(EFQtc)
{
var gbGTk=(-EFQtc+45);
return new Point(Math.cos(gbGTk*(2*Math.PI)/360),Math.sin(gbGTk*(2*Math.PI)/360))
}
function fmseN(c,EFQtc)
{
var offset=vWpQU(EFQtc)
c.shadowOffsetX=2*offset.x;
c.shadowOffsetY=2*offset.y;
c.shadowBlur=4;
}
function WA_over_img_html(VYFHI,naGuD,nHAtS)
{
if(!VYFHI.src)
{
var RmXuE=VYFHI.getElementsByTagName("IMG")
if(RmXuE.length==1)VYFHI=RmXuE[0]
}
if(VYFHI.src1==undefined)
{
VYFHI.src1=VYFHI.src;
VYFHI.src2=naGuD;
}
if(nHAtS)
{
VYFHI.src=VYFHI.src2;
}
else
{
VYFHI.src=VYFHI.src1;
}
}
function WA_over_img(id,nHAtS)
{
var el=document.getElementById(id+"-canvas") 

var VYFHI=(nHAtS)?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,[VYFHI,VYFHI],el.wa_shadow,el.wa_rot,el.wa_reflex,nHAtS)
}
function fNehC(nCBnV,lx,ly,arc,side)
{
this.id=nCBnV;
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.wVDiA=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 nAVwG=document.getElementById(this.id+"-reflex")
var QQTaq=nAVwG.getContext('2d');

var AqxJD=0;
var nCNtY=0;
if(this.side==2)
{
AqxJD=this.lx;
nCNtY=-this.ly*0.75;
}
else
if(this.side==0)
{
AqxJD=this.lx;
}
else
if(this.side==3)
{
AqxJD=0.25*this.lx;
}
else
if(this.side==1)
{
AqxJD=this.lx;
}
QQTaq.translate(AqxJD,nCNtY)
QQTaq.scale(-1,1)
QQTaq.beginPath()
UxSiS(QQTaq,1,1,this.lx-2,this.ly-2,this.arc)
QQTaq.clip() 

QQTaq.drawImage(canv2,this.sX,this.sY,this.sLx,this.sLy,this.sX,this.sY,this.sLx,this.sLy);
QQTaq.globalCompositeOperation="destination-out";
var gradient=QQTaq.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)");
QQTaq.fillStyle=gradient;
QQTaq.beginPath()
QQTaq.rect(this.sX-this.decX,this.sY-this.decY,this.sLx,this.sLy);
QQTaq.fill();
QQTaq.globalCompositeOperation="source-over";
QQTaq.scale(-1,1)
QQTaq.translate(-AqxJD,-nCNtY) 
}
}
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 rUwPS(c2,lx,ly,KgtdM,bord_col,arc,arc2)
{
if(KgtdM>0)
{
c2.beginPath()
c2.fillStyle=bord_col;
c2.beginPath()
UxSiS(c2,0,0,lx,ly,arc)
mYtYG(c2,KgtdM,KgtdM,lx-2*KgtdM,ly-2*KgtdM,arc2,true)
c2.fill()
}
}
function vEIPb()
{
this.tx=0
this.ty=0
this.rotation=0
}
function bHGVf(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 vEIPb()
}
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 qhfxL=0;
if(shadow)qhfxL=6
var qvNug=id+"-canvas"
var el=document.getElementById(qvNug)
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)-qhfxL,div.wa_pos.y-qhfxL)
html_SetCanvasSize(el,div.wa_size.height+2*qhfxL,div.wa_size.width+2*qhfxL)
html_SetCanvasSize(canv2,div.wa_size.height+4*qhfxL,div.wa_size.width+4*qhfxL)
html_SetSize(div,div.wa_size.height+2*qhfxL,div.wa_size.width+2*qhfxL) 
matrix.tx=ly+2*qhfxL
matrix.ty=2*qhfxL
}
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-qhfxL,div.wa_pos.y-lx-qhfxL)
html_SetCanvasSize(el,div.wa_size.height+2*qhfxL,div.wa_size.width+2*qhfxL)
html_SetCanvasSize(canv2,div.wa_size.height+4*qhfxL,div.wa_size.width+4*qhfxL)
html_SetSize(div,div.wa_size.height+2*qhfxL,div.wa_size.width+2*qhfxL) 
matrix.tx=2*qhfxL
matrix.ty=lx+2*qhfxL
}
matrix.rotation=rot*2*Math.PI/360
c2.translate(matrix.tx,matrix.ty)
c2.rotate(matrix.rotation)
}
}
function WA_img(id,lx,ly,arc,KgtdM,bord_col,s_img,shadow,rot,ZAmET,b_over)
{
var qvNug=id+"-canvas"
var el=document.getElementById(qvNug)
var c=el.getContext('2d');
var vMRhf=false;
if((ZAmET!=undefined)&&(ZAmET!=-1))
{
vMRhf=new fNehC(qvNug,lx,ly,arc,ZAmET)
}
var qhfxL=0;
if(shadow)qhfxL=6 


if(el.wa_lx==undefined)
{
el.wa_lx=lx
el.wa_ly=ly
el.wa_arc=arc
el.wa_bord_siz=KgtdM
el.wa_bord_col=bord_col
el.wa_s_img=s_img
el.wa_shadow=shadow
el.wa_rot=rot
el.wa_reflex=ZAmET
c.translate(qhfxL,qhfxL)
}
var rqYvE_img=document.getElementById(id+"-cache")
rqYvE_img.onload=function()
{
c.clearRect(0,0,lx+2*qhfxL,ly+2*qhfxL)
var arc2=arc-KgtdM;
if(arc2<0)arc2=0;
this.width=lx-2*KgtdM
this.height=ly-2*KgtdM
if(isMSIE())
{
if(shadow) uITFC(c,0,0,lx,ly,arc,false,rot)
var NjIsX=c.createPattern(this,'no-repeat');
c.fillStyle=NjIsX;
c.beginPath()
UxSiS(c,KgtdM,KgtdM,lx-2*KgtdM,ly-2*KgtdM,arc2)
c.translate(KgtdM,KgtdM)
c.fill()
c.translate(-KgtdM,-KgtdM)
rUwPS(c,lx,ly,KgtdM,bord_col,arc,arc2)
}
else
if(navigator.userAgent.match(/Firefox/i)&&(shadow))
{
var jMlQm=new  vEIPb()
bHGVf(id,lx,ly,rot,c,el,shadow,jMlQm)
if(shadow) uITFC(c,0,0,lx,ly,arc,false,rot)
var c2=c
rUwPS(c2,lx,ly,KgtdM,bord_col,arc,arc2)
c2.beginPath()
UxSiS(c2,KgtdM,KgtdM,lx-2*KgtdM,ly-2*KgtdM,arc2)
c2.clip()
c2.drawImage(this,KgtdM,KgtdM,lx-2*KgtdM,ly-2*KgtdM);
c2.rotate(-jMlQm.rotation)
c2.translate(-jMlQm.tx,-jMlQm.ty)
}
else
{
var canv2=jwFHA(lx,ly,el,"bis2");
var c2=canv2.getContext('2d');
var jMlQm=new  vEIPb()
bHGVf(id,lx,ly,rot,c2,canv2,shadow,jMlQm)
c.clearRect(-qhfxL,-qhfxL,lx+2*qhfxL,ly+2*qhfxL)
rUwPS(c2,lx,ly,KgtdM,bord_col,arc,arc2)
c2.beginPath()
UxSiS(c2,KgtdM,KgtdM,lx-2*KgtdM,ly-2*KgtdM,arc2)
c2.clip()
c2.drawImage(this,KgtdM,KgtdM,lx-2*KgtdM,ly-2*KgtdM);
c2.rotate(-jMlQm.rotation)
c2.translate(-jMlQm.tx,-jMlQm.ty)
if(shadow) fmseN(c,rot)
c.drawImage(canv2,0,0);
c2.translate(jMlQm.tx,jMlQm.ty)
c2.rotate(jMlQm.rotation)
if(vMRhf)
{
vMRhf.wVDiA(canv2)
}
}
}
rqYvE_img.src=s_img[0];
}
function GpsNZ(xkEZA,EFQtc,XmuNQ,BnfbP)
{
xkEZA.style.left=XmuNQ+"px"
xkEZA.style.top=BnfbP+"px"
xkEZA.style.webkitTransformOrigin="0 0"
xkEZA.style.webkitTransform="rotate("+EFQtc+"deg)";
}
function QPegc(c,type,lx,ly,corner)
{
if(type==1)
LxquT(c,0,0,lx,ly)
else
UxSiS(c,0,0,lx,ly,corner)
}
function clpkE(el,c,type,lx,ly,corner,bg,KLDit,rot)
{
if(Koapu()==false)
{
c.fillStyle=bg;
QPegc(c,type,lx,ly,corner)
c.fill()
}
else
{
var canv2=jwFHA(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.fillStyle=bg;
QPegc(c2,type,lx,ly,corner)
c2.fill()
if(KLDit) fmseN(c,rot)
c.drawImage(canv2,0,0);
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
}
}
function YtGIq(c,type,lx,ly,pasXk,bg,uSfqB,iYgLA_glow)
{
if(uSfqB)
{
var x1=uSfqB[0];var y1=uSfqB[1];var lx1=uSfqB[2];var ly1=uSfqB[3];var VKtBS=uSfqB[4];
var Nfthj=c.createLinearGradient(x1,y1,x1,y1+ly1);
Nfthj.addColorStop(0,"rgba(255,255,255,0.7)");Nfthj.addColorStop(1,"rgba(255,255,255,0.1)");
c.fillStyle=Nfthj;
if(type==1) LxquT(c,x1,y1,lx1,ly1)
else
UxSiS(c,x1,y1,lx1,ly1,VKtBS)
c.fill()
}
if(iYgLA_glow)
{
var x2=iYgLA_glow[0];var y2=iYgLA_glow[1];var lx2=iYgLA_glow[2];var ly2=iYgLA_glow[3];
var UDdxq=iYgLA_glow[4];
var vZXlL_glow=new RGBColor(iYgLA_glow[5]);
vZXlL_glow.a=0;
var col1=iYgLA_glow[5];
var col2=vZXlL_glow.toRGB();
var vYQbc=c.createLinearGradient(x2,y2,x2,y2+ly2);
vYQbc.addColorStop(0,col2);
vYQbc.addColorStop(0.2,col2);
vYQbc.addColorStop(1,col1);
c.fillStyle=vYQbc;
if(type==1) LxquT(c,x2,y2,lx2,ly2)
else
UxSiS(c,x2,y2,lx2,ly2,UDdxq)
c.fill()
}
}
function siwRe(gfMcX,nCBnV,HtNOf,ANNKD,inUFS,pasXk,msVNI,uSfqB,iYgLA_glow,KLDit,EFQtc)
{
gfMcX.nCBnV=nCBnV;gfMcX.HtNOf=HtNOf;
gfMcX.ANNKD=ANNKD;gfMcX.inUFS=inUFS;
gfMcX.pasXk=pasXk;gfMcX.msVNI=msVNI,gfMcX.uSfqB=uSfqB;
gfMcX.iYgLA_glow=iYgLA_glow;gfMcX.KLDit=KLDit;gfMcX.EFQtc=EFQtc;
}
function WA_but_over(nCBnV,msVNI_over,vZXlL_glow)
{
var HYoFE=document.getElementById(nCBnV) 
if(HYoFE&&HYoFE.EMAQY)
with(HYoFE.EMAQY)
{
var iYgLA_glow_over;
if(iYgLA_glow&&vZXlL_glow)
{
iYgLA_glow_over=new Array();
for(var gHflb=0;gHflb<iYgLA_glow.length;gHflb++)iYgLA_glow_over[gHflb]=iYgLA_glow[gHflb];
iYgLA_glow_over[5]=vZXlL_glow;
}
WA_but(nCBnV,HtNOf,ANNKD,inUFS,pasXk,msVNI_over,uSfqB,iYgLA_glow_over,KLDit,EFQtc);
}
var YRgOv_over0=document.getElementById(nCBnV+"-div0")
if(YRgOv_over0)html_SetVisibility(YRgOv_over0,false);
var LYfxn=document.getElementById(nCBnV+"-div1")
if(LYfxn)html_SetVisibility(LYfxn,true);
}
function WA_but_out(nCBnV)
{
var HYoFE=document.getElementById(nCBnV)
with(HYoFE.EMAQY)
{
WA_but(nCBnV,HtNOf,ANNKD,inUFS,pasXk,msVNI,uSfqB,iYgLA_glow,KLDit,EFQtc);
}
var YRgOv_over0=document.getElementById(nCBnV+"-div0")
if(YRgOv_over0)html_SetVisibility(YRgOv_over0,true);
var LYfxn=document.getElementById(nCBnV+"-div1")
if(LYfxn)html_SetVisibility(LYfxn,false);
}
function WA_but(id,type,lx,ly,corner,bg,top_light,s_glow,KLDit,rot)
{
var el=document.getElementById(id)
if(el.EMAQY==undefined)
{
el.EMAQY=new Array();
siwRe(el.EMAQY,id,type,lx,ly,corner,bg,top_light,s_glow,KLDit,rot);
}
var c=el.getContext('2d');
var qhfxL=0;
if(KLDit)qhfxL=6 
c.fillStyle="#000000";
c.fillRect(0,0,lx+2*qhfxL,ly+2*qhfxL) 
c.clearRect(0,0,lx+2*qhfxL,ly+2*qhfxL) 
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(Koapu()==false)
{
c.translate(qhfxL,qhfxL)
img.width=lx
img.height=ly 
if(KLDit)
uITFC(c,0,0,lx,ly,corner,(type==1),rot)
if(navigator.userAgent.match(/Firefox/i))
{
c.beginPath()
QPegc(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()
QPegc(c,type,lx,ly,corner)
c.fill()
}
YtGIq(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-qhfxL,-qhfxL)
}
else
{
var canv2=jwFHA(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.beginPath()
QPegc(c2,type,lx,ly,corner)
c2.clip()
c2.drawImage(img,0,0,lx,ly);
YtGIq(c2,type,lx,ly,corner,bg,top_light,s_glow)
if(KLDit) fmseN(c,rot) 
c.drawImage(canv2,qhfxL,qhfxL);
}
}
img.src=bg2;
return;
}
c.translate(qhfxL,qhfxL) 
if(KLDit&&(Koapu()==false))
{
var LeuQk=new RGBColor(bg);
if(LeuQk.a>0)
{
uITFC(c,0,0,lx,ly,corner,(type==1),rot)
}
}
clpkE(el,c,type,lx,ly,corner,bg2,KLDit,rot)
YtGIq(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-qhfxL,-qhfxL)
}
function uITFC(c,x0,y0,lx0,ly0,corner,is_circle,rot)
{
var decShadow=2;
var offset=vWpQU(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) LxquT(c,x,y,lx,ly);else UxSiS(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 CLkoJ(id,x,y,lx,ly,arc,KgtdM,bord_col,bg,shadow,rot,YFZpK,QJPji)
{
if(QJPji==undefined)QJPji=true;
var el=document.getElementById(id)
var c=el.getContext('2d');
if(YFZpK==undefined)YFZpK=1.0;
var qhfxL=0;
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
if(shadow)
{
qhfxL=6;
}
if(QJPji) c.clearRect(0,0,el.width,el.height)
c.globalAlpha=YFZpK 
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 DbNcZ=bg1.split(";");
var x1=parseFloat(DbNcZ[0]);
var y1=parseFloat(DbNcZ[1]);
var x2=parseFloat(DbNcZ[2]);
var y2=parseFloat(DbNcZ[3]);
var col1=DbNcZ[4];
var col2=DbNcZ[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-KgtdM;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
{
if(shadow) uITFC(c,qhfxL,qhfxL,lx,ly,arc,false,rot)
}
if(KgtdM>0)
{
c2.fillStyle=bord_col;
UxSiS(c2,x,y,lx,ly,arc)
mYtYG(c2,x+KgtdM,y+KgtdM,lx-2*KgtdM,ly-2*KgtdM,arc2,true)
c2.fill()
}


c2.fillStyle=fill_obj 
UxSiS(c2,x+KgtdM,y+KgtdM,lx-2*KgtdM,ly-2*KgtdM,arc2)
c2.fill();
}
function SvfQh(heUgC,eFEnN,YoRFG)
{
return new Point(Math.round(heUgC*Math.cos(YoRFG)-eFEnN*Math.sin(YoRFG)),Math.round(heUgC*Math.sin(YoRFG)+eFEnN*Math.cos(YoRFG)))
}
function sCtpT(c,x,y,lx,ly,arc,clowckwise,EFQtc)
{
c.beginPath()
qlvPm(c,x,y,lx,ly,arc,clowckwise,EFQtc)
}
function qlvPm(c,x,y,lx,ly,arc,clowckwise,EFQtc)
{
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 vhUGd=[[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=EFQtc*2*Math.PI/360
for(var n=0;n<vhUGd.length;n++)
{
var gfQIQ=vhUGd[n][0]
var Iadso=vhUGd[n][1]
vhUGd[n][0]=gfQIQ*Math.cos(theta)-Iadso*Math.sin(theta);
vhUGd[n][1]=gfQIQ*Math.sin(theta)+Iadso*Math.cos(theta);
}
var n=0;
c.moveTo(vhUGd[n][0],vhUGd[n++][1]);
c.lineTo(vhUGd[n][0],vhUGd[n++][1]);
c.quadraticCurveTo(vhUGd[n][0],vhUGd[n++][1],vhUGd[n][0],vhUGd[n++][1]);
c.lineTo(vhUGd[n][0],vhUGd[n++][1]);
c.quadraticCurveTo(vhUGd[n][0],vhUGd[n++][1],vhUGd[n][0],vhUGd[n++][1]);
c.lineTo(vhUGd[n][0],vhUGd[n++][1]);
c.quadraticCurveTo(vhUGd[n][0],vhUGd[n++][1],vhUGd[n][0],vhUGd[n++][1]);
c.lineTo(vhUGd[n][0],vhUGd[n++][1]);
c.quadraticCurveTo(vhUGd[n][0],vhUGd[n++][1],vhUGd[n][0],vhUGd[n++][1]);
}
function GRsWV(a,b,x,y)
{
return(a*x-y+b)/(Math.sqrt(1+a*a))
}
function JDEWg(new_a1,new_b1,MkApl,multi)
{
var d=0;
for(var i=0;i<MkApl.length;i++)
{
var fXDKr=MkApl[i]
var d1=GRsWV(new_a1,new_b1,fXDKr.x,fXDKr.y)
if(multi<0)
{
if(d1<0) d=Math.max(d,-d1);
}
else
{
if(d1>0) d=Math.max(d,d1);
}
}
return d;
}
function BiwHR(o1,o2)
{
if(o1<o2) return-1
if(o1>o2) return 1
return 0
}
function rUDOm(c,lx,ly,bg1)
{
var fill_obj=false;
var qWrGj=false;
var GYiWM=false;
var MkApl=false
if(bg1.substring(0,1)=="(")
{
bg1=bg1.substring(1);
bg1=bg1.substring(0,bg1.length-1)
var DbNcZ=bg1.split(";");
var AMEBc=new Point(parseFloat(DbNcZ[0]),parseFloat(DbNcZ[1]));
var oCaLX=new Point(parseFloat(DbNcZ[2]),parseFloat(DbNcZ[3]));
qWrGj=AMEBc.clone()
GYiWM=oCaLX.clone()
var col1=DbNcZ[4];
var col2=DbNcZ[5];
var grad=c.createLinearGradient(qWrGj.x,qWrGj.y,GYiWM.x,GYiWM.y);
if(isMSIE())
{
qWrGj=AMEBc.clone()
GYiWM=oCaLX.clone() 
var Nfthj=0;
var vYQbc=1;
{
MkApl=[{x:0,y:0},{x:lx,y:0},{x:lx,y:ly},{x:0,y:ly}]
var d1=0;
var d2=0;
var a=(GYiWM.y-qWrGj.y)/(GYiWM.x-qWrGj.x);
var b=qWrGj.y-a*qWrGj.x;
var diff=1;
if(a==Infinity)
{
d1=(qWrGj.y)
d2=(ly-GYiWM.y)
}
else
if(a==0)
{
d1=(qWrGj.x)
d2=(lx-GYiWM.x)
}
else
{
var new_a1=-1/a;
var new_b1=qWrGj.y-new_a1*qWrGj.x;
d1=JDEWg(new_a1,new_b1,MkApl,-1)
var new_b2=GYiWM.y-new_a1*GYiWM.x;
d2=JDEWg(new_a1,new_b2,MkApl,1)
if(new_a1<0)diff=-1;
}
var d=Math.sqrt(Math.pow(GYiWM.x-qWrGj.x,2)+Math.pow(GYiWM.y-qWrGj.y,2))
var total=(d1+d+d2)
Nfthj=d1/total;
vYQbc=(d1+d)/total;
var pt_prod0=new Point(GYiWM.x-qWrGj.x,GYiWM.y-qWrGj.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)
{
Nfthj=d2/total;
vYQbc=(d2+d)/total;
}
}
grad.addColorStop(Nfthj,col1);
grad.addColorStop(vYQbc,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,KgtdM,bord_col,bg,shadow,rot,rDvoI,MOAga,YFZpK,QJPji)
{


var theta=rot*2*Math.PI/360 
if(QJPji==undefined)QJPji=true;
if(YFZpK==undefined)YFZpK=1.0;
var el=document.getElementById(id)
if(!el)return
var c=el.getContext('2d');
var qhfxL=(el.width-lx)/2;
if(QJPji) c.clearRect(0,0,el.width,el.height)
var x_rect0=qhfxL;
var y_rect0=qhfxL;
var bg1=bg[0]
var fill_obj=false;
var qWrGj=false;
var GYiWM=false;
var MkApl=false
fill_obj=rUDOm(c,lx,ly,bg1) 
if(YFZpK==undefined)YFZpK=1.0;
var arc2=arc-KgtdM;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
if(shadow)
{
c2.translate(rDvoI+6,MOAga+6)
}
else
{
c2.translate(rDvoI,MOAga)
}
c2.fillStyle=fill_obj;
sCtpT(c2,KgtdM,KgtdM,lx-2*KgtdM,ly-2*KgtdM,arc2,false,rot)
c2.fill();
}
function WA_bg(id,lx,ly,arc,KgtdM,bord_col,bg,shadow,rot,YFZpK,QJPji)
{

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

var fill_obj=rUDOm(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()
HisZT(c,el,lx,ly,arc,KgtdM,bord_col,ptrn,shadow,rot,YFZpK)
}
img.src=bg2;
}
else
{
HisZT(c,el,lx,ly,arc,KgtdM,bord_col,fill_obj,shadow,rot,YFZpK)
}
}
function HisZT(c,el,lx,ly,arc,KgtdM,bord_col,fill_obj,shadow,rot,YFZpK)
{
if(YFZpK==undefined)YFZpK=1.0;
var arc2=arc-KgtdM;
if(arc2<0)arc2=0
var qhfxL=(el.width-lx)/2;
var x_rect0=qhfxL;
var y_rect0=qhfxL;
var canv2=false;
var c2=c;
c.globalAlpha=YFZpK
if(Koapu()==true)
{
canv2=jwFHA(lx,ly);
c2=canv2.getContext('2d');
c2.globalAlpha=YFZpK
}
else
{
c2.translate(qhfxL,qhfxL)
if(shadow) uITFC(c,0,0,lx,ly,arc,false,rot)
}
if(KgtdM>0)
{
c2.fillStyle=bord_col;
UxSiS(c2,0,0,lx,ly,arc)
mYtYG(c2,KgtdM,KgtdM,lx-2*KgtdM,ly-2*KgtdM,arc2,true)
c2.fill()
}
c2.fillStyle=fill_obj;
UxSiS(c2,KgtdM,KgtdM,lx-2*KgtdM,ly-2*KgtdM,arc2)
c2.fill();
if(Koapu()==true)
{
if(shadow) fmseN(c,rot)
c.drawImage(canv2,qhfxL,qhfxL);
}
else
{
c2.translate(-qhfxL,-qhfxL)
}
}
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(iYgLA){return(this.width>iYgLA.width)&&(this.height>iYgLA.height)}
this.scale=function(urdhZ,HsjLK)
{
if(!HsjLK)HsjLK=false
var momjc=this;
var TwXUl=momjc.width
var XFVKl=momjc.height
var p1=TwXUl*urdhZ.height;
var p2=urdhZ.width*XFVKl;
var r1=TwXUl/XFVKl;
var r2=XFVKl/TwXUl;
var newSize1=new Size(urdhZ.height*r1,urdhZ.height);
var newSize2=new Size(urdhZ.width,urdhZ.width*r2);
if(p2>p1)
{
if((HsjLK==true)||((newSize1.width<=momjc.width)&&(newSize1.height<=momjc.height)))
{
momjc.width=Math.round(newSize1.width);
momjc.height=Math.round(newSize1.height);
}
}
else
{
if((HsjLK==true)||((newSize2.width<=momjc.width)&&(newSize2.height<=momjc.height)))
{
momjc.width=Math.round(newSize2.width);
momjc.height=Math.round(newSize2.height);
}
}
this.width=momjc.width;
this.height=momjc.height;
return true;
}
}
function Point(p_x,p_y){this.x=p_x;this.y=p_y;
this.translate=function(heUgC,eFEnN){this.x+=heUgC;this.y+=eFEnN;}
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(xkEZA){return(this.x==xkEZA.x)&&(this.y==xkEZA.y)&&(this.width==xkEZA.width)&&(this.height==xkEZA.height);}
this.copy=function(xkEZA){this.x=xkEZA.x;this.y=xkEZA.y;this.width=xkEZA.width;this.height=xkEZA.height;}
this.translate=function(heUgC,eFEnN){this.x+=heUgC;this.y+=eFEnN;}
this.isValid=function(){return(this.width>0)&&(this.height>0);}
}
function html_getLayer(xkEZA)
{
if(typeof(xkEZA)=="string")return document.getElementById(xkEZA);
return xkEZA;
}
function html_SetPosition(xkEZA,heUgC,eFEnN){
xkEZA=html_getLayer(xkEZA);
xkEZA.style.left=heUgC+"px";xkEZA.style.top=eFEnN+"px";
}
function html_SetSize(Hwbln,ANNKD,inUFS){
xkEZA=html_getLayer(Hwbln);
xkEZA.style.width=ANNKD+"px";xkEZA.style.height=inUFS+"px";
}
function html_SetRect(xkEZA,TPrxK){html_SetGeometry(xkEZA,TPrxK.x,TPrxK.y,TPrxK.width,TPrxK.height);}
function html_SetGeometry(xkEZA,heUgC,eFEnN,ANNKD,inUFS){html_SetPosition(xkEZA,heUgC,eFEnN);html_SetSize(xkEZA,ANNKD,inUFS);}
function html_SetVisibility(xkEZA,PBkDT){xkEZA=html_getLayer(xkEZA);xkEZA.style.visibility=(PBkDT)?"visible":"hidden";}
function html_SetDisplay(xkEZA,PBkDT){xkEZA=html_getLayer(xkEZA);xkEZA.style.display=(PBkDT)?"block":"none";}
function html_SetCanvasSize(xkEZA,ANNKD,inUFS){xkEZA=html_getLayer(xkEZA);xkEZA.width=ANNKD;xkEZA.height=inUFS;}
function html_writeContent(xkEZA,iYgLA){xkEZA=html_getLayer(xkEZA);xkEZA.innerHTML=iYgLA;}
function html_SetOpacity(xkEZA,PsgIS)
{
xkEZA=html_getLayer(xkEZA);
xkEZA.style['opacity']=PsgIS;
xkEZA.style['-moz-opacity']=PsgIS;
xkEZA.style.filter=(PsgIS==1)?'':'alpha(opacity='+(PsgIS*100)+')';
}
var VAMZP=[
{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<VAMZP.length;i++)
{
var array2=VAMZP[i].l;
for(var i2=0;i2<array2.length;i2++)
{
var reg=new RegExp(array2[i2],"g");
res=res.replace(reg,VAMZP[i].acc)
}
}
return res;
}
function trimString(str)
{
return str.replace(/^\s*|\s*$/g,"");
}
function IsNumeric(XcCZn)
{
var fPNcn="0123456789.";var BNRcD=true;var cKadX;
for(gHflb=0;gHflb<XcCZn.length&&BNRcD==true;gHflb++){cKadX=XcCZn.charAt(gHflb);if(fPNcn.indexOf(cKadX)==-1) BNRcD=false;}
return BNRcD;
}
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(RqmmV)
{
var pGiWE=RqmmV*60;
var cqIdO=new Date();
var nCSRQ=0;
nCSRQ+=cqIdO.getYear()*12*31*24*60*60;
nCSRQ+=cqIdO.getMonth()*31*24*60*60;
nCSRQ+=cqIdO.getDate()*24*60*60;
nCSRQ+=cqIdO.getHours()*60*60;
nCSRQ+=cqIdO.getMinutes()*60;
nCSRQ+=cqIdO.getSeconds();
if(pGiWE!=0)
{
nCSRQ=Math.floor(nCSRQ/pGiWE)*pGiWE
}
return "-"+nCSRQ;
}
function urlAntiCacheForPreview()
{
if(document.webaca_is_preview) return urlSuffixe(0);
return "";
}
function html_findPos(obj)
{
var PsgIS=lkbtJ(obj)
return new Point(PsgIS[0],PsgIS[1])
}
function lkbtJ(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(Dkref,ANNKD,inUFS)
{
document.write("<input id='"+Dkref+"' type=search results=0 placeholder='' style='width:"+ANNKD+"px;height:"+inUFS+"px;'>")
}
function swbAc()
{
var RmXuE=document.getElementsByTagName("A");
for(var gHflb=0;gHflb<RmXuE.length;gHflb++)
{
var xkEZA=RmXuE[gHflb];
if(xkEZA.onmouseover)xkEZA.onmouseover=null;
if(xkEZA.onmouseout)xkEZA.onmouseout=null;
}
}
function KhXet()
{
for(var FVvIo in document.wa_global_list_element)
{
var nCBnV=document.wa_global_list_element[FVvIo]
var HYoFE=document.getElementById(nCBnV)
HYoFE.onclick=function()
{
WA_focus(this)
}
}
}
function WA_declare(nCBnV)
{
if(!document.wa_global_list_element)
{
document.wa_global_list_element=new Array();;
}
document.wa_global_list_element.push(nCBnV)
}
function FfuOl()
{
var ZYkbl=window.location.search;
if(ZYkbl.substr(0,1)=="?")ZYkbl=ZYkbl.substr(1);
if(ZYkbl.length==0)return;
var MYNQf=new Array();
var qeqet=ZYkbl.split("&");
for(var i=0;i<qeqet.length;i++)
{
var bDiBV=qeqet[i].split("=");MYNQf[bDiBV[0]]=bDiBV[1];
}
var iYgLA_info=MYNQf["crbst_info"];
if(!iYgLA_info)return;
var qitXx=new Array();
qitXx.m_unid=iYgLA_info;
qitXx.m_index_item=-1;
var dGGVs=iYgLA_info.indexOf("-");
if(dGGVs!=-1)
{
qitXx.m_unid="wa-id-"+iYgLA_info.substring(0,dGGVs);
qitXx.m_index_item=parseInt(iYgLA_info.substring(dGGVs+1));
}
document.wa_global_query_info=qitXx;
}
function IS_onload_WA()
{

if(isMSIE8())
{
wa_timeout("IS_onload_ui()",0)
}
else
{
IS_onload_ui()
}
if(isIPhone())
{
swbAc()
}
else
{
KhXet()
}
FfuOl();

JEIOF()
}
function JEIOF()
{
var dMaiV=0;
var CFwim=document.webaca_banner_height;
if(document.webaca_page_is_centered)
{
var rcovc=getWindowSize().width
var KJtFl=document.webaca_width_page
if(rcovc>KJtFl)dMaiV=(rcovc-KJtFl)/2;
}
document.body.style.backgroundPosition=dMaiV+"px "+CFwim+"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 foKwY=CONST_WA_COUNTRIES.codes[n]
var mtWeO=CONST_WA_COUNTRIES.labels[n]
Translator.m_countries[foKwY]=mtWeO
}
}
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(nCBnV,ftiBX,KLDit)
{
this.nCBnV=nCBnV;
this.ftiBX=ftiBX
this.KLDit=KLDit;
this.JoLgd=this.nCBnV+"-div"
this.CGOrv=this.nCBnV+"-canvas"
this.qGBEv=new Rect(0,0,0,0)
this.SpMtq=false;
this.jDGAg=false;
this.qhfxL=6;
this.UhALv=false;
this.ZnrOO=false;
this.HLVmD=false;
this.YUcSF="";
this.shadow=function()
{
return this.KLDit;
}
this.marginShadow=function()
{
return this.qhfxL;
}
this.rect=function()
{
return this.qGBEv;
}
this.canvasId=function()
{
return this.CGOrv;
}
this.divId=function()
{
return this.JoLgd;
}
this.opacity=function()
{
return this.XTxZj;
}
this.img_clip=function()
{
return this.ZnrOO;
}
this.img_src=function()
{
return this.UhALv;
}
this.toHtml=function()
{
var iYgLA=""
iYgLA+="<div id='"+this.JoLgd+"' style=\"";
iYgLA+="position:absolute;";
if(this.YUcSF.length>0)
{
iYgLA+="cursor:pointer;";
}
if(this.rect.x>0)iYgLA+="left:"+this.rect.x+"px;";
if(this.rect.y>0)iYgLA+="top:"+this.rect.y+"px;";
if(this.rect.width>0)iYgLA+="width:"+this.rect.width+"px;";
if(this.rect.height>0)iYgLA+="height:"+this.rect.height+"px;";
if(ftiBX)
iYgLA+="z-index:"+ftiBX+";";
iYgLA+="\" ";
if(this.YUcSF.length>0)
{
iYgLA+="onclick=\""+this.YUcSF+"\" "
}
iYgLA+=">";
if((this.rect.width>0)&&this.shadow())
{
iYgLA+=html_canvas(this.CGOrv,this.rect.width+2*this.qhfxL,this.rect.height+2*this.qhfxL)+"</div>";
}
else
{
iYgLA+=html_canvas(this.CGOrv,0,0)+"</div>";
}
return iYgLA
}
this.setImage=function(CWUDv,EqAVf,EFQtc)
{
if(EFQtc==undefined)EFQtc=0;
if((CWUDv==this.UhALv)&&(this.ZnrOO&&this.ZnrOO.equals(EqAVf))&&(this.HLVmD==EFQtc))
{
return;
}
this.HLVmD=EFQtc;
this.UhALv=CWUDv;
this.ZnrOO=EqAVf;
this.xiqEU()
}
this.registerDynamicCanvas=function()
{
registerDynamicCanvas(this.CGOrv);
this.jDGAg=true;
this.setRect(this.qGBEv.x,this.qGBEv.y,this.qGBEv.width,this.qGBEv.height)
}
this.xiqEU=function()
{
if((this.qGBEv.width>0)&&(this.qGBEv.height>0))
{
this.draw()
}
this.SpMtq=true
};
this.draw=function(){};
this.setPosition=function(heUgC,eFEnN)
{
this.qGBEv.x=heUgC;this.qGBEv.y=eFEnN;
if(this.jDGAg==false)return
html_SetPosition(this.JoLgd,this.qGBEv.x,this.qGBEv.y)
if(this.SpMtq==false)
{
this.xiqEU()
}
}
this.setOnClick=function(iYgLA)
{
this.YUcSF=iYgLA
}
this.width=function(){return this.qGBEv.width;}
this.height=function(){return this.qGBEv.height;}
this.setSize=function(ANNKD,inUFS)
{
this.qGBEv.width=ANNKD;this.qGBEv.height=inUFS;
var UDxUs=ANNKD
var HoSKb=inUFS
if(this.KLDit)
{
UDxUs+=2*this.qhfxL
HoSKb+=2*this.qhfxL
}
if(this.jDGAg==false)return
html_SetSize(this.JoLgd,UDxUs,HoSKb)
html_SetCanvasSize(this.CGOrv,ANNKD,inUFS)
this.xiqEU()
}
this.setRect=function(heUgC,eFEnN,ANNKD,inUFS)
{
this.qGBEv.x=heUgC;this.qGBEv.y=eFEnN;this.qGBEv.width=ANNKD;this.qGBEv.height=inUFS;
var UDxUs=ANNKD
var HoSKb=inUFS
var CjDHP=heUgC
var mplOf=eFEnN
if(this.KLDit)
{
UDxUs+=2*this.qhfxL
HoSKb+=2*this.qhfxL
CjDHP-=this.qhfxL
mplOf-=this.qhfxL
}
if(this.jDGAg==false)return 
html_SetGeometry(this.JoLgd,CjDHP,mplOf,UDxUs,HoSKb);
html_SetCanvasSize(this.CGOrv,UDxUs,HoSKb)
try{this.xiqEU()}catch(e){
alert(e.message)
}
}
this.setVisible=function(PBkDT)
{
if(this.jDGAg==false)return
html_SetVisibility(this.JoLgd,PBkDT)
}
this.setOpacity=function(PsgIS)
{
this.XTxZj=PsgIS 
if(this.jDGAg==false)return
this.xiqEU()
}
}

function is_onresize()
{
WA_Dialog.resizeUI()
try
{
if(WA_PhotoAlbum_resizeUI)WA_PhotoAlbum_resizeUI()
}
catch(e){}
JEIOF()
}
function is_onscroll()
{
centerFullPageContainer();
}
function registerDynamicCanvas(id)
{
if(isMSIE())
G_vmlCanvasManager.initElement(document.getElementById(id));
}
function WA_openDialogAction(FVvIo)
{
var SYmlS=WA_Dialog.Pjotg;
if(FVvIo==-1){SYmlS.closeWin();return;}
var bElct=SYmlS.bcgwE(FVvIo);
if(bElct[5])
{
bElct[4].call(bElct[6],bElct[5])
}
else
{
bElct[4](bElct[5]);
}
}
function WA_Dialog(PBkDT_close_button)
{
this.iuHIP=0;
this.oEjjv=0;
this.urdhZ_win_width=600;
this.urdhZ_win_height=400;
this.BTfth=new Array();
this.Yspkx="wa-dialog-but-";
this.CwKNI=this.Yspkx+"div-";
this.RFBfY=this.Yspkx+"canvas-";
this.BUTTON_HEIGHT=22;
this.MYPVP=CONST_WA_GLOBAL_COLOR_THEME;
this.PBkDT_close_button=PBkDT_close_button;
this.pEELA=6;
this.qNmaC=function()
{
if(this.PBkDT_close_button==undefined)this.PBkDT_close_button=true;
this.NDJvk();
}
this.resetButtons=function()
{
this.NDJvk();
}
this.idealHeight=function()
{
return this.hBDme
}
this.displayWindowWithAutoResize=function(eLsYe,gvsqg)
{
this.kaWab=false
this.hBDme=eLsYe
this.oORZx=gvsqg 
this.resetButtons();
gvsqg.call(this)
var l=document.getElementById('wa-dialog-content');
if(this.kaWab==false)
if(l.scrollHeight>200)
{
this.kaWab=true
this.hBDme=l.scrollHeight+150
this.resetButtons();
gvsqg.call(this)
}
}
this.initializeWindow=function(urdhZ_lx,urdhZ_ly)
{
if(WA_Dialog.Pjotg)WA_Dialog.Pjotg.closeWin()
WA_Dialog.Pjotg=this;
this.urdhZ_win_width=urdhZ_lx;
this.urdhZ_win_height=urdhZ_ly;
this.gWAIq()
}
this.progress=function()
{
this.initializeWindow(300,100)
this.writeContent("<div width=100% align=center><img src='wa_loading.gif'></div>")
}
this.RGbJg=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(mtWeO,GQVdc,rqYvE,Bmaui)
{
var QHLMb=this.BTfth.length
if(this.PBkDT_close_button==true)
{
QHLMb--;
}
var ANNKD=Math.max((mtWeO.length*8)*1.2+30,80)
var momjc=new Size(ANNKD,this.BUTTON_HEIGHT);
this.pUnqd("action_"+QHLMb,QHLMb,mtWeO,GQVdc,momjc,rqYvE,Bmaui)
}
this.NDJvk=function()
{
this.BTfth=new Array();
if(this.PBkDT_close_button)
{

var momjc=new Size(50,20);
this.pUnqd("close",-1,"X",null,momjc)
}
}
this.pUnqd=function(HpBXh,QHLMb,mtWeO,GQVdc,momjc,rqYvE,Bmaui)
{
var bElct=[HpBXh,momjc,QHLMb,mtWeO,GQVdc,rqYvE,Bmaui];
this.BTfth.push(bElct);
}
this.writeContent=function(s)
{
var l=document.getElementById('wa-dialog-content');
l.innerHTML=s
}
this.bcgwE=function(HpBXh)
{
for(var FVvIo=0;FVvIo<this.BTfth.length;FVvIo++)
{
var bElct=this.BTfth[FVvIo];
if((bElct[0]==HpBXh)||(bElct[2]+""==HpBXh+""))
return bElct;
}
return undefined;
}
this.hjfaR=function(HpBXh)
{
var bElct=this.bcgwE(HpBXh);
return bElct[1]
}
this.getColorTheme=function(FVvIo)
{
return this.MYPVP[FVvIo];
}
this.WPHGO=function(Kxsrf)
{
var bElct=this.bcgwE(Kxsrf);
var HpBXh=bElct[0];
var QHLMb=bElct[2];
var vZXlL_text=this.MYPVP[4]
var vZXlL_bg=this.MYPVP[5]
var vZXlL_glow=this.MYPVP[7]
if(QHLMb==-1)
{
vZXlL_text=this.MYPVP[10]
vZXlL_bg=this.MYPVP[8]
vZXlL_glow=this.MYPVP[11]
}
var NlFtB=this.CwKNI+HpBXh;
var whwjF=this.RFBfY+HpBXh;
var momjc=this.hjfaR(Kxsrf)
var AVMmb=0;
var s=""
s+="<a href='javascript:WA_openDialogAction("+Kxsrf+")' ";
var vZXlL=new RGBColor(vZXlL_bg);
var LGHTC=vZXlL.toHsl();
vZXlL.fromHsl(LGHTC[0],LGHTC[1],LGHTC[2]+0.2)
vZXlL_bg=vZXlL.toRGB();
var DfELF_glow=new RGBColor(vZXlL_glow);
var vitxl=DfELF_glow.toHsl();
DfELF_glow.fromHsl(vitxl[0],vitxl[1],vitxl[2]+0.2)
vZXlL_glow=DfELF_glow.toRGB();
s+="onmouseover=\"WA_but_over('"+whwjF+"','"+vZXlL_bg+"','"+vZXlL_glow+"')"+"\" ";
s+="onmouseout=\""+"WA_but_out('"+whwjF+"')"+"\" ";
s+="style='text-decoration:none;'>";
s+="<div id='"+this.CwKNI+HpBXh+"' style='position:absolute;cursor:pointer;left:0px;top:0px;height:"+momjc.height+"px;width:"+momjc.width+"px;' >";
s+="<div style='position:absolute;left:"+(-AVMmb)+"px;top:"+(-AVMmb)+"px;height:"+momjc.height+"px;'>"
s+="<canvas id='"+this.RFBfY+HpBXh+"' width="+(momjc.width+AVMmb*2)+" height="+(momjc.height+AVMmb*2)+" ></canvas>";
s+="</div>"
s+="<div align=center style='position:absolute;left:0px;top:"+(0)+"px;vertical-align:middle;width:100%;height:"+(momjc.height)+"px;line-height:"+(momjc.height)+"px;font-family:arial;font-size:13px;font-weight:bold;color:"+vZXlL_text+"'>"
s+=bElct[3];
s+="</div>"
s+="</div>"
s+="</a>"
return s;
}
this.rdrjU=function(HpBXh)
{
var bElct=this.bcgwE(HpBXh);
var QHLMb=bElct[2];
var vZXlL_bg=this.MYPVP[5]
var vZXlL_glow=this.MYPVP[7]
var vZXlL_text=this.MYPVP[3]
if(QHLMb==-1)
{
vZXlL_bg=this.MYPVP[8]
vZXlL_glow=this.MYPVP[11]
vZXlL_text=this.MYPVP[10]
}
var foKwY=this.RFBfY+HpBXh;
registerDynamicCanvas(foKwY);
var momjc=this.hjfaR(HpBXh);
var pasXk=momjc.height*0.25;
var ceGdV=true;
pasXk=0;
ceGdV=false;
var PthOj=0;
var KXEvw=(momjc.width-2);
var inUFS_circle_top=momjc.height*0.45;

var DbNcZ_top=[1,1,KXEvw,inUFS_circle_top,PthOj];
var ANNKD_circle_bottom=momjc.width-2;
var inUFS_circle_bottom=momjc.height*0.45;
var UZXDg=vZXlL_glow;
var ZBErk=vZXlL_glow;
var kvvsp=0;

var DbNcZ_bottom=[(momjc.width-ANNKD_circle_bottom)/2,momjc.height-inUFS_circle_bottom-1,ANNKD_circle_bottom,inUFS_circle_bottom,kvvsp,UZXDg,ZBErk];
WA_but(foKwY,0,momjc.width,momjc.height,pasXk,vZXlL_bg,DbNcZ_top,DbNcZ_bottom,ceGdV,0)
}
this.REHCW=function(HpBXh)
{
var bElct=this.bcgwE(HpBXh)
if(bElct)
{
var foKwY=this.CwKNI+bElct[0];
return document.getElementById(foKwY);
}
return undefined
}
this.gWAIq=function()
{
var l=document.getElementById('wa-dialog-container');
l.style.display="block" 

var s="";
var gAtSG=document.webaca_banner_height
s+="<div  style='position:absolute;left:0px;top:"+gAtSG+"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:"+gAtSG+"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 gHflb in this.BTfth)
{
s+=this.WPHGO(this.BTfth[gHflb][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.eRQlX)
}
this.eRQlX=function()
{
registerDynamicCanvas('wa-dialog1');
for(var gHflb in this.BTfth)
{
this.rdrjU(this.BTfth[gHflb][0])
}
this.JlDMM()
if(this.XYcRd())
{
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.Pjotg=false
}
this.closeWin=function()
{
this.intern_closeWin()
}
this.cssText1=function()
{
return "font-family:Arial;font-size:15px;color:"+this.MYPVP[3]+";";
}
this.onCustomKeypress=function(EtNiW)
{
if((this.BTfth.length==1)&&(EtNiW==13))
{
this.closeWin()
return true;
}
return false;
}
this.onkeypress=function(EtNiW)
{
return this.onCustomKeypress(EtNiW)
}
this.onkeydown=function(EtNiW)
{
if(EtNiW==27)
{
this.closeWin()
return true;
}
return this.onCustomKeypress(EtNiW) 
}
this.customUpdate=function(){}
this.XYcRd=function()
{
return isIPhone();
}
this.JlDMM=function()
{
var ANNKD_page=document.webaca_width_page;
var inUFS_page=document.webaca_height_page;
var QIdMK=getWindowSize().width
var inUFS_window=getWindowSize().height
var QCGHO=getWindowFullSize().width
var inUFS_full_client=getWindowFullSize().height
var iLvcA=550;
var edcBu=400;
QIdMK=Math.max(QIdMK,iLvcA);
inUFS_window=Math.max(inUFS_window,edcBu);
if(this.XYcRd())
{
QIdMK=600;
inUFS_window=700;
}
this.iuHIP=Math.min(QIdMK*0.9,this.urdhZ_win_width)
this.oEjjv=Math.min(inUFS_window*0.9,this.urdhZ_win_height)
var biIjL=document.getElementById('wa-dialog1');
biIjL.width=this.iuHIP+10
biIjL.height=this.oEjjv+10
var heUgC=getWindowScroll().x+(QIdMK-biIjL.width)/2
var eFEnN=getWindowScroll().y+(inUFS_window-biIjL.height)/2
heUgC=(QIdMK-biIjL.width)/2
eFEnN=(inUFS_window-biIjL.height)/2
heUgC=Math.max(0,heUgC)
eFEnN=Math.max(0,eFEnN)
if(this.XYcRd())
{
heUgC=0
eFEnN=0;
}
var aVVLf=document.getElementById('wa-dialog-main');
html_SetGeometry('wa-dialog-main',heUgC,eFEnN,biIjL.width,biIjL.height);
var UcamV_bg="(0;0;0;"+this.oEjjv*0.25+";"+this.MYPVP[1]+";"+this.MYPVP[2]+")";
var jgahx=4;
WA_bg('wa-dialog1',this.iuHIP,this.oEjjv,jgahx,3,this.MYPVP[0],[UcamV_bg],true,0)
var ohBrk=10;
var lLRgU=this.REHCW(-1)
if(lLRgU)
{
var oqInu_close=this.hjfaR(-1) 
var marginClose=3
html_SetPosition(lLRgU,this.iuHIP-oqInu_close.width-marginClose+this.pEELA-1,marginClose+this.pEELA-1)
}
var DgSoQ_buttons=this.BTfth.length;
if(this.PBkDT_close_button==true)
{
DgSoQ_buttons--;
}
var FugTQ=10;
var lIJVe=0;
for(var gHflb=0;gHflb<DgSoQ_buttons;gHflb++)
{
if(gHflb>0) lIJVe+=FugTQ;
var oqInu=this.hjfaR(gHflb);
lIJVe+=oqInu.width;
}
var CIloR=(this.iuHIP-lIJVe)/2
for(var gHflb=0;gHflb<DgSoQ_buttons;gHflb++)
{
if(gHflb>0) CIloR+=FugTQ;
var NBxKr=this.REHCW(gHflb);
var oqInu=this.hjfaR(gHflb);
html_SetPosition(NBxKr,CIloR+this.pEELA,+this.pEELA+this.oEjjv-oqInu.height-2*ohBrk)
CIloR+=oqInu.width;
}
var inUFS_top=45;
var inUFS_bottom=this.BUTTON_HEIGHT+2*ohBrk;
if(DgSoQ_buttons==0)
{
inUFS_bottom=0;
}
var inUFS_content=(this.oEjjv-inUFS_top-inUFS_bottom)-ohBrk
var cwlMV=document.getElementById('wa-dialog-content');
var SYmlS_content=Math.round(this.iuHIP-2*ohBrk)
var lvILI=Math.round(inUFS_content)
this.m_content_lx=SYmlS_content
this.m_content_ly=lvILI
html_SetGeometry('wa-dialog-content',Math.round(5+(this.iuHIP-SYmlS_content)/2),Math.round(5+inUFS_top+(inUFS_content-lvILI)/2),SYmlS_content,lvILI);
this.customUpdate() 
var PpZDR=document.getElementById('wa-dialog-container');
var fNmkS=inUFS_full_client
fNmkS=Math.max(fNmkS,inUFS_window) 
var KquRi=QCGHO
KquRi=Math.max(KquRi,QIdMK)
if(this.XYcRd())
{
KquRi=Math.max(KquRi,ANNKD_page)
fNmkS=Math.max(fNmkS,inUFS_page)
}
html_SetSize('wa-dialog-container',KquRi,fNmkS);
centerFullPageContainer();
}
this.qNmaC();
}
function centerFullPageContainer()
{
var ihkfv=WA_Dialog.getCurrent() 
var ANNKD_page=document.webaca_width_page;
var inUFS_page=document.webaca_height_page;
var PpZDR=document.getElementById('wa-dialog-container');
var QCGHO=getWindowSize().width 
var inUFS_full_client=getWindowSize().height
var eFEnN_bg=getWindowScroll().y;
var OkSCI=ihkfv&&ihkfv.XYcRd();
if(OkSCI)
{
eFEnN_bg=0
}
eFEnN_bg=Math.min(eFEnN_bg,inUFS_page-inUFS_full_client+1)
eFEnN_bg=Math.max(eFEnN_bg,0)
var EXUPM=getWindowScroll().x;
if(OkSCI)
{
EXUPM=0
}
EXUPM=Math.min(EXUPM,ANNKD_page-QCGHO+1)
EXUPM=Math.max(EXUPM,0)
html_SetPosition('wa-dialog-container',EXUPM,eFEnN_bg,QCGHO,inUFS_full_client);
}
function WA_exec_callback_opera_compliant(rqYvE,xRtfd)
{
if(/opera/i.test(navigator.userAgent))
WA_exec_delayedCallback(rqYvE,xRtfd)
else
xRtfd.call(rqYvE)
}
function WA_exec_delayedCallback(rqYvE,xRtfd)
{
wa_timeout(Delegate.create(rqYvE,xRtfd),0);
}
WA_Dialog.getCurrent=function()
{
return WA_Dialog.Pjotg;
}
WA_Dialog.Pjotg=false;
WA_Dialog.resizeUI=function()
{
if(WA_Dialog.Pjotg)
{
var ihkfv=WA_Dialog.Pjotg
if(ihkfv.XYcRd()==false)
{
ihkfv.JlDMM()
}
}
}
WA_Dialog.alert=function(s)
{
var w=new WA_Dialog();
w.RGbJg(s)
}
WA_Dialog.progress=function()
{
var w=new WA_Dialog(false);
w.progress()
}

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

}
};
return http_request;
}
function makePOSTRequest(url,parameters,callback,EmoKU)
{
var http_request=getXMLHttpRequest(callback,EmoKU);
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(xtEgJ,OuwhW,Bmaui)
{
var result=OuwhW.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 wQUNW=Bmaui[0] 
WA_Dialog.alert(Translator.tr("Success:Mail sended"));
var form=document.getElementById(wQUNW);
form.reset()
}
else
{
var JvghW="error_string="
n=result.indexOf(JvghW)
if(n>-1)
{
result=result.substring(n+JvghW.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 ItsTu=el.value
ItsTu=encodeURI(ItsTu)
ItsTu=ItsTu.replace(/&/g,escape("&")) 
poststr+=el.name.replace("_mandatory","")+"="+ItsTu+"&"
}
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(DSdsF)
{
var UBcvS=document.getElementById(DSdsF);
UBcvS.submit() 
}
function OgAAf(nCBnV,Bmaui)
{
var EtNiW=Bmaui[0]
if(EtNiW==13)
{
var DSdsF=nCBnV+"-form";
var UBcvS=document.getElementById(DSdsF);
for(var i=0;i<UBcvS.elements.length;i++)
{
var HYoFE=UBcvS.elements[i];
if((HYoFE.type=="textarea")&&(HYoFE.focused))return true;
}
WA_form_submit(DSdsF);
return false;
}
return true;
}
function WA_addFormDeclaration(nCBnV,eWWdN)
{
return WA_addHandler(nCBnV,"keypress",OgAAf)
}
function WA_form_bg(id,lx,ly,arc,KgtdM,bord_col,bg,shadow,EFQtc,euviw)
{
WA_bg(id,lx,ly,arc,KgtdM,bord_col,bg,shadow,EFQtc,1.0,true) 
var glqMm=euviw.x;
var eZICc=0;
var bpBUv=euviw.cells
for(var n=0;n<bpBUv.length;n++)
{
var XCEnZ=bpBUv[n]
var arc2=0
CLkoJ(id,glqMm,eZICc+XCEnZ.y,euviw.w,XCEnZ.h,arc2,1,euviw.border,[''],false,0,1.0,false)
CLkoJ(id,glqMm,eZICc+XCEnZ.y,XCEnZ.w,XCEnZ.h,arc2,1,"rgba(0,0,0,0)",[euviw.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(qZhbR)
{
this.ok=false;this.a=1.0;
if(qZhbR.charAt(0)=='#'){qZhbR=qZhbR.substr(1);}
qZhbR=qZhbR.replace(/ /g,'');
qZhbR=qZhbR.toLowerCase();
var EGCiu=[
{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<EGCiu.length;i++){
var JcqwT=EGCiu[i].re;
var XtNwj=EGCiu[i]._process;
var tMLsp=JcqwT.exec(qZhbR);
if(tMLsp){
var dckHb=XtNwj(tMLsp);
this.r=dckHb[0];this.g=dckHb[1];this.b=dckHb[2];this.a=dckHb[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.jKKgo=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.jKKgo(p,q,h+1/3);g=this.jKKgo(p,q,h);b=this.jKKgo(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 HFfQO(OrIxd,Bmaui)
{
if(document.wa_global_handlers!=undefined)
{
var nCBnV=WA_focused_element()
if(nCBnV)
{
var GQVdc=document.wa_global_handlers[nCBnV+"-"+OrIxd]
if(GQVdc) return GQVdc([nCBnV],Bmaui)
}
}
return true;
}
function KocPd(e)
{
if(window.event){return e.keyCode;}
else 
if(e.which) return  e.which;
return-1;
}
function WA_onkeypress(e)
{
var EtNiW=KocPd(e);
if(WA_Dialog.Pjotg)
{
if(WA_Dialog.Pjotg.onkeypress(EtNiW))
{
return false;
}
}
return HFfQO("keypress",[EtNiW]);
}
function WA_ondblclick(e)
{
return HFfQO("dblclic",[""]);
}
function WA_onkeydown(e)
{
var EtNiW=KocPd(e)
if(WA_Dialog.Pjotg)
{
if(WA_Dialog.Pjotg.onkeydown(EtNiW))
{
return false;
}
}
if(EtNiW==13) return true;

if(wa_global_photo_album&&wa_global_photo_album.fullpage_object)
{
var rqYvE=wa_global_photo_album.fullpage_object
return rqYvE.onFullScreenKeydown(EtNiW) 
}
return HFfQO("keydown",[EtNiW]);
}
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 nCBnV=this.id
var GQVdc=document.wa_global_handlers[nCBnV+"-mousewheel"]
if(GQVdc)
{
if(GQVdc([nCBnV],[delta]))
{
b_default=true;
}
}
}
}
if(b_default)
if(e.preventDefault)
e.preventDefault();
e.returnValue=!b_default;
}
function WA_addHandler(nCBnV,OrIxd,xRtfd)
{
if(document.wa_global_handlers==undefined) document.wa_global_handlers=new Array()
if(OrIxd=="mousewheel")
{
var YRgOv=document.getElementById(nCBnV);
if(YRgOv.addEventListener)
YRgOv.addEventListener('DOMMouseScroll',WA_genericMouseWheelHandler,false);
YRgOv.onmousewheel=WA_genericMouseWheelHandler
}
document.wa_global_handlers[nCBnV+"-"+OrIxd]=xRtfd
}
function WA_loadPhotoAlbum(nCBnV,LlFeB,momjc,nCBnV_modif)
{
if(typeof(wa_global_photo_album[nCBnV])=="undefined")
{
var o=new Array();
o.src_folder=LlFeB
o.size_container=momjc
o.id_modif=nCBnV_modif
wa_global_photo_album[nCBnV]=o;
}
}
function WA_focused_element()
{
return document.wa_global_focused_element
}
function WA_focus(rqYvE)
{
document.wa_global_focused_element=rqYvE.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(gKouK,YjZhK,EZSpm)
{
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[YjZhK])document.wa_global_blogs_elements[YjZhK]=new Array()
document.wa_global_blogs_elements[YjZhK].id_blog=gKouK
document.wa_global_blogs_elements[YjZhK].has_email=EZSpm
}
function WA_addSearchHandler(nCBnV)
{
return WA_addHandler(nCBnV,"keypress",aCHOh)
}
function aCHOh(nCBnV,Bmaui)
{
var EtNiW=Bmaui[0]
if(EtNiW==13)
{
var ufJmc=nCBnV+"-search-input";
WA_onSearch(ufJmc)
return false;
}
return true;
}
function WA_declareSearchIndex(YmDIc,xBUQJ)
{
document.const_wa_search_js=YmDIc
document.const_wa_search_index_js=xBUQJ
}
function WA_onSearch(ufJmc)
{
var atAtu=document.getElementById(ufJmc);
if(document.wa_search_js_loaded==true)
{
WA_openSearchDialog(atAtu,document.const_wa_search_index_js)
}
else
{
WA_Dialog.progress();
mcqrS(atAtu)
}
}
function CJiKq(Bmaui)
{
document.wa_search_js_loaded=true
WA_openSearchDialog(Bmaui[0],document.const_wa_search_index_js)
}
function mcqrS(vCgjf)
{
WA_loadScript(document.const_wa_search_js,CJiKq,[vCgjf])
}
function jugYK(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 jugYK(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(nCBnV)
{
var lKfLC=document.wa_global_menu_declaration[nCBnV]
WA_bg(nCBnV,lKfLC.root_lx,lKfLC.root_ly,lKfLC.root_corner,lKfLC.root_border,lKfLC.root_col_border,[lKfLC.root_bg],false,0)
var HYoFE=document.getElementById(lKfLC.id)
if(!HYoFE)return;
var c=HYoFE.getContext('2d');
c.lineWidth=1
c.strokeStyle=lKfLC.root_col_separator
var MYsTd=0.5;

var sCOVm=lKfLC.root_sizes.length
if(lKfLC.root_extend==false)
{
sCOVm--;
}
var FpHxg=3;
for(var i=0;i<sCOVm;i++)
{
var momjc=lKfLC.root_sizes[i] 

c.beginPath();
if(lKfLC.root_vertical==false)
{
MYsTd+=(momjc-1)
c.moveTo(MYsTd,FpHxg)
c.lineTo(MYsTd,lKfLC.root_ly-FpHxg)
}
else
{
MYsTd+=(momjc)
c.moveTo(FpHxg,MYsTd-1,0)
c.lineTo(lKfLC.root_lx-FpHxg,MYsTd-1)
}
c.closePath();
c.stroke()
}
}
function WA_declare_menu(nCBnV,lKfLC)
{
if(!document.wa_global_menu_declaration)document.wa_global_menu_declaration=new Array();
lKfLC.id=nCBnV
document.wa_global_menu_declaration[nCBnV]=lKfLC
WA_bg_menu(nCBnV)
}
function WA_declareMarket(nCBnV,lZiEt_market,nCBnV_modif)
{
if(typeof(wa_global_market.markets[nCBnV])=="undefined")
{
var o=new Array();
o.src_folder=lZiEt_market
o.id_modif=nCBnV_modif 

o.id=nCBnV
wa_global_market.markets[nCBnV]=o;
}
}
function WA_button_market_declare(nCBnV,mtWeO)
{
if(!document.wa_global_button_market_declaration)document.wa_global_button_market_declaration=new Array();
document.wa_global_button_market_declaration[nCBnV]=mtWeO
}
function gApLC(c,img,heUgC,eFEnN,ANNKD,inUFS,EqAVf,YFZpK,QJPji)
{
c.globalAlpha=YFZpK
if(QJPji) c.clearRect(0,0,ANNKD,inUFS) 
if(YFZpK==0)return;
if(EqAVf)
{
c.drawImage(img,EqAVf.x,EqAVf.y,EqAVf.width,EqAVf.height,heUgC,eFEnN,ANNKD,inUFS)
}
else
{
c.drawImage(img,heUgC,eFEnN,ANNKD,inUFS)
}
}
function WA_drawImage(id,CWUDv,heUgC,eFEnN,ANNKD,inUFS,EqAVf,YFZpK,QJPji)
{
if(QJPji==undefined)QJPji=true;
if(YFZpK==undefined)YFZpK=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==CWUDv)
{
gApLC(c,c.tixTW,heUgC,eFEnN,ANNKD,inUFS,EqAVf,YFZpK,QJPji)
return;
}
var img=new Image();
img.NaxMh=el.NaxMh
img.onload=function()
{
c.old_src=CWUDv
c.tixTW=this;
gApLC(c,this,heUgC,eFEnN,ANNKD,inUFS,EqAVf,YFZpK,QJPji)
}
img.src=CWUDv;
}

-->
