PageSourceSearch

https://triptuner.com/assets-tt2/js/html5gallery/html5gallery.js?100520260941

js triptuner.com collected 2026-10-05 09:41:37 UTC 210,324 bytes, 410 lines download raw bytes

1/** HTML5 Gallery - jQuery Image and Video Gallery Plugin
2 * Copyright 2014 Magic Hills Pty Ltd All Rights Reserved
3 * Website: http://html5box.com
4 * Version 9.7 
5 */
6var html5GalleryObjects=new function(){this.objects=[];this.addObject=function(v){this.objects.push(v)};this.loadNext=function(v){this.objects[v].onVideoEnd();this.objects[v].isPaused||this.objects[v].slideRun(-1)};this.setHd=function(v,s,q){this.objects[v].setHd(s,q)};this.gotoSlide=function(v,s){"undefined"===typeof s&&(s=0);this.objects[s]&&this.objects[s].slideRun(v)}};
7if("undefined"===typeof ASYouTubeIframeAPIReady)var ASYouTubeIframeAPIReady=!1,ASYouTubeTimeout=0,onYouTubeIframeAPIReady=function(){ASYouTubeIframeAPIReady=!0};var ASVimeoTimeout=0;
8function loadHtml5Gallery(v){jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",easeInQuad:function(b,e,a,c,d){return c*(e/=d)*e+a},easeOutQuad:function(b,e,a,c,d){return-c*(e/=d)*(e-2)+a},easeInOutQuad:function(b,e,a,c,d){return 1>(e/=d/2)?c/2*e*e+a:-c/2*(--e*(e-2)-1)+a},easeInCubic:function(b,e,a,c,d){return c*(e/=d)*e*e+a},easeOutCubic:function(b,e,a,c,d){return c*((e=e/d-1)*e*e+1)+a},easeInOutCubic:function(b,e,a,c,d){return 1>(e/=d/2)?c/2*e*e*e+a:c/2*((e-=
92)*e*e+2)+a},easeInQuart:function(b,e,a,c,d){return c*(e/=d)*e*e*e+a},easeOutQuart:function(b,e,a,c,d){return-c*((e=e/d-1)*e*e*e-1)+a},easeInOutQuart:function(b,e,a,c,d){return 1>(e/=d/2)?c/2*e*e*e*e+a:-c/2*((e-=2)*e*e*e-2)+a},easeInQuint:function(b,e,a,c,d){return c*(e/=d)*e*e*e*e+a},easeOutQuint:function(b,e,a,c,d){return c*((e=e/d-1)*e*e*e*e+1)+a},easeInOutQuint:function(b,e,a,c,d){return 1>(e/=d/2)?c/2*e*e*e*e*e+a:c/2*((e-=2)*e*e*e*e+2)+a},easeInSine:function(b,e,a,c,d){return-c*Math.cos(e/d*
10(Math.PI/2))+c+a},easeOutSine:function(b,e,a,c,d){return c*Math.sin(e/d*(Math.PI/2))+a},easeInOutSine:function(b,e,a,c,d){return-c/2*(Math.cos(Math.PI*e/d)-1)+a},easeInExpo:function(b,e,a,c,d){return 0==e?a:c*Math.pow(2,10*(e/d-1))+a},easeOutExpo:function(b,e,a,c,d){return e==d?a+c:c*(-Math.pow(2,-10*e/d)+1)+a},easeInOutExpo:function(b,e,a,c,d){return 0==e?a:e==d?a+c:1>(e/=d/2)?c/2*Math.pow(2,10*(e-1))+a:c/2*(-Math.pow(2,-10*--e)+2)+a},easeInCirc:function(b,e,a,c,d){return-c*(Math.sqrt(1-(e/=d)*e)-
111)+a},easeOutCirc:function(b,e,a,c,d){return c*Math.sqrt(1-(e=e/d-1)*e)+a},easeInOutCirc:function(b,e,a,c,d){return 1>(e/=d/2)?-c/2*(Math.sqrt(1-e*e)-1)+a:c/2*(Math.sqrt(1-(e-=2)*e)+1)+a},easeInElastic:function(b,e,a,c,d){b=1.70158;var h=0,f=c;if(0==e)return a;
11if(1==(e/=d))return a+c;h||(h=0.3*d);f<Math.abs(c)?(f=c,b=h/4):b=h/(2*Math.PI)*Math.asin(c/f);return-(f*Math.pow(2,10*(e-=1))*Math.sin((e*d-b)*2*Math.PI/h))+a},easeOutElastic:function(b,e,a,c,d){b=1.70158;var h=0,f=c;if(0==e)return a;if(1==
12(e/=d))return a+c;h||(h=0.3*d);f<Math.abs(c)?(f=c,b=h/4):b=h/(2*Math.PI)*Math.asin(c/f);return f*Math.pow(2,-10*e)*Math.sin((e*d-b)*2*Math.PI/h)+c+a},easeInOutElastic:function(b,e,a,c,d){b=1.70158;var h=0,f=c;if(0==e)return a;if(2==(e/=d/2))return a+c;h||(h=d*0.3*1.5);f<Math.abs(c)?(f=c,b=h/4):b=h/(2*Math.PI)*Math.asin(c/f);return 1>e?-0.5*f*Math.pow(2,10*(e-=1))*Math.sin((e*d-b)*2*Math.PI/h)+a:0.5*f*Math.pow(2,-10*(e-=1))*Math.sin((e*d-b)*2*Math.PI/h)+c+a},easeInBack:function(b,e,a,c,d,h){void 0==
13h&&(h=1.70158);return c*(e/=d)*e*((h+1)*e-h)+a},easeOutBack:function(b,e,a,c,d,h){void 0==h&&(h=1.70158);return c*((e=e/d-1)*e*((h+1)*e+h)+1)+a},easeInOutBack:function(b,e,a,c,d,h){void 0==h&&(h=1.70158);return 1>(e/=d/2)?c/2*e*e*(((h*=1.525)+1)*e-h)+a:c/2*((e-=2)*e*(((h*=1.525)+1)*e+h)+2)+a},easeInBounce:function(b,e,a,c,d){return c-jQuery.easing.easeOutBounce(b,d-e,0,c,d)+a},easeOutBounce:function(b,e,a,c,d){return(e/=d)<1/2.75?c*7.5625*e*e+a:e<2/2.75?c*(7.5625*(e-=1.5/2.75)*e+0.75)+a:e<2.5/2.75?
14c*(7.5625*(e-=2.25/2.75)*e+0.9375)+a:c*(7.5625*(e-=2.625/2.75)*e+0.984375)+a},easeInOutBounce:function(b,e,a,c,d){return e<d/2?0.5*jQuery.easing.easeInBounce(b,2*e,0,c,d)+a:0.5*jQuery.easing.easeOutBounce(b,2*e-d,0,c,d)+0.5*c+a}});var s=jQuery;s.fn.touchSwipe=function(b){var e={preventWebBrowser:!1,instance:null,preventWebBrowserCallback:null,swipeLeft:null,swipeRight:null,swipeTop:null,swipeBottom:null};b&&s.extend(e,b);return this.each(function(){function a(a){var b=a.originalEvent;1<=b.targetTouches.length?
15(f=b.targetTouches[0].pageX,j=b.targetTouches[0].pageY):h(a)}function b(a){var c=e.preventWebBrowser,d=a.originalEvent;1<=d.targetTouches.length?(l=d.targetTouches[0].pageX,g=d.targetTouches[0].pageY,e.instance&&e.preventWebBrowserCallback&&(c=e.instance[e.preventWebBrowserCallback](g<j))):h(a);c&&a.preventDefault()}function d(a){if(0<l||0<g)100<Math.abs(l-f)&&(l>f?e.swipeRight&&e.swipeRight.call():e.swipeLeft&&e.swipeLeft.call()),100<Math.abs(g-j)&&(g>j?e.swipeBottom&&e.swipeBottom.call():e.swipeTop&&
16e.swipeTop.call());h(a)}function h(){g=l=j=f=-1}var f=-1,j=-1,l=-1,g=-1;try{s(this).on("touchstart",a),s(this).on("touchmove",b),s(this).on("touchend",d),s(this).on("touchcancel",h)}catch(w){}})};var q=jQuery;q.fn.drag=function(b,e,a){var c="string"==typeof b?b:"",d=q.isFunction(b)?b:q.isFunction(e)?e:null;0!==c.indexOf("drag")&&(c="drag"+c);a=(b==d?e:a)||{};return d?this.on(c,a,d):this.trigger(c)};var u=q.event,x=u.special,k=null,k=x.drag={defaults:{which:1,distance:0,not:":input",handle:null,relative:!1,
17drop:!0,click:!1},datakey:"dragdata",livekey:"livedrag",add:function(b){var e=q.data(this,k.datakey),a=b.data||{};e.related+=1;!e.live&&b.selector&&(e.live=!0,u.add(this,"draginit."+k.livekey,k.delegate));q.each(k.defaults,function(b){void 0!==a[b]&&(e[b]=a[b])})},remove:function(){q.data(this,k.datakey).related-=1},setup:function(){if(!q.data(this,k.datakey)){var b=q.extend({related:0},k.defaults);q.data(this,k.datakey,b);u.add(this,"mousedown",k.init,b);this.attachEvent&&this.attachEvent("ondragstart",
18k.dontstart)}},teardown:function(){q.data(this,k.datakey).related||(q.removeData(this,k.datakey),u.remove(this,"mousedown",k.init),u.remove(this,"draginit",k.delegate),k.textselect(!0),this.detachEvent&&this.detachEvent("ondragstart",k.dontstart))},init:function(b){var e=b.data,a;if(!(0<e.which&&b.which!=e.which)&&!q(b.target).is(e.not)&&(!e.handle||q(b.target).closest(e.handle,b.currentTarget).length))if(e.propagates=1,e.interactions=[k.interaction(this,e)],e.target=b.target,e.pageX=b.pageX,e.pageY=
19b.pageY,e.dragging=null,a=k.hijack(b,"draginit",e),e.propagates){if((a=k.flatten(a))&&a.length)e.interactions=[],q.each(a,function(){e.interactions.push(k.interaction(this,e))});e.propagates=e.interactions.length;!1!==e.drop&&x.drop&&x.drop.handler(b,e);k.textselect(!1);u.add(document,"mousemove mouseup",k.handler,e);return!1}},interaction:function(b,e){return{drag:b,callback:new k.callback,droppable:[],offset:q(b)[e.relative?"position":"offset"]()||{top:0,left:0}}},handler:function(b){var e=b.data;
20switch(b.type){case !e.dragging&&"mousemove":if(Math.pow(b.pageX-e.pageX,2)+Math.pow(b.pageY-e.pageY,2)<Math.pow(e.distance,2))break;b.target=e.target;k.hijack(b,"dragstart",e);e.propagates&&(e.dragging=!0);case "mousemove":if(e.dragging){k.hijack(b,"drag",e);if(e.propagates){!1!==e.drop&&x.drop&&x.drop.handler(b,e);break}b.type="mouseup"}case "mouseup":u.remove(document,"mousemove mouseup",k.handler),e.dragging&&(!1!==e.drop&&x.drop&&x.drop.handler(b,e),k.hijack(b,"dragend",e)),k.textselect(!0),
21!1===e.click&&e.dragging&&(jQuery.event.triggered=!0,setTimeout(function(){jQuery.event.triggered=!1},20),e.dragging=!1)}},delegate:function(b){var e=[],a,c=q.data(this,"events")||{};q.each(c.live||[],function(c,h){if(0===h.preType.indexOf("drag")&&(a=q(b.target).closest(h.selector,b.currentTarget)[0]))u.add(a,h.origType+"."+k.livekey,h.origHandler,h.data),0>q.inArray(a,e)&&e.push(a)});return!e.length?!1:q(e).on("dragend."+k.livekey,function(){u.remove(this,"."+k.livekey)})},hijack:function(b,e,a,
22c,d){if(a){var h=b.originalEvent,f=b.type,j=e.indexOf("drop")?"drag":"drop",l,g=c||0,w,r;c=!isNaN(c)?c:a.interactions.length;b.type=e;b.originalEvent=null;a.results=[];do if((w=a.interactions[g])&&!("dragend"!==e&&w.cancelled))r=k.properties(b,a,w),w.results=[],q(d||w[j]||a.droppable).each(function(c,d){r.target=d;l=u.handle?d?u.handle.call(d,b,r):null:d?u.dispatch.call(d,b,r):null;!1===l?("drag"==j&&(w.cancelled=!0,a.propagates-=1),"drop"==e&&(w[j][c]=null)):"dropinit"==e&&w.droppable.push(k.element
22(l)||
23d);"dragstart"==e&&(w.proxy=q(k.element(l)||w.drag)[0]);w.results.push(l);delete b.result;if("dropinit"!==e)return l}),a.results[g]=k.flatten(w.results),"dropinit"==e&&(w.droppable=k.flatten(w.droppable)),"dragstart"==e&&!w.cancelled&&r.update();while(++g<c);b.type=f;b.originalEvent=h;return k.flatten(a.results)}},properties:function(b,e,a){var c=a.callback;c.drag=a.drag;c.proxy=a.proxy||a.drag;c.startX=e.pageX;c.startY=e.pageY;c.deltaX=b.pageX-e.pageX;c.deltaY=b.pageY-e.pageY;c.originalX=a.offset.left;
24c.originalY=a.offset.top;c.offsetX=b.pageX-(e.pageX-c.originalX);c.offsetY=b.pageY-(e.pageY-c.originalY);c.drop=k.flatten((a.drop||[]).slice());c.available=k.flatten((a.droppable||[]).slice());return c},element:function(b){if(b&&(b.jquery||1==b.nodeType))return b},flatten:function(b){return q.map(b,function(b){return b&&b.jquery?q.makeArray(b):b&&b.length?k.flatten(b):b})},textselect:function(b){q(document)[b?"unbind":"bind"]("selectstart",k.dontstart).attr("unselectable",b?"off":"on").css("MozUserSelect",
25b?"":"none")},dontstart:function(){return!1},callback:function(){}};k.callback.prototype={update:function(){x.drop&&this.available.length&&q.each(this.available,function(b){x.drop.locate(this,b)})}};x.draginit=x.dragstart=x.dragend=k;var z=jQuery;z.fn.html5boxTransition=function(b,e,a,c,d){$parent=this;b=c.effect;var h=c.easing,f=c.duration,j=c.direction,l=null;b&&(b=b.split(","),l=b[Math.floor(Math.random()*b.length)],l=z.trim(l.toLowerCase()));l&&c[l]&&("duration"in c[l]&&(f=c[l].duration),c[l].easing&&
26(h=c[l].easing));"fade"==l||"fadein"==l?(a.hide(),e.insertBefore(a),a.fadeIn(f,h,function(){e.remove();d()})):"fadeout"==l?(a.show(),e.fadeOut(f,h,function(){e.remove();d()})):"fadeinout"==l?(a.hide(),e.insertBefore(a),e.fadeOut(f,h),a.fadeIn(f,h,function(){e.remove();d()})):"crossfade"==l?(a.hide(),e.fadeOut(f/2,h,function(){a.fadeIn(f/2,h,function(){e.remove();d()})})):"slide"==l?($parent.css({overflow:"hidden"}),j?(a.css({left:"100%"}),a.animate({left:"0%"},f,h),e.animate({left:"-100%"},f,h,function(){e.remove();
27d()})):(a.css({left:"-100%"}),a.animate({left:"0%"},f,h),e.animate({left:"100%"},f,h,function(){e.remove();d()}))):(a.show(),e.remove(),d())};var p=jQuery;p.fn.addHTML5VideoControls=function(b,e,a,c,d,h,f,j,l,g,w,r){var k="ontouchstart"in window,q=k?"touchstart":"mousedown",u=k?"touchmove":"mousemove",v=k?"touchcancel":"mouseup",s=k?48:36,y=null,x=null,A=!1,z=!0,I=p(this).data("ishd"),E=p(this).data("hd"),H=p(this).data("src"),m=p(this);m.get(0).removeAttribute("controls");var t=p("<div class='html5boxVideoPlay'></div>");
28m.after(t);t.css({position:"absolute",top:"50%",left:"50%",display:"block",cursor:"pointer",width:64,height:64,"margin-left":-32,"margin-top":-32,"background-image":"url('"+(l&&"playbutton"in l&&0<l.playbutton.length?l.playbutton:b+"html5boxplayer_playvideo.png")+"')","background-position":"center center","background-repeat":"no-repeat"}).on("click",function(){m.get(0).play()});var J=p("<div class='html5boxVideoFullscreenBg'></div>"),n=p("<div class='html5boxVideoControls'><div class='html5boxVideoControlsBg'></div><div class='html5boxPlayPause'><div class='html5boxPlay'></div><div class='html5boxPause'></div></div><div class='html5boxTimeCurrent'>--:--</div><div class='html5boxFullscreen'></div><div class='html5boxCaption'></div><div class='html5boxHD'></div><div class='html5boxVolume'><div class='html5boxVolumeButton'></div><div class='html5boxVolumeBar'><div class='html5boxVolumeBarBg'><div class='html5boxVolumeBarActive'></div></div></div></div><div class='html5boxTimeTotal'>--:--</div><div class='html5boxSeeker'><div class='html5boxSeekerBuffer'></div><div class='html5boxSeekerPlay'></div><div class='html5boxSeekerHandler'></div></div><div style='clear:both;'></div></div>");
29m.after(n);m.after(J);J.css({display:"none",position:"fixed",left:0,top:0,bottom:0,right:0});n.css({display:"block",position:"absolute",width:"100%",height:s,left:0,bottom:0,right:0,margin:"0 auto"});var P=function(){z=!0};m.on("touch click mousemove mouseenter",function(){z=!0});c||setInterval(function(){z&&(n.show(),z=!1,clearTimeout(y),y=setTimeout(function(){m.get(0).paused||n.fadeOut()},5E3))},250);p(".html5boxVideoControlsBg",n).css({display:"block",position:"absolute",width:"100%",height:"100%",
30left:0,top:0,"background-color":"#000000",opacity:0.7,filter:"alpha(opacity=70)"});p(".html5boxPlayPause",n).css({display:"block",position:"relative",width:"32px",height:"32px",margin:Math.floor((s-32)/2),"float":"left"});var F=p(".html5boxPlay",n),G=p(".html5boxPause",n);F.css({display:"block",position:"absolute",top:0,left:0,width:"32px",height:"32px",cursor:"pointer","background-image":"url('"+b+"html5boxplayer_playpause.png')","background-position":"top left"}).hover(function(){p(this).css({"background-position":"bottom left"})},
31function(){p(this).css({"background-position":"top left"})}).on("click",function(){m.get(0).play()});G.css({display:"none",position:"absolute",top:0,left:0,width:"32px",height:"32px",cursor:"pointer","background-image":"url('"+b+"html5boxplayer_playpause.png')","background-position":"top right"}).hover(function(){p(this).css({"background-position":"bottom right"})},function(){p(this).css({"background-position":"top right"})}).on("click",function(){m.get(0).pause()});var W=p(".html5boxTimeCurrent",
32n),Q=p(".html5boxTimeTotal",n),D=p(".html5boxSeeker",n),B=p(".html5boxSeekerPlay",n),T=p(".html5boxSeekerBuffer",n),ca=p(".html5boxSeekerHandler",n);W.css({display:"block",position:"relative","float":"left","line-height":s+"px","font-weight":"normal","font-size":"12px",margin:"0 8px","font-family":"Arial, Helvetica, sans-serif",color:"#fff"});Q.css({display:"block",position:"relative","float":"right","line-height":s+"px","font-weight":"normal","font-size":"12px",margin:"0 8px","font-family":"Arial, Helvetica, sans-serif",
33color:"#fff"});D.css({display:"block",cursor:"pointer",overflow:"hidden",position:"relative",height:"10px","background-color":"#222",margin:Math.floor((s-10)/2)+"px 4px"}).on(q,function(a){a=(k?a.originalEvent.touches[0]:a).pageX-D.offset().left;B.css({width:a});m.get(0).currentTime=a*m.get(0).duration/D.width();D.on(u,function(a){a=(k?a.originalEvent.touches[0]:a).pageX-D.offset().left;B.css({width:a});m.get(0).currentTime=a*m.get(0).duration/D.width()})}).on(v,function(){D.off(u)});T.css({display:"block",
34position:"absolute",left:0,top:0,height:"100%","background-color":"#444"});B.css({display:"block",position:"absolute",left:0,top:0,height:"100%","background-color":"#fcc500"});
34var C=f?m:m.parent();if(C.get(0).requestFullscreen||C.get(0).webkitRequestFullScreen||C.get(0).mozRequestFullScreen||C.get(0).webkitEnterFullScreen||C.get(0).msRequestFullscreen){var R=function(a){f?a?(m.get(0).setAttribute("controls","controls"),j&&m.get(0).setAttribute("controlsList","nodownload")):m.get(0).removeAttribute("controls"):
35a?(p(document).on("mousemove",P),n.css({"z-index":2147483647,position:"fixed"}),J.css({"z-index":2147483647,display:"block"}),t.css({"z-index":2147483647})):(p(document).off("mousemove",P),n.css({"z-index":"",position:"absolute"}),J.css({"z-index":"",display:"none"}),t.css({"z-index":""}))};document.addEventListener("MSFullscreenChange",function(){A=null!=document.msFullscreenElement;R(A)},!1);document.addEventListener("fullscreenchange",function(){A=document.fullscreen;R(A)},!1);document.addEventListener("mozfullscreenchange",
36function(){A=document.mozFullScreen;R(A)},!1);document.addEventListener("webkitfullscreenchange",function(){A=document.webkitIsFullScreen;R(A)},!1);C.get(0).addEventListener("webkitbeginfullscreen",function(){A=!0;R(A)},!1);C.get(0).addEventListener("webkitendfullscreen",function(){A=!1;R(A)},!1);f||p("head").append("<style type='text/css'>video"+a+"::-webkit-media-controls { display:none !important; }</style>");p(".html5boxFullscreen",n).css({display:"block",position:"relative","float":"right",width:"32px",
37height:"32px",margin:Math.floor((s-32)/2),cursor:"pointer","background-image":"url('"+b+"html5boxplayer_fullscreen.png')","background-position":"left top"}).hover(function(){var a=p(this).css("background-position")?p(this).css("background-position").split(" ")[0]:p(this).css("background-position-x");p(this).css({"background-position":a+" bottom"})},function(){var a=p(this).css("background-position")?p(this).css("background-position").split(" ")[0]:p(this).css("background-position-x");p(this).css({"background-position":a+
38" top"})}).on("click",function(){(A=!A)?(f&&(m.get(0).setAttribute("controls","controls"),j&&m.get(0).setAttribute("controlsList","nodownload")),C.get(0).requestFullscreen?C.get(0).requestFullscreen():C.get(0).webkitRequestFullScreen?C.get(0).webkitRequestFullScreen():C.get(0).mozRequestFullScreen?C.get(0).mozRequestFullScreen():C.get(0).webkitEnterFullScreen&&C.get(0).webkitEnterFullScreen(),C.get(0).msRequestFullscreen&&C.get(0).msRequestFullscreen()):document.cancelFullScreen?document.cancelFullScreen():
39document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()})}if(E)p(".html5boxHD",n).css({display:"block",position:"relative","float":"right",width:"32px",height:"32px",margin:Math.floor((s-32)/2),cursor:"pointer","background-image":"url('"+b+"html5boxplayer_hd.png')","background-position":(I?"right":"left")+" center"}).on("click",
40function(){I=!I;p(this).css({"background-position":(I?"right":"left")+" center"});e.isHd=I;var a=m.get(0).isPaused;m.get(0).setAttribute("src",(I?E:H)+"#t="+m.get(0).currentTime);a?m.get(0).pause():m.get(0).play()});if(g){var Z=p(".html5boxCaption",n);Z.css({display:"block",position:"relative","float":"right",width:"32px",height:"32px",margin:Math.floor((s-32)/2),cursor:"pointer","background-image":"url('"+b+"html5boxplayer_caption.png')","background-position":r?"right center":"left center"}).data("showcaption",
41r).on("click",function(){var a=!Z.data("showcaption");Z.data("showcaption",a).css({"background-position":(a?"right":"left")+" center"});if(m.get(0).textTracks)for(var b=0;b<m.get(0).textTracks.length;b++)m.get(0).textTracks[b].mode=a?"showing":"hidden"})}m.get(0).volume=h;var da=0==h?1:h;a=m.get(0).volume;m.get(0).volume=a/2+0.1;if(m.get(0).volume===a/2+0.1){m.get(0).volume=a;h=p(".html5boxVolume",n);var X=p(".html5boxVolumeButton",n),$=p(".html5boxVolumeBar",n),M=p(".html5boxVolumeBarBg",n),U=p(".html5boxVolumeBarActive",
42n);h.css({display:"block",position:"relative","float":"right",width:"32px",height:"32px",margin:Math.floor((s-32)/2)}).hover(function(){clearTimeout(x);var a=m.get(0).volume;U.css({height:Math.round(100*a)+"%"});$.show()},function(){clearTimeout(x);x=setTimeout(function(){$.hide()},1E3)});X.css({display:"block",position:"absolute",top:0,left:0,width:"32px",height:"32px",cursor:"pointer","background-image":"url('"+b+"html5boxplayer_volume.png')","background-position":"top "+(0<a?"left":"right")}).hover(function(){var a=
43p(this).css("background-position")?p(this).css("background-position").split(" ")[0]:p(this).css("background-position-x");p(this).css({"background-position":a+" bottom"})},function(){var a=p(this).css("background-position")?p(this).css("background-position").split(" ")[0]:p(this).css("background-position-x");p(this).css({"background-position":a+" top"})}).on("click",function(){var a=m.get(0).volume;0<a?(da=a,a=0):a=da;var b=p(this).css("background-position")?p(this).css("background-position").split(" ")[1]:
44p(this).css("background-position-y");X.css({"background-position":(0<a?"left":"right")+" "+b});0<a&&(m.get(0).muted=!1);m.get(0).volume=a;U.css({height:Math.round(100*a)+"%"})});$.css({display:"none",position:"absolute",left:4,bottom:"100%",width:24,height:80,"margin-bottom":Math.floor((s-32)/2),"background-color":"#000000",opacity:0.7,filter:"alpha(opacity=70)"});M.css({display:"block",position:"relative",width:10,height:68,margin:7,cursor:"pointer","background-color":"#222"});U.css({display:"block",
45position:"absolute",bottom:0,left:0,width:"100%",height:"100%","background-color":"#fcc500"});M.on(q,function(a){a=1-((k?a.originalEvent.touches[0]:a).pageY-M.offset().top)/M.height();a=1<a?1:0>a?0:a;U.css({height:Math.round(100*a)+"%"});X.css({"background-position":"left "+(0<a?"top":"bottom")});0<a&&(m.get(0).muted=!1);m.get(0).volume=a;M.on(u,function(a){a=1-((k?a.originalEvent.touches[0]:a).pageY-M.offset().top)/M.height();a=1<a?1:0>a?0:a;U.css({height:Math.round(100*a)+"%"});X.css({"background-position":"left "+
46(0<a?"top":"bottom")});0<a&&(m.get(0).muted=!1);m.get(0).volume=a})}).on(v,function(){M.off(u)})}var ea=function(a){var b=Math.floor(a/3600),c=Math.floor((a-3600*b)/60);a=Math.floor(a-(3600*b+60*c));c=(10>c?"0"+c:c)+":"+(10>a?"0"+a:a);0<b&&(c=(10>b?"0"+b:b)+":"+c);return c};d&&t.hide();c&&n.hide();b=function(){d||t.hide();c||(F.hide(),G.show())};q=function(){d||t.show();c||(n.show(),clearTimeout(y),F.show(),G.hide())};v=function(){p(window).trigger("html5lightbox.videoended");d||t.show();c||(n.show(),
47clearTimeout(y),F.show(),G.hide())};s=function(){var a=m.get(0).currentTime;if(a){W.text(ea(a));var b=m.get(0).duration;if(b){Q.text(ea(b));var c=D.width(),a=Math.round(c*a/b);B.css({width:a});ca.css({left:a})}}};a=function(){if(m.get(0).buffered&&0<m.get(0).buffered.length&&!isNaN(m.get(0).buffered.end(0))&&!isNaN(m.get(0).duration)){var a=D.width();T.css({width:Math.round(a*m.get(0).buffered.end(0)/m.get(0).duration)})}};try{m.on("canplay",function(){if(g&&m.get(0).textTracks){for(var a=0;a<m.get(0).textTracks.length;a++){m.get(0).textTracks[a].mode=
48"hidden";if(m.get(0).textTracks[a].activeCues)for(var b=0;b<m.get(0).textTracks[a].activeCues.length;b++)m.get(0).textTracks[a].activeCues[b].line=w;if(m.get(0).textTracks[a].cues)for(b=0;b<m.get(0).textTracks[a].cues.length;b++)m.get(0).textTracks[a].cues[b].line=w}b=p(".html5boxCaption",n).data("showcaption");for(a=0;a<m.get(0).textTracks.length;a++)m.get(0).textTracks[a].mode=b?"showing":"hidden"}}),m.on("play",b),m.on("pause",q),m.on("ended",v),m.on("timeupdate",s),m.on("progress",a)}catch(fa){}};
49var b=jQuery;ELEM_VTT=26;ELEM_VTTLANG=27;ELEM_VTTLABEL=28;var H=0;b.fn.html5gallery=function(k){var e=function(a,c,d){this.container=a;this.options=c;this.id=d;b(window).trigger("html5gallery.begin",[this.id]);this.options.flashInstalled=!1;try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash")&&(this.options.flashInstalled=!0)}catch(h){navigator.mimeTypes["application/x-shockwave-flash"]&&(this.options.flashInstalled=!0)}this.options.html5VideoSupported=!!document.createElement("video").canPlayType;
50this.options.isChrome=null!=navigator.userAgent.match(/Chrome/i);this.options.isFirefox=null!=navigator.userAgent.match(/Firefox/i);this.options.isOpera=null!=navigator.userAgent.match(/Opera/i)||null!=navigator.userAgent.match(/OPR\//i);this.options.isSafari=null!=navigator.userAgent.match(/Safari/i);this.options.isIE11=null!=navigator.userAgent.match(/Trident\/7/)&&null!=navigator.userAgent.match(/rv:11/);this.options.isIE=null!=navigator.userAgent.match(/MSIE/i)&&!this.options.isOpera;this.options.isIE10=
51null!=navigator.userAgent.match(/MSIE 10/i)&&!this.options.isOpera;this.options.isIE9=null!=navigator.userAgent.match(/MSIE 9/i)&&!this.options.isOpera;this.options.isIE8=null!=navigator.userAgent.match(/MSIE 8/i)&&!this.options.isOpera;this.options.isIE7=null!=navigator.userAgent.match(/MSIE 7/i)&&!this.options.isOpera;this.options.isIE6=null!=navigator.userAgent.match(/MSIE 6/i)&&!this.options.isOpera;this.options.isIE678=this.options.isIE6||this.options.isIE7||this.options.isIE8;this.options.isIE6789=
52this.options.isIE6||this.options.isIE7||this.options.isIE8||this.options.isIE9;this.options.isAndroid=null!=navigator.userAgent.match(/Android/i);this.options.isIPad=null!=navigator.userAgent.match(/iPad/i);this.options.isIPhone=null!=navigator.userAgent.match(/iPod/i)||null!=navigator.userAgent.match(/iPhone/i);this.options.isIOS=this.options.isIPad||this.options.isIPhone;this.options.isMobile=this.options.isAndroid||this.options.isIPad||this.options.isIPhone;this.options.isIOSLess5=this.options.isIPad&&
53this.options.isIPhone&&(null!=navigator.userAgent.match(/OS 4/i)||null!=navigator.userAgent.match(/OS 3/i));this.options.supportCSSPositionFixed=!this.options.isIE6&&!this.options.isIOSLess5;this.eStart=(this.isTouch="ontouchstart"in window||this.options.forcetouch)?"touchstart":"mousedown";this.eMove=this.isTouch?"touchmove":"mousemove";this.eCancel=this.isTouch?"touchcancel":"mouseup";this.eClick="click";a=document.createElement("video");this.options.canplaymp4=a&&a.canPlayType&&a.canPlayType("video/mp4").replace(/no/,
54"");this.slideshowTimeout=null;this.looptimes=0;this.updateCarouselTimeout=null;this.disableupdatecarousel=!1;this.hideToolboxTimeout=this.hideTitleTimeout=null;this.isHd=this.options.hddefault;this.isHTML5=!1;this.elemArray=[];b(".html5gallery-loading").hide();this.container.children().hide();this.container.css({display:"block",position:"relative"});this.options.googlefonts&&0<this.options.googlefonts.length&&(a="https://fonts.googleapis.com/css?family="+this.options.googlefonts,c=document.createElement("link"),
55c.setAttribute("rel","stylesheet"),c.setAttribute("type","text/css"),c.setAttribute("href",a),document.getElementsByTagName("head")[0].appendChild(c));this.initData(this.processElemArray)};e.prototype={getParams:function(){for(var a={},b=window.location.search.substring(1).split("&"),d=0;d<b.length;d++){var h=b[d].split("=");h&&2==h.length&&(a[h[0].toLowerCase()]=unescape(h[1]))}return a}
55,init:function(a){if(a.options.random)for(var c=a.elemArray.length-1;0<c;c--){var d=Math.floor(Math.random()*c),
56h=a.elemArray[c];a.elemArray[c]=a.elemArray[d];a.elemArray[d]=h}a.options.reverse&&a.elemArray.reverse();a.initYoutubeApi();a.options.showcarousel=(1<a.elemArray.length||a.options.showcarouselforsingle)&&a.options.showcarousel;a.options.watermarkcode="";a.options.frve?a.options.watermarkcode="<a style='text-decoration:none;' target='_blank' href='"+a.options.freelink+"' >":0<a.options.watermarklink.length&&(a.options.watermarkcode="<a style='text-decoration:none;' target='_blank' href='"+a.options.watermarklink+
57"' >");a.options.watermarkcode+="<div "+(a.options.frve?"":"class='html5gallery-watermark-"+a.id+"' ")+"style='"+(a.options.frve?"display:block !important;visibility:visible !important;position:absolute !important;top:10px !important;left:10px !important;width:170px;height:18px;line-height:18px;text-align:center;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;background-color:#fff;color:#333;font-size:12px;font-family:Arial,Helvetica,sans-serif;":0<a.options.watermark.length?"display:block;position:absolute;top:0px;left:0px;":
58"display:none;")+"' >";a.options.frve?a.options.watermarkcode+=a.options.frvem:0<a.options.watermark.length&&(a.options.watermarkcode+="<img src='"+a.options.watermark+"' alt='' />");a.options.watermarkcode+="</div>";if(a.options.frve||0<a.options.watermarklink.length)a.options.watermarkcode+="</a>";a.createStyle();a.createMarkup();a.createImageToolbox();if(!(0>=a.elemArray.length)){a.createSliderTimeout();a.createEvents();a.loadCarousel();a.savedElem=-1;a.curElem=-1;a.nextElem=-1;a.prevElem=-1;a.firstrun=
59!0;a.isPaused=!a.options.autoslide;a.isFullscreen=!1;a.isVideoPlaying=!1;a.showingPoster=!1;a.disableTouchSwipe=!1;a.createSocial(!1);c=a.getParams();d=a.options.firstitemid;"html5galleryid"in c&&c.html5galleryid in a.elemArray&&(d=c.html5galleryid);"galleryshareid"in c&&c.galleryshareid in a.elemArray&&(d=c.galleryshareid);a.slideRun(d);a.firstrun=!1;if(a.options.responsive&&(a.resizeGallery(),b(window).resize(function(){setTimeout(function(){a.resizeGallery()},a.options.resizedelay)}),a.options.isMobile&&
60!a.options.mobileresizeevent))b(window).on("orientationchange",function(){setTimeout(function(){a.resizeGallery()},a.options.resizedelay)});b(window).trigger("html5gallery.inited",[a.id,a.curElem])}},resizeGallery:function(){switch(this.options.skin){case "vertical":case "verticallight":case "verticalwithleft":case "verticallightwithleft":case "showcase":this.resizeStyleVertical();break;default:this.resizeStyleDefault()}this.resizeImageToolbox()},absoluteUrl:function(a){var b=document.createElement("a");
61b.href=a;return b.protocol+"//"+b.host+b.pathname+b.search+b.hash},createSocial:function(a){this.options.initsocial&&b("head").append('<link rel="stylesheet" href="'+this.options.jsfolder+'icons/css/mhfontello.css" type="text/css" />');if(this.options.showsocial){var c=this;b("head").append("<style type='text/css' data-creator='html5gallery'>.html5gallery-rotate { border-radius:50%; -webkit-transition:-webkit-transform .4s ease-in; transition: transform .4s ease-in; } .html5gallery-rotate:hover { -webkit-transform: rotate(360deg); transform: rotate(360deg); }</style>");
62var d="<div",d=a?d+(' class="html5gallery-fullscreen-social-'+this.id+'" style="display:none;'+this.options.socialpositionlightbox+'"'):d+(' class="html5gallery-social-'+this.id+'" style="display:'+("mouseover"==this.options.socialmode?"none":"block")+";"+this.options.socialposition+'"'),d=d+">",h=("horizontal"==this.options.socialdirection?"display:inline-block;":"display:block;")+"margin:4px;",e="display:table-cell;width:"+this.options.socialbuttonsize+"px;height:"+this.options.socialbuttonsize+
63"px;font-size:"+this.options.socialbuttonfontsize+"px;border-radius:50%;color:#fff;vertical-align:middle;text-align:center;cursor:pointer;padding:0;";this.options.showemail&&(d+='<div class="html5gallery-social-btn-'+this.id+(this.options.socialrotateeffect?" html5gallery-rotate":"")+' html5gallery-social-email" style="'+h+'"><div class="mh-icon-mail" style="'+e+'background-color:#4d83ff;"></div></div>');this.options.showfacebook&&(d+='<div class="html5gallery-social-btn-'+this.id+(this.options.socialrotateeffect?
64" html5gallery-rotate":"")+' html5gallery-social-facebook" style="'+h+'"><div class="mh-icon-facebook" style="'+e+'background-color:#3b5998;"></div></div>');this.options.showtwitter&&(d+='<div class="html5gallery-social-btn-'+this.id+(this.options.socialrotateeffect?" html5gallery-rotate":"")+' html5gallery-social-twitter" style="'+h+'"><div class="mh-icon-twitter" style="'+e+'background-color:#03b3ee;"></div></div>');this.options.showpinterest&&(d+='<div class="html5gallery-social-btn-'+this.id+
65(this.options.socialrotateeffect?" html5gallery-rotate":"")+' html5gallery-social-pinterest" style="'+h+'"><div class="mh-icon-pinterest" style="'+e+'background-color:#c92228;"></div></div>');this.options.showlinkedin&&(d+='<div class="html5gallery-social-btn-'+this.id+(this.options.socialrotateeffect?" html5gallery-rotate":"")+' html5gallery-social-linkedin" style="'+h+'"><div class="mh-icon-linkedin" style="'+e+'background-color:#0274b3;"></div></div>');this.options.showgplus&&(d+='<div class="html5gallery-social-btn-'+
66this.id+(this.options.socialrotateeffect?" html5gallery-rotate":"")+' html5gallery-social-gplus" style="'+h+'"><div class="mh-icon-gplus" style="'+e+'background-color:#dd5144;"></div></div>');d+='<div style="clear:both;"></div></div>';a?b(".html5gallery-fullscreen-box-"+this.id,this.$fullscreen).append(d):(b(".html5gallery-box-"+this.id,this.$gallery).append(d),"mouseover"==this.options.socialmode&&b(".html5gallery-box-"+this.id
66).hover(function(){b(".html5gallery-social-"+c.id).fadeIn()},function(){b(".html5gallery-social-"+
67c.id).fadeOut()}));b(".html5gallery-social-btn-"+this.id).click(function(){var a=window.location.href+(0>window.location.href.indexOf("?")?"?":"&")+"galleryshareid="+c.elemArray[c.curElem][0],d=c.elemArray[c.curElem][7],h=c.absoluteUrl(c.elemArray[c.curElem][2]);c.options.sharemediaurl&&(a=h);var e=5==c.elemArray[c.curElem][9]||6==c.elemArray[c.curElem][9]||7==c.elemArray[c.curElem][9]||8==c.elemArray[c.curElem][9]||9==c.elemArray[c.curElem][9]||10==c.elemArray[c.curElem][9]||11==c.elemArray[c.curElem][9],
68d=d?c.html2Text(d):"";e&&c.elemArray[c.curElem][12]&&(h=c.absoluteUrl(c.elemArray[c.curElem][12]));b(this).hasClass("html5gallery-social-facebook")?window.open("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(a)+"&t="+encodeURIComponent(d),"_blank"):b(this).hasClass("html5gallery-social-twitter")?window.open("https://twitter.com/share?url="+encodeURIComponent(a)+"&text="+encodeURIComponent(d),"_blank"):b(this).hasClass("html5gallery-social-pinterest")?window.open("https://pinterest.com/pin/create/bookmarklet/?media="+
69encodeURIComponent(h)+"&url="+encodeURIComponent(a)+"&description="+encodeURIComponent(d)+"&is_video="+(e?"true":"false"),"_blank"):b(this).hasClass("html5gallery-social-linkedin")?window.open("https://www.linkedin.com/shareArticle?mini=true&url="+encodeURIComponent(a)+"&title="+encodeURIComponent(d)+"&summary="+encodeURIComponent(d),"_blank"):b(this).hasClass("html5gallery-social-gplus")?window.open("https://plus.google.com/share?url="+encodeURIComponent(a),"_blank"):b(this).hasClass("html5gallery-social-email")&&
70window.open("mailto:?subject="+encodeURIComponent(d)+"&body=Check out this: "+encodeURIComponent(a));return!1})}},html2Text:function(a){var b=document.createElement("div");b.innerHTML=a;return b.innerText},checkMK:function(){if(this.options.frve){var a=b(".html5gallery-elem-"+this.id,this.container),c=b('a[href="'+this.options.freelink+'"]',a);if(0>a.text().indexOf(this.options.frvem)||0>c.length)a.append("<a style='text-decoration:none;' target='_blank' href='"+this.options.freelink+"' ><div style='display:block;visibility:visible;position:absolute;top:10px;left:10px;width:170px;height:18px;line-height:18px;text-align:center;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;background-color:#fff;color:#333;font-size:12px;font-family:Arial,Helvetica,sans-serif;'>"+
71this.options.frvem+"</div></a>");else if(a=c.find("div"),"none"==c.css("display")||"hidden"==c.css("visibility")||8>parseInt(c.css("font-size"))||"none"==a.css("display")||"hidden"==a.css("visibility")||8>parseInt(a.css("font-size")))c.attr({style:(c.attr("style")||"")+"display:block!important;visibility:visible!important;font-size:12px!important;"}),a.attr({style:a.attr("style")+"display:block!important;visibility:visible!important;font-size:12px!important;"})}},initData:function(a){this.elemArray=
72[];if(this.options.src&&0<this.options.src.length){var c=this.options.mediatype?this.options.mediatype:this.checkType(this.options.src);this.elemArray.push([0,"",this.options.src,this.options.webm,this.options.ogg,"","",this.options.title?this.options.title:"",this.options.title?this.options.title:"",c,this.options.width,this.options.height,this.options.poster,this.options.hd,this.options.hdogg,this.options.hdwebm]);this.readTags();a(this)}else if(this.options.xml&&0<this.options.xml.length){this.options.xmlnocache&&
73(this.options.xml+=0>this.options.xml.indexOf("?")?"?":"&",this.options.xml+=Math.random());var d=this;b.ajax({type:"GET",url:this.options.xml,dataType:"xml",success:function(c){b(c).find("slide").each(function(a){var c=b(this).find("title").text(),h=b(this).find("description").text()?b(this).find("description").text():b(this).find("information").text();c||(c="");h||(h="");var e=b(this).find("mediatype").text()?b(this).find("mediatype").text():d.checkType(b(this).find("file").text());d.elemArray.push([b(this).find("id").length?
74b(this).find("id").text():a,b(this).find("thumbnail").text(),b(this).find("file").text(),b(this).find("file-ogg").text(),b(this).find("file-webm").text(),b(this).find("link").text(),b(this).find("linktarget").text(),c,h,e,b(this).find("width").length&&!isNaN(parseInt(b(this).find("width").text()))?parseInt(b(this).find("width").text()):d.options.width,b(this).find("height").length&&!isNaN(parseInt(b(this).find("height").text()))?parseInt(b(this).find("height").text()):d.options.height,b(this).find("poster").text(),
75b(this).find("hd").text(),b(this).find("hdogg").text(),b(this).find("hdwebm").text(),b(this).find("duration").text(),b(this).find("lightboxwidth").text(),b(this).find("lightboxheight").text(),b(this).find("youtubeapikey").text(),b(this).find("youtubeplaylistid").text(),b(this).find("youtubeplaylistmaxresults").text(),"true"==b(this).find("lightbox").text().toLowerCase()])});d.readTags();a(d)}})}else this.options.remote&&0<this.options.remote.length?(d=this,b.getJSON(this.options.remote,function(b){for(var c=
760;c<b.length;c++){var e=b[c].mediatype?b[c].mediatype:d.checkType(b[c].file);d.elemArray.push([c,b[c].thumbnail,b[c].file,b[c].fileogg,b[c].filewebm,b[c].link,b[c].linktarget,b[c].title,b[c].description,e,b[c].width&&!isNaN(parseInt(b[c].width))?parseInt(b[c].width):d.options.width,b[c].height&&!isNaN(parseInt(b[c].height))?parseInt(b[c].height):d.options.height,b[c].poster,b[c].hd,b[c].hdogg,b[c].hdwebm,b[c].duration,b[c].lightboxwidth,b[c].lightboxheight,b[c].youtubeapikey,b[c].youtubeplaylistid,
77b[c].youtubeplaylistmaxresults,b[c].lightbox])}d.readTags();a(d)})):this.options.youtubechannel?(c={alt:"json",v:2,orderby:this.options.youtubechannel.orderby?this.options.youtubechannel.orderby:"published","start-index":this.options.youtubechannel["start-index"]?this.options.youtubechannel["start-index"]:1,"max-results":this.options.youtubechannel["max-results"]?this.options.youtubechannel["max-results"]:10},this.options.youtubechannel.author?c.author=this.options.youtubechannel.author:this.options.youtubechannel.q&&
78(c.q=this.options.youtubechannel.q),c="https://gdata.youtube.com/feeds/api/videos?"+b.param(c),d=this,b.getJSON(c,function(b){if(b&&b.feed&&b.feed.entry)for(var c=1;c<b.feed.entry.length;c++)d.elemArray.push([c,"https://img.youtube.com/vi/"+b.feed.entry[
78c].media$group.yt$videoid.$t+"/"+d.options.youtubethumb,b.feed.entry[c].media$group.media$player.url,null,null,null,null,b.feed.entry[c].media$group.media$title.$t,b.feed.entry[c].media$group.media$description.$t,9,640,480,"https://img.youtube.com/vi/"+
79b.feed.entry[c].media$group.yt$videoid.$t+"/"+d.options.youtubeimage,null,null,null,null]);d.readTags();a(d)})):this.options.youtubeapikey&&this.options.youtubeplaylistid?(d=this,this.getYouTubePlaylist(this.options.youtubeapikey,this.options.youtubeplaylistid,this.options.youtubeplaylistmaxresults,-1,function(){d.readTags();a(d)},this,null)):(this.readTags(),a(this))},readTags:function(){var a=this;(b("img.html5galleryimg",this.container).length?b("img.html5galleryimg",this.container):b("img",this.container)).each(function(){var c=
80b(this).attr("src");c||(c=b(this).get(0).src);for(var d=a.options.lazyloadtags.split(","),e=0;e<d.length;e++)if(b(this).data(d[e])&&0<b(this).data(d[e]).length){c=b(this).data(d[e]);break}var d=c,e=b(this).data("title")?b(this).data("title"):b(this).attr("alt"),f=b(this).data("description")?b(this).data("description"):b(this).data("information"),j=b(this).attr("alt")?b(this).attr("alt"):b(this).data("title");e||(e="");f||(f="");j||(j="");var l=a.options.width,g=a.options.height,w=b(this).data("duration")?
81b(this).data("duration"):0,k=null,p=null,q=null,s=null,u=null,v=null,y=null,x=null,A=null,z=null,H=null,E=null,N=null,m=!1,t=b(this).closest("a.html5galleryimglink");0>=t.length&&(t=b(this).parent());t.is("a")&&(d=t.attr("href"),k=t.data("ogg"),p=t.data("webm"),q=t.data("link"),s=t.data("linktarget"),u=t.data("poster"),isNaN(t.data("width"))||(l=t.data("width")),isNaN(t.data("height"))||(g=t.data("height")),v=t.data("hd"),y=t.data("hdogg"),x=t.data("hdwebm"),A=t.data("lightboxwidth"),z=t.data("lightboxheight"),
82H=t.data("youtubeapikey"),E=t.data("youtubeplaylistid"),N=t.data("youtubeplaylistmaxresults"),m=t.hasClass("html5gallerylightbox"));var J=t.data("mediatype")?t.data("mediatype"):a.checkType(d),n=t.data("vtt")?t.data("vtt"):"",P=t.data("vttlang")?t.data("vttlang"):a.options.vttlang,t=t.data("vttlabel")?t.data("vttlabel"):a.options.vttlabel;a.elemArray.push([a.elemArray.length,c,d,k,p,q,s,e,f,J,l,g,u,v,y,x,w,A,z,H,E,N,m,l,g,j,n,P,t])})},getYouTubePlaylist:function(a,c,d,e,f,j,l){0<=e&&j.elemArray.splice(e,
831);var g="https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId="+c+"&key="+a;d&&(g=50<d?g+"&maxResults=50":g+("&maxResults="+d));l&&(g+="&pageToken="+l);var w=!0;b.getJSON(g,function(b){if(b&&b.items)for(var g=0;g<b.items.length;g++){var l=b.items[g].snippet.resourceId.videoId,k="https://img.youtube.com/vi/"+l+"/"+j.options.youtubeimage;j.options.youtubeplaylistusemaxres&&(b.items[g].snippet.thumbnails&&b.items[g].snippet.thumbnails.maxres)&&(k=b.items[g].snippet.thumbnails.maxres.url);
84l=[g,"https://img.youtube.com/vi/"+l+"/"+j.options.youtubethumb,"https://www.youtube.com/embed/"+l,null,null,null,null,b.items[g].snippet.title,b.items[g].snippet.description,9,640,480,k,null,null,null,null];0<=e?(j.elemArray.splice(e,0,l),e++):j.elemArray.push(l)}b&&(b.nextPageToken&&d&&50<d)&&(w=!1,j.getYouTubePlaylist(a,c,d-50,e,f,j,b.nextPageToken))}).always(function(){w&&f(j)})},processElemArray:function(a){for(var b=!1,d=0;d<a.elemArray.length;d++)a.elemArray[d][25]||(a.elemArray[d][25]=a.elemArray[d][7]);
85for(d=0;d<a.elemArray.length;d++)if(13==a.elemArray[d][9]&&a.elemArray[d][19]&&a.elemArray[d][20]){b=!0;break}b?a.getYouTubePlaylist(a.elemArray[d][19],a.elemArray[d][20],a.elemArray[d][21],d,a.processElemArray,a,null):a.init(a)},createMarkup:function(){this.$gallery=jQuery("<div class='html5gallery-container-"+this.id+"'><div class='html5gallery-box-"+this.id+"'><div class='html5gallery-elem-"+this.id+"'></div><div class='html5gallery-title-"+this.id+"'></div><div class='html5gallery-timer-"+this.id+
86"'></div><div class='html5gallery-viral-"+this.id+"'></div><div class='html5gallery-toolbox-"+this.id+"'><div class='html5gallery-toolbox-bg-"+this.id+"'></div><div class='html5gallery-toolbox-buttons-"+this.id+"'><div class='html5gallery-play-"+this.id+"'></div><div class='html5gallery-pause-"+this.id+"'></div><div class='html5gallery-left-"+this.id+"'></div><div class='html5gallery-right-"+this.id+"'></div><div class='html5gallery-lightbox-"+this.id+"'></div></div></div></div><div class='html5gallery-car-"+
87this.id+"'><div class='html5gallery-car-list-"+this.id+"'><div class='html5gallery-car-mask-"+this.id+"'><div class='html5gallery-thumbs-"+this.id+"'></div></div><div class='html5gallery-car-slider-bar-"+this.id+"'><div class='html5gallery-car-slider-bar-top-"+this.id+"'></div><div class='html5gallery-car-slider-bar-middle-"+this.id+"'></div><div class='html5gallery-car-slider-bar-bottom-"+this.id+"'></div></div><div class='html5gallery-car-left-"+this.id+"'></div><div class='html5gallery-car-right-"+
88this.id+"'></div><div class='html5gallery-car-slider-"+this.id+"'></div></div></div></div>");this.$gallery.appendTo(this.container);this.options.socialurlforeach||this.createSocialMedia();this.options.googleanalyticsaccount&&!window._gaq&&(window._gaq=window._gaq||[],window._gaq.pu
88sh(["_setAccount",this.options.googleanalyticsaccount]),window._gaq.push(["_trackPageview"]),b.getScript("https://ssl.google-analytics.com/ga.js"))},createSocialMedia:function(){b(".html5gallery-viral-"+this.id,this.$gallery).empty();
89var a=window.location.href;this.options.socialurlforeach&&(a+=(0>window.location.href.indexOf("?")?"?":"&")+"html5galleryid="+this.elemArray[this.curElem][0]);if(this.options.showsocialmedia&&this.options.showfacebooklike){var c="<div style='display:block; float:left; width:110px; height:21px;'><iframe src='https://www.facebook.com/plugins/like.php?href=",c=this.options.facebooklikeurl&&0<this.options.facebooklikeurl.length?c+encodeURIComponent(this.options.facebooklikeurl):c+a;b(".html5gallery-viral-"+
90this.id,this.$gallery).append(c+"&amp;send=false&amp;layout=button_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21' scrolling='no' frameborder='0' style='border:none;;overflow:hidden; width:110px; height:21px;' allowTransparency='true'></iframe></div>")}this.options.showsocialmedia&&this.options.showtwitter&&(c="<div style='display:block; float:left; width:110px; height:21px;'><a href='https://twitter.com/share' class='twitter-share-button'",c=
91this.options.twitterurl&&0<this.options.twitterurl.length?c+(" data-url='"+this.options.twitterurl+"'"):c+(" data-url='"+a+"'"),this.options.twitterusername&&0<this.options.twitterusername.length&&(c+=" data-via='"+this.options.twittervia+"' data-related='"+this.options.twitterusername+"'"),b(".html5gallery-viral-"+this.id,this.$gallery).append(c+">Tweet</a></div>"),b.getScript("https://platform.twitter.com/widgets.js"));this.options.showsocialmedia&&this.options.showgoogleplus&&(c="<div style='display:block; float:left; width:100px; height:21px;'><div class='g-plusone' data-size='medium'",
92c=this.options.googleplusurl&&0<this.options.googleplusurl.length?c+(" data-href='"+this.options.googleplusurl+"'"):c+(" data-href='"+a+"'"),b(".html5gallery-viral-"+this.id,this.$gallery).append(c+"></div></div>"),b.getScript("https://apis.google.com/js/plusone.js"))},playGallery:function(){b(".html5gallery-play-"+this.id,this.$gallery).hide();b(".html5gallery-pause-"+this.id,this.$gallery).show();this.isPaused=!1;this.slideshowTimeout.setInterval(this.elemArray[this.curElem][16]?this.elemArray[this.curElem][16]:
93this.options.slideshowinterval);this.slideshowTimeout.start();b(".html5gallery-timer-"+this.id,this.$gallery).css({width:0})},pauseGallery:function(){b(".html5gallery-play-"+this.id,this.$gallery).show();b(".html5gallery-pause-"+this.id,this.$gallery).hide();this.isPaused=!0;this.slideshowTimeout.stop();b(".html5gallery-timer-"+this.id,this.$gallery).css({width:0})},createSliderTimeout:function(){var a=this;a.slideshowTimeout=new HTML5GalleryTimer(a.options.slideshowinterval,function(){a.slideRun(-1)},
94a.options.showtimer?function(b){a.updateTimer(b)}:null);a.options.pauseonmouseover&&b(".html5gallery-elem-"+this.id,this.$gallery).hover(function(){a.isPaused||a.slideshowTimeout.pause()},function(){a.isPaused||a.slideshowTimeout.resume(!1)})},updateTimer:function(a){this.isFullscreen?(a=Math.max(0,Math.floor(b(".html5gallery-fullscreen-elem-wrapper-"+this.id,this.$fullscreen).width()*a)),b(".html5gallery-fullscreen-timer-"+this.id,this.$fullscreen).css({width:a+"px"})):(a=Math.max(0,Math.floor(b(".html5gallery-elem-"+
95this.id,this.$gallery).width()*a)),b(".html5gallery-timer-"+this.id,this.$gallery).css({width:a+"px"}))},createEvents:function(){var a=this;b(".html5gallery-play-"+this.id,this.$gallery).click(function(){a.playGallery()});b(".html5gallery-pause-"+this.id,this.$gallery).click(function(){a.pauseGallery()});b(".html5gallery-lightbox-"+this.id,this.$gallery).click(function(){a.goFullscreen()});b(".html5gallery-left-"+this.id,this.$gallery).click(function(){a.slideRun(-2,!0)});b(".html5gallery-right-"+
96this.id,this.$gallery).click(function(){a.slideRun(-1,!0)});if(a.options.enabletouchswipe){var c=a.options.isAndroid&&a.options.enabletouchswipeonandroid?!0:!1;b(".html5gallery-box-"+this.id,this.$gallery).touchSwipe({preventWebBrowser:c,swipeLeft:function(){a.disableTouchSwipe||a.slideRun(-1,!0)},swipeRight:function(){a.disableTouchSwipe||a.slideRun(-2,!0)}})}if(!("ontouchstart"in window)||!a.options.disablehovereventontouch)b(".html5gallery-box-"+this.id,this.$gallery).mousemove(function(){if("mouseover"==
97a.options.imagetoolboxmode){var c=a.elemArray[a.curElem][9];("always"==a.options.showimagetoolbox||"image"==a.options.showimagetoolbox&&1==c)&&a.showimagetoolbox(c,!0)}
97if(a.options.titleoverlay&&a.options.titleautohide&&(!a.options.hidetitlewhenvideoisplaying||!a.isVideoPlaying))b(".html5gallery-title-"+a.id,a.$gallery).show(),clearTimeout(a.hideTitleTimeout),a.hideTitleTimeout=setTimeout(function(){b(".html5gallery-title-"+a.id,a.$gallery).fadeOut()},3E3)}),b(".html5gallery-box-"+this.id,this.$gallery).hover(function(){a.onSlideshowOver();
98if("mouseover"==a.options.imagetoolboxmode){var c=a.elemArray[a.curElem][9];("always"==a.options.showimagetoolbox||"image"==a.options.showimagetoolbox&&1==c)&&a.showimagetoolbox(c)}if(a.options.titleoverlay&&a.options.titleautohide&&(!a.options.hidetitlewhenvideoisplaying||!a.isVideoPlaying))b(".html5gallery-title-"+a.id,a.$gallery).fadeIn(),clearTimeout(a.hideTitleTimeout),a.hideTitleTimeout=setTimeout(function(){b(".html5gallery-title-"+a.id,a.$gallery).fadeOut()},3E3)},function(){"mouseover"==
99a.options.imagetoolboxmode&&a.hideimagetoolbox();a.options.titleoverlay&&a.options.titleautohide&&(b(".html5gallery-title-"+a.id,a.$gallery).fadeOut(),clearTimeout(a.hideTitleTimeout))});b(".html5gallery-car-left-"+this.id,this.$gallery).css({"background-position":"-"+String(2*this.options.carouselarrowwidth)+"px 0px",cursor:""});b(".html5gallery-car-left-"+this.id,this.$gallery).data("disabled",!0);b(".html5gallery-car-right-"+this.id,this.$gallery).css({"background-position":"0px 0px"});b(".html5gallery-car-left-"+
100this.id,this.$gallery).click(function(){b(this).data("disabled")||(a.disableupdatecarousel=!0,a.updateCarouselTimeout=setTimeout(function(){a.enableUpdateCarousel()},a.options.updatecarouselinterval),a.carouselPrev())});b(".html5gallery-car-right-"+this.id,this.$gallery).click(function(){b(this).data("disabled")||(a.disableupdatecarousel=!0,a.updateCarouselTimeout=setTimeout(function(){a.enableUpdateCarousel()},a.options.updatecarouselinterval),a.carouselNext())});b(".html5gallery-car-slider-"+this.id,
101this.$gallery).on("drag",function(b,c){a.disableupdatecarousel=!0;a.updateCarouselTimeout=setTimeout(function(){a.enableUpdateCarousel()},a.options.updatecarouselinterval);a.carouselSliderDrag(b,c)});b(".html5gallery-car-slider-bar-"+this.id,this.$gallery).click(function(b){a.disableupdatecarousel=!0;a.updateCarouselTimeout=setTimeout(function(){a.enableUpdateCarousel()},a.options.updatecarouselinterval);a.carouselBarClicked(b)});if("vertical"==this.options.skin||"verticallight"==this.options.skin||
102"showcase"==this.options.skin||"verticalwithleft"==this.options.skin||"verticallightwithleft"==this.options.skin)b(".html5gallery-car-list-"+this.id,this.$gallery).on("DOMMouseScroll mousewheel wheel",function(c){c.preventDefault();var e=a.elemArray.length*(a.options.thumbheight+a.options.thumbgap);if(!(e<a.options.thumbMaskHeight)){var e=-1*(e-a.options.thumbMaskHeight),f=0;c.originalEvent&&(c.originalEvent.wheelDeltaY?f=c.originalEvent.wheelDeltaY:c.originalEvent.detail?f=-20*c.originalEvent.detail:
103c.originalEvent.wheelDelta?f=c.originalEvent.wheelDelta:c.originalEvent.deltaY&&(f=a.options.isFirefox?-10*c.originalEvent.deltaY:-1*c.originalEvent.deltaY));c=parseInt(b(".html5gallery-thumbs-"+a.id,a.$gallery).css("marginTop"))+f;0<c&&(c=0);c<e&&(c=e);e=(a.options.carouselSliderMax-a.options.carouselSliderMin)*c/e;b(".html5gallery-car-slider-"+a.id,a.$gallery).css({top:e});b(".html5gallery-thumbs-"+a.id,a.$gallery).css({marginTop:c})}});"ontouchstart"in window||(b(".html5gallery-car-left-"+this.id,
104this.$gallery).hover(function(){b(this).data("disabled")||b(this).css({"background-position":"-"+a.options.carouselarrowwidth+"px 0px"})},function(){b(this).data("disabled")||b(this).css({"background-position":"0px 0px"})}),b(".html5gallery-car-right-"+this.id,this.$gallery).hover(function(){b(this).data("disabled")||b(this).css({"background-position":"-"+a.options.carouselarrowwidth+"px 0px"})},function(){b(this).data("disabled")||b(this).css({"background-position":"0px 0px"})}));"ontouchstart"in
105window&&("vertical"==this.options.skin||"verticallight"==this.options.skin||"showcase"==this.options.skin||"verticalwithleft"==this.options.skin||"verticallightwithleft"==this.options.skin?b(".html5gallery-car-"+this.id,this.$gallery).touchSwipe({preventWebBrowser:!0,swipeTop:function(){b(".html5gallery-car-right-"+a.id,a.$gallery).click()},swipeBottom:function(){b(".html5gallery-car-left-"+a.id,a.$gallery).click()},instance:a,preventWebBrowserCallback:"verticalPreventWebBrowserCallback"}):b(".html5gallery-car-"+
106this.id,this.$gallery).touchSwipe({preventWebBrowser:!1,swipeLeft:function(){b(".html5gallery-car-right-"+a.id,a.$gallery).click()},swipeRight:function(){b(".html5gallery-car-left-"+a.id,a.$gallery).click()}}))},verticalPreventWebBrowserCallback:function(a){var c=parseInt(b(".html5gallery-thumbs-"+this.id,this.$gallery).css("margin-top"));return a?c>this.options.thumbMaskHeight-this.options.thumbTotalHeight:0>c},createStyle:function(){switch(this.options.skin){case "vertical":case "verticallight":case "verticalwithleft":case "verticallightwithleft":case "showcase":this.createStyleVertical();
107break;default:this.createStyleDefault()}},resizeStyleVertical:function(){if(this.container.parent()&&this.container.parent().width()){this.options.containerWidth=this.container.parent().width();this.options.totalWidth=this.options.containerWidth;if(this.options.carouselposresponsive){var a=b(window).width();a<this.options.carouselposresponsiveonscreenwidth?this.options.carouselposition="bottom":(this.options.carouselposition=this.options.originalcarouselposition,this.options.thumbwidth=this.options.originalthumbwidth)}this.options.showcarousel&&
108(this.options.carouselWidth="bottom"==this.options.carouselposition?this.options.width:this.options.thumbwidth);"bottom"==this.options.carouselposition?this.options.width=this.options.totalWidth-2*this.options.padding:(this.options.width=this.options.totalWidth-2*this.options.padding,0<this.options.carouselWidth+this.options.carouselmargin&&(this.options.width-=this.options.carouselWidth+this.options.carouselmargin));this.options.responsivefullscreen&&0<this.container.parent().height()?(this.options.containerHeight=
109this.container.parent().height(),this.options.totalHeight=this.options.containerHeight,this.options.height="bottom"==this.options.carouselposition?this.options.totalHeight-(this.options.headerHeight+2*this.options.padding+this.options.carouselheight):this.options.totalHeight-(this.options.headerHeight+2*this.options.padding)):(this.options.height=Math.round(this.options.width*this.options.originalHeight/this.options.originalWidth),this.options.totalHeight="bottom"==this.options.carouselposition?this.options.height+
110this.options.headerHeight+2*this.options.padding+this.options.carouselmargin+this.options.carouselHeight:this.options.height+this.options.headerHeight+2*this.options.padding,this.options.containerHeight=this.options.totalHeight);this.container.css({width:this.options.containerWidth,height:this.options.containerHeight});this.options.boxWidth=this.options.width;this.options.boxHeight=this.options.height+this.options.headerHeight;this.options.boxLeft=this.options.padding;this.options.slideshadow&&(this.options.boxWidth+=
1118);this.options.showcarousel&&("bottom"==this.options.carouselposition?(this.options.carouselWidth=this.options.width,this.options.carouselHeight=this.options.carouselheight,this.options.carouselLeft=this.options.padding,this.options.carouselTop=this.options.height+this.options.headerHeight+2*this.options.padding,this.options.carAreaLength=this.options.carouselHeight,this.options.carouselSlider=Math.floor(this.options.carAreaLength/(this.options.thumbheight+this.options.thumbgap))<this.elemArray.length,
112this.options.thumbwidth=this.options.width,this.options.carouselSlider&&(this.options.thumbwidth-=20)):(this.options.carouselWidth=this.options.thumbwidth,this.options.carouselHeight=this.options.height+this.options.headerHeight,this.options.carTop=0,this.options.carBottom=0,this.options.carAreaLength=this.options.carouselHeight-this.options.carTop-this.options.carBottom,this.options.carouselSlider=Math.floor(this.options.carAreaLength/(this.options.thumbheight+this.options.thumbgap))<this.elemArray.length,
113this.options.carouselSlider&&(this.options.carouselWidth+=20,this.options.width-=20,this.options.height=Math.round(this.options.width*this.options.originalHeight/this.options.originalWidth),this.options.boxWidth=this.options.width,this.options.boxHeight=this.options.height+this.options.headerHeight,this.options.carouselHeight=this.options.height+this.options.headerHeight,this.options.totalHeight=this.options.height+this.options.headerHeight+2*this.options.padding,this.options.containerHeight=this.options.totalHeight,
114this.options.slideshadow&&(this.options.boxWidth+=8),this.container.css({height:this.options.containerHeight})),"left"==this.options.carouselposition?(this.options.boxLeft=this.options.padding+this.options.carouselWidth+this.options.carouselmargin,this.options.carouselLeft=this.options.padding):this.options.carouselLeft=this.options.padding+this.options.width+this.options.carouselmargin,this.options.carouselTop=this.options.padding),b(".html5gallery-car-mask-"+this.id
114).css({width:this.options.thumbwidth+
115"px"}),b(".html5gallery-tn-"+this.id).css({width:this.options.thumbwidth+"px"}),b(".html5gallery-tn-selected-"+this.id).css({width:this.options.thumbwidth+"px"}),b(".html5gallery-car-slider-bar-"+this.id).css({left:String(this.options.thumbwidth+6)+"px"}),this.options.isMobile||this.isTouch&&this.options.splitvsliderontouch?(b(".html5gallery-car-left-"+this.id).css({left:String(this.options.thumbwidth+5)+"px"}),b(".html5gallery-car-right-"+this.id).css({left:String(this.options.thumbwidth+5)+"px"})):
116b(".html5gallery-car-slider-"+this.id).css({left:String(this.options.thumbwidth+5)+"px"}),a=this.options.thumbwidth-3*this.options.thumbmargin,this.options.thumbshowimage&&(a-=this.options.thumbimagewidth+2*this.options.thumbimageborder),this.options.thumbshowtitle&&b("head").append("<style type='text/css' data-creator='html5gallery'>.html5gallery-tn-title-"+this.id+" {width: "+a+"px;}</style>"));b(".html5gallery-container-"+this.id).css({width:this.options.totalWidth+"px",height:this.options.totalHeight+
117"px"});b(".html5gallery-box-"+this.id).css({width:this.options.boxWidth+"px",height:this.options.boxHeight+"px",left:this.options.boxLeft+"px"});a=this.elemArray[this.curElem][9];if(1==a||this.showingPoster){var c=this.showingPoster?this.elemArray[this.curElem][23]:this.elemArray[this.curElem][10],d=this.showingPoster?this.elemArray[this.curElem][24]:this.elemArray[this.curElem][11],e;this.isFullscreen?(a=this.elemArray[this.curElem][17]?Math.min(this.elemArray[this.curElem][17],this.fullscreenWidth):
118this.fullscreenWidth,e=this.elemArray[this.curElem][18]?Math.min(this.elemArray[this.curElem][18],this.fullscreenHeight):this.fullscreenHeight,e=Math.min(a/c,e/d),e=1<e?1:e):e="fill"==this.options.resizemode?Math.max(this.options.width/c,this.options.height/d):Math.min(this.options.width/c,this.options.height/d);a=Math.round(e*c);e=Math.round(e*d);var d=this.isFullscreen?a:this.options.width,c=this.isFullscreen?e:this.options.height,f=Math.round(d/2-a/2),j=Math.round(c/2-e/2);this.isFullscreen&&this.adjustFullscreen(d,
119c,!0);
119b(".html5gallery-elem-"+this.id).css({width:d+"px",height:c+"px"});b(".html5gallery-elem-img-"+this.id).css({width:d+"px",height:c+"px"});b(".html5gallery-elem-image-"+this.id).css({width:a+"px",height:e+"px",top:j+"px",left:f+"px"})}else if(12==a||5==a||6==a||7==a||8==a||9==a||10==a||11==a)d=this.elemArray[this.curElem][10],c=this.elemArray[this.curElem][11],this.isFullscreen?(a=this.elemArray[this.curElem][17]?Math.min(this.elemArray[this.curElem][17],this.fullscreenWidth):this.fullscreenWidth,
120e=this.elemArray[this.curElem][18]?Math.min(this.elemArray[this.curElem][18],this.fullscreenHeight):this.fullscreenHeight,e=Math.min(a/d,e/c),e=1<e?1:e,d=Math.round(e*d),c=Math.round(e*c),this.adjustFullscreen(d,c,!0)):(d=this.options.width,c=this.options.height),b(".html5gallery-elem-"+this.id).css({width:d+"px",height:c+"px"}),b(".html5gallery-elem-video-"+this.id).css({width:d+"px",height:c+"px"}),b(".html5gallery-elem-video-container-"+this.id).css({width:"100%",height:"100%"}),b(".html5gallery-elem-video-container-"+
121this.id).find("video").css({width:"100%",height:"100%"}),b("#html5gallery-elem-video-"+this.id).css({width:d+"px",height:c+"px"}),b("#html5gallery-elem-video-"+this.id).attr("width",d),b("#html5gallery-elem-video-"+this.id).attr("height",c),b(".html5gallery-elem-video-"+this.id).find("iframe").attr("width",d),b(".html5gallery-elem-video-"+this.id).find("iframe").attr("height",c),b("#html5gallery-elem-video-"+this.id).find("iframe").attr("width",d),b("#html5gallery-elem-video-"+this.id).find("iframe").attr("height",
122c),b(".html5gallery-elem-iframe-"+this.id).css({width:d+"px",height:c+"px"}),b(".html5gallery-elem-iframe-"+this.id).find("iframe").attr("width",d),b(".html5gallery-elem-iframe-"+this.id).find("iframe").attr("height",c);e=d=0;"bottom"==this.options.headerpos&&(d=this.options.titleoverlay?this.options.height-this.options.titleheight:this.options.height,e=this.options.titleoverlay?this.options.height:this.options.height+this.options.titleheight);a=this.options.slideshadow?this.options.boxWidth-8:this.options.boxWidth;
123b(".html5gallery-title-"+this.id).css({width:a+"px"});this.options.titleoverlay||b(".html5gallery-title-"+this.id).css({top:d+"px"});b(".html5gallery-viral-"+this.id).css({top:e+"px"});b(".html5gallery-timer-"+this.id).css({top:String(this.options.elemTop+this.options.height-2)+"px"});this.options.showcarousel&&(b(".html5gallery-car-"+this.id).css({width:this.options.carouselWidth+"px",height:this.options.carouselHeight+"px",top:this.options.carouselTop+"px",left:this.options.carouselLeft+"px",top:this.options.carouselTop+
124"px"}),b(".html5gallery-car-list-"+this.id).css({top:this.options.carTop+"px",height:String(this.options.carAreaLength)+"px",width:this.options.carouselWidth+"px"}),this.options.thumbShowNum=Math.floor(this.options.carAreaLength/(this.options.thumbheight+this.options.thumbgap)),1>this.options.thumbShowNum&&(this.options.thumbShowNum=1),this.options.thumbMaskHeight=this.options.thumbShowNum*this.options.thumbheight+(this.options.thumbShowNum-1)*this.options.thumbgap,this.options.thumbTotalHeight=this.elemArray.length*
125this.options.thumbheight+(this.elemArray.length-1)*this.options.thumbgap,this.options.carouselSlider&&(this.options.carouselSliderMin=0,this.options.carouselSliderMax=this.options.thumbMaskHeight-54,b(".html5gallery-car-slider-bar-"+this.id).css({height:this.options.thumbMaskHeight+"px"}),b(".html5gallery-car-slider-bar-middle-"+this.id).css({height:String(this.options.thumbMaskHeight-32)+"px"}),(this.options.isMobile||this.isTouch&&this.options.splitvsliderontouch)&&b(".html5gallery-car-right-"+
126this.id).css({top:String(this.options.thumbMaskHeight-35)+"px"}),b(".html5gallery-car-slider-bar-"+this.id).css({display:"block"}),b(".html5gallery-car-left-"+this.id).css({display:"block"}
126),b(".html5gallery-car-right-"+this.id).css({display:"block"}),b(".html5gallery-car-slider-"+this.id).css({display:"block"})),a=0,this.options.carouselNavButton&&(a=Math.round(this.options.carAreaLength/2-this.options.thumbMaskHeight/2)),b(".html5gallery-car-mask-"+this.id).css({top:a+"px",height:this.options.thumbMaskHeight+
127"px"}),this.carouselHighlight(this.curElem))}},createStyleVertical:function(){this.options.originalcarouselposition=this.options.carouselposition;this.options.originalthumbwidth=this.options.thumbwidth;this.options.thumbimagewidth=this.options.thumbshowtitle?this.options.thumbheight-2*this.options.thumbimageborder-4:this.options.thumbwidth-2*this.options.thumbimageborder-4;this.options.thumbimageheight=this.options.thumbheight-2*this.options.thumbimageborder-4;this.options.showtitle||(this.options.titleheight=
1280);if(!this.options.showsocialmedia||!this.options.showfacebooklike&&!this.options.showtwitter&&!this.options.showgoogleplus)this.options.socialheight=0;this.options.headerHeight=this.options.titleoverlay?this.options.socialheight:this.options.titleheight+this.options.socialheight;this.options.boxWidth=this.options.width;this.options.boxHeight=this.options.height+this.options.headerHeight;this.options.boxLeft=this.options.padding;this.options.boxTop=this.options.padding;this.options.slideshadow&&
129(this.options.boxWidth+=8);this.options.showcarousel?"bottom"==this.options.carouselposition?(this.options.carouselWidth=this.options.width,this.options.carouselHeight=this.options.carouselheight,this.options.carouselLeft=this.options.padding,this.options.carouselTop=this.options.height+this.options.headerHeight+2*this.options.padding,this.options.carAreaLength=this.options.carouselHeight,this.options.carouselSlider=Math.floor(this.options.carAreaLength/(this.options.thumbheight+this.options.thumbgap))<
130this.elemArray.length,this.options.thumbwidth=this.options.width,this.options.carouselSlider&&(this.options.thumbwidth-=20)):(this.options.carouselWidth=this.options.thumbwidth,this.options.carouselHeight=this.options.height+this.options.headerHeight,this.options.carTop=0,this.options.carBottom=0,this.options.carAreaLength=this.options.carouselHeight-this.options.carTop-this.options.carBottom,this.options.carouselSlider=Math.floor(this.options.carAreaLength/(this.options.thumbheight+this.options.thumbgap))<
131this.elemArray.length,this.options.carouselSlider&&(this.options.carouselWidth+=20),"left"==this.options.carouselposition?(this.options.boxLeft=this.options.padding+this.options.carouselWidth+this.options.carouselmargin,this.options.carouselLeft=this.options.padding):this.options.carouselLeft=this.options.padding+this.options.width+this.options.carouselmargin,this.options.carouselTop=this.options.padding):(this.options.carouselWidth=0,this.options.carouselHeight=0,this.options.carouselLeft=0,this.options.carouselTop=
1320,this.options.carouselmargin=0);"bottom"==this.options.carouselposition?(this.options.totalWidth=this.options.width+2*this.options.padding,this.options.totalHeight=this.options.height+this.options.headerHeight+2*this.options.padding+this.options.carouselmargin+this.options.carouselHeight):(this.options.totalWidth=this.options.width+this.options.carouselWidth+this.options.carouselmargin+2*this.options.padding,this.options.totalHeight=this.options.height+this.options.headerHeight+2*this.options.padding);
133this.options.containerWidth=this.options.totalWidth;this.options.containerHeight=this.options.totalHeight;this.options.responsive?(this.options.originalWidth=this.options.width,this.options.originalHeight=this.options.height,this.container.css({"max-width":"100%"})):this.container.css({width:this.options.containerWidth,height:this.options.containerHeight});var a=0,c=0;this.options.elemTop=0;"top"==this.options.headerpos?(c=0,a=this.options.socialheight,this.options.elemTop=this.options.headerHeight):
134"bottom"==this.options.headerpos?(this.options.elemTop=0,a=this.options.titleoverlay?this.options.height-this.options.titleheight:this.options.height,c=this.options.titleoverlay?this.options.height:this.options.height+this.options.titleheight):"bottomoutside"==this.options.headerpos&&(a=this.options.showcarousel?this.options.height+this.options.carouselHeight:this.options.height);var d=" .html5gallery-container-"+this.id+" { display:block; position:absolute; left:0px; top:0px; width:"+this.options.totalWidth+
135"px; height:"+this.options.totalHeight+"px; "+(!this.options.bgimage?"":"background:url('"+this.options.bgimage+"') center top;")+" background-color:"+this.options.bgcolor+";}";this.options.galleryshadow&&(d+=" .html5gallery-container-"+this.id+" { -moz-box-shadow: 0px 2px 5px #aaa; -webkit-box-shadow: 0px 2px 5px #aaa; box-shadow: 0px 2px 5px #aaa;}");var d=d+(" .html5gallery-box-"+this.id+" {display:block; position:absolute; text-align:center; left:"+this.options.boxLeft+"px; top:"+this.options.boxTop+
136"px; width:"+this.options.boxWidth+"px; height:"+this.options.boxHeight+"px; }"),e=Math.round(this.options.socialheight/2-12),d=d+(" .html5gallery-title-text-"+this.id+" "+this.options.titlecss+" .html5gallery-title-text-"+this.id+" "+this.options.titlecsslink+" .html5gallery-error-"+this.id+" "+this.options.errorcss),d=d+(" .html5gallery-description-text-"+this.id+" "+this.options.descriptioncss+" .html5gallery-description-text-"+this.id+" "+this.options.descriptioncsslink),d=d+(" .html5gallery-fullscreen-title-"+
137this.id+""+this.options.lightboxtitlecss+" .html5gallery-fullscreen-title-"+this.id+""+this.options.lightboxtitlelinkcss),d=d+(" .html5gallery-fullscreen-description-"+this.id+""+this.options.lightboxdescriptioncss+" .html5gallery-fullscreen-description-"+this.id+""+this.options.lightboxdescriptionlinkcss),d=d+(" .html5gallery-viral-"+this.id+" {display:block; overflow:hidden; position:absolute; text-align:left; top:"+c+"px; left:0px; width:"+this.options.boxWidth+"px; height:"+this.options.socialheight+
138"px; padding-top:"+e+"px;}"),c=this.options.slideshadow?this.options.boxWidth-8:this.options.boxWidth,d=d+(" .html5gallery-title-"+this.id+" {display:"+(this.options.titleoverlay&&this.options.titleautohide?"none":"block")+"; overflow:hidden; position:absolute; left:0px; width:"+c+"px; "),d=this.options.titleoverlay?"top"==this.options.headerpos?d+"top:0px; height:auto; }":d+"bottom:0px; height:auto; }":d+("top:"+a+"px; height:"+this.options.titleheight+"px; }"),d=d+(" .html5gallery-timer-"+this.id+
139" {display:block; position:absolute; top:"+String(this.options.elemTop+this.options.height-2)+"px; left:0px; width:0px; height:2px; background-color:#ccc; filter:alpha(opacity=60); opacity:0.6; }"),d=d+(" .html5gallery-elem-"+this.id+" {display:block; overflow:hidden; position:absolute; top:"+this.options.elemTop+"px; left:0px; width:"+this.options.boxWidth+"px; height:"+this.options.height+"px;}");this.options.isIE7||this.options.isIE6?(d+=" .html5gallery-loading-"+this.id+" {display:none; }",d+=
140" .html5gallery-loading-center-"+this.id+" {display:none; }"):(d+=" .html5gallery-loading-"+this.id+" {display:block; position:absolute; top:4px; right:4px; width:100%; height:100%; background:url('"+this.options.skinfolder+"loading.gif') no-repeat top right;}",d+=" .html5gallery-loading-center-"+this.id+" {display:block; position:absolute; top:0px; left:0px; width:100%; height:100%; background:url('"+this.options.skinfolder+"loading_center.gif') no-repeat center center;}");
1400<this.options.borderradius&&
141(d+=" .html5gallery-elem-"+this.id+" { overflow:hidden; border-radius:"+this.options.borderradius+"px; -moz-border-radius:"+this.options.borderradius+"px; -webkit-border-radius:"+this.options.borderradius+"px;}");this.options.slideshadow&&(d+=" .html5gallery-title-"+this.id+" { padding:4px;}",d+=" .html5gallery-timer-"+this.id+" { margin:4px;}",d+=" .html5gallery-elem-"+this.id+" { overflow:hidden; padding:4px; -moz-box-shadow: 0px 2px 5px #aaa; -webkit-box-shadow: 0px 2px 5px #aaa; box-shadow: 0px 2px 5px #aaa;}");
142this.options.showcarousel?(d+=" .html5gallery-car-"+this.id+" { position:absolute; display:block; overflow:hidden; width:"+this.options.carouselWidth+"px; height:"+this.options.carouselHeight+"px; left:"+this.options.carouselLeft+"px; top:"+this.options.carouselTop+"px; }",d+=" .html5gallery-car-list-"+this.id+" { position:absolute; display:block; overflow:hidden; top:"+this.options.carTop+"px; height:"+String(this.options.carAreaLength)+"px; left:0px; width:"+this.options.carouselWidth+"px; }",d+=
143".html5gallery-thumbs-"+this.id+" {margin-top:0px; height:"+String(this.elemArray.length*(this.options.thumbheight+this.options.thumbgap))+"px;}",this.options.thumbShowNum=Math.floor(this.options.carAreaLength/(this.options.thumbheight+this.options.thumbgap)),1>this.options.thumbShowNum&&(this.options.thumbShowNum=1),this.options.thumbMaskHeight=this.options.thumbShowNum*this.options.thumbheight+(this.options.thumbShowNum-1)*this.options.thumbgap,this.options.thumbTotalHeight=this.elemArray.length*
144this.options.thumbheight+(this.elemArray.length-1)*this.options.thumbgap,this.options.carouselSliderMin=0,this.options.carouselSliderMax=this.options.thumbMaskHeight-54,d+=" .html5gallery-car-slider-bar-"+this.id+" { position:absolute; display:"+(this.options.carouselSlider?"block":"none")+"; overflow:hidden; top:0px; height:"+this.options.thumbMaskHeight+"px; left:"+String(this.options.thumbwidth+6)+"px; width:14px;}",d+=" .html5gallery-car-slider-bar-top-"+this.id+" { position:absolute; display:block; top:0px; left:0px; width:14px; height:16px; background:url('"+
145this.options.skinfolder+"bartop.png')}",d+=" .html5gallery-car-slider-bar-middle-"+this.id+" { position:absolute; display:block; top:16px; left:0px; width:14px; height:"+String(this.options.thumbMaskHeight-32)+"px; background:url('"+this.options.skinfolder+"bar.png')}",d+=" .html5gallery-car-slider-bar-bottom-"+this.id+" { position:absolute; display:block; bottom:0px; left:0px; width:14px; height:16px; background:url('"+this.options.skinfolder+"barbottom.png')}",d=this.options.isMobile||this.isTouch&&
146this.options.splitvsliderontouch?d+(" .html5gallery-car-left-"+this.id+" { position:absolute; display:"+(this.options.carouselSlider?"block":"none")+"; cursor:pointer; overflow:hidden; width:16px; height:35px; left:"+String(this.options.thumbwidth+5)+"px; top:0px; background:url('"+this.options.skinfolder+"slidertop.png')}  .html5gallery-car-right-"+this.id+" { position:absolute; display:"+(this.options.carouselSlider?"block":"none")+"; cursor:pointer; overflow:hidden; width:16px; height:35px; left:"+
147String(this.options.thumbwidth+5)+"px; top:"+String(this.options.thumbMaskHeight-35)+"px; background:url('"+this.options.skinfolder+"sliderbottom.png')} "):d+(" .html5gallery-car-slider-"+this.id+" { position:absolute; display:"+(this.options.carouselSlider?"block":"none")+"; overflow:hidden; cursor:pointer; top:0px; height:54px; left:"+String(this.options.thumbwidth+5)+"px; width:16px; background:url('"+this.options.skinfolder+"slider.png');}"),a=0,this.options.carouselNavButton&&(a=Math.round(this.options.carAreaLength/
1482-this.options.thumbMaskHeight/2)),d+=" .html5gallery-car-mask-"+this.id+" { position:absolute; display:block; overflow:hidden; top:"+a+"px; height:"+this.options.thumbMaskHeight+"px; left:0px; width:"+this.options.thumbwidth+"px;} ",a=this.options.thumbheight,this.options.isIE||(a=this.options.thumbheight-2),d+=" .html5gallery-tn-"+this.id+" { display:block; margin-bottom:"+this.options.thumbgap+"px; text-align:center; cursor:pointer; width:"+this.options.thumbwidth+"px;height:"+a+"px;overflow:hidden;",
149this.options.carouselbgtransparent?d+="background-color:transparent;":(this.options.isIE||(d+="border-top:1px solid "+this.options.carouseltopborder+"; border-bottom:1px solid "+this.options.carouselbottomborder+";"),d+="background-color: "+this.options.carouselbgcolorend+"; background: "+this.options.carouselbgcolorend+" -webkit-gradient(linear, left top, left bottom, from("+this.options.carouselbgcolorstart+"), to("+this.options.carouselbgcolorend+")) no-repeat; background: "+this.options.carouselbgcolorend+
150" -moz-linear-gradient(top, "+this.options.carouselbgcolorstart+", "+this.options.carouselbgcolorend+") no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="+this.options.carouselbgcolorstart+", endColorstr="+this.options.carouselbgcolorend+") no-repeat; -ms-filter: 'progid:DXImageTransform.Microsoft.gradient(startColorstr="+this.options.carouselbgcolorstart+", endColorstr="+this.options.carouselbgcolorend+")' no-repeat;"),this.options.carouselbgimage&&(d+="background:url('"+
151this.options.skinfolder+this.options.carouselbgimage+"') center top;"),d=d+"}"+(" .html5gallery-tn-selected-"+this.id+" { display:block; margin-bottom:"+this.options.thumbgap+"px;text-align:center; cursor:pointer; width:"+this.options.thumbwidth+"px;height:"+a+"px;overflow:hidden;"),this.options.carouselbgtransparent?d+="background-color:transparent;":(this.options.isIE||(d+="border-top:1px solid "+this.options.carouselhighlighttopborder+"; border-bottom:1px solid "+this.options.carouselhighlightbottomborder+
152";"),d+="background-color: "+this.options.carouselhighlightbgcolorend+"; background: "+this.options.carouselhighlightbgcolorend+" -webkit-gradient(linear, left top, left bottom, from("+this.options.carouselhighlightbgcolorstart+"), to("+this.options.carouselhighlightbgcolorend+")) no-repeat; background: "+this.options.carouselhighlightbgcolorend+" -moz-linear-gradient(top, "+this.options.carouselhighlightbgcolorstart+", "+this.options.carouselhighlightbgcolorend+") no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="+
153this.options.carouselhighlightbgcolorstart+", endColorstr="+this.options.carouselhighlightbgcolorend+") no-repeat; -ms-filter: 'progid:DXImageTransform.Microsoft.gradient(startColorstr="+this.options.carouselhighlightbgcolorstart+", endColorstr="+this.options.carouselhighlightbgcolorend+")' no-repeat;"),this.options.carouselbgimage&&(d+="background:url('"+this.options.skinfolder+this.options.carouselbgimage+"') center top;"),d+="}",d+=" .html5gallery-tn-selected-"+this.id+" .html5gallery-tn-img-"+
154this.id+" {background-color:"+this.options.thumbimagebordercolor+";} .html5gallery-tn-"+this.id+" { filter:alpha(opacity="+Math.round(100*this.options.thumbopacity)+"); opacity:"+this.options.thumbopacity+"; }  .html5gallery-tn-selected-"+this.id+" { filter:alpha(opacity=100); opacity:1; } ",c=this.options.thumbwidth-3*this.options.thumbmargin,this.options.thumbshowimage?(c-=this.options.thumbimagewidth+2*this.options.thumbimageborder,a=this.options.thumbshowtitle?this.options.thumbmargin:this.options.thumbwidth/
1552-(this.options.thumbimagewidth+2*this.options.thumbimageborder)/2,e=Math.round((this.options.thumbheight-2)/2-(this.options.thumbimageheight+2*this.options.thumbimageborder)/2),d+=" .html5gallery-tn-img-"+this.id+" {display:block; overflow:hidden; float:left; margin-top:"+e+"px; margin-left:"+a+"px; width:"+String(this.options.thumbimagewidth+2*this.options.thumbimageborder)+"px;height:"+String(this.options.thumbimageheight+2*this.options.thumbimageborder)+"px;}"):d+=" .html5gallery-tn-img-"+this.id+
156" {display:none;}",this.options.thumbshowtitle?(d+=" .html5gallery-tn-title-"+this.id+" {display:block; overflow:hidden; float:left; margin-top:0px; margin-left:"+this.options.thumbmargin+"px; width:"+c+"px;height:"+String(this.options.thumbheight-2)+"px;"+(this.options.thumbshowdescription?"":"line-height:"+String(this.options.thumbheight-2)+"px;")+"}",d+=" .html5gallery-tn-title-"+this.id+this.options.thumbtitlecss,d+=" .html5gallery-tn-description-"+this.id+this.options.thumbdescriptioncss):(d+=
157" .html5gallery-tn-title-"+this.id+" {display:none;}",d+=" .html5gallery-tn-description-"+this.id+" {display:none;}"),this.carouselHighlight=function(a){b("#html5gallery-tn-"+this.id+"-"+a,this.$gallery).removeClass("html5gallery-tn-"+this.id
157).addClass("html5gallery-tn-selected-"+this.id);if(!(this.options.thumbShowNum>=this.elemArray.length)){a=Math.floor(a/this.options.thumbShowNum)*this.options.thumbShowNum*(this.options.thumbheight+this.options.thumbgap);a>=this.options.thumbTotalHeight-this.options.thumbMaskHeight&&
158(a=this.options.thumbTotalHeight-this.options.thumbMaskHeight);var c=a/(this.elemArray.length*(this.options.thumbheight+this.options.thumbgap)-this.options.thumbMaskHeight),c=c*(this.options.carouselSliderMax-this.options.carouselSliderMin);b(".html5gallery-car-slider-"+this.id,this.$gallery).stop(!0).animate({top:c},300);b(".html5gallery-thumbs-"+this.id,this.$gallery).stop(!0).animate({marginTop:-1*a},300);this.updateCarouseButtons(-a)}},this.carouselBarClicked=function(a){var c=b(".html5gallery-thumbs-"+
159this.id,this.$gallery);a.pageY>b(".html5gallery-car-slider-"+this.id,this.$gallery).offset().top?(a=-1*parseInt(c.css("margin-top"))+this.options.thumbShowNum*(this.options.thumbheight+this.options.thumbgap),a>=this.options.thumbTotalHeight-this.options.thumbMaskHeight&&(a=this.options.thumbTotalHeight-this.options.thumbMaskHeight)):(a=-1*parseInt(c.css("margin-top"))-this.options.thumbShowNum*(this.options.thumbheight+this.options.thumbgap),0>a&&(a=0));c.stop(!0).animate({marginTop:-a},500);this.updateCarouseButtons(-a);
160a=a*(this.options.carouselSliderMax-this.options.carouselSliderMin)/(this.elemArray.length*(this.options.thumbheight+this.options.thumbgap)-this.options.thumbMaskHeight);a<this.options.carouselSliderMin&&(a=this.options.carouselSliderMin);a>this.options.carouselSliderMax&&(a=this.options.carouselSliderMax);b(".html5gallery-car-slider-"+this.id,this.$gallery).stop(!0).animate({top:a},500)},this.carouselSliderDrag=function(a,c){var d=c.offsetY-b(".html5gallery-car-slider-bar-"+this.id,this.$gallery).offset().top;
161d<this.options.carouselSliderMin&&(d=this.options.carouselSliderMin);d>this.options.carouselSliderMax&&(d=this.options.carouselSliderMax);b(".html5gallery-car-slider-"+this.id,this.$gallery).css({top:d});var e=this.elemArray.length*(this.options.thumbheight+this.options.thumbgap)-this.options.thumbMaskHeight,e=e*d/(this.options.carouselSliderMax-this.options.carouselSliderMin),e=Math.round(e/(this.options.thumbheight+this.options.thumbgap)),e=-1*e*(this.options.thumbheight+this.options.thumbgap);
162b(".html5gallery-thumbs-"+this.id,this.$gallery).stop(!0).animate({marginTop:e},300)},this.carouselPrev=function(){var a=b(".html5gallery-thumbs-"+this.id,this.$gallery);if(0!=parseInt(a.css("margin-top"))){var c=-1*parseInt(a.css("margin-top"))-this.options.thumbShowNum*(this.options.thumbheight+this.options.thumbgap);0>c&&(c=0);a.animate({marginTop:-c},500,this.options.carouseleasing);this.updateCarouseButtons(-c)}},this.carouselNext=function(){var a=b(".html5gallery-thumbs-"+this.id,this.$gallery);
163if(parseInt(a.css("margin-top"))!=-(this.options.thumbTotalHeight-this.options.thumbMaskHeight)){var c=-1*parseInt(a.css("margin-top"))+this.options.thumbShowNum*(this.options.thumbheight+this.options.thumbgap);c>=this.options.thumbTotalHeight-this.options.thumbMaskHeight&&(c=this.options.thumbTotalHeight-this.options.thumbMaskHeight);a.animate({marginTop:-c},500,this.options.carouseleasing);this.updateCarouseButtons(-c)}},this.updateCarouseButtons=function(a){var c=b(".html5gallery-car-left-"+this.id,
164this.$gallery),d=b(".html5gallery-car-right-"+this.id,this.$gallery),e=-1*(this.options.thumbTotalHeight-this.options.thumbMaskHeight);0==a?(c.css({"background-position":"-"+String(2*this.options.carouselarrowwidth)+"px 0px",cursor:""}),c.data("disabled",!0)):c.data("disabled")&&(c.css({"background-position":"0px 0px",cursor:"pointer"}),c.data("disabled",!1));a==e?(d.css({"background-position":"-"+String(2*this.options.carouselarrowwidth)+"px 0px",cursor:""}),d.data("disabled",!0)):d.data("disabled")&&
165(d.css({"background-position":"0px 0px",cursor:"pointer"}),d.data("disabled",!1))}):d+=" .html5gallery-car-"+this.id+" { display:none; }";d+=".html5gallery-container-"+this.id+" div {box-sizing:content-box;}";b("head").append("<style type='text/css' data-creator='html5gallery'>"+d+"</style>")},resizeImageToolbox:function(){if("center"!=this.options.imagetoolboxstyle){var a=Math.round(("bottom"==this.options.headerpos||"bottomoutside"==this.options.headerpos?0:this.options.headerHeight)+this.options.height/
1662-24),c=a+Math.round(this.options.height/2)-32,d=this.options.boxWidth-48,e=this.options.showfullscreenbutton?d-48:d;
166b(".html5gallery-play-"+this.id).css({top:c+"px",left:e+"px"});b(".html5gallery-pause-"+this.id).css({top:c+"px",left:e+"px"});b(".html5gallery-left-"+this.id).css({top:a+"px"});b(".html5gallery-right-"+this.id).css({top:a+"px",left:d+"px"});b(".html5gallery-lightbox-"+this.id).css({top:c+"px",left:d+"px"})}},createImageToolbox:function(){1>=this.elemArray.length&&(this.options.showplaybutton=
167this.options.showprevbutton=this.options.shownextbutton=!1);if("never"!=this.options.showimagetoolbox){var a;if("center"==this.options.imagetoolboxstyle)a=" .html5gallery-toolbox-"+this.id+" {display:"+("show"==this.options.imagetoolboxmode?"block":"none")+"; overflow:hidden; position:relative; margin:0px auto; text-align:center; height:40px;}",a+=" .html5gallery-toolbox-bg-"+this.id+" {display:block; left:0px; top:0px; width:100%; height:100%; position:absolute; filter:alpha(opacity=60); opacity:0.6; background-color:#222222; }",
168a+=" .html5gallery-toolbox-buttons-"+this.id+" {display:block; margin:0px auto; height:100%;}",a+=" .html5gallery-play-"+this.id+" { position:relative; float:left; display:"+("show"==this.options.imagetoolboxmode?"block":"none")+"; cursor:pointer; overflow:hidden; width:32px; height:32px; margin-left:2px; margin-right:2px; margin-top:"+Math.round(4)+"px; background:url('"+this.options.skinfolder+"play.png') no-repeat top left; } ",a+=" .html5gallery-pause-"+this.id+" { position:relative; float:left; display:"+
169("show"==this.options.imagetoolboxmode?"block":"none")+"; cursor:pointer; overflow:hidden; width:32px; height:32px; margin-left:2px; margin-right:2px; margin-top:"+Math.round(4)+"px; background:url('"+this.options.skinfolder+"pause.png') no-repeat top left; } ",a+=" .html5gallery-left-"+this.id+" { position:relative; float:left; display:"+("show"==this.options.imagetoolboxmode?"block":"none")+"; cursor:pointer; overflow:hidden; width:32px; height:32px; margin-left:2px; margin-right:2px; margin-top:"+
170Math.round(4)+"px; background:url('"+this.options.skinfolder+"prev.png') no-repeat top left; } ",a+=" .html5gallery-right-"+this.id+" { position:relative; float:left; display:"+("show"==this.options.imagetoolboxmode?"block":"none")+"; cursor:pointer; overflow:hidden; width:32px; height:32px; margin-left:2px; margin-right:2px; margin-top:"+Math.round(4)+"px; background:url('"+this.options.skinfolder+"next.png') no-repeat top left; } ",a+=" .html5gallery-lightbox-"+this.id+" {position:relative; float:left; display:"+
171("show"==this.options.imagetoolboxmode?"block":"none")+"; cursor:pointer; overflow:hidden; width:32px; height:32px; margin-left:2px; margin-right:2px; margin-top:"+Math.round(4)+"px; background:url('"+this.options.skinfolder+"lightbox.png') no-repeat top left; } ";else{var c=Math.round(("bottom"==this.options.headerpos?0:this.options.headerHeight)+this.options.height/2-24),d=c+Math.round(this.options.height/2)-32,e=this.options.width-54,f=this.options.showfullscreenbutton?e-48:e;a=" .html5gallery-toolbox-"+
172this.id+" {display:"+("show"==this.options.imagetoolboxmode?"block":"none")+";}";a+=" .html5gallery-toolbox-bg-"+this.id+" {display:none;}";a+=" .html5gallery-toolbox-buttons-"+this.id+" {display:block;}";a+=" .html5gallery-play-"+this.id+" { position:absolute; display:"+("show"==this.options.imagetoolboxmode?"block":"none")+"; cursor:pointer; top:"+d+"px; left:"+f+"px; width:48px; height:48px; background:url('"+this.options.skinfolder+"side_play.png') no-repeat top left;} ";a+=" .html5gallery-pause-"+
173this.id+" { position:absolute; display:"+("show"==this.options.imagetoolboxmode?"block":"none")+"; cursor:pointer; top:"+d+"px; left:"+f+"px; width:48px; height:48px; background:url('"+this.options.skinfolder+"side_pause.png') no-repeat top left;} ";a+=" .html5gallery-left-"+this.id+" { position:absolute; display:"+("show"==this.options.imagetoolboxmode?"block":"none")+"; cursor:pointer; top:"+c+"px; left:0px; width:48px; height:48px; background:url('"+this.options.skinfolder+"side_prev.png') no-repeat center center;} ";
174a+=" .html5gallery-right-"+this.id+" { position:absolute; display:"+("show"==this.options.imagetoolboxmode?"block":"none")+"; cursor:pointer; top:"+c+"px; left:"+e+"px; width:48px; height:48px; background:url('"+this.options.skinfolder+"side_next.png')  no-repeat center center;} ";a+=" .html5gallery-lightbox-"+this.id+" {position:absolute; display:"+("show"==this.options.imagetoolboxmode?"block":"none")+"; cursor:pointer; top:"+d+"px; left:"+e+"px; width:48px; height:48px; background:url('"+this.options.skinfolder+
175"side_lightbox.png') no-repeat top left;} "}b(".html5gallery-play-"+this.id,this.$gallery).hover(function(){b(this).css({"background-position":"right top"})},function(){b(this).css({"background-position":"left top"})});b(".html5gallery-pause-"+this.id,this.$gallery).hover(function(){b(this).css({"background-position":"right top"})},function(){b(this).css({"background-position":"left top"})});b(".html5gallery-left-"+this.id,this.$gallery).hover(function(){b(this).css({"background-position":"right top"})},
176function(){b(this).css({"background-position":"left top"})});b(".html5gallery-right-"+this.id,this.$gallery).hover(function(){b(this).css({"background-position":"right top"})},function(){b(this).css({"background-position":"left top"})});b(".html5gallery-lightbox-"+this.id,this.$gallery).hover(function(){b(this).css({"background-position":"right top"})},function(){b(this).css({"background-position":"left top"})});b("head").append("<style type='text/css' data-creator='html5gallery'>"+a+"</style>")}this.showimagetoolbox=
177function(a,c){if(this.options.showplaybutton||this.options.showprevbutton||this.options.shownextbutton||this.options.showfullscreenbutton){var d=this;clearTimeout(d.hideToolboxTimeout);d.hideToolboxTimeout=setTimeout(function(){d.hideimagetoolbox()},3E3);if("center"==this.options.imagetoolboxstyle){var e=Math.round(("bottom"==this.options.headerpos?0:this.options.headerHeight)+this.options.height/2);if(6==a||7==a||8==a||9==a||10==a||11==a)e+=45;b(".html5gallery-toolbox-"+this.id,this.$gallery).css({top:e});
178e=0;this.options.showplaybutton&&(1==a||this.options.showplaypausefullscreenforall&&(!this.options.hideplaypausefullscreenwhenvideoisplaying||!this.isVideoPlaying))?(e+=36,this.isPaused?(b(".html5gallery-play-"+this.id,this.$gallery).show(),b(".html5gallery-pause-"+this.id,this.$gallery).hide()):(b(".html5gallery-play-"+this.id,this.$gallery).hide(),b(".html5gallery-pause-"+this.id,this.$gallery).show())):(b(".html5gallery-play-"+this.id,this.$gallery).hide(),b(".html5gallery-pause-"+this.id,this.$gallery).hide());
179this.options.showprevbutton?(e+=36,b(".html5gallery-left-"+this.id,this.$gallery).show()):b(".html5gallery-left-"+this.id,this.$gallery).hide();this.options.shownextbutton?(e+=36,b(".html5gallery-right-"+this.id,this.$gallery).show()):b(".html5gallery-right-"+this.id,this.$gallery).hide();this.options.showfullscreenbutton&&(1==a||this.options.showplaypausefullscreenforall&&(!this.options.hideplaypausefullscreenwhenvideoisplaying||!this.isVideoPlaying))?(e+=36,b(".html5gallery-lightbox-"+this.id,this.$gallery).show()):
180b(".html5gallery-lightbox-"+this.id,this.$gallery).hide();b(".html5gallery-toolbox-"+this.id,this.$gallery).css({width:e+16});b(".html5gallery-toolbox-buttons-"+this.id,this.$gallery).css({width:e})}else this.options.showplaybutton&&(1==a||this.options.showplaypausefullscreenforall&&(!this.options.hideplaypausefullscreenwhenvideoisplaying||!this.isVideoPlaying))?this.isPaused?(b(".html5gallery-play-"+this.id,this.$gallery).show(),b(".html5gallery-pause-"+this.id,this.$gallery).hide()):(b(".html5gallery-play-"+
181this.id,this.$gallery).hide(),b(".html5gallery-pause-"+this.id,this.$gallery).show()):(b(".html5gallery-play-"+this.id,this.$gallery).hide(),b(".html5gallery-pause-"+this.id,this.$gallery).hide()),this.options.showprevbutton?b(".html5gallery-left-"+this.id,this.$gallery).show():b(".html5gallery-left-"+this.id,this.$gallery).hide(),this.options.shownextbutton?b(".html5gallery-right-"+this.id,this.$gallery).show():b(".html5gallery-right-"+this.id,this.$gallery).hide(),this.options.showfullscreenbutton&&
182(1==a||this.options.showplaypausefullscreenforall&&(!this.options.hideplaypausefullscreenwhenvideoisplaying||!this.isVideoPlaying))?b(".html5gallery-lightbox-"+this.id,this.$gallery).show():b(".html5gallery-lightbox-"+this.id,this.$gallery).hide();this.options.isIE678||c?b(".html5gallery-toolbox-"+this.id,this.$gallery).show():b(".html5gallery-toolbox-"+this.id,this.$gallery).fadeIn()}};this.hideimagetoolbox=function(){"show"!=this.options.imagetoolboxmode&&(clearTimeout(this.hideToolboxTimeout),
183this.options.isIE678?b(".html5gallery-toolbox-"+this.id,this.$gallery).hide():b(".html5gallery-toolbox-"+this.id,this.$gallery).fadeOut())}},resizeStyleDefault:function(){if(this.container.parent()&&this.container.parent().width()){this.options.containerWidth=this.container.parent().width();this.options.totalWidth=this.options.containerWidth;this.options.width=this.options.totalWidth-2*this.options.padding;if(this.options.titlesmallscreen){var a=b(window).width();this.options.titleheight=a<this.options.titlesmallscreenwidth?
184this.options.titleheightsmallscreen:this.options.titleheightlargescreen;this.options.headerHeight=this.options.titleoverlay?this.options.socialheight:this.options.titleheight+this.options.socialheight}this.options.showcarousel&&(this.options.carouselHeight=this.options.thumbheight+2*this.options.thumbmargin,this.options.carouselmultirows?("samecolumn"==this.options.thumbresponsive?(this.options.carouselcolumn=this.options.thumbcolumns,this.options.thumbcolumnsresponsive&&(a=b(window).width(),a<this.options.thumbsmallsize?
185this.options.carouselcolumn=this.options.thumbsmallcolumns:a<this.options.thumbmediumsize&&(this.options.carouselcolumn=this.options.thumbmediumcolumns)),this.options.thumbwidth=Math.min((this.options.width-this.options.thumbgap*(this.options.carouselcolumn-1))/this.options.carouselcolumn),this.options.thumbheight=this.options.thumbwidth*this.options.thumboriginalheight/this.options.thumboriginalwidth,this.options.thumbimagewidth=this.options.thumbwidth-2*this.options.thumbimageborder,this.options.thumbimageheight=
186this.options.thumbheight-2*this.options.thumbimageborder,this.options.thumbshowtitle&&(this.options.thumbheight+=this.options.thumbtitleheight)):(this.options.thumbcolumnsresponsive&&(a=b(window).width(),a<this.options.thumbsmallsize?(this.options.thumbwidth=this.options.thumbsmallwidth,this.options.thumbheight=this.options.thumbsmallheight,this.options.thumbtitleheight=this.options.thumbsmalltitleheight):a<this.options.thumbmediumsize?(this.options.thumbwidth=this.options.thumbmediumwidth,this.options.thumbheight=
187this.options.thumbmediumheight,this.options.thumbtitleheight=this.options.thumbmediumtitleheight):(this.options.thumbwidth=this.options.thumboriginalwidth,this.options.thumbheight=this.options.thumboriginalheight,this.options.thumbtitleheight=this.options.thumboriginaltitleheight),this.options.thumbimagewidth=this.options.thumbwidth-2*this.options.thumbimageborder,this.options.thumbimageheight=this.options.thumbheight-2*this.options.thumbimageborder,this.options.thumbshowtitle&&(this.options.thumbheight+=
188this.options.thumbtitleheight)),this.options.carouselcolumn=Math.floor(this.options.width/(this.options.thumbwidth+this.options.thumbgap)),1>this.options.carouselcolumn&&(this.options.carouselcolumn=1)),this.options.carouselHeight=Math.ceil(this.elemArray.length/this.options.carouselcolumn)*(this.options.thumbheight+this.options.thumbrowgap)):this.options.thumbcolumnsresponsive&&(a=b(window).width(),a<this.options.thumbsmallsize?(this.options.thumbwidth=this.options.thumbsmallwidth,this.options.thumbheight=
189this.options.thumbsmallheight,this.options.thumbtitleheight=this.options.thumbsmalltitleheight):a<this.options.thumbmediumsize?(this.options.thumbwidth=this.options.thumbmediumwidth,this.options.thumbheight=this.options.thumbmediumheight,this.options.thumbtitleheight=this.options.thumbmediumtitleheight):(this.options.thumbwidth=this.options.thumboriginalwidth,this.options.thumbheight=this.options.thumboriginalheight,this.options.thumbtitleheight=this.options.thumboriginaltitleheight),this.options.thumbimagewidth=
190this.options.thumbwidth-2*this.options.thumbimageborder,this.options.thumbimageheight=this.options.thumbheight-2*this.options.thumbimageborder,this.options.thumbshowtitle&&(this.options.thumbheight+=this.options.thumbtitleheight)));this.options.responsivefullscreen&&0<this.container.parent().height()?(this.options.containerHeight=this.container.parent().height(),this.options.totalHeight=this.options.containerHeight,this.options.height=this.options.totalHeight-(this.options.headerHeight+2*this.options.padding),
1910<this.options.carouselHeight+this.options.carouselmargin&&(this.options.height-=this.options.carouselHeight+this.options.carouselmargin)):(this.options.height=Math.round(this.options.width*this.options.originalHeight/this.options.originalWidth),this.options.totalHeight=this.options.height+this.options.carouselHeight+this.options.carouselmargin+this.options.headerHeight+2*this.options.padding,this.options.containerHeight=this.options.totalHeight);this.container.css({width:this.options.containerWidth,
192height:this.options.containerHeight});this.options.boxWidth=this.options.width;this.options.boxHeight="bottomoutside"==this.options.headerpos?this.options.height:this.options.height+this.options.headerHeight;this.options.slideshadow&&(this.options.boxWidth+=8);this.options.showcarousel&&(this.options.carouselWidth=this.options.width,this.options.carouselLeft=this.options.padding,this.options.carouselTop="top"==this.options.carouselposition?this.options.padding:this.options.padding+this.options.boxHeight+
193this.options.carouselmargin);
193b(".html5gallery-container-"+this.id).css({width:this.options.totalWidth+"px",height:this.options.totalHeight+"px"});b(".html5gallery-box-"+this.id).css({width:this.options.boxWidth+"px",height:this.options.boxHeight+"px"});a=this.elemArray[this.curElem][9];if(1==a||this.showingPoster){var c=this.showingPoster?this.elemArray[this.curElem][23]:this.elemArray[this.curElem][10],d=this.showingPoster?this.elemArray[this.curElem][24]:this.elemArray[this.curElem][11];if(this.isFullscreen)var a=
194this.elemArray[this.curElem][17]?Math.min(this.elemArray[this.curElem][17],this.fullscreenWidth):this.fullscreenWidth,e=this.elemArray[this.curElem][18]?Math.min(this.elemArray[this.curElem][18],this.fullscreenHeight):this.fullscreenHeight,a=Math.min(a/c,e/d),a=1<a?1:a;else a="fill"==this.options.resizemode?Math.max(this.options.width/c,this.options.height/d):Math.min(this.options.width/c,this.options.height/d);var f=Math.round(a*c),j=Math.round(a*d),e=this.isFullscreen?f:this.options.width,a=this.isFullscreen?
195j:this.options.height,c=Math.round(e/2-f/2),d=Math.round(a/2-j/2);this.isFullscreen&&this.adjustFullscreen(e,a,!0);
195b(".html5gallery-elem-"+this.id).css({width:e+"px",height:a+"px"});b(".html5gallery-elem-img-"+this.id).css({width:e+"px",height:a+"px"});b(".html5gallery-elem-image-"+this.id).css({width:f+"px",height:j+"px",top:d+"px",left:c+"px"})}else if(12==a||5==a||6==a||7==a||8==a||9==a||10==a||11==a)d=this.elemArray[this.curElem][10],c=this.elemArray[this.curElem][11],this.isFullscreen?(a=this.elemArray[this.curElem][17]?
196Math.min(this.elemArray[this.curElem][17],this.fullscreenWidth):this.fullscreenWidth,e=this.elemArray[this.curElem][18]?Math.min(this.elemArray[this.curElem][18],this.fullscreenHeight):this.fullscreenHeight,a=Math.min(a/d,e/c),a=1<a?1:a,e=Math.round(a*d),a=Math.round(a*c),this.adjustFullscreen(e,a,!0)):(e=this.options.width,a=this.options.height),b(".html5gallery-elem-"+this.id).css({width:e+"px",height:a+"px"}),b(".html5gallery-elem-video-"+this.id).css({width:e+"px",height:a+"px"}),b(".html5gallery-elem-video-container-"+
197this.id).css({width:"100%",height:"100%"}),b(".html5gallery-elem-video-container-"+this.id).find("video").css({width:"100%",height:"100%"}),b("#html5gallery-elem-video-"+this.id).css({width:e+"px",height:a+"px"}),b("#html5gallery-elem-video-"+this.id).attr("width",e),b("#html5gallery-elem-video-"+this.id).attr("height",a),b(".html5gallery-elem-video-"+this.id).find("iframe").attr("width",e),b(".html5gallery-elem-video-"+this.id).find("iframe").attr("height",a),b("#html5gallery-elem-video-"+this.id).find("iframe").attr("width",
198e),b("#html5gallery-elem-video-"+this.id).find("iframe").attr("height",a),b(".html5gallery-elem-iframe-"+this.id).css({width:e+"px",height:a+"px"}),b(".html5gallery-elem-iframe-"+this.id).find("iframe").attr("width",e),b(".html5gallery-elem-iframe-"+this.id).find("iframe").attr("height",a);e=a=0;"bottom"==this.options.headerpos?(a=this.options.titleoverlay?this.options.height-this.options.titleheight:this.options.height,e=this.options.titleoverlay?this.options.height:this.options.height+this.options.titleheight):
199"bottomoutside"==this.options.headerpos&&(a=this.options.showcarousel?this.options.height+this.options.carouselHeight:this.options.height);c=this.options.slideshadow?this.options.boxWidth-8:this.options.boxWidth;
199b(".html5gallery-title-"+this.id).css({width:c+"px"});this.options.titleoverlay||b(".html5gallery-title-"+this.id).css({top:a+"px"});b(".html5gallery-viral-"+this.id).css({top:e+"px"});b(".html5gallery-timer-"+this.id).css({top:String(this.options.elemTop+this.options.height-2)+"px"});if(this.options.showcarousel){b(".html5gallery-car-"+
200this.id).css({width:this.options.width+"px",top:this.options.carouselTop+"px"});b(".html5gallery-car-list-"+this.id).css({width:String(this.options.width-4-4)+"px"});this.options.carouselNavButton=!1;Math.floor((this.options.width-4-4)/(this.options.thumbwidth+this.options.thumbgap))<this.elemArray.length&&(this.options.carouselNavButton=!0);a=this.options.carouselNavButton?2*this.options.carouselarrowwidth+8:0;b(".html5gallery-car-left-"+this.id).css({display:this.options.carouselNavButton?"block":
201"none"});b(".html5gallery-car-right-"+this.id).css({display:this.options.carouselNavButton?"block":"none"});this.options.thumbShowNum=Math.floor((this.options.width-4-4-a)/(this.options.thumbwidth+this.options.thumbgap));1>this.options.thumbShowNum&&(this.options.thumbShowNum=1);this.options.thumbMaskWidth=this.options.thumbShowNum*this.options.thumbwidth+this.options.thumbShowNum*this.options.thumbgap;this.options.thumbTotalWidth=this.elemArray.length*this.options.thumbwidth+(this.elemArray.length-
2021)*this.options.thumbgap;e=0;this.options.carouselmultirows?("samecolumn"==this.options.thumbresponsive?b(".html5gallery-thumbs-"+this.id).css({"margin-left":"0px",width:String((this.options.thumbwidth+this.options.thumbgap)*this.options.carouselcolumn)+"px"}):(a=Math.floor(this.options.width/(this.options.thumbwidth+this.options.thumbgap)),1>a&&(a=1),e=(this.options.width-a*this.options.thumbwidth-(a-1)*this.options.thumbgap)/2,b(".html5gallery-thumbs-"+this.id).css({"margin-left":e+"px",width:this.options.width+
203"px"})),b(".html5gallery-tn-"+this.id).css({width:this.options.thumbwidth+"px",height:this.options.thumbheight+"px"}),b(".html5gallery-tn-selected-"+this.id).css({width:this.options.thumbwidth+"px",height:this.options.thumbheight+"px"}),b(".html5gallery-tn-img-"+this.id).css({width:String(this.options.thumbimagewidth+2*this.options.thumbimageborder)+"px",height:String(this.options.thumbimageheight+2*this.options.thumbimageborder)+"px"}
203),b(".html5gallery-tn-image-"+this.id).parent().css({width:this.options.thumbimagewidth+
204"px",height:this.options.thumbimageheight+"px"}),b(".html5gallery-tn-title-"+this.id).css({width:String(this.options.thumbwidth-2)+"px"}),b(".html5gallery-tn-title-"+this.id).css({height:this.options.thumbtitleheight+"px"})):(this.options.thumbShowNum=Math.floor((this.options.width-4-4-a)/(this.options.thumbwidth+this.options.thumbgap)),1>this.options.thumbShowNum&&(this.options.thumbShowNum=1),this.options.thumbMaskWidth=this.options.thumbShowNum*this.options.thumbwidth+this.options.thumbShowNum*
205this.options.thumbgap,this.options.thumbTotalWidth=this.elemArray.length*this.options.thumbwidth+(this.elemArray.length-1)*this.options.thumbgap,e=0,this.options.thumbMaskWidth>this.options.thumbTotalWidth&&(e=this.options.thumbMaskWidth/2-this.options.thumbTotalWidth/2-this.options.thumbgap/2),b(".html5gallery-car-"+this.id).css({height:this.options.carouselHeight+"px"}),b(".html5gallery-car-list-"+this.id).css({height:this.options.carouselHeight+"px"}),b(".html5gallery-car-left-"+this.id).css({top:String(this.options.carouselHeight/
2062-this.options.carouselarrowheight/2)+"px"}
206),b(".html5gallery-car-right-"+this.id).css({top:String(this.options.carouselHeight/2-this.options.carouselarrowheight/2)+"px"}),b(".html5gallery-tn-title-"+this.id).css({width:String(this.options.thumbwidth-2)+"px"}),b(".html5gallery-tn-title-"+this.id).css({height:this.options.thumbtitleheight+"px"}),b(".html5gallery-tn-"+this.id).css({width:this.options.thumbwidth+"px",height:this.options.thumbheight+"px"}),b(".html5gallery-tn-selected-"+this.id).css({width:this.options.thumbwidth+
207"px",height:this.options.thumbheight+"px"}),b(".html5gallery-tn-img-"+this.id).css({width:String(this.options.thumbimagewidth+2*this.options.thumbimageborder)+"px",height:String(this.options.thumbimageheight+2*this.options.thumbimageborder)+"px"}),b(".html5gallery-tn-image-"+this.id).parent().css({width:this.options.thumbimagewidth+"px",height:this.options.thumbimageheight+"px"}),b(".html5gallery-thumbs-"+this.id).css({"margin-left":e+"px",width:String(this.elemArray.length*(this.options.thumbwidth+
208this.options.thumbgap))+"px"}));var f="100%",j="auto",l=this;
208b(".html5gallery-tn-image-"+this.id).each(function(){var a=b(this).data("originalwidth"),c=b(this).data("originalheight");if(0<a&&0<c){var d=Math.max(l.options.thumbimagewidth/a,l.options.thumbimageheight/c);f=Math.round(d*a)+"px";j=Math.round(d*c)+"px"}b(this).css({width:f,height:j})});a=Math.round((this.options.width-4-4)/2-this.options.thumbMaskWidth/2);b(".html5gallery-car-mask-"+this.id).css({left:a+"px",width:this.options.thumbMaskWidth+
209"px",height:this.options.carouselHeight+"px"});this.carouselHighlight(this.curElem,!0)}}},createStyleDefault:function(){this.options.thumboriginalwidth=this.options.thumbwidth;this.options.thumboriginalheight=this.options.thumbheight;this.options.thumboriginaltitleheight=this.options.thumbtitleheight;if("samecolumn"==this.options.thumbresponsive){this.options.carouselcolumn=this.options.thumbcolumns;if(this.options.thumbcolumnsresponsive){var a=b(window).width();a<this.options.thumbsmallsize?this.options.carouselcolumn=
210this.options.thumbsmallcolumns:a<this.options.thumbmediumsize&&(this.options.carouselcolumn=this.options.thumbmediumcolumns)}this.options.thumbwidth=Math.min((this.options.width-this.options.thumbgap*(this.options.carouselcolumn-1))/this.options.carouselcolumn);this.options.thumbheight=this.options.thumbwidth*this.options.thumboriginalheight/this.options.thumboriginalwidth}else this.options.thumbcolumnsresponsive&&(a=b(window).width(),a<this.options.thumbsmallsize?(this.options.thumbwidth=this.options.thumbsmallwidth,
211this.options.thumbheight=this.options.thumbsmallheight,this.options.thumbtitleheight=this.options.thumbsmalltitleheight):a<this.options.thumbmediumsize&&(this.options.thumbwidth=this.options.thumbmediumwidth,this.options.thumbheight=this.options.thumbmediumheight,this.options.thumbtitleheight=this.options.thumbmediumtitleheight));this.options.thumbimagewidth=this.options.thumbwidth-2*this.options.thumbimageborder;this.options.thumbimageheight=this.options.thumbheight-2*this.options.thumbimageborder;
212this.options.thumbshowtitle&&(this.options.thumbheight+=this.options.thumbtitleheight);this.options.showtitle||(this.options.titleheight=0);if(!this.options.showsocialmedia||!this.options.showfacebooklike&&!this.options.showtwitter&&!this.options.showgoogleplus)this.options.socialheight=0;this.options.headerHeight=this.options.titleoverlay?this.options.socialheight:this.options.titleheight+this.options.socialheight;this.options.boxWidth=this.options.width;this.options.boxHeight="bottomoutside"==this.options.headerpos?
213this.options.height:this.options.height+this.options.headerHeight;this.options.boxLeft=this.options.padding;this.options.boxTop=this.options.padding;this.options.slideshadow&&(this.options.boxWidth+=8,this.options.boxLeft-=4,this.options.boxTop-=4);this.options.showcarousel?(this.options.carouselWidth=this.options.width,this.options.carouselHeight=this.options.thumbheight+2*this.options.thumbmargin,this.options.carouselLeft=this.options.padding,"top"==this.options.carouselposition?(this.options.carouselTop=
214this.options.padding,this.options.boxTop=this.options.padding+this.options.carouselHeight+this.options.carouselmargin):this.options.carouselTop=this.options.padding+this.options.boxHeight+this.options.carouselmargin,this.options.carouselmultirows&&("samecolumn"==this.options.thumbresponsive?(this.options.carouselcolumn=this.options.thumbcolumns,this.options.thumbcolumnsresponsive&&(a=b(window).width(),a<this.options.thumbsmallsize?this.options.carouselcolumn=this.options.thumbsmallcolumns:a<this.options.thumbmediumsize&&
215(this.options.carouselcolumn=this.options.thumbmediumcolumns)),this.options.thumbwidth=Math.min((this.options.width-this.options.thumbgap*(this.options.carouselcolumn-1))/this.options.carouselcolumn),this.options.thumbheight=this.options.thumbwidth*this.options.thumboriginalheight/this.options.thumboriginalwidth,this.options.thumbimagewidth=this.options.thumbwidth-2*this.options.thumbimageborder,this.options.thumbimageheight=this.options.thumbheight-2*this.options.thumbimageborder,this.options.thumbshowtitle&&
216(this.options.thumbheight+=this.options.thumbtitleheight)):(this.options.carouselcolumn=Math.floor(this.options.width/(this.options.thumbwidth+this.options.thumbgap)),1>this.options.carouselcolumn&&(this.options.carouselcolumn=1)),this.options.carouselHeight=Math.ceil(this.elemArray.length/this.options.carouselcolumn)*(this.options.thumbheight+this.options.thumbrowgap))):(this.options.carouselWidth=0,this.options.carouselHeight=0,this.options.carouselLeft=0,this.options.carouselTop=0,this.options.carouselmargin=
2170);this.options.totalWidth=this.options.width+2*this.options.padding;this.options.totalHeight=this.options.height+this.options.carouselHeight+this.options.carouselmargin+this.options.headerHeight+2*this.options.padding;this.options.containerWidth=this.options.totalWidth;this.options.containerHeight=this.options.totalHeight;this.options.responsive?(this.options.originalWidth=this.options.width,this.options.originalHeight=this.options.height,this.container.css({"max-width":"100%"})):this.container.css({width:this.options.containerWidth,
218height:this.options.containerHeight});var c=0,d=0;this.options.elemTop=0;"top"==this.options.headerpos?(d=0,c=this.options.socialheight,this.options.elemTop=this.options.headerHeight):"bottom"==this.options.headerpos&&(this.options.elemTop=0,c=this.options.titleoverlay?this.options.height-this.options.titleheight:this.options.height,d=this.options.titleoverlay?this.options.height:this.options.height+this.options.titleheight);a=" .html5gallery-container-"+this.id+" { display:block; position:absolute; left:0px; top:0px; width:"+
219this.options.totalWidth+"px; height:"+this.options.totalHeight+"px; "+(!this.options.bgimage?"":"background:url('"+this.options.bgimage+"') center top;")+" background-color:"+this.options.bgcolor+";}";this.options.galleryshadow&&(a+=" .html5gallery-container-"+this.id+" { -moz-box-shadow: 0px 2px 5px #aaa; -webkit-box-shadow: 0px 2px 5px #aaa; box-shadow: 0px 2px 5px #aaa;}");var a=a+(" .html5gallery-box-"+this.id+" {display:block; position:absolute; text-align:center; left:"+this.options.boxLeft+
220"px; top:"+this.options.boxTop+"px; width:"+this.options.boxWidth+"px; height:"+this.options.boxHeight+"px;}"),e=Math.round(this.options.socialheight/2-12),a=a+(" .html5gallery-title-text-"+this.id+" "+this.options.titlecss+" .html5gallery-title-text-"+this.id+" "+this.options.titlecsslink+" .html5gallery-error-"+this.id+" "+this.options.errorcss),a=a+(" .html5gallery-description-text-"+this.id+" "+this.options.descriptioncss+" .html5gallery-description-text-"+this.id+" "+this.options.descriptioncsslink),
221a=a+(" .html5gallery-fullscreen-title-"+this.id+""+this.options.lightboxtitlecss+" .html5gallery-fullscreen-title-"+this.id+""+this.options.lightboxtitlelinkcss),a=a+(" .html5gallery-fullscreen-description-"+this.id+""+this.options.lightboxdescriptioncss+" .html5gallery-fullscreen-description-"+this.id+""+this.options.lightboxdescriptionlinkcss),a=a+(" .html5gallery-viral-"+this.id+" {display:block; overflow:hidden; position:absolute; text-align:left; top:"+d+"px; left:0px; width:"+this.options.boxWidth+
222"px; height:"+this.options.socialheight+"px; padding-top:"+e+"px;}"),a=a+(" .html5gallery-title-"+this.id+" {display:"+(this.options.titleoverlay&&this.options.titleautohide?"none":"block")+"; overflow:hidden; position:absolute; left:0px; width:"+(this.options.slideshadow?this.options.boxWidth-8:this.options.boxWidth)+"px; ");this.options.titleoverlay?a="top"==this.options.headerpos?a+"top:0px; height:auto; }":a+"bottom:0px; height:auto; }":(a+="top:"+c+"px; height:"+this.options.titleheight+"px; }",
223this.options.titlesmallscreen&&(a+=" @media (max-width: "+this.options.titlesmallscreenwidth+"px) { .html5gallery-title-"+this.id+" {height:"+this.options.titleheightsmallscreen+"px; }}"));a+=" .html5gallery-timer-"+this.id+" {display:block; position:absolute; top:"+String(this.options.elemTop+this.options.height-2)+"px; left:0px; width:0px; height:2px; background-color:#ccc; filter:alpha(opacity=60); opacity:0.6; }";a+=" .html5gallery-elem-"+this.id+" {display:block; overflow:hidden; position:absolute; top:"+
224this.options.elemTop+"px; left:0px; width:"+this.options.width+"px; height:"+this.options.height+"px;}";this.options.isIE7||this.options.isIE6?(a+=" .html5gallery-loading-"+this.id+" {display:none; }",a+=" .html5gallery-loading-center-"+this.id+" {display:none; }"):(a+=" .html5gallery-loading-"+this.id+" {display:block; position:absolute; top:4px; right:4px; width:100%; height:100%; background:url('"+this.options.loadinggif+"') no-repeat top right;}",a+=" .html5gallery-loading-center-"+this.id+" {display:block; position:absolute; top:0px; left:0px; width:100%; height:100%; background:url('"+
225this.options.centerloadinggif+"') no-repeat center center;}");
2250<this.options.borderradius&&(a+=" .html5gallery-elem-"+this.id+" {overflow:hidden; border-radius:"+this.options.borderradius+"px; -moz-border-radius:"+this.options.borderradius+"px; -webkit-border-radius:"+this.options.borderradius+"px;}");this.options.slideshadow&&(a+=" .html5gallery-title-"+this.id+" { padding:4px;}",a+=" .html5gallery-timer-"+this.id+" { margin:4px;}",a+=" .html5gallery-elem-"+this.id+" { overflow:hidden; padding:4px; -moz-box-shadow: 0px 2px 5px #aaa; -webkit-box-shadow: 0px 2px 5px #aaa; box-shadow: 0px 2px 5px #aaa;}");
226this.options.showcarousel&&this.options.carouselmultirows?(a+=" .html5gallery-car-"+this.id+" { position:absolute; display:block; overflow:hidden; left:"+this.options.carouselLeft+"px; top:"+this.options.carouselTop+"px; width:"+this.options.width+"px;",a=this.options.carouselbgtransparent?a+"background-color:transparent;":a+("border-top:1px solid "+this.options.carouseltopborder+";border-bottom:1px solid "+this.options.carouselbottomborder+";background-color: "+this.options.carouselbgcolorend+"; background: "+
227this.options.carouselbgcolorend+" -webkit-gradient(linear, left top, left bottom, from("+this.options.carouselbgcolorstart+"), to("+this.options.carouselbgcolorend+")) no-repeat; background: "+this.options.carouselbgcolorend+" -moz-linear-gradient(top, "+this.options.carouselbgcolorstart+", "+this.options.carouselbgcolorend+") no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="+this.options.carouselbgcolorstart+", endColorstr="+this.options.carouselbgcolorend+") no-repeat; -ms-filter: 'progid:DXImageTransform.Microsoft.gradient(startColorstr="+
228this.options.carouselbgcolorstart+", endColorstr="+this.options.carouselbgcolorend+")' no-repeat;"),this.options.carouselbgimage&&(a+="background:url('"+this.options.skinfolder+this.options.carouselbgimage+"') center top;"),c=Math.floor(this.options.width/(this.options.thumbwidth+this.options.thumbgap)),1>c&&(c=1),c=(this.options.width-c*this.options.thumbwidth-(c-1)*this.options.thumbgap)/2,a=a+"}"+(".html5gallery-thumbs-"+this.id+" { position:relative; display:block; margin-left:"+c+"px; width:"+
229("samecolumn"==this.options.thumbresponsive?(this.options.thumbwidth+this.options.thumbgap)*this.options.carouselcolumn:this.options.width)+"px; top:0px; }"),a+=" .html5gallery-tn-"+this.id+" { display:block; float:left; margin-left:0px; margin-right:"+this.options.thumbgap+"px; margin-bottom:"+this.options.thumbrowgap+"px; text-align:center; cursor:pointer; width:"+this.options.thumbwidth+"px;height:"+this.options.thumbheight+"px;overflow:hidden;}",this.options.thumbshadow&&(a+=" .html5gallery-tn-"+
230this.id+" { -moz-box-shadow: 0px 2px 5px #aaa; -webkit-box-shadow: 0px 2px 5px #aaa; box-shadow: 0px 2px 5px #aaa;}"),a+=" .html5gallery-tn-selected-"+this.id+" { display:block; float:left; margin-left:0px; margin-right:"+this.options.thumbgap+"px; margin-bottom:"+this.options.thumbrowgap+"px; text-align:center; cursor:pointer; width:"+this.options.thumbwidth+"px;height:"+this.options.thumbheight+"px;overflow:hidden;}",this.options.thumbshadow&&(a+=" .html5gallery-tn-selected-"+this.id+" { -moz-box-shadow: 0px 2px 5px #aaa; -webkit-box-shadow: 0px 2px 5px #aaa; box-shadow: 0px 2px 5px #aaa;}"),
231a+=" .html5gallery-tn-"+this.id+" {background-color:"+this.options.thumbimagebordercolor+";} .html5gallery-tn-"+this.id+" { filter:alpha(opacity="+Math.round(100*this.options.thumbopacity)+"); opacity:"+this.options.thumbopacity+"; }  .html5gallery-tn-selected-"+this.id+" { filter:alpha(opacity=100); opacity:1; } ",a+=" .html5gallery-tn-img-"+this.id+" {display:block; overflow:hidden; width:"+String(this.options.thumbimagewidth+2*this.options.thumbimageborder)+"px;height:"+String(this.options.thumbimageheight+
2322*this.options.thumbimageborder)+"px;}",this.options.thumbunselectedimagebordercolor&&(a+=" .html5gallery-tn-selected-"+this.id+" {background-color:"+this.options.thumbunselectedimagebordercolor+";}"),this.options.thumbshowtitle?(a+=" .html5gallery-tn-title-"+this.id+" {display:block; overflow:hidden; float:top; height:"+this.options.thumbtitleheight+"px;width:"+String(this.options.thumbwidth-2)+"px;}",a+=" .html5gallery-tn-title-"+this.id+this.options.thumbtitlecss):a+=" .html5gallery-tn-title-"+
233this.id+" {display:none;}",this.carouselHighlight=function(){}):this.options.showcarousel?(a+=" .html5gallery-car-"+this.id+" { position:absolute; display:block; overflow:hidden; left:"+this.options.carouselLeft+"px; top:"+this.options.carouselTop+"px; width:"+this.options.width+"px; height:"+this.options.carouselHeight+"px;",a=this.options.carouselbgtransparent?a+"background-color:transparent;":a+("border-top:1px solid "+this.options.carouseltopborder+";border-bottom:1px solid "+this.options.carouselbottomborder+
234";background-color: "+this.options.carouselbgcolorend+"; background: "+this.options.carouselbgcolorend+" -webkit-gradient(linear, left top, left bottom, from("+this.options.carouselbgcolorstart+"), to("+this.options.carouselbgcolorend+")) no-repeat; background: "+this.options.carouselbgcolorend+" -moz-linear-gradient(top, "+this.options.carouselbgcolorstart+", "+this.options.carouselbgcolorend+") no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="+this.options.carouselbgcolorstart+
235", endColorstr="+this.options.carouselbgcolorend+") no-repeat; -ms-filter: 'progid:DXImageTransform.Microsoft.gradient(startColorstr="+this.options.carouselbgcolorstart+", endColorstr="+this.options.carouselbgcolorend+")' no-repeat;"),this.options.carouselbgimage&&(a+="background:url('"+this.options.skinfolder+this.options.carouselbgimage+"') center top;"),a+="}",a+=" .html5gallery-car-list-"+this.id+" { position:absolute; display:block; overflow:hidden; left:4px; width:"+String(this.options.width-
2364-4)+"px; top:0px; height:"+this.options.carouselHeight+"px; }",this.options.carouselNavButton=!1,Math.floor((this.options.width-4-4)/(this.options.thumbwidth+this.options.thumbgap))<this.elemArray.length&&(this.options.carouselNavButton=!0),a+=" .html5gallery-car-left-"+this.id+" { position:absolute; overflow:hidden; width:"+this.options.carouselarrowwidth+"px; height:"+this.options.carouselarrowheight+"px; left:0px; top:"+String(this.options.carouselHeight/2-this.options.carouselarrowheight/2)+
237"px; background:url('"+this.options.skinfolder+"carousel_left.png') no-repeat 0px 0px;}  .html5gallery-car-right-"+this.id+" { position:absolute; overflow:hidden; width:"+this.options.carouselarrowwidth+"px; height:"+this.options.carouselarrowheight+"px; right:0px; top:"+String(this.options.carouselHeight/2-this.options.carouselarrowheight/2)+"px; background:url('"+this.options.skinfolder+"carousel_right.png') no-repeat 0px 0px;} ",c=this.options.carouselNavButton?2*this.options.carouselarrowwidth+
2388:0,b(".html5gallery-car-left-"+this.id).css({display:this.options.carouselNavButton?"block":"none"}),b(".html5gallery-car-right-"+this.id).css({display:this.options.carouselNavButton?"block":"none"}),this.options.thumbShowNum=Math.floor((this.options.width-4-4-c)/(this.options.thumbwidth+this.options.thumbgap)),1>this.options.thumbShowNum&&(this.options.thumbShowNum=1),this.options.thumbMaskWidth=this.options.thumbShowNum*this.options.thumbwidth+this.options.thumbShowNum*this.options.thumbgap,this.options.thumbTotalWidth=
239this.elemArray.length*this.options.thumbwidth+(this.elemArray.length-1)*this.options.thumbgap,c=0,this.options.thumbMaskWidth>this.options.thumbTotalWidth&&(c=this.options.thumbMaskWidth/2-this.options.thumbTotalWidth/2-this.options.thumbgap/2),a+=".html5gallery-thumbs-"+this.id+" { position:relative; display:block; margin-left:"+c+"px; width:"+String(this.elemArray.length*(this.options.thumbwidth+this.options.thumbgap))+"px; top:"+Math.round(this.options.carouselHeight/2-this.options.thumbheight/
2402)+"px; }",c=Math.round((this.options.width-4-4)/2-this.options.thumbMaskWidth/2),a+=" .html5gallery-car-mask-"+this.id+" { position:absolute; display:block; text-align:left; overflow:hidden; left:"+c+"px; width:"+this.options.thumbMaskWidth+"px; top:0px; height:"+this.options.carouselHeight+"px;} ",a+=" .html5gallery-tn-"+this.id+" { display:block; float:left; margin-left:"+Math.floor(this.options.thumbgap/2)+"px; margin-right:"+Math.floor(this.options.thumbgap/2)+"px; text-align:center; cursor:pointer; width:"+
241this.options.thumbwidth+"px;height:"+this.options.thumbheight+"px;overflow:hidden;}",this.options.thumbshadow&&(a+=" .html5gallery-tn-"+this.id+" { -moz-box-shadow: 0px 2px 5px #aaa; -webkit-box-shadow: 0px 2px 5px #aaa; box-shadow: 0px 2px 5px #aaa;}"),a+=" .html5gallery-tn-selected-"+this.id+" { display:block; float:left; margin-left:"+Math.floor(this.options.thumbgap/2)+"px; margin-right:"+Math.floor(this.options.thumbgap/2)+"px;text-align:center; cursor:pointer; width:"+this.options.thumbwidth+
242"px;height:"+this.options.thumbheight+"px;overflow:hidden;}",this.options.thumbshadow&&(a+=" .html5gallery-tn-selected-"+this.id+" { -moz-box-shadow: 0px 2px 5px #aaa; -webkit-box-shadow: 0px 2px 5px #aaa; box-shadow: 0px 2px 5px #aaa;}"),a+=" .html5gallery-tn-"+this.id+" {background-color:"+this.options.thumbimagebordercolor+";} .html5gallery-tn-"+this.id+" { filter:alpha(opacity="+Math.round(100*this.options.thumbopacity)+"); opacity:"+this.options.thumbopacity+"; }  .html5gallery-tn-selected-"+
243this.id+" { filter:alpha(opacity=100); opacity:1; } ",a+=" .html5gallery-tn-img-"+this.id+" {display:block; overflow:hidden; width:"+String(this.options.thumbimagewidth+2*this.options.thumbimageborder)+"px;height:"+String(this.options.thumbimageheight+2*this.options.thumbimageborder)+"px;}",this.options.thumbunselectedimagebordercolor&&(a+=" .html5gallery-tn-selected-"+this.id+" {background-color:"+this.options.thumbunselectedimagebordercolor+";}"),this.options.thumbshowtitle?(a+=" .html5gallery-tn-title-"+
244this.id+" {display:block; overflow:hidden; float:top; height:"+this.options.thumbtitleheight+"px;width:"+String(this.options.thumbwidth-2)+"px;}",a+=" .html5gallery-tn-title-"+this.id+this.options.thumbtitlecss):a+=" .html5gallery-tn-title-"+this.id+" {display:none;}",this.carouselHighlight=function(a,c){b("#html5gallery-tn-"+this.id+"-"+a,this.$gallery).removeClass("html5gallery-tn-"+this.id).addClass("html5gallery-tn-selected-"+this.id);if(this.options.thumbShowNum>=this.elemArray.length)b(".html5gallery-car-left-"+
245this.id,this.$gallery).css({"background-position":"-"+String(2*this.options.carouselarrowwidth)+"px 0px",cursor:""}),b(".html5gallery-car-left-"+this.id,this.$gallery).data("disabled",!0),b(".html5gallery-car-right-"+this.id,this.$gallery).css({"background-position":"-"+String(2*this.options.carouselarrowwidth)+"px 0px",cursor:""}),b(".html5gallery-car-right-"+this.id,this.$gallery).data("disabled",!0);else{var d=Math.floor(a/this.options.thumbShowNum)*this.options.thumbShowNum*(this.options.thumbwidth+
246this.options.thumbgap);d>=this.options.thumbTotalWidth-this.options.thumbMaskWidth+this.options.thumbgap&&(d=this.options.thumbTotalWidth-this.options.thumbMaskWidth+this.options.thumbgap);d=-d;c?b(".html5gallery-thumbs-"+this.id,this.$gallery).css({marginLeft:d}):b(".html5gallery-thumbs-"+this.id,this.$gallery).animate({marginLeft:d},500);this.updateCarouseButtons(d)}},this.carouselPrev=function(){var a=b(".html5gallery-thumbs-"+this.id,this.$gallery);if(0!=parseInt(a.css("margin-left"))){var c=
247-1*parseInt(a.css("margin-left"))-this.options.thumbShowNum*(this.options.thumbwidth+this.options.thumbgap);0>c&&(c=0);a.animate({marginLeft:-c}
247,500,this.options.carouseleasing);this.updateCarouseButtons(-c)}},this.carouselNext=function(){var a=b(".html5gallery-thumbs-"+this.id,this.$gallery);if(parseInt(a.css("margin-left"))!=-(this.options.thumbTotalWidth-this.options.thumbMaskWidth+this.options.thumbgap)){var c=-1*parseInt(a.css("margin-left"))+this.options.thumbShowNum*(this.options.thumbwidth+
248this.options.thumbgap);c>=this.options.thumbTotalWidth-this.options.thumbMaskWidth+this.options.thumbgap&&(c=this.options.thumbTotalWidth-this.options.thumbMaskWidth+this.options.thumbgap);a.animate({marginLeft:-c},500,this.options.carouseleasing);this.updateCarouseButtons(-c)}},this.updateCarouseButtons=function(a){var c=b(".html5gallery-car-left-"+this.id,this.$gallery),d=b(".html5gallery-car-right-"+this.id,this.$gallery),e=-1*(this.options.thumbTotalWidth-this.options.thumbMaskWidth+this.options.thumbgap);
2490==a?(c.css({"background-position":"-"+String(2*this.options.carouselarrowwidth)+"px 0px",cursor:""}),c.data("disabled",!0)):c.data("disabled")&&(c.css({"background-position":"0px 0px",cursor:"pointer"}),c.data("disabled",!1));a==e?(d.css({"background-position":"-"+String(2*this.options.carouselarrowwidth)+"px 0px",cursor:""}),d.data("disabled",!0)):d.data("disabled")&&(d.css({"background-position":"0px 0px",cursor:"pointer"}),d.data("disabled",!1))}):a+=" .html5gallery-car-"+this.id+" { display:none; }";
250a+=".html5gallery-container-"+this.id+" div {box-sizing:content-box;}";b("head").append("<style type='text/css' data-creator='html5gallery'>"+a+"</style>")},html2Text:function(a){var b=document.createElement("div");b.innerHTML=a;return b.innerText},loadCarousel:function(){var a=this,c=b(".html5gallery-thumbs-"+this.id,this.$gallery);c.empty();for(var d=0;d<this.elemArray.length;d++){var e=b("<div "+(this.options.enabletabindex?"tabindex='0' ":"")+"id='html5gallery-tn-"+this.id+"-"+d+"' class='html5gallery-tn-"+
251this.id+"' data-index="+d+" ></div>");e.appendTo(c);if(this.options.enabletabindex)e.on("keydown",function(a){13==a.keyCode&&b(this).click()});this.options.thumblinkintitle||(e.off("click").click(function(){a.onThumbClick(b(this).data("index"));a.slideRun(b(this).data("index"),!0,!0)}),a.options.switchonmouseover&&e.hover(function(){b(this).click()}));e.hover(function(){a.onThumbOver(b(this).data("index"));b(this).removeClass("html5gallery-tn-"+a.id).addClass("html5gallery-tn-selected-"+a.id)},function(){b(this).data("index")!==
252a.curElem&&b(this).removeClass("html5gallery-tn-selected-"+a.id).addClass("html5gallery-tn-"+a.id)});e=new Image;e.data=d;b(e).on("load",function(){b(this).data("originalwidth",this.width);b(this).data("originalheight",this.height);var d=Math.max(a.options.thumbimagewidth/this.width,a.options.thumbimageheight/this.height),e=Math.round(d*this.width),d=Math.round(d*this.height),h=a.options.thumbshowplayonvideo&&1!=a.elemArray[this.data][9]?"<div class='html5gallery-tn-img-play-"+a.id+"' style='display:block; overflow:hidden; position:absolute; width:100%;height:100%; top:"+
253a.options.thumbimageborder+"px; left:"+a.options.thumbimageborder+'px;background:url("'+a.options.playvideothumbimage+"\") no-repeat center center;'></div>":"",g=a.options.addthumbnailtitle&&a.elemArray[this.data][7]?' title="'+a.elemArray[this.data][7]+'"':"";a.options.carouselmultirows&&"samecolumn"==a.options.thumbresponsive?b("#html5gallery-tn-"+a.id+"-"+this.data,c).append("<div class='html5gallery-tn-img-"+a.id+"'"+g+" style='position:relative;width:"+String(a.options.thumbimagewidth+2*a.options.thumbimageborder)+
254"px;height:"+String(a.options.thumbimageheight+2*a.options.thumbimageborder)+"px;'><div style='display:block; overflow:hidden; position:absolute; width:"+a.options.thumbimagewidth+"px;height:"+a.options.thumbimageheight+"px; top:"+a.options.thumbimageborder+"px; left:"+a.options.thumbimageborder+"px;'><img alt='"+a.html2Text(a.elemArray[this.data][25])+"'"+(a.options.addimgtitle?" title='"+a.html2Text(a.elemArray[this.data][7])+"'":"")+" data-originalwidth="+this.width+" data-originalheight="+this.height+
255" class='html5gallery-tn-image html5gallery-tn-image-"+a.id+"'"+g+" style='border:none; padding:0px; margin:0px; max-width:100%; max-height:none; width:"+e+"px; height:"+d+"px;' src='"+a.elemArray[this.data][1]+"' /></div>"+h+"</div><div class='html5gallery-tn-title-"+a.id+"' style='width:"+String(a.options.thumbwidth-2)+"px;'>"+a.elemArray[this.data][7]+(a.options.thumbshowdescription?"<br /><span class='html5gallery-tn-description-"+a.id+"'>"+a.elemArray[this.data][8]+"</span>":"")+"</div>"):b("#html5gallery-tn-"+
256a.id+"-"+this.data,c).append("<div class='html5gallery-tn-img-"+
256a.id+"'"+g+" style='position:relative;'><div style='display:block; overflow:hidden; position:absolute; width:"+a.options.thumbimagewidth+"px;height:"+a.options.thumbimageheight+"px; top:"+a.options.thumbimageborder+"px; left:"+a.options.thumbimageborder+"px;'><img alt='"+a.html2Text(a.elemArray[this.data][25])+"'"+(a.options.addimgtitle?" title='"+a.html2Text(a.elemArray[this.data][7])+"'":"")+" data-originalwidth="+this.width+" data-originalheight="+
257this.height+" class='html5gallery-tn-image html5gallery-tn-image-"+a.id+"'"+g+" style='border:none; padding:0px; margin:0px; max-width:100%; max-height:none; width:"+e+"px; height:"+d+"px;' src='"+a.elemArray[this.data][1]+"' /></div>"+h+"</div><div class='html5gallery-tn-title-"+a.id+"'>"+a.elemArray[this.data][7]+(a.options.thumbshowdescription?"<br /><span class='html5gallery-tn-description-"+a.id+"'>"+a.elemArray[this.data][8]+"</span>":"")+"</div>");a.options.thumblinkintitle&&(e=b(".html5gallery-tn-img-"+
258a.id,c),e.off("click").click(function(){var c=b(this).closest("html5gallery-tn-"+a.id);0<c.length&&(a.onThumbClick(c.data("index")),a.slideRun(c.data("index"),!0,!0))}),a.options.switchonmouseover&&e.hover(function(){b(this).click()}))});e.src=this.elemArray[d][1]}this.options.carouselmultirows&&c.append("<div style='clear:both;'></div>")},goNormal:function(){this.isFullscreen=!1;0<b(".html5gallery-fullscreen-box-"+this.id,this.$fullscreen).length&&b(".html5gallery-fullscreen-box-"+this.id,this.$fullscreen).stop();
259this.slideshowTimeout.stop();b(document).off("keyup.html5gallery");b(".html5gallery-timer-"+this.id,this.$gallery).css({width:0});if(0<b(".html5gallery-elem-"+this.id,this.$fullscreen).length){var a=b(".html5gallery-elem-"+this.id,this.$fullscreen).empty().css({top:this.options.elemTop});b(".html5gallery-box-"+this.id,this.$gallery).prepend(a)}this.slideRun(this.curElem);this.$fullscreen.remove();"show"==this.options.imagetoolboxmode?this.showimagetoolbox(this.elemArray[this.curElem][9]):this.hideimagetoolbox()},
260goFullscreen:function(){this.hideimagetoolbox();this.slideshowTimeout.stop();b(".html5gallery-fullscreen-timer-"+this.id,this.$fullscreen).css({width:0});this.isFullscreen=!0;this.fullscreenInitial=20;this.fullscreenMargin=this.options.lightboxborder;this.fullscreenBarH=this.options.lightboxtextheight;this.fullscreenOutsideMargin=this.options.lightboxmargin;var a=b(window).width(),c=this.elemArray[this.curElem][10],d=this.elemArray[this.curElem][11];this.fullscreenWidth=a-2*this.fullscreenMargin-
2612*this.fullscreenOutsideMargin;var e=b(window).height();this.fullscreenHeight=e-2*this.fullscreenMargin-this.fullscreenBarH-2*this.fullscreenOutsideMargin;var f=Math.max(e,b(document).height()),j=this.elemArray[this.curElem][17]?Math.min(this.elemArray[this.curElem][17],this.fullscreenWidth):this.fullscreenWidth,l=this.elemArray[this.curElem][18]?Math.min(this.elemArray[this.curElem][18],this.fullscreenHeight):this.fullscreenHeight,j=Math.min(j/c,l/d);1>j&&(c*=j,d*=j);e=b(window).scrollTop()+Math.round((e-
262(d+2*this.fullscreenMargin+this.fullscreenBarH))/2);this.$fullscreen=b("<div class='html5gallery-fullscreen-"+this.id+"' style='position:absolute;top:0px;left:0px;width:"+a+"px;height:"+f+"px;text-align:center;z-index:99999;'><div class='html5gallery-fullscreen-overlay-"+this.id+"' style='display:block;position:absolute;top:0px;left:0px;width:100%;height:100%;background-color:#000000;opacity:0.9;filter:alpha(opacity=80);'></div><div class='html5gallery-fullscreen-box-"+this.id+"' style='display:block;overflow:hidden;position:relative;margin:0px auto;top:"+
263e+"px;width:"+this.fullscreenInitial+"px;height:"+this.fullscreenInitial+"px;'><div class='html5gallery-fullscreen-elem-"+this.id+"' style='display:block;position:relative;overflow:hidden;width:"+String(c+2*this.fullscreenMargin)+"px;height:"+String(d+2*this.fullscreenMargin)+"px;background-color:"+this.options.lightboxbgcolor+";'><div class='html5gallery-fullscreen-elem-wrapper-"+this.id+"' style='display:block;position:relative;overflow:hidden;margin:"+this.fullscreenMargin+"px;'><div class='html5gallery-fullscreen-timer-"+
264this.id+"' style='display:block; position:absolute; top:"+String(d-4)+"px; left:0px; width:0px; height:4px; background-color:#666; filter:alpha(opacity=60); opacity:0.6;'></div></div></div><div class='html5gallery-fullscreen-bar-"+this.id+"' style='display:block;position:relative;width:"+String(c+2*this.fullscreenMargin)+"px;height:auto;min-height:36px;background-color:"+this.options.lightboxbgcolor+";'><div class='html5gallery-fullscreen-bar-wrapper-"+this.id+"' style='display:block;position:relative;padding:0px "+
265this.fullscreenMargin+"px "+this.fullscreenMargin+"px "+this.fullscreenMargin+"px;'><div class='html5gallery-fullscreen-close-"+this.id+"' style='display:block;position:relative;float:right;cursor:pointer;width:32px;height:32px;top:0px;background-image:url(\""+this.options.skinfolder+"lightbox_close.png\");'></div><div class='html5gallery-fullscreen-play-"+this.id+"' style='display:"+(this.isPaused&&1<this.elemArray.length&&1==this.elemArray[this.curElem][9]?"block":"none")+';position:relative;float:right;cursor:pointer;width:32px;height:32px;top:0px;background-image:url("'+
266this.options.skinfolder+"lightbox_play.png\");'></div><div class='html5gallery-fullscreen-pause-"+this.id+"' style='display:"+(this.isPaused||1>=this.elemArray.length||1!=this.elemArray[this.curElem][9]?"none":"block")+';position:relative;float:right;cursor:pointer;width:32px;height:32px;top:0px;background-image:url("'+this.options.skinfolder+"lightbox_pause.png\");'></div><div class='html5gallery-fullscreen-title-"+this.id+"' style='display:block;position:relative;float:left;width:"+String(c-2*this.fullscreenMargin-
26772)+"px;height:auto;top:0px;left:0px;text-align:left;'></div><div style='clear:both;'></div></div></div><div class='html5gallery-fullscreen-next-"+this.id+"' style='display:none;position:absolute;cursor:pointer;width:48px;height:48px;right:"+this.fullscreenMargin+"px;top:"+Math.round(d/2)+'px;background-image:url("'+this.options.skinfolder+"lightbox_next.png\");'></div><div class='html5gallery-fullscreen-prev-"+this.id+"' style='display:none;position:absolute;cursor:pointer;width:48px;height:48px;left:"+
268this.fullscreenMargin+"px;top:"+Math.round(d/2)+'px;background-image:url("'+this.options.skinfolder+"lightbox_prev.png\");'></div></div></div>");this.$fullscreen.appendTo("body");var g=this;
268b(window).scroll(function(){if(!g.options.isMobile||g.options.mobileresizeevent){var a=b(".html5gallery-fullscreen-box-"+g.id,g.$fullscreen),c=b(window).height(),c=b(window).scrollTop()+Math.round((c-a.height())/2);a.css({top:c})}});this.createSocial(!0);b(".html5gallery-fullscreen-box-"+this.id,this.$fullscreen).animate({height:d+
2692*this.fullscreenMargin},"slow",function(){b(this).animate({width:c+2*g.fullscreenMargin},"slow",function(){b(this).animate({height:"+="+g.fullscreenBarH},"slow",function(){if(g.isFullscreen){var a=b(".html5gallery-elem-"+g.id,g.$gallery).empty().css({top:0,position:"relative"});b(".html5gallery-fullscreen-elem-wrapper-"+g.id,g.$fullscreen).prepend(a);g.slideRun(g.curElem);g.options.showsocial&&b(".html5gallery-fullscreen-social-"+g.id,g.$fullscreen).show()}})})});b(".html5gallery-fullscreen-overlay-"+
270this.id,this.$fullscreen).click(function(){g.goNormal()});b(".html5gallery-fullscreen-box-"+this.id,this.$fullscreen).hover(function(){1<g.elemArray.length&&(b(".html5gallery-fullscreen-next-"+g.id,g.$fullscreen).fadeIn(),b(".html5gallery-fullscreen-prev-"+g.id,g.$fullscreen).fadeIn())},function(){b(".html5gallery-fullscreen-next-"+g.id,g.$fullscreen).fadeOut();b(".html5gallery-fullscreen-prev-"+g.id,g.$fullscreen).fadeOut()});g.options.enabletouchswipe&&(a=g.options.isAndroid&&g.options.enabletouchswipeonandroid?
271!0:!1,b(".html5gallery-fullscreen-box-"+this.id,this.$fullscreen).touchSwipe({preventWebBrowser:a,swipeLeft:function(){g.disableTouchSwipe||g.slideRun(-1)},swipeRight:function(){g.disableTouchSwipe||g.slideRun(-2)}}));b(".html5gallery-fullscreen-close-"+this.id,this.$fullscreen).click(function(){g.goNormal()});b(".html5gallery-fullscreen-next-"+this.id,this.$fullscreen).click(function(){g.slideRun(-1)});b(".html5gallery-fullscreen-prev-"+this.id,this.$fullscreen).click(function(){g.slideRun(-2)});
272b(".html5gallery-fullscreen-play-"+this.id,this.$fullscreen).click(function(){b(".html5gallery-fullscreen-play-"+g.id,g.$fullscreen).hide();b(".html5gallery-fullscreen-pause-"+g.id,g.$fullscreen).show();g.isPaused=!1;g.slideshowTimeout.setInterval(g.elemArray[g.curElem][16]?g.elemArray[g.curElem][16]:g.options.slideshowinterval);g.slideshowTimeout.start();b(".html5gallery-fullscreen-timer-"+g.id,g.$fullscreen).css({width:0})});b(".html5gallery-fullscreen-pause-"+this.id,this.$fullscreen).click(function(){b(".html5gallery-fullscreen-play-"+
273g.id,g.$fullscreen).show();b(".html5gallery-fullscreen-pause-"+g.id,g.$fullscreen).hide();g.isPaused=!0;g.slideshowTimeout.stop();b(".html5gallery-fullscreen-timer-"+g.id,g.$fullscreen).css({width:0})});b(document).on("keyup.html5gallery",function(a){27==a.keyCode?g.goNormal():39==a.keyCode?g.slideRun(-1):37==a.keyCode&&g.slideRun(-2)})},calcIndex:function(a){this.savedElem=this.curElem;-2==a?(this.nextElem=this.curElem,this.curElem=this.prevElem,this.prevElem=0>this.curElem-1?this.elemArray.length-
2741:this.curElem-1):-1==a?(this.prevElem=this.curElem,this.curElem=this.nextElem,this.nextElem=this.curElem+1>=this.elemArray.length?0:this.curElem+1):0<=a&&(this.curElem=a,this.prevElem=0>this.curElem-1?this.elemArray.length-1:this.curElem-1,this.nextElem=this.curElem+1>=this.elemArray.length?0:this.curElem+1)},showSlideTimer:function(){var a=this.elemArray[this.curElem][16]?this.elemArray[this.curElem][16]:this.options.slideshowinterval;this.slideTimerCount++;this.isFullscreen?b(".html5gallery-fullscreen-timer-"+
275this.id,this.$fullscreen).width(Math.round(50*b(".html5gallery-fullscreen-elem-wrapper-"+this.id,this.$fullscreen).width()*(this.slideTimerCount+1)/a)):b(".html5gallery-timer-"+this.id,this.$gallery).width(Math.round(50*this.options.boxWidth*(this.slideTimerCount+1)/a))},setHd:function(a,b){var d=this.elemArray[this.curElem][9],d=this.isHd!=a&&b&&(5==d||6==d||7==d||8==d);this.isHd=a;d&&this.slideRun(this.curElem,!1,!1,!0)},enableUpdateCarousel:function(){this.disableupdatecarousel=!1},slideRun:function(a,
276c,d,e){this.slideshowTimeout.stop();this.isFullscreen?b(".html5gallery-fullscreen-timer-"+this.id,this.$fullscreen).css({width:0}):b(".html5gallery-timer-"+this.id,this.$gallery).css({width:0});this.options.showcarousel&&0<=this.curElem&&b("#html5gallery-tn-"+this.id+"-"+this.curElem,this.$gallery).removeClass("html5gallery-tn-selected-"+this.id
276).addClass("html5gallery-tn-"+this.id);this.calcIndex(a);this.isFullscreen?(this.$fullscreen.addClass("html5gallery-fullscreen-activeslide-"+this.id+"-"+this.curElem),
2770<=this.prevElem&&this.$fullscreen.removeClass("html5gallery-fullscreen-activeslide-"+this.id+"-"+this.prevElem)):(this.$gallery.addClass("html5gallery-activeslide-"+this.id+"-"+this.curElem),0<=this.prevElem&&this.$gallery.removeClass("html5gallery-activeslide-"+this.id+"-"+this.prevElem));this.options.arrowloop||(this.isFullscreen?(b(".html5gallery-fullscreen-prev-"+this.id,this.$fullscreen).css({visibility:0==this.curElem?"hidden":"visible"}),b(".html5gallery-fullscreen-next-"+this.id,this.$fullscreen).css({visibility:this.curElem==
278this.elemArray.length-1?"hidden":"visible"})):(b(".html5gallery-left-"+this.id,this.$gallery).css({visibility:0==this.curElem?"hidden":"visible"}),b(".html5gallery-right-"+this.id,this.$gallery).css({visibility:this.curElem==this.elemArray.length-1?"hidden":"visible"})));this.options.socialurlforeach&&this.createSocialMedia();!this.isFullscreen&&this.options.showcarousel&&(b("#html5gallery-tn-"+this.id+"-"+this.curElem,this.$gallery).removeClass("html5gallery-tn-"+this.id).addClass("html5gallery-tn-selected-"+
279this.id),!this.options.notupdatecarousel&&!this.disableupdatecarousel&&this.carouselHighlight(this.curElem));if(this.options.showtitle||this.options.lightboxshowtitle||this.options.lightboxshowdescription){a=this.elemArray[this.curElem][7];var f=this.elemArray[this.curElem][8];this.options.shownumbering&&(a=this.options.numberingformat.replace("%NUM",this.curElem+1).replace("%TOTAL",this.elemArray.length)+" "+a);if(this.isFullscreen){var j="";this.options.lightboxshowtitle&&a&&(j+=a);this.options.lightboxshowdescription&&
280f&&(j+="<div class='html5gallery-fullscreen-description-"+this.id+"'>"+f+"</div>");b(".html5gallery-fullscreen-title-"+this.id,this.$fullscreen).html(j)}else this.options.showtitle&&(j="",a&&(j+="<div class='html5gallery-title-text-"+this.id+"'>"+a+"</div>"),this.options.showdescription&&f&&(j+="<div class='html5gallery-description-text-"+this.id+"'>"+f+"</div>"),b(".html5gallery-title-"+this.id,this.$gallery).html(j));(!this.options.titleoverlay||!this.options.titleautohide)&&b(".html5gallery-title-"+
281this.id,this.$gallery).show()}a=this.elemArray[this.curElem][9];if(!(0>a)){!this.isFullscreen&&c?"always"==this.options.showimagetoolbox?("mouseover"==this.options.imagetoolboxmode||"show"==this.options.imagetoolboxmode)&&this.showimagetoolbox(a):"image"==this.options.showimagetoolbox&&1!=a&&this.hideimagetoolbox():"show"==this.options.imagetoolboxmode?this.showimagetoolbox(a):this.hideimagetoolbox();this.onChange();c=b(".html5gallery-elem-"+this.id,l);c.find("iframe").each(function(){b(this).attr("src",
282"")});c.find("video").each(function(){b(this).attr("src","")});this.isVideoPlaying=this.disableTouchSwipe=!1;d=this.options.autoplayvideo||this.options.playvideoonclick&&d||e;var l=this.isFullscreen?this.$fullscreen:this.$gallery;this.showingPoster=!1;!this.options.donotuseposter&&(5==a||6==a||7==a||8==a||9==a||10==a||11==a)&&!d&&this.elemArray[this.curElem][12]?(this.showingPoster=!0,this.showPoster()):(b(".html5gallery-video-play-"+this.id,l).length&&b(".html5gallery-video-play-"+this.id,l).remove(),
2831==a?this.showImage():(this.options.hidetitlewhenvideoisplaying&&b(".html5gallery-title-"+this.id,l).hide(),5==a||6==a||7==a||8==a?this.showVideo(d,e):9==a?this.showYoutube(d):10==a?this.showVimeo(d):11==a?this.showEmbedVideo(d):2==a?this.showSWF():12==a&&this.showIframe()));this.checkMK();this.prevElem in this.elemArray&&1==this.elemArray[this.prevElem][9]&&((new Image).src=this.elemArray[this.prevElem][2]);this.nextElem in this.elemArray&&1==this.elemArray[this.nextElem][9]&&((new Image).src=this.elemArray[this.nextElem][2]);
284this.prevElem in this.elemArray&&(!this.options.autoplayvideo&&this.elemArray[this.prevElem][12])&&((new Image).src=this.elemArray[this.prevElem][12]);this.nextElem in this.elemArray&&(!this.options.autoplayvideo&&this.elemArray[this.nextElem][12])&&((new Image).src=this.elemArray[this.nextElem][12]);this.curElem==this.elemArray.length-1&&this.looptimes++;var g=this;if((1==a||this.showingPoster)&&!this.isPaused&&1<this.elemArray.length&&(!this.options.loop||this.looptimes<this.options.loop))e=this.elemArray[this.curElem][16]?
285this.elemArray[this.curElem][16]:this.options.slideshowinterval,this.firstrun&&this.options.setfirstslideshowinterval&&(e=this.options.firstslideshowinterval),this.slideshowTimeout.setInterval(e),this.slideshowTimeout.start(),this.isFullscreen?b(".html5gallery-fullscreen-timer-"+this.id,this.$fullscreen).css({width:0}):b(".html5gallery-timer-"+this.id,this.$gallery).css({width:0});this.options.loop&&this.looptimes>=this.options.loop&&(this.looptimes=0,this.pauseGallery());a=this.elemArray[this.curElem][9];
286(this.elemArray[this.curElem][5]||(this.options.lightbox||this.elemArray[this.curElem][22])&&!this.isFullscreen)&&(!this.options.linkonlyonvideo||!(5==a||
2866==a||7==a||8==a))?(c.css({cursor:"pointer"}),c.off("click").on("click",function(){(g.options.lightbox||g.elemArray[g.curElem][22])&&!g.isFullscreen?g.goFullscreen():g.elemArray[g.curElem][5]&&(g.elemArray[g.curElem][6]?window.open(g.elemArray[g.curElem][5],g.elemArray[g.curElem][6]):window.open(g.elemArray[g.curElem][5]))})):(c.css({cursor:""}),
287c.off("click"))}},showImage:function(){var a=b(".html5gallery-elem-"+this.id,this.isFullscreen?this.$fullscreen:this.$gallery);$preloading=""===a.html()?b("<div class='html5gallery-loading-center-"+this.id+"'></div>").appendTo(a):b("<div class='html5gallery-loading-"+this.id+"'></div>").appendTo(a);var c=this,d=new Image;b(d).on("load",function(){$preloading.remove();c.elemArray[c.curElem][10]=this.width;c.elemArray[c.curElem][11]=this.height;var d;if(c.isFullscreen){var e=c.elemArray[c.curElem][17]?
288Math.min(c.elemArray[c.curElem][17],c.fullscreenWidth):c.fullscreenWidth;d=c.elemArray[c.curElem][18]?Math.min(c.elemArray[c.curElem][18],c.fullscreenHeight):c.fullscreenHeight;d=Math.min(e/this.width,d/this.height);d=1<d?1:d}else d="fill"==c.options.resizemode?Math.max(c.options.width/this.width,c.options.height/this.height):Math.min(c.options.width/this.width,c.options.height/this.height);e=Math.round(d*this.width);d=Math.round(d*this.height);var j=c.isFullscreen?e:c.options.width,l=c.isFullscreen?
289d:c.options.height,g=Math.round(j/2-e/2),k=Math.round(l/2-d/2);c.isFullscreen&&c.adjustFullscreen(j,l);a.css({width:j,height:l});e=b("<div class='html5gallery-elem-img-"+c.id+"' style='display:block; position:absolute; overflow:hidden; width:"+j+"px; height:"+l+"px; left:0px; margin-left:"+(c.options.slideshadow&&!c.isFullscreen?4:0)+"px; top:0px; margin-top:"+(c.options.slideshadow&&!c.isFullscreen?4:0)+"px;'><img alt='"+c.html2Text(c.elemArray[c.curElem][25])+"'"+(c.options.addimgtitle?" title='"+
290c.html2Text(c.elemArray[c.curElem][7])+"'":"")+" class='html5gallery-elem-image html5gallery-elem-image-"+c.id+"' style='border:none; position:absolute; opacity:inherit; filter:inherit; padding:0px; margin:0px; left:"+g+"px; top:"+k+"px; max-width:none; max-height:none; width:"+e+"px; height:"+d+"px;' src='"+c.elemArray[c.curElem][2]+"' />"+c.options.watermarkcode+"</div>");d=b(".html5gallery-elem-img-"+c.id,a);d.length?(a.prepend(e),a.html5boxTransition(c.id,d,e,{effect:c.options.effect,easing:c.options.easing,
291duration:c.options.duration,direction:c.curElem>=c.savedElem,slide:c.options.slide},function(){})):a.html(e);
291c.options.googleanalyticsaccount&&window._gaq&&window._gaq.push(["_trackEvent","Image","Play",c.elemArray[c.curElem][2]]);c.checkMK()});b(d).on("error",function(){$preloading.remove();c.isFullscreen&&c.adjustFullscreen(c.options.width,c.options.height);a.html("<div class='html5gallery-elem-error-"+c.id+"' style='display:block; position:absolute; overflow:hidden; text-align:center; width:"+
292c.options.width+"px; left:0px; top:"+Math.round(c.options.height/2-10)+"px; margin:4px;'><div class='html5gallery-error-"+c.id+"'>The requested content cannot be found</div>");c.options.googleanalyticsaccount&&window._gaq&&window._gaq.push(["_trackEvent","Image","Error",c.elemArray[c.curElem][2]])});d.src=this.elemArray[this.curElem][2]},adjustFullscreen:function(a,c,d){var e=b(window).width();this.fullscreenWidth=e-2*this.fullscreenMargin-2*this.fullscreenOutsideMargin;var f=b(window).height();this.fullscreenHeight=
293f-2*this.fullscreenMargin-this.fullscreenBarH-2*this.fullscreenOutsideMargin;var j=Math.max(f,b(document).height()),l=this.elemArray[this.curElem][17]?Math.min(this.elemArray[this.curElem][17],this.fullscreenWidth):this.fullscreenWidth,g=this.elemArray[this.curElem][18]?Math.min(this.elemArray[this.curElem][18],this.fullscreenHeight):this.fullscreenHeight,l=Math.min(l/a,g/c);1>l&&(a*=l,c*=l);f=b(window).scrollTop()+Math.round((f-(c+2*this.fullscreenMargin+this.fullscreenBarH))/2);b(".html5gallery-fullscreen-"+
294this.id).css({width:e+"px",height:j+"px"});b(".html5gallery-fullscreen-title-"+this.id,this.$fullscreen).css({width:a-2*this.fullscreenMargin-72});d?(b(".html5gallery-fullscreen-box-"+this.id,this.$fullscreen).css({width:a+2*this.fullscreenMargin,height:c+2*this.fullscreenMargin+this.fullscreenBarH,top:f}),b(".html5gallery-fullscreen-elem-"+this.id,this.$fullscreen).css({width:a+2*this.fullscreenMargin,height:c+2*this.fullscreenMargin}),b(".html5gallery-fullscreen-elem-wrapper-"+this.id,this.$fullscreen).css({width:a,
295height:c}),b(".html5gallery-fullscreen-bar-"+this.id,this.$fullscreen).css({width:a+2*this.fullscreenMargin})):(b(".html5gallery-fullscreen-box-"+this.id,this.$fullscreen).animate({width:a+2*this.fullscreenMargin,height:c+2*this.fullscreenMargin+this.fullscreenBarH,top:f},"slow"),b(".html5gallery-fullscreen-elem-"+this.id,this.$fullscreen).animate({width:a+2*this.fullscreenMargin,height:c+2*this.fullscreenMargin},"slow"),b(".html5gallery-fullscreen-elem-wrapper-"+this.id,this.$fullscreen).animate({width:a,
296height:c},"slow"),b(".html5gallery-fullscreen-bar-"+this.id,this.$fullscreen).animate({width:a+2*this.fullscreenMargin},"slow"));b(".html5gallery-fullscreen-next-"+this.id,this.$fullscreen).css({top:Math.round(c/2)});b(".html5gallery-fullscreen-prev-"+this.id,this.$fullscreen).css({top:Math.round(c/2)});b(".html5gallery-fullscreen-play-"+this.id,this.$fullscreen).css("display",this.isPaused&&1<this.elemArray.length&&1==this.elemArray[this.curElem][9]?"block":"none");b(".html5gallery-fullscreen-pause-"+
297this.id,this.$fullscreen).css("display",this.isPaused||1>=this.elemArray.length||1!=this.elemArray[this.curElem][9]?"none":"block");b(".html5gallery-elem-"+this.id,this.$fullscreen).css({width:a,height:c});b(".html5gallery-fullscreen-timer-"+this.id,this.$fullscreen).css({top:String(c-4)+"px"});b(".html5gallery-elem-video-"+this.id,this.$fullscreen).css({width:a+"px",height:c+"px"});b(".html5gallery-elem-video-container-"+this.id,this.$fullscreen).css({width:"100%",height:"100%"});b(".html5gallery-elem-video-container-"+
298this.id,this.$fullscreen).find("video").css({width:"100%",height:"100%"});b("#html5gallery-elem-video-"+this.id,this.$fullscreen).css({width:a+"px",height:c+"px"});b("#html5gallery-elem-video-"+this.id,this.$fullscreen).attr("width",a);b("#html5gallery-elem-video-"+this.id,this.$fullscreen).attr("height",c);b(".html5gallery-elem-video-"+this.id,this.$fullscreen).find("iframe").attr("width",a);b(".html5gallery-elem-video-"+this.id,this.$fullscreen).find("iframe").attr("height",c);b("#html5gallery-elem-video-"+
299this.id,this.$fullscreen).find("iframe").attr("width",a);b("#html5gallery-elem-video-"+this.id,this.$fullscreen).find("iframe").attr("height",c);b(".html5gallery-elem-iframe-"+this.id,this.$fullscreen).css({width:a+"px",height:c+"px"});b(".html5gallery-elem-iframe-"+this.id,this.$fullscreen).find("iframe").attr("width",a);b(".html5gallery-elem-iframe-"+this.id,this.$fullscreen).find("iframe").attr("height",c)},showPoster:function(){var a=this.isFullscreen?this.$fullscreen:this.$gallery,c=b(".html5gallery-elem-"+
300this.id,a);$preloading=""===c.html()?b("<div class='html5gallery-loading-center-"+this.id+"'></div>
300").appendTo(c):b("<div class='html5gallery-loading-"+this.id+"'></div>").appendTo(c);var d=this,e=this.elemArray[this.curElem][10],f=this.elemArray[this.curElem][11],j=new Image;b(j).on("load",function(){$preloading.remove();d.elemArray[d.curElem][23]=this.width;d.elemArray[d.curElem][24]=this.height;var j,g,k;d.isFullscreen?(g=d.elemArray[d.curElem][17]?Math.min(d.elemArray[d.curElem][17],d.fullscreenWidth):
301Math.min(e,d.fullscreenWidth),k=d.elemArray[d.curElem][18]?Math.min(d.elemArray[d.curElem][18],d.fullscreenHeight):Math.min(f,d.fullscreenHeight),j=Math.max(g/this.width,k/this.height),j=1<j?1:j):(j="fill"==d.options.resizemode?Math.max(d.options.width/this.width,d.options.height/this.height):Math.min(d.options.width/this.width,d.options.height/this.height),g=d.options.width,k=d.options.height);var p=Math.round(j*this.width);j=Math.round(j*this.height);var q=Math.round(g/2-p/2),s=Math.round(k/2-j/
3022);d.isFullscreen&&d.adjustFullscreen(g,k);c.css({width:g,height:k});g=b("<div class='html5gallery-elem-img-"+d.id+"' style='display:block; position:absolute; overflow:hidden; width:"+g+"px; height:"+k+"px; left:0px; margin-left:"+(d.options.slideshadow&&!d.isFullscreen?4:0)+"px; top:0px; margin-top:"+(d.options.slideshadow&&!d.isFullscreen?4:0)+"px;'><img alt='"+d.html2Text(d.elemArray[d.curElem][25])+"'"+(d.options.addimgtitle?" title='"+d.html2Text(d.elemArray[d.curElem][7])+"'":"")+" class='html5gallery-elem-image html5gallery-elem-image-"+
303d.id+"' style='border:none; position:absolute; opacity:inherit; filter:inherit; padding:0px; margin:0px; left:"+q+"px; top:"+s+"px; max-width:none; max-height:none; width:"+p+"px; height:"+j+"px;' src='"+d.elemArray[d.curElem][12]+"' />"+d.options.watermarkcode+"</div>");k=b(".html5gallery-elem-img-"+d.id,c);k.length?(c.prepend(g),c.html5boxTransition(d.id,k,g,{effect:d.options.effect,easing:d.options.easing,duration:d.options.duration,direction:d.curElem>=d.savedElem,slide:d.options.slide},function(){})):
304c.html(g);if(!b(".html5gallery-video-play-"+d.id,a).length)b("<div class='html5gallery-video-play-"+d.id+"' style='position:absolute;display:block;cursor:pointer;top:50%;left:50%;width:64px;height:64px;margin-left:-32px;margin-top:-32px;background:url(\""+d.options.playvideoimage+"\") no-repeat center center;'></div>").appendTo(c).off(d.eClick).on(d.eClick,function(){d.options.hidetitlewhenvideoisplaying&&b(".html5gallery-title-"+d.id,d.$gallery).hide();b(this).remove();d.slideshowTimeout.stop();
305b(".html5gallery-timer-"+d.id,d.$gallery).css({width:0});d.showingPoster=!1;var a=d.elemArray[d.curElem][9];5==a||6==a||7==a||8==a?d.showVideo(!0):9==a?d.showYoutube(!0):10==a?d.showVimeo(!0):11==a&&d.showEmbedVideo(!0);d.checkMK()});d.checkMK()});b(j).on("error",function(){$preloading.remove();d.isFullscreen&&d.adjustFullscreen(d.options.width,d.options.height);c.html("<div class='html5gallery-elem-error-"+d.id+"' style='display:block; position:absolute; overflow:hidden; text-align:center; width:"+
306d.options.width+"px; left:0px; top:"+Math.round(d.options.height/2-10)+"px; margin:4px;'><div class='html5gallery-error-"+d.id+"'>The requested content cannot be found</div>");
306d.options.googleanalyticsaccount&&window._gaq&&window._gaq.push(["_trackEvent","Image","Error",d.elemArray[d.curElem][12]])});j.src=this.elemArray[this.curElem][12]},getFlashMovieObject:function(a){if(window.document[a])return window.document[a];if(-1==navigator.appName.indexOf("Microsoft Internet")){if(document.embeds&&document.embeds[a])return document.embeds[a]}else return document.getElementById(a)},
307playVideo:function(){var a=this.elemArray[this.curElem][9];if(5==a||6==a||7==a||8==a)this.isHTML5&&0<b("#html5gallery-elem-html5-video-"+this.id).length?b("#html5gallery-elem-html5-video-"+this.id,this.container).get(0).play():(a=this.getFlashMovieObject("html5gallery-elem-video-flash-"+this.id))&&"function"===typeof a.playVideo&&a.playVideo()},stopAllPlaying:function(){b("video").length&&b("video").get(0).pause();b("audio").length&&b("audio").get(0).pause();if("undefined"!==typeof html5GalleryObjects&&
308html5GalleryObjects&&html5GalleryObjects.objects)for(var a=0;a<html5GalleryObjects.objects.length;a++)if(html5GalleryObjects.objects[a].id!=this.id)try{html5GalleryObjects.objects[a].ytPlayer&&"function"==typeof html5GalleryObjects.objects[a].ytPlayer.pauseVideo&&html5GalleryObjects.objects[a].ytPlayer.pauseVideo(),html5GalleryObjects.objects[a].vimeoPlayer&&html5GalleryObjects.objects[a].vimeoPlayer.api("pause")}catch(c){}},pauseVideo:function(){var a=this.elemArray[this.curElem][9];5==a||6==a||
3097==a||8==a?this.isHTML5&&0<b("#html5gallery-elem-html5-video-"+this.id).length?b("#html5gallery-elem-html5-video-"+this.id,this.container).get(0).pause():(a=this.getFlashMovieObject("html5gallery-elem-video-flash-"+this.id))&&"function"===typeof a.pauseVideo&&a.pauseVideo():9==a?this.ytPlayer&&"function"==typeof this.ytPlayer.pauseVideo&&this.ytPlayer.pauseVideo():10==a?this.vimeoPlayer&&this.vimeoPlayer.api("pause"):b("video",this.container).length&&b("video",this.container).get(0).pause()},showVideo:function(a,
310c){this.options.stopallplaying&&this.stopAllPlaying();this.isVideoPlaying=!0;a&&this.options.autoslideandplayafterfirstplayed&&(this.options.autoplayvideo=!0,this.isPaused=!1);this.disableTouchSwipe=!0;var d=this.isFullscreen?this.$fullscreen:this.$gallery,e=this.elemArray[this.curElem][10],f=this.elemArray[this.curElem][11];if(this.isFullscreen){var e=this.elemArray[this.curElem][17]?Math.min(this.elemArray[this.curElem][17],this.fullscreenWidth):Math.min(e,this.fullscreenWidth),j=this.elemArray[this.curElem][18]?
311Math.min(this.elemArray[this.curElem][18],this.fullscreenHeight):Math.min(f,this.fullscreenHeight);this.adjustFullscreen(e,j);f=e;e=j}else b(".html5gallery-elem-"+this.id,this.$gallery).css({width:this.options.width,height:this.options.height}),f=this.options.width,e=this.options.height;j=-1;c&&b(".html5gallery-elem-"+this.id,d).find("video").length&&(j=b(".html5gallery-elem-"+this.id,d).find("video:first").get(0).currentTime);b(".html5gallery-elem-"+this.id,d).html("<div class='html5gallery-loading-center-"+
312this.id+"'></div><div class='html5gallery-elem-video-"+this.id+"' style='display:block;position:absolute;overflow:hidden;top:"+(this.options.slideshadow&&!this.isFullscreen?4:0)+"px;left:"+(this.options.slideshadow&&!this.isFullscreen?4:0)+"px;width:"+f+"px;height:"+e+"px;'></div>"+this.options.watermarkcode);this.isHTML5=!1;if(this.options.isIE678||this.options.isIE9&&this.options.useflashonie9||this.options.isIE10&&this.options.useflashonie10||this.options.isIE11&&this.options.useflashonie11)this.isHTML5=
313!1;else if(this.options.isMobile)this.isHTML5=!0;else if((this.options.html5player||!this.options.flashInstalled)&&this.options.html5VideoSupported)if(this.isHTML5=!0,this.options.isFirefox||this.options.isOpera)if(!this.elemArray[this.curElem][4]&&!this.elemArray[this.curElem][3]&&(!this.options.canplaymp4||this.options.useflashformp4onfirefox))this.isHTML5=!1;if(this.isHTML5){var l=this.elemArray[this.curElem][2],g=this.elemArray[this.curElem][13];if(this.options.isFirefox||this.options.isOpera)this.elemArray[this.curElem][4]?
314l=this.elemArray[this.curElem][4]:this.elemArray[this.curElem][3]&&(l=this.elemArray[this.curElem][3]),this.elemArray[this.curElem][15]?g=this.elemArray[this.curElem][15]:this.elemArray[this.curElem][14]&&(g=this.elemArray[this.curElem][14]);this.embedHTML5Video(b(".html5gallery-elem-video-"+this.id,d),f,e,l,g,a,j,c)}else j=this.elemArray[this.curElem][2],"/"!=j.charAt(0)&&("http:"!=j.substring(0,5)&&"https:"!=j.substring(0,6))&&(j=this.options.htmlfolder+j),l="",this.elemArray[this.curElem][13]&&
315(l=this.elemArray[this.curElem][13],"/"!=l.charAt(0)&&("http:"!=l.substring(0,5)&&"https:"!=l.substring(0,6))&&(l=this.options.htmlfolder+l)),f={width:f,height:e,hidecontrols:this.options.videohidecontrols?"1":"0",hideplaybutton:"0",videofile:j,hdfile:l,ishd:this.isHd?"1":"0",autoplay:a?"1":"0",errorcss:".html5box-error"+this.options.errorcss,id:this.id},this.elemArray[this.curElem][5]&&(f.clickthrough=this.elemArray[this.curElem][5],this.elemArray[this.curElem][6]&&(f.clickthroughtarget=this.elemArray[this.curElem][6])),
316this.embedFlash(b(".html5gallery-elem-video-"+this.id,d),"100%","100%",this.options.jsfolder+"html5boxplayer.swf","transparent",f,"html5gallery-elem-video-flash-"+this.id
316);this.options.googleanalyticsaccount&&window._gaq&&window._gaq.push(["_trackEvent","Video","Play",this.elemArray[this.curElem][2]])},showSWF:function(){var a=this.isFullscreen?this.$fullscreen:this.$gallery,c=this.elemArray[this.curElem][10],d=this.elemArray[this.curElem][11];this.isFullscreen?this.adjustFullscreen(c,d):b(".html5gallery-elem-"+
317this.id,this.$gallery).css({width:this.options.width,height:this.options.height});var e=this.isFullscreen?0:Math.round((this.options.height-d)/2)+(this.options.slideshadow?4:0),f=this.isFullscreen?0:Math.round((this.options.width-c)/2)+(this.options.slideshadow?4:0);b(".html5gallery-elem-"+this.id,a).html("<div class='html5gallery-elem-flash-"+this.id+"' style='display:block;position:absolute;overflow:hidden;top:"+e+"px;left:"+f+"px;width:"+c+"px;height:"+d+"px;'></div>"+this.options.watermarkcode);
318this.embedFlash(b(".html5gallery-elem-flash-"+this.id,a),c,d,this.elemArray[this.curElem][2],"window",{},"html5gallery-elem-flash-object-"+this.id);this.options.googleanalyticsaccount&&window._gaq&&window._gaq.pu
318sh(["_trackEvent","Flash","Play",this.elemArray[this.curElem][2]])},prepareYoutubeHref:function(a){var b=a.match(/(\?v=|\/\d\/|\/embed\/|\/v\/|\.be\/)([a-zA-Z0-9\-\_]+)/)[2],b="https://www."+(-1!==a.indexOf("youtube-nocookie.com")?"youtube-nocookie.com":"youtube.com")+"/embed/"+b;a=this.getYoutubeParams(a);
319var d=!0,e;for(e in a)d?(b+="?",d=!1):b+="&",b+=e+"="+a[e];return b},getYoutubeParams:function(a){var b={};if(0>a.indexOf("?"))return b;a=a.substring(a.indexOf("?")+1).split("&");for(var d=0;d<a.length;d++){var e=a[d].split("=");e&&(2==e.length&&"v"!=e[0].toLowerCase())&&(b[e[0].toLowerCase()]=e[1])}return b},initYoutubeApi:function(){var a,b=!1,d=!1;for(a=0;a<this.elemArray.length;a++)9==this.elemArray[a][9]&&-1===this.elemArray[a][2].indexOf("youtube-nocookie.com")?b=!0:10==this.elemArray[a][9]&&
320(d=!0);b&&(a=document.createElement("script"),a.src="https://www.youtube.com/iframe_api",b=document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,b));d&&(a=document.createElement("script"),a.src=this.options.jsfolder+"froogaloop2.min.js",b=document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,b))},showEmbedVideo:function(a){this.options.stopallplaying&&this.stopAllPlaying();this.isVideoPlaying=!0;a&&this.options.autoslideandplayafterfirstplayed&&(this.options.autoplayvideo=
321!0,this.isPaused=!1);var c=this.isFullscreen?this.$fullscreen:this.$gallery,d=this.elemArray[this.curElem][10],e=this.elemArray[this.curElem][11];if(this.isFullscreen){var d=this.elemArray[this.curElem][17]?Math.min(this.elemArray[this.curElem][17],this.fullscreenWidth):Math.min(d,this.fullscreenWidth),f=this.elemArray[this.curElem][18]?Math.min(this.elemArray[this.curElem][18],this.fullscreenHeight):Math.min(e,this.fullscreenHeight);this.adjustFullscreen(d,f);e=d;d=f}else b(".html5gallery-elem-"+
322this.id,this.$gallery).css({width:this.options.width,height:this.options.height}),e=this.options.width,d=this.options.height;f=this.elemArray[this.curElem][2];b(".html5gallery-elem-"+this.id,c).html("<div class='html5gallery-loading-center-"+this.id+"'></div><div id='html5gallery-elem-video-"+this.id+"' style='display:block;position:absolute;overflow:hidden;top:"+(this.options.slideshadow&&!this.isFullscreen?4:0)+"px;left:"+(this.options.slideshadow&&!this.isFullscreen?4:0)+"px;width:"+e+"px;height:"+
323d+"px;'></div>"+this.options.watermarkcode);f.match(/\:\/\/.*(dai\.ly)/i)&&(f="https://www.dailymotion.com/embed/video/"+f.match(/(dai\.ly\/)([a-zA-Z0-9\-\_]+)/)[2]);a&&(f=0>f.indexOf("?")?f+"?autoplay=1":f+"&autoplay=1");b("#html5gallery-elem-video-"+this.id,c).html("<iframe width='"+e+"' height='"+d+"' src='"+f+"' frameborder='0' allow='autoplay' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>");this.options.googleanalyticsaccount&&window._gaq&&window._gaq.pu
323sh(["_trackEvent",
324"Video","Play",this.elemArray[this.curElem][2]])},showYoutube:function(a){this.options.stopallplaying&&this.stopAllPlaying();this.isVideoPlaying=!0;a&&this.options.autoslideandplayafterfirstplayed&&(this.options.autoplayvideo=!0,this.isPaused=!1);var c=this.isFullscreen?this.$fullscreen:this.$gallery,d=this.elemArray[this.curElem][10],e=this.elemArray[this.curElem][11];if(this.isFullscreen){var d=this.elemArray[this.curElem][17]?Math.min(this.elemArray[this.curElem][17],this.fullscreenWidth):Math.min(d,
325this.fullscreenWidth),f=this.elemArray[this.curElem][18]?Math.min(this.elemArray[this.curElem][18],this.fullscreenHeight):Math.min(e,this.fullscreenHeight);this.adjustFullscreen(d,f);e=d;d=f}else b(".html5gallery-elem-"+this.id,this.$gallery).css({width:this.options.width,height:this.options.height}),e=this.options.width,d=this.options.height;f=this.elemArray[this.curElem][2];b(".html5gallery-elem-"+this.id,c).html("<div class='html5gallery-loading-center-"+this.id+"'></div><div id='html5gallery-elem-video-"+
326this.id+"' style='display:block;position:absolute;overflow:hidden;top:"+(this.options.slideshadow&&!this.isFullscreen?4:0)+"px;left:"+(this.options.slideshadow&&!this.isFullscreen?4:0)+"px;width:"+e+"px;height:"+d+"px;'></div>"+this.options.watermarkcode);var j=-1!==f.indexOf("youtube-nocookie.com"),l=this;if(!ASYouTubeIframeAPIReady&&!j&&(ASYouTubeTimeout+=100,3E3>ASYouTubeTimeout)){setTimeout(function(){l.showYoutube(a)},100);return}ASYouTubeIframeAPIReady&&!this.options.isMobile&&!this.options.isIE6&&
327!this.options.isIE7&&!j?(c=this.elemArray[this.curElem][2].match(/(\?v=|\/\d\/|\/embed\/|\/v\/|\.be\/)([a-zA-Z0-9\-\_]+)/)[2],f=function(){},a&&(f=function(a){a.target.playVideo()}),j=this.getYoutubeParams(this.elemArray[this.curElem][2]),j=b.extend({html5:1,controls:l.options.videohidecontrols?"0":"1",showinfo:l.options.videohidecontrols?"0":"1",autoplay:a?1:0,rel:0,wmode:"transparent"},j),this.ytPlayer=new YT.Player("html5gallery-elem-video-"+this.id,{width:e,height:d,videoId:c,playerVars:j,events:{onReady:f,
328onStateChange:function(a){a.data==YT.PlayerState.ENDED&&(l.onVideoEnd(),l.isPaused||l.slideRun(-1))}}})):(f=this.prepareYoutubeHref(f),a&&(f=0>f.indexOf("?")?f+"?autoplay=1":f+"&autoplay=1"),f=0>f.indexOf("?")?f+"?wmode=transparent&rel=0":f+"&wmode=transparent&rel=0",l.options.videohidecontrols&&(f+="&controls=0&showinfo=0"),b("#html5gallery-elem-video-"+this.id,c).html("<iframe width='"+e+"' height='"+d+"' src='"+f+"' frameborder='0' allow='autoplay' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>"));
329this.options.googleanalyticsaccount&&window._gaq&&window._gaq.pu
329sh(["_trackEvent","Video","Play",this.elemArray[this.curElem][2]])},showVimeo:function(a){this.options.stopallplaying&&this.stopAllPlaying();this.isVideoPlaying=!0;a&&this.options.autoslideandplayafterfirstplayed&&(this.options.autoplayvideo=!0,this.isPaused=!1);var c=this;if("function"!==typeof $f&&(ASVimeoTimeout+=100,3E3>ASVimeoTimeout)){setTimeout(function(){c.showVimeo(a)},100);return}var d=this.isFullscreen?this.$fullscreen:this.$gallery,
330e=this.elemArray[this.curElem][10],f=this.elemArray[this.curElem][11];if(this.isFullscreen){var e=this.elemArray[this.curElem][17]?Math.min(this.elemArray[this.curElem][17],this.fullscreenWidth):Math.min(e,this.fullscreenWidth),j=this.elemArray[this.curElem][18]?Math.min(this.elemArray[this.curElem][18],this.fullscreenHeight):Math.min(f,this.fullscreenHeight);this.adjustFullscreen(e,j);f=e;e=j}else b(".html5gallery-elem-"+this.id,this.$gallery).css({width:this.options.width,height:this.options.height}),
331f=this.options.width,e=this.options.height;j=this.elemArray[this.curElem][2];j=0>j.indexOf("?")?j+"?":j+"&";j=a&&!this.options.isAndroid?j+"autoplay=1":j+"autoplay=0";j+="&api=1&player_id=html5gallery_vimeo_"+this.id;b(".html5gallery-elem-"+this.id,d).html("<div class='html5gallery-loading-center-"+this.id+"'></div><div class='html5gallery-elem-video-"+this.id+"' style='display:block;position:absolute;overflow:hidden;top:"+(this.options.slideshadow&&!this.isFullscreen?4:0)+"px;left:"+(this.options.slideshadow&&
332!this.isFullscreen?4:0)+"px;width:"+f+"px;height:"+e+"px;'></div>"+this.options.watermarkcode);b(".html5gallery-elem-video-"+this.id,d).html("<iframe id='html5gallery_vimeo_"+this.id+"' width='"+f+"' height='"+e+"' src='"+j+"' frameborder='0' allow='autoplay' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>");"function"===typeof $f&&(a&&!this.options.isAndroid)&&(d=b("#html5gallery_vimeo_"+this.id)[0],c=this,c.vimeoPlayer=$f(d),c.vimeoPlayer.addEvent("ready",function(){c.vimeoPlayer.addEvent("finish",
333function(){c.onVideoEnd();c.isPaused||c.slideRun(-1)})}));this.options.googleanalyticsaccount&&window._gaq&&window._gaq.pu
333sh(["_trackEvent","Video","Play",this.elemArray[this.curElem][2]])},showIframe:function(){var a=this.isFullscreen?this.$fullscreen:this.$gallery,c=this.elemArray[this.curElem][10],d=this.elemArray[this.curElem][11];if(this.isFullscreen){var c=this.elemArray[this.curElem][17]?Math.min(this.elemArray[this.curElem][17],this.fullscreenWidth):Math.min(c,this.fullscreenWidth),e=this.elemArray[this.curElem][18]?
334Math.min(this.elemArray[this.curElem][18],this.fullscreenHeight):Math.min(d,this.fullscreenHeight);this.adjustFullscreen(c,e);d=c;c=e}else b(".html5gallery-elem-"+this.id,this.$gallery).css({width:this.options.width,height:this.options.height}),d=this.options.width,c=this.options.height;e=this.elemArray[this.curElem][2];b(".html5gallery-elem-"+this.id,a).html("<div class='html5gallery-loading-center-"+this.id+"'></div><div class='html5gallery-elem-iframe-"+this.id+"' style='display:block;position:absolute;overflow:hidden;top:"+
335(this.options.slideshadow&&!this.isFullscreen?4:0)+"px;left:"+(this.options.slideshadow&&!this.isFullscreen?4:0)+"px;width:"+d+"px;height:"+c+"px;'></div>"+this.options.watermarkcode);b(".html5gallery-elem-iframe-"+this.id,a).html("<iframe id='html5gallery-iframe-"+this.id+"' width='"+d+"' height='"+c+"' src='"+e+"' frameborder='0' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>");this.options.googleanalyticsaccount&&window._gaq&&window._gaq.pu
335sh(["_trackEvent","Iframe","Play",
336this.elemArray[this.curElem][2]])},checkType:function(a){return!a?-1:a.match(/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i)?1:a.match(/[^\.]\.(swf)\s*$/i)?2:a.match(/[^\.]\.(mp3)\s*$/i)?3:a.match(/[^\.]\.(pdf)\s*$/i)?4:a.match(/\.(flv)(.*)?$/i)?5:a.match(/\.(mp4|m4v)(.*)?$/i)?6:a.match(/\.(ogv|ogg)(.*)?$/i)?7:a.match(/\.(webm)(.*)?$/i)?8:a.match(/\:\/\/.*(youtube\.com)/i)||a.match(/\:\/\/.*(youtu\.be)/i)||a.match(/\:\/\/.*(youtube-nocookie\.com)/i)?9:a.match(/\:\/\/.*(vimeo\.com)/i)?10:a.match(/\:\/\/.*(dailymotion\.com)/i)||
337a.match(/\:\/\/.*(dai\.ly)/i)?11:1},onChange:function(){b(window).trigger("html5gallery.onchange",[this.id,this.curElem]);if(this.options.onchange&&window[this.options.onchange]&&"function"==typeof window[this.options.onchange])window[this.options.onchange](this.elemArray[this.curElem].concat([this.id]))},onSlideshowOver:function(){b(window).trigger("html5gallery.onslideshowover",[this.id,this.curElem]);if(this.options.onslideshowover&&window[this.options.onslideshowover]&&"function"==typeof window[this.options.onslideshowover])window[this.options.onslideshowover](this.elemArray[this.curElem])},
338onThumbOver:function(a){b(window).trigger("html5gallery.onthumbover",[this.id,a]);if(this.options.onthumbover&&window[this.options.onthumbover]&&"function"==typeof window[this.options.onthumbover])window[this.options.onthumbover](this.elemArray[a])},onThumbClick:function(a){b(window).trigger("html5gallery.onthumbclick",[this.id,a]);if(this.options.onthumbclick&&window[this.options.onthumbclick]&&"function"==typeof window[this.options.onthumbclick])window[this.options.onthumbclick](this.elemArray[a].concat([this.id]));
339this.options.thumbjumptotop&&(this.options.thumbjumpanchor&&0<this.options.thumbjumpanchor.length&&0<b("#"+this.options.thumbjumpanchor).length?(a=b("#"+this.options.thumbjumpanchor).offset().top,b(window).scrollTop(a)):0<=this.options.thumbjumpposition?b(window).scrollTop(this.options.thumbjumpposition):(a=this.container.offset().top,a<b(window).scrollTop()&&b(window).scrollTop(a)))},onVideoEnd:function(){b(window).trigger("html5gallery.videoend",[this.id,this.curElem]);if(this.options.onvideoend&&
340window[this.options.onvideoend]&&"function"==typeof window[this.options.onvideoend])window[this.options.onvideoend](this.elemArray[this.curElem]);this.options.reloadonvideoend?this.slideRun(this.curElem):this.options.loadnextonvideoend&&this.slideRun(-1)},embedHTML5Video:function(a,c,d,e,f,j,l,g){var k=this;if((this.options.isIE11||this.options.isIE)&&this.options.usenativehtml5controlsonie||this.options.isFirefox&&this.options.usenativehtml5controlsonfirefox||this.options.isIPhone&&this.options.usenativehtml5controlsoniphone||
341this.options.isIPad&&this.options.usenativehtml5controlsonipad||this.options.isAndroid&&this.options.usenativehtml5controlsonandroid)this.options.nativehtml5controls=!0;if(this.options.isIOS||this.options.isAndroid)this.options.fullscreennativecontrols=!0;this.options.mutevideo&&(this.options.defaultvideovolume=0);a.html("<div class='html5gallery-elem-video-container-"+this.id+"' style='position:relative;display:block;background-color:#000;width:100%;height:100%;'><video id='html5gallery-elem-html5-video-"+
342this.id+"' width='100%' height='100%'"+(this.options.nativehtml5controls&&!this.options.videohidecontrols?" controls":"")+(this.options.html5videonodownload?' controlsList="nodownload"':"")+(this.options.mutevideo?" muted":"")+(this.options.playsinline?" playsinline":"")+(this.options.loopvideo?" loop":"")+(this.options.donotuseposter&&this.options.showhtml5videoposter&&this.elemArray[this.curElem][12]?' poster="'+this.elemArray[this.curElem][12]+'"':"")+">"+(this.elemArray[this.curElem][ELEM_VTT]?
343'<track default src="'+this.elemArray[this.curElem][ELEM_VTT]+'" kind="subtitles" srclang="'+this.elemArray[this.curElem][ELEM_VTTLANG]+'" label="'+this.elemArray[this.curElem][ELEM_VTTLABEL]+'">':"")+"</video></div>");b("video",a).get(0).setAttribute("src",(f&&this.isHd?f:e)+(0<l?"#t="+l:""));!this.options.nativehtml5controls&&!this.options.videohidecontrols&&(b("video",a).data("src",e),b("video",a).data("hd",f),b("video",a).data("ishd",this.isHd),b("video",a).addHTML5VideoControls(this.options.skinfolder,
344this,"#html5gallery-elem-html5-video-"+this.id,!1,!1,this.options.defaultvideovolume,this.options.fullscreennativecontrols,this.options.html5videonod
344ownload,null,this.elemArray[this.curElem][ELEM_VTT]?!0:!1,this.options.vttline,this.options.showsubtitlebydefault));this.elemArray[this.curElem][5]&&(b("video",a).css({cursor:"pointer"}),b("video",a).off("click").on("click",function(){k.elemArray[k.curElem][5]&&(k.elemArray[k.curElem][6]?window.open(k.elemArray[k.curElem][5],k.elemArray[k.curElem][6]):
345window.open(k.elemArray[k.curElem][5]))}));(j||g)&&b("video",a).get(0).play();b("video",a).off("ended").on("ended",function(){k.onVideoEnd();k.isPaused||k.slideRun(-1)})},embedFlash:function(a,b,d,e,f,j,k){if(this.options.flashInstalled){var g={pluginspage:"http://www.adobe.com/go/getflashplayer",quality:"high",allowFullScreen:"true",allowScriptAccess:"always",type:"application/x-shockwave-flash"};g.width=b;g.height=d;g.src=e;g.wmode=f;a.append('<div id="'+k+'"></div>');window.HTML5GallerySWFObject=
346HTML5GallerySWFObjectFunc();window.HTML5GallerySWFObject.embedSWF(e,k,b,d,"9.0.0",!1,j,g,{})}else a.html("<div class='html5gallery-elem-error-"+this.id+"' style='display:block; position:absolute; text-align:center; width:"+this.options.width+"px; left:0px; top:"+Math.round(this.options.height/2-10)+"px;'><div class='html5gallery-error-"+this.id+"'><div>The required Adobe Flash Player plugin is not installed</div><div style='display:block;position:relative;text-align:center;width:112px;height:33px;margin:0px auto;'><a href='http://www.adobe.com/go/getflashplayer'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' width='112' height='33'></img></a></div></div>")}};
347this.each(function(){var a=b(this);k=k||{};for(var c in k)c.toLowerCase()!==c&&(k[c.toLowerCase()]=k[c],delete k[c]);if((!b(this).data("donotinit")||k&&k.forceinit)&&!b(this).data("inited")){b(this).data("inited",1);this.options=b.extend({},k);var d=this;b.each(a.data(),function(a,b){d.options[a.toLowerCase()]=b});"skin"in this.options&&(this.options.skin=this.options.skin.toLowerCase());c={skinfolder:"skins/horizontal/",padding:6,bgcolor:"#ffffff",bgimage:"",galleryshadow:!0,slideshadow:!1,showsocialmedia:!1,
348headerpos:"top",showdescription:!0,titleoverlay:!0,titleautohide:!0,titlecss:" {color:#ffffff; font-size:14px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left; padding:10px 0px 10px 10px; background:rgb(102, 102, 102) transparent; background: rgba(102, 102, 102, 0.6); filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; -ms-filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; }",
349titlecsslink:" a {color:#ffffff;}",descriptioncss:" {color:#ffffff; font-size:13px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left; padding:0px 0px 10px 10px; background:rgb(102, 102, 102) transparent; background: rgba(102, 102, 102, 0.6); filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; -ms-filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; }
349",descriptioncsslink:" a {color:#ffffff;}",
350showcarousel:!0,carouselmargin:0,carouselbgtransparent:!1,carouselbgcolorstart:"#494f54",carouselbgcolorend:"#292c31",carouseltopborder:"#666666",carouselbottomborder:"#111111",thumbwidth:64,thumbheight:48,thumbgap:4,thumbmargin:6,thumbunselectedimagebordercolor:"#ffffff",thumbimageborder:1,thumbimagebordercolor:"",thumbshowplayonvideo:!0,thumbshadow:!1,thumbopacity:0.8};var h={padding:12,skinfolder:"skins/light/",bgcolor:"",bgimage:"",galleryshadow:!1,slideshadow:!0,showsocialmedia:!1,headerpos:"top",
351showdescription:!0,titleoverlay:!0,titleautohide:!0,titlecss:" {color:#ffffff; font-size:14px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:10px 0px 10px 10px;  background:rgb(102, 102, 102) transparent; background: rgba(102, 102, 102, 0.6); filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; -ms-filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; }",
352titlecsslink:" a {color:#ffffff;}",descriptioncss:" {color:#ffffff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:0px 0px 10px 10px;  background:rgb(102, 102, 102) transparent; background: rgba(102, 102, 102, 0.6); filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; -ms-filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; }
352",descriptioncsslink:" a {color:#ffffff;}",
353showcarousel:!0,carouselmargin:10,carouselbgtransparent:!0,thumbwidth:48,thumbheight:48,thumbgap:8,thumbmargin:12,thumbunselectedimagebordercolor:"#fff",thumbimageborder:2,thumbimagebordercolor:"#fff",thumbshowplayonvideo:!0,thumbshadow:!0,thumbopacity:0.8},f={padding:0,skinfolder:"skins/mediapage/",bgcolor:"",bgimage:"",galleryshadow:!1,slideshadow:!1,showsocialmedia:!1,headerpos:"top",showdescription:!0,titleoverlay:!0,titleautohide:!0,titlecss:" {color:#ffffff; font-size:14px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:10px 0px 10px 10px;  background:rgb(102, 102, 102) transparent; background: rgba(102, 102, 102, 0.6); filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; -ms-filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; }",
354titlecsslink:" a {color:#ffffff;}",descriptioncss:" {color:#ffffff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:0px 0px 10px 10px;  background:rgb(102, 102, 102) transparent; background: rgba(102, 102, 102, 0.6); filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; -ms-filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; }
354",descriptioncsslink:" a {color:#ffffff;}",
355showcarousel:!0,carouselmargin:24,carouselmultirows:!0,thumbrowgap:16,carouselbgtransparent:!0,thumbwidth:120,thumbheight:60,thumbgap:10,thumbmargin:12,thumbunselectedimagebordercolor:"#fff",thumbimageborder:0,thumbimagebordercolor:"#fff",thumbshowplayonvideo:!0,thumbshadow:!1,thumbopacity:0.8,thumbjumptotop:!0,thumbshowtitle:!0,thumbtitlecss:"{text-align:center; color:#000; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden;}",thumbtitleheight:24},j={padding:12,skinfolder:"skins/gallery/",
356bgcolor:"",bgimage:"",galleryshadow:!1,slideshadow:!0,showsocialmedia:!1,headerpos:"top",showdescription:!0,titleoverlay:!0,titleautohide:!0,titlecss:" {color:#ffffff; font-size:14px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:10px 0px 10px 10px;  background:rgb(102, 102, 102) transparent; background: rgba(102, 102, 102, 0.6); filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; -ms-filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; }",
357titlecsslink:" a {color:#ffffff;}",descriptioncss:" {color:#ffffff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:0px 0px 10px 10px;  background:rgb(102, 102, 102) transparent; background: rgba(102, 102, 102, 0.6); filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; -ms-filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; }
357",descriptioncsslink:" a {color:#ffffff;}",
358showcarousel:!0,carouselmargin:10,carouselbgtransparent:!0,thumbwidth:120,thumbheight:60,thumbgap:8,thumbmargin:12,thumbunselectedimagebordercolor:"#fff",thumbimageborder:2,thumbimagebordercolor:"#fff",thumbshowplayonvideo:!0,thumbshadow:!0,thumbopacity:0.8,thumbshowtitle:!0,thumbtitlecss:"{text-align:center; color:#000; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal;}",thumbtitleheight:18},l={padding:12,skinfolder:"skins/gallery/",bgcolor:"",bgimage:"",
359galleryshadow:!1,slideshadow:!0,showsocialmedia:!1,headerpos:"bottom",showdescription:!0,titleoverlay:!1,titleheight:72,titleautohide:!0,titlecss:"{color:#333;font-size:14px;font-family:Arial,Helvetica,sans-serif;overflow:hidden;text-align:center;padding:16px 8px 4px 8px;}",titlecsslink:"a{color:#333;}",descriptioncss:"{color:#333;font-size:12px;font-family:Arial,Helvetica,sans-serif;overflow:hidden;text-align:center;padding:4px 8px; }",descriptioncsslink:"a{color:#333;}",titlesmallscreen:!0,showcarousel:!0,
360carouselmargin:10,carouselbgtransparent:!0,thumbwidth:120,thumbheight:60,thumbgap:8,thumbmargin:12,thumbunselectedimagebordercolor:"#fff",thumbimageborder:2,thumbimagebordercolor:"#fff",thumbshowplayonvideo:!0,thumbshadow:!0,thumbopacity:0.8,thumbshowtitle:!1,thumbtitlecss:"{text-align:center; color:#000; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal;}",thumbtitleheight:18},g={padding:12,skinfolder:"skins/gallery/",bgcolor:"",bgimage:"",galleryshadow:!1,
361slideshadow:!0,showsocialmedia:!1,headerpos:"bottom",showdescription:!0,titleoverlay:!1,titleheight:72,titleautohide:!0,titlecss:"{color:#333;font-size:14px;font-family:Arial,Helvetica,sans-serif;overflow:hidden;text-align:center;padding:16px 8px 4px 8px;}",titlecsslink:"a{color:#333;}",descriptioncss:"{color:#333;font-size:12px;font-family:Arial,Helvetica,sans-serif;overflow:hidden;text-align:center;padding:4px 8px; }",descriptioncsslink:"a{color:#333;}",titlesmallscreen:!0,showcarousel:!0,carouselmargin:10,
362carouselposition:"top",carouselbgtransparent:!0,thumbwidth:120,thumbheight:60,thumbgap:8,thumbmargin:12,thumbunselectedimagebordercolor:"#fff",thumbimageborder:2,thumbimagebordercolor:"#fff",thumbshowplayonvideo:!0,thumbshadow:!0,thumbopacity:0.8,thumbshowtitle:!0,thumbtitlecss:"{text-align:center; color:#000; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal;}",thumbtitleheight:18},p={padding:12,skinfolder:"skins/gallery/",bgcolor:"",bgimage:"",galleryshadow:!1,
363slideshadow:!0,showsocialmedia:!1,headerpos:"bottomoutside",showdescription:!0,titleoverlay:!1,titleheight:72,titleautohide:!0,titlecss:"{color:#333;font-size:14px;font-family:Arial,Helvetica,sans-serif;overflow:hidden;text-align:center;padding:16px 8px 4px 8px;}",titlecsslink:"a{color:#333;}",descriptioncss:"{color:#333;font-size:12px;font-family:Arial,Helvetica,sans-serif;overflow:hidden;text-align:center;padding:4px 8px; }",descriptioncsslink:"a{color:#333;}",titlesmallscreen:!0,showcarousel:!0,
364carouselmargin:10,carouselbgtransparent:!0,thumbwidth:120,thumbheight:60,thumbgap:8,thumbmargin:12,thumbunselectedimagebordercolor:"#fff",thumbimageborder:2,thumbimagebordercolor:"#fff",thumbshowplayonvideo:!0,thumbshadow:!0,thumbopacity:0.8,thumbshowtitle:!0,thumbtitlecss:"{text-align:center; color:#000; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal;}",thumbtitleheight:18},q={skinfolder:"skins/darkness/",padding:12,bgcolor:"#444444",bgimage:"background.jpg",
365galleryshadow:!1,slideshadow:!1,headerpos:"bottom",showdescription:!1,titleoverlay:!1,titleautohide:!1,titlecss:" {color:#ffffff; font-size:16px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:10px 0px;}",titlecsslink:" a {color:#ffffff;}",descriptioncss:" {color:#ffffff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:0px 0px 10px 0px;}",descriptioncsslink:" a {color:#ffffff;}",
366showcarousel:!0,carouselmargin:8,carouselbgtransparent:!1,carouselbgcolorstart:"#494f54",carouselbgcolorend:"#292c31",carouseltopborder:"#666666",carouselbottomborder:"#111111",thumbwidth:64,thumbheight:48,thumbgap:4,thumbmargin:6,thumbunselectedimagebordercolor:"#ffffff",thumbimageborder:1,thumbimagebordercolor:"",thumbshowplayonvideo:!0,thumbshadow:!1,thumbopacity:0.8},s={skinfolder:"skins/verticallight/",padding:12,bgcolor:"#fff",bgimage:"",galleryshadow:!1,slideshadow:!1,headerpos:"bottom",showdescription:!1,
367titleoverlay:!1,titleautohide:!1,titlecss:" {color:#333; font-size:16px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:10px 0px;}",titlecsslink:" a {color:#333;}
367",descriptioncss:" {color:#333; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:0px 0px 10px 0px;}",descriptioncsslink:" a {color:#333;}",showcarousel:!0,carouselmargin:8,carouselposition:"right",carouselposresponsive:!0,
368carouselposresponsiveonscreenwidth:800,carouselheight:280,carouselbgtransparent:!1,carouselbgcolorstart:"#fff",carouselbgcolorend:"#fff",carouseltopborder:"#fff",carouselbottomborder:"#fff",carouselhighlightbgcolorstart:"#f0f0f0",carouselhighlightbgcolorend:"#f0f0f0",carouselhighlighttopborder:"#f0f0f0",carouselhighlightbottomborder:"#f0f0f0",carouselhighlightbgimage:"",thumbwidth:148,thumbheight:48,thumbgap:2,thumbmargin:6,thumbunselectedimagebordercolor:"",thumbimageborder:0,thumbimagebordercolor:"#fff",
369thumbshowplayonvideo:!0,thumbshadow:!1,thumbopacity:0.8,thumbshowimage:!0,thumbshowtitle:!0,thumbtitlecss:"{text-align:center; color:#333; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal;}"},u=b.extend({},s,{carouselposition:"left"}),x={skinfolder:"skins/vertical/",padding:12,bgcolor:"#444444",bgimage:"background.jpg",galleryshadow:!1,slideshadow:!1,headerpos:"bottom",showdescription:!1,titleoverlay:!1,titleautohide:!1,titlecss:" {color:#ffffff; font-size:16px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:10px 0px;}",
370titlecsslink:" a {color:#ffffff;}",descriptioncss:" {color:#ffffff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:0px 0px 10px 0px;}",descriptioncsslink:" a {color:#ffffff;}",showcarousel:!0,carouselmargin:8,carouselposition:"right",carouselposresponsive:!0,carouselposresponsiveonscreenwidth:800,carouselheight:280,carouselbgtransparent:!1,carouselbgcolorstart:"#494f54",carouselbgcolorend:"#292c31",carouseltopborder:"#666666",
371carouselbottomborder:"#111111",carouselhighlightbgcolorstart:"#999999",carouselhighlightbgcolorend:"#666666",carouselhighlighttopborder:"#cccccc",carouselhighlightbottomborder:"#444444",carouselhighlightbgimage:"",thumbwidth:148,thumbheight:48,thumbgap:2,thumbmargin:6,thumbunselectedimagebordercolor:"",thumbimageborder:1,thumbimagebordercolor:"#cccccc",thumbshowplayonvideo:!0,thumbshadow:!1,thumbopacity:0.8,thumbshowimage:!0,thumbshowtitle:!0,thumbtitlecss:"{text-align:center; color:#ffffff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal;}"},
372z=b.extend({},x,{carouselposition:"left"}),O={skinfolder:"skins/showcase/",padding:12,bgcolor:"#444444",bgimage:"background.jpg",galleryshadow:!1,slideshadow:!1,showsocialmedia:!1,headerpos:"bottom",showdescription:!1,titleoverlay:!1,titleautohide:!1,titlecss:" {color:#ffffff; font-size:16px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:10px 0px;}",titlecsslink:" a {color:#ffffff;}",descriptioncss:" {color:#ffffff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; text-align:left; padding:0px 0px 10px 0px;}",
373descriptioncsslink:" a {color:#ffffff;}",showcarousel:!0,carouselmargin:8,carouselposition:"bottom",carouselheight:280,carouselposresponsive:!1,carouselbgtransparent:!1,carouselbgcolorstart:"#494f54",carouselbgcolorend:"#292c31",carouseltopborder:"#666666",carouselbottomborder:"#111111",carouselhighlightbgcolorstart:"#999999",carouselhighlightbgcolorend:"#666666",carouselhighlighttopborder:"#cccccc",carouselhighlightbottomborder:"#444444",carouselhighlightbgimage:"",thumbwidth:148,thumbheight:60,
374thumbgap:2,thumbmargin:6,thumbunselectedimagebordercolor:"",thumbimageborder:1,thumbimagebordercolor:"#cccccc",thumbshowplayonvideo:!0,thumbshadow:!1,thumbopacity:0.8,thumbshowimage:!0,thumbshowtitle:!0,thumbtitlecss:"{text-align:left; color:#ffffff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; padding: 6px 0;}",thumbshowdescription:!0,thumbdescriptioncss:"{font-size:10px;}"},y={freelink:"http://html5box.com/html5gallery/watermark.php",watermark:"",watermarklink:"",enabletabindex:!1,
375playvideoimage:"playvideo_64.png",playvideothumbimage:"playvideo.png",loadinggif:"loading.gif",centerloadinggif:"loading_center.gif",skin:"horizontal",googlefonts:"",mobileresizeevent:!1,enabletouchswipe:!0,enabletouchswipeonandroid:!1,disablehovereventontouch:!1,responsive:!0,responsivefullscreen:!1,resizedelay:10,screenquery:{},firstitemid:0,addimgtitle:!1,src:"",xml:"",xmlnocache:!0,stopallplaying:!1,lightbox:!1,autoslide:!1,slideshowinterval:6E3,random:!1,borderradiu
375s:0,loop:0,pauseonmouseover:!1,
376arrowloop:!0,setfirstslideshowinterval:!1,firstslideshowinterval:6E3,reverse:!1,notupdatecarousel:!1,updatecarouselinterval:6E4,youtubeimage:"0.jpg",youtubethumb:"0.jpg",autoplayvideo:!1,html5player:!0,playvideoonclick:!0,videohidecontrols:!1,useflashformp4onfirefox:!1,reloadonvideoend:!1,loadnextonvideoend:!1,nativehtml5controls:!1,hddefault:!1,useflashonie9:!0,useflashonie10:!1,useflashonie11:!1,fullscreennativecontrols:!0,html5videonodownload:!0,vttline:-4,vttlang:"en",vttlabel:"English",showsubtitlebydefault:!0,
377usenativehtml5controlsoniphone:!0,usenativehtml5controlsonipad:!0,usenativehtml5controlsonandroid:!0,usenativehtml5controlsonie:!1,usenativehtml5controlsonfirefox:!1,defaultvideovolume:1,mutevideo:!1,playsinline:!1,loopvideo:!1,autoslideandplayafterfirstplayed:!1,lazyloadtags:"lazy-src,lazyload-src,cfsrc,src",linkonlyonvideo:!0,hidetitlewhenvideoisplaying:!1,hideplaypausefullscreenwhenvideoisplaying:!1,lightboxborder:8,lightboxtextheight:72,lightboxmargin:12,lightboxbgcolor:"#fff",lightboxshowtitle:!0,
378lightboxtitlecss:" {color:#333333; font:bold 12px Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; line-height:18px;}",lightboxtitlelinkcss:" a {color:#333333;}",lightboxshowdescription:!0,lightboxdescriptioncss:" {color:#333333; font:normal 12px Arial,Helvetica,sans-serif; overflow:hidden; white-space:normal; line-height:14px;}",lightboxdescriptionlinkcss:" a {color:#333333;}",effect:"fade",easing:"easeOutCubic",duration:1500,slide:{duration:1E3,easing:"easeOutExpo"},width:480,height:270,
379showtimer:!0,resizemode:"fit",showtitle:!0,titleheight:45,errorcss:" {text-align:center; color:#ff0000; font-size:14px; font-family:Arial, sans-serif;}",shownumbering:!1,numberingformat:"%NUM / %TOTAL",googleanalyticsaccount:"",showsocialmedia:!1,socialheight:30,socialurlforeach:!1,showfacebooklike:!0,facebooklikeurl:"",twitterurl:"",twitterusername:"",twittervia:"html5box",showgoogleplus:!0,googleplusurl:"",initsocial:!1,showsocial:!1,sharemediaurl:!1,socialmode:"mouseover",socialposition:"position:absolute;top:8px;right:8px;",
380socialpositionlightbox:"position:absolute;top:8px;right:8px;",socialdirection:"horizontal",socialbuttonsize:32,socialbuttonfontsize:18,socialrotateeffect:!0,showfacebook:!0,showtwitter:!0,showpinterest:!0,showlinkedin:!1,showgplus:!1,showemail:!1,showimagetoolbox:"always",imagetoolboxstyle:"side",imagetoolboxmode:"mouseover",showplaybutton:!0,showprevbutton:!0,shownextbutton:!0,showfullscreenbutton:!0,showplaypausefullscreenforall:!1,showcarouselforsingle:!1,carouselbgtransparent:!0,carouselbgcolorstart:"#ffffff",
381carouselbgcolorend:"#ffffff",carouseltopborder:"#ffffff",carouselbottomborder:"#ffffff",carouselbgimage:"",carouseleasing:"easeOutCirc",carouselarrowwidth:32,carouselarrowheight:32,thumbresponsive:"samesize",thumbcolumns:5,thumbcolumnsresponsive:!1,thumbmediumcolumns:3,thumbmediumsize:800,thumbsmallcolumns:2,thumbsmallsize:480,thumbmediumwidth:64,thumbmediumheight:64,thumbsmallwidth:48,thumbsmallheight:48,addthumbnailtitle:!1,switchonmouseover:!1,carouselmultirows:!1,thumbrowgap:16,thumblinkintitle:!1,
382thumbjumptotop:!1,thumbjumpposition:-1,thumbjumpanchor:"",thumbshowtitle:!1,thumbtitlecss:"{text-align:center; color:#000; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden;}",thumbtitleheight:24,thumbmediumtitleheight:48,thumbsmalltitleheight:72,youtubeapikey:"",youtubeplaylistid:"",youtubeplaylistmaxresults:"",youtubeplaylistusemaxres:!0,titlesmallscreen:!1,titlesmallscreenwidth:640,titleheightsmallscreen:148,donotuseposter:!1,showhtml5videoposter:!0,splitvsliderontouch:!0,
383forcetouch:!1,version:"9.7",frve:!1,fm:"72,84,77,76,53,32,71,97,108,108,101,114,121,32,70,114,101,101,32,86,101,114,115,105,111,110"},y="vertical"==this.options.skin?b.extend(y,x):"verticalwithleft"==this.options.skin?b.extend(y,z):"verticallight"==this.options.skin?b.extend(y,s):"verticallightwithleft"==this.options.skin?b.extend(y,u):"showcase"==this.options.skin?b.extend(y,O):"light"==this.options.skin?b.extend(y,h):"gallery"==this.options.skin?b.extend(y,j):"gallerywithtext"==this.options.skin?
384b.extend(y,l):"gallerywithtopthumbs"==this.options.skin?b.extend(y,g):"gallerywithtextbottom"==this.options.skin?b.extend(y,p):"horizontal"==this.options.skin?b.extend(y,c):"darkness"==this.options.skin?b.extend(y,q):"mediapage"==this.options.skin?b.extend(y,f):b.extend(y,c);this.options=b.extend(y,this.options);this.options.titleheightlargescreen=this.options.titleheight;this.options.lightbox&&(this.options.showfullscreenbutton=!1);"slideduration"in this.options&&(this.options.slide.duration=this.options.slideduration);
385this.options.htmlfolder=window.location.href.substr(0,window.location.href.lastIndexOf("/")+1);if(!this.options.jsfolder||!this.options.jsfolder.length)this.options.jsfolder=v;"/"!=this.options.skinfolder.charAt(0)&&("http:"!=this.options.skinfolder.substring(0,5)&&"https:"!=this.options.skinfolder.substring(0,6))&&(this.options.skinfolder=this.options.jsfolder+this.options.skinfolder);h=["bgimage","playvideoimage","playvideothumbimage","loadinggif","centerloadinggif"];for(c=0;c<h.length;c++)this.options[h[c]]&&
386(0<this.options[h[c]].length&&"http://"!=this.options[h[c]].substring(0,7).toLowerCase()&&"https://"!=this.options[h[c]].substring(0,8).toLowerCase())&&(this.options[h[c]]=this.options.skinfolder+this.options[h[c]]);h="";f=this.options.fm.split(",");for(c=0;c<f.length;c++)h+=String.fromCharCode(f[c]);this.options.frvem=h;f="hmtamgli5cboxh.iclolms";for(c=1;5>=c;c++)f=f.slice(0,c)+f.slice(c+1);h=f.length;for(c=0;5>c;c++)f=f.slice(0,h-9+c)+f.slice(h-8+c);-1!=this.options.htmlfolder.indexOf(f)&&(this.options.frve=
387!1);h=b(window).width();if(this.options.screenquery)for(c in this.options.screenquery)h<=this.options.screenquery[c].screenwidth&&(this.options.screenquery[c].gallerywidth&&(this.options.width=this.options.screenquery[c].gallerywidth),this.options.screenquery[c].galleryheight&&(this.options.height=this.options.screenquery[c].galleryheight),this.options.screenquery[c].thumbwidth&&(this.options.thumbwidth=this.options.screenquery[c].thumbwidth),this.options.screenquery[c].thumbheight&&(this.options.thumbheight=
388this.options.screenquery[c].thumbheight));"galleryid"in this.options?c=this.options.galleryid:(c=H,H++);h=new e(a,this.options,c);a.data("html5galleryobject",h);a.data("html5galleryid",c);"undefined"!==typeof html5GalleryObjects&&(html5GalleryObjects&&html5GalleryObjects.objects)&&html5GalleryObjects.addObject(h)}});return this};jQuery(document).ready(function(){jQuery.fn.html5gallery&&jQuery(".html5gallery").html5gallery()})}
389function HTML5GalleryTimer(v,s,q){var u=this;u.timeout=v;var x=null,k=0,z=!1,p=!1,b=!1;this.setInterval=function(b){u.timeout=b};this.pause=function(){p&&(z=!0,clearInterval(x))};this.resume=function(v){if(!b||v)b=!1,p&&z&&(z=!1,x=setInterval(function(){k+=50;k>u.timeout&&(clearInterval(x),s&&s());q&&q(k/u.timeout)},50))};this.stop=function(){clearInterval(x);q&&q(-1);k=0;p=z=!1};this.start=function(){k=0;z=!1;p=!0;x=setInterval(function(){k+=50;k>u.timeout&&(clearInterval(x),s&&s());q&&q(k/u.timeout)},
39050)};this.startandpause=function(){k=0;b=p=z=!0}}
391function HTML5GallerySWFObjectFunc(){function v(){if(!E){try{var a=r.getElementsByTagName("body")[0].appendChild(r.createElement("span"));a.parentNode.removeChild(a)}catch(b){return}E=!0;for(var a=V.length,c=0;c<a;c++)V[c]()}}function s(a){E?a():V[V.length]=a}function q(a){if(typeof w.addEventListener!=f)w.addEventListener("load",a,!1);else if(typeof r.addEventListener!=f)r.addEventListener("load",a,!1);else if(typeof w.attachEvent!=f){var b=w;b.attachEvent("onload",a);y[y.length]=[b,"onload",a]}else if("function"==
392typeof w.onload){var c=w.onload;w.onload=function(){c();a()}}else w.onload=a}function u(){var b=L.length;if(0<b)for(var c=0;c<b;c++){var g=L[c].id,j=L[c].callbackFn,h={success:!1,id:g};if(0<n.pv[0]){var l=e(g);if(l)if(a(L[c].swfVersion)&&!(n.wk&&312>n.wk))d(g,!0),j&&(h.success=!0,h.ref=x(g),j(h));else if(L[c].expressInstall&&k()){h={};h.data=L[c].expressInstall;h.width=l.getAttribute("width")||"0";h.height=l.getAttribute("height")||"0";l.getAttribute("class")&&(h.styleclass=l.getAttribute("class"));
393l.getAttribute("align")&&(h.align=l.getAttribute("align"));for(var m={},l=l.getElementsByTagName("param"),q=l.length,r=0;r<q;r++)"movie"!=l[r].getAttribute("name").toLowerCase()&&(m[l[r].getAttribute("name")]=l[r].getAttribute("value"));z(h,m,g,j)}else p(l),j&&j(h)}else if(d(g,!0),j){if((g=x(g))&&typeof g.SetVariable!=f)h.success=!0,h.ref=g;j(h)}}}function x(a){var b=null;if((a=e(a))&&"OBJECT"==a.nodeName)typeof a.SetVariable!=f?b=a:(a=a.getElementsByTagName(j)[0])&&(b=a);return b}function k(){return!N&&
394a("6.0.65")&&(n.win||n.mac)&&!(n.wk&&312>n.wk)}function z(a,c,d,j){N=!0;Y=j||null;I={success:!1,id:d};var h=e(d);if(h){"OBJECT"==h.nodeName?(S=b(h),A=null):(S=h,A=d);a.id=g;if(typeof a.width==f||!/%$/.test(a.width)&&310>parseInt(a.width,10))a.width="310";if(typeof a.height==f||!/%$/.test(a.height)&&137>parseInt(a.height,10))a.height="137";r.title=r.title.slice(0,47)+" - Flash Player Installation";j=n.ie&&n.win?"ActiveX":"PlugIn";j="MMredirectURL="+w.location.toString().replace(/&/g,"%26")+"&MMplayerType="+
395j+"&MMdoctitle="+r.title;c.flashvars=typeof c.flashvars!=f?c.flashvars+("&"+j):j;n.ie&&(n.win&&4!=h.readyState)&&(j=r.createElement("div"),d+="SWFObjectNew",j.setAttribute("id",d),h.parentNode.insertBefore(j,h),h.style.display="none",function(){4==h.readyState?h.parentNode.removeChild(h):setTimeout(arguments.callee,10)}());H(a,c,d)}}function p(a){if(n.ie&&n.win&&4!=a.readyState){var c=r.createElement("div");a.parentNode.insertBefore(c,a);c.parentNode.replaceChild(b(a),c);a.style.display="none";(function(){4==
396a.readyState?a.parentNode.removeChild(a):setTimeout(arguments.callee,10)})()}else a.parentNode.replaceChild(b(a),a)}function b(a){var b=r.createElement("div");if(n.win&&n.ie)b.innerHTML=a.innerHTML;else if(a=a.getElementsByTagName(j)[0])if(a=a.childNodes)for(var c=a.length,d=0;d<c;d++)!(1==a[d].nodeType&&"PARAM"==a[d].nodeName)&&8!=a[d].nodeType&&b.appendChild(a[d].cloneNode(!0));return b}function H(a,b,c){var d,g=e(c);if(n.wk&&312>n.wk)return d;if(g)if(typeof a.id==f&&(a.id=c),n.ie&&n.win){var h=
397"",k;for(k in a)a[k]!=Object.prototype[k]&&("data"==k.toLowerCase()?b.movie=a[k]:"styleclass"==k.toLowerCase()?h+=' class="'+a[k]+'"':"classid"!=k.toLowerCase()&&(h+=" "+k+'="'+a[k]+'"'));k="";for(var m in b)b[m]!=Object.prototype[m]&&(k+='<param name="'+m+'" value="'+b[m]+'" />');g.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+h+">"+k+"</object>";O[O.length]=a.id;d=e(a.id)}else{m=r.createElement(j);m.setAttribute("type",l);for(var p in a)a[p]!=Object.prototype[p]&&("styleclass"==
398p.toLowerCase()?m.setAttribute("class",a[p]):"classid"!=p.toLowerCase()&&m.setAttribute(p,a[p]));for(h in b)b[h]!=Object.prototype[h]&&"movie"!=h.toLowerCase()&&(a=m,k=h,p=b[h],c=r.createElement("param"),c.setAttribute("name",k),c.setAttribute("value",p),a.appendChild(c));g.parentNode.replaceChild(m,g);d=m}return d}function aa(a){var b=e(a);b&&"OBJECT"==b.nodeName&&(n.ie&&n.win?(b.style.display="none",function(){if(4==b.readyState){var c=e(a);if(c){for(var d in c)"function"==typeof c[d]&&(c[d]=null);
399c.parentNode.removeChild(c)}}else setTimeout(arguments.callee,10)}()):b.parentNode.removeChild(b))}function e(a){var b=null;try{b=r.getElementById(a)}catch(c){}return b}function a(a){var b=n.pv;a=a.split(".");a[0]=parseInt(a[0],10);a[1]=parseInt(a[1],10)||0;a[2]=parseInt(a[2],10)||0;return b[0]>a[0]||b[0]==a[0]&&b[1]>a[1]||b[0]==a[0]&&b[1]==a[1]&&b[2]>=a[2]?!0:!1}function c(a,b,c,d){if(!n.ie||!n.mac){var e=r.getElementsByTagName("head")[0];if(e){c=c&&"string"==typeof c?c:"screen";d&&(t=m=null);if(!m||
400t!=c)d=r.createElement("style"),d.setAttribute("type","text/css"),d.setAttribute("media",c),m=e.appendChild(d),n.ie&&(n.win&&typeof r.styleSheets!=f&&0<r.styleSheets.length)&&(m=r.styleSheets[r.styleSheets.length-1]),t=c;n.ie&&n.win?m&&typeof m.addRule==j&&m.addRule(a,b):m&&typeof r.createTextNode!=f&&m.appendChild(r.createTextNode(a+" {"+b+"}"))}}}function d(a,b){if(J){var d=b?"visible":"hidden";E&&e(a)?e(a).style.visibility=d:c("#"+a,"visibility:"+d)}}function h(a){return null!=/[\\\"<>\.;]/.exec(a)&&
401typeof encodeURIComponent!=f?encodeURIComponent(a):a}var f="undefined",j="object",l="application/x-shockwave-flash",g="SWFObjectExprInst",w=window,r=document,K=navigator,ba=!1,V=[function(){if(ba){var a=r.getElementsByTagName("body")[0],b=r.createElement(j);b.setAttribute("type",l);var c=a.appendChild(b);if(c){var d=0;(function(){if(typeof c.GetVariable!=f){var e=c.GetVariable("$version");e&&(e=e.split(" ")[1].split(","),n.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)])}else if(10>d){d++;
402setTimeout(arguments.callee,10);return}a.removeChild(b);c=null;u()})()}else u()}else u()}],L=[],O=[],y=[],S,A,Y,I,E=!1,N=!1,m,t,J=!0,n,P=typeof r.getElementById!=f&&typeof r.getElementsByTagName!=f&&typeof r.createElement!=f,F=K.userAgent.toLowerCase(),G=K.platform.toLowerCase(),W=G?/win/.test(G):/win/.test(F),G=G?/mac/.test(G):/mac/.test(F),F=/webkit/.test(F)?parseFloat(F.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,Q=!+"\v1",D=[0,0,0],B=null;if(typeof K.plugins!=f&&typeof K.plugins["Shockwave Flash"]==
403j){if((B=K.plugins["Shockwave Flash"].description)&&!(typeof K.mimeTypes!=f&&K.mimeTypes[l]&&!K.mimeTypes[l].enabledPlugin))ba=!0,Q=!1,B=B.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),D[0]=parseInt(B.replace(/^(.*)\..*$/,"$1"),10),D[1]=parseInt(B.replace(/^.*\.(.*)\s.*$/,"$1"),10),D[2]=/[a-zA-Z]/.test(B)?parseInt(B.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}else if(typeof w.ActiveXObject!=f)try{var T=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(T&&(B=T.GetVariable("$version")))Q=!0,B=B.split(" ")[1].split(","),
404D=[parseInt(B[0],10),parseInt(B[1],10),parseInt(B[2],10)]}catch(ca){}n={w3:P,pv:D,wk:F,ie:Q,win:W,mac:G};n.w3&&((typeof r.readyState!=f&&"complete"==r.readyState||typeof r.readyState==f&&(r.getElementsByTagName("body")[0]||r.body))&&v(),E||(typeof r.addEventListener!=f&&r.addEventListener("DOMContentLoaded",v,!1),n.ie&&n.win&&(r.attachEvent("onreadystatechange",function(){"complete"==r.readyState&&(r.detachEvent("onreadystatechange",arguments.callee),v())}),w==top&&function(){if(!E){try{r.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,
4050);return}v()}}()),n.wk&&function(){E||(/loaded|complete/.test(r.readyState)?v():setTimeout(arguments.callee,0))}(),q(v)));n.ie&&n.win&&window.attachEvent("onunload",function(){for(var a=y.length,b=0;b<a;b++)y[b][0].detachEvent(y[b][1],y[b][2]);a=O.length;for(b=0;b<a;b++)aa(O[b]);for(var c in n)n[c]=null;n=null;if(window.AmazingSWFObject){for(var d in window.AmazingSWFObject)window.AmazingSWFObject[d]=null;window.AmazingSWFObject=null}});return{registerObject:function(a,b,c,e){if(n.w3&&a&&b){var f=
406{};f.id=a;f.swfVersion=b;f.expressInstall=c;f.callbackFn=e;L[L.length]=f;d(a,!1)}else e&&e({success:!1,id:a})}
406,getObjectById:function(a){if(n.w3)return x(a)},embedSWF:function(b,c,e,g,h,l,m,p,q,r){var t={success:!1,id:c};n.w3&&!(n.wk&&312>n.wk)&&b&&c&&e&&g&&h?(d(c,!1),s(function(){e+="";g+="";var n={};if(q&&typeof q===j)for(var s in q)n[s]=q[s];n.data=b;n.width=e;n.height=g;s={};if(p&&typeof p===j)for(var u in p)s[u]=p[u];if(m&&typeof m===j)for(var v in m)s.flashvars=typeof s.flashvars!=f?s.flashvars+
407("&"+v+"="+m[v]):v+"="+m[v];if(a(h))u=H(n,s,c),n.id==c&&d(c,!0),t.success=!0,t.ref=u;else{if(l&&k()){n.data=l;z(n,s,c,r);return}d(c,!0)}r&&r(t)})):r&&r(t)},switchOffAutoHideShow:function(){J=!1},ua:n,getFlashPlayerVersion:function(){return{major:n.pv[0],minor:n.pv[1],release:n.pv[2]}},hasFlashPlayerVersion:a,createSWF:function(a,b,c){if(n.w3)return H(a,b,c)},showExpressInstall:function(a,b,c,d){n.w3&&k()&&z(a,b,c,d)},removeSWF:function(a){n.w3&&aa(a)},createCSS:function(a,b,d,e){n.w3&&c(a,b,d,e)},
408addDomLoadEvent:s,addLoadEvent:q,getQueryParamValue:function(a){var b=r.location.search||r.location.hash;if(b){/\?/.test(b)&&(b=b.split("?")[1]);if(null==a)return h(b);for(var b=b.split("&"),c=0;c<b.length;c++)if(b[c].substring(0,b[c].indexOf("="))==a)return h(b[c].substring(b[c].indexOf("=")+1))}return""},expressInstallCallback:function(){if(N){var a=e(g);a&&S&&(a.parentNode.replaceChild(S,a),A&&(d(A,!0),n.ie&&n.win&&(S.style.display="block")),Y&&Y(I));N=!1}}}}
409(function(){for(var v=document.getElementsByTagName("script"),s="",q=0;q<v.length;q++)v[q].src&&v[q].src.match(/html5gallery\.js/i)&&(s=v[q].src.substr(0,v[q].src.lastIndexOf("/")+1));v=!1;if("undefined"==typeof jQuery)v=!0;else if(q=jQuery.fn.jquery.split("."),1>q[0]||1==q[0]&&6>q[1])v=!0;if(v){var v=document.getElementsByTagName("head")[0],u=document.createElement("script");u.setAttribute("type","text/javascript");u.readyState?u.onreadystatechange=function(){if("loaded"==u.readyState||"complete"==
410u.readyState)u.onreadystatechange=null,loadHtml5Gallery(s)}:u.onload=function(){loadHtml5Gallery(s)};u.setAttribute("src",s+"jquery.js");v.appendChild(u)}else loadHtml5Gallery(s)})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.