<!--

function Delegate(){}
Delegate.create=function(o,f){
var utRjX=new Array();
var boLMb=arguments.length;
for(var i=2;i<boLMb;i++) utRjX[i-2]=arguments[i];
return function(){
var adxbt=[].concat(arguments,utRjX);
f.apply(o,adxbt);
}
}
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.DwSXq=0;
t.vmvKL=0;
t.Khwas=0;
t.tfeDp=0;
t.YxurA=0;
t.RPjbn=0;
t.lxIwU=false;
t.name='';
t.suffixe='';
t.WmPfr=new Array();
t.setTime=function(t){
this.prevTime=this.vmvKL;
if(t>this.getDuration()){
if(this.looping){
this.rewind(t-this.DwSXq);
this.update();
this.JWDpU('onMotionLooped',{target:this,type:'onMotionLooped'});
}else{
this.vmvKL=this.DwSXq;
this.update();
this.stop();
this.JWDpU('onMotionFinished',{target:this,type:'onMotionFinished'});
}
}else if(t<0){
this.rewind();
this.update();
}else{
this.vmvKL=t;
this.update();
}
}
t.isRunning=function(){
return this.lxIwU;
}
t.getTime=function(){
return this.vmvKL;
}
t.setDuration=function(d){
this.DwSXq=(d==null||d<=0)?100000:d;
}
t.getDuration=function(){
return this.DwSXq;
}
t.setPosition=function(p){
this.prevPos=this.Khwas;
var a=this.suffixe!=''?this.suffixe:'';
this.obj[this.prop]=Math.round(p)+a;
this.Khwas=p;
this.JWDpU('onMotionChanged',{target:this,type:'onMotionChanged'});
}
t.getPosition=function(t){
if(t==undefined) t=this.vmvKL;
return this.func(t,this.begin,this.change,this.DwSXq);
};
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.WmPfr=new Array();
this.addListener(this);
if(suffixe) this.suffixe=suffixe;
this.obj=obj;
this.prop=prop;
this.begin=begin;
this.Khwas=begin;
this.setDuration(duration);
if(func!=null&&func!=''){
this.func=func;
}
this.setFinish(finish);
}
t.start=function(){
this.rewind();
this.startEnterFrame();
this.JWDpU('onMotionStarted',{target:this,type:'onMotionStarted'});
}
t.rewind=function(t){
this.stop();
this.vmvKL=(t==undefined)?0:t;
this.fixTime();
this.update();
}
t.fforward=function(){
this.vmvKL=this.DwSXq;
this.fixTime();
this.update();
}
t.update=function(){
this.setPosition(this.getPosition(this.vmvKL));
}
t.startEnterFrame=function(){
this.stopEnterFrame();
this.lxIwU=true;
this.onEnterFrame();
}
t.onEnterFrame=function(){
if(this.lxIwU){
this.nextFrame();
wa_timeout(Delegate.create(this,this.onEnterFrame),0);
}
}
t.nextFrame=function(){
this.setTime((this.getTimer()-this.YxurA)/1000);
}
t.stop=function(){
this.stopEnterFrame();
this.JWDpU('onMotionStopped',{target:this,type:'onMotionStopped'});
}
t.stopEnterFrame=function(){
this.lxIwU=false;
}
t.continueTo=function(finish,duration){
this.begin=this.Khwas;
this.setFinish(finish);
if(this.DwSXq!=undefined)
this.setDuration(duration);
this.start();
}
t.resume=function(){
this.fixTime();
this.startEnterFrame();
this.JWDpU('onMotionResumed',{target:this,type:'onMotionResumed'});
}
t.yoyo=function(){
this.continueTo(this.begin,this.vmvKL);
}
t.addListener=function(o){
this.removeListener(o);
return this.WmPfr.push(o);
}
t.removeListener=function(o){
var a=this.WmPfr;
var i=a.length;
while(i--){
if(a[i]==o){
a.splice(i,1);
return true;
}
}
return false;
}
t.JWDpU=function(){
var arr=new Array();
for(var i=0;i<arguments.length;i++){
arr.push(arguments[i])
}
var e=arr.shift();
var a=this.WmPfr;
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.YxurA=this.getTimer()-this.vmvKL*1000;
}
t.getTimer=function(){
return new Date().getTime()-this.vmvKL;
}
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,mfmxJ,dKksX,DwSXq){
this.targetObject=obj;
this.init(new Object(),'a',func,mfmxJ,dKksX,DwSXq);
this.onMotionChanged=function(evt){
var v=evt.target.Khwas;
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(nkesO,ECqHx,SswER)
{
return "<canvas id='"+nkesO+"' width='"+ECqHx+"' height='"+SswER+"'></canvas>"
}
function WA_canvas(nkesO,ECqHx,SswER)
{
document.write(html_canvas(nkesO,ECqHx,SswER))
}
function ZObXT(BbrHj,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;
BbrHj.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;
BbrHj.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;
BbrHj.quadraticCurveTo(cx,cy,px,py);
}
}
function EuFNH(c,x,y,lx,ly,arc,clowckwise)
{
c.beginPath()
sxfkh(c,x,y,lx,ly,arc,clowckwise)
}
function sxfkh(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 qZAwk()
{
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 YEJiJ(lx,ly,parent,id_suffixe)
{
var WujjT=document.createElement('canvas');WujjT.width=lx;WujjT.height=ly;
return WujjT;
}
function cBLiA(mpxUk)
{
var GfWEu=(-mpxUk+45);
return new Point(Math.cos(GfWEu*(2*Math.PI)/360),Math.sin(GfWEu*(2*Math.PI)/360))
}
function pxoWM(c,mpxUk)
{
var offset=cBLiA(mpxUk)
c.shadowOffsetX=2*offset.x;
c.shadowOffsetY=2*offset.y;
c.shadowBlur=4;
}
function WA_over_img_html(ilSDY,mCvoD,bZkGJ)
{
if(!ilSDY.src)
{
var WwkSM=ilSDY.getElementsByTagName("IMG")
if(WwkSM.length==1)ilSDY=WwkSM[0]
}
if(ilSDY.src1==undefined)
{
ilSDY.src1=ilSDY.src;
ilSDY.src2=mCvoD;
}
if(bZkGJ)
{
ilSDY.src=ilSDY.src2;
}
else
{
ilSDY.src=ilSDY.src1;
}
}
function WA_over_img(id,bZkGJ)
{
var el=document.getElementById(id+"-canvas") 

var ilSDY=(bZkGJ)?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,[ilSDY,ilSDY],el.wa_shadow,el.wa_rot,el.wa_reflex)
}
function oLRGk(nkesO,lx,ly,arc,side)
{
this.id=nkesO;
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.hahmX=function(canv2)
{
if(isIPhone()) return;
if(/opera/i.test(navigator.userAgent)) return;
if(navigator.userAgent.match(/Firefox/i))
{
var div=document.getElementById(this.id)
if(div.style.MozTransform===undefined) return;
}
var inHlo=document.getElementById(this.id+"-reflex")
var omuAb=inHlo.getContext('2d');
omuAb.translate(this.lx,0)
omuAb.scale(-1,1)
omuAb.beginPath()
EuFNH(omuAb,1,1,this.lx-2,this.ly-2,this.arc)
omuAb.clip() 


omuAb.drawImage(canv2,this.sX,this.sY,this.sLx,this.sLy,this.sX,this.sY,this.sLx,this.sLy);
omuAb.globalCompositeOperation="destination-out";
var gradient=omuAb.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)");
omuAb.fillStyle=gradient;
omuAb.beginPath()
omuAb.rect(this.sX-this.decX,this.sY-this.decY,this.sLx,this.sLy);
omuAb.fill();
omuAb.globalCompositeOperation="source-over";
omuAb.scale(-1,1)
omuAb.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 hkLVJ(c2,lx,ly,VmkZK,bord_col,arc,arc2)
{
if(VmkZK>0)
{
c2.beginPath()
c2.fillStyle=bord_col;
c2.beginPath()
EuFNH(c2,0,0,lx,ly,arc)
sxfkh(c2,VmkZK,VmkZK,lx-2*VmkZK,ly-2*VmkZK,arc2,true)
c2.fill()
}
}
function HohFm()
{
this.tx=0
this.ty=0
this.rotation=0
}
function oBAuh(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 HohFm()
}
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 Qtuvh=0;
if(shadow)Qtuvh=6
var DniND=id+"-canvas"
var el=document.getElementById(DniND)
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)-Qtuvh,div.wa_pos.y-Qtuvh)
html_SetCanvasSize(el,div.wa_size.height+2*Qtuvh,div.wa_size.width+2*Qtuvh)
html_SetCanvasSize(canv2,div.wa_size.height+4*Qtuvh,div.wa_size.width+4*Qtuvh)
html_SetSize(div,div.wa_size.height+2*Qtuvh,div.wa_size.width+2*Qtuvh) 
matrix.tx=ly+2*Qtuvh
matrix.ty=2*Qtuvh
}
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-Qtuvh,div.wa_pos.y-lx-Qtuvh)
html_SetCanvasSize(el,div.wa_size.height+2*Qtuvh,div.wa_size.width+2*Qtuvh)
html_SetCanvasSize(canv2,div.wa_size.height+4*Qtuvh,div.wa_size.width+4*Qtuvh)
html_SetSize(div,div.wa_size.height+2*Qtuvh,div.wa_size.width+2*Qtuvh) 
matrix.tx=2*Qtuvh
matrix.ty=lx+2*Qtuvh
}
matrix.rotation=rot*2*Math.PI/360
c2.translate(matrix.tx,matrix.ty)
c2.rotate(matrix.rotation)
}
}
function WA_img(id,lx,ly,arc,VmkZK,bord_col,s_img,shadow,rot,xNhHJ)
{
var DniND=id+"-canvas"
var el=document.getElementById(DniND)
var c=el.getContext('2d');
var YFnDa=false;
if((xNhHJ!=undefined)&&(xNhHJ!=-1))
{
YFnDa=new oLRGk(DniND,lx,ly,arc,xNhHJ)
}
var Qtuvh=0;
if(shadow)Qtuvh=6 

if(el.wa_lx==undefined)
{
el.wa_lx=lx
el.wa_ly=ly
el.wa_arc=arc
el.wa_bord_siz=VmkZK
el.wa_bord_col=bord_col
el.wa_s_img=s_img
el.wa_shadow=shadow
el.wa_rot=rot
el.wa_reflex=xNhHJ
c.translate(Qtuvh,Qtuvh)
}
var RTXge_img=document.getElementById(id+"-cache")
RTXge_img.onload=function()
{
c.clearRect(0,0,lx+2*Qtuvh,ly+2*Qtuvh)
var arc2=arc-VmkZK;
if(arc2<0)arc2=0;
this.width=lx-2*VmkZK
this.height=ly-2*VmkZK
if(isMSIE())
{
if(shadow) mUxNP(c,0,0,lx,ly,arc,false,rot)
var sTtPs=c.createPattern(this,'no-repeat');
c.fillStyle=sTtPs;
c.beginPath()
EuFNH(c,VmkZK,VmkZK,lx-2*VmkZK,ly-2*VmkZK,arc2)
c.translate(VmkZK,VmkZK)
c.fill()
c.translate(-VmkZK,-VmkZK)
hkLVJ(c,lx,ly,VmkZK,bord_col,arc,arc2)
}
else
if(navigator.userAgent.match(/Firefox/i)&&(shadow))
{
var fDItJ=new  HohFm()
oBAuh(id,lx,ly,rot,c,el,shadow,fDItJ)
if(shadow) mUxNP(c,0,0,lx,ly,arc,false,rot)
var c2=c
hkLVJ(c2,lx,ly,VmkZK,bord_col,arc,arc2)
c2.beginPath()
EuFNH(c2,VmkZK,VmkZK,lx-2*VmkZK,ly-2*VmkZK,arc2)
c2.clip()
c2.drawImage(this,VmkZK,VmkZK,lx-2*VmkZK,ly-2*VmkZK);
c2.rotate(-fDItJ.rotation)
c2.translate(-fDItJ.tx,-fDItJ.ty)
}
else
{
var canv2=YEJiJ(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
var fDItJ=new  HohFm()
oBAuh(id,lx,ly,rot,c2,canv2,shadow,fDItJ)
c.clearRect(-Qtuvh,-Qtuvh,lx+2*Qtuvh,ly+2*Qtuvh)
hkLVJ(c2,lx,ly,VmkZK,bord_col,arc,arc2)
c2.beginPath()
EuFNH(c2,VmkZK,VmkZK,lx-2*VmkZK,ly-2*VmkZK,arc2)
c2.clip()
c2.drawImage(this,VmkZK,VmkZK,lx-2*VmkZK,ly-2*VmkZK);
c2.rotate(-fDItJ.rotation)
c2.translate(-fDItJ.tx,-fDItJ.ty)
if(shadow) pxoWM(c,rot)
c.drawImage(canv2,0,0);
if(YFnDa)
{
YFnDa.hahmX(canv2)
}
}
}
RTXge_img.src=s_img[0];
}
function bMsSN(fXIhF,mpxUk,NUSTj,qCrxv)
{
fXIhF.style.left=NUSTj+"px"
fXIhF.style.top=qCrxv+"px"
fXIhF.style.webkitTransformOrigin="0 0"
fXIhF.style.webkitTransform="rotate("+mpxUk+"deg)";
}
function LQPjD(c,type,lx,ly,corner)
{
if(type==1)
ZObXT(c,0,0,lx,ly)
else
EuFNH(c,0,0,lx,ly,corner)
}
function uEHwr(el,c,type,lx,ly,corner,bg,tMeIi,rot)
{
if(qZAwk()==false)
{
c.fillStyle=bg;
LQPjD(c,type,lx,ly,corner)
c.fill()
}
else
{
var canv2=YEJiJ(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.fillStyle=bg;
LQPjD(c2,type,lx,ly,corner)
c2.fill()
if(tMeIi) pxoWM(c,rot)
c.drawImage(canv2,0,0);
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
}
}
function IbeUG(c,type,lx,ly,pQBlP,bg,OphTT,gnivr_glow)
{
if(OphTT)
{
var x1=OphTT[0];var y1=OphTT[1];var lx1=OphTT[2];var ly1=OphTT[3];var oTFPw=OphTT[4];
var jVHYm=c.createLinearGradient(x1,y1,x1,y1+ly1);
jVHYm.addColorStop(0,"rgba(255,255,255,0.7)");jVHYm.addColorStop(1,"rgba(255,255,255,0.1)");
c.fillStyle=jVHYm;
if(type==1) ZObXT(c,x1,y1,lx1,ly1)
else
EuFNH(c,x1,y1,lx1,ly1,oTFPw)
c.fill()
}
if(gnivr_glow)
{
var x2=gnivr_glow[0];var y2=gnivr_glow[1];var lx2=gnivr_glow[2];var ly2=gnivr_glow[3];
var ohBOI=gnivr_glow[4];
var WSRPc_glow=new RGBColor(gnivr_glow[5]);
WSRPc_glow.a=0;
var col1=gnivr_glow[5];
var col2=WSRPc_glow.toRGB();
var wXIrs=c.createLinearGradient(x2,y2,x2,y2+ly2);
wXIrs.addColorStop(0,col2);
wXIrs.addColorStop(0.2,col2);
wXIrs.addColorStop(1,col1);
c.fillStyle=wXIrs;
if(type==1) ZObXT(c,x2,y2,lx2,ly2)
else
EuFNH(c,x2,y2,lx2,ly2,ohBOI)
c.fill()
}
}
function sbxHL(SapuH,nkesO,CAlDX,ECqHx,SswER,pQBlP,YvHis,OphTT,gnivr_glow,tMeIi,mpxUk)
{
SapuH.nkesO=nkesO;SapuH.CAlDX=CAlDX;
SapuH.ECqHx=ECqHx;SapuH.SswER=SswER;
SapuH.pQBlP=pQBlP;SapuH.YvHis=YvHis,SapuH.OphTT=OphTT;
SapuH.gnivr_glow=gnivr_glow;SapuH.tMeIi=tMeIi;SapuH.mpxUk=mpxUk;
}
function WA_but_over(nkesO,YvHis_over,WSRPc_glow)
{
var GMNnF=document.getElementById(nkesO) 
if(GMNnF&&GMNnF.NCaJS)
with(GMNnF.NCaJS)
{
var gnivr_glow_over;
if(gnivr_glow&&WSRPc_glow)
{
gnivr_glow_over=new Array();
for(var xOdvN=0;xOdvN<gnivr_glow.length;xOdvN++)gnivr_glow_over[xOdvN]=gnivr_glow[xOdvN];
gnivr_glow_over[5]=WSRPc_glow;
}
WA_but(nkesO,CAlDX,ECqHx,SswER,pQBlP,YvHis_over,OphTT,gnivr_glow_over,tMeIi,mpxUk);
}
var sDoih_over0=document.getElementById(nkesO+"-div0")
if(sDoih_over0)html_SetVisibility(sDoih_over0,false);
var MWAJT=document.getElementById(nkesO+"-div1")
if(MWAJT)html_SetVisibility(MWAJT,true);
}
function WA_but_out(nkesO)
{
var GMNnF=document.getElementById(nkesO)
with(GMNnF.NCaJS)
{
WA_but(nkesO,CAlDX,ECqHx,SswER,pQBlP,YvHis,OphTT,gnivr_glow,tMeIi,mpxUk);
}
var sDoih_over0=document.getElementById(nkesO+"-div0")
if(sDoih_over0)html_SetVisibility(sDoih_over0,true);
var MWAJT=document.getElementById(nkesO+"-div1")
if(MWAJT)html_SetVisibility(MWAJT,false);
}
function WA_but(id,type,lx,ly,corner,bg,top_light,s_glow,tMeIi,rot)
{
var el=document.getElementById(id)
if(el.NCaJS==undefined)
{
el.NCaJS=new Array();
sbxHL(el.NCaJS,id,type,lx,ly,corner,bg,top_light,s_glow,tMeIi,rot);
}
var c=el.getContext('2d');
var Qtuvh=0;
if(tMeIi)Qtuvh=6 
c.fillStyle="#000000";
c.fillRect(0,0,lx+2*Qtuvh,ly+2*Qtuvh) 
c.clearRect(0,0,lx+2*Qtuvh,ly+2*Qtuvh) 
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(qZAwk()==false)
{
c.translate(Qtuvh,Qtuvh)
img.width=lx
img.height=ly 
if(tMeIi)
mUxNP(c,0,0,lx,ly,corner,(type==1),rot)
if(navigator.userAgent.match(/Firefox/i))
{
c.beginPath()
LQPjD(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()
LQPjD(c,type,lx,ly,corner)
c.fill()
}
IbeUG(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-Qtuvh,-Qtuvh)
}
else
{
var canv2=YEJiJ(lx,ly,el,"bis");
var c2=canv2.getContext('2d');
c2.beginPath()
LQPjD(c2,type,lx,ly,corner)
c2.clip()
c2.drawImage(img,0,0,lx,ly);
IbeUG(c2,type,lx,ly,corner,bg,top_light,s_glow)
if(tMeIi) pxoWM(c,rot) 
c.drawImage(canv2,Qtuvh,Qtuvh);
}
}
img.src=bg2;
return;
}
c.translate(Qtuvh,Qtuvh) 
if(tMeIi&&(qZAwk()==false))
{
var Apjsr=new RGBColor(bg);
if(Apjsr.a>0)
{
mUxNP(c,0,0,lx,ly,corner,(type==1),rot)
}
}
uEHwr(el,c,type,lx,ly,corner,bg2,tMeIi,rot)
IbeUG(c,type,lx,ly,corner,bg,top_light,s_glow)
c.translate(-Qtuvh,-Qtuvh)
}
function mUxNP(c,x0,y0,lx0,ly0,corner,is_circle,rot)
{
var decShadow=2;
var offset=cBLiA(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) ZObXT(c,x,y,lx,ly);else EuFNH(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 ccSxv(id,x,y,lx,ly,arc,VmkZK,bord_col,bg,shadow,rot,vpJhU,LdQMg)
{
if(LdQMg==undefined)LdQMg=true;
var el=document.getElementById(id)
var c=el.getContext('2d');
if(vpJhU==undefined)vpJhU=1.0;
var Qtuvh=0;
c.shadowOffsetX=0;
c.shadowOffsetY=0;
c.shadowBlur=0;
if(shadow)
{
Qtuvh=6;
}
if(LdQMg) c.clearRect(0,0,el.width,el.height)
c.globalAlpha=vpJhU 
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 tuZUS=bg1.split(";");
var x1=parseFloat(tuZUS[0]);
var y1=parseFloat(tuZUS[1]);
var x2=parseFloat(tuZUS[2]);
var y2=parseFloat(tuZUS[3]);
var col1=tuZUS[4];
var col2=tuZUS[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-VmkZK;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
{
if(shadow) mUxNP(c,Qtuvh,Qtuvh,lx,ly,arc,false,rot)
}
if(VmkZK>0)
{
c2.fillStyle=bord_col;
EuFNH(c2,x,y,lx,ly,arc)
sxfkh(c2,x+VmkZK,y+VmkZK,lx-2*VmkZK,ly-2*VmkZK,arc2,true)
c2.fill()
}


c2.fillStyle=fill_obj 
EuFNH(c2,x+VmkZK,y+VmkZK,lx-2*VmkZK,ly-2*VmkZK,arc2)
c2.fill();
}
function bFwsE(BGMat,WIMmw,LeaNZ)
{
return new Point(Math.round(BGMat*Math.cos(LeaNZ)-WIMmw*Math.sin(LeaNZ)),Math.round(BGMat*Math.sin(LeaNZ)+WIMmw*Math.cos(LeaNZ)))
}
function FoRZS(c,x,y,lx,ly,arc,clowckwise,mpxUk)
{
c.beginPath()
VSMai(c,x,y,lx,ly,arc,clowckwise,mpxUk)
}
function VSMai(c,x,y,lx,ly,arc,clowckwise,mpxUk)
{
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 FZCXp=[[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=mpxUk*2*Math.PI/360
for(var n=0;n<FZCXp.length;n++)
{
var qTKJs=FZCXp[n][0]
var xLwUD=FZCXp[n][1]
FZCXp[n][0]=qTKJs*Math.cos(theta)-xLwUD*Math.sin(theta);
FZCXp[n][1]=qTKJs*Math.sin(theta)+xLwUD*Math.cos(theta);
}
var n=0;
c.moveTo(FZCXp[n][0],FZCXp[n++][1]);
c.lineTo(FZCXp[n][0],FZCXp[n++][1]);
c.quadraticCurveTo(FZCXp[n][0],FZCXp[n++][1],FZCXp[n][0],FZCXp[n++][1]);
c.lineTo(FZCXp[n][0],FZCXp[n++][1]);
c.quadraticCurveTo(FZCXp[n][0],FZCXp[n++][1],FZCXp[n][0],FZCXp[n++][1]);
c.lineTo(FZCXp[n][0],FZCXp[n++][1]);
c.quadraticCurveTo(FZCXp[n][0],FZCXp[n++][1],FZCXp[n][0],FZCXp[n++][1]);
c.lineTo(FZCXp[n][0],FZCXp[n++][1]);
c.quadraticCurveTo(FZCXp[n][0],FZCXp[n++][1],FZCXp[n][0],FZCXp[n++][1]);
}
function RDmtM(a,b,x,y)
{
return(a*x-y+b)/(Math.sqrt(1+a*a))
}
function QIqwI(new_a1,new_b1,Gxagj,multi)
{
var d=0;
for(var i=0;i<Gxagj.length;i++)
{
var cJbSJ=Gxagj[i]
var d1=RDmtM(new_a1,new_b1,cJbSJ.x,cJbSJ.y)
if(multi<0)
{
if(d1<0) d=Math.max(d,-d1);
}
else
{
if(d1>0) d=Math.max(d,d1);
}
}
return d;
}
function YMKWh(o1,o2)
{
if(o1<o2) return-1
if(o1>o2) return 1
return 0
}
function HiaNe(c,lx,ly,bg1)
{
var fill_obj=false;
var KKrFn=false;
var VOQns=false;
var Gxagj=false
if(bg1.substring(0,1)=="(")
{
bg1=bg1.substring(1);
bg1=bg1.substring(0,bg1.length-1)
var tuZUS=bg1.split(";");
var RYSwj=new Point(parseFloat(tuZUS[0]),parseFloat(tuZUS[1]));
var Zqbqj=new Point(parseFloat(tuZUS[2]),parseFloat(tuZUS[3]));
KKrFn=RYSwj.clone()
VOQns=Zqbqj.clone()
var col1=tuZUS[4];
var col2=tuZUS[5];
var grad=c.createLinearGradient(KKrFn.x,KKrFn.y,VOQns.x,VOQns.y);
if(isMSIE())
{
KKrFn=RYSwj.clone()
VOQns=Zqbqj.clone() 
var jVHYm=0;
var wXIrs=1;
{
Gxagj=[{x:0,y:0},{x:lx,y:0},{x:lx,y:ly},{x:0,y:ly}]
var d1=0;
var d2=0;
var a=(VOQns.y-KKrFn.y)/(VOQns.x-KKrFn.x);
var b=KKrFn.y-a*KKrFn.x;
var diff=1;
if(a==Infinity)
{
d1=(KKrFn.y)
d2=(ly-VOQns.y)
}
else
if(a==0)
{
d1=(KKrFn.x)
d2=(lx-VOQns.x)
}
else
{
var new_a1=-1/a;
var new_b1=KKrFn.y-new_a1*KKrFn.x;
d1=QIqwI(new_a1,new_b1,Gxagj,-1)
var new_b2=VOQns.y-new_a1*VOQns.x;
d2=QIqwI(new_a1,new_b2,Gxagj,1)
if(new_a1<0)diff=-1;
}
var d=Math.sqrt(Math.pow(VOQns.x-KKrFn.x,2)+Math.pow(VOQns.y-KKrFn.y,2))
var total=(d1+d+d2)
jVHYm=d1/total;
wXIrs=(d1+d)/total;
var pt_prod0=new Point(VOQns.x-KKrFn.x,VOQns.y-KKrFn.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)
{
jVHYm=d2/total;
wXIrs=(d2+d)/total;
}
}
grad.addColorStop(jVHYm,col1);
grad.addColorStop(wXIrs,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,VmkZK,bord_col,bg,shadow,rot,RKDPe,ssBau,vpJhU,LdQMg)
{


var theta=rot*2*Math.PI/360 
if(LdQMg==undefined)LdQMg=true;
if(vpJhU==undefined)vpJhU=1.0;
var el=document.getElementById(id)
if(!el)return
var c=el.getContext('2d');
var Qtuvh=(el.width-lx)/2;
if(LdQMg) c.clearRect(0,0,el.width,el.height)
var x_rect0=Qtuvh;
var y_rect0=Qtuvh;
var bg1=bg[0]
var fill_obj=false;
var KKrFn=false;
var VOQns=false;
var Gxagj=false
fill_obj=HiaNe(c,lx,ly,bg1) 
if(vpJhU==undefined)vpJhU=1.0;
var arc2=arc-VmkZK;
if(arc2<0)arc2=0
var canv2=false;
var c2=c;
if(shadow)
{
c2.translate(RKDPe+6,ssBau+6)
}
else
{
c2.translate(RKDPe,ssBau)
}
c2.fillStyle=fill_obj;
FoRZS(c2,VmkZK,VmkZK,lx-2*VmkZK,ly-2*VmkZK,arc2,false,rot)
c2.fill();
}
function WA_bg(id,lx,ly,arc,VmkZK,bord_col,bg,shadow,rot,vpJhU,LdQMg)
{

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

var fill_obj=HiaNe(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()
CpclE(c,el,lx,ly,arc,VmkZK,bord_col,ptrn,shadow,rot,vpJhU)
}
img.src=bg2;
}
else
{
CpclE(c,el,lx,ly,arc,VmkZK,bord_col,fill_obj,shadow,rot,vpJhU)
}
}
function CpclE(c,el,lx,ly,arc,VmkZK,bord_col,fill_obj,shadow,rot,vpJhU)
{
if(vpJhU==undefined)vpJhU=1.0;
var arc2=arc-VmkZK;
if(arc2<0)arc2=0
var Qtuvh=(el.width-lx)/2;
var x_rect0=Qtuvh;
var y_rect0=Qtuvh;
var canv2=false;
var c2=c;
c.globalAlpha=vpJhU
if(qZAwk()==true)
{
canv2=YEJiJ(lx,ly);
c2=canv2.getContext('2d');
c2.globalAlpha=vpJhU
}
else
{
c2.translate(Qtuvh,Qtuvh)
if(shadow) mUxNP(c,0,0,lx,ly,arc,false,rot)
}
if(VmkZK>0)
{
c2.fillStyle=bord_col;
EuFNH(c2,0,0,lx,ly,arc)
sxfkh(c2,VmkZK,VmkZK,lx-2*VmkZK,ly-2*VmkZK,arc2,true)
c2.fill()
}
c2.fillStyle=fill_obj;
EuFNH(c2,VmkZK,VmkZK,lx-2*VmkZK,ly-2*VmkZK,arc2)
c2.fill();
if(qZAwk()==true)
{
if(shadow) pxoWM(c,rot)
c.drawImage(canv2,Qtuvh,Qtuvh);
}
else
{
c2.translate(-Qtuvh,-Qtuvh)
}
}
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(gnivr){return(this.width>gnivr.width)&&(this.height>gnivr.height)}
this.scale=function(jDxSm,nwWvo)
{
if(!nwWvo)nwWvo=false
var qrbiw=this;
var hSerB=qrbiw.width
var Ypvbn=qrbiw.height
var p1=hSerB*jDxSm.height;
var p2=jDxSm.width*Ypvbn;
var r1=hSerB/Ypvbn;
var r2=Ypvbn/hSerB;
var newSize1=new Size(jDxSm.height*r1,jDxSm.height);
var newSize2=new Size(jDxSm.width,jDxSm.width*r2);
if(p2>p1)
{
if((nwWvo==true)||((newSize1.width<=qrbiw.width)&&(newSize1.height<=qrbiw.height)))
{
qrbiw.width=Math.round(newSize1.width);
qrbiw.height=Math.round(newSize1.height);
}
}
else
{
if((nwWvo==true)||((newSize2.width<=qrbiw.width)&&(newSize2.height<=qrbiw.height)))
{
qrbiw.width=Math.round(newSize2.width);
qrbiw.height=Math.round(newSize2.height);
}
}
this.width=qrbiw.width;
this.height=qrbiw.height;
return true;
}
}
function Point(p_x,p_y){this.x=p_x;this.y=p_y;
this.translate=function(BGMat,WIMmw){this.x+=BGMat;this.y+=WIMmw;}
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(fXIhF){return(this.x==fXIhF.x)&&(this.y==fXIhF.y)&&(this.width==fXIhF.width)&&(this.height==fXIhF.height);}
this.copy=function(fXIhF){this.x=fXIhF.x;this.y=fXIhF.y;this.width=fXIhF.width;this.height=fXIhF.height;}
this.translate=function(BGMat,WIMmw){this.x+=BGMat;this.y+=WIMmw;}
this.isValid=function(){return(this.width>0)&&(this.height>0);}
}
function html_getLayer(fXIhF)
{
if(typeof(fXIhF)=="string")return document.getElementById(fXIhF);
return fXIhF;
}
function html_SetPosition(fXIhF,BGMat,WIMmw){
fXIhF=html_getLayer(fXIhF);
fXIhF.style.left=BGMat+"px";fXIhF.style.top=WIMmw+"px";
}
function html_SetSize(ZRtAK,ECqHx,SswER){
fXIhF=html_getLayer(ZRtAK);
fXIhF.style.width=ECqHx+"px";fXIhF.style.height=SswER+"px";
}
function html_SetRect(fXIhF,PxhmE){html_SetGeometry(fXIhF,PxhmE.x,PxhmE.y,PxhmE.width,PxhmE.height);}
function html_SetGeometry(fXIhF,BGMat,WIMmw,ECqHx,SswER){html_SetPosition(fXIhF,BGMat,WIMmw);html_SetSize(fXIhF,ECqHx,SswER);}
function html_SetVisibility(fXIhF,sfYqx){fXIhF=html_getLayer(fXIhF);fXIhF.style.visibility=(sfYqx)?"visible":"hidden";}
function html_SetDisplay(fXIhF,sfYqx){fXIhF=html_getLayer(fXIhF);fXIhF.style.display=(sfYqx)?"block":"none";}
function html_SetCanvasSize(fXIhF,ECqHx,SswER){fXIhF=html_getLayer(fXIhF);fXIhF.width=ECqHx;fXIhF.height=SswER;}
function html_writeContent(fXIhF,gnivr){fXIhF=html_getLayer(fXIhF);fXIhF.innerHTML=gnivr;}
function html_SetOpacity(fXIhF,utRjX)
{
fXIhF=html_getLayer(fXIhF);
fXIhF.style['opacity']=utRjX;
fXIhF.style['-moz-opacity']=utRjX;
fXIhF.style.filter=(utRjX==1)?'':'alpha(opacity='+(utRjX*100)+')';
}
var OXkSO=[
{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<OXkSO.length;i++)
{
var array2=OXkSO[i].l;
for(var i2=0;i2<array2.length;i2++)
{
var reg=new RegExp(array2[i2],"g");
res=res.replace(reg,OXkSO[i].acc)
}
}
return res;
}
function trimString(str)
{
return str.replace(/^\s*|\s*$/g,"");
}
function IsNumeric(AQYmU)
{
var VamFh="0123456789.";var tFEXW=true;var ogRHq;
for(xOdvN=0;xOdvN<AQYmU.length&&tFEXW==true;xOdvN++){ogRHq=AQYmU.charAt(xOdvN);if(VamFh.indexOf(ogRHq)==-1) tFEXW=false;}
return tFEXW;
}
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(ZbcNo)
{
var JlUhe=ZbcNo*60;
var ltUtB=new Date();
var aOZWW=0;
aOZWW+=ltUtB.getYear()*12*31*24*60*60;
aOZWW+=ltUtB.getMonth()*31*24*60*60;
aOZWW+=ltUtB.getDate()*24*60*60;
aOZWW+=ltUtB.getHours()*60*60;
aOZWW+=ltUtB.getMinutes()*60;
aOZWW+=ltUtB.getSeconds();
if(JlUhe!=0)
{
aOZWW=Math.floor(aOZWW/JlUhe)*JlUhe
}
return "-"+aOZWW;
}
function html_findPos(obj)
{
var utRjX=TEsaJ(obj)
return new Point(utRjX[0],utRjX[1])
}
function TEsaJ(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(XJnxl,ECqHx,SswER)
{
document.write("<input id='"+XJnxl+"' type=search results=0 placeholder='' style='width:"+ECqHx+"px;height:"+SswER+"px;'>")
}
function vAGJk()
{
var WwkSM=document.getElementsByTagName("A");
for(var xOdvN=0;xOdvN<WwkSM.length;xOdvN++)
{
var fXIhF=WwkSM[xOdvN];
if(fXIhF.onmouseover)fXIhF.onmouseover=null;
if(fXIhF.onmouseout)fXIhF.onmouseout=null;
}
}
function MBQcm()
{
for(var OrlXg in document.wa_global_list_element)
{
var nkesO=document.wa_global_list_element[OrlXg]
var GMNnF=document.getElementById(nkesO)
GMNnF.onclick=function()
{
WA_focus(this)
}
}
}
function WA_declare(nkesO)
{
if(!document.wa_global_list_element)
{
document.wa_global_list_element=new Array();;
}
document.wa_global_list_element.push(nkesO)
}
function EPpWZ()
{
var KGfAf=window.location.search;
if(KGfAf.substr(0,1)=="?")KGfAf=KGfAf.substr(1);
if(KGfAf.length==0)return;
var Pjenw=new Array();
var KBgpL=KGfAf.split("&");
for(var i=0;i<KBgpL.length;i++)
{
var Jsgfd=KBgpL[i].split("=");Pjenw[Jsgfd[0]]=Jsgfd[1];
}
var gnivr_info=Pjenw["crbst_info"];
if(!gnivr_info)return;
var gFBUe=new Array();
gFBUe.m_unid=gnivr_info;
gFBUe.m_index_item=-1;
var PMCSn=gnivr_info.indexOf("-");
if(PMCSn!=-1)
{
gFBUe.m_unid="wa-id-"+gnivr_info.substring(0,PMCSn);
gFBUe.m_index_item=parseInt(gnivr_info.substring(PMCSn+1));
}
document.wa_global_query_info=gFBUe;
}
function IS_onload_WA()
{

if(isMSIE8())
{
wa_timeout("IS_onload_ui()",0)
}
else
{
IS_onload_ui()
}
if(isIPhone())
{
vAGJk()
}
else
{
MBQcm()
}
EPpWZ();

Omlfj()
}
function Omlfj()
{
var OEWaS=0;
var FrJef=document.webaca_banner_height;
if(document.webaca_page_is_centered)
{
var mOurO=getWindowSize().width
var BQfXl=document.webaca_width_page
if(mOurO>BQfXl)OEWaS=(mOurO-BQfXl)/2;
}
document.body.style.backgroundPosition=OEWaS+"px "+FrJef+"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 mBqja=CONST_WA_COUNTRIES.codes[n]
var bqUgH=CONST_WA_COUNTRIES.labels[n]
Translator.m_countries[mBqja]=bqUgH
}
}
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(nkesO,qlmAb,tMeIi)
{
this.nkesO=nkesO;
this.qlmAb=qlmAb
this.tMeIi=tMeIi;
this.kaxHd=this.nkesO+"-div"
this.PmuBD=this.nkesO+"-canvas"
this.FNeGd=new Rect(0,0,0,0)
this.mpFNH=false;
this.FEZTb=false;
this.Qtuvh=6;
this.ktZRV=false;
this.rohPa=false;
this.AMaIT=false;
this.XvswF="";
this.shadow=function()
{
return this.tMeIi;
}
this.marginShadow=function()
{
return this.Qtuvh;
}
this.rect=function()
{
return this.FNeGd;
}
this.canvasId=function()
{
return this.PmuBD;
}
this.divId=function()
{
return this.kaxHd;
}
this.opacity=function()
{
return this.maeAX;
}
this.img_clip=function()
{
return this.rohPa;
}
this.img_src=function()
{
return this.ktZRV;
}
this.toHtml=function()
{
var gnivr=""
gnivr+="<div id='"+this.kaxHd+"' style=\"";
gnivr+="position:absolute;";
if(this.XvswF.length>0)
{
gnivr+="cursor:pointer;";
}
if(this.rect.x>0)gnivr+="left:"+this.rect.x+"px;";
if(this.rect.y>0)gnivr+="top:"+this.rect.y+"px;";
if(this.rect.width>0)gnivr+="width:"+this.rect.width+"px;";
if(this.rect.height>0)gnivr+="height:"+this.rect.height+"px;";
if(qlmAb)
gnivr+="z-index:"+qlmAb+";";
gnivr+="\" ";
if(this.XvswF.length>0)
{
gnivr+="onclick=\""+this.XvswF+"\" "
}
gnivr+=">";
if((this.rect.width>0)&&this.shadow())
{
gnivr+=html_canvas(this.PmuBD,this.rect.width+2*this.Qtuvh,this.rect.height+2*this.Qtuvh)+"</div>";
}
else
{
gnivr+=html_canvas(this.PmuBD,0,0)+"</div>";
}
return gnivr
}
this.setImage=function(IMpYB,NNMCL,mpxUk)
{
if(mpxUk==undefined)mpxUk=0;
if((IMpYB==this.ktZRV)&&(this.rohPa&&this.rohPa.equals(NNMCL))&&(this.AMaIT==mpxUk))
{
return;
}
this.AMaIT=mpxUk;
this.ktZRV=IMpYB;
this.rohPa=NNMCL;
this.KXYtt()
}
this.registerDynamicCanvas=function()
{
registerDynamicCanvas(this.PmuBD);
this.FEZTb=true;
this.setRect(this.FNeGd.x,this.FNeGd.y,this.FNeGd.width,this.FNeGd.height)
}
this.KXYtt=function()
{
if((this.FNeGd.width>0)&&(this.FNeGd.height>0))
{
this.draw()
}
this.mpFNH=true
};
this.draw=function(){};
this.setPosition=function(BGMat,WIMmw)
{
this.FNeGd.x=BGMat;this.FNeGd.y=WIMmw;
if(this.FEZTb==false)return
html_SetPosition(this.kaxHd,this.FNeGd.x,this.FNeGd.y)
if(this.mpFNH==false)
{
this.KXYtt()
}
}
this.setOnClick=function(gnivr)
{
this.XvswF=gnivr
}
this.width=function(){return this.FNeGd.width;}
this.height=function(){return this.FNeGd.height;}
this.setSize=function(ECqHx,SswER)
{
this.FNeGd.width=ECqHx;this.FNeGd.height=SswER;
var vKeGM=ECqHx
var fgEYl=SswER
if(this.tMeIi)
{
vKeGM+=2*this.Qtuvh
fgEYl+=2*this.Qtuvh
}
if(this.FEZTb==false)return
html_SetSize(this.kaxHd,vKeGM,fgEYl)
html_SetCanvasSize(this.PmuBD,ECqHx,SswER)
this.KXYtt()
}
this.setRect=function(BGMat,WIMmw,ECqHx,SswER)
{
this.FNeGd.x=BGMat;this.FNeGd.y=WIMmw;this.FNeGd.width=ECqHx;this.FNeGd.height=SswER;
var vKeGM=ECqHx
var fgEYl=SswER
var bsSuE=BGMat
var RhKUa=WIMmw
if(this.tMeIi)
{
vKeGM+=2*this.Qtuvh
fgEYl+=2*this.Qtuvh
bsSuE-=this.Qtuvh
RhKUa-=this.Qtuvh
}
if(this.FEZTb==false)return 
html_SetGeometry(this.kaxHd,bsSuE,RhKUa,vKeGM,fgEYl);
html_SetCanvasSize(this.PmuBD,vKeGM,fgEYl)
try{this.KXYtt()}catch(e){
alert(e.message)
}
}
this.setVisible=function(sfYqx)
{
if(this.FEZTb==false)return
html_SetVisibility(this.kaxHd,sfYqx)
}
this.setOpacity=function(utRjX)
{
this.maeAX=utRjX 
if(this.FEZTb==false)return
this.KXYtt()
}
}

function is_onresize()
{
WA_Dialog.resizeUI()
try
{
if(WA_PhotoAlbum_resizeUI)WA_PhotoAlbum_resizeUI()
}
catch(e){}
Omlfj()
}
function is_onscroll()
{
centerFullPageContainer();
}
function registerDynamicCanvas(id)
{
if(isMSIE())
G_vmlCanvasManager.initElement(document.getElementById(id));
}
function WA_openDialogAction(OrlXg)
{
var xjgMY=WA_Dialog.AGtko;
if(OrlXg==-1){xjgMY.closeWin();return;}
var nnOTM=xjgMY.sRLXk(OrlXg);
if(nnOTM[5])
{
nnOTM[4].call(nnOTM[6],nnOTM[5])
}
else
{
nnOTM[4](nnOTM[5]);
}
}
function WA_Dialog(sfYqx_close_button)
{
this.bOOLT=0;
this.vDQCZ=0;
this.jDxSm_win_width=600;
this.jDxSm_win_height=400;
this.GCuSK=new Array();
this.xcNOh="wa-dialog-but-";
this.jeuMv=this.xcNOh+"div-";
this.rhjZx=this.xcNOh+"canvas-";
this.BUTTON_HEIGHT=22;
this.OakZN=CONST_WA_GLOBAL_COLOR_THEME;
this.sfYqx_close_button=sfYqx_close_button;
this.OICNW=6;
this.CkVPM=function()
{
if(this.sfYqx_close_button==undefined)this.sfYqx_close_button=true;
this.EaJmm();
}
this.resetButtons=function()
{
this.EaJmm();
}
this.idealHeight=function()
{
return this.wisPf
}
this.displayWindowWithAutoResize=function(qEGxb,QStaP)
{
this.KSTKr=false
this.wisPf=qEGxb
this.uOrVO=QStaP 
this.resetButtons();
QStaP.call(this)
var l=document.getElementById('wa-dialog-content');
if(this.KSTKr==false)
if(l.scrollHeight>200)
{
this.KSTKr=true
this.wisPf=l.scrollHeight+150
this.resetButtons();
QStaP.call(this)
}
}
this.initializeWindow=function(jDxSm_lx,jDxSm_ly)
{
if(WA_Dialog.AGtko)WA_Dialog.AGtko.closeWin()
WA_Dialog.AGtko=this;
this.jDxSm_win_width=jDxSm_lx;
this.jDxSm_win_height=jDxSm_ly;
this.UVGNu()
}
this.progress=function()
{
this.initializeWindow(300,100) 
this.writeContent("<div width=100% align=center><img src='wa_loading.gif'></div>")
}
this.thPqQ=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(bqUgH,HCLKH,RTXge,gBBin)
{
var HdYDI=this.GCuSK.length
if(this.sfYqx_close_button==true)
{
HdYDI--;
}
var ECqHx=Math.max((bqUgH.length*8)*1.2+30,80)
var qrbiw=new Size(ECqHx,this.BUTTON_HEIGHT);
this.UWjuJ("action_"+HdYDI,HdYDI,bqUgH,HCLKH,qrbiw,RTXge,gBBin)
}
this.EaJmm=function()
{
this.GCuSK=new Array();
if(this.sfYqx_close_button)
{

var qrbiw=new Size(50,20);
this.UWjuJ("close",-1,"X",null,qrbiw)
}
}
this.UWjuJ=function(RECvn,HdYDI,bqUgH,HCLKH,qrbiw,RTXge,gBBin)
{
var nnOTM=[RECvn,qrbiw,HdYDI,bqUgH,HCLKH,RTXge,gBBin];
this.GCuSK.push(nnOTM);
}
this.writeContent=function(s)
{
var l=document.getElementById('wa-dialog-content');
l.innerHTML=s
}
this.sRLXk=function(RECvn)
{
for(var OrlXg=0;OrlXg<this.GCuSK.length;OrlXg++)
{
var nnOTM=this.GCuSK[OrlXg];
if((nnOTM[0]==RECvn)||(nnOTM[2]+""==RECvn+""))
return nnOTM;
}
return undefined;
}
this.xeqVu=function(RECvn)
{
var nnOTM=this.sRLXk(RECvn);
return nnOTM[1]
}
this.getColorTheme=function(OrlXg)
{
return this.OakZN[OrlXg];
}
this.LSGJi=function(HRtUT)
{
var nnOTM=this.sRLXk(HRtUT);
var RECvn=nnOTM[0];
var HdYDI=nnOTM[2];
var WSRPc_text=this.OakZN[4]
var WSRPc_bg=this.OakZN[5]
var WSRPc_glow=this.OakZN[7]
if(HdYDI==-1)
{
WSRPc_text=this.OakZN[10]
WSRPc_bg=this.OakZN[8]
WSRPc_glow=this.OakZN[11]
}
var xjixQ=this.jeuMv+RECvn;
var WMkPW=this.rhjZx+RECvn;
var qrbiw=this.xeqVu(HRtUT)
var FHLJm=0;
var s=""
s+="<a href='javascript:WA_openDialogAction("+HRtUT+")' ";
var WSRPc=new RGBColor(WSRPc_bg);
var HqBRU=WSRPc.toHsl();
WSRPc.fromHsl(HqBRU[0],HqBRU[1],HqBRU[2]+0.2)
WSRPc_bg=WSRPc.toRGB();
var BYMDJ_glow=new RGBColor(WSRPc_glow);
var WNjge=BYMDJ_glow.toHsl();
BYMDJ_glow.fromHsl(WNjge[0],WNjge[1],WNjge[2]+0.2)
WSRPc_glow=BYMDJ_glow.toRGB();
s+="onmouseover=\"WA_but_over('"+WMkPW+"','"+WSRPc_bg+"','"+WSRPc_glow+"')"+"\" ";
s+="onmouseout=\""+"WA_but_out('"+WMkPW+"')"+"\" ";
s+="style='text-decoration:none;'>";
s+="<div id='"+this.jeuMv+RECvn+"' style='position:absolute;cursor:pointer;left:0px;top:0px;height:"+qrbiw.height+"px;width:"+qrbiw.width+"px;' >";
s+="<div style='position:absolute;left:"+(-FHLJm)+"px;top:"+(-FHLJm)+"px;height:"+qrbiw.height+"px;'>"
s+="<canvas id='"+this.rhjZx+RECvn+"' width="+(qrbiw.width+FHLJm*2)+" height="+(qrbiw.height+FHLJm*2)+" ></canvas>";
s+="</div>"
s+="<div align=center style='position:absolute;left:0px;top:"+(0)+"px;vertical-align:middle;width:100%;height:"+(qrbiw.height)+"px;line-height:"+(qrbiw.height)+"px;font-family:arial;font-size:13px;font-weight:bold;color:"+WSRPc_text+"'>"
s+=nnOTM[3];
s+="</div>"
s+="</div>"
s+="</a>"
return s;
}
this.HtRfU=function(RECvn)
{
var nnOTM=this.sRLXk(RECvn);
var HdYDI=nnOTM[2];
var WSRPc_bg=this.OakZN[5]
var WSRPc_glow=this.OakZN[7]
var WSRPc_text=this.OakZN[3]
if(HdYDI==-1)
{
WSRPc_bg=this.OakZN[8]
WSRPc_glow=this.OakZN[11]
WSRPc_text=this.OakZN[10]
}
var mBqja=this.rhjZx+RECvn;
registerDynamicCanvas(mBqja);
var qrbiw=this.xeqVu(RECvn);
var pQBlP=qrbiw.height*0.25;
var uTrMI=true;
pQBlP=0;
uTrMI=false;
var QEGuP=0;
var vmuXK=(qrbiw.width-2);
var SswER_circle_top=qrbiw.height*0.45;

var tuZUS_top=[1,1,vmuXK,SswER_circle_top,QEGuP];
var ECqHx_circle_bottom=qrbiw.width-2;
var SswER_circle_bottom=qrbiw.height*0.45;
var ACevo=WSRPc_glow;
var uLIwi=WSRPc_glow;
var GhVXe=0;

var tuZUS_bottom=[(qrbiw.width-ECqHx_circle_bottom)/2,qrbiw.height-SswER_circle_bottom-1,ECqHx_circle_bottom,SswER_circle_bottom,GhVXe,ACevo,uLIwi];
WA_but(mBqja,0,qrbiw.width,qrbiw.height,pQBlP,WSRPc_bg,tuZUS_top,tuZUS_bottom,uTrMI,0)
}
this.vkgWG=function(RECvn)
{
var nnOTM=this.sRLXk(RECvn)
if(nnOTM)
{
var mBqja=this.jeuMv+nnOTM[0];
return document.getElementById(mBqja);
}
return undefined
}
this.UVGNu=function()
{
var l=document.getElementById('wa-dialog-container');
l.style.display="block" 

var s="";
var jeoOq=document.webaca_banner_height
s+="<div  style='position:absolute;left:0px;top:"+jeoOq+"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:"+jeoOq+"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 xOdvN in this.GCuSK)
{
s+=this.LSGJi(this.GCuSK[xOdvN][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.mIOBk)
}
this.mIOBk=function()
{
registerDynamicCanvas('wa-dialog1');
for(var xOdvN in this.GCuSK)
{
this.HtRfU(this.GCuSK[xOdvN][0])
}
this.lkPGT()
}
this.intern_closeWin=function()
{
var l=document.getElementById('wa-dialog-container');
l.style.display="none"
WA_Dialog.AGtko=false
}
this.closeWin=function()
{
this.intern_closeWin()
}
this.cssText1=function()
{
return "font-family:Arial;font-size:15px;color:"+this.OakZN[3]+";";
}
this.onCustomKeypress=function(ZBVBo)
{
if((this.GCuSK.length==1)&&(ZBVBo==13))
{
this.closeWin()
return true;
}
return false;
}
this.onkeypress=function(ZBVBo)
{
return this.onCustomKeypress(ZBVBo)
}
this.onkeydown=function(ZBVBo)
{
if(ZBVBo==27)
{
this.closeWin()
return true;
}
return this.onCustomKeypress(ZBVBo) 
}
this.customUpdate=function(){}
this.lkPGT=function()
{
var ECqHx_page=document.webaca_width_page;
var SswER_page=document.webaca_height_page;
var WgMdX=getWindowSize().width
var SswER_window=getWindowSize().height 

this.bOOLT=Math.min(WgMdX*0.9,this.jDxSm_win_width)
this.vDQCZ=Math.min(SswER_window*0.9,this.jDxSm_win_height)
var VFTSK=document.getElementById('wa-dialog1');
VFTSK.width=this.bOOLT+10
VFTSK.height=this.vDQCZ+10
var BGMat=getWindowScroll().x+(WgMdX-VFTSK.width)/2
var WIMmw=getWindowScroll().y+(SswER_window-VFTSK.height)/2
BGMat=(WgMdX-VFTSK.width)/2
WIMmw=(SswER_window-VFTSK.height)/2
BGMat=Math.max(0,BGMat)
WIMmw=Math.max(0,WIMmw) 
var LDrWW=document.getElementById('wa-dialog-main');
html_SetGeometry('wa-dialog-main',BGMat,WIMmw,VFTSK.width,VFTSK.height);
var eNnHT_bg="(0;0;0;"+this.vDQCZ*0.25+";"+this.OakZN[1]+";"+this.OakZN[2]+")";
var HwTvh=4;
WA_bg('wa-dialog1',this.bOOLT,this.vDQCZ,HwTvh,3,this.OakZN[0],[eNnHT_bg],true,0)
var QIIli=10;
var XkHHr=this.vkgWG(-1)
if(XkHHr)
{
var aDSsj_close=this.xeqVu(-1) 
var marginClose=3
html_SetPosition(XkHHr,this.bOOLT-aDSsj_close.width-marginClose+this.OICNW-1,marginClose+this.OICNW-1)
}
var JCWkO_buttons=this.GCuSK.length;
if(this.sfYqx_close_button==true)
{
JCWkO_buttons--;
}
var AxBZe=10;
var QAPET=0;
for(var xOdvN=0;xOdvN<JCWkO_buttons;xOdvN++)
{
if(xOdvN>0) QAPET+=AxBZe;
var aDSsj=this.xeqVu(xOdvN);
QAPET+=aDSsj.width;
}
var bGjDv=(this.bOOLT-QAPET)/2
for(var xOdvN=0;xOdvN<JCWkO_buttons;xOdvN++)
{
if(xOdvN>0) bGjDv+=AxBZe;
var THSOq=this.vkgWG(xOdvN);
var aDSsj=this.xeqVu(xOdvN);
html_SetPosition(THSOq,bGjDv+this.OICNW,+this.OICNW+this.vDQCZ-aDSsj.height-2*QIIli)
bGjDv+=aDSsj.width;
}
var SswER_top=45;
var SswER_bottom=this.BUTTON_HEIGHT+2*QIIli;
if(JCWkO_buttons==0)
{
SswER_bottom=0;
}
var SswER_content=(this.vDQCZ-SswER_top-SswER_bottom)-QIIli
var aYmuv=document.getElementById('wa-dialog-content');
var xjgMY_content=Math.round(this.bOOLT-2*QIIli)
var NorvQ=Math.round(SswER_content)
this.m_content_lx=xjgMY_content
this.m_content_ly=NorvQ
html_SetGeometry('wa-dialog-content',Math.round(5+(this.bOOLT-xjgMY_content)/2),Math.round(5+SswER_top+(SswER_content-NorvQ)/2),xjgMY_content,NorvQ);
this.customUpdate() 
var mRPMU=document.getElementById('wa-dialog-container');
AbANq=getWindowFullSize().width
SswER_full_client=getWindowFullSize().height
html_SetSize('wa-dialog-container',AbANq,SswER_full_client);
centerFullPageContainer();
}
this.CkVPM();
}
function WA_exec_callback_opera_compliant(RTXge,jveJU)
{
if(/opera/i.test(navigator.userAgent))
WA_exec_delayedCallback(RTXge,jveJU)
else
jveJU.call(RTXge)
}
function WA_exec_delayedCallback(RTXge,jveJU)
{
wa_timeout(Delegate.create(RTXge,jveJU),0);
}
WA_Dialog.getCurrent=function()
{
return WA_Dialog.AGtko;
}
WA_Dialog.AGtko=false;
WA_Dialog.resizeUI=function()
{
if(WA_Dialog.AGtko)
{
WA_Dialog.AGtko.lkPGT()
}
}
WA_Dialog.alert=function(s)
{
var w=new WA_Dialog();
w.thPqQ(s)
}
WA_Dialog.progress=function()
{
var w=new WA_Dialog(false);
w.progress()
}
function centerFullPageContainer()
{
var ECqHx_page=document.webaca_width_page;
var SswER_page=document.webaca_height_page;
var mRPMU=document.getElementById('wa-dialog-container');
AbANq=getWindowSize().width
SswER_full_client=getWindowSize().height
var WIMmw_bg=getWindowScroll().y;
WIMmw_bg=Math.min(WIMmw_bg,SswER_page-SswER_full_client+1)
WIMmw_bg=Math.max(WIMmw_bg,0)
var nabtZ=getWindowScroll().x;
nabtZ=Math.min(nabtZ,ECqHx_page-AbANq+1)
nabtZ=Math.max(nabtZ,0) 
html_SetPosition('wa-dialog-container',nabtZ,WIMmw_bg,AbANq,SswER_full_client);
}

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

}
};
return http_request;
}
function makePOSTRequest(url,parameters,callback,aHSjg)
{
var http_request=getXMLHttpRequest(callback,aHSjg);
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(EVaYI,NtZAI,gBBin)
{
var result=NtZAI.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 ZsYCw=gBBin[0] 
WA_Dialog.alert(Translator.tr("Success:Mail sended"));
var form=document.getElementById(ZsYCw);
form.reset()
}
else
{
var xZbdf="error_string="
n=result.indexOf(xZbdf)
if(n>-1)
{
result=result.substring(n+xZbdf.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 SDpFp=el.value
SDpFp=encodeURI(SDpFp)
SDpFp=SDpFp.replace(/&/g,escape("&")) 
poststr+=el.name.replace("_mandatory","")+"="+SDpFp+"&"
}
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(CbCaX)
{
var fcgHa=document.getElementById(CbCaX);
fcgHa.submit() 
}
function JTdhr(nkesO,gBBin)
{
var ZBVBo=gBBin[0]
if(ZBVBo==13)
{
var CbCaX=nkesO+"-form";
var fcgHa=document.getElementById(CbCaX);
for(var i=0;i<fcgHa.elements.length;i++)
{
var GMNnF=fcgHa.elements[i];
if((GMNnF.type=="textarea")&&(GMNnF.focused))return true;
}
WA_form_submit(CbCaX);
return false;
}
return true;
}
function WA_addFormDeclaration(nkesO,eToKc)
{
return WA_addHandler(nkesO,"keypress",JTdhr)
}
function WA_form_bg(id,lx,ly,arc,VmkZK,bord_col,bg,shadow,mpxUk,uWGRx)
{
WA_bg(id,lx,ly,arc,VmkZK,bord_col,bg,shadow,mpxUk,1.0,true) 
var iSeCJ=uWGRx.x;
var beoLh=0;
var Iabcv=uWGRx.cells
for(var n=0;n<Iabcv.length;n++)
{
var HWfeR=Iabcv[n]
var arc2=0
ccSxv(id,iSeCJ,beoLh+HWfeR.y,uWGRx.w,HWfeR.h,arc2,1,uWGRx.border,[''],false,0,1.0,false)
ccSxv(id,iSeCJ,beoLh+HWfeR.y,HWfeR.w,HWfeR.h,arc2,1,"rgba(0,0,0,0)",[uWGRx.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(XPWOL)
{
this.ok=false;this.a=1.0;
if(XPWOL.charAt(0)=='#'){XPWOL=XPWOL.substr(1);}
XPWOL=XPWOL.replace(/ /g,'');
XPWOL=XPWOL.toLowerCase();
var mgSBS=[
{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<mgSBS.length;i++){
var FTCTF=mgSBS[i].re;
var VspOp=mgSBS[i]._process;
var EFXUb=FTCTF.exec(XPWOL);
if(EFXUb){
var qPEWI=VspOp(EFXUb);
this.r=qPEWI[0];this.g=qPEWI[1];this.b=qPEWI[2];this.a=qPEWI[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.RXWxk=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.RXWxk(p,q,h+1/3);g=this.RXWxk(p,q,h);b=this.RXWxk(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 OGxQL(YVgqA,gBBin)
{
if(document.wa_global_handlers!=undefined)
{
var nkesO=WA_focused_element()
if(nkesO)
{
var HCLKH=document.wa_global_handlers[nkesO+"-"+YVgqA]
if(HCLKH) return HCLKH([nkesO],gBBin)
}
}
return true;
}
function kQNni(e)
{
if(window.event){return e.keyCode;}
else 
if(e.which) return  e.which;
return-1;
}
function WA_onkeypress(e)
{
var ZBVBo=kQNni(e);
if(WA_Dialog.AGtko)
{
if(WA_Dialog.AGtko.onkeypress(ZBVBo))
{
return false;
}
}
return OGxQL("keypress",[ZBVBo]);
}
function WA_ondblclick(e)
{
return OGxQL("dblclic",[""]);
}
function WA_onkeydown(e)
{
var ZBVBo=kQNni(e)
if(WA_Dialog.AGtko)
{
if(WA_Dialog.AGtko.onkeydown(ZBVBo))
{
return false;
}
}
if(ZBVBo==13) return true;

if(wa_global_photo_album&&wa_global_photo_album.fullpage_object)
{
var RTXge=wa_global_photo_album.fullpage_object
return RTXge.onFullScreenKeydown(ZBVBo) 
}
return OGxQL("keydown",[ZBVBo]);
}
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 nkesO=this.id
var HCLKH=document.wa_global_handlers[nkesO+"-mousewheel"]
if(HCLKH)
{
if(HCLKH([nkesO],[delta]))
{
b_default=true;
}
}
}
}
if(b_default)
if(e.preventDefault)
e.preventDefault();
e.returnValue=!b_default;
}
function WA_addHandler(nkesO,YVgqA,jveJU)
{
if(document.wa_global_handlers==undefined) document.wa_global_handlers=new Array()
if(YVgqA=="mousewheel")
{
var sDoih=document.getElementById(nkesO);
if(sDoih.addEventListener)
sDoih.addEventListener('DOMMouseScroll',WA_genericMouseWheelHandler,false);
sDoih.onmousewheel=WA_genericMouseWheelHandler
}
document.wa_global_handlers[nkesO+"-"+YVgqA]=jveJU
}
function WA_loadPhotoAlbum(nkesO,BUEsr,qrbiw,nkesO_modif)
{
if(typeof(wa_global_photo_album[nkesO])=="undefined")
{
var o=new Array();
o.src_folder=BUEsr
o.size_container=qrbiw
o.id_modif=nkesO_modif
wa_global_photo_album[nkesO]=o;
}
}
function WA_focused_element()
{
return document.wa_global_focused_element
}
function WA_focus(RTXge)
{
document.wa_global_focused_element=RTXge.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(DsUDD,EmBIY,TuJPU)
{
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[EmBIY])document.wa_global_blogs_elements[EmBIY]=new Array()
document.wa_global_blogs_elements[EmBIY].id_blog=DsUDD
document.wa_global_blogs_elements[EmBIY].has_email=TuJPU
}
function WA_addSearchHandler(nkesO)
{
return WA_addHandler(nkesO,"keypress",SJTTB)
}
function SJTTB(nkesO,gBBin)
{
var ZBVBo=gBBin[0]
if(ZBVBo==13)
{
var lmffg=nkesO+"-search-input";
WA_onSearch(lmffg)
return false;
}
return true;
}
function WA_declareSearchIndex(YUOdv,ZhNWD)
{
document.const_wa_search_js=YUOdv
document.const_wa_search_index_js=ZhNWD
}
function WA_onSearch(lmffg)
{
var dlkRa=document.getElementById(lmffg);
if(document.wa_search_js_loaded==true)
{
WA_openSearchDialog(dlkRa,document.const_wa_search_index_js)
}
else
{
WA_Dialog.progress();
mMmXn(dlkRa)
}
}
function vMFoF(gBBin)
{
document.wa_search_js_loaded=true
WA_openSearchDialog(gBBin[0],document.const_wa_search_index_js)
}
function mMmXn(DTXuM)
{
WA_loadScript(document.const_wa_search_js,vMFoF,[DTXuM])
}
function XZoGT(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 XZoGT(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(nkesO)
{
var UUwcl=document.wa_global_menu_declaration[nkesO]
WA_bg(nkesO,UUwcl.root_lx,UUwcl.root_ly,UUwcl.root_corner,UUwcl.root_border,UUwcl.root_col_border,[UUwcl.root_bg],false,0)
var GMNnF=document.getElementById(UUwcl.id)
if(!GMNnF)return;
var c=GMNnF.getContext('2d');
c.lineWidth=1
c.strokeStyle=UUwcl.root_col_separator
var Khwas=0.5;

var cAAcx=UUwcl.root_sizes.length
if(UUwcl.root_extend==false)
{
cAAcx--;
}
var QIqIA=3;
for(var i=0;i<cAAcx;i++)
{
var qrbiw=UUwcl.root_sizes[i] 

c.beginPath();
if(UUwcl.root_vertical==false)
{
Khwas+=(qrbiw-1)
c.moveTo(Khwas,QIqIA)
c.lineTo(Khwas,UUwcl.root_ly-QIqIA)
}
else
{
Khwas+=(qrbiw)
c.moveTo(QIqIA,Khwas-1,0)
c.lineTo(UUwcl.root_lx-QIqIA,Khwas-1)
}
c.closePath();
c.stroke()
}
}
function WA_declare_menu(nkesO,UUwcl)
{
if(!document.wa_global_menu_declaration)document.wa_global_menu_declaration=new Array();
UUwcl.id=nkesO
document.wa_global_menu_declaration[nkesO]=UUwcl
WA_bg_menu(nkesO)
}
function WA_declareMarket(nkesO,UpRVM_market,nkesO_modif)
{
if(typeof(wa_global_market.markets[nkesO])=="undefined")
{
var o=new Array();
o.src_folder=UpRVM_market
o.id_modif=nkesO_modif 

o.id=nkesO
wa_global_market.markets[nkesO]=o;
}
}
function WA_button_market_declare(nkesO,bqUgH)
{
if(!document.wa_global_button_market_declaration)document.wa_global_button_market_declaration=new Array();
document.wa_global_button_market_declaration[nkesO]=bqUgH
}
function cHhpZ(c,img,BGMat,WIMmw,ECqHx,SswER,NNMCL,vpJhU,LdQMg)
{
c.globalAlpha=vpJhU
if(LdQMg) c.clearRect(0,0,ECqHx,SswER) 
if(vpJhU==0)return;
if(NNMCL)
{
c.drawImage(img,NNMCL.x,NNMCL.y,NNMCL.width,NNMCL.height,BGMat,WIMmw,ECqHx,SswER)
}
else
{
c.drawImage(img,BGMat,WIMmw,ECqHx,SswER)
}
}
function WA_drawImage(id,IMpYB,BGMat,WIMmw,ECqHx,SswER,NNMCL,vpJhU,LdQMg)
{
if(LdQMg==undefined)LdQMg=true;
if(vpJhU==undefined)vpJhU=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==IMpYB)
{
cHhpZ(c,c.rsMmC,BGMat,WIMmw,ECqHx,SswER,NNMCL,vpJhU,LdQMg)
return;
}
var img=new Image();
img.sNFqL=el.sNFqL
img.onload=function()
{
c.old_src=IMpYB
c.rsMmC=this;
cHhpZ(c,this,BGMat,WIMmw,ECqHx,SswER,NNMCL,vpJhU,LdQMg)
}
img.src=IMpYB;
}

-->
