var ImgSFlyouts;(function(){function bi(){kt=_ge("id_h");a=_ge("id_sc");t=_ge("imgflyouts");v=_ge("imgflyouts_sbtn");kt&&a&&t&&v&&(_d.body.appendChild(t),sj_be(_w,ct,it),sj_be(v,o,ri),i=_ge("gif_mnflyout"),i&&(i&&i.getAttribute(li)===e&&ti(),sj_evt.bind(ci,function(){n=_ge("gif_hvflyout");n&&(sj_be(_d,b,h),sj_be(_d,lt,h),sj_be(_d,k,ft),s=_ge("gif_hvflyoutCls"),s&&sj_be(s,o,ii),u=_ge("imgflyout_gifToggle"),u&&(dt=ni("imgflyout_gifToggle_on"),gt=ni("imgflyout_gifToggle_off"),sj_evt.bind(pt,ui),sj_evt.bind(d,y),sj_evt.bind(g,y)))},1)),sj_evt.bind(yt,oi),sj_be(_w,at,p),sj_evt.bind(vt,p))}function ni(n){var t=_ge(n);return t&&t.getAttribute("h")}function it(){t&&(GetScrollTop()>ai?t.classList.add(w):t.classList.remove(w))}function ki(){t&&(t.classList.remove(w),t.classList.remove(e))}function ti(){t&&i&&(sj_be(i,o,function(){a.click()}),t.classList.add(e),it(),di(i,function(){i=null;ki()}),nr())}function ii(){rt(pi)}function rt(t){sb_st(function(){f(n);n=null;et();ti()},t)}function ri(){_w.scroll(_G.RTL?2e3:0,0);sb_st(function(){a.click()},vi)}function ui(n){var t=n&&n[1],i;typeof si_T=="function"&&(i=t?dt:gt,i&&si_T(i));sj_cook&&sj_cook.set&&sj_cook.set(c,si,t?"1":"0",!0,"/");sj_evt.fire(t?d:g,u);rt(nt)}function f(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function di(n,t){n&&(n.classList.add(e),sb_st(function(){f(n);t()},wi))}function gi(n){n&&n.classList.contains(e)&&f(n)}function y(r){r&&r[1]&&u&&r[1]!=u&&(et(),f(n),n=null,f(i),i=null,f(t),t=null,u=null)}function nr(){sj_cook&&sj_cook.set&&sj_cook.set(c,hi,tr(),!0,"/")}function ut(n){n&&(sb_ct(n),n=null)}function fi(){var i,o,s,t,u,f,e;r&&n&&(i=r.parentElement,o=i?i.querySelector("#userLPDlg"):null,tt>=yi&&!o?(sj_ue(_d,b,h),sj_ue(_d,lt,h),sj_ue(_d,k,ft)):(tt++,ut(bt),sj_cook&&sj_cook.set&&tt==1&&(s=+sj_cook.get(c,ot)||0,sj_cook.set(c,ot,(++s).toString(),!0,"/")),t=10,u=r.getBoundingClientRect(),n.classList.remove(st),n.classList.remove(ht),f=st,e=-n.clientWidth-t,u.left<=n.clientWidth+t&&(e=u.width+t,f=ht),n.style.left=e+"px",n.classList.add(f),r.appendChild(n),bt=sb_st(function(){rt(nt)},nt)))}function h(n){var t=ei(sj_et(n));t&&t!=r&&(r=t,ut(l),l=sb_st(fi,wt))}function ft(n){var t=ei(sj_mo(n));t!=r&&(r=t,ut(l),t&&(l=sb_st(fi,wt)))}function ei(n){while(n!=null&&n.classList){if(n.classList.contains("iusc"))return n.getAttribute("gif")==="1"?n.parentElement:null;n=n.parentNode&&n.parentNode!=n?n.parentNode:null}return null}function et(){n&&(sj_ue(_d,b,h),sj_ue(_d,k,ft),s&&sj_ue(s,o,ii),u&&(sj_evt.unbind(pt,ui),sj_evt.unbind(d,y),sj_evt.unbind(g,y)))}function p(){et();f(t);sj_evt.unbind(yt,oi);sj_ue(v,o,ri);sj_ue(_w,ct,it);sj_ue(_w,at,p);sj_evt.unbind(vt,p)}function tr(){return(new Date).toISOString().slice(0,10).replace(/-/g,"")}function oi(n){n&&n[1]&&gi(i)}var c="imgv",ot="lodlg",si="gt",hi="gts",st="ptleft",ht="ptright",e="shown",w="shscrbtn",o="click",ct="scroll",b="mouseover",lt="focusin",k="mouseout",at="unload",vt="ajax.unload",yt="focusChange",ci="GifPlayer.inited",d="Gif.Play",g="Gif.Stop",pt="imgflyout_gifToggletoggled",li="data-state",ai=55,vi=1e3,wt=250,yi=4,pi=100,nt=1e4,wi=1e4,l=null,bt=null,tt=0,kt,a,i,t,v,n,u,dt,gt,s,r;sj_evt.bind("onP1",function(){setTimeout(bi,200)},1)})(ImgSFlyouts||(ImgSFlyouts={}))