<!--

function Delegate(){}
Delegate.create=function(o,f){
var eteXT=new Array();
var ZteGC=arguments.length;
for(var i=2;i<ZteGC;i++) eteXT[i-2]=arguments[i];
return function(){
var XBFfd=[].concat(arguments,eteXT);
f.apply(o,XBFfd);
}
}
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.wugSt=0;
t.LvauK=0;
t.ahaGu=0;
t.NJwYi=0;
t.TNwqN=0;
t.jofUV=0;
t.OLkWx=false;
t.name='';
t.suffixe='';
t.MHpTP=new Array();
t.setTime=function(t){
this.prevTime=this.LvauK;
if(t>this.getDuration()){
if(this.looping){
this.rewind(t-this.wugSt);
this.update();
this.DQNPI('onMotionLooped',{target:this,type:'onMotionLooped'});
}else{
this.LvauK=this.wugSt;
this.update();
this.stop();
this.DQNPI('onMotionFinished',{target:this,type:'onMotionFinished'});
}
}else if(t<0){
this.rewind();
this.update();
}else{
this.LvauK=t;
this.update();
}
}
t.isRunning=function(){
return this.OLkWx;
}
t.getTime=function(){
return this.LvauK;
}
t.setDuration=function(d){
this.wugSt=(d==null||d<=0)?100000:d;
}
t.getDuration=function(){
return this.wugSt;
}
t.setPosition=function(p){
this.prevPos=this.ahaGu;
var a=this.suffixe!=''?this.suffixe:'';
this.obj[this.prop]=Math.round(p)+a;
this.ahaGu=p;
this.DQNPI('onMotionChanged',{target:this,type:'onMotionChanged'});
}
t.getPosition=function(t){
if(t==undefined) t=this.LvauK;
return this.func(t,this.begin,this.change,this.wugSt);
};
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.MHpTP=new Array();
this.addListener(this);
if(suffixe) this.suffixe=suffixe;
this.obj=obj;
this.prop=prop;
this.begin=begin;
this.ahaGu=begin;
this.setDuration(duration);
if(func!=null&&func!=''){
this.func=func;
}
this.setFinish(finish);
}
t.start=function(){
this.rewind();
this.startEnterFrame();
this.DQNPI('onMotionStarted',{target:this,type:'onMotionStarted'});
}
t.rewind=function(t){
this.stop();
this.LvauK=(t==undefined)?0:t;
this.fixTime();
this.update();
}
t.fforward=function(){
this.LvauK=this.wugSt;
this.fixTime();
this.update();
}
t.update=function(){
this.setPosition(this.getPosition(this.LvauK));
}
t.startEnterFrame=function(){
this.stopEnterFrame();
this.OLkWx=true;
this.onEnterFrame();
}
t.onEnterFrame=function(){
if(this.OLkWx){
this.nextFrame();
wa_timeout(Delegate.create(this,this.onEnterFrame),0);
}
}
t.nextFrame=function(){
this.setTime((this.getTimer()-this.TNwqN)/1000);
}
t.stop=function(){
this.stopEnterFrame();
this.DQNPI('onMotionStopped',{target:this,type:'onMotionStopped'});
}
t.stopEnterFrame=function(){
this.OLkWx=false;
}
t.continueTo=function(finish,duration){
this.begin=this.ahaGu;
this.setFinish(finish);
if(this.wugSt!=undefined)
this.setDuration(duration);
this.start();
}
t.resume=function(){
this.fixTime();
this.startEnterFrame();
this.DQNPI('onMotionResumed',{target:this,type:'onMotionResumed'});
}
t.yoyo=function(){
this.continueTo(this.begin,this.LvauK);
}
t.addListener=function(o){
this.removeListener(o);
return this.MHpTP.push(o);
}
t.removeListener=function(o){
var a=this.MHpTP;
var i=a.length;
while(i--){
if(a[i]==o){
a.splice(i,1);
return true;
}
}
return false;
}
t.DQNPI=function(){
var arr=new Array();
for(var i=0;i<arguments.length;i++){
arr.push(arguments[i])
}
var e=arr.shift();
var a=this.MHpTP;
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.TNwqN=this.getTimer()-this.LvauK*1000;
}
t.getTimer=function(){
return new Date().getTime()-this.LvauK;
}
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,XeVas,wDChU,wugSt){
this.targetObject=obj;
this.init(new Object(),'a',func,XeVas,wDChU,wugSt);
this.onMotionChanged=function(evt){
var v=evt.target.ahaGu;
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(VMDZc,BeLMu,DPYGK)
{
return "<canvas id='"+VMDZc+"' width='"+BeLMu+"' height='"+DPYGK+"'></canvas>"
}
function WA_canvas(VMDZc,BeLMu,DPYGK)
{
document.write(html_canvas(VMDZc,BeLMu,DPYGK))
}
function PDiYP(DLTbC,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;
DLTbC.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;
DLTbC.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;
DLTbC.quadraticCurveTo(cx,cy,px,py);
}
}
function UsOpY(c,x,y,lx,ly,arc,clowckwise)
{
c.beginPath()
BBxld(c,x,y,lx,ly,arc,clowckwise)
}
function BBxld(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 ZkqJK()
{
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 oriEx(lx,ly,parent,id_suffixe)
{
var KpBTG=document.createElement('canvas');KpBTG.width=lx;KpBTG.height=ly;
return KpBTG;
}
function MISDb(c,MaqdO)
{
c.shadowOffsetX=2;c.shadowOffsetY=2;c.shadowBlur=4;
}
function WA_over_img_html(xHcej,MTAhI,meNOa)
{
if(!xHcej.src)
{
var aUnki=xHcej.getElementsByTagName("IMG")
if(aUnki.length==1)xHcej=aUnki[0]
}
if(xHcej.src1==undefined)
{
xHcej.src1=xHcej.src;
xHcej.src2=MTAhI;
}
if(meNOa)
{
xHcej.src=xHcej.src2;
}
else
{
xHcej.src=xHcej.src1;
}
}
function WA_over_img(id,meNOa)
{

var el=document.getElementById(id) 

var xHcej=(meNOa)?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,[xHcej,xHcej],el.wa_shadow,el.wa_rot)
}
function WA_img(id,lx,ly,arc,EhGgA,bord_col,s_img,shadow,rot)
{
var el=document.getElementById(id)
var c=el.getContext('2d');
var tKWlq=(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=EhGgA
el.wa_bord_col=bord_col
el.wa_s_img=s_img
el.wa_shadow=shadow
el.wa_rot=rot
c.translate(tKWlq,tKWlq)
}
var iZnTI_img=document.getElementById(id+"-cache")
iZnTI_img.onload=function()
{
c.clearRect(0,0,lx+2*tKWlq,ly+2*tKWlq)
var arc2=arc-EhGgA;
if(arc2<0)arc2=0;
if(ZkqJK()==false)
{
if(shadow) JurwO(c,0,0,lx,ly,arc,false,rot) 
this.width=lx-2*EhGgA
this.height=ly-2*EhGgA 
if(navigator.userAgent.match(/Firefox/i))
{
var c2=c
if(EhGgA>0)
{
c2.fillStyle=bord_col;
UsOpY(c2,0,0,lx,ly,arc)
BBxld(c2,EhGgA,EhGgA,lx-2*EhGgA,ly-2*EhGgA,arc2,true)
c2.fill()
}
UsOpY(c2,EhGgA,EhGgA,lx-2*EhGgA,ly-2*EhGgA,arc2)
c2.clip()
c2.drawImage(this,EhGgA,EhGgA,lx-2*EhGgA,ly-2*EhGgA);
}
else
{
var iHOgk=c.createPattern(this,'no-repeat');
c.fillStyle=iHOgk;
c.beginPath() 
UsOpY(c,EhGgA,EhGgA,lx-2*EhGgA,ly-2*EhGgA,arc2)
c.translate(EhGgA,EhGgA)
c.fill()
c.translate(-EhGgA,-EhGgA)
if(EhGgA>0)
{
c.fillStyle=bord_col;
UsOpY(c,0,0,lx,ly,arc)
BBxld(c,EhGgA,EhGgA,lx-2*EhGgA,ly-2*EhGgA,arc2,true)
c.fill()
}
}
}
else
{
var canv2=oriEx(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
if(EhGgA>0)
{
c2.fillStyle=bord_col;
UsOpY(c2,0,0,lx,ly,arc)
BBxld(c2,EhGgA,EhGgA,lx-2*EhGgA,ly-2*EhGgA,arc2,true)
c2.fill()
}
UsOpY(c2,EhGgA,EhGgA,lx-2*EhGgA,ly-2*EhGgA,arc2)
c2.clip()
c2.drawImage(this,EhGgA,EhGgA,lx-2*EhGgA,ly-2*EhGgA);
if(shadow) MISDb(c,rot)
c.drawImage(canv2,0,0);
}
}
iZnTI_img.src=s_img[0];
}
function vbOkO(c,type,lx,ly,corner)
{
if(type==1)
PDiYP(c,0,0,lx,ly)
else
UsOpY(c,0,0,lx,ly,corner)
}
function MInCD(el,c,type,lx,ly,corner,bg,fMQDL,rot)
{
if(ZkqJK()==false)
{
c.fillStyle=bg;
vbOkO(c,type,lx,ly,corner)
c.fill()
}
else
{
var canv2=oriEx(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.fillStyle=bg;
vbOkO(c2,type,lx,ly,corner)
c2.fill()
if(fMQDL) MISDb(c,rot)
c.drawImage(canv2,0,0);
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
}
}
function YkihD(c,type,lx,ly,hEBqX,bg,HNSLt,kVooQ_glow)
{
if(HNSLt)
{
var x1=HNSLt[0];var y1=HNSLt[1];var lx1=HNSLt[2];var ly1=HNSLt[3];var pBqBS=HNSLt[4];
var IYRNk=c.createLinearGradient(x1,y1,x1,y1+ly1);
IYRNk.addColorStop(0,"rgba(255,255,255,0.7)");IYRNk.addColorStop(1,"rgba(255,255,255,0.1)");
c.fillStyle=IYRNk;
if(type==1) PDiYP(c,x1,y1,lx1,ly1)
else
UsOpY(c,x1,y1,lx1,ly1,pBqBS)
c.fill()
}
if(kVooQ_glow)
{
var x2=kVooQ_glow[0];var y2=kVooQ_glow[1];var lx2=kVooQ_glow[2];var ly2=kVooQ_glow[3];
var prrTT=kVooQ_glow[4];
var uXppi_glow=new RGBColor(kVooQ_glow[5]);
uXppi_glow.a=0;
var col1=kVooQ_glow[5];
var col2=uXppi_glow.toRGB();
var bcZvX=c.createLinearGradient(x2,y2,x2,y2+ly2);
bcZvX.addColorStop(0,col2);
bcZvX.addColorStop(0.2,col2);
bcZvX.addColorStop(1,col1);
c.fillStyle=bcZvX;
if(type==1) PDiYP(c,x2,y2,lx2,ly2)
else
UsOpY(c,x2,y2,lx2,ly2,prrTT)
c.fill()
}
}
function GLkhL(TOoJN,VMDZc,Nhdkp,BeLMu,DPYGK,hEBqX,ZBANO,HNSLt,kVooQ_glow,fMQDL,MaqdO)
{
TOoJN.VMDZc=VMDZc;TOoJN.Nhdkp=Nhdkp;
TOoJN.BeLMu=BeLMu;TOoJN.DPYGK=DPYGK;
TOoJN.hEBqX=hEBqX;TOoJN.ZBANO=ZBANO,TOoJN.HNSLt=HNSLt;
TOoJN.kVooQ_glow=kVooQ_glow;TOoJN.fMQDL=fMQDL;TOoJN.MaqdO=MaqdO;
}
function WA_but_over(VMDZc,ZBANO_over,uXppi_glow)
{
var oVkvH=document.getElementById(VMDZc) 
if(oVkvH&&oVkvH.DPwQj)
with(oVkvH.DPwQj)
{
var kVooQ_glow_over;
if(kVooQ_glow&&uXppi_glow)
{
kVooQ_glow_over=new Array();
for(var rbYnO=0;rbYnO<kVooQ_glow.length;rbYnO++)kVooQ_glow_over[rbYnO]=kVooQ_glow[rbYnO];
kVooQ_glow_over[5]=uXppi_glow;
}
WA_but(VMDZc,Nhdkp,BeLMu,DPYGK,hEBqX,ZBANO_over,HNSLt,kVooQ_glow_over,fMQDL,MaqdO);
}
var YKTBJ_over0=document.getElementById(VMDZc+"-div0")
if(YKTBJ_over0)html_SetVisibility(YKTBJ_over0,false);
var xNpTi=document.getElementById(VMDZc+"-div1")
if(xNpTi)html_SetVisibility(xNpTi,true);
}
function WA_but_out(VMDZc)
{
var oVkvH=document.getElementById(VMDZc)
with(oVkvH.DPwQj)
{
WA_but(VMDZc,Nhdkp,BeLMu,DPYGK,hEBqX,ZBANO,HNSLt,kVooQ_glow,fMQDL,MaqdO);
}
var YKTBJ_over0=document.getElementById(VMDZc+"-div0")
if(YKTBJ_over0)html_SetVisibility(YKTBJ_over0,true);
var xNpTi=document.getElementById(VMDZc+"-div1")
if(xNpTi)html_SetVisibility(xNpTi,false);
}
function WA_but(id,type,lx,ly,corner,bg,top_light,s_glow,fMQDL,rot)
{
var el=document.getElementById(id)
if(el.DPwQj==undefined)
{
el.DPwQj=new Array();
GLkhL(el.DPwQj,id,type,lx,ly,corner,bg,top_light,s_glow,fMQDL,rot);
}
var c=el.getContext('2d');
var tKWlq=0;
if(fMQDL)tKWlq=6 
c.fillStyle="#000000";
c.fillRect(0,0,lx+2*tKWlq,ly+2*tKWlq) 
c.clearRect(0,0,lx+2*tKWlq,ly+2*tKWlq) 
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(ZkqJK()==false)
{
c.translate(tKWlq,tKWlq)
img.width=lx
img.height=ly 
if(fMQDL)
JurwO(c,0,0,lx,ly,corner,(type==1),rot)
if(navigator.userAgent.match(/Firefox/i))
{
c.beginPath()
vbOkO(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()
vbOkO(c,type,lx,ly,corner)
c.fill()
}
YkihD(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-tKWlq,-tKWlq)
}
else
{
var canv2=oriEx(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.beginPath()
vbOkO(c2,type,lx,ly,corner)
c2.clip()
c2.drawImage(img,0,0,lx,ly);
YkihD(c2,type,lx,ly,corner,bg,top_light,s_glow)
if(fMQDL) MISDb(c,rot) 
c.drawImage(canv2,tKWlq,tKWlq);
}
}
img.src=bg2;
return;
}
c.translate(tKWlq,tKWlq) 
if(fMQDL&&(ZkqJK()==false))
{
var sfUIO=new RGBColor(bg);
if(sfUIO.a>0)
{
JurwO(c,0,0,lx,ly,corner,(type==1),rot)
}
}
MInCD(el,c,type,lx,ly,corner,bg2,fMQDL,rot)
YkihD(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-tKWlq,-tKWlq)
}
function JurwO(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) PDiYP(c,x,y,lx,ly);else UsOpY(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 HHDtA(id,x,y,lx,ly,arc,EhGgA,bord_col,bg,shadow,rot,ZmAPI,tJDnW)
{
if(tJDnW==undefined)tJDnW=true;
var el=document.getElementById(id)
var c=el.getContext('2d');
if(ZmAPI==undefined)ZmAPI=1.0;
var tKWlq=0;
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
if(shadow)
{
tKWlq=6;
}
if(tJDnW) c.clearRect(0,0,el.width,el.height)
c.globalAlpha=ZmAPI 
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 QRFeP=bg1.split(";");
var x1=parseFloat(QRFeP[0]);
var y1=parseFloat(QRFeP[1]);
var x2=parseFloat(QRFeP[2]);
var y2=parseFloat(QRFeP[3]);
var col1=QRFeP[4];
var col2=QRFeP[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-EhGgA;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
{
if(shadow) JurwO(c,tKWlq,tKWlq,lx,ly,arc,false,rot)
}
if(EhGgA>0)
{
c2.fillStyle=bord_col;
UsOpY(c2,x,y,lx,ly,arc)
BBxld(c2,x+EhGgA,y+EhGgA,lx-2*EhGgA,ly-2*EhGgA,arc2,true)
c2.fill()
}


c2.fillStyle=fill_obj 
UsOpY(c2,x+EhGgA,y+EhGgA,lx-2*EhGgA,ly-2*EhGgA,arc2)
c2.fill();
}
function rJHtM(KQLXm,rYeGl,DKhCR)
{
return new Point(Math.round(KQLXm*Math.cos(DKhCR)-rYeGl*Math.sin(DKhCR)),Math.round(KQLXm*Math.sin(DKhCR)+rYeGl*Math.cos(DKhCR)))
}
function wxvjj(c,x,y,lx,ly,arc,clowckwise,MaqdO)
{
c.beginPath()
mpEFW(c,x,y,lx,ly,arc,clowckwise,MaqdO)
}
function mpEFW(c,x,y,lx,ly,arc,clowckwise,MaqdO)
{
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 KrSuC=[[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=MaqdO*2*Math.PI/360
for(var n=0;n<KrSuC.length;n++)
{
var SMsrg=KrSuC[n][0]
var fJGLe=KrSuC[n][1]
KrSuC[n][0]=SMsrg*Math.cos(theta)-fJGLe*Math.sin(theta);
KrSuC[n][1]=SMsrg*Math.sin(theta)+fJGLe*Math.cos(theta);
}
var n=0;
c.moveTo(KrSuC[n][0],KrSuC[n++][1]);
c.lineTo(KrSuC[n][0],KrSuC[n++][1]);
c.quadraticCurveTo(KrSuC[n][0],KrSuC[n++][1],KrSuC[n][0],KrSuC[n++][1]);
c.lineTo(KrSuC[n][0],KrSuC[n++][1]);
c.quadraticCurveTo(KrSuC[n][0],KrSuC[n++][1],KrSuC[n][0],KrSuC[n++][1]);
c.lineTo(KrSuC[n][0],KrSuC[n++][1]);
c.quadraticCurveTo(KrSuC[n][0],KrSuC[n++][1],KrSuC[n][0],KrSuC[n++][1]);
c.lineTo(KrSuC[n][0],KrSuC[n++][1]);
c.quadraticCurveTo(KrSuC[n][0],KrSuC[n++][1],KrSuC[n][0],KrSuC[n++][1]);
}
function Cuurk(a,b,x,y)
{
return(a*x-y+b)/(Math.sqrt(1+a*a))
}
function BULxv(new_a1,new_b1,QnrsF,multi)
{
var d=0;
for(var i=0;i<QnrsF.length;i++)
{
var SQxLM=QnrsF[i]
var d1=Cuurk(new_a1,new_b1,SQxLM.x,SQxLM.y)
if(multi<0)
{
if(d1<0) d=Math.max(d,-d1);
}
else
{
if(d1>0) d=Math.max(d,d1);
}
}
return d;
}
function qQVZJ(o1,o2)
{
if(o1<o2) return-1
if(o1>o2) return 1
return 0
}
function jWVcv(c,lx,ly,bg1)
{
var fill_obj=false;
var RRYnL=false;
var fuZkR=false;
var QnrsF=false
if(bg1.substring(0,1)=="(")
{
bg1=bg1.substring(1);
bg1=bg1.substring(0,bg1.length-1)
var QRFeP=bg1.split(";");
var rUWHj=new Point(parseFloat(QRFeP[0]),parseFloat(QRFeP[1]));
var TMFww=new Point(parseFloat(QRFeP[2]),parseFloat(QRFeP[3]));
RRYnL=rUWHj.clone()
fuZkR=TMFww.clone()
var col1=QRFeP[4];
var col2=QRFeP[5];
var grad=c.createLinearGradient(RRYnL.x,RRYnL.y,fuZkR.x,fuZkR.y);
if(isMSIE())
{
RRYnL=rUWHj.clone()
fuZkR=TMFww.clone() 
var IYRNk=0;
var bcZvX=1;
{
QnrsF=[{x:0,y:0},{x:lx,y:0},{x:lx,y:ly},{x:0,y:ly}]
var d1=0;
var d2=0;
var a=(fuZkR.y-RRYnL.y)/(fuZkR.x-RRYnL.x);
var b=RRYnL.y-a*RRYnL.x;
var diff=1;
if(a==Infinity)
{
d1=(RRYnL.y)
d2=(ly-fuZkR.y)
}
else
if(a==0)
{
d1=(RRYnL.x)
d2=(lx-fuZkR.x)
}
else
{
var new_a1=-1/a;
var new_b1=RRYnL.y-new_a1*RRYnL.x;
d1=BULxv(new_a1,new_b1,QnrsF,-1)
var new_b2=fuZkR.y-new_a1*fuZkR.x;
d2=BULxv(new_a1,new_b2,QnrsF,1)
if(new_a1<0)diff=-1;
}
var d=Math.sqrt(Math.pow(fuZkR.x-RRYnL.x,2)+Math.pow(fuZkR.y-RRYnL.y,2))
var total=(d1+d+d2)
IYRNk=d1/total;
bcZvX=(d1+d)/total;
var pt_prod0=new Point(fuZkR.x-RRYnL.x,fuZkR.y-RRYnL.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)
{
IYRNk=d2/total;
bcZvX=(d2+d)/total;
}
}
grad.addColorStop(IYRNk,col1);
grad.addColorStop(bcZvX,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,EhGgA,bord_col,bg,shadow,rot,lnfPL,DJTep,ZmAPI,tJDnW)
{


var theta=rot*2*Math.PI/360 
if(tJDnW==undefined)tJDnW=true;
if(ZmAPI==undefined)ZmAPI=1.0;
var el=document.getElementById(id)
if(!el)return
var c=el.getContext('2d');
var tKWlq=(el.width-lx)/2;
if(tJDnW) c.clearRect(0,0,el.width,el.height)
var x_rect0=tKWlq;
var y_rect0=tKWlq;
var bg1=bg[0]
var fill_obj=false;
var RRYnL=false;
var fuZkR=false;
var QnrsF=false
fill_obj=jWVcv(c,lx,ly,bg1) 
if(ZmAPI==undefined)ZmAPI=1.0;
var arc2=arc-EhGgA;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
if(shadow)
{
c2.translate(lnfPL+6,DJTep+6)
}
else
{
c2.translate(lnfPL,DJTep)
}
c2.fillStyle=fill_obj;
wxvjj(c2,EhGgA,EhGgA,lx-2*EhGgA,ly-2*EhGgA,arc2,false,rot)
c2.fill();
}
function WA_bg(id,lx,ly,arc,EhGgA,bord_col,bg,shadow,rot,ZmAPI,tJDnW)
{

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

var fill_obj=jWVcv(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()
Vcgrf(c,el,lx,ly,arc,EhGgA,bord_col,ptrn,shadow,rot,ZmAPI)
}
img.src=bg2;
}
else
{
Vcgrf(c,el,lx,ly,arc,EhGgA,bord_col,fill_obj,shadow,rot,ZmAPI)
}
}
function Vcgrf(c,el,lx,ly,arc,EhGgA,bord_col,fill_obj,shadow,rot,ZmAPI)
{
if(ZmAPI==undefined)ZmAPI=1.0;
var arc2=arc-EhGgA;
if(arc2<0)arc2=0
var tKWlq=(el.width-lx)/2;
var x_rect0=tKWlq;
var y_rect0=tKWlq;
var canv2=false;
var c2=c;
c.globalAlpha=ZmAPI
if(ZkqJK()==true)
{
canv2=oriEx(lx,ly);
c2=canv2.getContext('2d');
c2.globalAlpha=ZmAPI
}
else
{
c2.translate(tKWlq,tKWlq)
if(shadow) JurwO(c,0,0,lx,ly,arc,false,rot)
}
if(EhGgA>0)
{
c2.fillStyle=bord_col;
UsOpY(c2,0,0,lx,ly,arc)
BBxld(c2,EhGgA,EhGgA,lx-2*EhGgA,ly-2*EhGgA,arc2,true)
c2.fill()
}
c2.fillStyle=fill_obj;
UsOpY(c2,EhGgA,EhGgA,lx-2*EhGgA,ly-2*EhGgA,arc2)
c2.fill();
if(ZkqJK()==true)
{
if(shadow) MISDb(c,rot)
c.drawImage(canv2,tKWlq,tKWlq);
}
else
{
c2.translate(-tKWlq,-tKWlq)
}
}
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(kVooQ){return(this.width>kVooQ.width)&&(this.height>kVooQ.height)}
this.scale=function(QIPjU,TcbmP)
{
if(!TcbmP)TcbmP=false
var KlfSN=this;
var JTFHa=KlfSN.width
var QfhHM=KlfSN.height
var p1=JTFHa*QIPjU.height;
var p2=QIPjU.width*QfhHM;
var r1=JTFHa/QfhHM;
var r2=QfhHM/JTFHa;
var newSize1=new Size(QIPjU.height*r1,QIPjU.height);
var newSize2=new Size(QIPjU.width,QIPjU.width*r2);
if(p2>p1)
{
if((TcbmP==true)||((newSize1.width<=KlfSN.width)&&(newSize1.height<=KlfSN.height)))
{
KlfSN.width=Math.round(newSize1.width);
KlfSN.height=Math.round(newSize1.height);
}
}
else
{
if((TcbmP==true)||((newSize2.width<=KlfSN.width)&&(newSize2.height<=KlfSN.height)))
{
KlfSN.width=Math.round(newSize2.width);
KlfSN.height=Math.round(newSize2.height);
}
}
this.width=KlfSN.width;
this.height=KlfSN.height;
return true;
}
}
function Point(p_x,p_y){this.x=p_x;this.y=p_y;
this.translate=function(KQLXm,rYeGl){this.x+=KQLXm;this.y+=rYeGl;}
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(cIAkk){return(this.x==cIAkk.x)&&(this.y==cIAkk.y)&&(this.width==cIAkk.width)&&(this.height==cIAkk.height);}
this.copy=function(cIAkk){this.x=cIAkk.x;this.y=cIAkk.y;this.width=cIAkk.width;this.height=cIAkk.height;}
this.translate=function(KQLXm,rYeGl){this.x+=KQLXm;this.y+=rYeGl;}
}
function html_getLayer(cIAkk)
{
if(typeof(cIAkk)=="string")return document.getElementById(cIAkk);
return cIAkk;
}
function html_SetPosition(cIAkk,KQLXm,rYeGl){
cIAkk=html_getLayer(cIAkk);
cIAkk.style.left=KQLXm+"px";cIAkk.style.top=rYeGl+"px";
}
function html_SetSize(tYVtt,BeLMu,DPYGK){
cIAkk=html_getLayer(tYVtt);
cIAkk.style.width=BeLMu+"px";cIAkk.style.height=DPYGK+"px";
}
function html_SetRect(cIAkk,Fbtcd){html_SetGeometry(cIAkk,Fbtcd.x,Fbtcd.y,Fbtcd.width,Fbtcd.height);}
function html_SetGeometry(cIAkk,KQLXm,rYeGl,BeLMu,DPYGK){html_SetPosition(cIAkk,KQLXm,rYeGl);html_SetSize(cIAkk,BeLMu,DPYGK);}
function html_SetVisibility(cIAkk,jKJbj){cIAkk=html_getLayer(cIAkk);cIAkk.style.visibility=(jKJbj)?"visible":"hidden";}
function html_SetDisplay(cIAkk,jKJbj){cIAkk=html_getLayer(cIAkk);cIAkk.style.display=(jKJbj)?"block":"none";}
function html_SetCanvasSize(cIAkk,BeLMu,DPYGK){cIAkk=html_getLayer(cIAkk);cIAkk.width=BeLMu;cIAkk.height=DPYGK;}
function html_writeContent(cIAkk,kVooQ){cIAkk=html_getLayer(cIAkk);cIAkk.innerHTML=kVooQ;}
function html_SetOpacity(cIAkk,eteXT)
{
cIAkk=html_getLayer(cIAkk);
cIAkk.style['opacity']=eteXT;
cIAkk.style['-moz-opacity']=eteXT;
cIAkk.style.filter=(eteXT==1)?'':'alpha(opacity='+(eteXT*100)+')';
}
var budrs=[
{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<budrs.length;i++)
{
var array2=budrs[i].l;
for(var i2=0;i2<array2.length;i2++)
{
var reg=new RegExp(array2[i2],"g");
res=res.replace(reg,budrs[i].acc)
}
}
return res;
}
function trimString(str)
{
return str.replace(/^\s*|\s*$/g,"");
}
function IsNumeric(WxWpg)
{
var Wkvhx="0123456789.";var sdrEb=true;var pLVcx;
for(rbYnO=0;rbYnO<WxWpg.length&&sdrEb==true;rbYnO++){pLVcx=WxWpg.charAt(rbYnO);if(Wkvhx.indexOf(pLVcx)==-1) sdrEb=false;}
return sdrEb;
}
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(YuWeo)
{
var IoWSA=YuWeo*60;
var OUaDg=new Date();
var LKNEi=0;
LKNEi+=OUaDg.getYear()*12*31*24*60*60;
LKNEi+=OUaDg.getMonth()*31*24*60*60;
LKNEi+=OUaDg.getDate()*24*60*60;
LKNEi+=OUaDg.getHours()*60*60;
LKNEi+=OUaDg.getMinutes()*60;
LKNEi+=OUaDg.getSeconds();
if(IoWSA!=0)
{
LKNEi=Math.floor(LKNEi/IoWSA)*IoWSA
}
return "-"+LKNEi;
}
function html_findPos(obj)
{
var eteXT=dZKXi(obj)
return new Point(eteXT[0],eteXT[1])
}
function dZKXi(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(cJYhM,BeLMu,DPYGK)
{
document.write("<input id='"+cJYhM+"' type=search results=0 placeholder='' style='width:"+BeLMu+"px;height:"+DPYGK+"px;'>")
}
function VaRUn()
{
var aUnki=document.getElementsByTagName("A");
for(var rbYnO=0;rbYnO<aUnki.length;rbYnO++)
{
var cIAkk=aUnki[rbYnO];
if(cIAkk.onmouseover)cIAkk.onmouseover=null;
if(cIAkk.onmouseout)cIAkk.onmouseout=null;
}
}
function NrcMe()
{
for(var vmVdH in document.wa_global_list_element)
{
var VMDZc=document.wa_global_list_element[vmVdH]
var oVkvH=document.getElementById(VMDZc)
oVkvH.onclick=function()
{
WA_focus(this)
}
}
}
function WA_declare(VMDZc)
{
if(!document.wa_global_list_element)
{
document.wa_global_list_element=new Array();;
}
document.wa_global_list_element.push(VMDZc)
}
function fUafk()
{
var ZSQCD=window.location.search;
if(ZSQCD.substr(0,1)=="?")ZSQCD=ZSQCD.substr(1);
if(ZSQCD.length==0)return;
var BCLHs=new Array();
var VGIOu=ZSQCD.split("&");
for(var i=0;i<VGIOu.length;i++)
{
var JgOie=VGIOu[i].split("=");BCLHs[JgOie[0]]=JgOie[1];
}
var kVooQ_info=BCLHs["crbst_info"];
if(!kVooQ_info)return;
var uHrgJ=new Array();
uHrgJ.m_unid=kVooQ_info;
uHrgJ.m_index_item=-1;
var reELc=kVooQ_info.indexOf("-");
if(reELc!=-1)
{
uHrgJ.m_unid="wa-id-"+kVooQ_info.substring(0,reELc);
uHrgJ.m_index_item=parseInt(kVooQ_info.substring(reELc+1));
}
document.wa_global_query_info=uHrgJ;
}
function IS_onload_WA()
{

if(isMSIE8())
{
wa_timeout("IS_onload_ui()",0)
}
else
{
IS_onload_ui()
}
if(isIPhone())
{
VaRUn()
}
else
{
NrcMe()
}
fUafk();

ZZOxG()
}
function ZZOxG()
{
var bKUhj=0;
var ltgBj=document.webaca_banner_height;
if(document.webaca_page_is_centered)
{
var OwNbh=getWindowSize().width
var KIWTZ=document.webaca_width_page
if(OwNbh>KIWTZ)bKUhj=(OwNbh-KIWTZ)/2;
}
document.body.style.backgroundPosition=bKUhj+"px "+ltgBj+"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 Mgreg=CONST_WA_COUNTRIES.codes[n]
var VRJon=CONST_WA_COUNTRIES.labels[n]
Translator.m_countries[Mgreg]=VRJon
}
}
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(VMDZc,OmpgE,fMQDL)
{
this.VMDZc=VMDZc;
this.OmpgE=OmpgE
this.fMQDL=fMQDL;
this.SXlbm=this.VMDZc+"-div"
this.Nqrdc=this.VMDZc+"-canvas"
this.hLNOl=new Rect(0,0,0,0)
this.LNqQQ=false;
this.vIDiE=false;
this.tKWlq=6;
this.IOwRi=false;
this.MrpJp=false;
this.INuBU=false;
this.NRHuS="";
this.shadow=function()
{
return this.fMQDL;
}
this.marginShadow=function()
{
return this.tKWlq;
}
this.rect=function()
{
return this.hLNOl;
}
this.canvasId=function()
{
return this.Nqrdc;
}
this.divId=function()
{
return this.SXlbm;
}
this.opacity=function()
{
return this.lixYx;
}
this.img_clip=function()
{
return this.MrpJp;
}
this.img_src=function()
{
return this.IOwRi;
}
this.toHtml=function()
{
var kVooQ=""
kVooQ+="<div id='"+this.SXlbm+"' style=\"";
kVooQ+="position:absolute;";
if(this.NRHuS.length>0)
{
kVooQ+="cursor:pointer;";
}
if(this.rect.x>0)kVooQ+="left:"+this.rect.x+"px;";
if(this.rect.y>0)kVooQ+="top:"+this.rect.y+"px;";
if(this.rect.width>0)kVooQ+="width:"+this.rect.width+"px;";
if(this.rect.height>0)kVooQ+="height:"+this.rect.height+"px;";
if(OmpgE)
kVooQ+="z-index:"+OmpgE+";";
kVooQ+="\" ";
if(this.NRHuS.length>0)
{
kVooQ+="onclick=\""+this.NRHuS+"\" "
}
kVooQ+=">";
if((this.rect.width>0)&&this.shadow())
{
kVooQ+=html_canvas(this.Nqrdc,this.rect.width+2*this.tKWlq,this.rect.height+2*this.tKWlq)+"</div>";
}
else
{
kVooQ+=html_canvas(this.Nqrdc,0,0)+"</div>";
}
return kVooQ
}
this.setImage=function(WqJrm,jslJt,MaqdO)
{
if(MaqdO==undefined)MaqdO=0;
if((WqJrm==this.IOwRi)&&(this.MrpJp&&this.MrpJp.equals(jslJt))&&(this.INuBU==MaqdO))
{
return;
}
this.INuBU=MaqdO;
this.IOwRi=WqJrm;
this.MrpJp=jslJt;
this.DgmrE()
}
this.registerDynamicCanvas=function()
{
registerDynamicCanvas(this.Nqrdc);
this.vIDiE=true;
this.setRect(this.hLNOl.x,this.hLNOl.y,this.hLNOl.width,this.hLNOl.height)
}
this.DgmrE=function()
{
if((this.hLNOl.width>0)&&(this.hLNOl.height>0))
{
this.draw()
}
this.LNqQQ=true
};
this.draw=function(){};
this.setPosition=function(KQLXm,rYeGl)
{
this.hLNOl.x=KQLXm;this.hLNOl.y=rYeGl;
if(this.vIDiE==false)return
html_SetPosition(this.SXlbm,this.hLNOl.x,this.hLNOl.y)
if(this.LNqQQ==false)
{
this.DgmrE()
}
}
this.setOnClick=function(kVooQ)
{
this.NRHuS=kVooQ
}
this.width=function(){return this.hLNOl.width;}
this.height=function(){return this.hLNOl.height;}
this.setSize=function(BeLMu,DPYGK)
{
this.hLNOl.width=BeLMu;this.hLNOl.height=DPYGK;
var XVdEG=BeLMu
var AXJnA=DPYGK
if(this.fMQDL)
{
XVdEG+=2*this.tKWlq
AXJnA+=2*this.tKWlq
}
if(this.vIDiE==false)return
html_SetSize(this.SXlbm,XVdEG,AXJnA)
html_SetCanvasSize(this.Nqrdc,BeLMu,DPYGK)
this.DgmrE()
}
this.setRect=function(KQLXm,rYeGl,BeLMu,DPYGK)
{
this.hLNOl.x=KQLXm;this.hLNOl.y=rYeGl;this.hLNOl.width=BeLMu;this.hLNOl.height=DPYGK;
var XVdEG=BeLMu
var AXJnA=DPYGK
var urUPi=KQLXm
var LNUci=rYeGl
if(this.fMQDL)
{
XVdEG+=2*this.tKWlq
AXJnA+=2*this.tKWlq
urUPi-=this.tKWlq
LNUci-=this.tKWlq
}
if(this.vIDiE==false)return 
html_SetGeometry(this.SXlbm,urUPi,LNUci,XVdEG,AXJnA);
html_SetCanvasSize(this.Nqrdc,XVdEG,AXJnA)
try{this.DgmrE()}catch(e){
alert(e.message)
}
}
this.setVisible=function(jKJbj)
{
if(this.vIDiE==false)return
html_SetVisibility(this.SXlbm,jKJbj)
}
this.setOpacity=function(eteXT)
{
this.lixYx=eteXT 
if(this.vIDiE==false)return
this.DgmrE()
}
}

function is_onresize()
{
WA_Dialog.resizeUI()
try
{
if(WA_PhotoAlbum_resizeUI)WA_PhotoAlbum_resizeUI()
}
catch(e){}
ZZOxG()
}
function is_onscroll()
{
centerFullPageContainer();
}
function registerDynamicCanvas(id)
{
if(isMSIE())
G_vmlCanvasManager.initElement(document.getElementById(id));
}
function WA_openDialogAction(vmVdH)
{
var IXIGb=WA_Dialog.aOPCQ;
if(vmVdH==-1){IXIGb.closeWin();return;}
var aapMi=IXIGb.KCrXW(vmVdH);
if(aapMi[5])
{
aapMi[4].call(aapMi[6],aapMi[5])
}
else
{
aapMi[4](aapMi[5]);
}
}
function WA_Dialog(jKJbj_close_button)
{
this.sPCRR=0;
this.TbCGx=0;
this.QIPjU_win_width=600;
this.QIPjU_win_height=400;
this.cMhEr=new Array();
this.ZUsQH="wa-dialog-but-";
this.UQlZB=this.ZUsQH+"div-";
this.dvDJV=this.ZUsQH+"canvas-";
this.BUTTON_HEIGHT=25;
this.wcLPr=CONST_WA_GLOBAL_COLOR_THEME;
this.jKJbj_close_button=jKJbj_close_button;
this.fFQQk=6;
this.MXIIW=function()
{
if(this.jKJbj_close_button==undefined)this.jKJbj_close_button=true;
this.eOVUP();
}
this.resetButtons=function()
{
this.eOVUP();
}
this.idealHeight=function()
{
return this.ldnBC
}
this.displayWindowWithAutoResize=function(GqmbN,nXGlD)
{
this.jlurd=false
this.ldnBC=GqmbN
this.FavCg=nXGlD 
this.resetButtons();
nXGlD.call(this)
var l=document.getElementById('wa-dialog-content');
if(this.jlurd==false)
if(l.scrollHeight>200)
{
this.jlurd=true
this.ldnBC=l.scrollHeight+150
this.resetButtons();
nXGlD.call(this)
}
}
this.initializeWindow=function(QIPjU_lx,QIPjU_ly)
{
if(WA_Dialog.aOPCQ)WA_Dialog.aOPCQ.closeWin()
WA_Dialog.aOPCQ=this;
this.QIPjU_win_width=QIPjU_lx;
this.QIPjU_win_height=QIPjU_ly;
this.CSHbo()
}
this.progress=function()
{
this.initializeWindow(300,100) 
this.writeContent("<div width=100% align=center><img src='wa_loading.gif'></div>")
}
this.Sbiwp=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(VRJon,hRCkJ,iZnTI,qVxMS)
{
var IagUj=this.cMhEr.length
if(this.jKJbj_close_button==true)
{
IagUj--;
}
var BeLMu=Math.max((VRJon.length*8)*1.2+30,80)
var KlfSN=new Size(BeLMu,this.BUTTON_HEIGHT);
this.xpfub("action_"+IagUj,IagUj,VRJon,hRCkJ,KlfSN,iZnTI,qVxMS)
}
this.eOVUP=function()
{
this.cMhEr=new Array();
if(this.jKJbj_close_button)
{
var KlfSN=new Size(120,20);
this.xpfub("close",-1,Translator.tr("Close")+" - X",null,KlfSN)
}
}
this.xpfub=function(RLXqd,IagUj,VRJon,hRCkJ,KlfSN,iZnTI,qVxMS)
{
var aapMi=[RLXqd,KlfSN,IagUj,VRJon,hRCkJ,iZnTI,qVxMS];
this.cMhEr.push(aapMi);
}
this.writeContent=function(s)
{
var l=document.getElementById('wa-dialog-content');
l.innerHTML=s
}
this.KCrXW=function(RLXqd)
{
for(var vmVdH=0;vmVdH<this.cMhEr.length;vmVdH++)
{
var aapMi=this.cMhEr[vmVdH];
if((aapMi[0]==RLXqd)||(aapMi[2]+""==RLXqd+""))
return aapMi;
}
return undefined;
}
this.qeMmn=function(RLXqd)
{
var aapMi=this.KCrXW(RLXqd);
return aapMi[1]
}
this.ispmC=function(GAupv)
{
var aapMi=this.KCrXW(GAupv);
var RLXqd=aapMi[0];
var IagUj=aapMi[2];
var uXppi_text=this.wcLPr[4]
var uXppi_bg=this.wcLPr[5]
var uXppi_glow=this.wcLPr[7]
if(IagUj==-1)
{
uXppi_text=this.wcLPr[10]
uXppi_bg=this.wcLPr[8]
uXppi_glow=this.wcLPr[11]
}
var rmbav=this.UQlZB+RLXqd;
var VpRBC=this.dvDJV+RLXqd;
var KlfSN=this.qeMmn(GAupv)
var jNvEI=this.fFQQk;
var s=""
s+="<a href='javascript:WA_openDialogAction("+GAupv+")' ";
var uXppi=new RGBColor(uXppi_bg);
var gNLCQ=uXppi.toHsl();
uXppi.fromHsl(gNLCQ[0],gNLCQ[1],gNLCQ[2]+0.2)
uXppi_bg=uXppi.toRGB();
var SAfGk_glow=new RGBColor(uXppi_glow);
var rnriW=SAfGk_glow.toHsl();
SAfGk_glow.fromHsl(rnriW[0],rnriW[1],rnriW[2]+0.2)
uXppi_glow=SAfGk_glow.toRGB();
s+="onmouseover=\"WA_but_over('"+VpRBC+"','"+uXppi_bg+"','"+uXppi_glow+"')"+"\" ";
s+="onmouseout=\""+"WA_but_out('"+VpRBC+"')"+"\" ";
s+="style='text-decoration:none;'>";
s+="<div id='"+this.UQlZB+RLXqd+"' style='position:absolute;cursor:pointer;left:0px;top:0px;height:"+KlfSN.height+"px;width:"+KlfSN.width+"px;' >";
s+="<div style='position:absolute;left:"+(-jNvEI)+"px;top:"+(-jNvEI)+"px;height:"+KlfSN.height+"px;'>"
s+="<canvas id='"+this.dvDJV+RLXqd+"' width="+(KlfSN.width+jNvEI*2)+" height="+(KlfSN.height+jNvEI*2)+" ></canvas>";
s+="</div>"
s+="<div align=center style='position:absolute;left:0px;top:"+(0)+"px;vertical-align:middle;width:100%;height:"+(KlfSN.height)+"px;line-height:"+(KlfSN.height)+"px;font-family:arial;font-size:13px;font-weight:bold;color:"+uXppi_text+"'>"
s+=aapMi[3];
s+="</div>"
s+="</div>"
s+="</a>"
return s;
}
this.getColorTheme=function(vmVdH)
{
return this.wcLPr[vmVdH];
}
this.VXjcR=function(RLXqd)
{
var aapMi=this.KCrXW(RLXqd);
var IagUj=aapMi[2];
var uXppi_bg=this.wcLPr[5]
var uXppi_glow=this.wcLPr[7]
var uXppi_text=this.wcLPr[3]
if(IagUj==-1)
{
uXppi_bg=this.wcLPr[8]
uXppi_glow=this.wcLPr[11]
uXppi_text=this.wcLPr[10]
}
var Mgreg=this.dvDJV+RLXqd;
registerDynamicCanvas(Mgreg);
var KlfSN=this.qeMmn(RLXqd);
var hEBqX=KlfSN.height*0.25;
var aTitY=(KlfSN.height-hEBqX)/2;
var wqkZl=(KlfSN.width-2);
var DPYGK_circle_top=hEBqX*2;
var QRFeP_top=[(KlfSN.width-wqkZl)/2,1,wqkZl,DPYGK_circle_top,aTitY];
var BeLMu_circle_bottom=KlfSN.width*0.9;
var DPYGK_circle_bottom=KlfSN.height*0.45;
var DHihi=uXppi_glow;
var GpbUX=uXppi_glow;
var CEXpO=DPYGK_circle_bottom/2;
var QRFeP_bottom=[(KlfSN.width-BeLMu_circle_bottom)/2,KlfSN.height-DPYGK_circle_bottom-1,BeLMu_circle_bottom,DPYGK_circle_bottom,CEXpO,DHihi,GpbUX];
WA_but(Mgreg,0,KlfSN.width,KlfSN.height,hEBqX,uXppi_bg,QRFeP_top,QRFeP_bottom,true,0)
}
this.VNbaQ=function(RLXqd)
{
var aapMi=this.KCrXW(RLXqd)
if(aapMi)
{
var Mgreg=this.UQlZB+aapMi[0];
return document.getElementById(Mgreg);
}
return undefined
}
this.CSHbo=function()
{
var l=document.getElementById('wa-dialog-container');
l.style.display="block" 

var s="";
var QgBap=document.webaca_banner_height
s+="<div  style='position:absolute;left:0px;top:"+QgBap+"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:"+QgBap+"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 rbYnO in this.cMhEr)
{
s+=this.ispmC(this.cMhEr[rbYnO][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.iKMlX)
}
this.iKMlX=function()
{
registerDynamicCanvas('wa-dialog1');
for(var rbYnO in this.cMhEr)
{
this.VXjcR(this.cMhEr[rbYnO][0])
}
this.cgiES()
}
this.intern_closeWin=function()
{
var l=document.getElementById('wa-dialog-container');
l.style.display="none"
WA_Dialog.aOPCQ=false
}
this.closeWin=function()
{
this.intern_closeWin()
}
this.cssText1=function()
{
return "font-family:Arial;font-size:15px;color:"+this.wcLPr[3]+";";
}
this.onCustomKeypress=function(vjLlk)
{
if((this.cMhEr.length==1)&&(vjLlk==13))
{
this.closeWin()
return true;
}
return false;
}
this.onkeypress=function(vjLlk)
{
return this.onCustomKeypress(vjLlk)
}
this.onkeydown=function(vjLlk)
{
if(vjLlk==27)
{
this.closeWin()
return true;
}
return this.onCustomKeypress(vjLlk) 
}
this.customUpdate=function(){}
this.cgiES=function()
{
var BeLMu_page=document.webaca_width_page;
var DPYGK_page=document.webaca_height_page;
var TeGfP=getWindowSize().width
var DPYGK_window=getWindowSize().height 

this.sPCRR=Math.min(TeGfP*0.9,this.QIPjU_win_width)
this.TbCGx=Math.min(DPYGK_window*0.9,this.QIPjU_win_height)
var rbQAH=document.getElementById('wa-dialog1');
rbQAH.width=this.sPCRR+10
rbQAH.height=this.TbCGx+10
var KQLXm=getWindowScroll().x+(TeGfP-rbQAH.width)/2
var rYeGl=getWindowScroll().y+(DPYGK_window-rbQAH.height)/2
KQLXm=(TeGfP-rbQAH.width)/2
rYeGl=(DPYGK_window-rbQAH.height)/2
KQLXm=Math.max(0,KQLXm)
rYeGl=Math.max(0,rYeGl) 
var gSqLp=document.getElementById('wa-dialog-main');
html_SetGeometry('wa-dialog-main',KQLXm,rYeGl,rbQAH.width,rbQAH.height);
var kTUil_bg="(0;0;0;"+this.TbCGx*0.25+";"+this.wcLPr[1]+";"+this.wcLPr[2]+")";
WA_bg('wa-dialog1',this.sPCRR,this.TbCGx,10,3,this.wcLPr[0],[kTUil_bg],true,0)
var ZbWNU=10;
var VwtsI=this.VNbaQ(-1)
if(VwtsI)
{
var gLujQ_close=this.qeMmn(-1)
html_SetPosition(VwtsI,this.sPCRR-gLujQ_close.width+this.fFQQk-ZbWNU,this.fFQQk+ZbWNU)
}
var ItrfL_buttons=this.cMhEr.length;
if(this.jKJbj_close_button==true)
{
ItrfL_buttons--;
}
var dEEiq=10;
var KaWPe=0;
for(var rbYnO=0;rbYnO<ItrfL_buttons;rbYnO++)
{
if(rbYnO>0) KaWPe+=dEEiq;
var gLujQ=this.qeMmn(rbYnO);
KaWPe+=gLujQ.width;
}
var HAYie=(this.sPCRR-KaWPe)/2
for(var rbYnO=0;rbYnO<ItrfL_buttons;rbYnO++)
{
if(rbYnO>0) HAYie+=dEEiq;
var cINTs=this.VNbaQ(rbYnO);
var gLujQ=this.qeMmn(rbYnO);
html_SetPosition(cINTs,HAYie+this.fFQQk,+this.fFQQk+this.TbCGx-gLujQ.height-2*ZbWNU)
HAYie+=gLujQ.width;
}
var DPYGK_top=45;
var DPYGK_bottom=this.BUTTON_HEIGHT+2*ZbWNU;
if(ItrfL_buttons==0)
{
DPYGK_bottom=0;
}
var DPYGK_content=(this.TbCGx-DPYGK_top-DPYGK_bottom)-ZbWNU
var vdZut=document.getElementById('wa-dialog-content');
var IXIGb_content=Math.round(this.sPCRR-2*ZbWNU)
var DSmME=Math.round(DPYGK_content)
this.m_content_lx=IXIGb_content
this.m_content_ly=DSmME
html_SetGeometry('wa-dialog-content',Math.round(5+(this.sPCRR-IXIGb_content)/2),Math.round(5+DPYGK_top+(DPYGK_content-DSmME)/2),IXIGb_content,DSmME);
this.customUpdate() 
var okuxc=document.getElementById('wa-dialog-container');
KmhTC=getWindowFullSize().width
DPYGK_full_client=getWindowFullSize().height
html_SetSize('wa-dialog-container',KmhTC,DPYGK_full_client);
centerFullPageContainer();
}
this.MXIIW();
}
function WA_exec_callback_opera_compliant(iZnTI,tBmAK)
{
if(/opera/i.test(navigator.userAgent))
ixYVA(iZnTI,tBmAK)
else
tBmAK.call(iZnTI)
}
function ixYVA(iZnTI,tBmAK)
{
wa_timeout(lEATe,0,iZnTI,tBmAK);
}
function lEATe(iZnTI,tBmAK)
{
tBmAK.call(iZnTI)
}
WA_Dialog.getCurrent=function()
{
return WA_Dialog.aOPCQ;
}
WA_Dialog.aOPCQ=false;
WA_Dialog.resizeUI=function()
{
if(WA_Dialog.aOPCQ)
{
WA_Dialog.aOPCQ.cgiES()
}
}
WA_Dialog.alert=function(s)
{
var w=new WA_Dialog();
w.Sbiwp(s)
}
WA_Dialog.progress=function()
{
var w=new WA_Dialog(false);
w.progress()
}
function centerFullPageContainer()
{
var BeLMu_page=document.webaca_width_page;
var DPYGK_page=document.webaca_height_page;
var okuxc=document.getElementById('wa-dialog-container');
KmhTC=getWindowSize().width
DPYGK_full_client=getWindowSize().height
var rYeGl_bg=getWindowScroll().y;
rYeGl_bg=Math.min(rYeGl_bg,DPYGK_page-DPYGK_full_client+1)
rYeGl_bg=Math.max(rYeGl_bg,0)
var XGYUS=getWindowScroll().x;
XGYUS=Math.min(XGYUS,BeLMu_page-KmhTC+1)
XGYUS=Math.max(XGYUS,0) 
html_SetPosition('wa-dialog-container',XGYUS,rYeGl_bg,KmhTC,DPYGK_full_client);
}

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

}
};
return http_request;
}
function makePOSTRequest(url,parameters,callback,gIxQw)
{
var http_request=getXMLHttpRequest(callback,gIxQw);
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(tGmlg,LxnQM,qVxMS)
{
var result=LxnQM.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 TelGM=qVxMS[0] 
WA_Dialog.alert(Translator.tr("Success:Mail sended"));
var form=document.getElementById(TelGM);
form.reset()
}
else
{
var CqvBC="error_string="
n=result.indexOf(CqvBC)
if(n>-1)
{
result=result.substring(n+CqvBC.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 CEljY=el.value
CEljY=encodeURI(CEljY)
CEljY=CEljY.replace(/&/g,escape("&")) 
poststr+=el.name.replace("_mandatory","")+"="+CEljY+"&"
}
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(mALVe)
{
var WwlSM=document.getElementById(mALVe);
WwlSM.submit() 
}
function JvVuD(VMDZc,qVxMS)
{
var vjLlk=qVxMS[0]
if(vjLlk==13)
{
var mALVe=VMDZc+"-form";
var WwlSM=document.getElementById(mALVe);
for(var i=0;i<WwlSM.elements.length;i++)
{
var oVkvH=WwlSM.elements[i];
if((oVkvH.type=="textarea")&&(oVkvH.focused))return true;
}
WA_form_submit(mALVe);
return false;
}
return true;
}
function WA_addFormDeclaration(VMDZc,JRjwi)
{
return WA_addHandler(VMDZc,"keypress",JvVuD)
}
function WA_form_bg(id,lx,ly,arc,EhGgA,bord_col,bg,shadow,MaqdO,qCRaY)
{
WA_bg(id,lx,ly,arc,EhGgA,bord_col,bg,shadow,MaqdO,1.0,true) 
var UcqMS=qCRaY.x;
var ajFen=0;
var xEWeU=qCRaY.cells
for(var n=0;n<xEWeU.length;n++)
{
var oFwvu=xEWeU[n]
var arc2=0
HHDtA(id,UcqMS,ajFen+oFwvu.y,qCRaY.w,oFwvu.h,arc2,1,qCRaY.border,[''],false,0,1.0,false)
HHDtA(id,UcqMS,ajFen+oFwvu.y,oFwvu.w,oFwvu.h,arc2,1,"rgba(0,0,0,0)",[qCRaY.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(oIVAi)
{
this.ok=false;this.a=1.0;
if(oIVAi.charAt(0)=='#'){oIVAi=oIVAi.substr(1);}
oIVAi=oIVAi.replace(/ /g,'');
oIVAi=oIVAi.toLowerCase();
var TfkuL=[
{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<TfkuL.length;i++){
var IKVwd=TfkuL[i].re;
var mCJLr=TfkuL[i]._process;
var deZNM=IKVwd.exec(oIVAi);
if(deZNM){
var hqXXL=mCJLr(deZNM);
this.r=hqXXL[0];this.g=hqXXL[1];this.b=hqXXL[2];this.a=hqXXL[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.hooJX=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.hooJX(p,q,h+1/3);g=this.hooJX(p,q,h);b=this.hooJX(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 cOfVR(QLTKt,qVxMS)
{
if(document.wa_global_handlers!=undefined)
{
var VMDZc=WA_focused_element()
if(VMDZc)
{
var hRCkJ=document.wa_global_handlers[VMDZc+"-"+QLTKt]
if(hRCkJ) return hRCkJ([VMDZc],qVxMS)
}
}
return true;
}
function jGIEs(e)
{
if(window.event){return e.keyCode;}
else 
if(e.which) return  e.which;
return-1;
}
function WA_onkeypress(e)
{
var vjLlk=jGIEs(e);
if(WA_Dialog.aOPCQ)
{
if(WA_Dialog.aOPCQ.onkeypress(vjLlk))
{
return false;
}
}
return cOfVR("keypress",[vjLlk]);
}
function WA_ondblclick(e)
{
return cOfVR("dblclic",[""]);
}
function WA_onkeydown(e)
{
var vjLlk=jGIEs(e)
if(WA_Dialog.aOPCQ)
{
if(WA_Dialog.aOPCQ.onkeydown(vjLlk))
{
return false;
}
}
if(vjLlk==13) return true;

if(wa_global_photo_album&&wa_global_photo_album.fullpage_object)
{
var iZnTI=wa_global_photo_album.fullpage_object
return iZnTI.onFullScreenKeydown(vjLlk) 
}
return cOfVR("keydown",[vjLlk]);
}
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 VMDZc=this.id
var hRCkJ=document.wa_global_handlers[VMDZc+"-mousewheel"]
if(hRCkJ)
{
if(hRCkJ([VMDZc],[delta]))
{
b_default=true;
}
}
}
}
if(b_default)
if(e.preventDefault)
e.preventDefault();
e.returnValue=!b_default;
}
function WA_addHandler(VMDZc,QLTKt,tBmAK)
{
if(document.wa_global_handlers==undefined) document.wa_global_handlers=new Array()
if(QLTKt=="mousewheel")
{
var YKTBJ=document.getElementById(VMDZc);
if(YKTBJ.addEventListener)
YKTBJ.addEventListener('DOMMouseScroll',WA_genericMouseWheelHandler,false);
YKTBJ.onmousewheel=WA_genericMouseWheelHandler
}
document.wa_global_handlers[VMDZc+"-"+QLTKt]=tBmAK
}
function WA_loadPhotoAlbum(VMDZc,xWriv,KlfSN,VMDZc_modif)
{
if(typeof(wa_global_photo_album[VMDZc])=="undefined")
{
var o=new Array();
o.src_folder=xWriv
o.size_container=KlfSN
o.id_modif=VMDZc_modif
wa_global_photo_album[VMDZc]=o;
}
}
function WA_focused_element()
{
return document.wa_global_focused_element
}
function WA_focus(iZnTI)
{
document.wa_global_focused_element=iZnTI.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(ZLuKI,KFDfD,OftOn)
{
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[KFDfD])document.wa_global_blogs_elements[KFDfD]=new Array()
document.wa_global_blogs_elements[KFDfD].id_blog=ZLuKI
document.wa_global_blogs_elements[KFDfD].has_email=OftOn
}
function WA_addSearchHandler(VMDZc)
{
return WA_addHandler(VMDZc,"keypress",MkeYB)
}
function MkeYB(VMDZc,qVxMS)
{
var vjLlk=qVxMS[0]
if(vjLlk==13)
{
var BiVdo=VMDZc+"-search-input";
WA_onSearch(BiVdo)
return false;
}
return true;
}
function WA_declareSearchIndex(nZEHX,EeBtk)
{
document.const_wa_search_js=nZEHX
document.const_wa_search_index_js=EeBtk
}
function WA_onSearch(BiVdo)
{
var lBEYm=document.getElementById(BiVdo);
if(document.wa_search_js_loaded==true)
{
WA_openSearchDialog(lBEYm,document.const_wa_search_index_js)
}
else
{
WA_Dialog.progress();
EbZGl(lBEYm)
}
}
function DoArd(qVxMS)
{
document.wa_search_js_loaded=true
WA_openSearchDialog(qVxMS[0],document.const_wa_search_index_js)
}
function EbZGl(KPMIU)
{
WA_loadScript(document.const_wa_search_js,DoArd,[KPMIU])
}
function GjBwF(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 GjBwF(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(VMDZc)
{
var GSiqm=document.wa_global_menu_declaration[VMDZc]
WA_bg(VMDZc,GSiqm.root_lx,GSiqm.root_ly,GSiqm.root_corner,GSiqm.root_border,GSiqm.root_col_border,[GSiqm.root_bg],false,0)
var oVkvH=document.getElementById(GSiqm.id)
if(!oVkvH)return;
var c=oVkvH.getContext('2d');
c.lineWidth=1
c.strokeStyle=GSiqm.root_col_separator
var ahaGu=0.5;

var qvknu=GSiqm.root_sizes.length
if(GSiqm.root_extend==false)
{
qvknu--;
}
var ZDxiq=3;
for(var i=0;i<qvknu;i++)
{
var KlfSN=GSiqm.root_sizes[i] 

c.beginPath();
if(GSiqm.root_vertical==false)
{
ahaGu+=(KlfSN-1)
c.moveTo(ahaGu,ZDxiq)
c.lineTo(ahaGu,GSiqm.root_ly-ZDxiq)
}
else
{
ahaGu+=(KlfSN)
c.moveTo(ZDxiq,ahaGu-1,0)
c.lineTo(GSiqm.root_lx-ZDxiq,ahaGu-1)
}
c.closePath();
c.stroke()
}
}
function WA_declare_menu(VMDZc,GSiqm)
{
if(!document.wa_global_menu_declaration)document.wa_global_menu_declaration=new Array();
GSiqm.id=VMDZc
document.wa_global_menu_declaration[VMDZc]=GSiqm
WA_bg_menu(VMDZc)
}
function WA_declareMarket(VMDZc,EqgSW_market,VMDZc_modif)
{
if(typeof(wa_global_market.markets[VMDZc])=="undefined")
{
var o=new Array();
o.src_folder=EqgSW_market
o.id_modif=VMDZc_modif 

o.id=VMDZc
wa_global_market.markets[VMDZc]=o;
}
}
function WA_button_market_declare(VMDZc,VRJon)
{
if(!document.wa_global_button_market_declaration)document.wa_global_button_market_declaration=new Array();
document.wa_global_button_market_declaration[VMDZc]=VRJon
}
function KDlOu(c,img,KQLXm,rYeGl,BeLMu,DPYGK,jslJt,ZmAPI,tJDnW)
{
c.globalAlpha=ZmAPI
if(tJDnW) c.clearRect(0,0,BeLMu,DPYGK) 
if(ZmAPI==0)return;
if(jslJt)
{
c.drawImage(img,jslJt.x,jslJt.y,jslJt.width,jslJt.height,KQLXm,rYeGl,BeLMu,DPYGK)
}
else
{
c.drawImage(img,KQLXm,rYeGl,BeLMu,DPYGK)
}
}
function WA_drawImage(id,WqJrm,KQLXm,rYeGl,BeLMu,DPYGK,jslJt,ZmAPI,tJDnW)
{
if(tJDnW==undefined)tJDnW=true;
if(ZmAPI==undefined)ZmAPI=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==WqJrm)
{
KDlOu(c,c.LUlKE,KQLXm,rYeGl,BeLMu,DPYGK,jslJt,ZmAPI,tJDnW)
return;
}
var img=new Image();
img.VmDum=el.VmDum
img.onload=function()
{
c.old_src=WqJrm
c.LUlKE=this;
KDlOu(c,this,KQLXm,rYeGl,BeLMu,DPYGK,jslJt,ZmAPI,tJDnW)
}
img.src=WqJrm;
}

-->
