<!--

function Delegate(){}
Delegate.create=function(o,f){
var saXpn=new Array();
var rCqHY=arguments.length;
for(var i=2;i<rCqHY;i++) saXpn[i-2]=arguments[i];
return function(){
var qHavd=[].concat(arguments,saXpn);
f.apply(o,qHavd);
}
}
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.PhLmN=0;
t.nXsPR=0;
t.caowe=0;
t.XOVix=0;
t.omtXJ=0;
t.TQHKX=0;
t.JxcXO=false;
t.name='';
t.suffixe='';
t.fbVOa=new Array();
t.setTime=function(t){
this.prevTime=this.nXsPR;
if(t>this.getDuration()){
if(this.looping){
this.rewind(t-this.PhLmN);
this.update();
this.rIoJW('onMotionLooped',{target:this,type:'onMotionLooped'});
}else{
this.nXsPR=this.PhLmN;
this.update();
this.stop();
this.rIoJW('onMotionFinished',{target:this,type:'onMotionFinished'});
}
}else if(t<0){
this.rewind();
this.update();
}else{
this.nXsPR=t;
this.update();
}
}
t.isRunning=function(){
return this.JxcXO;
}
t.getTime=function(){
return this.nXsPR;
}
t.setDuration=function(d){
this.PhLmN=(d==null||d<=0)?100000:d;
}
t.getDuration=function(){
return this.PhLmN;
}
t.setPosition=function(p){
this.prevPos=this.caowe;
var a=this.suffixe!=''?this.suffixe:'';
this.obj[this.prop]=Math.round(p)+a;
this.caowe=p;
this.rIoJW('onMotionChanged',{target:this,type:'onMotionChanged'});
}
t.getPosition=function(t){
if(t==undefined) t=this.nXsPR;
return this.func(t,this.begin,this.change,this.PhLmN);
};
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.fbVOa=new Array();
this.addListener(this);
if(suffixe) this.suffixe=suffixe;
this.obj=obj;
this.prop=prop;
this.begin=begin;
this.caowe=begin;
this.setDuration(duration);
if(func!=null&&func!=''){
this.func=func;
}
this.setFinish(finish);
}
t.start=function(){
this.rewind();
this.startEnterFrame();
this.rIoJW('onMotionStarted',{target:this,type:'onMotionStarted'});
}
t.rewind=function(t){
this.stop();
this.nXsPR=(t==undefined)?0:t;
this.fixTime();
this.update();
}
t.fforward=function(){
this.nXsPR=this.PhLmN;
this.fixTime();
this.update();
}
t.update=function(){
this.setPosition(this.getPosition(this.nXsPR));
}
t.startEnterFrame=function(){
this.stopEnterFrame();
this.JxcXO=true;
this.onEnterFrame();
}
t.onEnterFrame=function(){
if(this.JxcXO){
this.nextFrame();
wa_timeout(Delegate.create(this,this.onEnterFrame),0);
}
}
t.nextFrame=function(){
this.setTime((this.getTimer()-this.omtXJ)/1000);
}
t.stop=function(){
this.stopEnterFrame();
this.rIoJW('onMotionStopped',{target:this,type:'onMotionStopped'});
}
t.stopEnterFrame=function(){
this.JxcXO=false;
}
t.continueTo=function(finish,duration){
this.begin=this.caowe;
this.setFinish(finish);
if(this.PhLmN!=undefined)
this.setDuration(duration);
this.start();
}
t.resume=function(){
this.fixTime();
this.startEnterFrame();
this.rIoJW('onMotionResumed',{target:this,type:'onMotionResumed'});
}
t.yoyo=function(){
this.continueTo(this.begin,this.nXsPR);
}
t.addListener=function(o){
this.removeListener(o);
return this.fbVOa.push(o);
}
t.removeListener=function(o){
var a=this.fbVOa;
var i=a.length;
while(i--){
if(a[i]==o){
a.splice(i,1);
return true;
}
}
return false;
}
t.rIoJW=function(){
var arr=new Array();
for(var i=0;i<arguments.length;i++){
arr.push(arguments[i])
}
var e=arr.shift();
var a=this.fbVOa;
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.omtXJ=this.getTimer()-this.nXsPR*1000;
}
t.getTimer=function(){
return new Date().getTime()-this.nXsPR;
}
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,vGhnO,hpOkv,PhLmN){
this.targetObject=obj;
this.init(new Object(),'a',func,vGhnO,hpOkv,PhLmN);
this.onMotionChanged=function(evt){
var v=evt.target.caowe;
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(AaWPd,gFUDV,qgeJE)
{
return "<canvas id='"+AaWPd+"' width='"+gFUDV+"' height='"+qgeJE+"'></canvas>"
}
function WA_canvas(AaWPd,gFUDV,qgeJE)
{
document.write(html_canvas(AaWPd,gFUDV,qgeJE))
}
function fvkMB(ogFNh,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;
ogFNh.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;
ogFNh.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;
ogFNh.quadraticCurveTo(cx,cy,px,py);
}
}
function XoYjq(c,x,y,lx,ly,arc,clowckwise)
{
c.beginPath()
CiGjv(c,x,y,lx,ly,arc,clowckwise)
}
function CiGjv(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 FGONC()
{
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 iBKLj(lx,ly,parent,id_suffixe)
{
var XJeVI=document.createElement('canvas');XJeVI.width=lx;XJeVI.height=ly;
return XJeVI;
}
function CsPwV(tGGSQ)
{
var qunrW=(-tGGSQ+45);
return new Point(Math.cos(qunrW*(2*Math.PI)/360),Math.sin(qunrW*(2*Math.PI)/360))
}
function rNjax(c,tGGSQ)
{
var offset=CsPwV(tGGSQ)
c.shadowOffsetX=2*offset.x;
c.shadowOffsetY=2*offset.y;
c.shadowBlur=4;
}
function WA_over_img_html(ZLnfL,PTqBq,CYVZa)
{
if(!ZLnfL.src)
{
var tWGpE=ZLnfL.getElementsByTagName("IMG")
if(tWGpE.length==1)ZLnfL=tWGpE[0]
}
if(ZLnfL.src1==undefined)
{
ZLnfL.src1=ZLnfL.src;
ZLnfL.src2=PTqBq;
}
if(CYVZa)
{
ZLnfL.src=ZLnfL.src2;
}
else
{
ZLnfL.src=ZLnfL.src1;
}
}
function WA_over_img(id,CYVZa)
{
var el=document.getElementById(id+"-canvas") 

var ZLnfL=(CYVZa)?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,[ZLnfL,ZLnfL],el.wa_shadow,el.wa_rot,el.wa_reflex)
}
function OWKSF(AaWPd,lx,ly,arc,side)
{
this.id=AaWPd;
this.lx=lx;
this.ly=ly;
this.arc=arc;
var nSide=side
var reflexion=0.25
var sizeReflex=ly*reflexion;
this.decX=0
this.decY=0
this.sX=0;
this.sY=ly-sizeReflex;
this.sLx=lx;
this.sLy=sizeReflex;
this.gradX1=0
this.gradY1=this.sY
this.gradX2=0
this.gradY2=ly 
if(nSide==2)
{
this.decY=1
}
if(nSide==1)
{
sizeReflex=lx*reflexion;
this.sX=lx-sizeReflex;
this.sY=0;
this.sLx=sizeReflex;
this.sLy=ly;
this.gradX1=this.sX
this.gradY1=0
this.gradX2=lx
this.gradY2=0
this.decX=1
}
if(nSide==0)
{
sizeReflex=ly*reflexion;
this.sX=0;
this.sY=0;
this.sLx=lx;
this.sLy=sizeReflex;
this.gradX1=0
this.gradY1=sizeReflex
this.gradX2=0
this.gradY2=0
this.decY=-1
}
if(nSide==3)
{
sizeReflex=lx*reflexion;
this.sX=0;
this.sY=0;
this.sLx=sizeReflex;
this.sLy=ly;
this.gradX1=sizeReflex
this.gradY1=0
this.gradX2=0
this.gradY2=0
this.decX=-1
}
this.AWJbq=function(canv2)
{
if(/opera/i.test(navigator.userAgent)) return;
if(navigator.userAgent.match(/Firefox/i))
{
var div=document.getElementById(this.id)
if(div.style.MozTransform===undefined) return;
}
var rnbpY=document.getElementById(this.id+"-reflex")
var BlYwC=rnbpY.getContext('2d');
BlYwC.translate(this.lx,0)
BlYwC.scale(-1,1)
BlYwC.beginPath()
XoYjq(BlYwC,1,1,this.lx-2,this.ly-2,this.arc)
BlYwC.clip()
BlYwC.drawImage(canv2,this.sX,this.sY,this.sLx,this.sLy,this.sX,this.sY,this.sLx,this.sLy);
BlYwC.globalCompositeOperation="destination-out";
var gradient=BlYwC.createLinearGradient(this.gradX1,this.gradY1,this.gradX2,this.gradY2);
gradient.addColorStop(0,"rgba(255, 255, 255, 1)");
gradient.addColorStop(1,"rgba(255, 255, 255, 0.1)");
BlYwC.fillStyle=gradient;
BlYwC.beginPath()
BlYwC.rect(this.sX-this.decX,this.sY-this.decY,this.sLx,this.sLy);
BlYwC.fill();
BlYwC.globalCompositeOperation="source-over";
BlYwC.scale(-1,1)
BlYwC.translate(-this.lx,0) 
}
}
function extractNum(st)
{
var len=st.length
if((len>0)&&(st.substring(len-2,len)=="px"))
{
return wa_evaluate(st.substring(0,len-2))
}
return 0;
}
function DQYEq(c2,lx,ly,NNtuv,bord_col,arc,arc2)
{
if(NNtuv>0)
{
c2.beginPath()
c2.fillStyle=bord_col;
c2.beginPath()
XoYjq(c2,0,0,lx,ly,arc)
CiGjv(c2,NNtuv,NNtuv,lx-2*NNtuv,ly-2*NNtuv,arc2,true)
c2.fill()
}
}
function vHGpE()
{
this.tx=0
this.ty=0
this.rotation=0
}
function gvumY(id,lx,ly,rot,c2,canv2,shadow,matrix)
{
if(navigator.userAgent.match(/Firefox/i)||navigator.userAgent.match(/opera/i))
{
var div=document.getElementById(id)
if(div.style.MozTransform!=undefined) return;
if(matrix==undefined)
{
matrix=new vHGpE()
}
div.style.webkitTransformOrigin="0 0"
div.style.webkitTransform="rotate(0deg)";
if(div.style.MozTransform!=undefined)
{
div.style.MozTransform="rotate(0deg)";
div.style.MozTransformOrigin="top left"
}
rot=Math.round(rot/90)*90 
var TaGlo=0;
if(shadow)TaGlo=6
var MlmBJ=id+"-canvas"
var el=document.getElementById(MlmBJ)
if(div.wa_pos==undefined)
{
div.wa_pos=new Point(extractNum(div.style.left),extractNum(div.style.top))
}
if(div.wa_size==undefined)
{
div.wa_size=new Size(extractNum(div.style.width),extractNum(div.style.height))
}
if(rot==90)
{
html_SetPosition(div,div.wa_pos.x-(ly)-TaGlo,div.wa_pos.y-TaGlo)
html_SetCanvasSize(el,div.wa_size.height+2*TaGlo,div.wa_size.width+2*TaGlo)
html_SetCanvasSize(canv2,div.wa_size.height+4*TaGlo,div.wa_size.width+4*TaGlo)
html_SetSize(div,div.wa_size.height+2*TaGlo,div.wa_size.width+2*TaGlo) 
matrix.tx=ly+2*TaGlo
matrix.ty=2*TaGlo
}
if(rot==180)
{
html_SetPosition(div,div.wa_pos.x-lx,div.wa_pos.y-ly)
matrix.tx=lx
matrix.ty=ly
}
if(rot==270)
{
html_SetPosition(div,div.wa_pos.x-TaGlo,div.wa_pos.y-lx-TaGlo)
html_SetCanvasSize(el,div.wa_size.height+2*TaGlo,div.wa_size.width+2*TaGlo)
html_SetCanvasSize(canv2,div.wa_size.height+4*TaGlo,div.wa_size.width+4*TaGlo)
html_SetSize(div,div.wa_size.height+2*TaGlo,div.wa_size.width+2*TaGlo) 
matrix.tx=2*TaGlo
matrix.ty=lx+2*TaGlo
}
matrix.rotation=rot*2*Math.PI/360
c2.translate(matrix.tx,matrix.ty)
c2.rotate(matrix.rotation)
}
}
function WA_img(id,lx,ly,arc,NNtuv,bord_col,s_img,shadow,rot,nRmFU)
{
var MlmBJ=id+"-canvas"
var el=document.getElementById(MlmBJ)
var c=el.getContext('2d');
var BCiAX=false;
if(nRmFU!=undefined)
{
BCiAX=new OWKSF(MlmBJ,lx,ly,arc,nRmFU)
}
var TaGlo=0;
if(shadow)TaGlo=6 

if(el.wa_lx==undefined)
{
el.wa_lx=lx
el.wa_ly=ly
el.wa_arc=arc
el.wa_bord_siz=NNtuv
el.wa_bord_col=bord_col
el.wa_s_img=s_img
el.wa_shadow=shadow
el.wa_rot=rot
el.wa_reflex=nRmFU
c.translate(TaGlo,TaGlo)
}
var spuQS_img=document.getElementById(id+"-cache")
spuQS_img.onload=function()
{
c.clearRect(0,0,lx+2*TaGlo,ly+2*TaGlo)
var arc2=arc-NNtuv;
if(arc2<0)arc2=0;
this.width=lx-2*NNtuv
this.height=ly-2*NNtuv
if(isMSIE())
{
if(shadow) CiIsc(c,0,0,lx,ly,arc,false,rot)
var JJGNB=c.createPattern(this,'no-repeat');
c.fillStyle=JJGNB;
c.beginPath()
XoYjq(c,NNtuv,NNtuv,lx-2*NNtuv,ly-2*NNtuv,arc2)
c.translate(NNtuv,NNtuv)
c.fill()
c.translate(-NNtuv,-NNtuv)
DQYEq(c,lx,ly,NNtuv,bord_col,arc,arc2)
}
else
if(navigator.userAgent.match(/Firefox/i)&&(shadow))
{
var GLeBw=new  vHGpE()
gvumY(id,lx,ly,rot,c,el,shadow,GLeBw)
if(shadow) CiIsc(c,0,0,lx,ly,arc,false,rot)
var c2=c
DQYEq(c2,lx,ly,NNtuv,bord_col,arc,arc2)
c2.beginPath()
XoYjq(c2,NNtuv,NNtuv,lx-2*NNtuv,ly-2*NNtuv,arc2)
c2.clip()
c2.drawImage(this,NNtuv,NNtuv,lx-2*NNtuv,ly-2*NNtuv);
c2.rotate(-GLeBw.rotation)
c2.translate(-GLeBw.tx,-GLeBw.ty)
}
else
{
var canv2=iBKLj(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
var GLeBw=new  vHGpE()
gvumY(id,lx,ly,rot,c2,canv2,shadow,GLeBw)
c.clearRect(-TaGlo,-TaGlo,lx+2*TaGlo,ly+2*TaGlo)
DQYEq(c2,lx,ly,NNtuv,bord_col,arc,arc2)
c2.beginPath()
XoYjq(c2,NNtuv,NNtuv,lx-2*NNtuv,ly-2*NNtuv,arc2)
c2.clip()
c2.drawImage(this,NNtuv,NNtuv,lx-2*NNtuv,ly-2*NNtuv);
c2.rotate(-GLeBw.rotation)
c2.translate(-GLeBw.tx,-GLeBw.ty)
if(shadow) rNjax(c,rot)
c.drawImage(canv2,0,0);
if(BCiAX)
{
BCiAX.AWJbq(canv2)
}
}
}
spuQS_img.src=s_img[0];
}
function QtDXW(AkuIa,tGGSQ,hdKGY,dUSRI)
{
AkuIa.style.left=hdKGY+"px"
AkuIa.style.top=dUSRI+"px"
AkuIa.style.webkitTransformOrigin="0 0"
AkuIa.style.webkitTransform="rotate("+tGGSQ+"deg)";
}
function cfPVV(c,type,lx,ly,corner)
{
if(type==1)
fvkMB(c,0,0,lx,ly)
else
XoYjq(c,0,0,lx,ly,corner)
}
function ughku(el,c,type,lx,ly,corner,bg,bXqrW,rot)
{
if(FGONC()==false)
{
c.fillStyle=bg;
cfPVV(c,type,lx,ly,corner)
c.fill()
}
else
{
var canv2=iBKLj(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.fillStyle=bg;
cfPVV(c2,type,lx,ly,corner)
c2.fill()
if(bXqrW) rNjax(c,rot)
c.drawImage(canv2,0,0);
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
}
}
function oiBxU(c,type,lx,ly,ncnjd,bg,tJlJk,HgOFv_glow)
{
if(tJlJk)
{
var x1=tJlJk[0];var y1=tJlJk[1];var lx1=tJlJk[2];var ly1=tJlJk[3];var TbuXG=tJlJk[4];
var CUgYY=c.createLinearGradient(x1,y1,x1,y1+ly1);
CUgYY.addColorStop(0,"rgba(255,255,255,0.7)");CUgYY.addColorStop(1,"rgba(255,255,255,0.1)");
c.fillStyle=CUgYY;
if(type==1) fvkMB(c,x1,y1,lx1,ly1)
else
XoYjq(c,x1,y1,lx1,ly1,TbuXG)
c.fill()
}
if(HgOFv_glow)
{
var x2=HgOFv_glow[0];var y2=HgOFv_glow[1];var lx2=HgOFv_glow[2];var ly2=HgOFv_glow[3];
var vVLKk=HgOFv_glow[4];
var tGCdN_glow=new RGBColor(HgOFv_glow[5]);
tGCdN_glow.a=0;
var col1=HgOFv_glow[5];
var col2=tGCdN_glow.toRGB();
var BvnFu=c.createLinearGradient(x2,y2,x2,y2+ly2);
BvnFu.addColorStop(0,col2);
BvnFu.addColorStop(0.2,col2);
BvnFu.addColorStop(1,col1);
c.fillStyle=BvnFu;
if(type==1) fvkMB(c,x2,y2,lx2,ly2)
else
XoYjq(c,x2,y2,lx2,ly2,vVLKk)
c.fill()
}
}
function TqRHV(AIpdg,AaWPd,gcbVr,gFUDV,qgeJE,ncnjd,SZJde,tJlJk,HgOFv_glow,bXqrW,tGGSQ)
{
AIpdg.AaWPd=AaWPd;AIpdg.gcbVr=gcbVr;
AIpdg.gFUDV=gFUDV;AIpdg.qgeJE=qgeJE;
AIpdg.ncnjd=ncnjd;AIpdg.SZJde=SZJde,AIpdg.tJlJk=tJlJk;
AIpdg.HgOFv_glow=HgOFv_glow;AIpdg.bXqrW=bXqrW;AIpdg.tGGSQ=tGGSQ;
}
function WA_but_over(AaWPd,SZJde_over,tGCdN_glow)
{
var aDkQC=document.getElementById(AaWPd) 
if(aDkQC&&aDkQC.vxSTD)
with(aDkQC.vxSTD)
{
var HgOFv_glow_over;
if(HgOFv_glow&&tGCdN_glow)
{
HgOFv_glow_over=new Array();
for(var rmfBP=0;rmfBP<HgOFv_glow.length;rmfBP++)HgOFv_glow_over[rmfBP]=HgOFv_glow[rmfBP];
HgOFv_glow_over[5]=tGCdN_glow;
}
WA_but(AaWPd,gcbVr,gFUDV,qgeJE,ncnjd,SZJde_over,tJlJk,HgOFv_glow_over,bXqrW,tGGSQ);
}
var RjDTl_over0=document.getElementById(AaWPd+"-div0")
if(RjDTl_over0)html_SetVisibility(RjDTl_over0,false);
var miaOP=document.getElementById(AaWPd+"-div1")
if(miaOP)html_SetVisibility(miaOP,true);
}
function WA_but_out(AaWPd)
{
var aDkQC=document.getElementById(AaWPd)
with(aDkQC.vxSTD)
{
WA_but(AaWPd,gcbVr,gFUDV,qgeJE,ncnjd,SZJde,tJlJk,HgOFv_glow,bXqrW,tGGSQ);
}
var RjDTl_over0=document.getElementById(AaWPd+"-div0")
if(RjDTl_over0)html_SetVisibility(RjDTl_over0,true);
var miaOP=document.getElementById(AaWPd+"-div1")
if(miaOP)html_SetVisibility(miaOP,false);
}
function WA_but(id,type,lx,ly,corner,bg,top_light,s_glow,bXqrW,rot)
{
var el=document.getElementById(id)
if(el.vxSTD==undefined)
{
el.vxSTD=new Array();
TqRHV(el.vxSTD,id,type,lx,ly,corner,bg,top_light,s_glow,bXqrW,rot);
}
var c=el.getContext('2d');
var TaGlo=0;
if(bXqrW)TaGlo=6 
c.fillStyle="#000000";
c.fillRect(0,0,lx+2*TaGlo,ly+2*TaGlo) 
c.clearRect(0,0,lx+2*TaGlo,ly+2*TaGlo) 
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(FGONC()==false)
{
c.translate(TaGlo,TaGlo)
img.width=lx
img.height=ly 
if(bXqrW)
CiIsc(c,0,0,lx,ly,corner,(type==1),rot)
if(navigator.userAgent.match(/Firefox/i))
{
c.beginPath()
cfPVV(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()
cfPVV(c,type,lx,ly,corner)
c.fill()
}
oiBxU(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-TaGlo,-TaGlo)
}
else
{
var canv2=iBKLj(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.beginPath()
cfPVV(c2,type,lx,ly,corner)
c2.clip()
c2.drawImage(img,0,0,lx,ly);
oiBxU(c2,type,lx,ly,corner,bg,top_light,s_glow)
if(bXqrW) rNjax(c,rot) 
c.drawImage(canv2,TaGlo,TaGlo);
}
}
img.src=bg2;
return;
}
c.translate(TaGlo,TaGlo) 
if(bXqrW&&(FGONC()==false))
{
var afgWT=new RGBColor(bg);
if(afgWT.a>0)
{
CiIsc(c,0,0,lx,ly,corner,(type==1),rot)
}
}
ughku(el,c,type,lx,ly,corner,bg2,bXqrW,rot)
oiBxU(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-TaGlo,-TaGlo)
}
function CiIsc(c,x0,y0,lx0,ly0,corner,is_circle,rot)
{
var decShadow=2;
var offset=CsPwV(rot)
c.translate(decShadow*offset.x,decShadow*offset.y)
var dec_init=2;
var x=x0-dec_init;var y=y0-dec_init;var lx=lx0+2*dec_init;var ly=ly0+2*dec_init;var opacity=0.1;
for(var n=0;n<4;n++)
{
c.beginPath()
if(is_circle) fvkMB(c,x,y,lx,ly);else XoYjq(c,x,y,lx,ly,corner);
c.fillStyle="rgba(0,0,0, "+opacity+")"
c.fill()
x+=1;y+=1;lx-=2;ly-=2;opacity+=0.04
}
c.translate(-decShadow*offset.x,-decShadow*offset.y)
}
function suhdo(id,x,y,lx,ly,arc,NNtuv,bord_col,bg,shadow,rot,WGMlq,YkrLu)
{
if(YkrLu==undefined)YkrLu=true;
var el=document.getElementById(id)
var c=el.getContext('2d');
if(WGMlq==undefined)WGMlq=1.0;
var TaGlo=0;
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
if(shadow)
{
TaGlo=6;
}
if(YkrLu) c.clearRect(0,0,el.width,el.height)
c.globalAlpha=WGMlq 
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 EMWZk=bg1.split(";");
var x1=parseFloat(EMWZk[0]);
var y1=parseFloat(EMWZk[1]);
var x2=parseFloat(EMWZk[2]);
var y2=parseFloat(EMWZk[3]);
var col1=EMWZk[4];
var col2=EMWZk[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-NNtuv;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
{
if(shadow) CiIsc(c,TaGlo,TaGlo,lx,ly,arc,false,rot)
}
if(NNtuv>0)
{
c2.fillStyle=bord_col;
XoYjq(c2,x,y,lx,ly,arc)
CiGjv(c2,x+NNtuv,y+NNtuv,lx-2*NNtuv,ly-2*NNtuv,arc2,true)
c2.fill()
}


c2.fillStyle=fill_obj 
XoYjq(c2,x+NNtuv,y+NNtuv,lx-2*NNtuv,ly-2*NNtuv,arc2)
c2.fill();
}
function kYUUo(fPfui,UIVRA,sbuUg)
{
return new Point(Math.round(fPfui*Math.cos(sbuUg)-UIVRA*Math.sin(sbuUg)),Math.round(fPfui*Math.sin(sbuUg)+UIVRA*Math.cos(sbuUg)))
}
function xAGFX(c,x,y,lx,ly,arc,clowckwise,tGGSQ)
{
c.beginPath()
FcLCU(c,x,y,lx,ly,arc,clowckwise,tGGSQ)
}
function FcLCU(c,x,y,lx,ly,arc,clowckwise,tGGSQ)
{
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 XDavZ=[[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=tGGSQ*2*Math.PI/360
for(var n=0;n<XDavZ.length;n++)
{
var DTxrA=XDavZ[n][0]
var MZpsf=XDavZ[n][1]
XDavZ[n][0]=DTxrA*Math.cos(theta)-MZpsf*Math.sin(theta);
XDavZ[n][1]=DTxrA*Math.sin(theta)+MZpsf*Math.cos(theta);
}
var n=0;
c.moveTo(XDavZ[n][0],XDavZ[n++][1]);
c.lineTo(XDavZ[n][0],XDavZ[n++][1]);
c.quadraticCurveTo(XDavZ[n][0],XDavZ[n++][1],XDavZ[n][0],XDavZ[n++][1]);
c.lineTo(XDavZ[n][0],XDavZ[n++][1]);
c.quadraticCurveTo(XDavZ[n][0],XDavZ[n++][1],XDavZ[n][0],XDavZ[n++][1]);
c.lineTo(XDavZ[n][0],XDavZ[n++][1]);
c.quadraticCurveTo(XDavZ[n][0],XDavZ[n++][1],XDavZ[n][0],XDavZ[n++][1]);
c.lineTo(XDavZ[n][0],XDavZ[n++][1]);
c.quadraticCurveTo(XDavZ[n][0],XDavZ[n++][1],XDavZ[n][0],XDavZ[n++][1]);
}
function TxmRF(a,b,x,y)
{
return(a*x-y+b)/(Math.sqrt(1+a*a))
}
function LCrgJ(new_a1,new_b1,bFfte,multi)
{
var d=0;
for(var i=0;i<bFfte.length;i++)
{
var avhcX=bFfte[i]
var d1=TxmRF(new_a1,new_b1,avhcX.x,avhcX.y)
if(multi<0)
{
if(d1<0) d=Math.max(d,-d1);
}
else
{
if(d1>0) d=Math.max(d,d1);
}
}
return d;
}
function pmmsf(o1,o2)
{
if(o1<o2) return-1
if(o1>o2) return 1
return 0
}
function dpNmM(c,lx,ly,bg1)
{
var fill_obj=false;
var vJubH=false;
var aObkb=false;
var bFfte=false
if(bg1.substring(0,1)=="(")
{
bg1=bg1.substring(1);
bg1=bg1.substring(0,bg1.length-1)
var EMWZk=bg1.split(";");
var hHcxu=new Point(parseFloat(EMWZk[0]),parseFloat(EMWZk[1]));
var cppaE=new Point(parseFloat(EMWZk[2]),parseFloat(EMWZk[3]));
vJubH=hHcxu.clone()
aObkb=cppaE.clone()
var col1=EMWZk[4];
var col2=EMWZk[5];
var grad=c.createLinearGradient(vJubH.x,vJubH.y,aObkb.x,aObkb.y);
if(isMSIE())
{
vJubH=hHcxu.clone()
aObkb=cppaE.clone() 
var CUgYY=0;
var BvnFu=1;
{
bFfte=[{x:0,y:0},{x:lx,y:0},{x:lx,y:ly},{x:0,y:ly}]
var d1=0;
var d2=0;
var a=(aObkb.y-vJubH.y)/(aObkb.x-vJubH.x);
var b=vJubH.y-a*vJubH.x;
var diff=1;
if(a==Infinity)
{
d1=(vJubH.y)
d2=(ly-aObkb.y)
}
else
if(a==0)
{
d1=(vJubH.x)
d2=(lx-aObkb.x)
}
else
{
var new_a1=-1/a;
var new_b1=vJubH.y-new_a1*vJubH.x;
d1=LCrgJ(new_a1,new_b1,bFfte,-1)
var new_b2=aObkb.y-new_a1*aObkb.x;
d2=LCrgJ(new_a1,new_b2,bFfte,1)
if(new_a1<0)diff=-1;
}
var d=Math.sqrt(Math.pow(aObkb.x-vJubH.x,2)+Math.pow(aObkb.y-vJubH.y,2))
var total=(d1+d+d2)
CUgYY=d1/total;
BvnFu=(d1+d)/total;
var pt_prod0=new Point(aObkb.x-vJubH.x,aObkb.y-vJubH.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)
{
CUgYY=d2/total;
BvnFu=(d2+d)/total;
}
}
grad.addColorStop(CUgYY,col1);
grad.addColorStop(BvnFu,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,NNtuv,bord_col,bg,shadow,rot,ajbrI,LgBQm,WGMlq,YkrLu)
{


var theta=rot*2*Math.PI/360 
if(YkrLu==undefined)YkrLu=true;
if(WGMlq==undefined)WGMlq=1.0;
var el=document.getElementById(id)
if(!el)return
var c=el.getContext('2d');
var TaGlo=(el.width-lx)/2;
if(YkrLu) c.clearRect(0,0,el.width,el.height)
var x_rect0=TaGlo;
var y_rect0=TaGlo;
var bg1=bg[0]
var fill_obj=false;
var vJubH=false;
var aObkb=false;
var bFfte=false
fill_obj=dpNmM(c,lx,ly,bg1) 
if(WGMlq==undefined)WGMlq=1.0;
var arc2=arc-NNtuv;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
if(shadow)
{
c2.translate(ajbrI+6,LgBQm+6)
}
else
{
c2.translate(ajbrI,LgBQm)
}
c2.fillStyle=fill_obj;
xAGFX(c2,NNtuv,NNtuv,lx-2*NNtuv,ly-2*NNtuv,arc2,false,rot)
c2.fill();
}
function WA_bg(id,lx,ly,arc,NNtuv,bord_col,bg,shadow,rot,WGMlq,YkrLu)
{

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

var fill_obj=dpNmM(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()
qgKdP(c,el,lx,ly,arc,NNtuv,bord_col,ptrn,shadow,rot,WGMlq)
}
img.src=bg2;
}
else
{
qgKdP(c,el,lx,ly,arc,NNtuv,bord_col,fill_obj,shadow,rot,WGMlq)
}
}
function qgKdP(c,el,lx,ly,arc,NNtuv,bord_col,fill_obj,shadow,rot,WGMlq)
{
if(WGMlq==undefined)WGMlq=1.0;
var arc2=arc-NNtuv;
if(arc2<0)arc2=0
var TaGlo=(el.width-lx)/2;
var x_rect0=TaGlo;
var y_rect0=TaGlo;
var canv2=false;
var c2=c;
c.globalAlpha=WGMlq
if(FGONC()==true)
{
canv2=iBKLj(lx,ly);
c2=canv2.getContext('2d');
c2.globalAlpha=WGMlq
}
else
{
c2.translate(TaGlo,TaGlo)
if(shadow) CiIsc(c,0,0,lx,ly,arc,false,rot)
}
if(NNtuv>0)
{
c2.fillStyle=bord_col;
XoYjq(c2,0,0,lx,ly,arc)
CiGjv(c2,NNtuv,NNtuv,lx-2*NNtuv,ly-2*NNtuv,arc2,true)
c2.fill()
}
c2.fillStyle=fill_obj;
XoYjq(c2,NNtuv,NNtuv,lx-2*NNtuv,ly-2*NNtuv,arc2)
c2.fill();
if(FGONC()==true)
{
if(shadow) rNjax(c,rot)
c.drawImage(canv2,TaGlo,TaGlo);
}
else
{
c2.translate(-TaGlo,-TaGlo)
}
}
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(HgOFv){return(this.width>HgOFv.width)&&(this.height>HgOFv.height)}
this.scale=function(xhXUe,WfOZW)
{
if(!WfOZW)WfOZW=false
var gQLAH=this;
var bpuom=gQLAH.width
var tEfaY=gQLAH.height
var p1=bpuom*xhXUe.height;
var p2=xhXUe.width*tEfaY;
var r1=bpuom/tEfaY;
var r2=tEfaY/bpuom;
var newSize1=new Size(xhXUe.height*r1,xhXUe.height);
var newSize2=new Size(xhXUe.width,xhXUe.width*r2);
if(p2>p1)
{
if((WfOZW==true)||((newSize1.width<=gQLAH.width)&&(newSize1.height<=gQLAH.height)))
{
gQLAH.width=Math.round(newSize1.width);
gQLAH.height=Math.round(newSize1.height);
}
}
else
{
if((WfOZW==true)||((newSize2.width<=gQLAH.width)&&(newSize2.height<=gQLAH.height)))
{
gQLAH.width=Math.round(newSize2.width);
gQLAH.height=Math.round(newSize2.height);
}
}
this.width=gQLAH.width;
this.height=gQLAH.height;
return true;
}
}
function Point(p_x,p_y){this.x=p_x;this.y=p_y;
this.translate=function(fPfui,UIVRA){this.x+=fPfui;this.y+=UIVRA;}
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(AkuIa){return(this.x==AkuIa.x)&&(this.y==AkuIa.y)&&(this.width==AkuIa.width)&&(this.height==AkuIa.height);}
this.copy=function(AkuIa){this.x=AkuIa.x;this.y=AkuIa.y;this.width=AkuIa.width;this.height=AkuIa.height;}
this.translate=function(fPfui,UIVRA){this.x+=fPfui;this.y+=UIVRA;}
}
function html_getLayer(AkuIa)
{
if(typeof(AkuIa)=="string")return document.getElementById(AkuIa);
return AkuIa;
}
function html_SetPosition(AkuIa,fPfui,UIVRA){
AkuIa=html_getLayer(AkuIa);
AkuIa.style.left=fPfui+"px";AkuIa.style.top=UIVRA+"px";
}
function html_SetSize(ediCK,gFUDV,qgeJE){
AkuIa=html_getLayer(ediCK);
AkuIa.style.width=gFUDV+"px";AkuIa.style.height=qgeJE+"px";
}
function html_SetRect(AkuIa,hReVB){html_SetGeometry(AkuIa,hReVB.x,hReVB.y,hReVB.width,hReVB.height);}
function html_SetGeometry(AkuIa,fPfui,UIVRA,gFUDV,qgeJE){html_SetPosition(AkuIa,fPfui,UIVRA);html_SetSize(AkuIa,gFUDV,qgeJE);}
function html_SetVisibility(AkuIa,AAeZL){AkuIa=html_getLayer(AkuIa);AkuIa.style.visibility=(AAeZL)?"visible":"hidden";}
function html_SetDisplay(AkuIa,AAeZL){AkuIa=html_getLayer(AkuIa);AkuIa.style.display=(AAeZL)?"block":"none";}
function html_SetCanvasSize(AkuIa,gFUDV,qgeJE){AkuIa=html_getLayer(AkuIa);AkuIa.width=gFUDV;AkuIa.height=qgeJE;}
function html_writeContent(AkuIa,HgOFv){AkuIa=html_getLayer(AkuIa);AkuIa.innerHTML=HgOFv;}
function html_SetOpacity(AkuIa,saXpn)
{
AkuIa=html_getLayer(AkuIa);
AkuIa.style['opacity']=saXpn;
AkuIa.style['-moz-opacity']=saXpn;
AkuIa.style.filter=(saXpn==1)?'':'alpha(opacity='+(saXpn*100)+')';
}
var eaThf=[
{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<eaThf.length;i++)
{
var array2=eaThf[i].l;
for(var i2=0;i2<array2.length;i2++)
{
var reg=new RegExp(array2[i2],"g");
res=res.replace(reg,eaThf[i].acc)
}
}
return res;
}
function trimString(str)
{
return str.replace(/^\s*|\s*$/g,"");
}
function IsNumeric(bBMVg)
{
var JmxhC="0123456789.";var VhAEC=true;var lbneS;
for(rmfBP=0;rmfBP<bBMVg.length&&VhAEC==true;rmfBP++){lbneS=bBMVg.charAt(rmfBP);if(JmxhC.indexOf(lbneS)==-1) VhAEC=false;}
return VhAEC;
}
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(OZoEa)
{
var gwPWt=OZoEa*60;
var BBpiQ=new Date();
var rBDlR=0;
rBDlR+=BBpiQ.getYear()*12*31*24*60*60;
rBDlR+=BBpiQ.getMonth()*31*24*60*60;
rBDlR+=BBpiQ.getDate()*24*60*60;
rBDlR+=BBpiQ.getHours()*60*60;
rBDlR+=BBpiQ.getMinutes()*60;
rBDlR+=BBpiQ.getSeconds();
if(gwPWt!=0)
{
rBDlR=Math.floor(rBDlR/gwPWt)*gwPWt
}
return "-"+rBDlR;
}
function html_findPos(obj)
{
var saXpn=wfatA(obj)
return new Point(saXpn[0],saXpn[1])
}
function wfatA(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(xoLlx,gFUDV,qgeJE)
{
document.write("<input id='"+xoLlx+"' type=search results=0 placeholder='' style='width:"+gFUDV+"px;height:"+qgeJE+"px;'>")
}
function cCrfS()
{
var tWGpE=document.getElementsByTagName("A");
for(var rmfBP=0;rmfBP<tWGpE.length;rmfBP++)
{
var AkuIa=tWGpE[rmfBP];
if(AkuIa.onmouseover)AkuIa.onmouseover=null;
if(AkuIa.onmouseout)AkuIa.onmouseout=null;
}
}
function msjgv()
{
for(var xooIZ in document.wa_global_list_element)
{
var AaWPd=document.wa_global_list_element[xooIZ]
var aDkQC=document.getElementById(AaWPd)
aDkQC.onclick=function()
{
WA_focus(this)
}
}
}
function WA_declare(AaWPd)
{
if(!document.wa_global_list_element)
{
document.wa_global_list_element=new Array();;
}
document.wa_global_list_element.push(AaWPd)
}
function uerpS()
{
var nTSFE=window.location.search;
if(nTSFE.substr(0,1)=="?")nTSFE=nTSFE.substr(1);
if(nTSFE.length==0)return;
var oRvak=new Array();
var JswMe=nTSFE.split("&");
for(var i=0;i<JswMe.length;i++)
{
var HsCCq=JswMe[i].split("=");oRvak[HsCCq[0]]=HsCCq[1];
}
var HgOFv_info=oRvak["crbst_info"];
if(!HgOFv_info)return;
var vsrNM=new Array();
vsrNM.m_unid=HgOFv_info;
vsrNM.m_index_item=-1;
var imQUM=HgOFv_info.indexOf("-");
if(imQUM!=-1)
{
vsrNM.m_unid="wa-id-"+HgOFv_info.substring(0,imQUM);
vsrNM.m_index_item=parseInt(HgOFv_info.substring(imQUM+1));
}
document.wa_global_query_info=vsrNM;
}
function IS_onload_WA()
{

if(isMSIE8())
{
wa_timeout("IS_onload_ui()",0)
}
else
{
IS_onload_ui()
}
if(isIPhone())
{
cCrfS()
}
else
{
msjgv()
}
uerpS();

fDCbo()
}
function fDCbo()
{
var QeojN=0;
var XOjuq=document.webaca_banner_height;
if(document.webaca_page_is_centered)
{
var ccvjj=getWindowSize().width
var vtebU=document.webaca_width_page
if(ccvjj>vtebU)QeojN=(ccvjj-vtebU)/2;
}
document.body.style.backgroundPosition=QeojN+"px "+XOjuq+"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 olWwd=CONST_WA_COUNTRIES.codes[n]
var qMNrF=CONST_WA_COUNTRIES.labels[n]
Translator.m_countries[olWwd]=qMNrF
}
}
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(AaWPd,FvYdj,bXqrW)
{
this.AaWPd=AaWPd;
this.FvYdj=FvYdj
this.bXqrW=bXqrW;
this.UakLo=this.AaWPd+"-div"
this.vYQSo=this.AaWPd+"-canvas"
this.uwiZu=new Rect(0,0,0,0)
this.xAoXd=false;
this.EnLMO=false;
this.TaGlo=6;
this.eoBQS=false;
this.WuFIJ=false;
this.PHEcU=false;
this.CYcfd="";
this.shadow=function()
{
return this.bXqrW;
}
this.marginShadow=function()
{
return this.TaGlo;
}
this.rect=function()
{
return this.uwiZu;
}
this.canvasId=function()
{
return this.vYQSo;
}
this.divId=function()
{
return this.UakLo;
}
this.opacity=function()
{
return this.VSbub;
}
this.img_clip=function()
{
return this.WuFIJ;
}
this.img_src=function()
{
return this.eoBQS;
}
this.toHtml=function()
{
var HgOFv=""
HgOFv+="<div id='"+this.UakLo+"' style=\"";
HgOFv+="position:absolute;";
if(this.CYcfd.length>0)
{
HgOFv+="cursor:pointer;";
}
if(this.rect.x>0)HgOFv+="left:"+this.rect.x+"px;";
if(this.rect.y>0)HgOFv+="top:"+this.rect.y+"px;";
if(this.rect.width>0)HgOFv+="width:"+this.rect.width+"px;";
if(this.rect.height>0)HgOFv+="height:"+this.rect.height+"px;";
if(FvYdj)
HgOFv+="z-index:"+FvYdj+";";
HgOFv+="\" ";
if(this.CYcfd.length>0)
{
HgOFv+="onclick=\""+this.CYcfd+"\" "
}
HgOFv+=">";
if((this.rect.width>0)&&this.shadow())
{
HgOFv+=html_canvas(this.vYQSo,this.rect.width+2*this.TaGlo,this.rect.height+2*this.TaGlo)+"</div>";
}
else
{
HgOFv+=html_canvas(this.vYQSo,0,0)+"</div>";
}
return HgOFv
}
this.setImage=function(Dbbsr,KhKwp,tGGSQ)
{
if(tGGSQ==undefined)tGGSQ=0;
if((Dbbsr==this.eoBQS)&&(this.WuFIJ&&this.WuFIJ.equals(KhKwp))&&(this.PHEcU==tGGSQ))
{
return;
}
this.PHEcU=tGGSQ;
this.eoBQS=Dbbsr;
this.WuFIJ=KhKwp;
this.hVgCM()
}
this.registerDynamicCanvas=function()
{
registerDynamicCanvas(this.vYQSo);
this.EnLMO=true;
this.setRect(this.uwiZu.x,this.uwiZu.y,this.uwiZu.width,this.uwiZu.height)
}
this.hVgCM=function()
{
if((this.uwiZu.width>0)&&(this.uwiZu.height>0))
{
this.draw()
}
this.xAoXd=true
};
this.draw=function(){};
this.setPosition=function(fPfui,UIVRA)
{
this.uwiZu.x=fPfui;this.uwiZu.y=UIVRA;
if(this.EnLMO==false)return
html_SetPosition(this.UakLo,this.uwiZu.x,this.uwiZu.y)
if(this.xAoXd==false)
{
this.hVgCM()
}
}
this.setOnClick=function(HgOFv)
{
this.CYcfd=HgOFv
}
this.width=function(){return this.uwiZu.width;}
this.height=function(){return this.uwiZu.height;}
this.setSize=function(gFUDV,qgeJE)
{
this.uwiZu.width=gFUDV;this.uwiZu.height=qgeJE;
var VLvgl=gFUDV
var JjtQB=qgeJE
if(this.bXqrW)
{
VLvgl+=2*this.TaGlo
JjtQB+=2*this.TaGlo
}
if(this.EnLMO==false)return
html_SetSize(this.UakLo,VLvgl,JjtQB)
html_SetCanvasSize(this.vYQSo,gFUDV,qgeJE)
this.hVgCM()
}
this.setRect=function(fPfui,UIVRA,gFUDV,qgeJE)
{
this.uwiZu.x=fPfui;this.uwiZu.y=UIVRA;this.uwiZu.width=gFUDV;this.uwiZu.height=qgeJE;
var VLvgl=gFUDV
var JjtQB=qgeJE
var SEBYS=fPfui
var UITtb=UIVRA
if(this.bXqrW)
{
VLvgl+=2*this.TaGlo
JjtQB+=2*this.TaGlo
SEBYS-=this.TaGlo
UITtb-=this.TaGlo
}
if(this.EnLMO==false)return 
html_SetGeometry(this.UakLo,SEBYS,UITtb,VLvgl,JjtQB);
html_SetCanvasSize(this.vYQSo,VLvgl,JjtQB)
try{this.hVgCM()}catch(e){
alert(e.message)
}
}
this.setVisible=function(AAeZL)
{
if(this.EnLMO==false)return
html_SetVisibility(this.UakLo,AAeZL)
}
this.setOpacity=function(saXpn)
{
this.VSbub=saXpn 
if(this.EnLMO==false)return
this.hVgCM()
}
}

function is_onresize()
{
WA_Dialog.resizeUI()
try
{
if(WA_PhotoAlbum_resizeUI)WA_PhotoAlbum_resizeUI()
}
catch(e){}
fDCbo()
}
function is_onscroll()
{
centerFullPageContainer();
}
function registerDynamicCanvas(id)
{
if(isMSIE())
G_vmlCanvasManager.initElement(document.getElementById(id));
}
function WA_openDialogAction(xooIZ)
{
var tEowJ=WA_Dialog.quLtX;
if(xooIZ==-1){tEowJ.closeWin();return;}
var gkDDi=tEowJ.Tgfwg(xooIZ);
if(gkDDi[5])
{
gkDDi[4].call(gkDDi[6],gkDDi[5])
}
else
{
gkDDi[4](gkDDi[5]);
}
}
function WA_Dialog(AAeZL_close_button)
{
this.IcBJH=0;
this.VnFrc=0;
this.xhXUe_win_width=600;
this.xhXUe_win_height=400;
this.BUUxj=new Array();
this.uuBQq="wa-dialog-but-";
this.mLwdK=this.uuBQq+"div-";
this.JhIvD=this.uuBQq+"canvas-";
this.BUTTON_HEIGHT=25;
this.qHlEl=CONST_WA_GLOBAL_COLOR_THEME;
this.AAeZL_close_button=AAeZL_close_button;
this.cbODD=6;
this.PwPvL=function()
{
if(this.AAeZL_close_button==undefined)this.AAeZL_close_button=true;
this.MFIOe();
}
this.resetButtons=function()
{
this.MFIOe();
}
this.idealHeight=function()
{
return this.lFfDA
}
this.displayWindowWithAutoResize=function(NMNqr,CKKHi)
{
this.tjMDZ=false
this.lFfDA=NMNqr
this.TIASS=CKKHi 
this.resetButtons();
CKKHi.call(this)
var l=document.getElementById('wa-dialog-content');
if(this.tjMDZ==false)
if(l.scrollHeight>200)
{
this.tjMDZ=true
this.lFfDA=l.scrollHeight+150
this.resetButtons();
CKKHi.call(this)
}
}
this.initializeWindow=function(xhXUe_lx,xhXUe_ly)
{
if(WA_Dialog.quLtX)WA_Dialog.quLtX.closeWin()
WA_Dialog.quLtX=this;
this.xhXUe_win_width=xhXUe_lx;
this.xhXUe_win_height=xhXUe_ly;
this.XTqBl()
}
this.progress=function()
{
this.initializeWindow(300,100) 
this.writeContent("<div width=100% align=center><img src='wa_loading.gif'></div>")
}
this.XAfaW=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(qMNrF,UotDP,spuQS,OEHVX)
{
var wplGE=this.BUUxj.length
if(this.AAeZL_close_button==true)
{
wplGE--;
}
var gFUDV=Math.max((qMNrF.length*8)*1.2+30,80)
var gQLAH=new Size(gFUDV,this.BUTTON_HEIGHT);
this.NMVsf("action_"+wplGE,wplGE,qMNrF,UotDP,gQLAH,spuQS,OEHVX)
}
this.MFIOe=function()
{
this.BUUxj=new Array();
if(this.AAeZL_close_button)
{
var gQLAH=new Size(120,20);
this.NMVsf("close",-1,Translator.tr("Close")+" - X",null,gQLAH)
}
}
this.NMVsf=function(VtYIu,wplGE,qMNrF,UotDP,gQLAH,spuQS,OEHVX)
{
var gkDDi=[VtYIu,gQLAH,wplGE,qMNrF,UotDP,spuQS,OEHVX];
this.BUUxj.push(gkDDi);
}
this.writeContent=function(s)
{
var l=document.getElementById('wa-dialog-content');
l.innerHTML=s
}
this.Tgfwg=function(VtYIu)
{
for(var xooIZ=0;xooIZ<this.BUUxj.length;xooIZ++)
{
var gkDDi=this.BUUxj[xooIZ];
if((gkDDi[0]==VtYIu)||(gkDDi[2]+""==VtYIu+""))
return gkDDi;
}
return undefined;
}
this.eDJNT=function(VtYIu)
{
var gkDDi=this.Tgfwg(VtYIu);
return gkDDi[1]
}
this.VqPgY=function(bJsUZ)
{
var gkDDi=this.Tgfwg(bJsUZ);
var VtYIu=gkDDi[0];
var wplGE=gkDDi[2];
var tGCdN_text=this.qHlEl[4]
var tGCdN_bg=this.qHlEl[5]
var tGCdN_glow=this.qHlEl[7]
if(wplGE==-1)
{
tGCdN_text=this.qHlEl[10]
tGCdN_bg=this.qHlEl[8]
tGCdN_glow=this.qHlEl[11]
}
var YqYml=this.mLwdK+VtYIu;
var xKpqk=this.JhIvD+VtYIu;
var gQLAH=this.eDJNT(bJsUZ)
var CFpxg=this.cbODD;
var s=""
s+="<a href='javascript:WA_openDialogAction("+bJsUZ+")' ";
var tGCdN=new RGBColor(tGCdN_bg);
var RCotP=tGCdN.toHsl();
tGCdN.fromHsl(RCotP[0],RCotP[1],RCotP[2]+0.2)
tGCdN_bg=tGCdN.toRGB();
var LMliq_glow=new RGBColor(tGCdN_glow);
var eVEZg=LMliq_glow.toHsl();
LMliq_glow.fromHsl(eVEZg[0],eVEZg[1],eVEZg[2]+0.2)
tGCdN_glow=LMliq_glow.toRGB();
s+="onmouseover=\"WA_but_over('"+xKpqk+"','"+tGCdN_bg+"','"+tGCdN_glow+"')"+"\" ";
s+="onmouseout=\""+"WA_but_out('"+xKpqk+"')"+"\" ";
s+="style='text-decoration:none;'>";
s+="<div id='"+this.mLwdK+VtYIu+"' style='position:absolute;cursor:pointer;left:0px;top:0px;height:"+gQLAH.height+"px;width:"+gQLAH.width+"px;' >";
s+="<div style='position:absolute;left:"+(-CFpxg)+"px;top:"+(-CFpxg)+"px;height:"+gQLAH.height+"px;'>"
s+="<canvas id='"+this.JhIvD+VtYIu+"' width="+(gQLAH.width+CFpxg*2)+" height="+(gQLAH.height+CFpxg*2)+" ></canvas>";
s+="</div>"
s+="<div align=center style='position:absolute;left:0px;top:"+(0)+"px;vertical-align:middle;width:100%;height:"+(gQLAH.height)+"px;line-height:"+(gQLAH.height)+"px;font-family:arial;font-size:13px;font-weight:bold;color:"+tGCdN_text+"'>"
s+=gkDDi[3];
s+="</div>"
s+="</div>"
s+="</a>"
return s;
}
this.getColorTheme=function(xooIZ)
{
return this.qHlEl[xooIZ];
}
this.baRhp=function(VtYIu)
{
var gkDDi=this.Tgfwg(VtYIu);
var wplGE=gkDDi[2];
var tGCdN_bg=this.qHlEl[5]
var tGCdN_glow=this.qHlEl[7]
var tGCdN_text=this.qHlEl[3]
if(wplGE==-1)
{
tGCdN_bg=this.qHlEl[8]
tGCdN_glow=this.qHlEl[11]
tGCdN_text=this.qHlEl[10]
}
var olWwd=this.JhIvD+VtYIu;
registerDynamicCanvas(olWwd);
var gQLAH=this.eDJNT(VtYIu);
var ncnjd=gQLAH.height*0.25;
var Zloiu=(gQLAH.height-ncnjd)/2;
var RVpVT=(gQLAH.width-2);
var qgeJE_circle_top=ncnjd*2;
var EMWZk_top=[(gQLAH.width-RVpVT)/2,1,RVpVT,qgeJE_circle_top,Zloiu];
var gFUDV_circle_bottom=gQLAH.width*0.9;
var qgeJE_circle_bottom=gQLAH.height*0.45;
var UGAMA=tGCdN_glow;
var mXtkS=tGCdN_glow;
var sYeoq=qgeJE_circle_bottom/2;
var EMWZk_bottom=[(gQLAH.width-gFUDV_circle_bottom)/2,gQLAH.height-qgeJE_circle_bottom-1,gFUDV_circle_bottom,qgeJE_circle_bottom,sYeoq,UGAMA,mXtkS];
WA_but(olWwd,0,gQLAH.width,gQLAH.height,ncnjd,tGCdN_bg,EMWZk_top,EMWZk_bottom,true,0)
}
this.DoWra=function(VtYIu)
{
var gkDDi=this.Tgfwg(VtYIu)
if(gkDDi)
{
var olWwd=this.mLwdK+gkDDi[0];
return document.getElementById(olWwd);
}
return undefined
}
this.XTqBl=function()
{
var l=document.getElementById('wa-dialog-container');
l.style.display="block" 

var s="";
var nutPn=document.webaca_banner_height
s+="<div  style='position:absolute;left:0px;top:"+nutPn+"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:"+nutPn+"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 rmfBP in this.BUUxj)
{
s+=this.VqPgY(this.BUUxj[rmfBP][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.RjHfI)
}
this.RjHfI=function()
{
registerDynamicCanvas('wa-dialog1');
for(var rmfBP in this.BUUxj)
{
this.baRhp(this.BUUxj[rmfBP][0])
}
this.bVYkM()
}
this.intern_closeWin=function()
{
var l=document.getElementById('wa-dialog-container');
l.style.display="none"
WA_Dialog.quLtX=false
}
this.closeWin=function()
{
this.intern_closeWin()
}
this.cssText1=function()
{
return "font-family:Arial;font-size:15px;color:"+this.qHlEl[3]+";";
}
this.onCustomKeypress=function(pcJqI)
{
if((this.BUUxj.length==1)&&(pcJqI==13))
{
this.closeWin()
return true;
}
return false;
}
this.onkeypress=function(pcJqI)
{
return this.onCustomKeypress(pcJqI)
}
this.onkeydown=function(pcJqI)
{
if(pcJqI==27)
{
this.closeWin()
return true;
}
return this.onCustomKeypress(pcJqI) 
}
this.customUpdate=function(){}
this.bVYkM=function()
{
var gFUDV_page=document.webaca_width_page;
var qgeJE_page=document.webaca_height_page;
var XwaIN=getWindowSize().width
var qgeJE_window=getWindowSize().height 

this.IcBJH=Math.min(XwaIN*0.9,this.xhXUe_win_width)
this.VnFrc=Math.min(qgeJE_window*0.9,this.xhXUe_win_height)
var QPhXZ=document.getElementById('wa-dialog1');
QPhXZ.width=this.IcBJH+10
QPhXZ.height=this.VnFrc+10
var fPfui=getWindowScroll().x+(XwaIN-QPhXZ.width)/2
var UIVRA=getWindowScroll().y+(qgeJE_window-QPhXZ.height)/2
fPfui=(XwaIN-QPhXZ.width)/2
UIVRA=(qgeJE_window-QPhXZ.height)/2
fPfui=Math.max(0,fPfui)
UIVRA=Math.max(0,UIVRA) 
var vKQnP=document.getElementById('wa-dialog-main');
html_SetGeometry('wa-dialog-main',fPfui,UIVRA,QPhXZ.width,QPhXZ.height);
var EoWjT_bg="(0;0;0;"+this.VnFrc*0.25+";"+this.qHlEl[1]+";"+this.qHlEl[2]+")";
WA_bg('wa-dialog1',this.IcBJH,this.VnFrc,10,3,this.qHlEl[0],[EoWjT_bg],true,0)
var GAIKp=10;
var bdsAZ=this.DoWra(-1)
if(bdsAZ)
{
var Xkoxe_close=this.eDJNT(-1)
html_SetPosition(bdsAZ,this.IcBJH-Xkoxe_close.width+this.cbODD-GAIKp,this.cbODD+GAIKp)
}
var FRMbh_buttons=this.BUUxj.length;
if(this.AAeZL_close_button==true)
{
FRMbh_buttons--;
}
var eTQZu=10;
var FLhOT=0;
for(var rmfBP=0;rmfBP<FRMbh_buttons;rmfBP++)
{
if(rmfBP>0) FLhOT+=eTQZu;
var Xkoxe=this.eDJNT(rmfBP);
FLhOT+=Xkoxe.width;
}
var IXvZG=(this.IcBJH-FLhOT)/2
for(var rmfBP=0;rmfBP<FRMbh_buttons;rmfBP++)
{
if(rmfBP>0) IXvZG+=eTQZu;
var UPNvC=this.DoWra(rmfBP);
var Xkoxe=this.eDJNT(rmfBP);
html_SetPosition(UPNvC,IXvZG+this.cbODD,+this.cbODD+this.VnFrc-Xkoxe.height-2*GAIKp)
IXvZG+=Xkoxe.width;
}
var qgeJE_top=45;
var qgeJE_bottom=this.BUTTON_HEIGHT+2*GAIKp;
if(FRMbh_buttons==0)
{
qgeJE_bottom=0;
}
var qgeJE_content=(this.VnFrc-qgeJE_top-qgeJE_bottom)-GAIKp
var wvLWW=document.getElementById('wa-dialog-content');
var tEowJ_content=Math.round(this.IcBJH-2*GAIKp)
var vJJiV=Math.round(qgeJE_content)
this.m_content_lx=tEowJ_content
this.m_content_ly=vJJiV
html_SetGeometry('wa-dialog-content',Math.round(5+(this.IcBJH-tEowJ_content)/2),Math.round(5+qgeJE_top+(qgeJE_content-vJJiV)/2),tEowJ_content,vJJiV);
this.customUpdate() 
var ewVDO=document.getElementById('wa-dialog-container');
dQRsP=getWindowFullSize().width
qgeJE_full_client=getWindowFullSize().height
html_SetSize('wa-dialog-container',dQRsP,qgeJE_full_client);
centerFullPageContainer();
}
this.PwPvL();
}
function WA_exec_callback_opera_compliant(spuQS,aLSIf)
{
if(/opera/i.test(navigator.userAgent))
WA_exec_delayedCallback(spuQS,aLSIf)
else
aLSIf.call(spuQS)
}
function WA_exec_delayedCallback(spuQS,aLSIf)
{
wa_timeout(Delegate.create(spuQS,aLSIf),0);
}
WA_Dialog.getCurrent=function()
{
return WA_Dialog.quLtX;
}
WA_Dialog.quLtX=false;
WA_Dialog.resizeUI=function()
{
if(WA_Dialog.quLtX)
{
WA_Dialog.quLtX.bVYkM()
}
}
WA_Dialog.alert=function(s)
{
var w=new WA_Dialog();
w.XAfaW(s)
}
WA_Dialog.progress=function()
{
var w=new WA_Dialog(false);
w.progress()
}
function centerFullPageContainer()
{
var gFUDV_page=document.webaca_width_page;
var qgeJE_page=document.webaca_height_page;
var ewVDO=document.getElementById('wa-dialog-container');
dQRsP=getWindowSize().width
qgeJE_full_client=getWindowSize().height
var UIVRA_bg=getWindowScroll().y;
UIVRA_bg=Math.min(UIVRA_bg,qgeJE_page-qgeJE_full_client+1)
UIVRA_bg=Math.max(UIVRA_bg,0)
var MbUrG=getWindowScroll().x;
MbUrG=Math.min(MbUrG,gFUDV_page-dQRsP+1)
MbUrG=Math.max(MbUrG,0) 
html_SetPosition('wa-dialog-container',MbUrG,UIVRA_bg,dQRsP,qgeJE_full_client);
}

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

}
};
return http_request;
}
function makePOSTRequest(url,parameters,callback,RSDxD)
{
var http_request=getXMLHttpRequest(callback,RSDxD);
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(UJJqF,fAtsC,OEHVX)
{
var result=fAtsC.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 bOYLt=OEHVX[0] 
WA_Dialog.alert(Translator.tr("Success:Mail sended"));
var form=document.getElementById(bOYLt);
form.reset()
}
else
{
var wfeSX="error_string="
n=result.indexOf(wfeSX)
if(n>-1)
{
result=result.substring(n+wfeSX.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 sPquu=el.value
sPquu=encodeURI(sPquu)
sPquu=sPquu.replace(/&/g,escape("&")) 
poststr+=el.name.replace("_mandatory","")+"="+sPquu+"&"
}
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(qnrTJ)
{
var JdFPY=document.getElementById(qnrTJ);
JdFPY.submit() 
}
function JMQbt(AaWPd,OEHVX)
{
var pcJqI=OEHVX[0]
if(pcJqI==13)
{
var qnrTJ=AaWPd+"-form";
var JdFPY=document.getElementById(qnrTJ);
for(var i=0;i<JdFPY.elements.length;i++)
{
var aDkQC=JdFPY.elements[i];
if((aDkQC.type=="textarea")&&(aDkQC.focused))return true;
}
WA_form_submit(qnrTJ);
return false;
}
return true;
}
function WA_addFormDeclaration(AaWPd,xLcFV)
{
return WA_addHandler(AaWPd,"keypress",JMQbt)
}
function WA_form_bg(id,lx,ly,arc,NNtuv,bord_col,bg,shadow,tGGSQ,RgtoD)
{
WA_bg(id,lx,ly,arc,NNtuv,bord_col,bg,shadow,tGGSQ,1.0,true) 
var feiuI=RgtoD.x;
var orCRM=0;
var bGjnO=RgtoD.cells
for(var n=0;n<bGjnO.length;n++)
{
var VkfPD=bGjnO[n]
var arc2=0
suhdo(id,feiuI,orCRM+VkfPD.y,RgtoD.w,VkfPD.h,arc2,1,RgtoD.border,[''],false,0,1.0,false)
suhdo(id,feiuI,orCRM+VkfPD.y,VkfPD.w,VkfPD.h,arc2,1,"rgba(0,0,0,0)",[RgtoD.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(OUMxG)
{
this.ok=false;this.a=1.0;
if(OUMxG.charAt(0)=='#'){OUMxG=OUMxG.substr(1);}
OUMxG=OUMxG.replace(/ /g,'');
OUMxG=OUMxG.toLowerCase();
var RJqrX=[
{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<RJqrX.length;i++){
var uNjiY=RJqrX[i].re;
var ZDjlS=RJqrX[i]._process;
var LctOk=uNjiY.exec(OUMxG);
if(LctOk){
var TnpxA=ZDjlS(LctOk);
this.r=TnpxA[0];this.g=TnpxA[1];this.b=TnpxA[2];this.a=TnpxA[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.UWBRA=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.UWBRA(p,q,h+1/3);g=this.UWBRA(p,q,h);b=this.UWBRA(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 GduwG(NGbwl,OEHVX)
{
if(document.wa_global_handlers!=undefined)
{
var AaWPd=WA_focused_element()
if(AaWPd)
{
var UotDP=document.wa_global_handlers[AaWPd+"-"+NGbwl]
if(UotDP) return UotDP([AaWPd],OEHVX)
}
}
return true;
}
function FlEjW(e)
{
if(window.event){return e.keyCode;}
else 
if(e.which) return  e.which;
return-1;
}
function WA_onkeypress(e)
{
var pcJqI=FlEjW(e);
if(WA_Dialog.quLtX)
{
if(WA_Dialog.quLtX.onkeypress(pcJqI))
{
return false;
}
}
return GduwG("keypress",[pcJqI]);
}
function WA_ondblclick(e)
{
return GduwG("dblclic",[""]);
}
function WA_onkeydown(e)
{
var pcJqI=FlEjW(e)
if(WA_Dialog.quLtX)
{
if(WA_Dialog.quLtX.onkeydown(pcJqI))
{
return false;
}
}
if(pcJqI==13) return true;

if(wa_global_photo_album&&wa_global_photo_album.fullpage_object)
{
var spuQS=wa_global_photo_album.fullpage_object
return spuQS.onFullScreenKeydown(pcJqI) 
}
return GduwG("keydown",[pcJqI]);
}
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 AaWPd=this.id
var UotDP=document.wa_global_handlers[AaWPd+"-mousewheel"]
if(UotDP)
{
if(UotDP([AaWPd],[delta]))
{
b_default=true;
}
}
}
}
if(b_default)
if(e.preventDefault)
e.preventDefault();
e.returnValue=!b_default;
}
function WA_addHandler(AaWPd,NGbwl,aLSIf)
{
if(document.wa_global_handlers==undefined) document.wa_global_handlers=new Array()
if(NGbwl=="mousewheel")
{
var RjDTl=document.getElementById(AaWPd);
if(RjDTl.addEventListener)
RjDTl.addEventListener('DOMMouseScroll',WA_genericMouseWheelHandler,false);
RjDTl.onmousewheel=WA_genericMouseWheelHandler
}
document.wa_global_handlers[AaWPd+"-"+NGbwl]=aLSIf
}
function WA_loadPhotoAlbum(AaWPd,FgBrS,gQLAH,AaWPd_modif)
{
if(typeof(wa_global_photo_album[AaWPd])=="undefined")
{
var o=new Array();
o.src_folder=FgBrS
o.size_container=gQLAH
o.id_modif=AaWPd_modif
wa_global_photo_album[AaWPd]=o;
}
}
function WA_focused_element()
{
return document.wa_global_focused_element
}
function WA_focus(spuQS)
{
document.wa_global_focused_element=spuQS.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(rVVLp,hAgTG,heHui)
{
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[hAgTG])document.wa_global_blogs_elements[hAgTG]=new Array()
document.wa_global_blogs_elements[hAgTG].id_blog=rVVLp
document.wa_global_blogs_elements[hAgTG].has_email=heHui
}
function WA_addSearchHandler(AaWPd)
{
return WA_addHandler(AaWPd,"keypress",sOuTu)
}
function sOuTu(AaWPd,OEHVX)
{
var pcJqI=OEHVX[0]
if(pcJqI==13)
{
var EIDkZ=AaWPd+"-search-input";
WA_onSearch(EIDkZ)
return false;
}
return true;
}
function WA_declareSearchIndex(GZxRb,QhWWv)
{
document.const_wa_search_js=GZxRb
document.const_wa_search_index_js=QhWWv
}
function WA_onSearch(EIDkZ)
{
var fxXvk=document.getElementById(EIDkZ);
if(document.wa_search_js_loaded==true)
{
WA_openSearchDialog(fxXvk,document.const_wa_search_index_js)
}
else
{
WA_Dialog.progress();
KdBCC(fxXvk)
}
}
function dcHCP(OEHVX)
{
document.wa_search_js_loaded=true
WA_openSearchDialog(OEHVX[0],document.const_wa_search_index_js)
}
function KdBCC(TBSpD)
{
WA_loadScript(document.const_wa_search_js,dcHCP,[TBSpD])
}
function BYwuJ(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 BYwuJ(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(AaWPd)
{
var qXlex=document.wa_global_menu_declaration[AaWPd]
WA_bg(AaWPd,qXlex.root_lx,qXlex.root_ly,qXlex.root_corner,qXlex.root_border,qXlex.root_col_border,[qXlex.root_bg],false,0)
var aDkQC=document.getElementById(qXlex.id)
if(!aDkQC)return;
var c=aDkQC.getContext('2d');
c.lineWidth=1
c.strokeStyle=qXlex.root_col_separator
var caowe=0.5;

var ZYYYp=qXlex.root_sizes.length
if(qXlex.root_extend==false)
{
ZYYYp--;
}
var CuBIj=3;
for(var i=0;i<ZYYYp;i++)
{
var gQLAH=qXlex.root_sizes[i] 

c.beginPath();
if(qXlex.root_vertical==false)
{
caowe+=(gQLAH-1)
c.moveTo(caowe,CuBIj)
c.lineTo(caowe,qXlex.root_ly-CuBIj)
}
else
{
caowe+=(gQLAH)
c.moveTo(CuBIj,caowe-1,0)
c.lineTo(qXlex.root_lx-CuBIj,caowe-1)
}
c.closePath();
c.stroke()
}
}
function WA_declare_menu(AaWPd,qXlex)
{
if(!document.wa_global_menu_declaration)document.wa_global_menu_declaration=new Array();
qXlex.id=AaWPd
document.wa_global_menu_declaration[AaWPd]=qXlex
WA_bg_menu(AaWPd)
}
function WA_declareMarket(AaWPd,Mhkng_market,AaWPd_modif)
{
if(typeof(wa_global_market.markets[AaWPd])=="undefined")
{
var o=new Array();
o.src_folder=Mhkng_market
o.id_modif=AaWPd_modif 

o.id=AaWPd
wa_global_market.markets[AaWPd]=o;
}
}
function WA_button_market_declare(AaWPd,qMNrF)
{
if(!document.wa_global_button_market_declaration)document.wa_global_button_market_declaration=new Array();
document.wa_global_button_market_declaration[AaWPd]=qMNrF
}
function tCxZO(c,img,fPfui,UIVRA,gFUDV,qgeJE,KhKwp,WGMlq,YkrLu)
{
c.globalAlpha=WGMlq
if(YkrLu) c.clearRect(0,0,gFUDV,qgeJE) 
if(WGMlq==0)return;
if(KhKwp)
{
c.drawImage(img,KhKwp.x,KhKwp.y,KhKwp.width,KhKwp.height,fPfui,UIVRA,gFUDV,qgeJE)
}
else
{
c.drawImage(img,fPfui,UIVRA,gFUDV,qgeJE)
}
}
function WA_drawImage(id,Dbbsr,fPfui,UIVRA,gFUDV,qgeJE,KhKwp,WGMlq,YkrLu)
{
if(YkrLu==undefined)YkrLu=true;
if(WGMlq==undefined)WGMlq=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==Dbbsr)
{
tCxZO(c,c.nlKmO,fPfui,UIVRA,gFUDV,qgeJE,KhKwp,WGMlq,YkrLu)
return;
}
var img=new Image();
img.UvaXW=el.UvaXW
img.onload=function()
{
c.old_src=Dbbsr
c.nlKmO=this;
tCxZO(c,this,fPfui,UIVRA,gFUDV,qgeJE,KhKwp,WGMlq,YkrLu)
}
img.src=Dbbsr;
}

-->
