<!--

function Delegate(){}
Delegate.create=function(o,f){
var awJIU=new Array();
var MmbnR=arguments.length;
for(var i=2;i<MmbnR;i++) awJIU[i-2]=arguments[i];
return function(){
var UMMFF=[].concat(arguments,awJIU);
f.apply(o,UMMFF);
}
}
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.ApvVm=0;
t.aQOwR=0;
t.WghjC=0;
t.CcmJi=0;
t.ddAKJ=0;
t.BTufX=0;
t.HZWAv=false;
t.name='';
t.suffixe='';
t.CrnPg=new Array();
t.setTime=function(t){
this.prevTime=this.aQOwR;
if(t>this.getDuration()){
if(this.looping){
this.rewind(t-this.ApvVm);
this.update();
this.cGBKE('onMotionLooped',{target:this,type:'onMotionLooped'});
}else{
this.aQOwR=this.ApvVm;
this.update();
this.stop();
this.cGBKE('onMotionFinished',{target:this,type:'onMotionFinished'});
}
}else if(t<0){
this.rewind();
this.update();
}else{
this.aQOwR=t;
this.update();
}
}
t.isRunning=function(){
return this.HZWAv;
}
t.getTime=function(){
return this.aQOwR;
}
t.setDuration=function(d){
this.ApvVm=(d==null||d<=0)?100000:d;
}
t.getDuration=function(){
return this.ApvVm;
}
t.setPosition=function(p){
this.prevPos=this.WghjC;
var a=this.suffixe!=''?this.suffixe:'';
this.obj[this.prop]=Math.round(p)+a;
this.WghjC=p;
this.cGBKE('onMotionChanged',{target:this,type:'onMotionChanged'});
}
t.getPosition=function(t){
if(t==undefined) t=this.aQOwR;
return this.func(t,this.begin,this.change,this.ApvVm);
};
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.CrnPg=new Array();
this.addListener(this);
if(suffixe) this.suffixe=suffixe;
this.obj=obj;
this.prop=prop;
this.begin=begin;
this.WghjC=begin;
this.setDuration(duration);
if(func!=null&&func!=''){
this.func=func;
}
this.setFinish(finish);
}
t.start=function(){
this.rewind();
this.startEnterFrame();
this.cGBKE('onMotionStarted',{target:this,type:'onMotionStarted'});
}
t.rewind=function(t){
this.stop();
this.aQOwR=(t==undefined)?0:t;
this.fixTime();
this.update();
}
t.fforward=function(){
this.aQOwR=this.ApvVm;
this.fixTime();
this.update();
}
t.update=function(){
this.setPosition(this.getPosition(this.aQOwR));
}
t.startEnterFrame=function(){
this.stopEnterFrame();
this.HZWAv=true;
this.onEnterFrame();
}
t.onEnterFrame=function(){
if(this.HZWAv){
this.nextFrame();
wa_timeout(Delegate.create(this,this.onEnterFrame),0);
}
}
t.nextFrame=function(){
this.setTime((this.getTimer()-this.ddAKJ)/1000);
}
t.stop=function(){
this.stopEnterFrame();
this.cGBKE('onMotionStopped',{target:this,type:'onMotionStopped'});
}
t.stopEnterFrame=function(){
this.HZWAv=false;
}
t.continueTo=function(finish,duration){
this.begin=this.WghjC;
this.setFinish(finish);
if(this.ApvVm!=undefined)
this.setDuration(duration);
this.start();
}
t.resume=function(){
this.fixTime();
this.startEnterFrame();
this.cGBKE('onMotionResumed',{target:this,type:'onMotionResumed'});
}
t.yoyo=function(){
this.continueTo(this.begin,this.aQOwR);
}
t.addListener=function(o){
this.removeListener(o);
return this.CrnPg.push(o);
}
t.removeListener=function(o){
var a=this.CrnPg;
var i=a.length;
while(i--){
if(a[i]==o){
a.splice(i,1);
return true;
}
}
return false;
}
t.cGBKE=function(){
var arr=new Array();
for(var i=0;i<arguments.length;i++){
arr.push(arguments[i])
}
var e=arr.shift();
var a=this.CrnPg;
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.ddAKJ=this.getTimer()-this.aQOwR*1000;
}
t.getTimer=function(){
return new Date().getTime()-this.aQOwR;
}
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,LpxvR,dMnXk,ApvVm){
this.targetObject=obj;
this.init(new Object(),'a',func,LpxvR,dMnXk,ApvVm);
this.onMotionChanged=function(evt){
var v=evt.target.WghjC;
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(VemIV,fbguX,nLlLB)
{
return "<canvas id='"+VemIV+"' width='"+fbguX+"' height='"+nLlLB+"'></canvas>"
}
function WA_canvas(VemIV,fbguX,nLlLB)
{
document.write(html_canvas(VemIV,fbguX,nLlLB))
}
function JFqUE(pqwAV,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;
pqwAV.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;
pqwAV.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;
pqwAV.quadraticCurveTo(cx,cy,px,py);
}
}
function gJirJ(c,x,y,lx,ly,arc,clowckwise)
{
c.beginPath()
AnJqB(c,x,y,lx,ly,arc,clowckwise)
}
function AnJqB(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 bJZKW()
{
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 DVpJb(lx,ly,parent,id_suffixe)
{
var SRxZK=document.createElement('canvas');SRxZK.width=lx;SRxZK.height=ly;
return SRxZK;
}
function nXMwr(c,Dumwb)
{
c.shadowOffsetX=2;c.shadowOffsetY=2;c.shadowBlur=4;
}
function WA_over_img_html(WXuXX,GCbrR,mdWfF)
{
if(!WXuXX.src)
{
var AwGSw=WXuXX.getElementsByTagName("IMG")
if(AwGSw.length==1)WXuXX=AwGSw[0]
}
if(WXuXX.src1==undefined)
{
WXuXX.src1=WXuXX.src;
WXuXX.src2=GCbrR;
}
if(mdWfF)
{
WXuXX.src=WXuXX.src2;
}
else
{
WXuXX.src=WXuXX.src1;
}
}
function WA_over_img(id,mdWfF)
{

var el=document.getElementById(id) 

var WXuXX=(mdWfF)?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,[WXuXX,WXuXX],el.wa_shadow,el.wa_rot)
}
function WA_img(id,lx,ly,arc,NqpXd,bord_col,s_img,shadow,rot)
{
var el=document.getElementById(id)
var c=el.getContext('2d');
var mvoTx=(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=NqpXd
el.wa_bord_col=bord_col
el.wa_s_img=s_img
el.wa_shadow=shadow
el.wa_rot=rot
c.translate(mvoTx,mvoTx)
}
var SnpNo_img=document.getElementById(id+"-cache")
SnpNo_img.onload=function()
{
c.clearRect(0,0,lx+2*mvoTx,ly+2*mvoTx)
var arc2=arc-NqpXd;
if(arc2<0)arc2=0;
if(bJZKW()==false)
{
if(shadow) pXiHh(c,0,0,lx,ly,arc,false,rot) 
this.width=lx-2*NqpXd
this.height=ly-2*NqpXd 
if(navigator.userAgent.match(/Firefox/i))
{
var c2=c
if(NqpXd>0)
{
c2.fillStyle=bord_col;
gJirJ(c2,0,0,lx,ly,arc)
AnJqB(c2,NqpXd,NqpXd,lx-2*NqpXd,ly-2*NqpXd,arc2,true)
c2.fill()
}
gJirJ(c2,NqpXd,NqpXd,lx-2*NqpXd,ly-2*NqpXd,arc2)
c2.clip()
c2.drawImage(this,NqpXd,NqpXd,lx-2*NqpXd,ly-2*NqpXd);
}
else
{
var YrBUG=c.createPattern(this,'no-repeat');
c.fillStyle=YrBUG;
c.beginPath() 
gJirJ(c,NqpXd,NqpXd,lx-2*NqpXd,ly-2*NqpXd,arc2)
c.translate(NqpXd,NqpXd)
c.fill()
c.translate(-NqpXd,-NqpXd)
if(NqpXd>0)
{
c.fillStyle=bord_col;
gJirJ(c,0,0,lx,ly,arc)
AnJqB(c,NqpXd,NqpXd,lx-2*NqpXd,ly-2*NqpXd,arc2,true)
c.fill()
}
}
}
else
{
var canv2=DVpJb(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
if(NqpXd>0)
{
c2.fillStyle=bord_col;
gJirJ(c2,0,0,lx,ly,arc)
AnJqB(c2,NqpXd,NqpXd,lx-2*NqpXd,ly-2*NqpXd,arc2,true)
c2.fill()
}
gJirJ(c2,NqpXd,NqpXd,lx-2*NqpXd,ly-2*NqpXd,arc2)
c2.clip()
c2.drawImage(this,NqpXd,NqpXd,lx-2*NqpXd,ly-2*NqpXd);
if(shadow) nXMwr(c,rot)
c.drawImage(canv2,0,0);
}
}
SnpNo_img.src=s_img[0];
}
function QGOZx(c,type,lx,ly,corner)
{
if(type==1)
JFqUE(c,0,0,lx,ly)
else
gJirJ(c,0,0,lx,ly,corner)
}
function TDvbI(el,c,type,lx,ly,corner,bg,jpFnD,rot)
{
if(bJZKW()==false)
{
c.fillStyle=bg;
QGOZx(c,type,lx,ly,corner)
c.fill()
}
else
{
var canv2=DVpJb(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.fillStyle=bg;
QGOZx(c2,type,lx,ly,corner)
c2.fill()
if(jpFnD) nXMwr(c,rot)
c.drawImage(canv2,0,0);
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
}
}
function LUVEK(c,type,lx,ly,ZJwrw,bg,ZFEMG,Vxeef_glow)
{
if(ZFEMG)
{
var x1=ZFEMG[0];var y1=ZFEMG[1];var lx1=ZFEMG[2];var ly1=ZFEMG[3];var npYno=ZFEMG[4];
var crHBv=c.createLinearGradient(x1,y1,x1,y1+ly1);
crHBv.addColorStop(0,"rgba(255,255,255,0.7)");crHBv.addColorStop(1,"rgba(255,255,255,0.1)");
c.fillStyle=crHBv;
if(type==1) JFqUE(c,x1,y1,lx1,ly1)
else
gJirJ(c,x1,y1,lx1,ly1,npYno)
c.fill()
}
if(Vxeef_glow)
{
var x2=Vxeef_glow[0];var y2=Vxeef_glow[1];var lx2=Vxeef_glow[2];var ly2=Vxeef_glow[3];
var ZjaGB=Vxeef_glow[4];
var DqhZC_glow=new RGBColor(Vxeef_glow[5]);
DqhZC_glow.a=0;
var col1=Vxeef_glow[5];
var col2=DqhZC_glow.toRGB();
var nWfWI=c.createLinearGradient(x2,y2,x2,y2+ly2);
nWfWI.addColorStop(0,col2);
nWfWI.addColorStop(0.2,col2);
nWfWI.addColorStop(1,col1);
c.fillStyle=nWfWI;
if(type==1) JFqUE(c,x2,y2,lx2,ly2)
else
gJirJ(c,x2,y2,lx2,ly2,ZjaGB)
c.fill()
}
}
function CAuIZ(OCCoY,VemIV,ZKVsI,fbguX,nLlLB,ZJwrw,cjmER,ZFEMG,Vxeef_glow,jpFnD,Dumwb)
{
OCCoY.VemIV=VemIV;OCCoY.ZKVsI=ZKVsI;
OCCoY.fbguX=fbguX;OCCoY.nLlLB=nLlLB;
OCCoY.ZJwrw=ZJwrw;OCCoY.cjmER=cjmER,OCCoY.ZFEMG=ZFEMG;
OCCoY.Vxeef_glow=Vxeef_glow;OCCoY.jpFnD=jpFnD;OCCoY.Dumwb=Dumwb;
}
function WA_but_over(VemIV,cjmER_over,DqhZC_glow)
{
var unbYJ=document.getElementById(VemIV) 
if(unbYJ&&unbYJ.kUruo)
with(unbYJ.kUruo)
{
var Vxeef_glow_over;
if(Vxeef_glow&&DqhZC_glow)
{
Vxeef_glow_over=new Array();
for(var HPFcX=0;HPFcX<Vxeef_glow.length;HPFcX++)Vxeef_glow_over[HPFcX]=Vxeef_glow[HPFcX];
Vxeef_glow_over[5]=DqhZC_glow;
}
WA_but(VemIV,ZKVsI,fbguX,nLlLB,ZJwrw,cjmER_over,ZFEMG,Vxeef_glow_over,jpFnD,Dumwb);
}
var guXqc_over0=document.getElementById(VemIV+"-div0")
if(guXqc_over0)html_SetVisibility(guXqc_over0,false);
var SGekb=document.getElementById(VemIV+"-div1")
if(SGekb)html_SetVisibility(SGekb,true);
}
function WA_but_out(VemIV)
{
var unbYJ=document.getElementById(VemIV)
with(unbYJ.kUruo)
{
WA_but(VemIV,ZKVsI,fbguX,nLlLB,ZJwrw,cjmER,ZFEMG,Vxeef_glow,jpFnD,Dumwb);
}
var guXqc_over0=document.getElementById(VemIV+"-div0")
if(guXqc_over0)html_SetVisibility(guXqc_over0,true);
var SGekb=document.getElementById(VemIV+"-div1")
if(SGekb)html_SetVisibility(SGekb,false);
}
function WA_but(id,type,lx,ly,corner,bg,top_light,s_glow,jpFnD,rot)
{
var el=document.getElementById(id)
if(el.kUruo==undefined)
{
el.kUruo=new Array();
CAuIZ(el.kUruo,id,type,lx,ly,corner,bg,top_light,s_glow,jpFnD,rot);
}
var c=el.getContext('2d');
var mvoTx=0;
if(jpFnD)mvoTx=6 
c.fillStyle="#000000";
c.fillRect(0,0,lx+2*mvoTx,ly+2*mvoTx) 
c.clearRect(0,0,lx+2*mvoTx,ly+2*mvoTx) 
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(bJZKW()==false)
{
c.translate(mvoTx,mvoTx)
img.width=lx
img.height=ly 
if(jpFnD)
pXiHh(c,0,0,lx,ly,corner,(type==1),rot)
if(navigator.userAgent.match(/Firefox/i))
{
c.beginPath()
QGOZx(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()
QGOZx(c,type,lx,ly,corner)
c.fill()
}
LUVEK(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-mvoTx,-mvoTx)
}
else
{
var canv2=DVpJb(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.beginPath()
QGOZx(c2,type,lx,ly,corner)
c2.clip()
c2.drawImage(img,0,0,lx,ly);
LUVEK(c2,type,lx,ly,corner,bg,top_light,s_glow)
if(jpFnD) nXMwr(c,rot) 
c.drawImage(canv2,mvoTx,mvoTx);
}
}
img.src=bg2;
return;
}
c.translate(mvoTx,mvoTx) 
if(jpFnD&&(bJZKW()==false))
{
var luTIm=new RGBColor(bg);
if(luTIm.a>0)
{
pXiHh(c,0,0,lx,ly,corner,(type==1),rot)
}
}
TDvbI(el,c,type,lx,ly,corner,bg2,jpFnD,rot)
LUVEK(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-mvoTx,-mvoTx)
}
function pXiHh(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) JFqUE(c,x,y,lx,ly);else gJirJ(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 FluPK(id,x,y,lx,ly,arc,NqpXd,bord_col,bg,shadow,rot,rRcGl,JteEf)
{
if(JteEf==undefined)JteEf=true;
var el=document.getElementById(id)
var c=el.getContext('2d');
if(rRcGl==undefined)rRcGl=1.0;
var mvoTx=0;
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
if(shadow)
{
mvoTx=6;
}
if(JteEf) c.clearRect(0,0,el.width,el.height)
c.globalAlpha=rRcGl 
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 aRBLw=bg1.split(";");
var x1=parseFloat(aRBLw[0]);
var y1=parseFloat(aRBLw[1]);
var x2=parseFloat(aRBLw[2]);
var y2=parseFloat(aRBLw[3]);
var col1=aRBLw[4];
var col2=aRBLw[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-NqpXd;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
{
if(shadow) pXiHh(c,mvoTx,mvoTx,lx,ly,arc,false,rot)
}
if(NqpXd>0)
{
c2.fillStyle=bord_col;
gJirJ(c2,x,y,lx,ly,arc)
AnJqB(c2,x+NqpXd,y+NqpXd,lx-2*NqpXd,ly-2*NqpXd,arc2,true)
c2.fill()
}


c2.fillStyle=fill_obj 
gJirJ(c2,x+NqpXd,y+NqpXd,lx-2*NqpXd,ly-2*NqpXd,arc2)
c2.fill();
}
function wAYMF(ADmON,mRTkA,PMeNE)
{
return new Point(Math.round(ADmON*Math.cos(PMeNE)-mRTkA*Math.sin(PMeNE)),Math.round(ADmON*Math.sin(PMeNE)+mRTkA*Math.cos(PMeNE)))
}
function WiYaO(c,x,y,lx,ly,arc,clowckwise,Dumwb)
{
c.beginPath()
tMGjX(c,x,y,lx,ly,arc,clowckwise,Dumwb)
}
function tMGjX(c,x,y,lx,ly,arc,clowckwise,Dumwb)
{
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 SZubB=[[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=Dumwb*2*Math.PI/360
for(var n=0;n<SZubB.length;n++)
{
var MleSp=SZubB[n][0]
var tIinT=SZubB[n][1]
SZubB[n][0]=MleSp*Math.cos(theta)-tIinT*Math.sin(theta);
SZubB[n][1]=MleSp*Math.sin(theta)+tIinT*Math.cos(theta);
}
var n=0;
c.moveTo(SZubB[n][0],SZubB[n++][1]);
c.lineTo(SZubB[n][0],SZubB[n++][1]);
c.quadraticCurveTo(SZubB[n][0],SZubB[n++][1],SZubB[n][0],SZubB[n++][1]);
c.lineTo(SZubB[n][0],SZubB[n++][1]);
c.quadraticCurveTo(SZubB[n][0],SZubB[n++][1],SZubB[n][0],SZubB[n++][1]);
c.lineTo(SZubB[n][0],SZubB[n++][1]);
c.quadraticCurveTo(SZubB[n][0],SZubB[n++][1],SZubB[n][0],SZubB[n++][1]);
c.lineTo(SZubB[n][0],SZubB[n++][1]);
c.quadraticCurveTo(SZubB[n][0],SZubB[n++][1],SZubB[n][0],SZubB[n++][1]);
}
function Esmfc(a,b,x,y)
{
return(a*x-y+b)/(Math.sqrt(1+a*a))
}
function iQEDB(new_a1,new_b1,BgpLZ,multi)
{
var d=0;
for(var i=0;i<BgpLZ.length;i++)
{
var Tmagk=BgpLZ[i]
var d1=Esmfc(new_a1,new_b1,Tmagk.x,Tmagk.y)
if(multi<0)
{
if(d1<0) d=Math.max(d,-d1);
}
else
{
if(d1>0) d=Math.max(d,d1);
}
}
return d;
}
function KHkZd(o1,o2)
{
if(o1<o2) return-1
if(o1>o2) return 1
return 0
}
function pAqHv(c,lx,ly,bg1)
{
var fill_obj=false;
var VOoUF=false;
var aRxcA=false;
var BgpLZ=false
if(bg1.substring(0,1)=="(")
{
bg1=bg1.substring(1);
bg1=bg1.substring(0,bg1.length-1)
var aRBLw=bg1.split(";");
var PJAii=new Point(parseFloat(aRBLw[0]),parseFloat(aRBLw[1]));
var RGCUO=new Point(parseFloat(aRBLw[2]),parseFloat(aRBLw[3]));
VOoUF=PJAii.clone()
aRxcA=RGCUO.clone()
var col1=aRBLw[4];
var col2=aRBLw[5];
var grad=c.createLinearGradient(VOoUF.x,VOoUF.y,aRxcA.x,aRxcA.y);
if(isMSIE())
{
VOoUF=PJAii.clone()
aRxcA=RGCUO.clone() 
var crHBv=0;
var nWfWI=1;
{
BgpLZ=[{x:0,y:0},{x:lx,y:0},{x:lx,y:ly},{x:0,y:ly}]
var d1=0;
var d2=0;
var a=(aRxcA.y-VOoUF.y)/(aRxcA.x-VOoUF.x);
var b=VOoUF.y-a*VOoUF.x;
var diff=1;
if(a==Infinity)
{
d1=(VOoUF.y)
d2=(ly-aRxcA.y)
}
else
if(a==0)
{
d1=(VOoUF.x)
d2=(lx-aRxcA.x)
}
else
{
var new_a1=-1/a;
var new_b1=VOoUF.y-new_a1*VOoUF.x;
d1=iQEDB(new_a1,new_b1,BgpLZ,-1)
var new_b2=aRxcA.y-new_a1*aRxcA.x;
d2=iQEDB(new_a1,new_b2,BgpLZ,1)
if(new_a1<0)diff=-1;
}
var d=Math.sqrt(Math.pow(aRxcA.x-VOoUF.x,2)+Math.pow(aRxcA.y-VOoUF.y,2))
var total=(d1+d+d2)
crHBv=d1/total;
nWfWI=(d1+d)/total;
var pt_prod0=new Point(aRxcA.x-VOoUF.x,aRxcA.y-VOoUF.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)
{
crHBv=d2/total;
nWfWI=(d2+d)/total;
}
}
grad.addColorStop(crHBv,col1);
grad.addColorStop(nWfWI,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,NqpXd,bord_col,bg,shadow,rot,QlrqJ,AnsjT,rRcGl,JteEf)
{


var theta=rot*2*Math.PI/360 
if(JteEf==undefined)JteEf=true;
if(rRcGl==undefined)rRcGl=1.0;
var el=document.getElementById(id)
if(!el)return
var c=el.getContext('2d');
var mvoTx=(el.width-lx)/2;
if(JteEf) c.clearRect(0,0,el.width,el.height)
var x_rect0=mvoTx;
var y_rect0=mvoTx;
var bg1=bg[0]
var fill_obj=false;
var VOoUF=false;
var aRxcA=false;
var BgpLZ=false
fill_obj=pAqHv(c,lx,ly,bg1) 
if(rRcGl==undefined)rRcGl=1.0;
var arc2=arc-NqpXd;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
if(shadow)
{
c2.translate(QlrqJ+6,AnsjT+6)
}
else
{
c2.translate(QlrqJ,AnsjT)
}
c2.fillStyle=fill_obj;
WiYaO(c2,NqpXd,NqpXd,lx-2*NqpXd,ly-2*NqpXd,arc2,false,rot)
c2.fill();
}
function WA_bg(id,lx,ly,arc,NqpXd,bord_col,bg,shadow,rot,rRcGl,JteEf)
{

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

var fill_obj=pAqHv(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()
cHdLp(c,el,lx,ly,arc,NqpXd,bord_col,ptrn,shadow,rot,rRcGl)
}
img.src=bg2;
}
else
{
cHdLp(c,el,lx,ly,arc,NqpXd,bord_col,fill_obj,shadow,rot,rRcGl)
}
}
function cHdLp(c,el,lx,ly,arc,NqpXd,bord_col,fill_obj,shadow,rot,rRcGl)
{
if(rRcGl==undefined)rRcGl=1.0;
var arc2=arc-NqpXd;
if(arc2<0)arc2=0
var mvoTx=(el.width-lx)/2;
var x_rect0=mvoTx;
var y_rect0=mvoTx;
var canv2=false;
var c2=c;
c.globalAlpha=rRcGl
if(bJZKW()==true)
{
canv2=DVpJb(lx,ly);
c2=canv2.getContext('2d');
c2.globalAlpha=rRcGl
}
else
{
c2.translate(mvoTx,mvoTx)
if(shadow) pXiHh(c,0,0,lx,ly,arc,false,rot)
}
if(NqpXd>0)
{
c2.fillStyle=bord_col;
gJirJ(c2,0,0,lx,ly,arc)
AnJqB(c2,NqpXd,NqpXd,lx-2*NqpXd,ly-2*NqpXd,arc2,true)
c2.fill()
}
c2.fillStyle=fill_obj;
gJirJ(c2,NqpXd,NqpXd,lx-2*NqpXd,ly-2*NqpXd,arc2)
c2.fill();
if(bJZKW()==true)
{
if(shadow) nXMwr(c,rot)
c.drawImage(canv2,mvoTx,mvoTx);
}
else
{
c2.translate(-mvoTx,-mvoTx)
}
}
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(Vxeef){return(this.width>Vxeef.width)&&(this.height>Vxeef.height)}
this.scale=function(iaxOp,IJuKa)
{
if(!IJuKa)IJuKa=false
var oGxkK=this;
var bDRVq=oGxkK.width
var NTgbg=oGxkK.height
var p1=bDRVq*iaxOp.height;
var p2=iaxOp.width*NTgbg;
var r1=bDRVq/NTgbg;
var r2=NTgbg/bDRVq;
var newSize1=new Size(iaxOp.height*r1,iaxOp.height);
var newSize2=new Size(iaxOp.width,iaxOp.width*r2);
if(p2>p1)
{
if((IJuKa==true)||((newSize1.width<=oGxkK.width)&&(newSize1.height<=oGxkK.height)))
{
oGxkK.width=Math.round(newSize1.width);
oGxkK.height=Math.round(newSize1.height);
}
}
else
{
if((IJuKa==true)||((newSize2.width<=oGxkK.width)&&(newSize2.height<=oGxkK.height)))
{
oGxkK.width=Math.round(newSize2.width);
oGxkK.height=Math.round(newSize2.height);
}
}
this.width=oGxkK.width;
this.height=oGxkK.height;
return true;
}
}
function Point(p_x,p_y){this.x=p_x;this.y=p_y;
this.translate=function(ADmON,mRTkA){this.x+=ADmON;this.y+=mRTkA;}
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(reJJa){return(this.x==reJJa.x)&&(this.y==reJJa.y)&&(this.width==reJJa.width)&&(this.height==reJJa.height);}
this.copy=function(reJJa){this.x=reJJa.x;this.y=reJJa.y;this.width=reJJa.width;this.height=reJJa.height;}
this.translate=function(ADmON,mRTkA){this.x+=ADmON;this.y+=mRTkA;}
}
function html_getLayer(reJJa)
{
if(typeof(reJJa)=="string")return document.getElementById(reJJa);
return reJJa;
}
function html_SetPosition(reJJa,ADmON,mRTkA){
reJJa=html_getLayer(reJJa);
reJJa.style.left=ADmON+"px";reJJa.style.top=mRTkA+"px";
}
function html_SetSize(XQZEV,fbguX,nLlLB){
reJJa=html_getLayer(XQZEV);
reJJa.style.width=fbguX+"px";reJJa.style.height=nLlLB+"px";
}
function html_SetRect(reJJa,xWsDW){html_SetGeometry(reJJa,xWsDW.x,xWsDW.y,xWsDW.width,xWsDW.height);}
function html_SetGeometry(reJJa,ADmON,mRTkA,fbguX,nLlLB){html_SetPosition(reJJa,ADmON,mRTkA);html_SetSize(reJJa,fbguX,nLlLB);}
function html_SetVisibility(reJJa,TlHDA){reJJa=html_getLayer(reJJa);reJJa.style.visibility=(TlHDA)?"visible":"hidden";}
function html_SetDisplay(reJJa,TlHDA){reJJa=html_getLayer(reJJa);reJJa.style.display=(TlHDA)?"block":"none";}
function html_SetCanvasSize(reJJa,fbguX,nLlLB){reJJa=html_getLayer(reJJa);reJJa.width=fbguX;reJJa.height=nLlLB;}
function html_writeContent(reJJa,Vxeef){reJJa=html_getLayer(reJJa);reJJa.innerHTML=Vxeef;}
function html_SetOpacity(reJJa,awJIU)
{
reJJa=html_getLayer(reJJa);
reJJa.style['opacity']=awJIU;
reJJa.style['-moz-opacity']=awJIU;
reJJa.style.filter=(awJIU==1)?'':'alpha(opacity='+(awJIU*100)+')';
}
var YIuqw=[
{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<YIuqw.length;i++)
{
var array2=YIuqw[i].l;
for(var i2=0;i2<array2.length;i2++)
{
var reg=new RegExp(array2[i2],"g");
res=res.replace(reg,YIuqw[i].acc)
}
}
return res;
}
function trimString(str)
{
return str.replace(/^\s*|\s*$/g,"");
}
function IsNumeric(nYKnh)
{
var OaoOF="0123456789.";var NLuKb=true;var RmOCr;
for(HPFcX=0;HPFcX<nYKnh.length&&NLuKb==true;HPFcX++){RmOCr=nYKnh.charAt(HPFcX);if(OaoOF.indexOf(RmOCr)==-1) NLuKb=false;}
return NLuKb;
}
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(YxwfD)
{
var TvuuF=YxwfD*60;
var cEVBt=new Date();
var COQBj=0;
COQBj+=cEVBt.getYear()*12*31*24*60*60;
COQBj+=cEVBt.getMonth()*31*24*60*60;
COQBj+=cEVBt.getDate()*24*60*60;
COQBj+=cEVBt.getHours()*60*60;
COQBj+=cEVBt.getMinutes()*60;
COQBj+=cEVBt.getSeconds();
if(TvuuF!=0)
{
COQBj=Math.floor(COQBj/TvuuF)*TvuuF
}
return "-"+COQBj;
}
function html_findPos(obj)
{
var awJIU=EihvF(obj)
return new Point(awJIU[0],awJIU[1])
}
function EihvF(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(KuWli,fbguX,nLlLB)
{
document.write("<input id='"+KuWli+"' type=search results=0 placeholder='' style='width:"+fbguX+"px;height:"+nLlLB+"px;'>")
}
function csmkE()
{
var AwGSw=document.getElementsByTagName("A");
for(var HPFcX=0;HPFcX<AwGSw.length;HPFcX++)
{
var reJJa=AwGSw[HPFcX];
if(reJJa.onmouseover)reJJa.onmouseover=null;
if(reJJa.onmouseout)reJJa.onmouseout=null;
}
}
function TtBqw()
{
for(var NYvUG in document.wa_global_list_element)
{
var VemIV=document.wa_global_list_element[NYvUG]
var unbYJ=document.getElementById(VemIV)
unbYJ.onclick=function()
{
WA_focus(this)
}
}
}
function WA_declare(VemIV)
{
if(!document.wa_global_list_element)
{
document.wa_global_list_element=new Array();;
}
document.wa_global_list_element.push(VemIV)
}
function nqcOZ()
{
var OUBXQ=window.location.search;
if(OUBXQ.substr(0,1)=="?")OUBXQ=OUBXQ.substr(1);
if(OUBXQ.length==0)return;
var ptgfH=new Array();
var IZUcT=OUBXQ.split("&");
for(var i=0;i<IZUcT.length;i++)
{
var OWZPn=IZUcT[i].split("=");ptgfH[OWZPn[0]]=OWZPn[1];
}
var Vxeef_info=ptgfH["crbst_info"];
if(!Vxeef_info)return;
var sgLRn=new Array();
sgLRn.m_unid=Vxeef_info;
sgLRn.m_index_item=-1;
var TCqUn=Vxeef_info.indexOf("-");
if(TCqUn!=-1)
{
sgLRn.m_unid="wa-id-"+Vxeef_info.substring(0,TCqUn);
sgLRn.m_index_item=parseInt(Vxeef_info.substring(TCqUn+1));
}
document.wa_global_query_info=sgLRn;
}
function IS_onload_WA()
{

if(isMSIE8())
{
wa_timeout("IS_onload_ui()",0)
}
else
{
IS_onload_ui()
}
if(isIPhone())
{
csmkE()
}
else
{
TtBqw()
}
nqcOZ();

ZFLxv()
}
function ZFLxv()
{
var NGMIX=0;
var iqIEC=document.webaca_banner_height;
if(document.webaca_page_is_centered)
{
var EMIbi=getWindowSize().width
var xOKOU=document.webaca_width_page
if(EMIbi>xOKOU)NGMIX=(EMIbi-xOKOU)/2;
}
document.body.style.backgroundPosition=NGMIX+"px "+iqIEC+"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 rVNva=CONST_WA_COUNTRIES.codes[n]
var msfZa=CONST_WA_COUNTRIES.labels[n]
Translator.m_countries[rVNva]=msfZa
}
}
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(VemIV,qgAVh,jpFnD)
{
this.VemIV=VemIV;
this.qgAVh=qgAVh
this.jpFnD=jpFnD;
this.hbcjK=this.VemIV+"-div"
this.GDfSJ=this.VemIV+"-canvas"
this.jcNWk=new Rect(0,0,0,0)
this.UjjhZ=false;
this.AvRBJ=false;
this.mvoTx=6;
this.otHsE=false;
this.CsJVM=false;
this.VRmgj=false;
this.qwwFL="";
this.shadow=function()
{
return this.jpFnD;
}
this.marginShadow=function()
{
return this.mvoTx;
}
this.rect=function()
{
return this.jcNWk;
}
this.canvasId=function()
{
return this.GDfSJ;
}
this.divId=function()
{
return this.hbcjK;
}
this.opacity=function()
{
return this.ckUen;
}
this.img_clip=function()
{
return this.CsJVM;
}
this.img_src=function()
{
return this.otHsE;
}
this.toHtml=function()
{
var Vxeef=""
Vxeef+="<div id='"+this.hbcjK+"' style=\"";
Vxeef+="position:absolute;";
if(this.qwwFL.length>0)
{
Vxeef+="cursor:pointer;";
}
if(this.rect.x>0)Vxeef+="left:"+this.rect.x+"px;";
if(this.rect.y>0)Vxeef+="top:"+this.rect.y+"px;";
if(this.rect.width>0)Vxeef+="width:"+this.rect.width+"px;";
if(this.rect.height>0)Vxeef+="height:"+this.rect.height+"px;";
if(qgAVh)
Vxeef+="z-index:"+qgAVh+";";
Vxeef+="\" ";
if(this.qwwFL.length>0)
{
Vxeef+="onclick=\""+this.qwwFL+"\" "
}
Vxeef+=">";
if((this.rect.width>0)&&this.shadow())
{
Vxeef+=html_canvas(this.GDfSJ,this.rect.width+2*this.mvoTx,this.rect.height+2*this.mvoTx)+"</div>";
}
else
{
Vxeef+=html_canvas(this.GDfSJ,0,0)+"</div>";
}
return Vxeef
}
this.setImage=function(SWSdT,nCPTu,Dumwb)
{
if(Dumwb==undefined)Dumwb=0;
if((SWSdT==this.otHsE)&&(this.CsJVM&&this.CsJVM.equals(nCPTu))&&(this.VRmgj==Dumwb))
{
return;
}
this.VRmgj=Dumwb;
this.otHsE=SWSdT;
this.CsJVM=nCPTu;
this.YhtxJ()
}
this.registerDynamicCanvas=function()
{
registerDynamicCanvas(this.GDfSJ);
this.AvRBJ=true;
this.setRect(this.jcNWk.x,this.jcNWk.y,this.jcNWk.width,this.jcNWk.height)
}
this.YhtxJ=function()
{
if((this.jcNWk.width>0)&&(this.jcNWk.height>0))
{
this.draw()
}
this.UjjhZ=true
};
this.draw=function(){};
this.setPosition=function(ADmON,mRTkA)
{
this.jcNWk.x=ADmON;this.jcNWk.y=mRTkA;
if(this.AvRBJ==false)return
html_SetPosition(this.hbcjK,this.jcNWk.x,this.jcNWk.y)
if(this.UjjhZ==false)
{
this.YhtxJ()
}
}
this.setOnClick=function(Vxeef)
{
this.qwwFL=Vxeef
}
this.width=function(){return this.jcNWk.width;}
this.height=function(){return this.jcNWk.height;}
this.setSize=function(fbguX,nLlLB)
{
this.jcNWk.width=fbguX;this.jcNWk.height=nLlLB;
var xUpqH=fbguX
var EXYaQ=nLlLB
if(this.jpFnD)
{
xUpqH+=2*this.mvoTx
EXYaQ+=2*this.mvoTx
}
if(this.AvRBJ==false)return
html_SetSize(this.hbcjK,xUpqH,EXYaQ)
html_SetCanvasSize(this.GDfSJ,fbguX,nLlLB)
this.YhtxJ()
}
this.setRect=function(ADmON,mRTkA,fbguX,nLlLB)
{
this.jcNWk.x=ADmON;this.jcNWk.y=mRTkA;this.jcNWk.width=fbguX;this.jcNWk.height=nLlLB;
var xUpqH=fbguX
var EXYaQ=nLlLB
var vgFuZ=ADmON
var HhpZg=mRTkA
if(this.jpFnD)
{
xUpqH+=2*this.mvoTx
EXYaQ+=2*this.mvoTx
vgFuZ-=this.mvoTx
HhpZg-=this.mvoTx
}
if(this.AvRBJ==false)return 
html_SetGeometry(this.hbcjK,vgFuZ,HhpZg,xUpqH,EXYaQ);
html_SetCanvasSize(this.GDfSJ,xUpqH,EXYaQ)
try{this.YhtxJ()}catch(e){
alert(e.message)
}
}
this.setVisible=function(TlHDA)
{
if(this.AvRBJ==false)return
html_SetVisibility(this.hbcjK,TlHDA)
}
this.setOpacity=function(awJIU)
{
this.ckUen=awJIU 
if(this.AvRBJ==false)return
this.YhtxJ()
}
}

function is_onresize()
{
WA_Dialog.resizeUI()
try
{
if(WA_PhotoAlbum_resizeUI)WA_PhotoAlbum_resizeUI()
}
catch(e){}
ZFLxv()
}
function is_onscroll()
{
centerFullPageContainer();
}
function registerDynamicCanvas(id)
{
if(isMSIE())
G_vmlCanvasManager.initElement(document.getElementById(id));
}
function WA_openDialogAction(NYvUG)
{
var XTpKn=WA_Dialog.vmglE;
if(NYvUG==-1){XTpKn.closeWin();return;}
var omRlD=XTpKn.RdTNQ(NYvUG);
if(omRlD[5])
{
omRlD[4].call(omRlD[6],omRlD[5])
}
else
{
omRlD[4](omRlD[5]);
}
}
function WA_Dialog(TlHDA_close_button)
{
this.tsSrn=0;
this.pLEAT=0;
this.iaxOp_win_width=600;
this.iaxOp_win_height=400;
this.rqGmk=new Array();
this.GhjCV="wa-dialog-but-";
this.udXmj=this.GhjCV+"div-";
this.TFmSo=this.GhjCV+"canvas-";
this.BUTTON_HEIGHT=25;
this.MlIVH=CONST_WA_GLOBAL_COLOR_THEME;
this.TlHDA_close_button=TlHDA_close_button;
this.aUERE=6;
this.cWPaJ=function()
{
if(this.TlHDA_close_button==undefined)this.TlHDA_close_button=true;
this.QNxBN();
}
this.resetButtons=function()
{
this.QNxBN();
}
this.idealHeight=function()
{
return this.ovEul
}
this.displayWindowWithAutoResize=function(kRvuo,qxiDl)
{
this.NCkef=false
this.ovEul=kRvuo
this.SvfRm=qxiDl 
this.resetButtons();
qxiDl.call(this)
var l=document.getElementById('wa-dialog-content');
if(this.NCkef==false)
if(l.scrollHeight>200)
{
this.NCkef=true
this.ovEul=l.scrollHeight+150
this.resetButtons();
qxiDl.call(this)
}
}
this.initializeWindow=function(iaxOp_lx,iaxOp_ly)
{
if(WA_Dialog.vmglE)WA_Dialog.vmglE.closeWin()
WA_Dialog.vmglE=this;
this.iaxOp_win_width=iaxOp_lx;
this.iaxOp_win_height=iaxOp_ly;
this.sSfIC()
}
this.progress=function()
{
this.initializeWindow(300,100) 
this.writeContent("<div width=100% align=center><img src='wa_loading.gif'></div>")
}
this.BAHkK=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(msfZa,ZiBPd,SnpNo,fgmeo)
{
var qbpKv=this.rqGmk.length
if(this.TlHDA_close_button==true)
{
qbpKv--;
}
var fbguX=Math.max((msfZa.length*8)*1.2+30,80)
var oGxkK=new Size(fbguX,this.BUTTON_HEIGHT);
this.tprxQ("action_"+qbpKv,qbpKv,msfZa,ZiBPd,oGxkK,SnpNo,fgmeo)
}
this.QNxBN=function()
{
this.rqGmk=new Array();
if(this.TlHDA_close_button)
{
var oGxkK=new Size(120,20);
this.tprxQ("close",-1,Translator.tr("Close")+" - X",null,oGxkK)
}
}
this.tprxQ=function(KOwAN,qbpKv,msfZa,ZiBPd,oGxkK,SnpNo,fgmeo)
{
var omRlD=[KOwAN,oGxkK,qbpKv,msfZa,ZiBPd,SnpNo,fgmeo];
this.rqGmk.push(omRlD);
}
this.writeContent=function(s)
{
var l=document.getElementById('wa-dialog-content');
l.innerHTML=s
}
this.RdTNQ=function(KOwAN)
{
for(var NYvUG=0;NYvUG<this.rqGmk.length;NYvUG++)
{
var omRlD=this.rqGmk[NYvUG];
if((omRlD[0]==KOwAN)||(omRlD[2]+""==KOwAN+""))
return omRlD;
}
return undefined;
}
this.umqur=function(KOwAN)
{
var omRlD=this.RdTNQ(KOwAN);
return omRlD[1]
}
this.pNYgf=function(ueGGB)
{
var omRlD=this.RdTNQ(ueGGB);
var KOwAN=omRlD[0];
var qbpKv=omRlD[2];
var DqhZC_text=this.MlIVH[4]
var DqhZC_bg=this.MlIVH[5]
var DqhZC_glow=this.MlIVH[7]
if(qbpKv==-1)
{
DqhZC_text=this.MlIVH[10]
DqhZC_bg=this.MlIVH[8]
DqhZC_glow=this.MlIVH[11]
}
var opKIk=this.udXmj+KOwAN;
var vHkwv=this.TFmSo+KOwAN;
var oGxkK=this.umqur(ueGGB)
var OWlQN=this.aUERE;
var s=""
s+="<a href='javascript:WA_openDialogAction("+ueGGB+")' ";
var DqhZC=new RGBColor(DqhZC_bg);
var UqQUP=DqhZC.toHsl();
DqhZC.fromHsl(UqQUP[0],UqQUP[1],UqQUP[2]+0.2)
DqhZC_bg=DqhZC.toRGB();
var IbRku_glow=new RGBColor(DqhZC_glow);
var NFqLE=IbRku_glow.toHsl();
IbRku_glow.fromHsl(NFqLE[0],NFqLE[1],NFqLE[2]+0.2)
DqhZC_glow=IbRku_glow.toRGB();
s+="onmouseover=\"WA_but_over('"+vHkwv+"','"+DqhZC_bg+"','"+DqhZC_glow+"')"+"\" ";
s+="onmouseout=\""+"WA_but_out('"+vHkwv+"')"+"\" ";
s+="style='text-decoration:none;'>";
s+="<div id='"+this.udXmj+KOwAN+"' style='position:absolute;cursor:pointer;left:0px;top:0px;height:"+oGxkK.height+"px;width:"+oGxkK.width+"px;' >";
s+="<div style='position:absolute;left:"+(-OWlQN)+"px;top:"+(-OWlQN)+"px;height:"+oGxkK.height+"px;'>"
s+="<canvas id='"+this.TFmSo+KOwAN+"' width="+(oGxkK.width+OWlQN*2)+" height="+(oGxkK.height+OWlQN*2)+" ></canvas>";
s+="</div>"
s+="<div align=center style='position:absolute;left:0px;top:"+(0)+"px;vertical-align:middle;width:100%;height:"+(oGxkK.height)+"px;line-height:"+(oGxkK.height)+"px;font-family:arial;font-size:13px;font-weight:bold;color:"+DqhZC_text+"'>"
s+=omRlD[3];
s+="</div>"
s+="</div>"
s+="</a>"
return s;
}
this.getColorTheme=function(NYvUG)
{
return this.MlIVH[NYvUG];
}
this.AIbSl=function(KOwAN)
{
var omRlD=this.RdTNQ(KOwAN);
var qbpKv=omRlD[2];
var DqhZC_bg=this.MlIVH[5]
var DqhZC_glow=this.MlIVH[7]
var DqhZC_text=this.MlIVH[3]
if(qbpKv==-1)
{
DqhZC_bg=this.MlIVH[8]
DqhZC_glow=this.MlIVH[11]
DqhZC_text=this.MlIVH[10]
}
var rVNva=this.TFmSo+KOwAN;
registerDynamicCanvas(rVNva);
var oGxkK=this.umqur(KOwAN);
var ZJwrw=oGxkK.height*0.25;
var ehRSe=(oGxkK.height-ZJwrw)/2;
var obeJV=(oGxkK.width-2);
var nLlLB_circle_top=ZJwrw*2;
var aRBLw_top=[(oGxkK.width-obeJV)/2,1,obeJV,nLlLB_circle_top,ehRSe];
var fbguX_circle_bottom=oGxkK.width*0.9;
var nLlLB_circle_bottom=oGxkK.height*0.45;
var fMEJc=DqhZC_glow;
var xBPoD=DqhZC_glow;
var PSuvK=nLlLB_circle_bottom/2;
var aRBLw_bottom=[(oGxkK.width-fbguX_circle_bottom)/2,oGxkK.height-nLlLB_circle_bottom-1,fbguX_circle_bottom,nLlLB_circle_bottom,PSuvK,fMEJc,xBPoD];
WA_but(rVNva,0,oGxkK.width,oGxkK.height,ZJwrw,DqhZC_bg,aRBLw_top,aRBLw_bottom,true,0)
}
this.JqMsA=function(KOwAN)
{
var omRlD=this.RdTNQ(KOwAN)
if(omRlD)
{
var rVNva=this.udXmj+omRlD[0];
return document.getElementById(rVNva);
}
return undefined
}
this.sSfIC=function()
{
var l=document.getElementById('wa-dialog-container');
l.style.display="block" 

var s="";
var CeKWV=document.webaca_banner_height
s+="<div  style='position:absolute;left:0px;top:"+CeKWV+"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:"+CeKWV+"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 HPFcX in this.rqGmk)
{
s+=this.pNYgf(this.rqGmk[HPFcX][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.ciODE)
}
this.ciODE=function()
{
registerDynamicCanvas('wa-dialog1');
for(var HPFcX in this.rqGmk)
{
this.AIbSl(this.rqGmk[HPFcX][0])
}
this.IvpKj()
}
this.intern_closeWin=function()
{
var l=document.getElementById('wa-dialog-container');
l.style.display="none"
WA_Dialog.vmglE=false
}
this.closeWin=function()
{
this.intern_closeWin()
}
this.cssText1=function()
{
return "font-family:Arial;font-size:15px;color:"+this.MlIVH[3]+";";
}
this.onCustomKeypress=function(ZeMho)
{
if((this.rqGmk.length==1)&&(ZeMho==13))
{
this.closeWin()
return true;
}
return false;
}
this.onkeypress=function(ZeMho)
{
return this.onCustomKeypress(ZeMho)
}
this.onkeydown=function(ZeMho)
{
if(ZeMho==27)
{
this.closeWin()
return true;
}
return this.onCustomKeypress(ZeMho) 
}
this.customUpdate=function(){}
this.IvpKj=function()
{
var fbguX_page=document.webaca_width_page;
var nLlLB_page=document.webaca_height_page;
var ntgZT=getWindowSize().width
var nLlLB_window=getWindowSize().height 

this.tsSrn=Math.min(ntgZT*0.9,this.iaxOp_win_width)
this.pLEAT=Math.min(nLlLB_window*0.9,this.iaxOp_win_height)
var UicTD=document.getElementById('wa-dialog1');
UicTD.width=this.tsSrn+10
UicTD.height=this.pLEAT+10
var ADmON=getWindowScroll().x+(ntgZT-UicTD.width)/2
var mRTkA=getWindowScroll().y+(nLlLB_window-UicTD.height)/2
ADmON=(ntgZT-UicTD.width)/2
mRTkA=(nLlLB_window-UicTD.height)/2
ADmON=Math.max(0,ADmON)
mRTkA=Math.max(0,mRTkA) 
var hquod=document.getElementById('wa-dialog-main');
html_SetGeometry('wa-dialog-main',ADmON,mRTkA,UicTD.width,UicTD.height);
var pxYtU_bg="(0;0;0;"+this.pLEAT*0.25+";"+this.MlIVH[1]+";"+this.MlIVH[2]+")";
WA_bg('wa-dialog1',this.tsSrn,this.pLEAT,10,3,this.MlIVH[0],[pxYtU_bg],true,0)
var jUBrE=10;
var HxwoN=this.JqMsA(-1)
if(HxwoN)
{
var obiAG_close=this.umqur(-1)
html_SetPosition(HxwoN,this.tsSrn-obiAG_close.width+this.aUERE-jUBrE,this.aUERE+jUBrE)
}
var vITgl_buttons=this.rqGmk.length;
if(this.TlHDA_close_button==true)
{
vITgl_buttons--;
}
var wTBos=10;
var HRvVx=0;
for(var HPFcX=0;HPFcX<vITgl_buttons;HPFcX++)
{
if(HPFcX>0) HRvVx+=wTBos;
var obiAG=this.umqur(HPFcX);
HRvVx+=obiAG.width;
}
var bGrpb=(this.tsSrn-HRvVx)/2
for(var HPFcX=0;HPFcX<vITgl_buttons;HPFcX++)
{
if(HPFcX>0) bGrpb+=wTBos;
var oeMfe=this.JqMsA(HPFcX);
var obiAG=this.umqur(HPFcX);
html_SetPosition(oeMfe,bGrpb+this.aUERE,+this.aUERE+this.pLEAT-obiAG.height-2*jUBrE)
bGrpb+=obiAG.width;
}
var nLlLB_top=45;
var nLlLB_bottom=this.BUTTON_HEIGHT+2*jUBrE;
if(vITgl_buttons==0)
{
nLlLB_bottom=0;
}
var nLlLB_content=(this.pLEAT-nLlLB_top-nLlLB_bottom)-jUBrE
var ssUVW=document.getElementById('wa-dialog-content');
var XTpKn_content=Math.round(this.tsSrn-2*jUBrE)
var iWDer=Math.round(nLlLB_content)
this.m_content_lx=XTpKn_content
this.m_content_ly=iWDer
html_SetGeometry('wa-dialog-content',Math.round(5+(this.tsSrn-XTpKn_content)/2),Math.round(5+nLlLB_top+(nLlLB_content-iWDer)/2),XTpKn_content,iWDer);
this.customUpdate() 
var heNoW=document.getElementById('wa-dialog-container');
FSbsU=getWindowFullSize().width
nLlLB_full_client=getWindowFullSize().height
html_SetSize('wa-dialog-container',FSbsU,nLlLB_full_client);
centerFullPageContainer();
}
this.cWPaJ();
}
function WA_exec_callback_opera_compliant(SnpNo,CtmdU)
{
if(/opera/i.test(navigator.userAgent))
WA_exec_delayedCallback(SnpNo,CtmdU)
else
CtmdU.call(SnpNo)
}
function WA_exec_delayedCallback(SnpNo,CtmdU)
{
wa_timeout(Delegate.create(SnpNo,CtmdU),0);
}
WA_Dialog.getCurrent=function()
{
return WA_Dialog.vmglE;
}
WA_Dialog.vmglE=false;
WA_Dialog.resizeUI=function()
{
if(WA_Dialog.vmglE)
{
WA_Dialog.vmglE.IvpKj()
}
}
WA_Dialog.alert=function(s)
{
var w=new WA_Dialog();
w.BAHkK(s)
}
WA_Dialog.progress=function()
{
var w=new WA_Dialog(false);
w.progress()
}
function centerFullPageContainer()
{
var fbguX_page=document.webaca_width_page;
var nLlLB_page=document.webaca_height_page;
var heNoW=document.getElementById('wa-dialog-container');
FSbsU=getWindowSize().width
nLlLB_full_client=getWindowSize().height
var mRTkA_bg=getWindowScroll().y;
mRTkA_bg=Math.min(mRTkA_bg,nLlLB_page-nLlLB_full_client+1)
mRTkA_bg=Math.max(mRTkA_bg,0)
var DFHHM=getWindowScroll().x;
DFHHM=Math.min(DFHHM,fbguX_page-FSbsU+1)
DFHHM=Math.max(DFHHM,0) 
html_SetPosition('wa-dialog-container',DFHHM,mRTkA_bg,FSbsU,nLlLB_full_client);
}

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

}
};
return http_request;
}
function makePOSTRequest(url,parameters,callback,wGxNF)
{
var http_request=getXMLHttpRequest(callback,wGxNF);
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(vbavD,jbJSH,fgmeo)
{
var result=jbJSH.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 oftdt=fgmeo[0] 
WA_Dialog.alert(Translator.tr("Success:Mail sended"));
var form=document.getElementById(oftdt);
form.reset()
}
else
{
var ILcOE="error_string="
n=result.indexOf(ILcOE)
if(n>-1)
{
result=result.substring(n+ILcOE.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 SGJwS=el.value
SGJwS=encodeURI(SGJwS)
SGJwS=SGJwS.replace(/&/g,escape("&")) 
poststr+=el.name.replace("_mandatory","")+"="+SGJwS+"&"
}
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(IugYK)
{
var UiHSa=document.getElementById(IugYK);
UiHSa.submit() 
}
function gtqhI(VemIV,fgmeo)
{
var ZeMho=fgmeo[0]
if(ZeMho==13)
{
var IugYK=VemIV+"-form";
var UiHSa=document.getElementById(IugYK);
for(var i=0;i<UiHSa.elements.length;i++)
{
var unbYJ=UiHSa.elements[i];
if((unbYJ.type=="textarea")&&(unbYJ.focused))return true;
}
WA_form_submit(IugYK);
return false;
}
return true;
}
function WA_addFormDeclaration(VemIV,VWaGb)
{
return WA_addHandler(VemIV,"keypress",gtqhI)
}
function WA_form_bg(id,lx,ly,arc,NqpXd,bord_col,bg,shadow,Dumwb,BHqMd)
{
WA_bg(id,lx,ly,arc,NqpXd,bord_col,bg,shadow,Dumwb,1.0,true) 
var akdmk=BHqMd.x;
var oVQns=0;
var QFAYu=BHqMd.cells
for(var n=0;n<QFAYu.length;n++)
{
var XUPdF=QFAYu[n]
var arc2=0
FluPK(id,akdmk,oVQns+XUPdF.y,BHqMd.w,XUPdF.h,arc2,1,BHqMd.border,[''],false,0,1.0,false)
FluPK(id,akdmk,oVQns+XUPdF.y,XUPdF.w,XUPdF.h,arc2,1,"rgba(0,0,0,0)",[BHqMd.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(pVUDH)
{
this.ok=false;this.a=1.0;
if(pVUDH.charAt(0)=='#'){pVUDH=pVUDH.substr(1);}
pVUDH=pVUDH.replace(/ /g,'');
pVUDH=pVUDH.toLowerCase();
var qWhlK=[
{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<qWhlK.length;i++){
var owggg=qWhlK[i].re;
var kdNUs=qWhlK[i]._process;
var lZFCf=owggg.exec(pVUDH);
if(lZFCf){
var cNnOY=kdNUs(lZFCf);
this.r=cNnOY[0];this.g=cNnOY[1];this.b=cNnOY[2];this.a=cNnOY[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.rRWCs=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.rRWCs(p,q,h+1/3);g=this.rRWCs(p,q,h);b=this.rRWCs(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 RJZNr(BmbQN,fgmeo)
{
if(document.wa_global_handlers!=undefined)
{
var VemIV=WA_focused_element()
if(VemIV)
{
var ZiBPd=document.wa_global_handlers[VemIV+"-"+BmbQN]
if(ZiBPd) return ZiBPd([VemIV],fgmeo)
}
}
return true;
}
function qUmPZ(e)
{
if(window.event){return e.keyCode;}
else 
if(e.which) return  e.which;
return-1;
}
function WA_onkeypress(e)
{
var ZeMho=qUmPZ(e);
if(WA_Dialog.vmglE)
{
if(WA_Dialog.vmglE.onkeypress(ZeMho))
{
return false;
}
}
return RJZNr("keypress",[ZeMho]);
}
function WA_ondblclick(e)
{
return RJZNr("dblclic",[""]);
}
function WA_onkeydown(e)
{
var ZeMho=qUmPZ(e)
if(WA_Dialog.vmglE)
{
if(WA_Dialog.vmglE.onkeydown(ZeMho))
{
return false;
}
}
if(ZeMho==13) return true;

if(wa_global_photo_album&&wa_global_photo_album.fullpage_object)
{
var SnpNo=wa_global_photo_album.fullpage_object
return SnpNo.onFullScreenKeydown(ZeMho) 
}
return RJZNr("keydown",[ZeMho]);
}
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 VemIV=this.id
var ZiBPd=document.wa_global_handlers[VemIV+"-mousewheel"]
if(ZiBPd)
{
if(ZiBPd([VemIV],[delta]))
{
b_default=true;
}
}
}
}
if(b_default)
if(e.preventDefault)
e.preventDefault();
e.returnValue=!b_default;
}
function WA_addHandler(VemIV,BmbQN,CtmdU)
{
if(document.wa_global_handlers==undefined) document.wa_global_handlers=new Array()
if(BmbQN=="mousewheel")
{
var guXqc=document.getElementById(VemIV);
if(guXqc.addEventListener)
guXqc.addEventListener('DOMMouseScroll',WA_genericMouseWheelHandler,false);
guXqc.onmousewheel=WA_genericMouseWheelHandler
}
document.wa_global_handlers[VemIV+"-"+BmbQN]=CtmdU
}
function WA_loadPhotoAlbum(VemIV,QbHTM,oGxkK,VemIV_modif)
{
if(typeof(wa_global_photo_album[VemIV])=="undefined")
{
var o=new Array();
o.src_folder=QbHTM
o.size_container=oGxkK
o.id_modif=VemIV_modif
wa_global_photo_album[VemIV]=o;
}
}
function WA_focused_element()
{
return document.wa_global_focused_element
}
function WA_focus(SnpNo)
{
document.wa_global_focused_element=SnpNo.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(QHnHb,jmdxe,dtXHH)
{
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[jmdxe])document.wa_global_blogs_elements[jmdxe]=new Array()
document.wa_global_blogs_elements[jmdxe].id_blog=QHnHb
document.wa_global_blogs_elements[jmdxe].has_email=dtXHH
}
function WA_addSearchHandler(VemIV)
{
return WA_addHandler(VemIV,"keypress",KVMZD)
}
function KVMZD(VemIV,fgmeo)
{
var ZeMho=fgmeo[0]
if(ZeMho==13)
{
var mQaLB=VemIV+"-search-input";
WA_onSearch(mQaLB)
return false;
}
return true;
}
function WA_declareSearchIndex(rTDZt,kPgsM)
{
document.const_wa_search_js=rTDZt
document.const_wa_search_index_js=kPgsM
}
function WA_onSearch(mQaLB)
{
var QxfDd=document.getElementById(mQaLB);
if(document.wa_search_js_loaded==true)
{
WA_openSearchDialog(QxfDd,document.const_wa_search_index_js)
}
else
{
WA_Dialog.progress();
bOdPf(QxfDd)
}
}
function NeOmD(fgmeo)
{
document.wa_search_js_loaded=true
WA_openSearchDialog(fgmeo[0],document.const_wa_search_index_js)
}
function bOdPf(LUQwL)
{
WA_loadScript(document.const_wa_search_js,NeOmD,[LUQwL])
}
function ZYFNY(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 ZYFNY(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(VemIV)
{
var HJaRm=document.wa_global_menu_declaration[VemIV]
WA_bg(VemIV,HJaRm.root_lx,HJaRm.root_ly,HJaRm.root_corner,HJaRm.root_border,HJaRm.root_col_border,[HJaRm.root_bg],false,0)
var unbYJ=document.getElementById(HJaRm.id)
if(!unbYJ)return;
var c=unbYJ.getContext('2d');
c.lineWidth=1
c.strokeStyle=HJaRm.root_col_separator
var WghjC=0.5;

var qMYZm=HJaRm.root_sizes.length
if(HJaRm.root_extend==false)
{
qMYZm--;
}
var hTXVg=3;
for(var i=0;i<qMYZm;i++)
{
var oGxkK=HJaRm.root_sizes[i] 

c.beginPath();
if(HJaRm.root_vertical==false)
{
WghjC+=(oGxkK-1)
c.moveTo(WghjC,hTXVg)
c.lineTo(WghjC,HJaRm.root_ly-hTXVg)
}
else
{
WghjC+=(oGxkK)
c.moveTo(hTXVg,WghjC-1,0)
c.lineTo(HJaRm.root_lx-hTXVg,WghjC-1)
}
c.closePath();
c.stroke()
}
}
function WA_declare_menu(VemIV,HJaRm)
{
if(!document.wa_global_menu_declaration)document.wa_global_menu_declaration=new Array();
HJaRm.id=VemIV
document.wa_global_menu_declaration[VemIV]=HJaRm
WA_bg_menu(VemIV)
}
function WA_declareMarket(VemIV,nWTqi_market,VemIV_modif)
{
if(typeof(wa_global_market.markets[VemIV])=="undefined")
{
var o=new Array();
o.src_folder=nWTqi_market
o.id_modif=VemIV_modif 

o.id=VemIV
wa_global_market.markets[VemIV]=o;
}
}
function WA_button_market_declare(VemIV,msfZa)
{
if(!document.wa_global_button_market_declaration)document.wa_global_button_market_declaration=new Array();
document.wa_global_button_market_declaration[VemIV]=msfZa
}
function rkSug(c,img,ADmON,mRTkA,fbguX,nLlLB,nCPTu,rRcGl,JteEf)
{
c.globalAlpha=rRcGl
if(JteEf) c.clearRect(0,0,fbguX,nLlLB) 
if(rRcGl==0)return;
if(nCPTu)
{
c.drawImage(img,nCPTu.x,nCPTu.y,nCPTu.width,nCPTu.height,ADmON,mRTkA,fbguX,nLlLB)
}
else
{
c.drawImage(img,ADmON,mRTkA,fbguX,nLlLB)
}
}
function WA_drawImage(id,SWSdT,ADmON,mRTkA,fbguX,nLlLB,nCPTu,rRcGl,JteEf)
{
if(JteEf==undefined)JteEf=true;
if(rRcGl==undefined)rRcGl=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==SWSdT)
{
rkSug(c,c.NDjdj,ADmON,mRTkA,fbguX,nLlLB,nCPTu,rRcGl,JteEf)
return;
}
var img=new Image();
img.AAbxa=el.AAbxa
img.onload=function()
{
c.old_src=SWSdT
c.NDjdj=this;
rkSug(c,this,ADmON,mRTkA,fbguX,nLlLB,nCPTu,rRcGl,JteEf)
}
img.src=SWSdT;
}

-->
