| Server IP : 213.186.33.4 / Your IP : 216.73.216.193 Web Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : awebpaca ( 35430) PHP Version : 8.5.0 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/a/w/e/awebpaca/360/vieilleferme/video/visite2/indexdata/graphics/KolorBox/ |
Upload File : |
(function(){var f=!0,i=null,r=!1;
KolorBox=function(W,v){function B(a){ktools.DOM.preventDefault(a);if(!(G===f||x===f)){H();var b=ktools.DOM.getOffset(a.currentTarget),a=a.clientX-b.x,b=jQuery(c.a.body.b).width();a<=b/2?I("previous"):a>b/2&&I("next")}}function l(a){ktools.DOM.preventDefault(a);if(G!==f){var b=jQuery(c.a.body.b),d=ktools.DOM.getOffset(a.currentTarget),a=a.clientX-d.x,d=b.width();b.find(".kolorBoxBodyCenterLeftArrow").hide();b.find(".kolorBoxBodyCenterRightArrow").hide();a<=d/2?b.find(".kolorBoxBodyCenterLeftArrow").show():a>
d/2&&b.find(".kolorBoxBodyCenterRightArrow").show()}}function y(a){ktools.DOM.preventDefault(a);jQuery(c.a.body.b).unbind("mouseleave",y);jQuery(c.a.body.b).unbind("click",B);jQuery(c.a.body.b).unbind("mousemove",l);jQuery(c.a.body.b).bind("mouseenter",z);C()}function z(a){ktools.DOM.preventDefault(a);jQuery(c.a.body.b).unbind("mouseenter",z);jQuery(c.a.body.b).bind("mouseleave",y);jQuery(c.a.body.b).bind("click",B);jQuery(c.a.body.b).bind("mousemove",l)}function J(){C();jQuery(c.a.body.b).unbind("mouseenter",
z);jQuery(c.a.body.b).unbind("mouseleave",y);jQuery(c.a.body.b).unbind("click",B);jQuery(c.a.body.b).unbind("mousemove",l);jQuery(c.a.body.b).css("cursor","default")}function K(){a.draggable_box===f&&!ktools.Device.isTouch()&&jQuery(c.a).draggable({addClasses:r,cancel:".kolorBoxBodyCenter"})}function D(){var a=jQuery(c.a.body.b),b=(a.height()-32)/2;a.find(".kolorBoxBodyCenterLeftArrow").css("top",b+"px");a.find(".kolorBoxBodyCenterRightArrow").css("top",b+"px")}function C(){jQuery(c.a.body.b.r).hide();
jQuery(c.a.body.b.u).hide()}function k(e){var b=2*a.item_border_width,d=m[n],h,g={width:0,height:0};switch(d.f()){case "image":g=d.o();break;case "social":var g=a.social_btn.split("#"),j=h=74;"horizontal"===a.social_orientation?h*=g.length:"vertical"===a.social_orientation&&(j*=g.length);g={width:h,height:j};break;default:h=parseFloat(ktools.Url.getParam(d.e(),"width"))?ktools.Url.getParam(d.e(),"width"):a.iframe_default_width,j=parseFloat(ktools.Url.getParam(d.e(),"height"))?ktools.Url.getParam(d.e(),
"height"):a.iframe_default_height,g={width:h,height:j}}h=g;var o=j=f,g=f;if(a.container_auto_size)"iframe"===d.f()?j=r:o=r,g=r,d=L(t,u),h=w(d.width-b,d.height-b,h.width,h.height,j,o),d={width:h.width+b,height:h.height+b};else{"iframe"===d.f()&&(j=r);if("image"===d.f()||"social"===d.f())o=r;ga();d=w(t,u,ba,ca);d=L(d.width,d.height);h=w(d.width-b,d.height-b,h.width,h.height,j,o)}X(d.width,d.height,e);Y(h.width,h.height,g,d.height,e);jQuery(c.a).find(".kolorBoxBodyCenter").removeClass("loading")}function ha(){if(jQuery("#"+
v).width()!==q||jQuery("#"+v).height()!==s)Z(),ia(),k(r)}function ia(){if(a.overlay_displayed===f){var e=jQuery(c.q);e.css("opacity",a.overlay_alpha);e.css("background","#"+a.overlay_color);e.css("width",q+"px");e.css("height",s+"px");e.unbind("click").bind("click",function(){ja.h()})}}function da(){var e=jQuery(c.a),b=ktools.Color.hex2rgb(a.container_color);"Explorer"===kolorBrowserDetect.browser&&9>kolorBrowserDetect.version?e.css("background","rgb("+b[0]+","+b[1]+","+b[2]+")"):e.css("background",
"rgba("+b[0]+","+b[1]+","+b[2]+","+a.container_alpha+")");e.find(".kolorBoxBodyCenter").addClass("loading");e.css("-moz-border-radius-topleft",a.container_topleft_border_radius+"px");e.css("border-top-left-radius",a.container_topleft_border_radius+"px");e.css("-webkit-border-top-left-radius",a.container_topleft_border_radius+"px");e.css("-moz-border-radius-topright",a.container_topright_border_radius+"px");e.css("border-top-right-radius",a.container_topright_border_radius+"px");e.css("-webkit-border-top-right-radius",
a.container_topright_border_radius+"px");e.css("-moz-border-radius-bottomleft",a.container_bottomleft_border_radius+"px");e.css("border-bottom-left-radius",a.container_bottomleft_border_radius+"px");e.css("-webkit-border-bottom-left-radius",a.container_bottomleft_border_radius+"px");e.css("-moz-border-radius-bottomright",a.container_bottomright_border_radius+"px");e.css("border-bottom-right-radius",a.container_bottomright_border_radius+"px");e.css("-webkit-border-bottom-right-radius",a.container_bottomright_border_radius+
"px");e.css("border-width",a.container_border_width+"px");e.css("border-color","#"+a.container_border_color);e.css("border-style",a.container_border_style);a.title_displayed&&(e.find(".kolorBoxTitle").css("color","#"+a.title_color),e.find(".kolorBoxTitle").css("font-family",a.title_font),e.find(".kolorBoxTitle").css("font-weight",a.title_weight),e.find(".kolorBoxTitle").css("text-decoration",a.title_decoration),e.find(".kolorBoxTitle").css("font-size",a.title_size+"px"));a.caption_displayed&&(e.find(".kolorBoxCaption").css("color",
"#"+a.caption_color),e.find(".kolorBoxCaption").css("font-family",a.caption_font),e.find(".kolorBoxCaption").css("font-weight",a.caption_weight),e.find(".kolorBoxCaption").css("text-decoration",a.caption_decoration),e.find(".kolorBoxCaption").css("font-size",a.caption_size+"px"))}function w(a,b,d,c,g,j){var o={},k=1;if(g===r)return{width:Math.min(a,d),height:Math.min(b,c)};if(!(d>a||c>b)===r||j===f)k=Math.min(a/d,b/c);o.width=parseInt(d*k);o.height=parseInt(c*k);return o}function ka(e,b,d){var c=
0,g=0;switch(e){case KolorBox.g.V:c=a.margin_y;g=a.margin_x;break;case KolorBox.g.U:c=a.margin_y;g=(q-b)/2;break;case KolorBox.g.W:c=a.margin_y;g=q-b-a.margin_x;break;case KolorBox.g.T:c=(s-d)/2;g=q-b-a.margin_x;break;case KolorBox.g.R:c=s-d-a.margin_y;g=q-b-a.margin_x;break;case KolorBox.g.P:c=s-d-a.margin_y;g=(q-b)/2;break;case KolorBox.g.Q:c=s-d-a.margin_y;g=a.margin_x;break;case KolorBox.g.S:c=(s-d)/2;g=a.margin_x;break;case KolorBox.g.A:c=(s-d)/2,g=(q-b)/2}return{top:c,left:g}}function va(a){a=
ktools.String.decode(a);jQuery(c).find(".kolorBoxCaption").html(a)}function wa(a){a=ktools.String.decode(a);jQuery(c).find(".kolorBoxTitle").html(a)}function H(){M&&(jQuery(c).find(".playPauseBtn").removeClass("pauseBtn").addClass("playBtn"),jQuery(c).find(".playPauseBtn").unbind("click").bind("click",aa),clearInterval(M),M=i)}function aa(){M?I("next"):(jQuery(c).find(".playPauseBtn").removeClass("playBtn").addClass("pauseBtn"),jQuery(c).find(".playPauseBtn").unbind("click").bind("click",H),M=setInterval(aa,
a.slideshow))}function I(a){G===f||x===f||(jQuery(c.a).find(".kolorBoxBodyCenter").addClass("loading"),"next"===a?(n=n<m.length-1?n+1:0,N(n)):"previous"===a&&(n=0===n?m.length-1:n-1,N(n)))}function xa(){var e=jQuery(c.a.body.b).find(".displayedItem");0<e.length&&(a.hide_effect!==r&&x===r?(x=f,e.hide(a.hide_effect,function(){x=r;e.remove()})):a.hide_effect===r&&e.remove())}function E(e){c.a.body.b.appendChild(e);a.show_effect!==r&&(jQuery(e).hide(),jQuery(e).show(a.show_effect));jQuery(c.a).find(".kolorBoxBodyCenter").removeClass("loading")}
function la(a){a.G()===f&&x===r?ya(a):(clearTimeout(ma),ma=setTimeout(function(){la(a)},500))}function na(e,b){jQuery(c.a.body.b).find(".displayedItem").css("margin-top",(e-b-2*a.item_border_width)/2+"px")}function oa(e,b,d,c,g,j,o){if(ktools.Device.isTouch()&&b&&(e.css("overflow","scroll !important"),e.css("-webkit-overflow-scrolling","touch !important"),a.force_ios_scrolling)){g?0==j?e.animate({width:"1024px",height:"5000px",marginTop:""},a.animate_time,function(){o&&o()}):e.animate({width:"1024px",
height:"5000px",marginTop:j},a.animate_time,function(){o&&o()}):(e.css("width","1024px"),e.css("height","5000px"),0==j?e.css("marginTop",""):e.css("marginTop",j+"px"));e.css("max-width","1024px");e.css("max-height","5000px");e.css("-webkit-transform","translate3d(0, 0, 0)");return}g?0==j?e.animate({width:d,height:c,marginTop:""},a.animate_time,function(){o&&o()}):e.animate({width:d,height:c,marginTop:j},a.animate_time,function(){o&&o()}):(e.css("width",d+"px"),e.css("height",c+"px"),0==j?e.css("marginTop",
""):e.css("marginTop",j+"px"))}function Y(e,b,d,h,g){var j=jQuery(c.a.body.b).find(".displayedItem"),o=0;d===f&&(o=(h-b-2*a.item_border_width)/2);oa(j,"iframe"===m[n].f(),e,b,g,o,void 0)}function ya(e){var b=jQuery(c.a.body.b),d=e.H(),e=e.o(),h=2*a.item_border_width;d.className="displayedItem";jQuery(d).css("border-width",a.item_border_width+"px");jQuery(d).css("border-color","#"+a.item_border_color);jQuery(d).css("border-style",a.item_border_style);a.draggable_image===f&&jQuery(d).draggable({addClasses:r,
revert:f});if(a.container_auto_size===f){var b=L(t,u),g=w(b.width-h,b.height-h,e.width,e.height);X(g.width+h,g.height+h,a.animate,function(){E(d);Y(g.width,g.height,r)})}else g=w(b.width()-h,b.height()-h,e.width,e.height),E(d),Y(g.width,g.height,f,b.height()),D()}function O(e,b,d){var h=jQuery(c.a.body.b),g=2*a.item_border_width,j=parseFloat(ktools.Url.getParam(b.e(),"width"))?ktools.Url.getParam(b.e(),"width"):a.iframe_default_width,o=parseFloat(ktools.Url.getParam(b.e(),"height"))?ktools.Url.getParam(b.e(),
"height"):a.iframe_default_height,k=L(t,u),l=f;"iframe"===b.f()&&(l=r);var m=w(k.width-g,k.height-g,j,o,l),b=m.width+g,n=m.height+g,p=document.createElement("iframe");p.className="displayedItem";p.setAttribute("src",e);p.setAttribute("allowfullscreen","");p.setAttribute("mozallowfullscreen","");p.setAttribute("webkitallowfullscreen","");p.setAttribute("frameborder","0");p.setAttribute("allowtransparency","true");p.setAttribute("style","'visibility: hidden;'");p.setAttribute("onload","this.style.visibility = 'visible';");
p.scrolling=a.iframe_scrolling;oa(jQuery(p),f,m.width,m.height,r,0);jQuery(p).css("border-width",a.item_border_width+"px");jQuery(p).css("border-color","#"+a.item_border_color);jQuery(p).css("border-style",a.item_border_style);a.container_auto_size===f?X(b,n,a.animate,function(){E(p);na(n,m.height)}):(e=w(h.width()-g,h.height()-g,j,o,d,f),E(p),Y(e.width,e.height,f,h.height()))}function za(e){var b=e.e(),d=/http(s)?:\/\/(www\.)?vimeo.com\/([\d\?\&\=\-\_\;\%\#]+)/,d=b.match(d);if(d==i||""==d)d=/http(s)?:\/\/(\w+\.)?vimeo.com\/video\/([\d\?\&\=\-\_\;\%\#]+)/,
d=b.match(d);d&&d[3]&&(b="http://player.vimeo.com/video/"+d[3],b=-1!=b.indexOf("?")?b+"&title=0&byline=0&portrait=0":b+"?title=0&byline=0&portrait=0",a.video_autoplay&&(b+="&autoplay=1"),O(b,e,a.video_keep_ratio))}function Aa(e){var b=e.e(),d=/http(s)?:\/\/(www\.)?dailymotion.com\/video\/([\w\?\&\=\-\_\;\%\#]+)/,d=b.match(d);if(d==i||""==d)d=/http(s)?:\/\/(www\.)?dai.ly\/([\w\?\&\=\-\_\;\%\#]+)/,d=b.match(d);if(d==i||""==d)d=/http(s)?:\/\/(www\.)?dailymotion.com\/embed\/video\/([\w\?\&\=\-\_\;\%\#]+)/,
d=b.match(d);d&&d[3]&&(b="http://www.dailymotion.com/embed/video/"+d[3],b=-1!=b.indexOf("?")?b+"&logo=on":b+"?logo=on",a.video_autoplay&&(b+="&autoPlay=1"),O(b,e,a.video_keep_ratio))}function Ba(e){var b=e.e(),d=/http(s)?:\/\/(www\.)?youtube.com\/watch\?v\=([\w\?\&\=\-\_\;\%\#]+)/,d=b.match(d);if(d==i||""==d)d=/http(s)?:\/\/(www\.)?youtu.be\/([\w\?\&\=\-\_\;\%\#]+)/,d=b.match(d);if(d==i||""==d)d=/http(s)?:\/\/(www\.)?youtube.com\/embed\/([\w\?\&\=\-\_\;\%\#]+)/,d=b.match(d);d&&d[3]&&(b="http://www.youtube.com/embed/"+
d[3],b=-1!=b.indexOf("?")?b+"&rel=0":b+"?rel=0",a.video_autoplay&&(b+="&autoplay=1"),O(b,e,a.video_keep_ratio))}function Ca(e){var b=e.e().match(/http:\/\/(www\.)?eyes.kolor.com\/([a-z]{2})\/(v|i)\/(\w+)/);O("http://eyes.kolor.com/"+b[2]+"/i/"+b[4],e,a.video_keep_ratio)}function Da(e){var b=a.social_btn.split("#"),d=74,h=74;"horizontal"===a.social_orientation?d*=b.length:"vertical"===a.social_orientation&&(h*=b.length);var g=document.createElement("div");g.className="displayedItem";g.style.width=
d+"px";g.style.height=h+"px";g.style.margin="auto";g.style.borderWidth=a.item_border_width+"px";g.style.borderColor="#"+a.item_border_color;g.style.borderStyle=a.item_border_style;var j=document.location.href;""!=a.social_url&&(j=ktools.I18N.getInstance().getMessage(a.social_url));"undefined"!==typeof e.getData()&&(j=-1!==j.indexOf("?")?j+("%26"+e.getData()):j+("?"+e.getData()),j=j.replace(/&/gi,"%26"));for(e=0;e<b.length;e++)switch(b[e]){case "facebook":g.m=document.createElement("a");g.m.className=
"socialButton socialFacebook";g.m.onclick=function(a){a.stopPropagation();window.open("http://www.facebook.com/share.php?u="+j,"social","location=0,status=0,scrollbars=1,width=900,height=500")};g.appendChild(g.m);break;case "twitter":g.z=document.createElement("a");g.z.className="socialButton socialTwitter";g.z.onclick=function(a){a.stopPropagation();window.open("http://twitter.com/home?status="+j,"social","location=0,status=0,scrollbars=1,width=900,height=500")};g.appendChild(g.z);break;case "google":g.p=
document.createElement("a");g.p.className="socialButton socialGoogle";g.p.onclick=function(a){a.stopPropagation();window.open("https://plus.google.com/share?url="+j,"social","location=0,status=0,scrollbars=1,width=900,height=500")};g.appendChild(g.p);break;case "linkedin":g.s=document.createElement("a");g.s.className="socialButton socialLinkedin";g.s.onclick=function(a){a.stopPropagation();window.open("http://www.linkedin.com/shareArticle?mini=true&ro=true&url="+j,"social","location=0,status=0,scrollbars=1,width=900,height=500")};
g.appendChild(g.s);break;case "email":g.i=document.createElement("a"),g.i.className="socialButton socialMail",g.i.onclick=function(a){a.stopPropagation()},g.i.href="mailto:?body="+j,g.appendChild(g.i)}a.container_auto_size===f?(b=2*a.item_border_width,X(d+b,h+b,a.animate,function(){E(g)})):(E(g),d=jQuery(c.a.body.b),na(d.height(),h))}function N(e){var b=m.length;if(e>b-1)throw"loadItem : itemIndex out of range";var d=m[e];"image"!==d.f()?J():d.j();var h=e-1;0>h&&(h=b-1);h=m[h];"image"===h.f()&&h.j();
h=e+1;h>b-1&&(h=0);h=m[h];"image"===h.f()&&h.j();xa();if(x===f)setTimeout(function(){N(e)},500);else{switch(d.f()){case "image":jQuery(c.a.body.b).bind("mouseenter",z);jQuery(c.a.body.b).css("cursor","pointer");la(d);break;case "koloreyes":Ca(d);break;case "youtube":Ba(d);break;case "dailymotion":Aa(d);break;case "vimeo":za(d);break;case "iframe":O(d.e().substr(0,d.e().indexOf("iframe")-1),d,r);break;case "social":Da(d)}1>=b&&J();wa(d.I());va(d.F());jQuery(c).find(".counterSpan").html(n+1+" "+a.counter_separator_label+
" "+m.length)}}function X(e,b,d,h){var g=jQuery(c.a),j=jQuery(c.a.body),k=jQuery(c.a.body.left),l=jQuery(c.a.body.b),m=jQuery(c.a.body.right),n=2*a.external_padding+2*a.container_border_width,q=pa(e,b),p=ka(a.position,q.width,q.height),s=(b-32)/2;d===f?(G=f,j.animate({height:b},a.animate_time),k.animate({height:b},a.animate_time),l.animate({width:e,height:b},a.animate_time),m.animate({height:b},a.animate_time),l.find(".kolorBoxBodyCenterLeftArrow").animate({top:s},a.animate_time),l.find(".kolorBoxBodyCenterRightArrow").animate({top:s},
a.animate_time),g.animate({width:q.width-n,height:q.height-n,top:p.top,left:p.left},a.animate_time,function(){G=r;h&&h()})):(j.css("height",b+"px"),k.css("height",b+"px"),l.css("width",e+"px"),l.css("height",b+"px"),m.css("height",b+"px"),g.css("width",q.width-n+"px"),g.css("height",q.height-n+"px"),g.css("top",p.top+"px"),g.css("left",p.left+"px"),h&&h(),D())}function Ea(){if(a.close_displayed!==r){var e=document.createElement("a");e.title="Close";e.className="closeBtn";var b=P(a.close_position),
d=jQuery(b).width();jQuery(b).css("width",d+32+"px");b.appendChild(e);jQuery(e).unbind("click").bind("click",function(){ja.h()})}}function qa(){jQuery(c).find(".fullscreenBtn").removeClass("exitFullscreenBtn").addClass("enterFullscreenBtn");jQuery(c).find(".fullscreenBtn").unbind("click").bind("click",ra);a=jQuery.extend({},sa);da();Z();K();k(a.animate);ea=r}function ra(){jQuery(c).find(".fullscreenBtn").removeClass("enterFullscreenBtn").addClass("exitFullscreenBtn");jQuery(c).find(".fullscreenBtn").unbind("click").bind("click",
qa);sa=jQuery.extend({},a);a.margin_x=0;a.margin_y=0;a.container_width=100;a.container_height=100;a.container_width_unit="percent";a.container_height_unit="percent";a.container_auto_size=r;a.container_border_width=0;a.container_topleft_border_radius=0;a.container_topright_border_radius=0;a.container_bottomleft_border_radius=0;a.container_bottomright_border_radius=0;da();Z();a.draggable_box===f&&!ktools.Device.isTouch()&&jQuery(c.a).draggable("destroy");k(a.animate);ea=f}function Fa(){if(a.fullscreen_displayed!==
r){var e=document.createElement("a");e.title="Fullscreen";e.className="fullscreenBtn enterFullscreenBtn";var b=P(a.fullscreen_position),d=jQuery(b).width();jQuery(b).css("width",d+32+"px");b.appendChild(e);jQuery(e).unbind("click").bind("click",function(){ra()})}}function Ga(){if(!(a.navigation_displayed===r||1>=m.length)){var e=document.createElement("div");e.className="kolorBoxNavigation";e.prev=document.createElement("a");e.prev.title="Previous";e.prev.className="previousBtn";e.appendChild(e.prev);
e.D=document.createElement("span");e.D.className="counterSpan";e.appendChild(e.D);e.next=document.createElement("a");e.next.title="Next";e.next.className="nextBtn";e.appendChild(e.next);var b=P(a.navigation_position),d=jQuery(b).width();jQuery(b).css("width",d+124+"px");b.appendChild(e);jQuery(e.prev).unbind("click").bind("click",function(){H();I("previous")});jQuery(e.next).unbind("click").bind("click",function(){H();I("next")})}}function Ha(){if(!(a.play_displayed===r||1>=m.length)){var e=document.createElement("a");
e.title="Play / Pause";e.className="playPauseBtn playBtn";var b=P(a.play_position),d=jQuery(b).width();jQuery(b).css("width",d+32+"px");b.appendChild(e);jQuery(e).unbind("click").bind("click",function(){aa()})}}function P(a){var b=i;switch(a){case "topleft":b=c.a.d.v;break;case "top":b=c.a.d.top;break;case "topright":b=c.a.d.w;break;case "bottomleft":b=c.a.c.k;break;case "bottom":b=c.a.c.bottom;break;case "bottomright":b=c.a.c.l;break;case "header":b=c.a.header;break;case "left":b=c.a.body.left;break;
case "right":b=c.a.body.right;break;case "footer":b=c.a.n}return b}function L(e,b){var d,c;d=e-2*a.external_padding;d-=2*a.container_border_width;c=b-2*a.external_padding;c-=2*a.container_border_width;Q===f&&(c-=32+a.inner_margin);R===f&&(c-=75+a.inner_margin);S===f&&(d-=241+a.inner_margin);T===f&&(d-=241+a.inner_margin);U===f&&(c-=75+a.inner_margin);V&&(c-=32+a.inner_margin);return{width:d,height:c}}function pa(e,b){var c=parseInt(e)+2*a.external_padding+2*a.container_border_width,h=parseInt(b)+
2*a.external_padding+2*a.container_border_width;S===f&&(c+=241+a.inner_margin);T===f&&(c+=241+a.inner_margin);Q===f&&(h+=32+a.inner_margin);R===f&&(h+=75+a.inner_margin);U===f&&(h+=75+a.inner_margin);V===f&&(h+=32+a.inner_margin);return{width:c,height:h}}function ga(){var c=a.container_width,b=a.container_height;"percent"===a.container_width_unit&&(100<c&&(c=100),c=t*c/100);"percent"===a.container_height_unit&&(100<b&&(b=100),b=u*b/100);ba=c;ca=b}function Z(){q=jQuery("#"+v).width();s=jQuery("#"+
v).height();t=q-2*a.margin_x;u=s-2*a.margin_y;50>t&&(t=q);50>u&&(u=s)}var a={position:KolorBox.g.A,margin_x:50,margin_y:50,inner_margin:10,external_padding:15,draggable_box:f,draggable_image:r,show_effect:"fade",hide_effect:"fade",animate:f,animate_time:400,slideshow:5E3,slideshow_autoplay:r,overlay_displayed:f,overlay_color:"000000",overlay_alpha:0.8,container_color:"000000",container_alpha:0.8,container_topleft_border_radius:20,container_topright_border_radius:20,container_bottomleft_border_radius:20,
container_bottomright_border_radius:20,container_border_width:0,container_border_color:"ffffff",container_border_style:"solid",container_auto_size:f,container_width:100,container_height:100,container_width_unit:"percent",container_height_unit:"percent",item_border_width:0,item_border_color:"ffffff",item_border_style:"solid",title_displayed:r,title_position:"left",title_color:"f8f8f8",title_font:KolorBox.B.C.value,title_size:"14",title_weight:"bold",title_decoration:"normal",caption_displayed:r,caption_position:"left",
caption_color:"eeeeee",caption_font:KolorBox.B.C.value,caption_size:"14",caption_weight:"normal",caption_decoration:"normal",iframe_scrolling:"auto",iframe_default_width:560,iframe_default_height:315,force_ios_scrolling:f,video_keep_ratio:f,video_autoplay:r,social_btn:"facebook#twitter#google#linkedin#email",social_orientation:"horizontal",social_url:"",thumbnails_displayed:r,thumbnails_position:"header",thumbnails_border_width:0,thumbnails_border_color:"ffffff",thumbnails_border_style:"solid",play_displayed:r,
play_position:"bottomleft",navigation_displayed:r,navigation_position:"bottom",counter_separator_label:"/",fullscreen_displayed:r,fullscreen_position:"topleft",close_displayed:r,close_position:"topright",open_callback:r,close_callback:r,zorder:0},q=0,s=0,t=0,u=0,ba=0,ca=0,Q=r,R=r,S=r,T=r,U=r,V=r,A=[],c=i,m=[],sa=i,n=0,M=i,ta=r,F=r,fa=r,ea=r,ua=r,G=r,x=r,ja=this,ma=i;this.setKolorBoxOptions=this.ca=function(c){jQuery.extend(a,c)};this.getKolorBoxOptions=this.Z=function(){return a};this.addKolorBoxItem=
this.X=function(a){m.push(a)};this.getKolorBoxIndex=this.Y=function(){return n};this.setReady=this.ea=function(a){ta=a};this.isReady=this.isReady=function(){return ta};this.isOpen=this.aa=function(){return F};this.openKolorBox=this.t=function(e){if(fa===r){if(a.thumbnails_displayed===f&&"header"===a.thumbnails_position||a.title_displayed===f&&"header"===a.title_position||a.caption_displayed===f&&"header"===a.caption_position)R=f;if(a.thumbnails_displayed===f&&"left"===a.thumbnails_position||a.title_displayed===
f&&"left"===a.title_position||a.caption_displayed===f&&"left"===a.caption_position)S=f;if(a.thumbnails_displayed===f&&"right"===a.thumbnails_position||a.title_displayed===f&&"right"===a.title_position||a.caption_displayed===f&&"right"===a.caption_position)T=f;if(a.thumbnails_displayed===f&&"footer"===a.thumbnails_position||a.title_displayed===f&&"footer"===a.title_position||a.caption_displayed===f&&"footer"===a.caption_position)U=f;var b=m.length;if(a.navigation_displayed===f&&1<b===f&&"top"===a.navigation_position.substring(0,
3)||a.close_displayed===f&&"top"===a.close_position.substring(0,3)||a.fullscreen_displayed===f&&"top"===a.fullscreen_position.substring(0,3)||a.play_displayed===f&&1<b===f&&"top"===a.play_position.substring(0,3)||a.title_displayed===f&&"top"===a.title_position.substring(0,3)||a.caption_displayed===f&&"top"===a.caption_position.substring(0,3))Q=f;if(a.navigation_displayed===f&&1<b===f&&"bottom"===a.navigation_position.substring(0,6)||a.close_displayed===f&&"bottom"===a.close_position.substring(0,6)||
a.fullscreen_displayed===f&&"bottom"===a.fullscreen_position.substring(0,6)||a.play_displayed===f&&1<b===f&&"bottom"===a.play_position.substring(0,6)||a.title_displayed===f&&"bottom"===a.title_position.substring(0,6)||a.caption_displayed===f&&"bottom"===a.caption_position.substring(0,6))V=f;for(var d="play,navigation,fullscreen,close,title,caption".split(","),h=0,g=d.length;h<g;h++)if(a[d[h]+"_displayed"]===f&&!(("play"===d[h]||"navigation"===d[h])&&1>=b===f))A[a[d[h]+"_position"]]=f;c=document.createElement("div");
c.id=W;c.className="kolorBoxContainer";c.style.zIndex=a.zorder;c.a=document.createElement("div");c.a.className="kolorBox";c.appendChild(c.a);Q===f&&(c.a.d=document.createElement("div"),c.a.d.className="kolorBoxTopUIBar",c.a.appendChild(c.a.d));R===f&&(c.a.header=document.createElement("div"),c.a.header.className="kolorBoxHeader",c.a.appendChild(c.a.header));c.a.body=document.createElement("div");c.a.body.className="kolorBoxBody";c.a.appendChild(c.a.body);S===f&&(c.a.body.left=document.createElement("div"),
c.a.body.left.className="kolorBoxBodyLeft",c.a.body.appendChild(c.a.body.left));c.a.body.b=document.createElement("div");c.a.body.b.className="kolorBoxBodyCenter";c.a.body.appendChild(c.a.body.b);ktools.Device.isTouch()&&(c.a.body.b.style.overflow="scroll",c.a.body.b.style["-webkit-overflow-scrolling"]="touch");c.a.body.b.r=document.createElement("p");c.a.body.b.r.className="kolorBoxBodyCenterLeftArrow";c.a.body.b.appendChild(c.a.body.b.r);c.a.body.b.u=document.createElement("p");c.a.body.b.u.className=
"kolorBoxBodyCenterRightArrow";c.a.body.b.appendChild(c.a.body.b.u);T===f&&(c.a.body.right=document.createElement("div"),c.a.body.right.className="kolorBoxBodyRight",c.a.body.appendChild(c.a.body.right));U===f&&(c.a.n=document.createElement("div"),c.a.n.className="kolorBoxFooter",c.a.appendChild(c.a.n));V===f&&(c.a.c=document.createElement("div"),c.a.c.className="kolorBoxBottomUIBar",c.a.appendChild(c.a.c));A.topleft===f&&(c.a.d.v=document.createElement("div"),c.a.d.v.className="leftUIPlaceHolder",
c.a.d.appendChild(c.a.d.v));A.top===f&&(c.a.d.top=document.createElement("div"),c.a.d.top.className="centerUIPlaceHolder",c.a.d.appendChild(c.a.d.top));A.topright===f&&(c.a.d.w=document.createElement("div"),c.a.d.w.className="rightUIPlaceHolder",c.a.d.appendChild(c.a.d.w));A.bottomleft===f&&(c.a.c.k=document.createElement("div"),c.a.c.k.className="leftUIPlaceHolder",c.a.c.appendChild(c.a.c.k));A.bottom===f&&(c.a.c.bottom=document.createElement("div"),c.a.c.bottom.className="centerUIPlaceHolder",c.a.c.appendChild(c.a.c.bottom));
A.bottomright===f&&(c.a.c.l=document.createElement("div"),c.a.c.l.className="rightUIPlaceHolder",c.a.c.appendChild(c.a.c.l));a.overlay_displayed===f&&(c.q=document.createElement("div"),c.q.className="kolorBoxOverlay",c.appendChild(c.q));jQuery("#"+v).prepend(c);Ha();Ga();Fa();Ea();if(a.title_displayed!==r){b=document.createElement("p");b.className="kolorBoxTitle";d=i;"top"===a.title_position.substring(0,3)?d=jQuery("div.kolorBoxTopUIBar"):"bottom"===a.title_position.substring(0,6)&&(d=jQuery("div.kolorBoxBottomUIBar"));
if("bottomright"===a.title_position||"topright"===a.title_position)b.style.textAlign="right";else if("bottomleft"===a.title_position||"topleft"===a.title_position)b.style.textAlign="left";d.append(b)}if(a.caption_displayed!==r){b=document.createElement("p");b.className="kolorBoxCaption";d=P(a.caption_position);if("top"===a.caption_position.substring(0,3)||"bottom"===a.caption_position.substring(0,6))h=jQuery(d).width(),jQuery(d).css("width",h+240+"px");"bottomright"===a.caption_position||"topright"===
a.caption_position?(jQuery(b).css("float","left"),jQuery(d).prepend(b)):jQuery(d).append(b)}Z();ga();ia();da();K();ua||(jQuery(window).bind("resize",ha),jQuery(window).bind("orientationchange",ha),ua=f);fa=f}b=i;d=n||0;"undefined"!==typeof e&&(b=parseInt(e),b>m.length-1&&(b=m.length-1),isNaN(b)&&(b=d));b!=i&&b!=n&&(n=b);var e=w(t,u,ba,ca),d=L(e.width,e.height),b=d.width,d=d.height,h=jQuery(c.a),g=pa(b,d),j=2*a.external_padding+2*a.container_border_width;h.css("padding",a.external_padding+"px");h.find(".kolorBoxBodyCenter").css("width",
b+"px");h.find(".kolorBoxBodyCenter").css("height",d+"px");S===f&&(h.find(".kolorBoxBodyLeft").css("height",d+"px"),h.find(".kolorBoxBodyLeft").css("margin","0 "+a.inner_margin+"px 0 0"));T===f&&(h.find(".kolorBoxBodyRight").css("height",d+"px"),h.find(".kolorBoxBodyRight").css("margin","0 0 0 "+a.inner_margin+"px"));Q===f&&h.find(".kolorBoxTopUIBar").css("margin","0 0 "+a.inner_margin+"px 0 ");R===f&&h.find(".kolorBoxHeader").css("margin","0 0 "+a.inner_margin+"px 0 ");U===f&&h.find(".kolorBoxFooter").css("margin",
a.inner_margin+"px 0 0 0");V===f&&h.find(".kolorBoxBottomUIBar").css("margin",a.inner_margin+"px 0 0 0");h.find(".kolorBoxBody").css("height",d+"px");h.css("width",g.width-j+"px");h.css("height",g.height-j+"px");b=ka(a.position,e.width,e.height);e=b.top;b=b.left;d=jQuery(c.a);d.css("top",e+"px");d.css("left",b+"px");D();N(n);a.slideshow_autoplay&&aa();F=f};this.closeKolorBox=this.h=function(){F&&(ea===f&&qa(),H(),jQuery(c).remove(),fa=F=r,a.close_callback&&ktools.Code.eval(a.close_callback))};this.toggleKolorBox=
this.ga=function(a){F?this.h():this.t(a)};this.loadSingleArrayItem=this.ba=function(a){var b=new KolorBoxObject;b.O(a[0]);b.N(a[1]);b.J(a[2]);b.setData(a[3]);b.init();m=[];m.push(b);n=0;F?N(0):this.t(0)};this.hideKolorBox=this.$=function(){jQuery(c).hide()};this.unhideKolorBox=this.Ta};KolorBox.g={A:"center",V:"topleft",U:"top",W:"topright",T:"right",R:"bottomright",P:"bottom",Q:"bottomleft",S:"left"};KolorBox.za={Ha:"normal",ma:"bold"};
KolorBox.B={ha:{name:"Arial",value:"Arial,'DejaVu Sans','Liberation Sans',Freesans,sans-serif"},ja:{name:"Arial Narrow",value:"'Arial Narrow','Nimbus Sans L',sans-serif"},ia:{name:"Arial Black",value:"'Arial Black',Gadget,sans-serif"},na:{name:"Bookman",value:"'Bookman Old Style',Bookman,'URW Bookman L','Palatino Linotype',serif"},pa:{name:"Century Gothic",value:"'Century Gothic',futura,'URW Gothic L',Verdana,sans-serif"},ra:{name:"Comic Sans MS",value:"'Comic Sans MS',cursive"},sa:{name:"Console",
value:"Consolas,'Lucida Console','DejaVu Sans Mono',monospace"},ta:{name:"Courier",value:"'Courier New',Courier,'Nimbus Mono L',monospace"},Aa:{name:"Georgia",value:"Constantia,Georgia,'Nimbus Roman No9 L',serif"},Ba:{name:"Helvetica",value:"Helvetica,Arial,'DejaVu Sans','Liberation Sans',Freesans,sans-serif"},Ea:{name:"Impact",value:"Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif"},Fa:{name:"Lucida Sans",value:"'Lucida Sans Unicode','Lucida Grande','Lucida Sans','DejaVu Sans Condensed',sans-serif"},
Ia:{name:"Palatino",value:"Cambria,'Palatino Linotype','Book Antiqua','URW Palladio L',serif"},Pa:{name:"Thaoma",value:"'Tahoma',sans-serif"},Qa:{name:"Times New Roman",value:"Cambria,'Times New Roman','Nimbus Roman No9 L','Freeserif',Times,serif"},Ra:{name:"Trebuchet",value:"'Trebuchet MS',sans-serif"},C:{name:"Verdana",value:"Verdana, sans-serif"}};
KolorBox.va={la:"blind",oa:"bounce",qa:"clip",ua:"drop",wa:"explode",xa:"fade",ya:"fold",Ca:"highlight",Ja:"puff",Ka:"pulsate",La:"scale",Ma:"shake",Na:"size",Oa:"slide"};KolorBox.Da={ka:"auto",Sa:"yes",Ga:"no"};
KolorBoxObject=function(){var W="",v="",B="",l="",y="",z="",J=i,K=r,D={width:0,height:0},C=this;this.init=function(){y=l.match(/youtube\.com\/watch/i)||l.match(/youtu\.be/i)||l.match(/youtube\.com\/embed/i)?"youtube":l.match(/vimeo\.com/i)?"vimeo":l.match(/dailymotion\.com/i)||l.match(/dai\.ly/i)?"dailymotion":l.match(/eyes\.kolor\.com/i)?"koloreyes":"social"===l?"social":"embedcode"===l?"embedcode":"externalData"===l?"externalData":l.match(/\b.mov\b/i)?"quicktime":l.match(/\b.swf\b/i)?"flash":l.match(/\biframe=true\b/i)?
"iframe":l.match(/\bajax=true\b/i)?"ajax":l.match(/\bcustom=true\b/i)?"custom":"#"===l.substr(0,1)?"inline":"image";return this};this.setName=this.da=function(k){W=k};this.setTitle=this.N=function(k){v=k};this.setCaption=this.J=function(k){B=k};this.setValue=this.O=function(k){l=k};this.setData=this.setData=function(k){z=k};this.setType=this.fa=function(k){y=k};this.setImageObject=this.L=function(k){J=k};this.setImageLoaded=this.K=function(k){K=k};this.setImageOriginalSize=this.M=function(k,l){D=
{width:k,height:l}};this.getName=this.getName=function(){return W};this.getTitle=this.I=function(){return v};this.getCaption=this.F=function(){return B};this.getValue=this.e=function(){return l};this.getData=this.getData=function(){return z};this.getType=this.f=function(){return y};this.getImageObject=this.H=function(){return J};this.getImageLoaded=this.G=function(){return K};this.getImageOriginalSize=this.o=function(){return D};this.preloadImage=this.j=function(){var k=new Image;k.onload=function(l){ktools.DOM.preventDefault(l);
C.K(f);C.M(k.width,k.height)};k.src=l;C.L(k)}};})();