<!--

function Delegate(){}
Delegate.create=function(o,f){
var Upuuo=new Array();
var JSkvP=arguments.length;
for(var i=2;i<JSkvP;i++) Upuuo[i-2]=arguments[i];
return function(){
var fOGhl=[].concat(arguments,Upuuo);
f.apply(o,fOGhl);
}
}
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.hLCKt=0;
t.LPfDs=0;
t.LpVMl=0;
t.dVjmb=0;
t.baLWw=0;
t.USrYJ=0;
t.IDwcC=false;
t.name='';
t.suffixe='';
t.AxqpB=new Array();
t.setTime=function(t){
this.prevTime=this.LPfDs;
if(t>this.getDuration()){
if(this.looping){
this.rewind(t-this.hLCKt);
this.update();
this.bRcUh('onMotionLooped',{target:this,type:'onMotionLooped'});
}else{
this.LPfDs=this.hLCKt;
this.update();
this.stop();
this.bRcUh('onMotionFinished',{target:this,type:'onMotionFinished'});
}
}else if(t<0){
this.rewind();
this.update();
}else{
this.LPfDs=t;
this.update();
}
}
t.isRunning=function(){
return this.IDwcC;
}
t.getTime=function(){
return this.LPfDs;
}
t.setDuration=function(d){
this.hLCKt=(d==null||d<=0)?100000:d;
}
t.getDuration=function(){
return this.hLCKt;
}
t.setPosition=function(p){
this.prevPos=this.LpVMl;
var a=this.suffixe!=''?this.suffixe:'';
this.obj[this.prop]=Math.round(p)+a;
this.LpVMl=p;
this.bRcUh('onMotionChanged',{target:this,type:'onMotionChanged'});
}
t.getPosition=function(t){
if(t==undefined) t=this.LPfDs;
return this.func(t,this.begin,this.change,this.hLCKt);
};
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.AxqpB=new Array();
this.addListener(this);
if(suffixe) this.suffixe=suffixe;
this.obj=obj;
this.prop=prop;
this.begin=begin;
this.LpVMl=begin;
this.setDuration(duration);
if(func!=null&&func!=''){
this.func=func;
}
this.setFinish(finish);
}
t.start=function(){
this.rewind();
this.startEnterFrame();
this.bRcUh('onMotionStarted',{target:this,type:'onMotionStarted'});
}
t.rewind=function(t){
this.stop();
this.LPfDs=(t==undefined)?0:t;
this.fixTime();
this.update();
}
t.fforward=function(){
this.LPfDs=this.hLCKt;
this.fixTime();
this.update();
}
t.update=function(){
this.setPosition(this.getPosition(this.LPfDs));
}
t.startEnterFrame=function(){
this.stopEnterFrame();
this.IDwcC=true;
this.onEnterFrame();
}
t.onEnterFrame=function(){
if(this.IDwcC){
this.nextFrame();
wa_timeout(Delegate.create(this,this.onEnterFrame),0);
}
}
t.nextFrame=function(){
this.setTime((this.getTimer()-this.baLWw)/1000);
}
t.stop=function(){
this.stopEnterFrame();
this.bRcUh('onMotionStopped',{target:this,type:'onMotionStopped'});
}
t.stopEnterFrame=function(){
this.IDwcC=false;
}
t.continueTo=function(finish,duration){
this.begin=this.LpVMl;
this.setFinish(finish);
if(this.hLCKt!=undefined)
this.setDuration(duration);
this.start();
}
t.resume=function(){
this.fixTime();
this.startEnterFrame();
this.bRcUh('onMotionResumed',{target:this,type:'onMotionResumed'});
}
t.yoyo=function(){
this.continueTo(this.begin,this.LPfDs);
}
t.addListener=function(o){
this.removeListener(o);
return this.AxqpB.push(o);
}
t.removeListener=function(o){
var a=this.AxqpB;
var i=a.length;
while(i--){
if(a[i]==o){
a.splice(i,1);
return true;
}
}
return false;
}
t.bRcUh=function(){
var arr=new Array();
for(var i=0;i<arguments.length;i++){
arr.push(arguments[i])
}
var e=arr.shift();
var a=this.AxqpB;
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.baLWw=this.getTimer()-this.LPfDs*1000;
}
t.getTimer=function(){
return new Date().getTime()-this.LPfDs;
}
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,ftkDO,QkJGs,hLCKt){
this.targetObject=obj;
this.init(new Object(),'a',func,ftkDO,QkJGs,hLCKt);
this.onMotionChanged=function(evt){
var v=evt.target.LpVMl;
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(AXeZv,CsiqZ,Ocjjl)
{
return "<canvas id='"+AXeZv+"' width='"+CsiqZ+"' height='"+Ocjjl+"'></canvas>"
}
function WA_canvas(AXeZv,CsiqZ,Ocjjl)
{
document.write(html_canvas(AXeZv,CsiqZ,Ocjjl))
}
function RAUlQ(DRRYh,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;
DRRYh.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;
DRRYh.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;
DRRYh.quadraticCurveTo(cx,cy,px,py);
}
}
function TFPRO(c,x,y,lx,ly,arc,clowckwise)
{
c.beginPath()
KkAdA(c,x,y,lx,ly,arc,clowckwise)
}
function KkAdA(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 UtOWn()
{
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 FEZca(lx,ly,parent,id_suffixe)
{
var Rnoqv=document.createElement('canvas');Rnoqv.width=lx;Rnoqv.height=ly;
return Rnoqv;
}
function cGbnH(c,UgeoF)
{
c.shadowOffsetX=2;c.shadowOffsetY=2;c.shadowBlur=4;
}
function WA_over_img_html(RavfJ,SAqEw,kDEBu)
{
if(!RavfJ.src)
{
var FlKEc=RavfJ.getElementsByTagName("IMG")
if(FlKEc.length==1)RavfJ=FlKEc[0]
}
if(RavfJ.src1==undefined)
{
RavfJ.src1=RavfJ.src;
RavfJ.src2=SAqEw;
}
if(kDEBu)
{
RavfJ.src=RavfJ.src2;
}
else
{
RavfJ.src=RavfJ.src1;
}
}
function WA_over_img(id,kDEBu)
{

var el=document.getElementById(id) 

var RavfJ=(kDEBu)?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,[RavfJ,RavfJ],el.wa_shadow,el.wa_rot)
}
function WA_img(id,lx,ly,arc,TZnlt,bord_col,s_img,shadow,rot)
{
var el=document.getElementById(id)
var c=el.getContext('2d');
var BBNVA=(el.width-lx)/2;
if(el.wa_lx==undefined)
{
el.wa_lx=lx
el.wa_ly=ly
el.wa_arc=arc
el.wa_bord_siz=TZnlt
el.wa_bord_col=bord_col
el.wa_s_img=s_img
el.wa_shadow=shadow
el.wa_rot=rot
c.translate(BBNVA,BBNVA)
}
var vDPIC=document.getElementById(id+"-cache")
vDPIC.onload=function()
{
c.clearRect(0,0,lx+2*BBNVA,ly+2*BBNVA)
var arc2=arc-TZnlt;
if(arc2<0)arc2=0;
if(UtOWn()==false)
{
if(shadow) lcQOU(c,0,0,lx,ly,arc,false,rot) 
this.width=lx-2*TZnlt
this.height=ly-2*TZnlt 

var ptrn=c.createPattern(this,'no-repeat');
c.fillStyle=ptrn;
c.beginPath() 
TFPRO(c,TZnlt,TZnlt,lx-2*TZnlt,ly-2*TZnlt,arc2)
c.translate(TZnlt,TZnlt)
c.fill()
c.translate(-TZnlt,-TZnlt)
if(TZnlt>0)
{
c.fillStyle=bord_col;
TFPRO(c,0,0,lx,ly,arc)
KkAdA(c,TZnlt,TZnlt,lx-2*TZnlt,ly-2*TZnlt,arc2,true)
c.fill()
}
}
else
{
var canv2=FEZca(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
if(TZnlt>0)
{
c2.fillStyle=bord_col;
TFPRO(c2,0,0,lx,ly,arc)
KkAdA(c2,TZnlt,TZnlt,lx-2*TZnlt,ly-2*TZnlt,arc2,true)
c2.fill()
}
TFPRO(c2,TZnlt,TZnlt,lx-2*TZnlt,ly-2*TZnlt,arc2)
c2.clip()
c2.drawImage(this,TZnlt,TZnlt,lx-2*TZnlt,ly-2*TZnlt);
if(shadow) cGbnH(c,rot)
c.drawImage(canv2,0,0);
}
}
vDPIC.src=s_img[0];
}
function rUcBe(c,type,lx,ly,corner)
{
if(type==1)
RAUlQ(c,0,0,lx,ly)
else
TFPRO(c,0,0,lx,ly,corner)
}
function afkvd(el,c,type,lx,ly,corner,bg,CdCRN,rot)
{
if(UtOWn()==false)
{
if(CdCRN) lcQOU(c,0,0,lx,ly,corner,(type==1),rot)
c.fillStyle=bg;
rUcBe(c,type,lx,ly,corner)
c.fill()
}
else
{
var canv2=FEZca(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.fillStyle=bg;
rUcBe(c2,type,lx,ly,corner)
c2.fill()
if(CdCRN) cGbnH(c,rot)
c.drawImage(canv2,0,0);
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
}
}
function HbsKw(c,type,lx,ly,UFsWx,bg,VdOhg,bRvBG_glow)
{
if(VdOhg)
{
var x1=VdOhg[0];var y1=VdOhg[1];var lx1=VdOhg[2];var ly1=VdOhg[3];var qxNCJ=VdOhg[4];
var XJrDH=c.createLinearGradient(x1,y1,x1,y1+ly1);
XJrDH.addColorStop(0,"rgba(255,255,255,0.7)");XJrDH.addColorStop(1,"rgba(255,255,255,0.1)");
c.fillStyle=XJrDH;
if(type==1) RAUlQ(c,x1,y1,lx1,ly1)
else
TFPRO(c,x1,y1,lx1,ly1,qxNCJ)
c.fill()
}
if(bRvBG_glow)
{
var x2=bRvBG_glow[0];var y2=bRvBG_glow[1];var lx2=bRvBG_glow[2];var ly2=bRvBG_glow[3];
var cnWPQ=bRvBG_glow[4];
var wIoKU_glow=new RGBColor(bRvBG_glow[5]);
wIoKU_glow.a=0;
var col1=bRvBG_glow[5];
var col2=wIoKU_glow.toRGB();
var LocDl=c.createLinearGradient(x2,y2,x2,y2+ly2);
LocDl.addColorStop(0,col2);
LocDl.addColorStop(0.2,col2);
LocDl.addColorStop(1,col1);
c.fillStyle=LocDl;
if(type==1) RAUlQ(c,x2,y2,lx2,ly2)
else
TFPRO(c,x2,y2,lx2,ly2,cnWPQ)
c.fill()
}
}
function xBNfB(OAHRr,AXeZv,ORgdA,CsiqZ,Ocjjl,UFsWx,NjtwW,VdOhg,bRvBG_glow,CdCRN,UgeoF)
{
OAHRr.AXeZv=AXeZv;OAHRr.ORgdA=ORgdA;
OAHRr.CsiqZ=CsiqZ;OAHRr.Ocjjl=Ocjjl;
OAHRr.UFsWx=UFsWx;OAHRr.NjtwW=NjtwW,OAHRr.VdOhg=VdOhg;
OAHRr.bRvBG_glow=bRvBG_glow;OAHRr.CdCRN=CdCRN;OAHRr.UgeoF=UgeoF;
}
function WA_but_over(AXeZv,NjtwW_over,wIoKU_glow)
{
var REBot=document.getElementById(AXeZv) 
if(REBot&&REBot.LbGKw)
with(REBot.LbGKw)
{
var bRvBG_glow_over;
if(bRvBG_glow&&wIoKU_glow)
{
bRvBG_glow_over=new Array();
for(var Esqne=0;Esqne<bRvBG_glow.length;Esqne++)bRvBG_glow_over[Esqne]=bRvBG_glow[Esqne];
bRvBG_glow_over[5]=wIoKU_glow;
}
WA_but(AXeZv,ORgdA,CsiqZ,Ocjjl,UFsWx,NjtwW_over,VdOhg,bRvBG_glow_over,CdCRN,UgeoF);
}
var hhPVS_over0=document.getElementById(AXeZv+"-div0")
if(hhPVS_over0)html_SetVisibility(hhPVS_over0,false);
var qOmwB=document.getElementById(AXeZv+"-div1")
if(qOmwB)html_SetVisibility(qOmwB,true);
}
function WA_but_out(AXeZv)
{
var REBot=document.getElementById(AXeZv)
with(REBot.LbGKw)
{
WA_but(AXeZv,ORgdA,CsiqZ,Ocjjl,UFsWx,NjtwW,VdOhg,bRvBG_glow,CdCRN,UgeoF);
}
var hhPVS_over0=document.getElementById(AXeZv+"-div0")
if(hhPVS_over0)html_SetVisibility(hhPVS_over0,true);
var qOmwB=document.getElementById(AXeZv+"-div1")
if(qOmwB)html_SetVisibility(qOmwB,false);
}
function WA_but(id,type,lx,ly,corner,bg,top_light,s_glow,shadow,rot)
{
var el=document.getElementById(id)
if(el.LbGKw==undefined)
{
el.LbGKw=new Array();
xBNfB(el.LbGKw,id,type,lx,ly,corner,bg,top_light,s_glow,shadow,rot);
}
var c=el.getContext('2d');
var BBNVA=0;
if(shadow)BBNVA=6
c.clearRect(0,0,lx+2*BBNVA,ly+2*BBNVA) 
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(UtOWn()==false)
{
c.translate(BBNVA,BBNVA)
img.width=lx
img.height=ly 
lcQOU(c,0,0,lx,ly,corner,(type==1),rot)
var ptrn=c.createPattern(img,'no-repeat');
c.fillStyle=ptrn;
c.beginPath()
rUcBe(c,type,lx,ly,corner)
c.fill()
HbsKw(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-BBNVA,-BBNVA)
}
else
{
var canv2=FEZca(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.beginPath()
rUcBe(c2,type,lx,ly,corner)
c2.clip()
c2.drawImage(img,0,0,lx,ly);
HbsKw(c2,type,lx,ly,corner,bg,top_light,s_glow)
if(shadow) cGbnH(c,rot) 
c.drawImage(canv2,BBNVA,BBNVA);
}
}
img.src=bg2;
return;
}
c.translate(BBNVA,BBNVA)
afkvd(el,c,type,lx,ly,corner,bg2,shadow,rot)
HbsKw(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-BBNVA,-BBNVA)
}
function lcQOU(c,x0,y0,lx0,ly0,corner,is_circle,rot)
{
var decShadow=2;
c.translate(decShadow,decShadow)
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) RAUlQ(c,x,y,lx,ly);else TFPRO(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,-decShadow)
}
function frPLa(id,x,y,lx,ly,arc,TZnlt,bord_col,bg,shadow,rot,NToIh,wxXeC)
{
if(wxXeC==undefined)wxXeC=true;
var el=document.getElementById(id)
var c=el.getContext('2d');
if(NToIh==undefined)NToIh=1.0;
var BBNVA=0;
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
if(shadow)
{
BBNVA=6;
}
if(wxXeC) c.clearRect(0,0,el.width,el.height)
c.globalAlpha=NToIh 
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 VHKNe=bg1.split(";");
var x1=parseFloat(VHKNe[0]);
var y1=parseFloat(VHKNe[1]);
var x2=parseFloat(VHKNe[2]);
var y2=parseFloat(VHKNe[3]);
var col1=VHKNe[4];
var col2=VHKNe[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-TZnlt;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
{
if(shadow) lcQOU(c,BBNVA,BBNVA,lx,ly,arc,false,rot)
}
if(TZnlt>0)
{
c2.fillStyle=bord_col;
TFPRO(c2,x,y,lx,ly,arc)
KkAdA(c2,x+TZnlt,y+TZnlt,lx-2*TZnlt,ly-2*TZnlt,arc2,true)
c2.fill()
}


c2.fillStyle=fill_obj 
TFPRO(c2,x+TZnlt,y+TZnlt,lx-2*TZnlt,ly-2*TZnlt,arc2)
c2.fill();
}
function fcBDJ(vIOYK,siHsO,vaFQZ)
{
return new Point(Math.round(vIOYK*Math.cos(vaFQZ)-siHsO*Math.sin(vaFQZ)),Math.round(vIOYK*Math.sin(vaFQZ)+siHsO*Math.cos(vaFQZ)))
}
function tLiwU(c,x,y,lx,ly,arc,clowckwise,UgeoF)
{
c.beginPath()
CFBKV(c,x,y,lx,ly,arc,clowckwise,UgeoF)
}
function CFBKV(c,x,y,lx,ly,arc,clowckwise,UgeoF)
{
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 hOQDH=[[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=UgeoF*2*Math.PI/360
for(var n=0;n<hOQDH.length;n++)
{
var GAOfg=hOQDH[n][0]
var bXFqs=hOQDH[n][1]
hOQDH[n][0]=GAOfg*Math.cos(theta)-bXFqs*Math.sin(theta);
hOQDH[n][1]=GAOfg*Math.sin(theta)+bXFqs*Math.cos(theta);
}
var n=0;
c.moveTo(hOQDH[n][0],hOQDH[n++][1]);
c.lineTo(hOQDH[n][0],hOQDH[n++][1]);
c.quadraticCurveTo(hOQDH[n][0],hOQDH[n++][1],hOQDH[n][0],hOQDH[n++][1]);
c.lineTo(hOQDH[n][0],hOQDH[n++][1]);
c.quadraticCurveTo(hOQDH[n][0],hOQDH[n++][1],hOQDH[n][0],hOQDH[n++][1]);
c.lineTo(hOQDH[n][0],hOQDH[n++][1]);
c.quadraticCurveTo(hOQDH[n][0],hOQDH[n++][1],hOQDH[n][0],hOQDH[n++][1]);
c.lineTo(hOQDH[n][0],hOQDH[n++][1]);
c.quadraticCurveTo(hOQDH[n][0],hOQDH[n++][1],hOQDH[n][0],hOQDH[n++][1]);
}
function cVsfE(a,b,x,y)
{
return(a*x-y+b)/(Math.sqrt(1+a*a))
}
function OWFAS(new_a1,new_b1,mUxXn,multi)
{
var d=0;
for(var i=0;i<mUxXn.length;i++)
{
var VJuwX=mUxXn[i]
var d1=cVsfE(new_a1,new_b1,VJuwX.x,VJuwX.y)
if(multi<0)
{
if(d1<0) d=Math.max(d,-d1);
}
else
{
if(d1>0) d=Math.max(d,d1);
}
}
return d;
}
function VvtKF(o1,o2)
{
if(o1<o2) return-1
if(o1>o2) return 1
return 0
}
function TETNP(c,lx,ly,bg1)
{
var fill_obj=false;
var jfKuh=false;
var ipvSk=false;
var mUxXn=false
if(bg1.substring(0,1)=="(")
{
bg1=bg1.substring(1);
bg1=bg1.substring(0,bg1.length-1)
var VHKNe=bg1.split(";");
var sYLZD=new Point(parseFloat(VHKNe[0]),parseFloat(VHKNe[1]));
var FAWVX=new Point(parseFloat(VHKNe[2]),parseFloat(VHKNe[3]));
jfKuh=sYLZD.clone()
ipvSk=FAWVX.clone()
var col1=VHKNe[4];
var col2=VHKNe[5];
var grad=c.createLinearGradient(jfKuh.x,jfKuh.y,ipvSk.x,ipvSk.y);
if(isMSIE())
{
jfKuh=sYLZD.clone()
ipvSk=FAWVX.clone() 
var XJrDH=0;
var LocDl=1;
{
mUxXn=[{x:0,y:0},{x:lx,y:0},{x:lx,y:ly},{x:0,y:ly}]
var d1=0;
var d2=0;
var a=(ipvSk.y-jfKuh.y)/(ipvSk.x-jfKuh.x);
var b=jfKuh.y-a*jfKuh.x;
var diff=1;
if(a==Infinity)
{
d1=(jfKuh.y)
d2=(ly-ipvSk.y)
}
else
if(a==0)
{
d1=(jfKuh.x)
d2=(lx-ipvSk.x)
}
else
{
var new_a1=-1/a;
var new_b1=jfKuh.y-new_a1*jfKuh.x;
d1=OWFAS(new_a1,new_b1,mUxXn,-1)
var new_b2=ipvSk.y-new_a1*ipvSk.x;
d2=OWFAS(new_a1,new_b2,mUxXn,1)
if(new_a1<0)diff=-1;
}
var d=Math.sqrt(Math.pow(ipvSk.x-jfKuh.x,2)+Math.pow(ipvSk.y-jfKuh.y,2))
var total=(d1+d+d2)
XJrDH=d1/total;
LocDl=(d1+d)/total;
var pt_prod0=new Point(ipvSk.x-jfKuh.x,ipvSk.y-jfKuh.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)
{
XJrDH=d2/total;
LocDl=(d2+d)/total;
}
}
grad.addColorStop(XJrDH,col1);
grad.addColorStop(LocDl,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,TZnlt,bord_col,bg,shadow,rot,aWgWD,dmCSd,NToIh,wxXeC)
{


var theta=rot*2*Math.PI/360 
if(wxXeC==undefined)wxXeC=true;
if(NToIh==undefined)NToIh=1.0;
var el=document.getElementById(id)
if(!el)return
var c=el.getContext('2d');
var BBNVA=(el.width-lx)/2;
if(wxXeC) c.clearRect(0,0,el.width,el.height)
var x_rect0=BBNVA;
var y_rect0=BBNVA;
var bg1=bg[0]
var fill_obj=false;
var jfKuh=false;
var ipvSk=false;
var mUxXn=false
fill_obj=TETNP(c,lx,ly,bg1) 
if(NToIh==undefined)NToIh=1.0;
var arc2=arc-TZnlt;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
if(shadow)
{
c2.translate(aWgWD+6,dmCSd+6)
}
else
{
c2.translate(aWgWD,dmCSd)
}
c2.fillStyle=fill_obj;
tLiwU(c2,TZnlt,TZnlt,lx-2*TZnlt,ly-2*TZnlt,arc2,false,rot)
c2.fill();
}
function WA_bg(id,lx,ly,arc,TZnlt,bord_col,bg,shadow,rot,NToIh,wxXeC)
{

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

var fill_obj=TETNP(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()
IruWx(c,el,lx,ly,arc,TZnlt,bord_col,ptrn,shadow,rot,NToIh)
}
img.src=bg2;
}
else
{
IruWx(c,el,lx,ly,arc,TZnlt,bord_col,fill_obj,shadow,rot,NToIh)
}
}
function IruWx(c,el,lx,ly,arc,TZnlt,bord_col,fill_obj,shadow,rot,NToIh)
{
if(NToIh==undefined)NToIh=1.0;
var arc2=arc-TZnlt;
if(arc2<0)arc2=0
var BBNVA=(el.width-lx)/2;
var x_rect0=BBNVA;
var y_rect0=BBNVA;
var canv2=false;
var c2=c;
c.globalAlpha=NToIh
if(UtOWn()==true)
{
canv2=FEZca(lx,ly);
c2=canv2.getContext('2d');
c2.globalAlpha=NToIh
}
else
{
c2.translate(BBNVA,BBNVA)
if(shadow) lcQOU(c,0,0,lx,ly,arc,false,rot)
}
if(TZnlt>0)
{
c2.fillStyle=bord_col;
TFPRO(c2,0,0,lx,ly,arc)
KkAdA(c2,TZnlt,TZnlt,lx-2*TZnlt,ly-2*TZnlt,arc2,true)
c2.fill()
}
c2.fillStyle=fill_obj;
TFPRO(c2,TZnlt,TZnlt,lx-2*TZnlt,ly-2*TZnlt,arc2)
c2.fill();
if(UtOWn()==true)
{
if(shadow) cGbnH(c,rot)
c.drawImage(canv2,BBNVA,BBNVA);
}
else
{
c2.translate(-BBNVA,-BBNVA)
}
}
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(bRvBG){return(this.width>bRvBG.width)&&(this.height>bRvBG.height)}
this.scale=function(XBZdt,mgLQP)
{
if(!mgLQP)mgLQP=false
var qfNcU=this;
var MwIGg=qfNcU.width
var biQYT=qfNcU.height
var p1=MwIGg*XBZdt.height;
var p2=XBZdt.width*biQYT;
var r1=MwIGg/biQYT;
var r2=biQYT/MwIGg;
var newSize1=new Size(XBZdt.height*r1,XBZdt.height);
var newSize2=new Size(XBZdt.width,XBZdt.width*r2);
if(p2>p1)
{
if((mgLQP==true)||((newSize1.width<=qfNcU.width)&&(newSize1.height<=qfNcU.height)))
{
qfNcU.width=Math.round(newSize1.width);
qfNcU.height=Math.round(newSize1.height);
}
}
else
{
if((mgLQP==true)||((newSize2.width<=qfNcU.width)&&(newSize2.height<=qfNcU.height)))
{
qfNcU.width=Math.round(newSize2.width);
qfNcU.height=Math.round(newSize2.height);
}
}
this.width=qfNcU.width;
this.height=qfNcU.height;
return true;
}
}
function Point(p_x,p_y){this.x=p_x;this.y=p_y;
this.translate=function(vIOYK,siHsO){this.x+=vIOYK;this.y+=siHsO;}
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(aooFC){return(this.x==aooFC.x)&&(this.y==aooFC.y)&&(this.width==aooFC.width)&&(this.height==aooFC.height);}
this.copy=function(aooFC){this.x=aooFC.x;this.y=aooFC.y;this.width=aooFC.width;this.height=aooFC.height;}
this.translate=function(vIOYK,siHsO){this.x+=vIOYK;this.y+=siHsO;}
}
function html_getLayer(aooFC)
{
if(typeof(aooFC)=="string")return document.getElementById(aooFC);
return aooFC;
}
function html_SetPosition(aooFC,vIOYK,siHsO){
aooFC=html_getLayer(aooFC);
aooFC.style.left=vIOYK+"px";aooFC.style.top=siHsO+"px";
}
function html_SetSize(VEZKq,CsiqZ,Ocjjl){
aooFC=html_getLayer(VEZKq);
aooFC.style.width=CsiqZ+"px";aooFC.style.height=Ocjjl+"px";
}
function html_SetRect(aooFC,ebjDr){html_SetGeometry(aooFC,ebjDr.x,ebjDr.y,ebjDr.width,ebjDr.height);}
function html_SetGeometry(aooFC,vIOYK,siHsO,CsiqZ,Ocjjl){html_SetPosition(aooFC,vIOYK,siHsO);html_SetSize(aooFC,CsiqZ,Ocjjl);}
function html_SetVisibility(aooFC,VBkPV){aooFC=html_getLayer(aooFC);aooFC.style.visibility=(VBkPV)?"visible":"hidden";}
function html_SetDisplay(aooFC,VBkPV){aooFC=html_getLayer(aooFC);aooFC.style.display=(VBkPV)?"block":"none";}
function html_SetCanvasSize(aooFC,CsiqZ,Ocjjl){aooFC=html_getLayer(aooFC);aooFC.width=CsiqZ;aooFC.height=Ocjjl;}
function html_SetOpacity(aooFC,Upuuo)
{
aooFC=html_getLayer(aooFC);
aooFC.style['opacity']=Upuuo;
aooFC.style['-moz-opacity']=Upuuo;
aooFC.style.filter=(Upuuo==1)?'':'alpha(opacity='+(Upuuo*100)+')';
}
var elKPk=[
{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<elKPk.length;i++)
{
var array2=elKPk[i].l;
for(var i2=0;i2<array2.length;i2++)
{
var reg=new RegExp(array2[i2],"g");
res=res.replace(reg,elKPk[i].acc)
}
}
return res;
}
function trimString(str)
{
return str.replace(/^\s*|\s*$/g,"");
}
function IsNumeric(aEhXD)
{
var iTjhH="0123456789.";var xrEgZ=true;var mOuSS;
for(Esqne=0;Esqne<aEhXD.length&&xrEgZ==true;Esqne++){mOuSS=aEhXD.charAt(Esqne);if(iTjhH.indexOf(mOuSS)==-1) xrEgZ=false;}
return xrEgZ;
}
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(JcoIs)
{
var PhnwF=JcoIs*60;
var cWWfO=new Date();
var eEISe=0;
eEISe+=cWWfO.getYear()*12*31*24*60*60;
eEISe+=cWWfO.getMonth()*31*24*60*60;
eEISe+=cWWfO.getDate()*24*60*60;
eEISe+=cWWfO.getHours()*60*60;
eEISe+=cWWfO.getMinutes()*60;
eEISe+=cWWfO.getSeconds();
if(PhnwF!=0)
{
eEISe=Math.floor(eEISe/PhnwF)*PhnwF
}
return "-"+eEISe;
}
function html_findPos(obj)
{
var Upuuo=rKRqM(obj)
return new Point(Upuuo[0],Upuuo[1])
}
function rKRqM(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(kXFiB,CsiqZ,Ocjjl)
{
document.write("<input id='"+kXFiB+"' type=search results=0 placeholder='' style='width:"+CsiqZ+"px;height:"+Ocjjl+"px;'>")
}
function dIksu()
{
var FlKEc=document.getElementsByTagName("A");
for(var Esqne=0;Esqne<FlKEc.length;Esqne++)
{
var aooFC=FlKEc[Esqne];
if(aooFC.onmouseover)aooFC.onmouseover=null;
if(aooFC.onmouseout)aooFC.onmouseout=null;
}
}
function WjfhN()
{
for(var mXuiD in document.wa_global_list_element)
{
var AXeZv=document.wa_global_list_element[mXuiD]
var REBot=document.getElementById(AXeZv)
REBot.onclick=function()
{
WA_focus(this)
}
}
}
function WA_declare(AXeZv)
{
if(!document.wa_global_list_element)
{
document.wa_global_list_element=new Array();;
}
document.wa_global_list_element.push(AXeZv)
}
function bQklu()
{
var QmRLH=window.location.search;
if(QmRLH.substr(0,1)=="?")QmRLH=QmRLH.substr(1);
if(QmRLH.length==0)return;
var PDgrS=new Array();
var uTPfu=QmRLH.split("&");
for(var i=0;i<uTPfu.length;i++)
{
var xFFaA=uTPfu[i].split("=");PDgrS[xFFaA[0]]=xFFaA[1];
}
var bRvBG_info=PDgrS["crbst_info"];
if(!bRvBG_info)return;
var bGbwi=new Array();
bGbwi.m_unid=bRvBG_info;
bGbwi.m_index_item=-1;
var TLWrG=bRvBG_info.indexOf("-");
if(TLWrG!=-1)
{
bGbwi.m_unid="wa-id-"+bRvBG_info.substring(0,TLWrG);
bGbwi.m_index_item=parseInt(bRvBG_info.substring(TLWrG+1));
}
document.wa_global_query_info=bGbwi;
}
function IS_onload_WA()
{

if(isMSIE8())
{
wa_timeout("IS_onload_ui()",0)
}
else
{
IS_onload_ui()
}
if(isIPhone())
{
dIksu()
}
else
{
WjfhN()
}
bQklu();

FMKks()
}
function FMKks()
{
var TgraW=0;
var TjaGw=document.webaca_banner_height;
if(document.webaca_page_is_centered)
{
var DHLfv=getWindowSize().width
var hDdlm=document.webaca_width_page
if(DHLfv>hDdlm)TgraW=(DHLfv-hDdlm)/2;
}
document.body.style.backgroundPosition=TgraW+"px "+TjaGw+"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 eSYeT=CONST_WA_COUNTRIES.codes[n]
var jRhVw=CONST_WA_COUNTRIES.labels[n]
Translator.m_countries[eSYeT]=jRhVw
}
}
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(AXeZv,XdNRJ,CdCRN)
{
this.AXeZv=AXeZv;
this.XdNRJ=XdNRJ
this.CdCRN=CdCRN;
this.Qsiiq=this.AXeZv+"-div"
this.YEdOg=this.AXeZv+"-canvas"
this.gGAQX=new Rect(0,0,0,0)
this.kAUAw=false;
this.PeAVY=false;
this.BBNVA=6;
this.RavfJ_src=false;
this.RavfJ_clip=false;
this.uGsCf=false;
this.ZxeFl="";
this.shadow=function()
{
return this.CdCRN;
}
this.marginShadow=function()
{
return this.BBNVA;
}
this.rect=function()
{
return this.gGAQX;
}
this.canvasId=function()
{
return this.YEdOg;
}
this.divId=function()
{
return this.Qsiiq;
}
this.opacity=function()
{
return this.uLmpt;
}
this.img_clip=function()
{
return this.RavfJ_clip;
}
this.img_src=function()
{
return this.RavfJ_src;
}
this.toHtml=function()
{
var bRvBG=""
bRvBG+="<div id='"+this.Qsiiq+"' style=\"";
bRvBG+="position:absolute;";
if(this.ZxeFl.length>0)
{
bRvBG+="cursor:pointer;";
}
if(this.rect.x>0)bRvBG+="left:"+this.rect.x+"px;";
if(this.rect.y>0)bRvBG+="top:"+this.rect.y+"px;";
if(this.rect.width>0)bRvBG+="width:"+this.rect.width+"px;";
if(this.rect.height>0)bRvBG+="height:"+this.rect.height+"px;";
if(XdNRJ)
bRvBG+="z-index:"+XdNRJ+";";
bRvBG+="\" ";
if(this.ZxeFl.length>0)
{
bRvBG+="onclick=\""+this.ZxeFl+"\" "
}
bRvBG+=">";
if((this.rect.width>0)&&this.shadow())
{
bRvBG+=html_canvas(this.YEdOg,this.rect.width+2*this.BBNVA,this.rect.height+2*this.BBNVA)+"</div>";
}
else
{
bRvBG+=html_canvas(this.YEdOg,0,0)+"</div>";
}
return bRvBG
}
this.setImage=function(tWIoB,lICnZ,UgeoF)
{
if(UgeoF==undefined)UgeoF=0;
if((tWIoB==this.RavfJ_src)&&(this.RavfJ_clip&&this.RavfJ_clip.equals(lICnZ))&&(this.uGsCf==UgeoF))
{
return;
}
this.uGsCf=UgeoF;
this.RavfJ_src=tWIoB;
this.RavfJ_clip=lICnZ;
this.AoUKR()
}
this.registerDynamicCanvas=function()
{
registerDynamicCanvas(this.YEdOg);
this.PeAVY=true;
this.setRect(this.gGAQX.x,this.gGAQX.y,this.gGAQX.width,this.gGAQX.height)
}
this.AoUKR=function()
{
if((this.gGAQX.width>0)&&(this.gGAQX.height>0))
{
this.draw()
}
this.kAUAw=true
};
this.draw=function(){};
this.setPosition=function(vIOYK,siHsO)
{
this.gGAQX.x=vIOYK;this.gGAQX.y=siHsO;
if(this.PeAVY==false)return
html_SetPosition(this.Qsiiq,this.gGAQX.x,this.gGAQX.y)
if(this.kAUAw==false)
{
this.AoUKR()
}
}
this.setOnClick=function(bRvBG)
{
this.ZxeFl=bRvBG
}
this.width=function(){return this.gGAQX.width;}
this.height=function(){return this.gGAQX.height;}
this.setSize=function(CsiqZ,Ocjjl)
{
this.gGAQX.width=CsiqZ;this.gGAQX.height=Ocjjl;
var GJlgZ=CsiqZ
var mSLoo=Ocjjl
if(this.CdCRN)
{
GJlgZ+=2*this.BBNVA
mSLoo+=2*this.BBNVA
}
if(this.PeAVY==false)return
html_SetSize(this.Qsiiq,GJlgZ,mSLoo)
html_SetCanvasSize(this.YEdOg,CsiqZ,Ocjjl)
this.AoUKR()
}
this.setRect=function(vIOYK,siHsO,CsiqZ,Ocjjl)
{
this.gGAQX.x=vIOYK;this.gGAQX.y=siHsO;this.gGAQX.width=CsiqZ;this.gGAQX.height=Ocjjl;
var GJlgZ=CsiqZ
var mSLoo=Ocjjl
var uciRJ=vIOYK
var aqPKr=siHsO
if(this.CdCRN)
{
GJlgZ+=2*this.BBNVA
mSLoo+=2*this.BBNVA
uciRJ-=this.BBNVA
aqPKr-=this.BBNVA
}
if(this.PeAVY==false)return 
html_SetGeometry(this.Qsiiq,uciRJ,aqPKr,GJlgZ,mSLoo);
html_SetCanvasSize(this.YEdOg,GJlgZ,mSLoo)
try{this.AoUKR()}catch(e){
alert(e.message)
}
}
this.setVisible=function(VBkPV)
{
if(this.PeAVY==false)return
html_SetVisibility(this.Qsiiq,VBkPV)
}
this.setOpacity=function(Upuuo)
{
this.uLmpt=Upuuo 
if(this.PeAVY==false)return
this.AoUKR()
}
}

function is_onresize()
{
WA_Dialog.resizeUI()
try
{
if(WA_PhotoAlbum_resizeUI)WA_PhotoAlbum_resizeUI()
}
catch(e){}
FMKks()
}
function is_onscroll()
{
centerFullPageContainer();
}
function registerDynamicCanvas(id)
{
if(isMSIE())
G_vmlCanvasManager.initElement(document.getElementById(id));
}
function WA_openDialogAction(mXuiD)
{
var eBATc=WA_Dialog.MxpBm;
if(mXuiD==-1){eBATc.closeWin();return;}
var oAZPc=eBATc.uGkxG(mXuiD);
if(oAZPc[5])
{
oAZPc[4].call(oAZPc[6],oAZPc[5])
}
else
{
oAZPc[4](oAZPc[5]);
}
}
function WA_Dialog(VBkPV_close_button)
{
this.UJYsq=0;
this.UliHT=0;
this.XBZdt_win_width=600;
this.XBZdt_win_height=400;
this.vIdmg=new Array();
this.YXnFx="wa-dialog-but-";
this.NaHuU=this.YXnFx+"div-";
this.oguZN=this.YXnFx+"canvas-";
this.BUTTON_HEIGHT=25;
this.rqQUb=CONST_WA_GLOBAL_COLOR_THEME;
this.VBkPV_close_button=VBkPV_close_button;
this.QFVWi=5;
this.KnOZK=function()
{
if(this.VBkPV_close_button==undefined)this.VBkPV_close_button=true;
this.aKRlc();
}
this.resetButtons=function()
{
this.aKRlc();
}
this.idealHeight=function()
{
return this.TMhxX
}
this.displayWindowWithAutoResize=function(xqUEX,oDMmC)
{
this.YBSrU=false
this.TMhxX=xqUEX
this.kNuLn=oDMmC 
this.resetButtons();
oDMmC.call(this)
var l=document.getElementById('wa-dialog-content');
if(this.YBSrU==false)
if(l.scrollHeight>200)
{
this.YBSrU=true
this.TMhxX=l.scrollHeight+150
this.resetButtons();
oDMmC.call(this)
}
}
this.initializeWindow=function(XBZdt_lx,XBZdt_ly)
{
if(WA_Dialog.MxpBm)WA_Dialog.MxpBm.closeWin()
WA_Dialog.MxpBm=this;
this.XBZdt_win_width=XBZdt_lx;
this.XBZdt_win_height=XBZdt_ly;
this.kSpkt()
}
this.progress=function()
{
this.initializeWindow(300,100) 
this.writeContent("<div width=100% align=center><img src='wa_loading.gif'></div>")
}
this.ZwGbk=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(jRhVw,TNTHc,siUwX,GmTAk)
{
var ElxnQ=this.vIdmg.length
if(this.VBkPV_close_button==true)
{
ElxnQ--;
}
var CsiqZ=Math.max((jRhVw.length*8)*1.2+30,80)
var qfNcU=new Size(CsiqZ,this.BUTTON_HEIGHT);
this.sGRWp("action_"+ElxnQ,ElxnQ,jRhVw,TNTHc,qfNcU,siUwX,GmTAk)
}
this.aKRlc=function()
{
this.vIdmg=new Array();
if(this.VBkPV_close_button)
{
var qfNcU=new Size(120,20);
this.sGRWp("close",-1,Translator.tr("Close")+" - X",null,qfNcU)
}
}
this.sGRWp=function(uahQh,ElxnQ,jRhVw,TNTHc,qfNcU,siUwX,GmTAk)
{
var oAZPc=[uahQh,qfNcU,ElxnQ,jRhVw,TNTHc,siUwX,GmTAk];
this.vIdmg.push(oAZPc);
}
this.writeContent=function(s)
{
var l=document.getElementById('wa-dialog-content');
l.innerHTML=s
}
this.uGkxG=function(uahQh)
{
for(var mXuiD=0;mXuiD<this.vIdmg.length;mXuiD++)
{
var oAZPc=this.vIdmg[mXuiD];
if((oAZPc[0]==uahQh)||(oAZPc[2]+""==uahQh+""))
return oAZPc;
}
return undefined;
}
this.MwrMh=function(uahQh)
{
var oAZPc=this.uGkxG(uahQh);
return oAZPc[1]
}
this.peQSI=function(kJSAI)
{
var oAZPc=this.uGkxG(kJSAI);
var uahQh=oAZPc[0];
var ElxnQ=oAZPc[2];
var uQmqJ=this.rqQUb[4]
var wIoKU_bg=this.rqQUb[5]
var wIoKU_glow=this.rqQUb[7]
if(ElxnQ==-1)
{
uQmqJ=this.rqQUb[10]
wIoKU_bg=this.rqQUb[8]
wIoKU_glow=this.rqQUb[11]
}
var hhPVS_id=this.NaHuU+uahQh;
var fdMwv=this.oguZN+uahQh;
var qfNcU=this.MwrMh(kJSAI)
var URwsW=this.QFVWi;
var s=""
s+="<a href='javascript:WA_openDialogAction("+kJSAI+")' ";
var wIoKU=new RGBColor(wIoKU_bg);
var jpseD=wIoKU.toHsl();
wIoKU.fromHsl(jpseD[0],jpseD[1],jpseD[2]+0.2)
wIoKU_bg=wIoKU.toRGB();
var ibSDo=new RGBColor(wIoKU_glow);
var ibSDo_hsl=ibSDo.toHsl();
ibSDo.fromHsl(ibSDo_hsl[0],ibSDo_hsl[1],ibSDo_hsl[2]+0.2)
wIoKU_glow=ibSDo.toRGB();
s+="onmouseover=\"WA_but_over('"+fdMwv+"','"+wIoKU_bg+"','"+wIoKU_glow+"')"+"\" ";
s+="onmouseout=\""+"WA_but_out('"+fdMwv+"')"+"\" ";
s+="style='text-decoration:none;'>";
s+="<div id='"+this.NaHuU+uahQh+"' style='position:absolute;cursor:pointer;left:0px;top:0px;height:"+qfNcU.height+"px;width:"+qfNcU.width+"px;' >";
s+="<div style='position:absolute;left:"+(-URwsW)+"px;top:"+(-URwsW)+"px;height:"+qfNcU.height+"px;'>"
s+="<canvas id='"+this.oguZN+uahQh+"' width="+(qfNcU.width+URwsW*2)+" height="+(qfNcU.height+URwsW*2)+" ></canvas>";
s+="</div>"
s+="<div align=center style='position:absolute;left:0px;top:"+(0)+"px;vertical-align:middle;width:100%;height:"+(qfNcU.height)+"px;line-height:"+(qfNcU.height)+"px;font-family:arial;font-size:13px;font-weight:bold;color:"+uQmqJ+"'>"
s+=oAZPc[3];
s+="</div>"
s+="</div>"
s+="</a>"
return s;
}
this.getColorTheme=function(mXuiD)
{
return this.rqQUb[mXuiD];
}
this.PBsAZ=function(uahQh)
{
var oAZPc=this.uGkxG(uahQh);
var ElxnQ=oAZPc[2];
var wIoKU_bg=this.rqQUb[5]
var wIoKU_glow=this.rqQUb[7]
var uQmqJ=this.rqQUb[3]
if(ElxnQ==-1)
{
wIoKU_bg=this.rqQUb[8]
wIoKU_glow=this.rqQUb[11]
uQmqJ=this.rqQUb[10]
}
var eSYeT=this.oguZN+uahQh;
registerDynamicCanvas(eSYeT);
var qfNcU=this.MwrMh(uahQh);
var UFsWx=qfNcU.height*0.25;
var UFsWx_top=(qfNcU.height-UFsWx)/2;
var reFsA=(qfNcU.width-2);
var Ocjjl_circle_top=UFsWx*2;
var VHKNe_top=[(qfNcU.width-reFsA)/2,1,reFsA,Ocjjl_circle_top,UFsWx_top];
var KUgYT=qfNcU.width*0.9;
var Ocjjl_circle_bottom=qfNcU.height*0.45;
var BoHIe=wIoKU_glow;
var eldOd=wIoKU_glow;
var UFsWx_bottom=Ocjjl_circle_bottom/2;
var VHKNe_bottom=[(qfNcU.width-KUgYT)/2,qfNcU.height-Ocjjl_circle_bottom-1,KUgYT,Ocjjl_circle_bottom,UFsWx_bottom,BoHIe,eldOd];
WA_but(eSYeT,0,qfNcU.width,qfNcU.height,UFsWx,wIoKU_bg,VHKNe_top,VHKNe_bottom,true,0)
}
this.PnTSd=function(uahQh)
{
var oAZPc=this.uGkxG(uahQh)
if(oAZPc)
{
var eSYeT=this.NaHuU+oAZPc[0];
return document.getElementById(eSYeT);
}
return undefined
}
this.kSpkt=function()
{
var l=document.getElementById('wa-dialog-container');
l.style.display="block" 

var s="";
var EwXpl=document.webaca_banner_height
s+="<div  style='position:absolute;left:0px;top:"+EwXpl+"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:"+EwXpl+"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 Esqne in this.vIdmg)
{
s+=this.peQSI(this.vIdmg[Esqne][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.avSLK)
}
this.avSLK=function()
{
registerDynamicCanvas('wa-dialog1');
for(var Esqne in this.vIdmg)
{
this.PBsAZ(this.vIdmg[Esqne][0])
}
this.inGPb()
}
this.intern_closeWin=function()
{
var l=document.getElementById('wa-dialog-container');
l.style.display="none"
WA_Dialog.MxpBm=false
}
this.closeWin=function()
{
this.intern_closeWin()
}
this.cssText1=function()
{
return "font-family:Arial;font-size:15px;color:"+this.rqQUb[3]+";";
}
this.onCustomKeypress=function(mfgfe)
{
if((this.vIdmg.length==1)&&(mfgfe==13))
{
this.closeWin()
return true;
}
return false;
}
this.onkeypress=function(mfgfe)
{
return this.onCustomKeypress(mfgfe)
}
this.onkeydown=function(mfgfe)
{
if(mfgfe==27)
{
this.closeWin()
return true;
}
return this.onCustomKeypress(mfgfe) 
}
this.customUpdate=function(){}
this.inGPb=function()
{
var iOGVh=document.webaca_width_page;
var Ocjjl_page=document.webaca_height_page;
var PifuO=getWindowSize().width
var Ocjjl_window=getWindowSize().height 

this.UJYsq=Math.min(PifuO*0.9,this.XBZdt_win_width)
this.UliHT=Math.min(Ocjjl_window*0.9,this.XBZdt_win_height)
var tLVsc=document.getElementById('wa-dialog1');
tLVsc.width=this.UJYsq+10
tLVsc.height=this.UliHT+10
var vIOYK=getWindowScroll().x+(PifuO-tLVsc.width)/2
var siHsO=getWindowScroll().y+(Ocjjl_window-tLVsc.height)/2
vIOYK=(PifuO-tLVsc.width)/2
siHsO=(Ocjjl_window-tLVsc.height)/2
vIOYK=Math.max(0,vIOYK)
siHsO=Math.max(0,siHsO) 
var BndEP=document.getElementById('wa-dialog-main');
html_SetGeometry('wa-dialog-main',vIOYK,siHsO,tLVsc.width,tLVsc.height);
var lDKcg_bg="(0;0;0;"+this.UliHT*0.25+";"+this.rqQUb[1]+";"+this.rqQUb[2]+")";
WA_bg('wa-dialog1',this.UJYsq,this.UliHT,10,3,this.rqQUb[0],[lDKcg_bg],true,0)
var PGlWa=10;
var uvfvx=this.PnTSd(-1)
if(uvfvx)
{
var qfNcU_but_close=this.MwrMh(-1)
html_SetPosition(uvfvx,this.UJYsq-qfNcU_but_close.width+this.QFVWi-PGlWa,this.QFVWi+PGlWa)
}
var LnWsb=this.vIdmg.length;
if(this.VBkPV_close_button==true)
{
LnWsb--;
}
var SaWfp=10;
var jKtOp=0;
for(var Esqne=0;Esqne<LnWsb;Esqne++)
{
if(Esqne>0) jKtOp+=SaWfp;
var qfNcU_but=this.MwrMh(Esqne);
jKtOp+=qfNcU_but.width;
}
var axAsc=(this.UJYsq-jKtOp)/2
for(var Esqne=0;Esqne<LnWsb;Esqne++)
{
if(Esqne>0) axAsc+=SaWfp;
var aLsLu_div=this.PnTSd(Esqne);
var qfNcU_but=this.MwrMh(Esqne);
html_SetPosition(aLsLu_div,axAsc+this.QFVWi,+this.QFVWi+this.UliHT-qfNcU_but.height-2*PGlWa)
axAsc+=qfNcU_but.width;
}
var Ocjjl_top=45;
var Ocjjl_bottom=this.BUTTON_HEIGHT+2*PGlWa;
if(LnWsb==0)
{
Ocjjl_bottom=0;
}
var Ocjjl_content=(this.UliHT-Ocjjl_top-Ocjjl_bottom)-PGlWa
var VlorP=document.getElementById('wa-dialog-content');
var eBATc_content=Math.round(this.UJYsq-2*PGlWa)
var IdHPW=Math.round(Ocjjl_content)
this.m_content_lx=eBATc_content
this.m_content_ly=IdHPW
html_SetGeometry('wa-dialog-content',Math.round(5+(this.UJYsq-eBATc_content)/2),Math.round(5+Ocjjl_top+(Ocjjl_content-IdHPW)/2),eBATc_content,IdHPW);
this.customUpdate() 
var LHLoh=document.getElementById('wa-dialog-container');
QSUKp=getWindowFullSize().width
Ocjjl_full_client=getWindowFullSize().height
html_SetSize('wa-dialog-container',QSUKp,Ocjjl_full_client);
centerFullPageContainer();
}
this.KnOZK();
}
function WA_exec_callback_opera_compliant(siUwX,rqdLX)
{
if(/opera/i.test(navigator.userAgent))
omeoK(siUwX,rqdLX)
else
rqdLX.call(siUwX)
}
function omeoK(siUwX,rqdLX)
{
wa_timeout(RVkAD,0,siUwX,rqdLX);
}
function RVkAD(siUwX,rqdLX)
{
rqdLX.call(siUwX)
}
WA_Dialog.getCurrent=function()
{
return WA_Dialog.MxpBm;
}
WA_Dialog.MxpBm=false;
WA_Dialog.resizeUI=function()
{
if(WA_Dialog.MxpBm)
{
WA_Dialog.MxpBm.inGPb()
}
}
WA_Dialog.alert=function(s)
{
var w=new WA_Dialog();
w.ZwGbk(s)
}
WA_Dialog.progress=function()
{
var w=new WA_Dialog(false);
w.progress()
}
function centerFullPageContainer()
{
var iOGVh=document.webaca_width_page;
var Ocjjl_page=document.webaca_height_page;
var LHLoh=document.getElementById('wa-dialog-container');
QSUKp=getWindowSize().width
Ocjjl_full_client=getWindowSize().height
var siHsO_bg=getWindowScroll().y;
siHsO_bg=Math.min(siHsO_bg,Ocjjl_page-Ocjjl_full_client+1)
siHsO_bg=Math.max(siHsO_bg,0)
var jnCco=getWindowScroll().x;
jnCco=Math.min(jnCco,iOGVh-QSUKp+1)
jnCco=Math.max(jnCco,0) 
html_SetPosition('wa-dialog-container',jnCco,siHsO_bg,QSUKp,Ocjjl_full_client);
}

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

}
};
return http_request;
}
function makePOSTRequest(url,parameters,callback,YavKu)
{
var http_request=getXMLHttpRequest(callback,YavKu);
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(vchAh,CLZxK,GmTAk)
{
var result=CLZxK.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 nRrvw=GmTAk[0] 
WA_Dialog.alert(Translator.tr("Success:Mail sended"));
var form=document.getElementById(nRrvw);
form.reset()
}
else
{
var wsZVN="error_string="
n=result.indexOf(wsZVN)
if(n>-1)
{
result=result.substring(n+wsZVN.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 tLigH=el.value
tLigH=encodeURI(tLigH)
tLigH=tLigH.replace(/&/g,escape("&")) 
poststr+=el.name.replace("_mandatory","")+"="+tLigH+"&"
}
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(IKZSa)
{
var ZOEQE=document.getElementById(IKZSa);
ZOEQE.submit() 
}
function XpVEi(AXeZv,GmTAk)
{
var mfgfe=GmTAk[0]
if(mfgfe==13)
{
var IKZSa=AXeZv+"-form";
var ZOEQE=document.getElementById(IKZSa);
for(var i=0;i<ZOEQE.elements.length;i++)
{
var REBot=ZOEQE.elements[i];
if((REBot.type=="textarea")&&(REBot.focused))return true;
}
WA_form_submit(IKZSa);
return false;
}
return true;
}
function WA_addFormDeclaration(AXeZv,YKHgR)
{
return WA_addHandler(AXeZv,"keypress",XpVEi)
}
function WA_form_bg(id,lx,ly,arc,TZnlt,bord_col,bg,shadow,UgeoF,wUEpp)
{
WA_bg(id,lx,ly,arc,TZnlt,bord_col,bg,shadow,UgeoF,1.0,true) 
var TDTVO=wUEpp.x;
var mFpjo=0;
var folqR=wUEpp.cells
for(var n=0;n<folqR.length;n++)
{
var Awdsn=folqR[n]
var arc2=0
frPLa(id,TDTVO,mFpjo+Awdsn.y,wUEpp.w,Awdsn.h,arc2,1,wUEpp.border,[''],false,0,1.0,false)
frPLa(id,TDTVO,mFpjo+Awdsn.y,Awdsn.w,Awdsn.h,arc2,1,"rgba(0,0,0,0)",[wUEpp.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(pTddF)
{
this.ok=false;this.a=1.0;
if(pTddF.charAt(0)=='#'){pTddF=pTddF.substr(1);}
pTddF=pTddF.replace(/ /g,'');
pTddF=pTddF.toLowerCase();
var uGlVE=[
{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<uGlVE.length;i++){
var kqBem=uGlVE[i].re;
var rTowm=uGlVE[i]._process;
var gwvCu=kqBem.exec(pTddF);
if(gwvCu){
var UUXXj=rTowm(gwvCu);
this.r=UUXXj[0];this.g=UUXXj[1];this.b=UUXXj[2];this.a=UUXXj[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.fitAm=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.fitAm(p,q,h+1/3);g=this.fitAm(p,q,h);b=this.fitAm(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 hmqxH(veiiH,GmTAk)
{
if(document.wa_global_handlers!=undefined)
{
var AXeZv=WA_focused_element()
if(AXeZv)
{
var TNTHc=document.wa_global_handlers[AXeZv+"-"+veiiH]
if(TNTHc) return TNTHc([AXeZv],GmTAk)
}
}
return true;
}
function jqTvj(e)
{
if(window.event){return e.keyCode;}
else 
if(e.which) return  e.which;
return-1;
}
function WA_onkeypress(e)
{
var mfgfe=jqTvj(e);
if(WA_Dialog.MxpBm)
{
if(WA_Dialog.MxpBm.onkeypress(mfgfe))
{
return false;
}
}
return hmqxH("keypress",[mfgfe]);
}
function WA_ondblclick(e)
{
return hmqxH("dblclic",[""]);
}
function WA_onkeydown(e)
{
var mfgfe=jqTvj(e)
if(WA_Dialog.MxpBm)
{
if(WA_Dialog.MxpBm.onkeydown(mfgfe))
{
return false;
}
}
if(mfgfe==13) return true;

if(wa_global_photo_album&&wa_global_photo_album.fullpage_object)
{
var siUwX=wa_global_photo_album.fullpage_object
return siUwX.onFullScreenKeydown(mfgfe) 
}
return hmqxH("keydown",[mfgfe]);
}
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 AXeZv=this.id
var TNTHc=document.wa_global_handlers[AXeZv+"-mousewheel"]
if(TNTHc)
{
if(TNTHc([AXeZv],[delta]))
{
b_default=true;
}
}
}
}
if(b_default)
if(e.preventDefault)
e.preventDefault();
e.returnValue=!b_default;
}
function WA_addHandler(AXeZv,veiiH,rqdLX)
{
if(document.wa_global_handlers==undefined) document.wa_global_handlers=new Array()
if(veiiH=="mousewheel")
{
var hhPVS=document.getElementById(AXeZv);
if(hhPVS.addEventListener)
hhPVS.addEventListener('DOMMouseScroll',WA_genericMouseWheelHandler,false);
hhPVS.onmousewheel=WA_genericMouseWheelHandler
}
document.wa_global_handlers[AXeZv+"-"+veiiH]=rqdLX
}
function WA_loadPhotoAlbum(AXeZv,oTAON,qfNcU,AXeZv_modif)
{
if(typeof(wa_global_photo_album[AXeZv])=="undefined")
{
var o=new Array();
o.src_folder=oTAON
o.size_container=qfNcU
o.id_modif=AXeZv_modif
wa_global_photo_album[AXeZv]=o;
}
}
function WA_focused_element()
{
return document.wa_global_focused_element
}
function WA_focus(siUwX)
{
document.wa_global_focused_element=siUwX.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(GYwQA,jscGb,aLQMH)
{
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[jscGb])document.wa_global_blogs_elements[jscGb]=new Array()
document.wa_global_blogs_elements[jscGb].id_blog=GYwQA
document.wa_global_blogs_elements[jscGb].has_email=aLQMH
}
function WA_addSearchHandler(AXeZv)
{
return WA_addHandler(AXeZv,"keypress",CFohK)
}
function CFohK(AXeZv,GmTAk)
{
var mfgfe=GmTAk[0]
if(mfgfe==13)
{
var UXVWh=AXeZv+"-search-input";
WA_onSearch(UXVWh)
return false;
}
return true;
}
function WA_declareSearchIndex(uWnSB,Oikgn)
{
document.const_wa_search_js=uWnSB
document.const_wa_search_index_js=Oikgn
}
function WA_onSearch(UXVWh)
{
var vPLjt=document.getElementById(UXVWh);
if(document.wa_search_js_loaded==true)
{
WA_openSearchDialog(vPLjt,document.const_wa_search_index_js)
}
else
{
WA_Dialog.progress();
SuWQa(vPLjt)
}
}
function JDdfS(GmTAk)
{
document.wa_search_js_loaded=true
WA_openSearchDialog(GmTAk[0],document.const_wa_search_index_js)
}
function SuWQa(vPLjt_field)
{
WA_loadScript(document.const_wa_search_js,JDdfS,[vPLjt_field])
}
function wCjPE(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 wCjPE(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(AXeZv)
{
var KBHmD=document.wa_global_menu_declaration[AXeZv]
WA_bg(AXeZv,KBHmD.root_lx,KBHmD.root_ly,KBHmD.root_corner,KBHmD.root_border,KBHmD.root_col_border,[KBHmD.root_bg],false,0)
var REBot=document.getElementById(KBHmD.id)
if(!REBot)return;
var c=REBot.getContext('2d');
c.lineWidth=1
c.strokeStyle=KBHmD.root_col_separator
var LpVMl=0.5;

var CEoLu=KBHmD.root_sizes.length
if(KBHmD.root_extend==false)
{
CEoLu--;
}
var WZlQJ=3;
for(var i=0;i<CEoLu;i++)
{
var qfNcU=KBHmD.root_sizes[i] 

c.beginPath();
if(KBHmD.root_vertical==false)
{
LpVMl+=(qfNcU-1)
c.moveTo(LpVMl,WZlQJ)
c.lineTo(LpVMl,KBHmD.root_ly-WZlQJ)
}
else
{
LpVMl+=(qfNcU)
c.moveTo(WZlQJ,LpVMl-1,0)
c.lineTo(KBHmD.root_lx-WZlQJ,LpVMl-1)
}
c.closePath();
c.stroke()
}
}
function WA_declare_menu(AXeZv,KBHmD)
{
if(!document.wa_global_menu_declaration)document.wa_global_menu_declaration=new Array();
KBHmD.id=AXeZv
document.wa_global_menu_declaration[AXeZv]=KBHmD
WA_bg_menu(AXeZv)
}
function WA_declareMarket(AXeZv,ZBHGG_market,AXeZv_modif)
{
if(typeof(wa_global_market.markets[AXeZv])=="undefined")
{
var o=new Array();
o.src_folder=ZBHGG_market
o.id_modif=AXeZv_modif 

o.id=AXeZv
wa_global_market.markets[AXeZv]=o;
}
}
function WA_button_market_declare(AXeZv,jRhVw)
{
if(!document.wa_global_button_market_declaration)document.wa_global_button_market_declaration=new Array();
document.wa_global_button_market_declaration[AXeZv]=jRhVw
}
function FvDfJ(c,img,vIOYK,siHsO,CsiqZ,Ocjjl,lICnZ,NToIh,wxXeC)
{
c.globalAlpha=NToIh
if(wxXeC) c.clearRect(0,0,CsiqZ,Ocjjl) 
if(NToIh==0)return;
if(lICnZ)
{
c.drawImage(img,lICnZ.x,lICnZ.y,lICnZ.width,lICnZ.height,vIOYK,siHsO,CsiqZ,Ocjjl)
}
else
{
c.drawImage(img,vIOYK,siHsO,CsiqZ,Ocjjl)
}
}
function WA_drawImage(id,tWIoB,vIOYK,siHsO,CsiqZ,Ocjjl,lICnZ,NToIh,wxXeC)
{
if(wxXeC==undefined)wxXeC=true;
if(NToIh==undefined)NToIh=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==tWIoB)
{
FvDfJ(c,c.cLmgY,vIOYK,siHsO,CsiqZ,Ocjjl,lICnZ,NToIh,wxXeC)
return;
}
var img=new Image();
img.EVkxp=el.EVkxp
img.onload=function()
{
c.old_src=tWIoB
c.cLmgY=this;
FvDfJ(c,this,vIOYK,siHsO,CsiqZ,Ocjjl,lICnZ,NToIh,wxXeC)
}
img.src=tWIoB;
}

-->
