
/******************
LIQWID Version 4.0
Copyright(C) 2010-2016, LeftsnRights Inc. All rights reserved.
*******************/

if (top.Liqwid===undefined){
var Liqwid=Liqwid||{};Liqwid={flag:0,delay:false,ld:false,rtb_flag:false,fall_flag:0,flash:false,lf:0,sln:0,i:0,i_:0,cnt:0,al:'center',pw:1200,pr:0,flip:0,fs:false,fx:false,trk:true,wait:0,lmt:0,cp:'',tx:'',fall:'',trc:0,m:/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion),use_min:false,slot:0,wx:0,wy:0,lstn:1,sec:0,lso:null,cmc:[],run:function(){if(!this.fs&&this.lstn!=0){setTimeout(function(){Liqwid.run();},1);return;}this.qs='';this.sln=0;this.vp();if(this.fs){for(var i=0;i<this.i;i++){var a=this.ad[i];if(a){if(a.inc==0){this.board(i);}else{if(a.c=='')this._qs(i);}if(a.c!=''&&a.c_==0){a.c_=1;this.qs+=a.c;}}}if(this.qs!=''&&this.lf==0){this.lf++;this.qs+="&tp="+this.sln+"";this.load();}}if(this.lstn!=0) setTimeout(function(){Liqwid.cn_++;Liqwid.run();},1);},cn_:0,_vq:function(i){var p=this.ad[i].p,ps=this.ad[i].ps,vq=this.vq,v=[];if(vq!='')v=vq.split(',');if (p!=null&&p!=''&&p!='0'){if(vq==''){vq=p;}else{vq+=','+p;}if(v.length>8){vq=vq.substring(vq.indexOf(',')+1,vq.length);}this.vq=vq;this.com.sC('vq',vq,0,0);if(this.mg!=0)this.com.sC('fq','1',0,this.mg);}},rt:0,Ag:'',timer:function(){if(!this.fs){setTimeout(function(){Liqwid.timer();},1);return;}if(this.delay)return;var r=0,r_=0,a,q='',q_='',aq='';for(i=0;i<this.i;i++){a=this.ad[i];if(a){if(a.vi&&a.p!=0&&a.g!=''&&a.s<180&&(a.ps!='B'||a.g!=this.Ag)){if(a.ps=='A')this.Ag=a.g;if(a.video==0){this.sec++;a.s++;}else{this.trk=false;}if(this.cnt<this.i)this.cnt++;
if(a.ps=='W'&&a.mt<a.s&&!a.vast){
//this.cwl(i);
if(a.s>0)a.s=a.mt;}var st='='+a.b+'&g'+a.b+'='+a.g+'&p'+a.b+'='+a.p+'&ps'+a.b+'='+a.ps+'&s'+a.b+'='+a.s+'&w'+a.b+'='+a.w+'&h'+a.b+'='+a.h;a.q='&b'+r+st;r++;if(a.video>0&&a.dur>0){if(a.sg==0)a.sg=parseInt(a.dur/a.vt); if(a.s==a.sg){a.tk=0;a.sg+=a.sg;}}if(a.s>0&&a.tk==0){a.q_='&b'+r_+st;r_++;}}}}this.rt=0;for(i=0;i<this.i;i++){a=this.ad[i];if(a&&a.q!=''){this.rt++;q+=a.q;if(a.tk==0&&a.q_!=''){a.tk=1; q_+=a.q_;}}}
if(this.rt>0&&a.video==0){this.com.tl=q+'&i='+this.rt;if(q_!=''){this.com.log(q_+'&i='+r_+'&a=3');}}
setTimeout(function(){Liqwid.timer();},1000);},txt:'',vg:'',ip:'',vl:'',vd:'',vq:'',fq:null,rec:function(){this.vg=this.com.gC('vg')||'45158cec-c3f0-4be6-beff-3cd0cda4c9fa';this.ip=this.com.gC('ip')||'2365049098';this.vl=this.com.gC('vl')||'';this.vd=this.com.gC('vd')||'';this.vq=this.com.gC('vq')||'';this.fq=this.com.gC('fq');this.com.sC('vg',this.vg,365,0);this.com.sC('ip',this.ip,365,0);this._q='key=C80C-E818-A746-7402&vg='+this.vg+'&vdt='+this.com.vdt()+'&tz='+this.com.tz()+'&vl='+encodeURIComponent(this.vl)+'&vd='+encodeURIComponent(this.vd)+'&sw='+top.screen.width+'&sh='+top.screen.height+'&t=4&pq=882E0I0O0T0V;888E0I0O0T0V;889E0I0O0T0V;1615E0I0O0T0V;3948E0I0O0T0V;4096E0I0O0T0V;4143E0I0O0T0V&st=2&vip='+this.ip+'&ep=0';},logo:function(){this.add(null,'body','div',1,'fixed','LW_Logo');},cw:0,ch:0,vp:function(){var w=top.document.documentElement.clientWidth||top.document.body.clientWidth;var h=top.innerHeight||top.document.documentElement.clientHeight||top.document.body.clientHeight;this.cw=w;this.ch=h;this.q=this._q+'&al='+this.al+'&cw='+this.cw+'&ch='+this.ch;},abord:false,_q:'',q:'',qs:'',ad:[],par:function(i,_p,_w,_h,_v,_a,_i){if(this.ad[i]===undefined){this.ad[i]={b:i,c:'',c_:0,al:_a,mg:0,tk:0,pp:{},v:_v,ps:_p,vi:false,s:0,player:{},pa:0,pl:0,end:false,sk:0,d:'',p:0,x:0,y:0,w:_w,h:_h,g:'',gl:'',vg:'',vgl:'',mw:_w,mh:_h,ms:0,mt:0,q:'',q_:'',z:0,inc:_i,dur:0,video:0,sg:0,vt:1,an:'',ct:'',cm:'',fs:0,rl:0,wl:0,t:0,cn:0,r:0,j:0,vast:false,flag:false,ht:'',tc:0,cc:'',tt:'',rtb:{c:[],w:[],h:[],t:0,l:0,btn:[]}}; this.i++;}},ns:2,nl:1,nr:1,vdp:function(){if (this.flag>0)return;this.flag++;if(this.ops()!=0)this.abord=true;this.rec();if (typeof top.document.hidden==="undefined"){this.fs=true;}else{if(!top.document.hidden){this.fs=true;}if(top.document.addEventListener){top.document.addEventListener("visibilitychange",function(){if(!top.document.hidden){this.fs=true;}else{this.fs=false;}});}}if(this.cp!=''){this.q+='&cp='+encodeURIComponent(this.cp);}if(this.tx!=''){this.q+='&tx='+encodeURIComponent(this.tx);} var r=this.com.ref();if(r!=''){this.q+='&rf='+encodeURIComponent(r);} if(!this.flash){this.q+='&pt=1';}var n=3; var i=this.i;for(h=0;h<this.ns;h++){var al="left",vt=this.nl;if((h==1)||(this.ns==1&&"0"=="0")||"0"=="2"){al="right";vt=this.nr;}for(v=0;v<vt;v++){if(vt==1){if(al=="left"){this.par(this.i,'A',90,90,v,al,0);}else{this.par(this.i,'B',90,90,v,'right',0);}}else{if(al=="left"){if(v==0){this.par(this.i,'C',90,90,v,al,0);}else{this.par(this.i,'E',90,90,v,al,0);}}else{if(v==0){this.par(this.i,'D',90,90,v,'right',0);}else{this.par(this.i,'F',90,90,v,'right',0);}}}}}this.par(this.i,'W',120,70,0,'top',0); this.par(this.i,'I',970,250,0,'left',1); var _n=this.i+5;for(n=this.i;n<_n;n++)this.par(this.i,'I',300,600,0,'left',1);this.i_=this.i;this.run();
top.addEventListener('focus',function(){Liqwid.fs=true;},false);
top.addEventListener('scroll',function(){Liqwid.fs=true;},false);
top.addEventListener('blur',function(){if(top.document.activeElement.id.match(/Liqwid_frame/)){Liqwid.fs=true;}else{Liqwid.fs=false;}},false);
top.addEventListener('beforeunload',function(){if(Liqwid.com.tl!='')Liqwid.com.log(Liqwid.com.tl+'&a=3');},false);},wp:{y:'m',x:'c',w:0.9,h:0.8,th:40,r:'%',mw:1080,mh:611,br:'#000 solid 3px',bt:'',sh:'6px 6px 25px 0px rgba(0,0,0,.7)',bg:'#000'},

exp:function(d) {if(this.lmt==1) return; var z=this.com.z(),y=this.wp.y,x=this.wp.x,w=this.wp.w,h=this.wp.h,th=this.wp.th,p=this.wp.r,mw=this.wp.mw,mh=this.wp.mh,br=this.wp.br,bt=this.wp.bt,sh=this.wp.sh,bg=this.wp.bg,hf=null,i=2;
if(!isNaN(parseInt(d))){i=d;
var a=this.ad[i];if (a){
if(a.video>0&&!a.end&&a.player.play!==undefined&&a.pa==0&&a.pl==0){a.pl=1;a.player.play();}
 }
hf=this.d("Liqwid_frame"+d);d='Liqwid_board'+d;}var ph,pw,pt=y,pl=x;if(p=="px"){pw=w;if(pw>this.cw*mw)pw=this.cw*mw;ph=pw*(h/w);}else{pw=this.cw*w;if(pw>mw)pw=mw;ph=pw*(mh/mw);if (ph>this.ch*h){ph=this.ch*h;pw=ph*(mw/mh);}}
if(y=='m'){pt=parseInt(this.ch/2-(ph+th)/2);}if(x=='c'){pl=parseInt(this.cw/2-pw/2-5);}this.ad[i].w=w;this.ad[i].h=h;var e=this.d(d).style;e.backgroundColor=bg;e.position="fixed";
e.zIndex=z;e.display="block";e.width=parseInt(pw)+"px";e.height=(parseInt(ph)+th)+"px";e.top=pt+"px";e.left=pl+"px";if(br!=''){e.border=br;e.borderTop=bt;}if(sh!=''){e.boxShadow=sh;}if(hf!=null){hf.style.width=parseInt(pw)+"px";hf.style.height=(parseInt(ph)+th)+"px";}var hd=this.d("LW_hd");if(hd){hd.style.width=parseInt(pw)+"px";hd.style.height=(parseInt(ph))+"px";}},

pop_:0,pop:function(b,t,l,w,h,th,p,mw,mh,c,s,br,bt,sh,bg,tr,a){this.wp.y=t,this.wp.x=l,this.wp.w=w,this.wp.h=h,this.wp.th=th,this.wp.r=p,this.wp.mw=mw,this.wp.mh=mh,this.wp.br=br,this.wp.bt=bt,this.wp.sh=sh,this.wp.bg=bg;this.lmt=0;if(a!=null&&a>0){this.pop_++;if(this.pop_>a) return;}if(s!=null&&s!=0){setTimeout(function(){this.popc();},s);}if(tr!=null&&tr!=''){this.com.log(this.q+this.ad[b].q+'&a=5&i='+b+'&mark='+tr);}var e=this.d("LW_sw");if(e){e.innerHTML=c;e.style.display="block";this.exp("LW_sw");top.addEventListener('resize',function(){Liqwid.exp(d);},false);
}
},
popc:function(tr){this.lmt=1;var d=this.d("LW_sw");d.style.display="none";d.innerHTML='';if(tr!=null&&tr!=''){this.com.log(this.q+this.ad[0].q+'&a=5&i=0&mark='+tr+'_'+this.ad[0].s); }},click:function(b,u,tr,m){if(tr!=null&&tr!='')this.popc(tr);if(this.ad[b].cm!='')this.com.js(this.ad[b].cm);if(m&&m!='')this.com.js(m);if(this.ad[b].ct!='')u=this.ad[b].ct;if(this.ad[b].q==''&&b==1 && this.ad[b].ps=='B')b=0;this.com.log(this.ad[b].q+'&a=4&i='+b);if(u!==undefined&&u&&u!=''){top.open(u,'_blank');}},click_btn:function(b,c){this.ad[b].ct='//'+this.ad[b].btn[b,c];this.click(b);},load:function(){var u=this.q+this.qs+'&ex='+this.vq+'&cs=0',p=this.com.qk('liqwid_id');if(p&&p!='')u+='&dpl='+p;this.com.js('//www.liqwid.net/get/?'+u);},_qs:function(i){this.ad[i].c='&i'+i+'='+i+'&ps'+i+'='+this.ad[i].ps+'&w'+i+'='+this.ad[i].w+'&h'+i+'='+this.ad[i].h+'&b'+this.sln+'='+i+'&d'+i+'='+this.ad[i].d;this.sln++;this.lf=0;},board:function(i){var a=this.ad[i];if(!a||a.inc!=0||(a.c_!=0&&a.p==0)||this.lmt==1)return;var d=this.d("Liqwid_board"+i),fi=this.d("LW_Ai"+i),df=this.d("Liqwid_frame"+i),in_sq=false,wx=this.com.wp().l,wy=this.com.wp().t,k=1,sP=1,lM=0,rM=0,tM=0,bM=0,ver_num=this.nl,ts=this.com.ts(),saW=top.screen.availWidth,saH=top.screen.availHeight,aW=this.cw,aH=this.ch;if(a.al=="right"){lM=0;rM=0;tM=0;bM=0,ver_num=this.nr;sP=1;}if(this.m){saW=aW;saH=aH;}if(ts>0){tM-=ts;if(tM<1)tM=0;y=tM;}var min_sq=true,x=lM,y=tM,w=aW,h=0,rB=aW,tdh=0,bdh=0;if(this.pr=="1"){this.pw=parseInt(aW/100*70);if(this.pw>1200){this.pw=1200;}if(this.pw<340){this.pw=340;}}

if((this.al=="center"&&a.al=="right"&&wx+(((aW-this.pw)/this.ns)+this.pw+lM)+a.mw>saW)||(this.al=="left"&&a.al=="right"&&wx+this.pw+lM+a.mw>saW)||(a.al=="left"&&wx+aW>saW+aW-a.mw)){wx-=saW;}if(isNaN(parseInt(a.ps))){if(this.flip!=0&&this.al=="left"){if(aW<=this.flip){a.ps="H";bdh=a.mh;if(bdh<aH/4.7){bdh=parseInt(aH/4.7);}if(bdh>aH/4){bdh=aH/4;}}else{a.ps="B";}}if(this.pw>0){w=((aW-this.pw)/this.ns-(rM+lM));rB=this.pw;}if(a.ps!="G"&&a.ps!="H"){if(this.al=="center"){if(a.al=="right"&&this.pw>0){x=(((aW-this.pw)/this.ns)+this.pw+lM);}if(wx<0){aW+=wx;if(a.al=="left"){x=-(wx+8);w=(w-(x+rM));}else{if(aW<w){w=(aW-(rM+lM));x=(lM-wx);}}}else if((wx+aW)>saW){aW=saW-wx;if(a.al=="right"){w=(aW-x-rM);}else{if(aW<w){w=(aW-(rM+lM));}}}if(""=="pandora"){var pd=this.d("mainContentContainer");x=this.com.fp(pd).l+pd.offsetWidth+4; w=aW-x;}}else if(this.al=="left"){if((wx+aW)>saW){aW=saW-wx;}x=(this.pw+lM);w=(aW-x-rM);if(wx<0){aW+=wx;if(aW<w){w=(aW-(rM+lM));x=(lM-wx);}}}else{if(wx<0){aW+=wx;x=(lM-wx);w=(w-x-rM);}else if((wx+aW)>saW){aW=saW-wx;if(aW<w){w=(aW-(rM+lM));}}}}else{if(this.pw>120){w=this.pw;}else{w=aW;}if(this.al=="center"){if(this.pw>0){x=(aW-this.pw)/2;}rB=(x+w);if(wx<0){aW+=wx;rB=(x+w);if(aW<(x+w)){x=-wx;w=(rB-x);}}if((wx+aW)>saW){aW=(saW-wx);if((x+w)>(aW)){w=aW-x;}}}else if(this.al=="left"){x=0;if(wx<0){x=-wx;w+=wx;}if((wx+aW)>saW){aW=(saW-wx);if((x+w)>(aW)){w=aW-x;}}}else{x=(aW-this.pw);if(wx<0){aW+=wx;rB=(x+w);if(aW<this.pw){x=-wx;w=(rB-x);}}if((wx+aW)>saW){aW=(saW-wx);if((x+w)>(aW)){w=aW-x;}}}}
if(a.ps=="G"){h=tdh;
if((aH!=saH)&&(wy+h)>saH)h=aH;
if (a.mh>0)h=a.mh;w=this.pw;
x=0;y=0;
}else if(a.ps=="H"){
h=bdh;
if((aH!=saH)&&(wy+aH)>saH)aH=(saH-wy);
if (a.mh>0)h=a.mh;w=this.pw;
x=0;y=(parseInt(aH)-h/*+top.document.body.scrollTop*/);}else{y=tM;if((aH!=saH)&&(wy+aH)>saH){aH=(saH-wy);}h=(aH-(tM+bM));if(ver_num>1){h=((aH-(tM+bM+sP))/ver_num);if(a.v>0){y=(tM+h+sP);}}}
}else{
if(!d)return;
var pd=d.parentNode;
var pdX=this.com.fp(pd).l,pdY=this.com.fp(pd).t,sl=this.com.sl(),st=this.com.st();aW=pd.offsetWidth;aH=pd.offsetHeight;
if (a.l){
a.mw=aW/2; 
if(a.mh<aH/2)a.mh=aH/2;a.ms=aW*aH/2;}else{
a.mw=aW;a.mh=aH;a.ms=aW*aH;}if((pdX+aW-sl)>this.cw){aW=this.cw-pdX+sl}var hor=false;if(this.cw>=this.ch&&!this.flash){hor=true;}if(!hor&&(wx+pdX+aW-sl)>saW){aW=saW-pdX-wx+sl;}y=0;x=0;if(pdY-st<0){y=-(pdY-st);aH-=y;}if (pdY+aH-st>this.ch){aH=(this.ch-pdY+st);}if((wy+pdY+aH-st)>saH){aH=saH-wy-pdY+st;}if(pdX-sl<0){x=-(pdX-sl);}if((wx<0)&&(wx+pdX-sl<0)){x=-(wx+pdX)+sl;}aW-=x;w=aW;h=aH;if(!a.l||!this.flash){w=pd.offsetWidth;h=pd.offsetHeight;x=0;y=0;}}if(w>1200){w=1200;}
if(a.ps=="C"||a.ps=="D"){h=(aH-(tM+bM));}
//if(a.ps=="W"){if(!this.fq||this.fq==''){w=saW;h=saH;}else{w=0;h=0;}x=0;y=0;}
if(a.ps=="W"){w=parseInt(this.cw*0.9);h=parseInt(this.ch*0.8);x=0;y=0;}

this.wx=wx;this.wy=wy;


if(w<a.mw||h<a.mh||this.abord){
min_sq=false;if(a.ps=="A"||a.ps=="B")this.use_min=true;}else{if(a.ps=="A"||a.ps=="B")this.use_min=false;}

if(min_sq){if(a.ps!="W"){if(a.z==0&&isNaN(parseInt(a.ps)))a.z=this.com.z();if(!isNaN(parseInt(a.ps))){if(d)d.style.position="absolute";}else{if(d){
if (a.ps!="G"|| ts>0){d.style.position="fixed";}else{d.style.position=a.pp.pt;}
if (a.ps=="G"){
if (ts==0){d.style.boxShadow='none';}else{d.style.boxShadow='0px 10px 20px -10px rgba(0,0,0,0.65)';}
}
}}

if((a.ps=="A"||a.ps=="B")&&(a.rl!=0||(fi!=null&&a.fs==0))){var wpr=parseInt(a.mh/a.mw);var aiw=h/wpr,aih=h;if(w*wpr<h)h=w*wpr;if(a.ps=="A"){var difw=aiw-w;if(aiw>w){w=aiw-difw;aih=w*wpr;if(aih>h){aih=h;aiw=h/wpr;}}else{if(wx<0){x=w-aiw-wx;}else{x=w-aiw;}w=aiw;}h=aih;}else{if(aiw<w)w=aiw;h=w*wpr;}
if(fi){
fi.style.width=w.toFixed()+"px";
fi.style.height=h.toFixed()+"px";
}}if(w>this.cw)w=this.cw;w=parseInt(w);h=parseInt(h);x=parseInt(x);y=parseInt(y);if(a.ps=="A"&&a.rl!=0){if(d)d.style.textAlign="right";}
if(a.p!=0){if(d){
//console.log('board w  '+i+'--' + w + ' a.mw ' + a.mw+ ' a.mh ' + a.mh);
d.style.width=w+"px";d.style.height=h+"px";d.style.top=y+"px";d.style.left=x+"px";

if (a.r==0){
d.style.display='none';
} else{

//console.log('board w  '+i+'--' + w + ' h: ' + h);
if(a.ps!="G" && d.innerHTML!="")d.style.display='block';
}
if(df&&a.fs==0){df.style.left="0px";df.style.top="0px";df.style.width=w+"px";df.style.height=h+"px";}
}
} 

}par:
a.vi=true;a.w=w;a.h=h;if(a.fs!=0)this.box(i);if(i==a.b&&a.c=='')this._qs(i);}else{a.vi=false;if(d)d.style.display='none';}
},
di:0,

d:function(e){var d=top.document.getElementById(e);return d;},box:function(i){var a=this.ad[i],d=this.d("LW_Ai"+i)||this.d("Liqwid_frame"+i),b=this.d("Liqwid_box"+i);if(b&&a&&d){d.style.width=a.mw+"px";d.style.height=a.mh+"px";b.style.position="absolute";b.style.width=a.mw+"px";b.style.height=a.mh+"px";b.style.left=parseInt(a.w/2-a.mw/2)+"px";b.style.top=parseInt(a.h/2-a.mh/2)+"px";}},
cwl:function(i){var a=this.ad[i];if(a)a.end=true;var d=this.d('Liqwid_board'+i);if(d){d.classList.add('Liqwid_'+i+'min');setTimeout(function(){d.style.display='none'},250);}this.lmt++;
/*
for(k=0;k<10;k++){var n=top.document.querySelector(".LW_blur");if(n)try{n.classList.remove("LW_blur");}catch(e){}}setTimeout(function(){var d=this.d("Liqwid_board"+i);if(d){d.style.width="1px";d.style.height="1px";d.style.display='block';}var bg=this.d("LW_sw");if(bg){bg.style.display="block";}},0);
*/
},
player:{},webm:function(i){var a=this.ad[i];if(a){if(a.inc==0){a.s=0;this.wp.x='c';this.exp(i);top.addEventListener('resize',function(){Liqwid.exp(i);},false);}}},
stl:function(i){var L='Liqwid_',d=this.d(L+'styles'),a=this.ad[i];if(d&&a){
var at=a.pp.at||'0.3',t0=at+'s ease-in-out 1 forwards;',t1='fi '+t0, t2='out '+t0, t5='mx '+t0, t7='mn '+t0,t3='fi {from{opacity:0;}to{opacity:1;}}',t4='out {from{opacity:1;}to{opacity:0;}}',t6='mx {from{height:1px;opacity:0;}to{height:'+a.h+'px;opacity:1;}}',t8='mn {from{height:'+a.h+'px;opacity:1;}to{height:1px;opacity:0;}}';L+=i;d.innerHTML+='<style>.'+L+'fadein {-webkit-animation:'+L+t1+'-moz-animation:'+L+t1+'-ms-animation:'+L+t1+'-o-animation:'+L+t1+'animation:'+L+t1+'} @keyframes '+L+t3+' @-moz-keyframes '+L+t3+' @-webkit-keyframes '+L+t3+' @-ms-keyframes '+L+t3+' @-o-keyframes '+L+t3+' .'+L+'fadeout {-webkit-animation:'+L+t2+'-moz-animation:'+L+t2+'-ms-animation:'+L+t2+'-o-animation:'+L+t2+'animation:'+L+t2+'} @keyframes '+L+t4+' @-moz-keyframes '+L+t4+' @-webkit-keyframes '+L+t4+' @-ms-keyframes '+L+t4+' @-o-keyframes '+L+t4+' .'+L+'max {-webkit-animation:'+L+t5+'-moz-animation:'+L+t5+'-ms-animation:'+L+t5+'-o-animation:'+L+t5+'animation:'+L+t5+'} @keyframes '+L+t6+' @-moz-keyframes '+L+t6+' @-webkit-keyframes '+L+t6+' @-ms-keyframes '+L+t6+' @-o-keyframes '+L+t6+' .'+L+'min {-webkit-animation:'+L+t7+'-moz-animation:'+L+t7+'-ms-animation:'+L+t7+'-o-animation:'+L+t7+'animation:'+L+t7+'} @keyframes '+L+t8+' @-moz-keyframes '+L+t8+' @-webkit-keyframes '+L+t8+' @-ms-keyframes '+L+t8+' @-o-keyframes '+L+t8+'</style>';}},add:function(i){
if (this.ad[i]===undefined)return;
var L='Liqwid_',id_=L+'board'+i,a=this.ad[i],it=a.pp.it||3,anc_=a.pp.qs||'body',mr_=a.pp.margin||'',bg=a.pp.background||'';

if(!this.d(id_)&&(a.ht!=''||a.cc!='')){

var b=top.document.body,anc=top.document.querySelector(anc_),el=top.document.createElement('div');el.id=id_;el.style.zIndex=this.com.z();el.style.opacity=0;if(mr_!='');el.style.margin=mr_;
if (bg!='')el.style.background=bg;
if (!anc){setTimeout(function(){Liqwid.add(i);},10);return;}
 
try{
if (it==1){anc.insertBefore(el,anc.firstChild);
}else if(it==2){this.com.ia(el,anc);
}else if(it==3){anc.appendChild(el);
}else{anc.insertBefore(el,anc.firstChild);}
}catch(e){
 anc.appendChild(el);
}

  if(b&&!this.d(L+'styles')){var s=top.document.createElement('div');s.id=L+'styles';b.appendChild(s);}

       if(a.inc!=0){
            a.pp.vk=a.pp.vis||0.5; a.pp.vc=0; if(a.rl!=0){el.style.width='100%';a.w=el.offsetWidth;a.h=parseInt(a.w*(a.mh/a.mw));}this.stl(i);
           if(this._vis==0){this._vis=1;this.vis();}
        return;
        }

// move webmercial out ??? if(a.inc==0){if(a.vast)this.wp.x=-3000;this.exp(i);}}

this.stl(i);if(!a.l)this.fill(i);

}


},_vis:0,vis_:false

,vis:function(){for(n=0;n<this.i;n++){var a=this.ad[n],d=this.d("Liqwid_board"+n);if(d)this.com.fpi(n,d);if(a&&a.inc!=0&&a.p!=0&&d&&!a.end){vis_=true;var b,bl=0,mb=a.pp.mb||0,fl=a.pp.fl||'',s_in=a.pp.si||"fadein",s_out=a.pp.so||"fadeout",pos_=a.pp.pt||'relative',top_=a.pp.t||0;s_in=n+s_in;s_out=n+s_out;if (a.pp.bl!==undefined && a.pp.bl!='')b=top.document.querySelector(a.pp.bl);
if(a.rl!=0){a.w=d.offsetWidth;a.h=parseInt(a.w*(a.mh/a.mw));d.style.height=a.h+'px';}else{
a.w=a.mw; a.h=a.mh;
// console.log('vis  '+n+'--' + a.w + ' x ' + a.h);
}var t=a.y,l=a.x,w=a.w,h=a.h,wx=this.com.wp().l,wy=this.com.wp().t,ts=this.com.st(),tm=t-ts+(h-h*a.pp.vk),lm=l-this.com.sl()+(w-w*a.pp.vk),rm=l-this.com.sl()+w*a.pp.vk,bm=t-ts+h*a.pp.vk,sl=wx+lm,sr=wx+rm,sb=wy+bm+50,_t=parseInt(this.ch/2-a.h/2),_tm=_t;if(_t<tm)_tm=tm;if(a.pp.va=='m')sb=wy+(_tm+h*a.pp.vk);if(b)bl=this.com.fp(b).t+mb-ts;
if(this.fs && (tm>0||(a.pp.va=='m'&&_t>0))&&bm<this.ch&&h*a.pp.vk<this.ch&&w*a.pp.vk<this.cw&&rm<this.cw&&lm>0&&sl>0&&sr<screen.width&&sb<screen.height){a.vi=true;}else{a.vi=false;}
if (a.pp.bl!==undefined && a.pp.bl!=''){if (a.pp.va=='m'&&bl<=_t+h){_t=bl-h;if(_t<-h*a.pp.vk)a.vi=false;}}

if(a.pp.va=='m'){
if(t-ts<=_t){
//console.log('t ' + t + ' ts ' + ts + ' _t ' + _t + ' t-ts' + (t-ts));
d.style.top=_t+'px';
d.style.position='fixed';
d.style.marginTop='0';
}else{
var fx=a.pp.fx||0;if(fx!=0)a.vi=false;if(pos_!=''){d.style.position=pos_;d.style.top=top_+'px';}else{if(fl!='')d.style.float=fl;}
if(a.pp.margin!==undefined)d.style.margin=a.pp.margin;}

}else{	
 
if(pos_!='')d.style.position=pos_;
    }

if(a.vi){
if(a.pp.vc==0){
a.pp.vc=1;
	if(!a.l){
	this.fill(n);
	}else{
   
        if (a.pp.fd!=0&&a.video==0){
        if(d.className.indexOf("Liqwid_"+s_out) >-1)d.classList.remove("Liqwid_"+s_out);d.classList.add("Liqwid_"+s_in);}
        }
	}
if(a.video>0&&!a.end&&a.player.play!==undefined&&a.pa==0&&a.pl==0){a.pl=1;a.player.play();}
}else{
if(a.video>0&&!a.end&&a.player.pause!==undefined&&a.pa==0&&a.pl!=0){a.pl=0;a.player.pause();}
if(a.pp.vc!=0 && a.pp.fd!=0&&a.video==0){a.pp.vc=0;if (
d.className.indexOf("Liqwid_"+s_in) >-1)d.classList.remove("Liqwid_"+s_in); 
d.classList.add("Liqwid_"+s_out);
}}}}if(this._vis!=0)setTimeout(function(){Liqwid.vis();},1);},ap:0,fill_:0,

fill:function(i){var a=this.ad[i],b=this.d('Liqwid_board'+i);if(a&&b&&a.ht!=''){a.l=true;

for(var n=0;n<this.i;n++){var a_=this.ad[n];if(a_){if(a_.ps=='A')this.ap=a_.p;}}if(a.ps!='B'||a.p!=this.ap)this._vq(i);

if(a.rtb.c[a.cn]!==undefined){

this.rtb_call(i,a.rtb.c[a.cn],a.cn);

}else{

if(a.cc!=''){b.innerHTML=a.ht;this.ff(i,a.cc,'',1);}

b.classList.add("Liqwid_"+i+"fadein");}

if(a.tt!='')this.ff(i,a.tt,'t',0);
a.r=1;
//console.log('fill i= ' + i + ' a.r=  '+ a.r);
if(this.fill_!=1){this.fill_=1;setTimeout(function(){Liqwid.timer();},1000);}

}
},
rtb_call:function(i,t,n){var a=this.ad[i];if(a){if(t=='')return;
a.r=n;
//console.log('call i= ' + i + ' a.r=  '+ a.r);
this.rtb_flag=true;var c="<!DOCTYPE html><html><head><title>LIQWID Ads</title><!-- Call #"+n+" --><scr"+"ipt type='text/javascript'>if (LIQWID_SLOT===undefined){var LIQWID_SLOT="+i+";}else{LIQWID_SLOT="+i+";}";

if (a.inc!=0){
c+="var observeDOM=(function(){var MutationObserver = window.MutationObserver || window.WebKitMutationObserver, eventListenerSupported = window.addEventListener; return function(obj, callback){if(MutationObserver){var obs=new MutationObserver(function(mutations,observer){if( mutations[0].addedNodes.length||mutations[0].removedNodes.length)callback();});obs.observe(obj,{childList:true,subtree:true});}else if( eventListenerSupported){obj.addEventListener('DOMNodeInserted',callback,false);obj.addEventListener('DOMNodeRemoved',callback,false);}}})();observeDOM(document,function(){top.Liqwid.check_ad("+i+","+n+");});";
}

c+="</scr"+"ipt></head><body>"+t+"</body></html>";
a.cc=c;
this.ff(i,c,'',n);
}
},

ff:function(i,c,t,n){var b=this.d('Liqwid_board'+i),a=this.ad[i],_f='',f,v='';if(a&&b){
if(t==''){_f='<iframe id="Liqwid_frame'+i+'" src="about:blank" width="' +a.mw+ 'px" height="' +a.mh+ 'px" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" ></iframe>';if (a.tt!='')_f+='<iframe id="Liqwid_framet'+i+'" src="about:blank" width="1" height="1" frameborder="0"  scrolling="no" style="display:none;"></iframe>';
if(a.inc!=0)v='display:none;';if(a.ps=='W')_f=a.ht+_f;
b.innerHTML='<div id="Liqwid_box'+i+'" style="'+v+'width:' +a.mw+ 'px;height:' +a.mh+ 'px;">'+_f+'</div>';}f=this.d('Liqwid_frame'+t+i);
if(f){var d=f.contentDocument;if(d===undefined||d==null){d=f.contentWindow.document;}d.open();d.write(this.com.rnl(c));d.close();}
if(a.tc!=5||a.inc==0)this.ss(i);
}
},

check_ad:function(i,n){var a=this.ad[i];

if(a){
 this.ss(i); return;
//if(a.j!=0)return;
//if (a.inc!=0) console.log('IN i= ' + i + ' a.cn=  '+a.cn + ' a.r= ' + a.r + ' n= ' + n);

setTimeout(function(){

if(a.r==n&&a.cn==n){

var f=Liqwid.d('Liqwid_frame'+i),t='';

    if(f){
    	var d=f.contentDocument;if(d===undefined||d==null)d=f.contentWindow.document;
    
        if(d){
         t=d.body.outerHTML;
        
            if(t.match(/CasaleArgs/)&&!t.match(/!-- cmc /)){
           // console.log('no cmc  '+i);
            Liqwid.demand('I',false,i);return;
            }
        }
	
	}
//if (a.inc!=0) console.log('OUT i= ' + i + ' a.cn=  '+a.cn + ' a.r= ' + a.r + ' n= ' + n); 
Liqwid.ss(i);   

}

},100);

}

},

ss: function(i){
var a=this.ad[i],d=this.d('Liqwid_board'+i),b=this.d('Liqwid_box'+i),f=this.d('Liqwid_frame'+i);
if(a&&b&&d){

b.style.display='block';
if(a.j!=0)return;
a.j=1;
//if (a.inc!=0&&a.pp.pt!=undefined&&a.pp.pt!='') d.style.position=a.pp.pt;
var s_in=a.pp.si||"fadein";s_in=i+s_in;
if(a.rl!=0){d.style.width='100%';}else{if(a.inc!=0)d.style.width=a.w+'px';}

if(s_in!=i+"max"){
if (a.rl!=0){
d.style.height=parseInt(d.offsetWidth*(a.mh/a.mw))+'px';
if(b){b.style.width='100%';b.style.height='100%';}
if(f){f.style.width='100%';f.style.height='100%';}
}else{
d.style.height=a.mh+'px';}
}
a.pp.vc=1;d.classList.add("Liqwid_"+s_in);}
},
demand:function(rtb,r,i){var a=this.ad[i];if(a){a.cn++;a.s=0;
if (top.location.href.indexOf('independenttraveler') >-1){if(navigator.userAgent.match(/Firefox/)){this.abord=true; return;}}
if(this.fall_flag==-1)return;if (this.fall!=''){if(a.cn==a.rtb.t-1)this.fall_flag++;if(this.fall_flag==2){this.fall_flag=-1;this.load();return;}} 
if(a.rtb.c[a.cn]!==undefined){a.mw=a.rtb.w[a.cn];a.mh=a.rtb.h[a.cn];this.rtb_call(i,a.rtb.c[a.cn],a.cn);}}},
ops:function(){
var r=0;

return r;
},
com:{tl:'',log:function(l){if(l===undefined||!l||l=='')return;var u='//www.liqwid.net/log/?'+Liqwid.q+l+'&rnd='+Math.floor((Math.random()*100000000)+1), x;if(top.XMLHttpRequest){x=new XMLHttpRequest();}else{x=new ActiveXObject("Microsoft.XMLHTTP");}try{x.open("get",u,true);x.send();}catch(e){return;}},js:function(l){if(l===undefined||!l||l=='')return;var b=top.document.body;if(b){var s=top.document.createElement('script');s.setAttribute('type','text/javascript');s.setAttribute('async','true');s.setAttribute('src',l);b.appendChild(s);}},rnl:function(s){s=s.replace(/\s{2,}/g, ' ').replace(/\t/g, ' ').toString().trim().replace(/(\r\n|\n|\r)/g,"").replace(/&backs;/g,'\\"').replace(/%27/g,'\''); return s;},fr:function(w,d,b){var r=w?w:0;if(d&&(!r||(r>d))){r=d;}return b&&(!r||(r>b))?b:r;},sl:function(){return Liqwid.com.fr(top.pageXOffset?top.pageXOffset:0,top.document.documentElement?top.document.documentElement.scrollLeft:0,top.document.body?top.document.body.scrollLeft:0);},st:function(){return Liqwid.com.fr(top.pageYOffset?top.pageYOffset:0,top.document.documentElement?top.document.documentElement.scrollTop:0,top.document.body?top.document.body.scrollTop:0);},fpi:function(i,o){var e=top.getComputedStyle(o.parentNode);var x=0,y=0;if(o.offsetParent){do{x+=o.offsetLeft;y+=o.offsetTop;}while(o=o.offsetParent);Liqwid.ad[i].y=y;Liqwid.ad[i].x=x;}},fp:function(o){var x=0,y=0;if(o.offsetParent){do{x+=o.offsetLeft;y+=o.offsetTop;}while(o=o.offsetParent);} return {l:parseInt(x),t:parseInt(y)};},isj:function(){Liqwid.flash=true;return true;}, swf:function(){Liqwid.flag++;if(Liqwid.flash&&this.flag>0){top.clearInterval(Liqwid.lso);}else{if(Liqwid.flag==200){Liqwid.rec();top.clearInterval(Liqwid.lso);}}},ie:function(){var ie=parseInt((/msie (\d+)/.exec(navigator.userAgent.toLowerCase())||[])[1]);if(isNaN(ie)){ie=parseInt((/trident\/.*; rv:(\d+)/.exec(navigator.userAgent.toLowerCase())||[])[1]);}return ie;},ref:function(){var r=top.document.referrer||'';if(r!=''){r=r.match(/:\/\/(.[^/]+)/)[1];return r;}},ts:function(){var ts=0;if(top.document.documentElement&&top.document.documentElement.scrollTop){ts=top.document.documentElement.scrollTop;}else if(top.document.body&&top.document.body.scrollTop){ts=top.document.body.scrollTop;} return ts;},wp:function(){var l=0,t=0,to=0,b=0;if(top.screenTop){l=top.screenLeft;to=top.screenTop;}else{l=top.screenX;to=top.screenY;} if(isNaN(Liqwid.com.ie())){var b=10;if(navigator.platform.match(/Mac/)){b=65;}t=(top.outerHeight-top.innerHeight+to-b);}else{t=to;}return{l:parseInt(l),t:parseInt(t)};},z:function(){var z=0,j=0,e=[];e=top.document.getElementsByTagName("*");for(var i=0;i<e.length;i++){if(e[i].currentStyle){j=parseInt(e[i].currentStyle["zIndex"]);}else if(top.getComputedStyle){j=parseInt(top.document.defaultView.getComputedStyle(e[i],null).getPropertyValue("z-index"));}if(!isNaN(j)&&j>z)z=j;}if(z==null){z=16777271} return ++z;},ia:function(n,r) {r.parentNode.insertBefore(n,r.nextSibling);},qk:function(k) {return unescape(top.location.search.replace(new RegExp("^(?:.*[&\\?]" + escape(k).replace(/[\.\+\*]/g, "\\$&") + "(?:\\=([^&]*))?)?.*$", "i"), "$1"));},td:function(n){return (n<10?'0':'')+n},vdt:function(){var d=new Date();return escape(d.getFullYear()+"-"+this.td(d.getMonth()+1)+"-"+this.td(d.getDate())+" "+this.td(d.getHours())+":"+this.td(d.getMinutes())+":"+this.td(d.getSeconds()));},sC:function(n,v,p,m){var d=new Date();if(m>0){d.setTime(d.getTime()+(m*60*1000));}else{d.setHours(24);d.setMinutes(00);d.setSeconds(00);if(p>0){d.setTime(d.getTime()+(p*24*60*60*1000));}}top.document.cookie=n+"="+v+"; expires="+d.toUTCString()+"; path=/";},gC:function(n){var nq=n+"=",ca=top.document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nq)==0){return c.substring(nq.length,c.length);}}return null;},tz:function(){var d=new Date(),dst=0,w=new Date(d.getFullYear(),0,1,0,0,0,0),s=new Date(d.getFullYear(),6,1,0,0,0,0),t=w.toGMTString(),w_=new Date(t.substring(0,t.lastIndexOf(" ")-1)),sto=(w-w_)/(1000*60*60);t=s.toGMTString();var s_ = new Date(t.substring(0,t.lastIndexOf(" ")-1)),dto=(s-s_)/(1000*60*60);if (sto!=dto){dst=1;}return (parseFloat(d.getTimezoneOffset()/60)+dst).toFixed(2);}},init:function(){top.Liqwid=this;var doc=false,t=false,dom=function(){if(!doc){if(!top.document.body){return setTimeout(dom,1);} doc=true;try{Liqwid.flash=new ActiveXObject('ShockwaveFlash.ShockwaveFlash');}catch(e){Liqwid.flash=(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"])?navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin:0;}Liqwid.vdp();}},_dom=(function(){if(top.document.addEventListener){top.document.removeEventListener("DOMContentLoaded",_dom,false);}else{top.document.detachEvent("onreadystatechange",_dom);}dom();}),sd=(function(){if(doc){return;}try{top.document.documentElement.doScroll("left");}catch(error){setTimeout(sd,1);return;}dom();});if(top.document.readyState!=="loading")dom();if(top.document.addEventListener){top.document.addEventListener("DOMContentLoaded",_dom,false);top.addEventListener("load",_dom,false);}else if(top.document.attachEvent){top.document.attachEvent("onreadystatechange",_dom);top.attachEvent("onload",_dom);try{t=top.frameElement==null;}catch(e){}if(top.document.documentElement.doScroll&&t)sd();}},
};Liqwid.init();top.LIQWID_demand=(function(rtb,r,i){Liqwid.demand(rtb,r,i);});top.LW_cl=(function(b,u,tr,m){Liqwid.click(b,u,tr,m);});}
