| 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/awebpaca/360/driving-center/indexdata/graphics/KolorBox/ |
Upload File : |
(function(){var f=!0,i=null,q=!1;
KolorBox=function(H,v){function C(a){ktools.DOM.preventDefault(a);if(!(I===f||x===f)){J();var b=ktools.DOM.getOffset(a.currentTarget),a=a.clientX-b.x,b=jQuery(d.a.body.b).width();a<=b/2?K("previous"):a>b/2&&K("next")}}function l(a){ktools.DOM.preventDefault(a);if(I!==f){var b=jQuery(d.a.body.b),c=ktools.DOM.getOffset(a.currentTarget),a=a.clientX-c.x,c=b.width();b.find(".kolorBoxBodyCenterLeftArrow").hide();b.find(".kolorBoxBodyCenterRightArrow").hide();a<=c/2?b.find(".kolorBoxBodyCenterLeftArrow").show():a>
c/2&&b.find(".kolorBoxBodyCenterRightArrow").show()}}function y(a){ktools.DOM.preventDefault(a);jQuery(d.a.body.b).unbind("mouseleave",y);jQuery(d.a.body.b).unbind("click",C);jQuery(d.a.body.b).unbind("mousemove",l);jQuery(d.a.body.b).bind("mouseenter",z);D()}function z(a){ktools.DOM.preventDefault(a);jQuery(d.a.body.b).unbind("mouseenter",z);jQuery(d.a.body.b).bind("mouseleave",y);jQuery(d.a.body.b).bind("click",C);jQuery(d.a.body.b).bind("mousemove",l)}function L(){D();jQuery(d.a.body.b).unbind("mouseenter",
z);jQuery(d.a.body.b).unbind("mouseleave",y);jQuery(d.a.body.b).unbind("click",C);jQuery(d.a.body.b).unbind("mousemove",l);jQuery(d.a.body.b).css("cursor","default")}function M(){a.draggable_box===f&&!ktools.Device.isTouch()&&jQuery(d.a).draggable({addClasses:q,cancel:".kolorBoxBodyCenter"})}function E(){var a=jQuery(d.a.body.b),b=(a.height()-32)/2;a.find(".kolorBoxBodyCenterLeftArrow").css("top",b+"px");a.find(".kolorBoxBodyCenterRightArrow").css("top",b+"px")}function D(){jQuery(d.a.body.b.r).hide();
jQuery(d.a.body.b.u).hide()}function j(e){var b=2*a.item_border_width,c=o[m],h,g={width:0,height:0};switch(c.f()){case "image":g=c.o();break;case "social":var g=a.social_btn.split("#"),k=h=74;"horizontal"===a.social_orientation?h*=g.length:"vertical"===a.social_orientation&&(k*=g.length);g={width:h,height:k};break;default:h=parseFloat(ktools.Url.getParam(c.d(),"width"))?ktools.Url.getParam(c.d(),"width"):a.iframe_default_width,k=parseFloat(ktools.Url.getParam(c.d(),"height"))?ktools.Url.getParam(c.d(),
"height"):a.iframe_default_height,g={width:h,height:k}}h=g;var r=k=f,g=f;if(a.container_auto_size)"iframe"===c.f()?k=q:r=q,g=q,c=N(t,u),h=w(c.width-b,c.height-b,h.width,h.height,k,r),c={width:h.width+b,height:h.height+b};else{"iframe"===c.f()&&(k=q);if("image"===c.f()||"social"===c.f())r=q;ga();c=w(t,u,ba,ca);c=N(c.width,c.height);h=w(c.width-b,c.height-b,h.width,h.height,k,r)}X(c.width,c.height,e);Y(h.width,h.height,g,c.height,e);jQuery(d.a).find(".kolorBoxBodyCenter").removeClass("loading")}function ha(){if(jQuery("#"+
v).width()!==p||jQuery("#"+v).height()!==s)Z(),ia(),j(q)}function ia(){if(a.overlay_displayed===f){var e=jQuery(d.q);e.css("opacity",a.overlay_alpha);e.css("background","#"+a.overlay_color);e.css("width",p+"px");e.css("height",s+"px");e.unbind("click").bind("click",function(){ja.h()})}}function da(){var e=jQuery(d.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,c,d,g,k){var r={},j=1;if(g===q)return{width:Math.min(a,c),height:Math.min(b,d)};if(!(c>a||d>b)===q||k===f)j=Math.min(a/c,b/d);r.width=parseInt(c*j);r.height=parseInt(d*j);return r}function ka(e,b,c){var d=
0,g=0;switch(e){case KolorBox.g.V:d=a.margin_y;g=a.margin_x;break;case KolorBox.g.U:d=a.margin_y;g=(p-b)/2;break;case KolorBox.g.W:d=a.margin_y;g=p-b-a.margin_x;break;case KolorBox.g.T:d=(s-c)/2;g=p-b-a.margin_x;break;case KolorBox.g.R:d=s-c-a.margin_y;g=p-b-a.margin_x;break;case KolorBox.g.P:d=s-c-a.margin_y;g=(p-b)/2;break;case KolorBox.g.Q:d=s-c-a.margin_y;g=a.margin_x;break;case KolorBox.g.S:d=(s-c)/2;g=a.margin_x;break;case KolorBox.g.A:d=(s-c)/2,g=(p-b)/2}return{top:d,left:g}}function va(a){a=
ktools.String.decode(a);jQuery(d).find(".kolorBoxCaption").html(a)}function wa(a){a=ktools.String.decode(a);jQuery(d).find(".kolorBoxTitle").html(a)}function J(){O&&(jQuery(d).find(".playPauseBtn").removeClass("pauseBtn").addClass("playBtn"),jQuery(d).find(".playPauseBtn").unbind("click").bind("click",aa),clearInterval(O),O=i)}function aa(){O?K("next"):(jQuery(d).find(".playPauseBtn").removeClass("playBtn").addClass("pauseBtn"),jQuery(d).find(".playPauseBtn").unbind("click").bind("click",J),O=setInterval(aa,
a.slideshow))}function K(a){I===f||x===f||(jQuery(d.a).find(".kolorBoxBodyCenter").addClass("loading"),"next"===a?(m=m<o.length-1?m+1:0,P(m)):"previous"===a&&(m=0===m?o.length-1:m-1,P(m)))}function xa(){var e=jQuery(d.a.body.b).find(".displayedItem");0<e.length&&(a.hide_effect!==q&&x===q?(x=f,e.hide(a.hide_effect,function(){x=q;e.remove()})):a.hide_effect===q&&e.remove())}function F(e,b,c){d.a.body.b.appendChild(e);a.show_effect!==q&&(jQuery(e).hide(),jQuery(e).show(a.show_effect));b?ktools.Device.isTouch()&&
(jQuery(d.a).find(".kolorBoxBodyCenter").find(".displayedItem").attr("src",c),jQuery(d.a).find(".kolorBoxBodyCenter").find(".displayedItem").load(function(){jQuery(d.a).find(".kolorBoxBodyCenter").find(".displayedItem").css("visibility","visible");jQuery(d.a).find(".kolorBoxBodyCenter").find(".displayedItem").parent().removeClass("loading")})):jQuery(d.a).find(".kolorBoxBodyCenter").removeClass("loading")}function la(a){a.G()===f&&x===q?ya(a):(clearTimeout(ma),ma=setTimeout(function(){la(a)},500))}
function na(e,b){jQuery(d.a.body.b).find(".displayedItem").css("margin-top",(e-b-2*a.item_border_width)/2+"px")}function oa(e,b,c,d,g,k,r){if(ktools.Device.isTouch()&&b){var j,b=a.iframe_devices_width?a.iframe_devices_width:a.iframe_default_width;j=a.iframe_devices_height?a.iframe_devices_height:a.iframe_default_height;if(a.force_ios_scrolling){e.css("overflow","scroll !important");e.css("-webkit-overflow-scrolling","touch !important");g?0==k?e.animate({width:b+"px",height:j+"px",marginTop:""},a.animate_time,
function(){r&&r()}):e.animate({width:b+"px",height:j+"px",marginTop:k},a.animate_time,function(){r&&r()}):(e.css("width",b+"px"),e.css("height",j+"px"),0==k?e.css("marginTop",""):e.css("marginTop",k+"px"));e.css("max-width",b+"px");e.css("max-height",j+"px");e.css("-webkit-transform","translate3d(0, 0, 0)");return}}g?0==k?e.animate({width:c,height:d,marginTop:""},a.animate_time,function(){r&&r()}):e.animate({width:c,height:d,marginTop:k},a.animate_time,function(){r&&r()}):(e.css("width",c+"px"),e.css("height",
d+"px"),0==k?e.css("marginTop",""):e.css("marginTop",k+"px"))}function Y(e,b,c,h,g){var k=jQuery(d.a.body.b).find(".displayedItem"),j=0;c===f&&(j=(h-b-2*a.item_border_width)/2);oa(k,"iframe"===o[m].f(),e,b,g,j,void 0)}function ya(e){var b=jQuery(d.a.body.b),c=e.H(),e=e.o(),h=2*a.item_border_width;c.className="displayedItem";jQuery(c).css("border-width",a.item_border_width+"px");jQuery(c).css("border-color","#"+a.item_border_color);jQuery(c).css("border-style",a.item_border_style);a.draggable_image===
f&&jQuery(c).draggable({addClasses:q,revert:f});if(a.container_auto_size===f){var b=N(t,u),g=w(b.width-h,b.height-h,e.width,e.height);X(g.width+h,g.height+h,a.animate,function(){F(c,q);Y(g.width,g.height,q)})}else g=w(b.width()-h,b.height()-h,e.width,e.height),F(c,q),Y(g.width,g.height,f,b.height()),E()}function A(e,b,c){var h=jQuery(d.a.body.b),g=2*a.item_border_width,k=parseFloat(ktools.Url.getParam(b.d(),"width"))?ktools.Url.getParam(b.d(),"width"):a.iframe_default_width,j=parseFloat(ktools.Url.getParam(b.d(),
"height"))?ktools.Url.getParam(b.d(),"height"):a.iframe_default_height,l=N(t,u),o=f;"iframe"===b.f()&&(o=q);var m=w(l.width-g,l.height-g,k,j,o),b=m.width+g,p=m.height+g,n=document.createElement("iframe");n.id="kolorBoxID_"+H;n.className="displayedItem";ktools.Device.isTouch()||n.setAttribute("src",e);n.setAttribute("allowfullscreen","");n.setAttribute("mozallowfullscreen","");n.setAttribute("webkitallowfullscreen","");n.setAttribute("frameborder","0");n.setAttribute("allowtransparency","true");n.setAttribute("style",
"visibility: hidden;");n.setAttribute("scrolling",a.iframe_scrolling);var s;ktools.Device.isTouch()||(s=window.setInterval(function(){window.frames[n.id]&&(window.clearInterval(s),jQuery(n).css("visibility","visible"),jQuery(n).parent().removeClass("loading"))},100));jQuery(n).css("width",m.width+"px");jQuery(n).css("height",m.height+"px");oa(jQuery(n),f,m.width,m.height,q,0);jQuery(n).css("border-width",a.item_border_width+"px");jQuery(n).css("border-color","#"+a.item_border_color);jQuery(n).css("border-style",
a.item_border_style);a.container_auto_size===f?X(b,p,a.animate,function(){F(n,f,e);na(p,m.height)}):(c=w(h.width()-g,h.height()-g,k,j,c,f),F(n,f,e),Y(c.width,c.height,f,h.height()))}function za(e){var b=e.d(),c=/(http(s)?:)?\/\/(www\.)?vimeo.com\/([\d\?\&\=\-\_\;\%\#]+)/,c=b.match(c);if(c==i||""==c)c=/(http(s)?:)?\/\/(\w+\.)?vimeo.com\/video\/([\d\?\&\=\-\_\;\%\#]+)/,c=b.match(c);c&&c[4]&&(b="//player.vimeo.com/video/"+c[4],b=-1!=b.indexOf("?")?b+"&title=0&byline=0&portrait=0":b+"?title=0&byline=0&portrait=0",
a.video_autoplay&&(b+="&autoplay=1"),A(b,e,a.video_keep_ratio))}function Aa(e){var b=e.d(),c=/(http(s)?:)?\/\/(www\.)?dailymotion.com\/video\/([\w\?\&\=\-\_\;\%\#]+)/,c=b.match(c);if(c==i||""==c)c=/(http(s)?:)?\/\/(www\.)?dai.ly\/([\w\?\&\=\-\_\;\%\#]+)/,c=b.match(c);if(c==i||""==c)c=/(http(s)?:)?\/\/(www\.)?dailymotion.com\/embed\/video\/([\w\?\&\=\-\_\;\%\#]+)/,c=b.match(c);c&&c[4]&&(b="http://www.dailymotion.com/embed/video/"+c[4],b=-1!=b.indexOf("?")?b+"&logo=on":b+"?logo=on",a.video_autoplay&&
(b+="&autoPlay=1"),A(b,e,a.video_keep_ratio))}function Ba(e){var b=e.d(),c=/(http(s)?:)?\/\/(\w+\.)?viddler.com\/player\/([\w\?\&\=\-\_\;\%\#]+)/,c=b.match(c);if(c==i||""==c)c=/(http(s)?:)?\/\/(\w+\.)?viddler.com\/embed\/([\w\?\&\=\-\_\;\%\#]+)/,c=b.match(c);c&&c[4]&&A("//www.viddler.com/embed/"+c[4],e,a.video_keep_ratio)}function Ca(e){var b=e.d(),c=/(http(s)?:)?\/\/(\w+\.)?wistia.com\/medias\/([\w\?\&\=\-\_\;\%\#]+)/,c=b.match(c);if(c==i||""==c)c=/(http(s)?:)?\/\/(\w+\.)?wistia.net\/embed\/iframe\/([\w\?\&\=\-\_\;\%\#]+)/,
c=b.match(c);c&&c[4]&&A("//fast.wistia.net/embed/iframe/"+c[4],e,a.video_keep_ratio)}function Da(e){var b=e.d(),c=/(http(s)?:)?\/\/(www\.)?youtube.com\/watch\?v\=([\w\?\&\=\-\_\;\%\#]+)/,c=b.match(c);if(c==i||""==c)c=/(http(s)?:)?\/\/(www\.)?youtu.be\/([\w\?\&\=\-\_\;\%\#]+)/,c=b.match(c);if(c==i||""==c)c=/(http(s)?:)?\/\/(www\.)?youtube.com\/embed\/([\w\?\&\=\-\_\;\%\#]+)/,c=b.match(c);c&&c[4]&&(b="//www.youtube.com/embed/"+c[4],b=-1!=b.indexOf("?")?b+"&rel=0":b+"?rel=0",a.video_autoplay&&(b+=
"&autoplay=1"),A(b,e,a.video_keep_ratio))}function Ea(e){var b=e.d().match(/(http:)?\/\/(www\.)?eyes.kolor.com\/([a-z]{2})\/(v|i)\/(\w+)/);A("http://eyes.kolor.com/"+b[3]+"/i/"+b[5],e,a.video_keep_ratio)}function Fa(e){var b=a.social_btn.split("#"),c=74,h=74;"horizontal"===a.social_orientation?c*=b.length:"vertical"===a.social_orientation&&(h*=b.length);var g=document.createElement("div");g.className="displayedItem";g.style.width=c+"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 k=document.location.href;""!=a.social_url&&(k=ktools.I18N.getInstance().getMessage(a.social_url));"undefined"!==typeof e.getData()&&(k=-1!==k.indexOf("?")?k+("%26"+e.getData()):k+("?"+e.getData()),k=k.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){ktools.DOM.stopEventPropagation(a);
window.open("http://www.facebook.com/share.php?u="+k,"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){ktools.DOM.stopEventPropagation(a);window.open("http://twitter.com/home?status="+k,"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){ktools.DOM.stopEventPropagation(a);window.open("https://plus.google.com/share?url="+k,"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){ktools.DOM.stopEventPropagation(a);window.open("http://www.linkedin.com/shareArticle?mini=true&ro=true&url="+k,"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){ktools.DOM.stopEventPropagation(a)},g.i.href="mailto:?body="+k,g.appendChild(g.i)}a.container_auto_size===f?(b=2*a.item_border_width,X(c+b,h+b,a.animate,function(){F(g,q)})):(F(g,q),c=jQuery(d.a.body.b),na(c.height(),h))}function P(e){var b=o.length;if(e>b-1)throw"loadItem : itemIndex out of range";var c=o[e];"image"!==c.f()?L():c.j();var h=e-1;0>h&&(h=b-1);h=o[h];"image"===h.f()&&h.j();
h=e+1;h>b-1&&(h=0);h=o[h];"image"===h.f()&&h.j();xa();if(x===f)setTimeout(function(){P(e)},500);else{switch(c.f()){case "image":jQuery(d.a.body.b).bind("mouseenter",z);jQuery(d.a.body.b).css("cursor","pointer");la(c);break;case "koloreyes":Ea(c);break;case "youtube":Da(c);break;case "wistia":Ca(c);break;case "viddler":Ba(c);break;case "dailymotion":Aa(c);break;case "vimeo":za(c);break;case "iframe":A(c.d().substr(0,c.d().indexOf("iframe")-1),c,q);break;case "social":Fa(c)}1>=b&&L();wa(c.I());va(c.F());
jQuery(d).find(".counterSpan").html(m+1+" "+a.counter_separator_label+" "+o.length)}}function X(e,b,c,h){var g=jQuery(d.a),k=jQuery(d.a.body),j=jQuery(d.a.body.left),l=jQuery(d.a.body.b),m=jQuery(d.a.body.right),o=2*a.external_padding+2*a.container_border_width,p=pa(e,b),n=ka(a.position,p.width,p.height),s=(b-32)/2;c===f?(I=f,k.animate({height:b},a.animate_time),j.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:p.width-o,height:p.height-o,top:n.top,left:n.left},a.animate_time,function(){I=q;h&&h()})):(k.css("height",b+"px"),j.css("height",b+"px"),l.css("width",e+"px"),l.css("height",b+"px"),m.css("height",b+"px"),g.css("width",p.width-o+"px"),g.css("height",p.height-o+"px"),g.css("top",n.top+"px"),g.css("left",n.left+"px"),h&&h(),E())}function Ga(){if(a.close_displayed!==q){var e=document.createElement("a");
e.title="Close";e.className="closeBtn";var b=Q(a.close_position),c=jQuery(b).width();jQuery(b).css("width",c+32+"px");b.appendChild(e);jQuery(e).unbind("click").bind("click",function(){ja.h()})}}function qa(){jQuery(d).find(".fullscreenBtn").removeClass("exitFullscreenBtn").addClass("enterFullscreenBtn");jQuery(d).find(".fullscreenBtn").unbind("click").bind("click",ra);a=jQuery.extend({},sa);da();Z();M();j(a.animate);ea=q}function ra(){jQuery(d).find(".fullscreenBtn").removeClass("enterFullscreenBtn").addClass("exitFullscreenBtn");
jQuery(d).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=q;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(d.a).draggable("destroy");
j(a.animate);ea=f}function Ha(){if(a.fullscreen_displayed!==q){var e=document.createElement("a");e.title="Fullscreen";e.className="fullscreenBtn enterFullscreenBtn";var b=Q(a.fullscreen_position),c=jQuery(b).width();jQuery(b).css("width",c+32+"px");b.appendChild(e);jQuery(e).unbind("click").bind("click",function(){ra()})}}function Ia(){if(!(a.navigation_displayed===q||1>=o.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=Q(a.navigation_position),c=jQuery(b).width();jQuery(b).css("width",c+124+"px");b.appendChild(e);jQuery(e.prev).unbind("click").bind("click",function(){J();K("previous")});jQuery(e.next).unbind("click").bind("click",function(){J();K("next")})}}function Ja(){if(!(a.play_displayed===
q||1>=o.length)){var e=document.createElement("a");e.title="Play / Pause";e.className="playPauseBtn playBtn";var b=Q(a.play_position),c=jQuery(b).width();jQuery(b).css("width",c+32+"px");b.appendChild(e);jQuery(e).unbind("click").bind("click",function(){aa()})}}function Q(a){var b=i;switch(a){case "topleft":b=d.a.e.v;break;case "top":b=d.a.e.top;break;case "topright":b=d.a.e.w;break;case "bottomleft":b=d.a.c.k;break;case "bottom":b=d.a.c.bottom;break;case "bottomright":b=d.a.c.l;break;case "header":b=
d.a.header;break;case "left":b=d.a.body.left;break;case "right":b=d.a.body.right;break;case "footer":b=d.a.n}return b}function N(e,b){var c,d;c=e-2*a.external_padding;c-=2*a.container_border_width;d=b-2*a.external_padding;d-=2*a.container_border_width;R===f&&(d-=32+a.inner_margin);S===f&&(d-=75+a.inner_margin);T===f&&(c-=241+a.inner_margin);U===f&&(c-=241+a.inner_margin);V===f&&(d-=75+a.inner_margin);W&&(d-=32+a.inner_margin);return{width:c,height:d}}function pa(e,b){var c=parseInt(e)+2*a.external_padding+
2*a.container_border_width,d=parseInt(b)+2*a.external_padding+2*a.container_border_width;T===f&&(c+=241+a.inner_margin);U===f&&(c+=241+a.inner_margin);R===f&&(d+=32+a.inner_margin);S===f&&(d+=75+a.inner_margin);V===f&&(d+=75+a.inner_margin);W===f&&(d+=32+a.inner_margin);return{width:c,height:d}}function ga(){var d=a.container_width,b=a.container_height;"percent"===a.container_width_unit&&(100<d&&(d=100),d=t*d/100);"percent"===a.container_height_unit&&(100<b&&(b=100),b=u*b/100);ba=d;ca=b}function Z(){p=
jQuery("#"+v).width();s=jQuery("#"+v).height();t=p-2*a.margin_x;u=s-2*a.margin_y;50>t&&(t=p);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:q,show_effect:"fade",hide_effect:"fade",animate:f,animate_time:400,slideshow:5E3,slideshow_autoplay:q,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:q,title_position:"top",title_color:"666666",title_font:KolorBox.B.C.value,title_size:"14",title_weight:"bold",title_decoration:"normal",
caption_displayed:q,caption_position:"left",caption_color:"666666",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:q,iframe_devices_width:1024,iframe_devices_height:5E3,video_keep_ratio:f,video_autoplay:q,social_btn:"facebook#twitter#google#linkedin#email",social_orientation:"horizontal",social_url:"",thumbnails_displayed:q,thumbnails_position:"header",
thumbnails_border_width:0,thumbnails_border_color:"ffffff",thumbnails_border_style:"solid",play_displayed:q,play_position:"bottomleft",navigation_displayed:q,navigation_position:"bottom",counter_separator_label:"/",fullscreen_displayed:q,fullscreen_position:"topleft",close_displayed:q,close_position:"topright",open_callback:q,close_callback:q,zorder:0},p=0,s=0,t=0,u=0,ba=0,ca=0,R=q,S=q,T=q,U=q,V=q,W=q,B=[],d=i,o=[],sa=i,m=0,O=i,ta=q,G=q,fa=q,ea=q,ua=q,I=q,x=q,ja=this,ma=i;this.setKolorBoxOptions=
this.ca=function(d){jQuery.extend(a,d)};this.getKolorBoxOptions=this.Z=function(){return a};this.addKolorBoxItem=this.X=function(a){o.push(a)};this.getKolorBoxIndex=this.Y=function(){return m};this.setReady=this.ea=function(a){ta=a};this.isReady=this.isReady=function(){return ta};this.isOpen=this.aa=function(){return G};this.openKolorBox=this.t=function(e){if(fa===q){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)S=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)T=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)U=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)V=f;var b=o.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))R=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))W=f;for(var c="play,navigation,fullscreen,close,title,caption".split(","),h=0,g=c.length;h<
g;h++)if(a[c[h]+"_displayed"]===f&&!(("play"===c[h]||"navigation"===c[h])&&1>=b===f))B[a[c[h]+"_position"]]=f;d=document.createElement("div");d.id=H;d.className="kolorBoxContainer";d.style.zIndex=a.zorder;d.a=document.createElement("div");d.a.className="kolorBox";d.appendChild(d.a);R===f&&(d.a.e=document.createElement("div"),d.a.e.className="kolorBoxTopUIBar",d.a.appendChild(d.a.e));S===f&&(d.a.header=document.createElement("div"),d.a.header.className="kolorBoxHeader",d.a.appendChild(d.a.header));
d.a.body=document.createElement("div");d.a.body.className="kolorBoxBody";d.a.appendChild(d.a.body);T===f&&(d.a.body.left=document.createElement("div"),d.a.body.left.className="kolorBoxBodyLeft",d.a.body.appendChild(d.a.body.left));d.a.body.b=document.createElement("div");d.a.body.b.className="kolorBoxBodyCenter";d.a.body.appendChild(d.a.body.b);ktools.Device.isTouch()&&(d.a.body.b.style.overflow="scroll",d.a.body.b.style["-webkit-overflow-scrolling"]="touch");d.a.body.b.r=document.createElement("p");
d.a.body.b.r.className="kolorBoxBodyCenterLeftArrow";d.a.body.b.appendChild(d.a.body.b.r);d.a.body.b.u=document.createElement("p");d.a.body.b.u.className="kolorBoxBodyCenterRightArrow";d.a.body.b.appendChild(d.a.body.b.u);U===f&&(d.a.body.right=document.createElement("div"),d.a.body.right.className="kolorBoxBodyRight",d.a.body.appendChild(d.a.body.right));V===f&&(d.a.n=document.createElement("div"),d.a.n.className="kolorBoxFooter",d.a.appendChild(d.a.n));W===f&&(d.a.c=document.createElement("div"),
d.a.c.className="kolorBoxBottomUIBar",d.a.appendChild(d.a.c));B.topleft===f&&(d.a.e.v=document.createElement("div"),d.a.e.v.className="leftUIPlaceHolder",d.a.e.appendChild(d.a.e.v));B.top===f&&(d.a.e.top=document.createElement("div"),d.a.e.top.className="centerUIPlaceHolder",d.a.e.appendChild(d.a.e.top));B.topright===f&&(d.a.e.w=document.createElement("div"),d.a.e.w.className="rightUIPlaceHolder",d.a.e.appendChild(d.a.e.w));B.bottomleft===f&&(d.a.c.k=document.createElement("div"),d.a.c.k.className=
"leftUIPlaceHolder",d.a.c.appendChild(d.a.c.k));B.bottom===f&&(d.a.c.bottom=document.createElement("div"),d.a.c.bottom.className="centerUIPlaceHolder",d.a.c.appendChild(d.a.c.bottom));B.bottomright===f&&(d.a.c.l=document.createElement("div"),d.a.c.l.className="rightUIPlaceHolder",d.a.c.appendChild(d.a.c.l));a.overlay_displayed===f&&(d.q=document.createElement("div"),d.q.className="kolorBoxOverlay",d.appendChild(d.q));jQuery("#"+v).prepend(d);Ja();Ia();Ha();Ga();if(a.title_displayed!==q){b=document.createElement("p");
b.className="kolorBoxTitle";c=i;"top"===a.title_position.substring(0,3)?c=jQuery("div.kolorBoxTopUIBar"):"bottom"===a.title_position.substring(0,6)&&(c=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";c.append(b)}if(a.caption_displayed!==q){b=document.createElement("p");b.className="kolorBoxCaption";c=Q(a.caption_position);if("top"===
a.caption_position.substring(0,3)||"bottom"===a.caption_position.substring(0,6))h=jQuery(c).width(),jQuery(c).css("width",h+240+"px");"bottomright"===a.caption_position||"topright"===a.caption_position?(jQuery(b).css("float","left"),jQuery(c).prepend(b)):jQuery(c).append(b)}Z();ga();ia();da();M();ua||(jQuery(window).bind("resize",ha),jQuery(window).bind("orientationchange",ha),ua=f);fa=f}b=i;c=m||0;"undefined"!==typeof e&&(b=parseInt(e),b>o.length-1&&(b=o.length-1),isNaN(b)&&(b=c));b!=i&&b!=m&&(m=
b);var e=w(t,u,ba,ca),c=N(e.width,e.height),b=c.width,c=c.height,h=jQuery(d.a),g=pa(b,c),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",c+"px");T===f&&(h.find(".kolorBoxBodyLeft").css("height",c+"px"),h.find(".kolorBoxBodyLeft").css("margin","0 "+a.inner_margin+"px 0 0"));U===f&&(h.find(".kolorBoxBodyRight").css("height",c+"px"),h.find(".kolorBoxBodyRight").css("margin",
"0 0 0 "+a.inner_margin+"px"));R===f&&h.find(".kolorBoxTopUIBar").css("margin","0 0 "+a.inner_margin+"px 0 ");S===f&&h.find(".kolorBoxHeader").css("margin","0 0 "+a.inner_margin+"px 0 ");V===f&&h.find(".kolorBoxFooter").css("margin",a.inner_margin+"px 0 0 0");W===f&&h.find(".kolorBoxBottomUIBar").css("margin",a.inner_margin+"px 0 0 0");h.find(".kolorBoxBody").css("height",c+"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;c=jQuery(d.a);
c.css("top",e+"px");c.css("left",b+"px");E();P(m);a.slideshow_autoplay&&aa();G=f};this.closeKolorBox=this.h=function(){G&&(ea===f&&qa(),J(),jQuery(d.a.body.b).find(".displayedItem").hide(),jQuery(d).remove(),fa=G=q,a.close_callback&&ktools.Code.eval(a.close_callback))};this.toggleKolorBox=this.ga=function(a){G?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();o=[];o.push(b);m=0;G?P(0):this.t(0)};this.hideKolorBox=
this.$=function(){jQuery(d).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 H="",v="",C="",l="",y="",z="",L=i,M=q,E={width:0,height:0},D=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(/wistia\.com/i)||l.match(/wistia\.net/i)?"wistia":l.match(/viddler\.com/i)?"viddler":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(j){H=j};this.setTitle=this.N=function(j){v=j};this.setCaption=this.J=function(j){C=j};this.setValue=this.O=function(j){l=j};this.setData=this.setData=function(j){z=j};this.setType=this.fa=function(j){y=j};this.setImageObject=this.L=function(j){L=
j};this.setImageLoaded=this.K=function(j){M=j};this.setImageOriginalSize=this.M=function(j,l){E={width:j,height:l}};this.getName=this.getName=function(){return H};this.getTitle=this.I=function(){return v};this.getCaption=this.F=function(){return C};this.getValue=this.d=function(){return l};this.getData=this.getData=function(){return z};this.getType=this.f=function(){return y};this.getImageObject=this.H=function(){return L};this.getImageLoaded=this.G=function(){return M};this.getImageOriginalSize=
this.o=function(){return E};this.preloadImage=this.j=function(){var j=new Image;j.onload=function(l){ktools.DOM.preventDefault(l);D.K(f);D.M(j.width,j.height)};j.src=l;D.L(j)}};})();