1/** HTML5 LightBox - jQuery Image and Video LightBox Plugin 2 * Copyright 2014 Magic Hills Pty Ltd All Rights Reserved 3 * Website: http://html5box.com 4 * Version 7.5 5 */ 6function loadHtml5LightBox(o){var t,e,i;(t=jQuery).fn.html5lightbox=function(e){var i=this;i.options=t.extend({defaultvideovolume:1,autoclose:!1,autoclosedelay:0,resizedelay:100,insideiframe:!1,autoresizecontent:!0,defaultwidth:960,defaultheight:540,autoplay:!0,loopvideo:!1,html5player:!0,responsive:!0,nativehtml5controls:!1,videohidecontrols:!1,nativecontrolsonfirefox:!0,nativecontrolsonie:!0,nativecontrolsonandroid:!0,imagekeepratio:!0,maxheight:!1,elemautoheight:!1,useflashonie9:!0,useflashonie10:!0,useflashonie11:!1,useflashformp4onfirefox:!1,transition:"none",transitionduration:400,enablepdfjs:!0,pdfjsengine:"",openpdfinnewtaboniphone:!1,openpdfinnewtabonipad:!1,googleanalyticsaccount:"",arrowloop:!0,showall:!1,userelforgroup:!0,shownavigation:!0,thumbwidth:96,thumbheight:72,thumbgap:4,thumbtopmargin:12,thumbbottommargin:12,thumbborder:1,thumbbordercolor:"transparent",thumbhighlightbordercolor:"#fff",thumbopacity:1,navbuttonwidth:32,navbgcolor:"rgba(0,0,0,0.2)",shownavcontrol:!0,navcontrolimage:"lightbox-navcontrol.png",hidenavdefault:!1,overlaybgcolor:"#000",overlayopacity:.9,bgcolor:"#fff",bordersize:8,borderradiu
6s:0,bordermargin:16,bordertopmargin:48,bordertopmarginsmall:48,barautoheight:!0,barheight:64,responsivebarheight:!1,smallscreenheight:415,barheightonsmallheight:64,notkeepratioonsmallheight:!1,loadingwidth:64,loadingheight:64,resizespeed:400,fadespeed:400,jsfolder:o,skinsfoldername:"skins/default/",loadingimage:"lightbox-loading.gif",nextimage:"lightbox-next.png",previmage:"lightbox-prev.png",closeimage:"lightbox-close.png",playvideoimage:"lightbox-playvideo.png",titlebgimage:"lightbox-titlebg.png",navarrowsprevimage:"lightbox-navprev.png",navarrowsnextimage:"lightbox-navnext.png",navarrowsalwaysshowontouch:!0,navarrowsbottomscreenwidth:479,closeonoverlay:!0,alwaysshownavarrows:!1,showplaybutton:!0,playimage:"lightbox-play.png",pauseimage:"lightbox-pause.png",fullscreenmode:!1,fullscreencloseimage:"lightbox-close-fullscreen.png",fullscreennextimage:"lightbox-next-fullscreen.png",fullscreenprevimage:"lightbox-prev-fullscreen.png",fullscreennomargin:!1,fullscreenmodeonsmallscreen:!1,fullscreennomarginonsmallscreen:!1,fullscreensmallscreenwidth:736,fullscreenbgcolor:"rgba(0, 0, 0, 0.9)",fullscreennomargintextinside:!1,videobgcolor:"#000",html5videoposter:"",showtitle:!0,titlestyle:"bottom",titleinsidecss:"color:#fff; font-size:16px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left; margin:4px 8px;",titlebottomcss:"color:#333; font-size:16px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left;",showdescription:!0,descriptioninsidecss:"color:#fff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left; margin:4px 0px 0px; padding: 0px;",descriptionbottomcss:"color:#333; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left; margin:4px 0px 0px; padding: 0px;",fullscreentitlebottomcss:"color:#fff; font-size:16px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left; margin:4px 8px 8px;",fullscreendescriptionbottomcss:"color:#fff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left; margin:4px 0px 0px; padding: 0px;",showsocialmedia:!0,socialmediaposition:"position:absolute;top:8px;right:8px;",showtitleprefix:!0,titleprefix:"%NUM / %TOTAL",autoslide:!1,slideinterval:5e3,showtimer:!0,timerposition:"bottom",timerheight:2,timercolor:"#dc572e",timeropacity:1,initvimeo:!0,inityoutube:!0,swipepreventdefaultonandroid:!1,initsocial:!0,showsocial:!1,socialposition:"position:absolute;top:100%;right:0;",socialpositionsmallscreen:"position:absolute;top:100%;right:0;left:0;",socialdirection:"horizontal",socialbuttonsize:32,socialbuttonfontsize:18,socialrotateeffect:!0,showfacebook:!0,showtwitter:!0,showpinterest:!0,showemail:!1,imagepercentage:75,sidetobottomscreenwidth:479,errorwidth:280,errorheight:48,errorcss:"text-align:center; color:#ff0000; font-size:14px; font-family:Arial, sans-serif;",enabletouchswipe:!0,mobileresizeevent:!1,swipedistance:0,bodynoscroll:!1,useabsolutepos:!1,useabsoluteposonmobile:!1,supportesckey:!0,supportarrowkeys:!0,version:"3.3",stamp:!1,freemark:"72,84,77,76,53,32,76,105,103,104,116,98,111,120,32,70,114,101,101,32,86,101,114,115,105,111,110",watermark:"",watermarklink:""},e),"undefined"!=typeof html5lightbox_options&&html5lightbox_options&&t.extend(i.options,html5lightbox_options),t("div.html5lightbox_options").length&&t.each(t("div.html5lightbox_options").data(),function(o,t){i.options[o.toLowerCase()]=t}),t("div#html5lightbox_options").length&&t.each(t("div#html5lightbox_options").data(),function(o,t){i.options[o.toLowerCase()]=t}),t("div#html5lightbox_general_options").length&&t.each(t("div#html5lightbox_general_options").data(),function(o,t){i.options[o.toLowerCase()]=t});var n=i.options.defaultwidth,s=i.options.defaultheight;i.options.types=["IMAGE","FLASH","VIDEO","YOUTUBE","VIMEO","PDF","MP3","WEB","FLV","DAILYMOTION","DIV","WISTIA","IFRAMEVIDEO"],i.options.htmlfolder=window.location.href.substr(0,window.location.href.lastIndexOf("/")+1),i.options.skinsfolder=i.options.skinsfoldername,i.options.skinsfolder.length>0&&"/"!=i.options.skinsfolder[i.options.skinsfolder.length-1]&&(i.options.skinsfolder+="/"),"/"!=i.options.skinsfolder.charAt(0)&&"http:"!=i.options.skinsfolder.substring(0,5)&&"https:"!=i.options.skinsfolder.substring(0,6)&&
6(i.options.skinsfolder=i.options.jsfolder+i.options.skinsfolder);for(var l,r=["loadingimage","nextimage","previmage","closeimage","playvideoimage","titlebgimage","navarrowsprevimage","navarrowsnextimage","navcontrolimage","playimage","pauseimage","fullscreencloseimage","fullscreennextimage","fullscreenprevimage"],a=0;a<r.length;a++)i.options[r[a]]&&"http://"!=i.options[r[a]].substring(0,7).toLowerCase()&&"https://"!=i.options[r[a]].substring(0,8).toLowerCase()&&(i.options[r[a]]=i.options.skinsfolder+i.options[r[a]]);var h="",p=i.options.freemark.split(",");for(a=0;a<p.length;a++)h+=String.fromCharCode(p[a]);i.options.freemark=h;var c="hmtamgli5cboxh.iclolms";for(a=1;a<=5;a++)c=c.slice(0,a)+c.slice(a+1);for(l=c.length,a=0;a<5;a++)c=c.slice(0,l-9+a)+c.slice(l-8+a);-1!=i.options.htmlfolder.indexOf(c)&&(i.options.stamp=!1),i.options.flashInstalled=!1;try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash")&&(i.options.flashInstalled=!0)}catch(o){navigator.mimeTypes["application/x-shockwave-flash"]&&(i.options.flashInstalled=!0)}if(i.options.html5VideoSupported=!!document.createElement("video").canPlayType,i.options.isChrome=null!=navigator.userAgent.match(/Chrome/i),i.options.isFirefox=null!=navigator.userAgent.match(/Firefox/i),i.options.isOpera=null!=navigator.userAgent.match(/Opera/i)||null!=navigator.userAgent.match(/OPR\//i),i.options.isSafari=null!=navigator.userAgent.match(/Safari/i),i.options.isIE11=null!=navigator.userAgent.match(/Trident\/7/)&&null!=navigator.userAgent.match(/rv:11/),i.options.isIE=null!=navigator.userAgent.match(/MSIE/i)&&!i.options.isOpera,i.options.isIE10=null!=navigator.userAgent.match(/MSIE 10/i)&&!this.options.isOpera,i.options.isIE9=null!=navigator.userAgent.match(/MSIE 9/i)&&!i.options.isOpera,i.options.isIE8=null!=navigator.userAgent.match(/MSIE 8/i)&&!i.options.isOpera,i.options.isIE7=null!=navigator.userAgent.match(/MSIE 7/i)&&!i.options.isOpera,i.options.isIE6=null!=navigator.userAgent.match(/MSIE 6/i)&&!i.options.isOpera,i.options.isIE678=i.options.isIE6||i.options.isIE7||i.options.isIE8,i.options.isIE6789=i.options.isIE6||i.options.isIE7||i.options.isIE8||i.options.isIE9,i.options.isAndroid=null!=navigator.userAgent.match(/Android/i),i.options.isIPad=null!=navigator.userAgent.match(/iPad/i),i.options.isIPhone=null!=navigator.userAgent.match(/iPod/i)||null!=navigator.userAgent.match(/iPhone/i),i.options.isIOS=i.options.isIPad||i.options.isIPhone,i.options.isMobile=i.options.isAndroid||i.options.isIPad||i.options.isIPhone,i.options.isIOSLess5=i.options.isIPad&&i.options.isIPhone&&(null!=navigator.userAgent.match(/OS 4/i)||null!=navigator.userAgent.match(/OS 3/i)),i.options.supportCSSPositionFixed=!i.options.isIE6&&!i.options.isIOSLess5,i.options.iequirksmode=i.options.isIE6789&&"CSS1Compat"!=document.compatMode,i.options.isTouch="ontouchstart"in window,i.options.isAndroid){var d=navigator.userAgent.match(/Android\s([0-9\.]*)/i);i.options.androidVersion=d&&d.length>=2?parseInt(d[1],10):-1}var m=document.createElement("video");if(i.options.canplaymp4=m&&m.canPlayType&&m.canPlayType("video/mp4").replace(/no/,""),i.options.isMobile&&(i.options.autoplay=!1),(i.options.isFirefox&&i.options.nativecontrolsonfirefox||i.options.isAndroid&&i.options.nativecontrolsonandroid)&&(i.options.nativehtml5controls=!0),(i.options.isIE6789||i.options.isIE10||i.options.isIE11)&&i.options.nativecontrolsonie&&(i.options.nativehtml5controls=!0),i.options.navheight=0,i.options.thumbgap+=2*i.options.thumbborder,i.options.resizeTimeout=-1,i.slideTimeout=null,i.autosliding=!1,i.existingElem=-1,i.direction=-3,i.elemArray=new Array,i.options.curElem=-1,i.defaultoptions=t.extend({},i.options),i.options.googleanalyticsaccount&&!window._gaq&&(window._gaq=window._gaq||[],window._gaq.pu
6sh(["_setAccount",i.options.googleanalyticsaccount]),window._gaq.push(["_trackPageview"]),t.getScript()),i.options.initvimeo){var u,g=document.createElement("script");(u=document.getElementsByTagName("script")[0]).parentNode.insertBefore(g,u)}i.options.inityoutube&&((g=document.createElement("script")).src="https://www.youtube.com/iframe_api",(u=document.getElementsByTagName("script")[0]).parentNode.insertBefore(g,u)),i.options.initsocial&&(i.showing=!1),i.navvisible=!1,i.disableEscKey=function(o){o?i.disableesckeyinfullscreen=!0:setTimeout(function(){i.disableesckeyinfullscreen=!1},1e3)},i.supportKeyboard=function(){i.disableesckeyinfullscreen=!1,t(document).keyup(function(o){i.showing&&(!i.disableesckeyinfullscreen&&i.options.supportesckey&&27==o.keyCode?i.finish():i.options.supportarrowkeys&&(39==o.keyCode?i.gotoSlide(-1):37==o.keyCode&&i.gotoSlide(-2)))}),i.options.supportesckey&&(document.addEventListener("MSFullscreenChange",function(){i.disableEscKey(null!=document.msFullscreenElement)},!1),document.addEventListener("webkitfullscreenchange",function(){i.disableEscKey(document.webkitIsFullScreen)},!1))},i.supportKeyboard(),i.init=function(){i.showing=!1,i.readData(),i.createMarkup(),i.initSlide()},i.readData=function(){i.each(function(){if("a"==this.nodeName.toLowerCase()||"area"==this.nodeName.toLowerCase()){var o=t(this),e="mediatype"in o.data()?o.data("mediatype"):i.checkType(o.attr("href"));if(!(e<0)){for(var n=o.data("title")?o.data("title"):o.attr("title"),s=o.data("group")?o.data("group"):i.options.userelforgroup?o.attr("rel"):null,l=0;l<i.elemArray.length;l++)if(o.attr("href")==i.elemArray[l][1])return i.elemArray[l][2]=n,void(i.elemArray[l][3]=s);i.elemArray.push(new Array(e,o.attr("href"),n,s,o.data("width"),o.data("height"),o.data("webm"),o.data("ogg"),o.data("thumbnail"),o.data("description"),null,null,null,o.data("socialmedia")))}}})},i.createMarkup=function(){t(window).width()<=i.options.fullscreensmallscreenwidth&&(i.options.fullscreenmodeonsmallscreen&&(i.options.fullscreenmode=!0,i.options.fullscreennomarginonsmallscreen&&(i.options.fullscreennomargin=!0)),i.options.fullscreenmode&&i.options.fullscreennomarginonsmallscreen&&(i.options.fullscreennomargin=!0)),i.options.fullscreenmode&&i.options.fullscreennomargin&&(i.options.bgcolor=i.options.fullscreenbgcolor,i.options.bordersize=0,i.options.bordermargin=0,i.options.bordertopmargin=0,i.options.bordertopmarginsmall=0,i.options.fullscreennomargintextinside?i.options.titlestyle="inside":(i.options.titlebottomcss=i.options.fullscreentitlebottomcss,i.options.descriptionbottomcss=i.options.fullscreendescriptionbottomcss)),i.options.barheightoriginal=i.options.barheight,i.options.responsivebarheight&&t(window).height()<=i.options.smallscreenheight&&(i.options.barheight=i.options.barheightonsmallheight),i.options.titlecss||(i.options.titlecss="inside"==i.options.titlestyle?i.options.titleinsidecss:i.options.titlebottomcss),i.options.descriptioncss||(i.options.descriptioncss="inside"==i.options.titlestyle?i.options.descriptioninsidecss:i.options.descriptionbottomcss),i.options.titlecss=t.trim(i.options.titlecss),i.options.titlecss.length>1&&("{"==i.options.titlecss.charAt(0)&&(i.options.titlecss=i.options.titlecss.substring(1)),"}"==i.options.titlecss.charAt(i.options.titlecss.length-1)&&(i.options.titlecss=i.options.titlecss.substring(0,i.options.titlecss.length-1))),i.options.descriptioncss=t.trim(i.options.descriptioncss),i.options.descriptioncss.length>1&&("{"==i.options.descriptioncss.charAt(0)&&(i.options.descriptioncss=i.options.descriptioncss.substring(1)),"}"==i.options.descriptioncss.charAt(i.options.descriptioncss.length-1)&&(i.options.descriptioncss=i.options.descriptioncss.substring(0,i.options.descriptioncss.length-1))),i.options.errorcss=t.trim(i.options.errorcss),i.options.errorcss.length>1&&("{"==i.options.errorcss.charAt(0)&&(i.options.errorcss=i.options.errorcss.substring(1)),"}"==i.options.errorcss.charAt(i.options.errorcss.length-1)&&(i.options.errorcss=i.options.errorcss.substring(0,i.options.errorcss.length-1)));var o=".bodynoscroll {height:100%;overflow:hidden;}";o+=".html5-hide {display:none !important;} #html5box-html5-lightbox .html5-text {"+i.options.titlecss+"}",o+="#html5box-html5-lightbox .html5-description {"+i.options.descriptioncss+"}",o+="#html5box-html5-lightbox .html5-error {"+i.options.errorcss+"}",(i.options.navarrowsalwaysshowontouch||i.options.alwaysshownavarrows)&&(o+="#html5box-html5-lightbox .html5-prev-touch {left
6:0px;top:50%;margin-top:-16px;margin-left:-32px;} #html5box-html5-lightbox .html5-next-touch {right:0px;top:50%;margin-top:-16px;margin-right:-32px;}",o+="@media (max-width: "+i.options.navarrowsbottomscreenwidth+"px) { #html5box-html5-lightbox .html5-prev-touch {top:100%;left:0;margin:0;} #html5box-html5-lightbox .html5-next-touch {top:100%;right:0;margin:0;} }"),o+="#html5box-html5-lightbox .html5-prev-fullscreen {display:block;} #html5box-html5-lightbox .html5-next-fullscreen {display:block;} #html5box-html5-lightbox .html5-prev-bottom-fullscreen {display:none;} #html5box-html5-lightbox .html5-next-bottom-fullscreen {display:none;}",o+="@media (max-width: "+i.options.navarrowsbottomscreenwidth+"px) {#html5box-html5-lightbox .html5-prev-fullscreen {display:none;} #html5box-html5-lightbox .html5-next-fullscreen {display:none;} #html5box-html5-lightbox .html5-prev-bottom-fullscreen {display:block;} #html5box-html5-lightbox .html5-next-bottom-fullscreen {display:block;} }","right"==i.options.titlestyle?(o+="#html5box-html5-lightbox .html5-elem-wrap {width:"+i.options.imagepercentage+"%;height:100%;} #html5box-html5-lightbox .html5-elem-data-box {min-height:100%;}",o+="@media (max-width: "+i.options.sidetobottomscreenwidth+"px) {#html5box-html5-lightbox .html5-elem-wrap {width:100%;height:auto;} #html5box-html5-lightbox .html5-elem-data-box {width:100%;height:auto;min-height:0;}}"):"left"==i.options.titlestyle&&(o+="#html5box-html5-lightbox .html5-elem-wrap {height:100%;} #html5box-html5-lightbox .html5-elem-data-box {width:"+String(100-i.options.imagepercentage)+"%;min-height:100%;}",o+="@media (max-width: "+i.options.sidetobottomscreenwidth+"px) {#html5box-html5-lightbox .html5-elem-wrap {width:100%;height:auto;} #html5box-html5-lightbox .html5-elem-data-box {width:100%;height:auto;min-height:0;}}"),o+=".html5-rotate { border-radius:50%; -webkit-transition:-webkit-transform .4s ease-in; transition: transform .4s ease-in; } .html5-rotate:hover { -webkit-transform: rotate(360deg); transform: rotate(360deg); }",o+="@media (max-width: "+i.options.navarrowsbottomscreenwidth+"px) {#html5-social {"+i.options.socialpositionsmallscreen+"}}",t("head").append("<style type='text/css' data-creator='html5box-html5-lightbox'>"+o+"</style>");var e=i.options.elemautoheight?"auto":"100%";i.$lightbox=t("<div id='html5box-html5-lightbox' style='display:none;top:0px;left:0px;width:100%;height:100%;z-index:9999998;text-align:center;'><div id='html5-lightbox-overlay' style='display:block;position:absolute;top:0px;left:0px;width:100%;min-height:100%;background-color:"+i.options.overlaybgcolor+";opacity:"+i.options.overlayopacity+";filter:alpha(opacity="+Math.round(100*i.options.overlayopacity)+");'></div><div id='html5-lightbox-box' style='display:block;position:relative;margin:0px auto;'><div class='html5-elem-box' style='display:block;position:relative;width:100%;overflow-x:hidden;overflow-y:auto;height:"+e+";margin:0px auto;text-align:center;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;'><div class='html5-elem-wrap' style='display:block;position:relative;margin:0px auto;text-align:center;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;background-color:"+i.options.bgcolor+";'><div class='html5-loading' style='display:none;position:absolute;top:0px;left:0px;text-align:center;width:100%;height:100%;background:url(\""+i.options.loadingimage+"\") no-repeat center center;'></div><div class='html5-error-box html5-error' style='display:none;position:absolute;padding:"+i.options.bordersize+"px;text-align:center;width:"+i.options.errorwidth+"px;height:"+i.options.errorheight+"px;'>The requested content cannot be loaded.<br />Please try again later.</div><div class='html5-image' style='display:none;position:relative;top:0px;left:0px;width:100%;height:100%;"+(i.options.iequirksmode?"margin":"padding")+":"+i.options.bordersize+"px;text-align:center;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;'></div></div></div><div id='html5-watermark' style='display:none;position:absolute;
6left:"+String(i.options.bordersize+2)+"px;top:"+String(i.options.bordersize+2)+"px;'></div></div></div>"),i.options.positionFixed=i.options.supportCSSPositionFixed&&i.options.responsive&&!i.options.iequirksmode,(i.options.useabsolutepos||i.options.useabsoluteposonmobile&&i.options.isMobile)&&(i.options.positionFixed=!1),i.options.positionFixed||(i.options.bodynoscroll=!0),i.$lightbox.css({position:i.options.positionFixed?"fixed":"absolute"}),i.$lightbox.appendTo("body"),i.$lightboxBox=t("#html5-lightbox-box",i.$lightbox),i.$elem=t(".html5-elem-box",i.$lightbox),i.$elemWrap=t(".html5-elem-wrap",i.$lightbox),i.$loading=t(".html5-loading",i.$lightbox),i.$error=t(".html5-error-box",i.$lightbox),i.$image=t(".html5-image",i.$lightbox),i.options.fullscreenmode&&i.options.fullscreennomargin&&i.$elem.css({overflow:"hidden"});var n="<div class='html5-elem-data-box' style='display:none;box-sizing:border-box;'><div class='html5-text' style='display:block;overflow:hidden;'></div></div>";if("left"==i.options.titlestyle?i.$elem.prepend(n):i.$elem.append(n),i.$elemData=t(".html5-elem-data-box",i.$lightbox),i.$text=t(".html5-text",i.$lightbox),i.options.borderradius>0&&(i.$elem.css({"border-radius":i.options.borderradius+"px","-moz-border-radius":i.options.borderradius+"px","-webkit-border-radius":i.options.borderradius+"px"}),"inside"==i.options.titlestyle?i.$elemWrap.css({"border-radius":i.options.borderradius+"px","-moz-border-radius":i.options.borderradius+"px","-webkit-border-radius":i.options.borderradius+"px"}):"bottom"==i.options.titlestyle&&(i.$elemWrap.css({"border-top-left-radius":i.options.borderradius+"px","-moz-top-left-border-radius":i.options.borderradius+"px","-webkit-top-left-border-radius":i.options.borderradius+"px","border-top-right-radius":i.options.borderradius+"px","-moz-top-right-border-radius":i.options.borderradius+"px","-webkit-top-right-border-radius":i.options.borderradius+"px"}),i.$elemData.css({"border-bottom-left-radius":i.options.borderradius+"px","-moz-top-bottom-border-radius":i.options.borderradius+"px","-webkit-bottom-left-border-radius":i.options.borderradius+"px","border-bottom-right-radius":i.options.borderradius+"px","-moz-bottom-right-border-radius":i.options.borderradius+"px","-webkit-bottom-right-border-radius":i.options.borderradius+"px"}))),"right"==i.options.titlestyle||"left"==i.options.titlestyle?(i.$lightboxBox.css({"background-color":i.options.bgcolor}),"right"==i.options.titlestyle?(i.$elemWrap.css({position:"relative",float:"left"}),i.$elemData.css({position:"relative",overflow:"hidden",padding:i.options.bordersize+"px"})):(i.$elemWrap.css({position:"relative",overflow:"hidden"}),i.$elemData.css({position:"relative",float:"left",padding:i.options.bordersize+"px"}))):"inside"==i.options.titlestyle?(i.$elemData.css({position:"absolute",margin:i.options.bordersize+"px",bottom:0,left:0,"background-color":"#333","background-color":"rgba(51, 51, 51, 0.6)"}),i.$text.css({padding:i.options.bordersize+"px "+2*i.options.bordersize+"px"})):(i.$elemData.css({position:"relative",width:"100%",height:i.options.barautoheight?"auto":i.options.barheight+"px",padding:"0 0 "+i.options.bordersize+"px 0","background-color":i.options.bgcolor,"text-align":"left"}),i.options.fullscreenmode&&i.options.fullscreennomargin||i.$text.css({margin:"0 "+i.options.bordersize+"px"})),i.options.showsocial){var s='<div id="html5-social" style="display:none;'+i.options.socialposition+'">',l=("horizontal"==i.options.socialdirection?"display:inline-block;":"display:block;")+"margin:4px;",r="display:table-cell;width:"+i.options.socialbuttonsize+"px;height:"+i.options.socialbuttonsize+"px;font-size:"+i.options.socialbuttonfontsize+"px;border-radius:50%;color:#fff;vertical-align:middle;text-align:center;cursor:pointer;padding:0;";i.options.showemail&&(s+='<div class="html5-social-btn'+(i.options.socialrotateeffect?" html5-rotate":"")+' html5-social-email" style="'+l+'"><div class="mh-icon-mail" style="'+r+'background-color:#4d83ff;"></div></div>'),i.options.showfacebook&&(s+='<div class="html5-social-btn'+(i.options.socialrotateeffect?" html5-rotate":"")+' html5-social-facebook" style="'+l+'"><div class="mh-icon-facebook" style="'+r+'background-color:#3b5998;"></div></div>'),i.options.showtwitter&&(s+='<div class="html5-social-btn'+(i.options.socialrotateeffect?" html5-rotate":"")+' html5-social-twitter" style="'+l+'"><div class="mh-icon-twitter" style="'+r+'background-color:#03b3ee;"></div></div>'),i.options.showpinterest&&(s+='<div class="html5-social-btn'+(i.options.socialrotateeffect?" html5-rotate":"")+' html5-social-pinterest" style="'+l+'"><div class="mh-icon-pinterest" style="'+r+'background-color:#c92228;"></div></div>'),s+='<div style="clear:both;"></div></div>',i.$lightboxBox.append(s),t(".html5-social-btn",i.$lightbox).click(function(){var o=window.location.href+(window.location.href.indexOf("?")<0?"?":"&")+"html5lightboxshare="+encodeURIComponent(i.currentElem[1]),e=i.currentElem[2],n=i.currentElem[1];if(0==i.currentElem[0])n=i.absoluteUrl(i.currentElem[1]);else if(3==i.currentElem[0])n="https://img.youtube.com/vi/"+i.getYoutubeId(i.currentElem[1])+"/0.jpg";else{var s=t('.html5lightbox[href="'+i.currentElem[1]+'"]');if(s.length>0)if(s.data("shareimage")&&s.data("shareimage").length>0)n=i.absoluteUrl(s.data("shareimage"));else if(s.data("thumbnail")&&s.data("thumbnail").length>0)n=i.absoluteUrl(s.data("thumbnail"));else{var l=t("img",s);l.length>0&&(n=i.absoluteUrl(l.attr("src")))}}
6var r=2==i.currentElem[0]||3==i.currentElem[0]||4==i.currentElem[0]||8==i.currentElem[0]||9==i.currentElem[0]||11==i.currentElem[0]||12==i.currentElem[0];return e=e?i.html2Text(e):"",t(this).hasClass("html5-social-facebook")?window.open("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(o)+"&t="+encodeURIComponent(e),"_blank"):t(this).hasClass("html5-social-twitter")?window.open("https://twitter.com/share?url="+encodeURIComponent(o)+"&text="+encodeURIComponent(e),"_blank"):t(this).hasClass("html5-social-pinterest")?window.open("https://pinterest.com/pin/create/bookmarklet/?media="+encodeURIComponent(n)+"&url="+encodeURIComponent(o)+"&description="+encodeURIComponent(e)+"&is_video="+(r?"true":"false"),"_blank"):t(this).hasClass("html5-social-email")&&window.open("mailto:?subject="+encodeURIComponent(e)+"&body=Check out this: "+encodeURIComponent(o)),!1})}if(i.options.fullscreenmode?(i.$lightbox.append("<div class='html5-next-fullscreen' style='cursor:pointer;position:absolute;right:"+i.options.bordersize+"px;top:50%;margin-top:-16px;'><img alt='' src='"+i.options.fullscreennextimage+"'></div><div class='html5-prev-fullscreen' style='cursor:pointer;position:absolute;left:"+i.options.bordersize+"px;top:50%;margin-top:-16px;'><img alt='' src='"+i.options.fullscreenprevimage+"'></div>"),i.$next=t(".html5-next-fullscreen",i.$lightbox),i.$prev=t(".html5-prev-fullscreen",i.$lightbox),i.$lightboxBox.append("<div class='html5-next-bottom-fullscreen' style='cursor:pointer;position:absolute;top:100%;right:0;margin-top:8px;'><img alt='' src='"+i.options.fullscreennextimage+"'></div><div class='html5-prev-bottom-fullscreen' style='cursor:pointer;position:absolute;top:100%;left:0;margin-top:8px;'><img alt='' src='"+i.options.fullscreenprevimage+"'></div>"),i.$nextbottom=t(".html5-next-bottom-fullscreen",i.$lightbox),i.$prevbottom=t(".html5-prev-bottom-fullscreen",i.$lightbox),i.$nextbottom.click(function(){i.nextArrowClicked()}),i.$prevbottom.click(function(){i.prevArrowClicked()}),i.$lightbox.append("<div id='html5-close-fullscreen' style='display:block;cursor:pointer;position:absolute;top:0;right:0;margin-top:0;margin-right:0;'><img alt='' src='"+i.options.fullscreencloseimage+"'></div>"),i.$close=t("#html5-close-fullscreen",i.$lightbox)):(i.$lightboxBox.append("<div class='html5-next' style='display:none;cursor:pointer;position:absolute;right:"+i.options.bordersize+"px;top:50%;margin-top:-32px;'><img alt='' src='"+i.options.nextimage+"'></div><div class='html5-prev' style='display:none;cursor:pointer;position:absolute;left:"+i.options.bordersize+"px;top:50%;margin-top:-32px;'><img alt='' src='"+i.options.previmage+"'></div>"),i.$next=t(".html5-next",i.$lightbox),i.$prev=t(".html5-prev",i.$lightbox),(i.options.isTouch&&i.options.navarrowsalwaysshowontouch||i.options.alwaysshownavarrows)&&(i.$lightboxBox.append("<div class='html5-next-touch' style='display:block;cursor:pointer;position:absolute;'><img alt='' src='"+i.options.nextimage+"'></div><div class='html5-prev-touch' style='display:block;cursor:pointer;position:absolute;'><img alt='' src='"+i.options.previmage+"'></div>"),i.$nexttouch=t(".html5-next-touch",i.$lightbox),i.$prevtouch=t(".html5-prev-touch",i.$lightbox),i.$nexttouch.click(function(){i.nextArrowClicked()}),i.$prevtouch.click(function(){i.prevArrowClicked()})),i.$lightboxBox.append("<div id='html5-close' style='display:none;cursor:pointer;position:absolute;top:0;right:0;margin-top:-16px;margin-right:-16px;'><img alt='' src='"+i.options.closeimage+"'></div>"),i.$close=t("#html5-close",i.$lightbox)),i.$watermark=t("#html5-watermark",i.$lightbox),i.options.stamp)i.$watermark.html("");else if(i.options.watermark){var a="<img alt='' src='"+i.options.watermark+"' style='border:none;' />";i.options.watermarklink&&(a="<a href='"+i.options.watermarklink+"' target='_blank'>"+a+"</a>"),i.$watermark.html(a)}i.options.closeonoverlay&&t("#html5-lightbox-overlay",i.$lightbox).click(i.finish),i.$close.click(i.finish),i.$next.click(function(){i.nextArrowClicked()}),i.$prev.click(function(){i.prevArrowClicked()}),t(window).resize(function(){i.options.isIOS&&!i.options.mobileresizeevent||(clearTimeout(i.options.resizeTimeout),i.options.resizeTimeout=setTimeout(function(){i.resizeWindow()},i.options.resizedelay))}),t(window).scroll(function(){i.options.isIOS&&!i.options.mobileresizeevent||i.scrollBox()}),t(window).on("orientationchange",function(o){i.options.isMobile&&i.resizeWindow()}),i.options.enabletouchswipe&&i.enableSwipe()},i.html2Text=function(o){var t=document.createElement("div");return t.innerHTML=o,t.innerText},i.slideTimer=function(o,t,e){var i=this;i.timeout=o;var n=null,s=0,l=!1,r=!1,a=!1;return this.pause=function(){r&&(l=!0,clearInterval(n))},this.resume=function(o){a&&!o||(a=!1,r&&l&&(l=!1,n=setInterval(function(){(s+=50)>i.timeout&&(clearInterval(n),t&&t()),e&&e(s/i.timeout)},50)))},this.stop=function(){clearInterval(n),e&&e(-1),s=0,l=!1,r=!1},this.start=function(){s=0,l=!1,r=!0,n=setInterval(function(){(s+=50)>i.timeout&&(clearInterval(n),t&&t()),e&&e(s/i.timeout)},50)},this.startandpause=function(){s=0,l=!0,r=!0,a=!0},this},i.updateTimer=function(o){var e=Math.round(100*o);e>100&&(e=100),e<0&&(e=0),t(".html5-timer",i.$lightbox).css({display:"block",width:e+"%"})},i.initSlide=function(){i.autosliding=!1,i.slideTimeout=i.slideTimer(i.options.slideinterval,function(){i.gotoSlide(-1)},i.options.showtimer?function(o){i.updateTimer(o)}:null),i.options.autoslide&&(i.slideTimeout.stop(),i.autosliding=!0)},i.nextArrowClicked=function(){i.options.nextElem<=i.options.curElem&&i.options.onlastarrowcl
6icked&&window[i.options.onlastarrowclicked]&&"function"==typeof window[i.options.onlastarrowclicked]&&window[i.options.onlastarrowclicked](),i.gotoSlide(-1)},i.prevArrowClicked=function(){i.options.prevElem>=i.options.curElem&&i.options.onfirstarrowclicked&&window[i.options.onfirstarrowclicked]&&"function"==typeof window[i.options.onfirstarrowclicked]&&window[i.options.onfirstarrowclicked](),i.gotoSlide(-2)},i.calcNextPrevElem=function(){i.options.nextElem=-1,i.options.prevElem=-1,i.options.inGroup=!1,i.options.groupIndex=0,i.options.groupCount=0;for(var o=i.elemArray[i.options.curElem][3],t=0;t<i.elemArray.length;t++)i.matchGroup(o,i.elemArray[t][3])&&(t==i.options.curElem&&(i.options.groupIndex=i.options.groupCount),i.options.groupCount++);var e,n=i.elemArray[i.options.curElem][3];if(void 0!=n&&null!=n){for(e=i.options.curElem+1;e<i.elemArray.length;e++)if(i.matchGroup(n,i.elemArray[e][3])){i.options.nextElem=e;break}if(i.options.nextElem<0)for(e=0;e<i.options.curElem;e++)if(i.matchGroup(n,i.elemArray[e][3])){i.options.nextElem=e;break}if(i.options.nextElem>=0){for(e=i.options.curElem-1;e>=0;e--)if(i.matchGroup(n,i.elemArray[e][3])){i.options.prevElem=e;break}if(i.options.prevElem<0)for(e=i.elemArray.length-1;e>i.options.curElem;e--)if(i.matchGroup(n,i.elemArray[e][3])){i.options.prevElem=e;break}}}(i.options.nextElem>=0||i.options.prevElem>=0)&&(i.options.inGroup=!0)},i.calcBoxPosition=function(o,e){var n=o+2*i.options.bordersize,s=e+2*i.options.bordersize,l=i.options.shownavigation&&i.navvisible?i.options.navheight:0,r=t(window).height(),a=Math.round((r-l)/2-s/2);"bottom"==i.options.titlestyle&&(a-=Math.round(i.options.barheight/2));var h=t(window).width()<i.options.navarrowsbottomscreenwidth?i.options.bordertopmarginsmall:i.options.bordertopmargin;if(a<h&&(a=h),i.options.insideiframe&&window.self!=window.top&&parent.window.jQuery&&parent.window.jQuery("#"+i.options.iframeid).length){var p=parent.window.jQuery("#"+i.options.iframeid).offset().top,c=parent.window.document.body.scrollTop;a=h,a+=c>p?c-p:0}return[n,s,a]},i.hideNavArrows=function(){var o=!1,t=!1;i.options.inGroup&&((i.options.arrowloop||!i.options.arrowloop&&i.options.prevElem<i.options.curElem)&&(o=!0),(i.options.arrowloop||!i.options.arrowloop&&i.options.nextElem>i.options.curElem)&&(t=!0)),o?(i.$prev.removeClass("html5-hide"),i.$prevbottom&&i.$prevbottom.removeClass("html5-hide"),i.$prevtouch&&i.$prevtouch.removeClass("html5-hide")):(i.$prev.addClass("html5-hide"),i.$prevbottom&&i.$prevbottom.addClass("html5-hide"),i.$prevtouch&&i.$prevtouch.addClass("html5-hide")),t?(i.$next.removeClass("html5-hide"),i.$nextbottom&&i.$nextbottom.removeClass("html5-hide"),i.$nexttouch&&i.$nexttouch.removeClass("html5-hide")):(i.$next.addClass("html5-hide"),i.$nextbottom&&i.$nextbottom.addClass("html5-hide"),i.$nexttouch&&i.$nexttouch.addClass("html5-hide"))},i.clickHandler=function(){var o=t(this),e={};if(t.each(o.data(),function(o,t){e[o.toLowerCase()]=t}),i.options=t.extend(i.options,i.defaultoptions,e),t(window).trigger("html5lightbox.lightboxshow"),i.init(),i.elemArray.length<=0)return!0;i.hideObjects();for(var n=0;n<i.elemArray.length&&i.elemArray[n][1]!=o.attr("href");n++);if(n==i.elemArray.length)return!0;i.options.curElem=n,i.calcNextPrevElem(),i.reset(),i.$lightbox.show();var s=i.calcBoxPosition(i.options.loadingwidth,i.options.loadingheight),l=s[0],r=s[1],a=s[2];return i.options.iequirksmode?i.$lightboxBox.css({top:a}):i.$lightboxBox.css({"margin-top":a}),"left"==i.options.titlestyle||"right"==i.options.titlestyle?i.$lightboxBox.css({width:l,height:r}):(i.$lightboxBox.css({width:l,height:"auto"}),i.$elemWrap.css({width:l,height:r})),i.loadCurElem(),!1},i.loadThumbnail=function(o,e,n){var s=new Image;t(s).on("load",function(){var s;s=this.width/this.height<=i.options.thumbwidth/i.options.thumbheight?"width:100%;":"height:100%;",t(".html5-nav-thumb").eq(e).html("<img alt='"+i.html2Text(n)+"' style='"+s+"' src='"+o+"' />")}),s.src=o},i.matchGroup=function(o,e){if(i.options.showall)return!0;if(!o||!e)return!1;var n=o.split(":"),s=e.split(":"),l=!1;for(var r in n)if(t.inArray(n[r],s)>-1){l=!0;break}return l},i.showNavigation=function(){if(i.options.shownavigation&&i.currentElem&&i.currentElem[3]){var o,e=!1,n=i.currentElem[3];for(o=0;o<i.elemArray.length;o++)if(i.matchGroup(n,i.elemArray[o][3])&&i.elemArray[o][8]&&i.elemArray[o][8].length>0){e=!0;break}if(e&&(i.options.navheight=i.options.thumbheight+i.options.thumbtopmargin+i.options.thumbbottommargin,!(t(".html5-nav").length>0))){var s=i.options.hidenavdefault?"top:100%;bottom:auto;left:0;right:0;":"top:auto;bottom:0;left:0;right:0;",l=i.options.positionFixed?"fixed":"absolute";t("body").append("<div class='html5-nav' style='display:block;position:"+l+";"+s+"width:100%;height:"+i.options.navheight+"px;z-index:9999999;"+(i.options.navbgcolor?"background-color:"+i.options.navbgcolor+";":"")+"'><div class='html5-nav-container' style='position:relative;margin:"+i.options.thumbtopmargin+"px auto "+i.options.thumbbottommargin+"px;'><div class='html5-nav-prev' style='display:block;position:absolute;cursor:pointer;width:"+i.options.navbuttonwidth+'px;height:100%;left:0;top:0;
6background:url("'+i.options.navarrowsprevimage+"\") no-repeat left center;'></div><div class='html5-nav-mask' style='display:block;position:relative;margin:0 auto;overflow:hidden;'><div class='html5-nav-list'></div></div><div class='html5-nav-next' style='display:block;position:absolute;cursor:pointer;width:"+i.options.navbuttonwidth+'px;height:100%;right:0;top:0;background:url("'+i.options.navarrowsnextimage+"\") no-repeat right center;'></div></div></div>"),i.navvisible=!i.options.hidenavdefault,i.options.shownavcontrol&&(t(".html5-nav").append('<div class="html5-nav-showcontrol" style="position:absolute;display:block;cursor:pointer;bottom:100%;right:12px;margin:0;padding:0;"><img alt="" src="'+i.options.navcontrolimage+'"></div>'),t(".html5-nav-showcontrol").click(function(){var o=t(window).height(),e=t(".html5-nav").height();i.navvisible?(i.navvisible=!1,t(".html5-nav").css({top:o-e+"px",bottom:"auto"}).animate({top:o+"px"},function(){t(this).css({top:"100%",bottom:"auto"})})):(i.navvisible=!0,e=t(".html5-nav").height(),t(".html5-nav").css({top:o+"px",bottom:"auto"}).animate({top:o-e+"px"},function(){t(this).css({top:"auto",bottom:0})})),i.resizeWindow()}));var r=0;for(o=0;o<i.elemArray.length;o++)i.matchGroup(n,i.elemArray[o][3])&&i.elemArray[o][8]&&i.elemArray[o][8].length>0&&(t(".html5-nav-list").append("<div class='html5-nav-thumb' data-arrayindex='"+o+"' style='float:left;overflow:hidden;cursor:pointer;opacity:"+i.options.thumbopacity+";margin: 0 "+i.options.thumbgap/2+"px;width:"+i.options.thumbwidth+"px;height:"+i.options.thumbheight+"px;border:"+i.options.thumbborder+"px solid "+i.options.thumbbordercolor+";'></div>"),this.loadThumbnail(i.elemArray[o][8],r,i.elemArray[o][2]),r++);t(".html5-nav-thumb").hover(function(){t(this).css({opacity:1}),t(this).css({border:i.options.thumbborder+"px solid "+i.options.thumbhighlightbordercolor})},function(){t(this).css({opacity:i.options.thumbopacity}),t(this).css({border:i.options.thumbborder+"px solid "+i.options.thumbbordercolor})}),t(".html5-nav-thumb").click(function(){var o=t(this).data("arrayindex");o>=0&&i.gotoSlide(o)}),i.options.totalwidth=r*(i.options.thumbgap+i.options.thumbwidth+2*i.options.thumbborder),t(".html5-nav-list").css({display:"block",position:"relative","margin-left":0,width:i.options.totalwidth+"px"}).append("<div style='clear:both;'></div>");var a=t(".html5-nav-mask"),h=t(".html5-nav-prev"),p=t(".html5-nav-next");h.click(function(){var o=t(".html5-nav-list"),e=t(".html5-nav-next"),n=t(window).width()-2*i.options.navbuttonwidth,s=parseInt(o.css("margin-left"))+n;s>=0?(s=0,t(this).css({"background-position":"center left"})):t(this).css({"background-position":"center right"}),s<=n-i.options.totalwidth?e.css({"background-position":"center left"}):e.css({"background-position":"center right"}),o.animate({"margin-left":s})}),p.click(function(){var o=t(".html5-nav-list"),e=t(".html5-nav-prev"),n=t(window).width()-2*i.options.navbuttonwidth,s=parseInt(o.css("margin-left"))-n;s<=n-i.options.totalwidth?(s=n-i.options.totalwidth,t(this).css({"background-position":"center left"})):t(this).css({"background-position":"center right"}),s>=0?e.css({"background-position":"center left"}):e.css({"background-position":"center right"}),o.animate({"margin-left":s})});var c=t(window).width();i.options.totalwidth<=c?(a.css({width:i.options.totalwidth+"px"}),h.hide(),p.hide()):(a.css({width:c-2*i.options.navbuttonwidth+"px"}),h.show(),p.show())}}},i.loadElem=function(o){if(i.currentElem=o,i.showing=!0,i.options.bodynoscroll&&t("html,body").addClass("bodynoscroll"),i.options.showtitle&&i.currentElem[2]&&i.currentElem[2].length>0||i.options.showdescription&&i.currentElem[9]&&i.currentElem[9].length>0||i.options.inGroup&&(i.options.showplaybutton||i.options.showtitleprefix)||(i.options.barheight=0),i.showNavigation(),i.$elem.off("mouseenter").off("mouseleave").off("mousemove"),i.$loading.show(),i.options.onshowitem&&window[i.options.onshowitem]&&"function"==typeof window[i.options.onshowitem]&&window[i.options.onshowitem](o),"none"!=i.options.transition&&i.existingElem>=0){t(".html5-elem-box-previous").remove();var e=i.$elem.clone();e.insertAfter(i.$elem),i.$prevelem=i.$elem,i.$elem=e,i.$prevelem.addClass("html5-elem-box-previous"),i.$elem.addClass("html5-elem-box-current"),i.$elemWrap=t(".html5-elem-wrap",i.$elem),i.$loading=t
6(".html5-loading",i.$elem),i.$error=t(".html5-error-box",i.$elem),i.$image=t(".html5-image",i.$elem),i.$elemData=t(".html5-elem-data-box",i.$elem),i.$text=t(".html5-text",i.$elem),"slide"==i.options.transition&&(i.$elem.css({position:"absolute",top:0,left:-1==i.direction?"100%":"-100%",opacity:0,height:"auto"}),i.$prevelem.css({width:i.$prevelem.width()+"px",height:i.$prevelem.height()+"px"}))}switch(o[0]){case 0:var n=new Image;t(n).on("load",function(){o[11]=n.width,o[12]=n.height,i.showImage(o,n.width,n.height)}),t(n).on("error",function(){i.showError()}),n.src=o[1];break;case 1:i.showSWF(o);break;case 2:case 8:i.showVideo(o);break;case 3:case 4:case 9:case 11:case 12:i.showYoutubeVimeo(o);break;case 5:i.showPDF(o);break;case 6:i.showMP3(o);break;case 7:i.showWeb(o);break;case 10:i.showDiv(o)}i.options.googleanalyticsaccount&&window._gaq&&window._gaq.push(["_trackEvent","Lightbox","Open",o[1]])},i.loadCurElem=function(){i.loadElem(i.elemArray[i.options.curElem])},i.showError=function(){i.$loading.hide(),i.resizeLightbox(i.options.errorwidth,i.options.errorheight,!0,function(){i.$loading.hide(),i.$error.show(),i.$elem.fadeIn(i.options.fadespeed,function(){i.showData()})})},i.calcTextWidth=function(o){return o-36},i.showTitle=function(o,e,n){"inside"==i.options.titlestyle&&i.$elemData.css({width:o+"px"});var s="";i.options.showtitle&&e&&e.length>0&&(s+=e),i.options.inGroup&&(i.options.showtitleprefix&&(s="<span class='html5-title-prefix'>"+i.options.titleprefix.replace("%NUM",i.options.groupIndex+1).replace("%TOTAL",i.options.groupCount)+"</span> <span class='html5-title-caption'>"+s+"</span>"),i.options.showplaybutton&&(s="<div class='html5-playpause' style='display:inline-block;cursor:pointer;vertical-align:middle;'><div class='html5-play' style='display:block;'><img alt='' src='"+i.options.playimage+"'></div><div class='html5-pause' style='display:none;'><img alt='' src='"+i.options.pauseimage+"'></div></div> "+s)),s.length>0&&(s='<div class="html5-title">'+s+"</div>"),i.options.showdescription&&n&&n.length>0&&(s+='<div class="html5-description">'+n+"</div>"),i.$text.html(s),i.options.inGroup&&i.options.showplaybutton&&(i.autosliding?(t(".html5-play",i.$lightbox).hide(),t(".html5-pause",i.$lightbox).show()):(t(".html5-play",i.$lightbox).show(),t(".html5-pause",i.$lightbox).hide()),t(".html5-play",i.$lightbox).click(function(){t(".html5-play",i.$lightbox).hide(),t(".html5-pause",i.$lightbox).show(),i.slideTimeout&&(i.slideTimeout.stop(),i.slideTimeout.start(),i.autosliding=!0)}),t(".html5-pause",i.$lightbox).click(function(){t(".html5-play",i.$lightbox).show(),t(".html5-pause",i.$lightbox).hide(),i.slideTimeout&&(i.slideTimeout.stop(),i.autosliding=!1)})),t("#html5-social",i.$lightbox).show(),i.options.showsocialmedia&&(i.currentElem[13]?t("#html5-socialmedia",i.$lightboxBox).length>0?t("#html5-socialmedia",i.$lightboxBox).html(i.currentElem[13]):i.$lightboxBox.append('<div id="html5-socialmedia" style="'+i.options.socialmediaposition+'">'+i.currentElem[13]+"</div>"):t("#html5-socialmedia",i.$lightboxBox).length>0&&t("#html5-socialmedia",i.$lightboxBox).remove())},i.showImage=function(o,t,e){var n,s;o[4]?n=o[4]:(n=t,o[4]=t),o[5]?s=o[5]:(s=e,o[5]=e);var l=i.calcElemSize({w:n,h:s},i.options.imagekeepratio);i.resizeLightbox(l.w,l.h,!0,function(){i.$loading.hide(),i.showTitle(l.w,o[2],o[9]);var t=i.options.showtimer&&i.options.inGroup?"<div class='html5-timer' style='display:none;position:absolute;"+i.options.timerposition+":0;left:0;width:0;height:"+i.options.timerheight+"px;background-color:"+i.options.timercolor+";opacity:"+i.options.timeropacity+";'></div>":"";i.$image.show(),i.$image.html("<div class='html5-image-container' style='display:block;position:relative;width:100%;height:100%;"+(i.options.imagekeepratio?"overflow:hidden;":"overflow:auto;")+"'><img alt='"+i.html2Text(o[2])+"' src='"+o[1]+"' width='100%' height='"+(i.options.imagekeepratio?"100%":"auto")+"' />"+t+"</div>"),i.$elem.fadeIn(i.options.fadespeed,function(){i.showData()}),i.autosliding&&(i.slideTimeout.stop(),i.slideTimeout.start())})},i.showSWF=function(o){var e=o[4]?o[4]:n,l=o[5]?o[5]:s,r=i.calcElemSize({w:e,h:l},!0);e=r.w,l=r.h,i.resizeLightbox(e,l,!0,function(){i.$loading.hide(),i.showTitle(r.w,o[2],o[9]),i.$image.html("<div class='html5lightbox-swf' style='display:block;width:100%;height:100%;'></div>").show(),i.embedFlash(t(".html5lightbox-swf",i.$image),o[1],"window",{width:e,height:l}),i.$elem.show(),i.showData(),i.autosliding&&(i.slideTimeout.stop(),i.slideTimeout.start())})},i.showVideo=function(o){i.slideTimeout.stop();var e=o[4]?o[4]:n,l=o[5]?o[5]:s,r=i.calcElemSize({w:e,h:l},!0);e=r.w,l=r.h,i.resizeLightbox(e,l,!0,function(){i.$loading.hide(),i.showTitle(r.w,o[2],o[9]),i.$image.html("<div class='html5lightbox-video' style='display:block;width:100%;height:100%;overflow:hidden;background-color:"+i.options.videobgcolor+";'></div>").show();var n=!1;if(i.options.isIE678||8==o[0]||i.options.isIE9&&i.options.useflashonie9||i.options.isIE10&&i.options.useflashonie10||i.options.isIE11&&i.options.useflashonie11?n=!1:i.options.isMobile?n=!0:!i.options.html5player&&i.options.flashInstalled||!i.options.html5VideoSupported||(n=!0,(i.options.isFirefox||i.options.isOpera)&&(o[6]||o[7]||i.options.canplaymp4&&!i.options.useflashformp4onfirefox||(n=!1))),n){var s=o[1];(i.options.isFirefox||i.options.isOpera)&&(o[6]?s=o[6]:o[7]&&(s=o[7])),i.embedHTML5Video(t(".html5lightbox-video",i.$image),s,i.options.autoplay,i.options.loopvideo)}else{var a=o[1];"/"!=a.charAt(0)&&"http:"!=a.substring(0,5)&&"https:"!=a.substring(0,6)&&
6(a=i.options.htmlfolder+a),i.embedFlash(t(".html5lightbox-video",i.$image),i.options.jsfolder+"html5boxplayer.swf","transparent",{width:e,height:l,jsobjectname:"html5Lightbox",hidecontrols:i.options.videohidecontrols?"1":"0",hideplaybutton:"0",videofile:a,hdfile:"",ishd:"0",defaultvolume:i.options.defaultvideovolume,autoplay:i.options.autoplay?"1":"0",loop:i.options.loopvideo?"1":"0",errorcss:".html5box-error"+i.options.errorcss,id:0})}i.$elem.show(),i.showData()})},i.loadNext=function(){t(window).trigger("html5lightbox.videofinished"),i.autosliding?i.gotoSlide(-1):i.options.autoclose&&setTimeout(function(){i.finish()},i.options.autoclosedelay)},i.getYoutubeParams=function(o){var t={};if(o.indexOf("?")<0)return t;for(var e=o.substring(o.indexOf("?")+1).split("&"),i=0;i<e.length;i++){var n=e[i].split("=");n&&2==n.length&&"v"!=n[0].toLowerCase()&&(t[n[0].toLowerCase()]=n[1])}return t},i.getYoutubeId=function(o){var t="",e=o.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\??v?=?))([^#\&\?]*).*/);return e&&e[7]&&11==e[7].length&&(t=e[7]),t},i.prepareYoutubeHref=function(o){var t="https://www.youtube.com/embed/"+i.getYoutubeId(o),e=this.getYoutubeParams(o),n=!0;for(var s in e)n?(t+="?",n=!1):t+="&",t+=s+"="+e[s];return t},i.prepareDailymotionHref=function(o){return o.match(/\:\/\/.*(dai\.ly)/i)&&(o="https://www.dailymotion.com/embed/video/"+o.match(/(dai\.ly\/)([a-zA-Z0-9\-\_]+)/)[2]),o},i.showYoutubeVimeo=function(o){i.slideTimeout.stop();var e=o[4]?o[4]:n,l=o[5]?o[5]:s,r=i.calcElemSize({w:e,h:l},!0);e=r.w,l=r.h,i.resizeLightbox(e,l,!0,function(){i.$loading.hide(),i.showTitle(r.w,o[2],o[9]),i.$image.html("<div class='html5lightbox-video' style='display:block;width:100%;height:100%;overflow:hidden;'></div>").show();var e=o[1],n="";if(3==o[0]&&(n=i.getYoutubeId(e),e=i.prepareYoutubeHref(e)),9==o[0]&&(e=i.prepareDailymotionHref(e)),i.options.autoplay&&(e+=e.indexOf("?")<0?"?":"&",11==o[0]?e+="autoPlay=true":e+="autoplay=1"),i.options.loopvideo)switch(e+=e.indexOf("?")<0?"?":"&",o[0]){case 3:e+="loop=1&playlist="+n;break;case 4:case 9:e+="loop=1";break;case 11:e+="endVideoBehavior=loop"}if(3==o[0]?(e.indexOf("?")<0?e+="?wmode=transparent&rel=0":e+="&wmode=transparent&rel=0",i.options.videohidecontrols&&(e+="&controls=0&showinfo=0"),e+="&enablejsapi=1&origin="+document.location.protocol+"//"+document.location.hostname):4==o[0]&&(e+=e.indexOf("?")<0?"?":"&",e+="api=1&player_id=html5boxiframevideo"+i.options.curElem),t(".html5lightbox-video",i.$image).html("<iframe style='margin:0;padding:0;border:0;' class='html5boxiframevideo' id='html5boxiframevideo"+i.options.curElem+"' width='100%' height='100%' src='"+e+"' frameborder='0' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>"),i.$elem.show(),i.showData(),3==o[0]&&"object"==typeof YT&&"function"==typeof YT.Player)i.ytplayer=new YT.Player("html5boxiframevideo"+i.options.curElem,{events:{onStateChange:function(o){o.data==YT.PlayerState.ENDED&&(t(window).trigger("html5lightbox.videofinished"),i.autosliding?i.gotoSlide(-1):i.options.autoclose&&setTimeout(function(){i.finish()},i.options.autoclosedelay))}}});else if(4==o[0]&&"function"==typeof $f){var s=t("#html5boxiframevideo"+i.options.curElem)[0];i.vimeoPlayer=$f(s),i.vimeoPlayer.addEvent("ready",function(){i.vimeoPlayer.addEvent("finish",function(o){t(window).trigger("html5lightbox.videofinished"),i.autosliding?i.gotoSlide(-1):i.options.autoclose&&setTimeout(function(){i.finish()},i.options.autoclosedelay)})})}})},i.showPDF=function(o){if(i.options.enablepdfjs){if(i.options.isIPhone&&i.options.openpdfinnewtaboniphone||i.options.isIPad&&i.options.openpdfinnewtabonipad)return window.open(o[1],"_blank").focus(),void i.finish();i.options.pdfjsengine||(i.options.pdfjsengine=i.options.jsfolder+"pdfjs/web/viewer.html");var t=o[1];"http:"!=t.substring(0,5)&&"https:"!=t.substring(0,6)&&(t=i.absoluteUrl(t));var e=jQuery.extend(!0,{},o);e[1]=i.options.pdfjsengine+"?file="+encodeURIComponent(t),i.showWeb(e)}else{if(i.options.isIPhone||i.options.isIPad||i.options.isAndroid||i.options.isIE||i.options.isIE11)return window.open(o[1],"_blank").focus(),void i.finish();i.showWeb(o)}},i.showMP3=function(o){},i.showDiv=function(o){var e=t(window).width(),n=t(window).height(),s=i.options.shownavigation&&i.navvisible?i.options.navheight:0,l=o[4]?o[4]:e,r=o[5]?o[5]:n-s,a=i.calcElemSize({w:l,h:r},!1);l=a.w,r=a.h,i.resizeLightbox(l,r,!0,function(){i.$loading.hide(),i.showTitle(a.w,o[2],o[9]),i.$image.html("<div class='html5lightbox-div' id='html5lightbox-div"+i.options.curElem+"' style='display:block;width:100%;height:"+(i.options.autoresizecontent?"auto":"100%")+";"+(i.options.isIOS?"-webkit-overflow-scrolling:touch;overflow-y:scroll;":"overflow:auto;")+"'></div>").show();var e=o[1];t(e).length>0?t(e).children().appendTo(t("#html5lightbox-div"+i.options.curElem,i.$image)):t("#html5lightbox-div"+i.options.curElem,i.$image).html("<div class='html5-error'>The specified div ID does not exist.</div>"),i.$elem.show(),i.showData(),i.options.autoresizecontent&&i.resizeWindow(),i.autosliding&&(i.slideTimeout.stop(),i.slideTimeout.start())})}
6,i.isSameDomain=function(o){if("http:"!=o.substring(0,5)&&"https:"!=o.substring(0,6))return!0;var t=document.createElement("a");t.setAttribute("href",o);var e=t.protocol==document.location.protocol&&t.host==document.location.host&&t.port==document.location.port;return t=null,e},i.showWeb=function(o){var e=t(window).width(),n=t(window).height(),s=i.options.shownavigation&&i.navvisible?i.options.navheight:0,l=o[4]?o[4]:e,r=o[5]?o[5]:n-s,a=i.calcElemSize({w:l,h:r},!1);l=a.w,r=a.h,i.resizeLightbox(l,r,!0,function(){i.$loading.hide(),i.showTitle(a.w,o[2],o[9]),i.$image.html("<div class='html5lightbox-web' style='display:block;width:100%;height:100%;"+(i.options.isIOS?"-webkit-overflow-scrolling:touch;overflow-y:scroll;":"")+"'></div>").show(),t(".html5lightbox-web",i.$image).html("<iframe style='margin:0;padding:0;border:0;' class='html5lightbox-web-iframe' width='100%' height='100%' src='"+o[1]+"' frameborder='0' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>"),i.$elem.show(),i.showData(),i.options.autoresizecontent&&i.isSameDomain(o[1])&&(t(".html5lightbox-web-iframe",i.$image).data("sameorigin",!0),t(".html5lightbox-web-iframe",i.$image).on("load",function(){t(this).data("sameoriginloaded",!0),i.resizeWindow()})),i.autosliding&&(i.slideTimeout.stop(),i.slideTimeout.start())})},i.scrollBox=function(){},i.resizeWindow=function(){if(i.currentElem&&i.options.responsive){var o,e,l,r=t(window).width(),a=t(window).height();if(i.options.responsivebarheight&&(a<=i.options.smallscreenheight?i.options.barheight=i.options.barheightonsmallheight:i.options.barheight=i.options.barheightoriginal,"bottom"==i.options.titlestyle&&"auto"!=i.options.barautoheight&&i.$elemData.css({height:i.options.barheight+"px","max-height":i.options.barheight+"px"})),i.options.showtitle&&i.currentElem[2]&&i.currentElem[2].length>0||i.options.showdescription&&i.currentElem[9]&&i.currentElem[9].length>0||i.options.inGroup&&(i.options.showplaybutton||i.options.showtitleprefix)||(i.options.barheight=0),5==i.currentElem[0]||7==i.currentElem[0]||10==i.currentElem[0]){var h=i.options.shownavigation&&i.navvisible?i.options.navheight:0;o=i.currentElem[4]?i.currentElem[4]:r,e=i.currentElem[5]?i.currentElem[5]:a-h,l=!1}else o=i.currentElem[4]?i.currentElem[4]:n,e=i.currentElem[5]?i.currentElem[5]:s,l=0!=i.currentElem[0]||i.options.imagekeepratio;var p=i.calcElemSize({w:o,h:e},l),c=i.calcBoxPosition(p.w,p.h),d=c[0],m=c[1],u=c[2];if(i.$lightboxBox.css({"margin-top":u}),"left"==i.options.titlestyle||"right"==i.options.titlestyle?i.$lightboxBox.css({width:d,height:m}):(i.$lightboxBox.css({width:d,height:"auto"}),i.$elemWrap.css({width:d,height:m})),"inside"==i.options.titlestyle&&i.$elemData.css({width:p.w+"px"}),i.options.autoresizecontent&&(5==i.currentElem[0]||7==i.currentElem[0]||10==i.currentElem[0])){var g=!1;if(7==i.currentElem[0]&&t(".html5lightbox-web-iframe",i.$lightbox).length>0&&t(".html5lightbox-web-iframe",i.$lightbox).data("sameoriginloaded")){var b=t(".html5lightbox-web-iframe",i.$lightbox)[0];b&&b.contentWindow&&b.contentWindow.document&&b.contentWindow.document.documentElement.offsetHeight&&e>b.contentWindow.document.documentElement.offsetHeight&&(e=b.contentWindow.document.documentElement.offsetHeight,g=!0)}else if(10==i.currentElem[0]&&t(".html5lightbox-div",i.$lightbox).length>0){var f=t(".html5lightbox-div",i.$lightbox).height();e>f&&(e=f,g=!0)}g&&(p=i.calcElemSize({w:o,h:e},l),d=(c=i.calcBoxPosition(p.w,p.h))[0],m=c[1],u=c[2],i.$lightboxBox.css({"margin-top":u}),"left"==i.options.titlestyle||"right"==i.options.titlestyle?i.$lightboxBox.css({height:m}):(i.$lightboxBox.css({height:"auto"}),i.$elemWrap.css({height:m})))}if(!(t(".html5-nav").length<=0)){t(".html5-nav-list").css({"margin-left":0});var v=t(".html5-nav-mask"),w=t(".html5-nav-prev"),x=t(".html5-nav-next");r=t(window).width(),i.options.totalwidth<=r?(v.css({width:i.options.totalwidth+"px"}),w.hide(),x.hide()):(v.css({width:r-2*i.options.navbuttonwidth+"px"}),w.show(),x.show())}}},i.calcElemSize=function(o,e){if(!i.options.responsive)return o;var n=t(window).width();n=n||t(document).width();var s=t(window).height();s=s||t(document).height(),("left"==i.options.titlestyle||"right"==i.options.titlestyle)&&n>i.options.sidetobottomscreenwidth&&(o.w=100*o.w/i.options.imagepercentage);var l=i.options.shownavigation&&i.navvisible?i.options.navheight:0,r=t(window).width()<i.options.navarrowsbottomscreenwidth?i.options.bordertopmarginsmall:i.options.bordertopmargin,a=s-l-2*i.options.bordersize-2*r;"bottom"==i.options.titlestyle&&(a-=i.options.barheight);var h=n-2*i.options.bordersize-2*i.options.bordermargin;if((i.options.fullscreenmode&&n>i.options.navarrowsbottomscreenwidth||(i.options.isTouch&&i.options.navarrowsalwaysshowontouch||i.options.alwaysshownavarrows)&&n>i.options.navarrowsbottomscreenwidth)&&(h-=64),(("left"==i.options.titlestyle||"right"==i.options.titlestyle)&&n<=i.options.sidetobottomscreenwidth||i.options.notkeepratioonsmallheight&&s<=i.options.smallscreenheight)&&(e=!1),0==i.currentElem[0]&&e){var p=i.currentElem[11]
6/i.currentElem[12];o.h=Math.round(o.w/p),o.h>a&&(o.w=Math.round(p*a),o.h=a),o.w>h&&(o.h=Math.round(h/p),o.w=h)}else o.h>a?(e&&(o.w=Math.round(o.w*a/o.h)),o.h=a):i.options.maxheight&&(o.h=a),o.w>h&&(e&&(o.h=Math.round(o.h*h/o.w)),o.w=h);return o},i.showData=function(){i.$text.text().length>0&&i.$elemData.show(),"bottom"!=i.options.titlestyle&&"inside"!=i.options.titlestyle||i.$lightboxBox.css({height:"auto"}),i.$text.text().length>0&&"bottom"==i.options.titlestyle&&i.$elemData.css({"max-height":i.options.barheight+"px"}),i.options.positionFixed?t("#html5-lightbox-overlay",i.$lightbox).css({height:Math.max(t(window).height(),t(document).height())}):t("#html5-lightbox-overlay",i.$lightbox).css({height:"100%"}),t(window).trigger("html5lightbox.lightboxopened")},i.resizeLightbox=function(o,e,n,s){i.hideNavArrows();var l=i.calcBoxPosition(o,e),r=l[0],a=l[1],h=l[2];i.$loading.hide(),i.$watermark.hide(),i.options.nextElem<=i.options.curElem&&i.options.onlastitem&&window[i.options.onlastitem]&&"function"==typeof window[i.options.onlastitem]&&window[i.options.onlastitem](i.currentElem),i.options.prevElem>=i.options.curElem&&i.options.onfirstitem&&window[i.options.onfirstitem]&&"function"==typeof window[i.options.onfirstitem]&&window[i.options.onfirstitem](i.currentElem),i.options.fullscreenmode||i.options.isTouch&&i.options.navarrowsalwaysshowontouch||i.options.alwaysshownavarrows||(i.$lightboxBox.on("mouseenter mousemove",function(){(i.options.arrowloop&&i.options.prevElem>=0||!i.options.arrowloop&&i.options.prevElem>=0&&i.options.prevElem<i.options.curElem)&&i.$prev.fadeIn(),(i.options.arrowloop&&i.options.nextElem>=0||!i.options.arrowloop&&i.options.nextElem>=0&&i.options.nextElem>i.options.curElem)&&i.$next.fadeIn()}),i.$lightboxBox.on("mouseleave",function(){i.$next.fadeOut(),i.$prev.fadeOut()}));var p=parseInt(i.$lightboxBox.css("margin-top"));i.$lightboxBox.css({"margin-top":h});var c=n?i.options.resizespeed:0;"slide"==i.options.transition&&i.existingElem>=0&&(c=0),"left"==i.options.titlestyle||"right"==i.options.titlestyle?(r==i.$lightboxBox.width()&&a==i.$lightboxBox.height()&&(c=0),i.$lightboxBox.animate({width:r},c).animate({height:a},c,function(){i.onAnimateFinish(s)})):(r==i.$elemWrap.width()&&a==i.$elemWrap.height()&&(c=0),i.$lightboxBox.css({width:r,height:"auto"}),"slide"==i.options.transition&&i.existingElem>=0&&t(".html5-elem-box-previous",i.$lightbox).length>0&&t(".html5-elem-box-previous",i.$lightbox).css({"margin-left":String(r/2-t(".html5-elem-box-previous",i.$lightbox).width()/2)+"px",top:String(p-h)+"px"}),i.$elemWrap.animate({width:r},c).animate({height:a},c,function(){i.onAnimateFinish(s)}))},i.onAnimateFinish=function(o){i.$loading.show(),i.$watermark.show(),i.$close.show(),i.$elem.css({"background-color":i.options.bgcolor}),o(),i.finishCallback()},i.finishCallback=function(){"slide"==i.options.transition&&i.existingElem>=0&&(i.$prevelem.animate({left:-1==i.direction?"-100%":"100%",opacity:0}
6,{duration:i.options.transitionduration}),i.$elem.animate({left:0,opacity:1},{duration:i.options.transitionduration,always:function(){i.$prevelem.remove(),i.$elem.removeClass("html5-elem-box-current").css({position:"relative",height:"100%"})}}))},i.resetDiv=function(o){if(i.elemArray.length>0&&o>=0&&10==i.elemArray[o][0]){var e=i.elemArray[o][1];t(e).length>0&&t("#html5lightbox-div"+o).children().appendTo(t(e))}},i.reset=function(){i.options.stamp&&i.$watermark.hide(),i.showing=!1,i.$image.empty(),i.$text.empty(),i.$error.hide(),i.$loading.hide(),i.$image.hide(),"bottom"!=i.options.titlestyle&&"inside"!=i.options.titlestyle||i.$elemData.hide(),i.options.fullscreenmode||i.$close.hide(),i.$elem.css({"background-color":""})},i.resetNavigation=function(){i.options.navheight=0,t(".html5-nav").remove(),i.navvisible=!1},i.finish=function(){i.existingElem=-1,i.resetDiv(i.options.curElem),t(".html5-lightbox-video",i.$lightbox).length&&t(".html5-lightbox-video",i.$lightbox).attr("src",""),t("head").find("style").each(function(){"html5box-html5-lightbox"==t(this).data("creator")&&t(this).remove()}),i.options.bodynoscroll&&t("html,body").removeClass("bodynoscroll"),i.slideTimeout.stop(),i.reset(),i.resetNavigation(),i.$lightbox.remove(),t("#html5box-html5-lightbox").remove(),i.showObjects(),i.options.oncloselightbox&&window[i.options.oncloselightbox]&&"function"==typeof window[i.options.oncloselightbox]&&window[i.options.oncloselightbox](i.currentElem),i.onLightboxClosed&&"function"==typeof i.onLightboxClosed&&i.onLightboxClosed(i.currentElem),t(window).trigger("html5lightbox.lightboxclosed")},i.pauseSlide=function(){},i.playSlide=function(){},i.gotoSlide=function(o){if(i.existingElem=i.options.curElem,i.direction=o,i.resetDiv(i.options.curElem),-1==o){if(i.options.nextElem<0)return;i.options.curElem=i.options.nextElem}else if(-2==o){if(i.options.prevElem<0)return;i.options.curElem=i.options.prevElem}else o>=0&&(i.direction=o>i.options.curElem?-1:-2,i.options.curElem=o);i.autosliding&&i.slideTimeout.stop(),i.calcNextPrevElem(),"none"==i.options.transition&&i.reset(),i.loadCurElem()},i.enableSwipe=function(){var o=!(!i.options.isAndroid||!(i.options.swipepreventdefaultonandroid||i.options.androidVersion>=0&&i.options.androidVersion<=5));i.$lightboxBox.html5lightboxTouchSwipe({preventWebBrowser:o,swipeDistance:i.options.swipedistance,swipeLeft:function(){i.gotoSlide(-1)},swipeRight:function(){i.gotoSlide(-2)}})},i.hideObjects=function(){t("select, embed, object").css({visibility:"hidden"})},i.showObjects=function(){t("select, embed, object").css({visibility:"visible"})},i.embedHTML5Video=function(o,e,n,s){o.html("<div style='display:block;width:100%;height:100%;position:relative;'><video class='html5-lightbox-video' width='100%' height='100%'"+(i.options.html5videoposter&&i.options.html5videoposter.length>0?"poster='"+i.options.html5videoposter+"'":"")+(n?" autoplay":"")+(s?" loop":"")+(i.options.nativehtml5controls&&!i.options.videohidecontrols?" controls='controls'":"")+" src='"+e+"'></div>"),i.options.nativehtml5controls||(t("video",o).data("src",e),t("video",o).lightboxHTML5VideoControls(i.options.skinsfolder,i,i.options.videohidecontrols,!1,i.options.defaultvideovolume)),t("video",o).off("ended").on("ended",function(){t(window).trigger("html5lightbox.videofinished"),i.autosliding?i.gotoSlide(-1):i.options.autoclose&&setTimeout(function(){i.finish()},i.options.autoclosedelay)})},i.embedFlash=function(o,e,n,s){if(i.options.flashInstalled){var l={pluginspage:"http://www.adobe.com/go/getflashplayer",quality:"high",allowFullScreen:"true",allowScriptAccess:"always",type:"application/x-shockwave-flash",width:"100%",height:"100%"};l.src=e,l.flashVars=t.param(s),l.wmode=n;var r="";for(var a in l)r+=a+"="+l[a]+" ";o.html("<embed "+r+"/>")}else o.html("<div class='html5lightbox-flash-error' style='display:block; position:relative;text-align:center; width:100%; left:0px; top:40%;'><div class='html5-error'><div>The required Adobe Flash Player plugin is not installed</div><br /><div style='display:block;position:relative;text-align:center;width:112px;height:33px;margin:0px auto;'><a href='http://www.adobe.com/go/getflashplayer'>
6<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>")},i.checkType=function(o){return o?o.match(/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i)?0:o.match(/[^\.]\.(swf)\s*$/i)?1:o.match(/\.(mp4|m4v|ogv|ogg|webm)(.*)?$/i)?2:o.match(/\:\/\/.*(youtube\.com)/i)||o.match(/\:\/\/.*(youtu\.be)/i)?3:o.match(/\:\/\/.*(vimeo\.com)/i)?4:o.match(/\:\/\/.*(dailymotion\.com)/i)||o.match(/\:\/\/.*(dai\.ly)/i)?9:o.match(/[^\.]\.(pdf)\s*$/i)?5:o.match(/[^\.]\.(mp3)\s*$/i)?6:o.match(/[^\.]\.(flv)\s*$/i)?8:o.match(/\#\w+/i)?10:o.match(/\:\/\/.*(wistia)/i)?11:7:-1},i.getURLParams=function(){for(var o={},t=window.location.search.substring(1).split("&"),e=0;e<t.length;e++){var i=t[e].split("=");i&&2==i.length&&(o[i[0].toLowerCase()]=unescape(i[1]))}return o},i.absoluteUrl=function(o){var t=document.createElement("a");return t.href=o,t.protocol+"//"+t.host+t.pathname+t.search+t.hash},i.showLightbox=function(o,e,n,s,l,r,a,h,p){i.options=t.extend(i.options,i.defaultoptions),t(window).trigger("html5lightbox.lightboxshow"),i.init(),i.reset(),i.$lightbox.show();var c=i.calcBoxPosition(i.options.loadingwidth,i.options.loadingheight),d=c[0],m=c[1],u=c[2];i.$lightboxBox.css({"margin-top":u}),"left"==i.options.titlestyle||"right"==i.options.titlestyle?i.$lightboxBox.css({width:d,height:m}):(i.$lightboxBox.css({width:d,height:"auto"}),i.$elemWrap.css({width:d,height:m})),i.loadElem(new Array(o,e,n,null,s,l,r,a,h,p))},i.addItem=function(o,t,e,n,s,l,r,a,h,p){type=p&&p>=0?p:i.checkType(o),i.elemArray.push(new Array(type,o,t,e,n,s,l,r,a,h))},i.showItem=function(o){if(i.options=t.extend(i.options,i.defaultoptions),t(window).trigger("html5lightbox.lightboxshow"),i.init(),i.elemArray.length<=0)return!0;i.hideObjects();for(var e=0;e<i.elemArray.length&&i.elemArray[e][1]!=o;e++);if(e==i.elemArray.length)return!0;i.options.curElem=e,i.calcNextPrevElem(),i.reset(),i.$lightbox.show();var n=i.calcBoxPosition(i.options.loadingwidth,i.options.loadingheight),s=n[0],l=n[1],r=n[2];return i.$lightboxBox.css({"margin-top":r}),"left"==i.options.titlestyle||"right"==i.options.titlestyle?i.$lightboxBox.css({width:s,height:l}):(i.$lightboxBox.css({width:s,height:"auto"}),i.$elemWrap.css({width:s,height:l})),i.loadCurElem(),!1},i.off("click").click(i.clickHandler),i.each(function(){var o=t(this),e=!1,i=0;if("undefined"!=typeof html5lightbox_options&&html5lightbox_options&&("autoopen"in html5lightbox_options&&(e=html5lightbox_options.autoopen),"autoopendelay"in html5lightbox_options&&(i=html5lightbox_options.autoopendelay)),e=o.data("autoopen")?o.data("autoopen"):e,i=o.data("autoopendelay")?o.data("autoopendelay"):i,e)return setTimeout(function(){o.click()},i),!1});var b=i.getURLParams();if("html5lightboxshare"in b){var f=decodeURIComponent(b.html5lightboxshare),v=t('.html5lightbox[href="'+f+'"]');v.length>0&&v.click()}return i},(e=jQuery).fn.html5lightboxTouchSwipe=function(o){var t={preventWebBrowser:!1,swipeDistance:0,swipeLeft:null,swipeRight:null,swipeTop:null,swipeBottom:null};return o&&e.extend(t,o),this.each(function(){var o=-1,i=-1,n=-1,s=-1;function l(t){o=-1,i=-1,n=-1,s=-1}try{e(this).on("touchstart",function(t){var e=t.originalEvent;e.targetTouches.length>=1?(o=e.targetTouches[0].pageX,i=e.targetTouches[0].pageY):l()}),e(this).on("touchmove",function(o){t.preventWebBrowser&&o.preventDefault();var e=o.originalEvent;e.targetTouches.length>=1?(n=e.targetTouches[0].pageX,s=e.targetTouches[0].pageY):l()}),e(this).on("touchend",function(e){n>0||s>0?(Math.abs(n-o)>Math.abs(s-i)?Math.abs(n-o)>t.swipeDistance&&(n>o?t.swipeRight&&t.swipeRight.call():t.swipeLeft&&t.swipeLeft.call()):Math.abs(s-i)>t.swipeDistance&&(s>i?t.swipeBottom&&t.swipeBottom.call():t.swipeTop&&t.swipeTop.call()),l()):l()}),e(this).on("touchcancel",l)}catch(o){}})},(i=jQuery).fn.lightboxHTML5VideoControls=function(o,t,e,n,s){var l="ontouchstart"in window,r=l?"touchstart":"mousedown",a=l?"touchmove":"mousemove",h=l?"touchcancel":"mouseup",p="click",c=l?48:36,d=null,m=null,u=!1,g=!0,b=null!=navigator.userAgent.match(/iPod/i)||null!=navigator.userAgent.match(/iPhone/i),f=i(this).data("ishd"),v=i(this).data("hd"),w=i(this).data("src"),x=i(this);if(x.get(0).removeAttribute("controls"),b){var y=x.height()-c;x.css({height:y})}var k=i("<div class='html5boxVideoPlay'></div>");b||(x.after(k),k.css({position:"absolute",top:"50%",left:"50%",display:"block",cursor:"pointer",width:64,height:64,"margin-left":-32,"margin-top":-32,"background-image":"url('"+o+"html5boxplayer_playvideo.png')","background-position":"center center","background-repeat":"no-repeat"}).on(p,function(){x.get(0).play()}));var $=i("<div class='html5boxVideoFullscreenBg'></div>"),E=i("<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='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>");x.after(E),x.after($),$.css({display:"none",position:"fixed",left:0,top:0,bottom:0,right:0,"z-index":2147483647}),E.css({display:"block",position:"absolute",width:"100%",height:c,left:0,bottom:0,right:0,"max-width":"640px",margin:"0 auto"});var A=function(){g=!0};x.on(p,function(){g=!0}).hover(function(){g=!0},function(){g=!1}),e||setInterval(function(){g&&(E.show(),g=!1,clearTimeout(d),d=setTimeout(function(){x.get(0).paused||E.fadeOut()},5e3))},250),i(".html5boxVideoControlsBg",E).css({display:"block",position:"absolute",width:"100%",height:"100%",left:0,top:0,"background-color":"#000000",opacity:.7,filter:"alpha(opacity=70)"}),i(".html5boxPlayPause",E).css({display:"block",position:"relative",width:"32px",height:"32px",margin:Math.floor((c-32)/2),float:"left"});var T=i(".html5boxPlay",E),I=i(".html5boxPause",E);T.css({display:"block",position:"absolute",top:0,left:0,width:"32px",height:"32px",cursor:"pointer","background-image":"url('"+o+"html5boxplayer_playpause.png')","background-position":"top left"}).hover(function(){i(this).css({"background-position":"bottom left"})},function(){i(this).css({"background-position":"top left"})}).on(p,function(){x.get(0).play()}),I.css({display:"none",position:"absolute",top:0,left:0,width:"32px",height:"32px",cursor:"pointer","background-image":"url('"+o+"html5boxplayer_playpause.png')","background-position":"top right"}).hover(function(){i(this).css({"background-position":"bottom right"})},function(){i(this).css({"background-position":"top right"})}).on(p,function(){x.get(0).pause()});var S=i(".html5boxTimeCurrent",E),z=i(".html5boxTimeTotal",E),C=i(".html5boxSeeker",E),B=i(".html5boxSeekerPlay",E),F=i(".html5boxSeekerBuffer",E),P=i(".html5boxSeekerHandler",E);if(S.css({display:"block",position:"relative",float:"left","line-height":c+"px","font-weight":"normal","font-size":"12px",margin:"0 8px","font-family":"Arial, Helvetica, sans-serif",color:"#fff"}),z.css({display:"block",position:"relative",float:"right","line-height":c+"px","font-weight":"normal","font-size":"12px",margin:"0 8px","font-family":"Arial, Helvetica, sans-serif",color:"#fff"}),C.css({display:"block",cursor:"pointer",overflow:"hidden",position:"relative",height:"10px","background-color":"#222",margin:Math.floor((c-10)/2)+"px 4px"}).on(r,function(o){var t=(l?o.originalEvent.touches[0]:o).pageX-C.offset().left;B.css({width:t}),x.get(0).currentTime=t*x.get(0).duration/C.width(),C.on(a,function(o){var t=(l?o.originalEvent.touches[0]:o).pageX-C.offset().left;B.css({width:t}),x.get(0).currentTime=t*x.get(0).duration/C.width()})}).on(h,function(){C.off(a)}),F.css({display:"block",position:"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"}),!b&&(x.get(0).requestFullscreen||x.get(0).webkitRequestFullScreen||x.get(0).mozRequestFullScreen||x.get(0).webkitEnterFullScreen||x.get(0).msRequestFullscreen)){var M=function(o){E.css({position:o?"fixed":"absolute"});var t=L.css("background-position")?L.css("background-position").split(" ")[1]:L.css("background-position-y");L.css({"background-position":(o?"right":"left")+" "+t}),$.css({display:o?"block":"none"}),o?(i(document).on("mousemove",A),E.css({"z-index":2147483647})):(i(document).off("mousemove",A),E.css({"z-index":""}))};document.addEventListener("MSFullscreenChange",function(){u=null!=document.msFullscreenElement;var o=null!=navigator.userAgent.match(/Trident\/7/)&&null!=navigator.userAgent.match(/rv:11/),t=null!=navigator.userAgent.match(/MSIE/i)&&!this.options.isOpera;(o||t)&&(u||x.get(0).removeAttribute("controls")),M(u)},!1),document.addEventListener("fullscreenchange",function(){u=document.fullscreen,M(document.fullscreen)},!1),document.addEventListener("mozfullscreenchange",function(){u=document.mozFullScreen,null!=navigator.userAgent.match(/Firefox/i)&&(u?x.get(0).setAttribute("controls","controls"):x.get(0).removeAttribute("controls")),M(document.mozFullScreen)},!1),document.addEventListener("webkitfullscreenchange",function(){u=document.webkitIsFullScreen,null!=navigator.userAgent.match(/Android/i)?u?x.get(0).setAttribute("controls","controls"):(x.get(0).removeAttribute("controls"),M(document.webkitIsFullScreen)):M(document.webkitIsFullScreen)},!1),x.get(0).addEventListener("webkitbeginfullscreen",function(){u=!0},!1),x.get(0).addEventListener("webkitendfullscreen",function(){u=!1},!1),null==navigator.userAgent.match(/Android/i)&&i("head").append("<style type='text/css'>video::-webkit-media-controls { display:none !important; }</style>");var L=i(".html5boxFullscreen",E);L.css({display:"block",position:"relative",float:"right",width:"32px",height:"32px",margin:Math.floor((c-32)/2),cursor:"pointer","background-image":"url('"+o+"html5boxplayer_fullscreen.png')","background-position":"left top"}).hover(function(){var o=i(this).css("background-position")?i(this).css("background-position").split(" ")[0]:i(this).css("background-position-x");i(this).css({"background-position":o+" bottom"})},function(){var o=i(this).css("background-position")?i(this).css("background-position").split(" ")[0]:i(this).css("background-position-x");i(this).css({"background-position":o+" top"})}
6).on(p,function(){!function(o){if(o){var t=null!=navigator.userAgent.match(/Trident\/7/)&&null!=navigator.userAgent.match(/rv:11/),e=null!=navigator.userAgent.match(/MSIE/i)&&!this.options.isOpera;(t||e)&&x.get(0).setAttribute("controls","controls"),x.get(0).requestFullscreen?x.get(0).requestFullscreen():x.get(0).webkitRequestFullScreen?x.get(0).webkitRequestFullScreen():x.get(0).mozRequestFullScreen?x.get(0).mozRequestFullScreen():x.get(0).webkitEnterFullScreen&&x.get(0).webkitEnterFullScreen(),x.get(0).msRequestFullscreen&&x.get(0).msRequestFullscreen()}else document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}(u=!u)})}v&&i(".html5boxHD",E).css({display:"block",position:"relative",float:"right",width:"32px",height:"32px",margin:Math.floor((c-32)/2),cursor:"pointer","background-image":"url('"+o+"html5boxplayer_hd.png')","background-position":(f?"right":"left")+" center"}).on(p,function(){f=!f,i(this).css({"background-position":(f?"right":"left")+" center"}),t.isHd=f;var o=x.get(0).isPaused;x.get(0).setAttribute("src",(f?v:w)+"#t="+x.get(0).currentTime),o?b||x.get(0).pause():x.get(0).play()}),x.get(0).volume=s;var O=0==s?1:s,D=x.get(0).volume;if(x.get(0).volume=D/2+.1,x.get(0).volume===D/2+.1){x.get(0).volume=D;var _=i(".html5boxVolume",E),j=i(".html5boxVolumeButton",E),W=i(".html5boxVolumeBar",E),V=i(".html5boxVolumeBarBg",E),H=i(".html5boxVolumeBarActive",E);_.css({display:"block",position:"relative",float:"right",width:"32px",height:"32px",margin:Math.floor((c-32)/2)}).hover(function(){clearTimeout(m);var o=x.get(0).volume;H.css({height:Math.round(100*o)+"%"}),W.show()},function(){clearTimeout(m),m=setTimeout(function(){W.hide()},1e3)}),j.css({display:"block",position:"absolute",top:0,left:0,width:"32px",height:"32px",cursor:"pointer","background-image":"url('"+o+"html5boxplayer_volume.png')","background-position":"top "+(D>0?"left":"right")}).hover(function(){var o=i(this).css("background-position")?i(this).css("background-position").split(" ")[0]:i(this).css("background-position-x");i(this).css({"background-position":o+" bottom"})},function(){var o=i(this).css("background-position")?i(this).css("background-position").split(" ")[0]:i(this).css("background-position-x");i(this).css({"background-position":o+" top"})}).on(p,function(){var o=x.get(0).volume;o>0?(O=o,o=0):o=O;var t=i(this).css("background-position")?i(this).css("background-position").split(" ")[1]:i(this).css("background-position-y");j.css({"background-position":(o>0?"left":"right")+" "+t}),x.get(0).volume=o,H.css({height:Math.round(100*o)+"%"})}),W.css({display:"none",position:"absolute",left:4,bottom:"100%",width:24,height:80,"margin-bottom":Math.floor((c-32)/2),"background-color":"#000000",opacity:.7,filter:"alpha(opacity=70)"}),V.css({display:"block",position:"relative",width:10,height:68,margin:7,cursor:"pointer","background-color":"#222"}),H.css({display:"block",position:"absolute",bottom:0,left:0,width:"100%",height:"100%","background-color":"#fcc500"}),V.on(r,function(o){var t=1-((l?o.originalEvent.touches[0]:o).pageY-V.offset().top)/V.height();t=t>1?1:t<0?0:t,H.css({height:Math.round(100*t)+"%"}),j.css({"background-position":"left "+(t>0?"top":"bottom")}),x.get(0).volume=t,V.on(a,function(o){var t=1-((l?o.originalEvent.touches[0]:o).pageY-V.offset().top)/V.height();t=t>1?1:t<0?0:t,H.css({height:Math.round(100*t)+"%"}),j.css({"background-position":"left "+(t>0?"top":"bottom")}),x.get(0).volume=t})}).on(h,function(){V.off(a)})}var q=function(o){var t=Math.floor(o/3600),e=t<10?"0"+t:t,i=Math.floor((o-3600*t)/60),n=i<10?"0"+i:i,s=Math.floor(o-(3600*t+60*i)),l=n+":"+(s<10?"0"+s:s);return t>0&&(l=e+":"+l),l};n&&k.hide(),e&&E.hide();try{x.on("play",function(){n||k.hide(),e||(T.hide(),I.show())}),x.on("pause",function(){n||k.show(),e||(E.show(),clearTimeout(d),T.show(),I.hide())}),x.on("ended",function(){i(window).trigger("html5lightbox.videoended"),n||k.show(),e||(E.show(),clearTimeout(d),T.show(),I.hide())}),x.on("timeupdate",function(){var o=x.get(0).currentTime;if(o){S.text(q(o));var t=x.get(0).duration;if(t){z.text(q(t));var e=C.width(),i=Math.round(e*o/t);B.css({width:i}),P.css({left:i})}}}),x.on("progress",function(){if(x.get(0).buffered&&x.get(0).buffered.length>0&&!isNaN(x.get(0).buffered.end(0))&&!isNaN(x.get(0).duration)){var o=C.width();F.css({width:Math.round(o*x.get(0).buffered.end(0)/x.get(0).duration)})}})}catch(o){}},jQuery(document).ready(function(){"undefined"==typeof html5Lightbox&&(html5Lightbox=jQuery(".html5lightbox").html5lightbox())})}!function(){for(var o=document.getElementsByTagName("script"),t="",e=0;e<o.length;e++)o[e].src&&o[e].src.match(/html5lightbox\.js/i)&&(t=o[e].src.substr(0,o[e].src.lastIndexOf("/")+1));var i=!1;if("undefined"==typeof jQuery)i=!0;else{var n=jQuery.fn.jquery.split(".");(n[0]<1||1==n[0]&&n[1]<6)&&(i=!0)}if(i){var s=document.getElementsByTagName("head")[0],l=document.createElement("script");l.setAttribute("type","text/javascript"),l.readyState?l.onreadystatechange=function(){"loaded"!=l.readyState&&"complete"!=l.readyState||(l.onreadystatechange=null,loadHtml5LightBox(t))}:l.onload=function(){loadHtml5LightBox(t)},l.setAttribute("src",t+"jquery.js"),s.appendChild(l)}else loadHtml5LightBox(t)}();
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.