1var $=jQuery.noConflict(); 2/*! Lightcase - 2.5.0 - MODIFIED TO MAKE IT WORK WITH THE YUI COMPRESSOR FROM THE CMS*/ 3(function(b){var a={cache:{},support:{},objects:{},init:function(c){return this.each(function(){b(this).unbind("click.lightcase").bind("click.lightcase",function(d){d.preventDefault();b(this).lightcase("start",c)})})},start:function(c){a.origin=lightcase.origin=this;a.settings=lightcase.settings=b.extend(!0,{idPrefix:"lightcase-",classPrefix:"lightcase-",attrPrefix:"lc-",transition:"elastic",transitionOpen:null,transitionClose:null,transitionIn:null,transitionOut:null,cssTransitions:!0,speedIn:250,speedOut:250,width:null,height:null,maxWidth:800,maxHeight:500,forceWidth:!1,forceHeight:!1,liveResize:!0,fullScreenModeForMobile:!0,mobileMatchExpression:/(iphone|ipod|ipad|android|blackberry|symbian)/,disableShrink:!1,fixedRatio:!0,shrinkFactor:0.75,overlayOpacity:0.9,slideshow:!1,slideshowAutoStart:!1,breakBeforeShow:!1,timeout:5000,swipe:!0,useKeys:!0,useCategories:!0,useAsCollection:!1,navigateEndless:!0,closeOnOverlayClick:!0,title:null,caption:null,showTitle:!0,showCaption:!0,showSequenceInfo:!0,inline:{width:"auto",height:"auto"},ajax:{width:"auto",height:"auto",type:"get",dataType:"html",data:{}},iframe:{width:800,height:500,frameborder:0},flash:{width:400,height:205,wmode:"transparent"},video:{width:400,height:225,poster:"",preload:"auto",controls:!0,autobuffer:!0,autoplay:!0,loop:!1},attr:"data-rel",href:null,type:null,typeMapping:{image:"jpg,jpeg,gif,png,bmp",flash:"swf",video:"mp4,mov,ogv,ogg,webm",iframe:"html,php",ajax:"json,txt",inline:"#"},errorMessage:function(){return'<p class="'+a.settings.classPrefix+'error">'+a.settings.labels.errorMessage+"</p>"},labels:{errorMessage:"Source could not be found...","sequenceInfo.of":" of ",close:"Close","navigator.prev":"Prev","navigator.next":"Next","navigator.play":"Play","navigator.pause":"Pause"},markup:function(){a.objects.body.append(a.objects.overlay=b('<div id="'+a.settings.idPrefix+'overlay"></div>'),a.objects.loading=b('<div id="'+a.settings.idPrefix+'loading" class="'+a.settings.classPrefix+'icon-spin"></div>'),a.objects["case"]=b('<div id="'+a.settings.idPrefix+'case" aria-hidden="true" role="dialog"></div>'));a.objects["case"].after(a.objects.close=b('<a href="#" class="'+a.settings.classPrefix+'icon-close"><span>'+a.settings.labels.close+"</span></a>"),a.objects.nav=b('<div id="'+a.settings.idPrefix+'nav"></div>'));a.objects.nav.append(a.objects.prev=b('<a href="#" class="'+a.settings.classPrefix+'icon-prev"><span>'+a.settings.labels["navigator.prev"]+"</span></a>").hide(),a.objects.next=b('<a href="#" class="'+a.settings.classPrefix+'icon-next"><span>'+a.settings.labels["navigator.next"]+"</span></a>").hide(),a.objects.play=b('<a href="#" class="'+a.settings.classPrefix+'icon-play"><span>'+a.settings.labels["navigator.play"]+"</span></a>").hide(),a.objects.pause=b('<a href="#" class="'+a.settings.classPrefix+'icon-pause"><span>'+a.settings.labels["navigator.pause"]+"</span></a>").hide());a.objects["case"].append(a.objects.content=b('<div id="'+a.settings.idPrefix+'content"></div>'),a.objects.info=b('<div id="'+a.settings.idPrefix+'info"></div>'));a.objects.content.append(a.objects.contentInner=b('<div class="'+a.settings.classPrefix+'contentInner"></div>'));a.objects.info.append(a.objects.sequenceInfo=b('<div id="'+a.settings.idPrefix+'sequenceInfo"></div>'),a.objects.title=b('<h4 id="'+a.settings.idPrefix+'title"></h4>'),a.objects.caption=b('<p id="'+a.settings.idPrefix+'caption"></p>'))},onInit:{},onStart:{},onBeforeCalculateDimensions:{},onAfterCalculateDimensions:{},onBeforeShow:{},onFinish:{},onResize:{},onClose:{},onCleanup:{}},c,a.origin.data?a.origin.data("lc-options"):{});a.objects.document=b("html");a.objects.body=b("body");a._callHooks(a.settings.onInit);a.objectData=a._setObjectData(this);a._addElements();a._open();a.dimensions=a.getViewportDimensions()},get:function(c){return a.objects[c]},getObjectData:function(){return a.objectData},_setObjectData:function(d){var e=b(d),c={"this":b(d),title:a.settings.title||e.attr(a._prefixAttributeName("title"))||e.attr("title"),caption:a.settings.caption||e.attr(a._prefixAttributeName("caption"))||e.children("img").attr("alt"),url:a._determineUrl(),requestType:a.settings.ajax.type,requestData:a.settings.ajax.data,requestDataType:a.settings.ajax.dataType,rel:e.attr(a._determineAttributeSelector()),type:a.settings.type||a._verifyDataType(a._determineUrl()),isPartOfSequence:a.settings.useAsCollection||a._isPartOfSequence(e.attr(a.settings.attr),":"),isPartOfSequenceWithSlideshow:a._isPartOfSequence(e.attr(a.settings.attr),":slideshow"),currentIndex:b(a._determineAttributeSelector()).index(e),sequenceLength:b(a._determineAttributeSelector()).length};c.sequenceInfo=(c.currentIndex+1)+a.settings.labels["sequenceInfo.of"]+c.sequenceLength;c.prevIndex=c.currentIndex-1;c.nextIndex=c.currentIndex+1;return c},_prefixAttributeName:function(c){return"data-"+a.settings.attrPrefix+c},_determineLinkTarget:function(){return a.settings.href||b(a.origin).attr(a._prefixAttributeName("href"))||b(a.origin).attr("href")},_determineAttributeSelector:function(){var e=b(a.origin),c="";if(typeof a.cache.selector!=="undefined"){c=a.cache.selector}else{if(a.settings.useCategories===!0&&e.attr(a._prefixAttributeName("categories"))){var d=e.attr(a._prefixAttributeName("categories")).split(" ");b.each(d,function(f,g){if(f>0){c+=","}c+="["+a._prefixAttributeName("categories")+'~="'+g+'"]'})}else{c="["+a.settings.attr+'="'+e.attr(a.settings.attr)+'"]'}}a.cache.selector=c;return c},_determineUrl:function(){var g=a._verifyDataUrl(a._determineLinkTarget()),f=0,c=0,e="",d;b.each(g,function(h,k){switch(a._verifyDataType(k.url)){case "video":var j=document.createElement("video"),i=a._verifyDataType(k.url)+"/"+a._getFileUrlSuffix(k.url);if(e!=="probably"&&e!==j.canPlayType(i)&&j.canPlayType(i)!==""){e=j.canPlayType(i);d=k.url}break;default:if(a._devicePixelRatio()>=k.density&&k.density>=c&&a._matchMedia()("screen and (min-width:"+k.width+"px)").matches&&k.width>=f){f=k.width;c=k.density;d=k.url}break}});return d},_normalizeUrl:function(c){var d=/^\d+$/;
3return c.split(",").map(function(f){var e={width:0,density:0};f.trim().split(/\s+/).forEach(function(h,k){if(k===0){return e.url=h}var m=h.substring(0,h.length-1),j=h[h.length-1],l=parseInt(m,10),g=parseFloat(m);if(j==="w"&&d.test(m)){e.width=l}else{if(j==="h"&&d.test(m)){e.height=l}else{if(j==="x"&&!isNaN(g)){e.density=g}}}});return e})},_isPartOfSequence:function(c,f){var d=b("["+a.settings.attr+'="'+c+'"]'),e=new RegExp(f);return(e.test(c)&&d.length>1)},isSlideshowEnabled:function(){return(a.objectData.isPartOfSequence&&(a.settings.slideshow===!0||a.objectData.isPartOfSequenceWithSlideshow===!0))},_loadContent:function(){if(a.cache.originalObject){a._restoreObject()}a._createObject()},_createObject:function(){var c;switch(a.objectData.type){case "image":c=b(new Image());c.attr({src:a.objectData.url,alt:a.objectData.title});break;case "inline":c=b('<div class="'+a.settings.classPrefix+'inlineWrap"></div>');c.html(a._cloneObject(b(a.objectData.url)));b.each(a.settings.inline,function(d,e){c.attr(a._prefixAttributeName(d),e)});break;case "ajax":c=b('<div class="'+a.settings.classPrefix+'inlineWrap"></div>');b.each(a.settings.ajax,function(d,e){if(d!=="data"){c.attr(a._prefixAttributeName(d),e)}});break;case "flash":c=b('<embed src="'+a.objectData.url+'" type="application/x-shockwave-flash"></embed>');b.each(a.settings.flash,function(d,e){c.attr(d,e)});break;case "video":c=b("<video></video>");c.attr("src",a.objectData.url);b.each(a.settings.video,function(d,e){c.attr(d,e)});break;default:c=b("<iframe></iframe>");c.attr({src:a.objectData.url});b.each(a.settings.iframe,function(d,e){c.attr(d,e)});break}a._addObject(c);a._loadObject(c)},_addObject:function(c){a.objects.contentInner.html(c);a._loading("start");a._callHooks(a.settings.onStart);if(a.settings.showSequenceInfo===!0&&a.objectData.isPartOfSequence){a.objects.sequenceInfo.html(a.objectData.sequenceInfo);a.objects.sequenceInfo.show()}else{a.objects.sequenceInfo.empty();a.objects.sequenceInfo.hide()}if(a.settings.showTitle===!0&&a.objectData.title!==undefined&&a.objectData.title!==""){a.objects.title.html(a.objectData.title);a.objects.title.show()}else{a.objects.title.empty();a.objects.title.hide()}if(a.settings.showCaption===!0&&a.objectData.caption!==undefined&&a.objectData.caption!==""){a.objects.caption.html(a.objectData.caption);a.objects.caption.show()}else{a.objects.caption.empty();a.objects.caption.hide()}},_loadObject:function(c){switch(a.objectData.type){case "inline":if(b(a.objectData.url)){a._showContent(c)}else{a.error()}break;case "ajax":b.ajax(b.extend({},a.settings.ajax,{url:a.objectData.url,type:a.objectData.requestType,dataType:a.objectData.requestDataType,data:a.objectData.requestData,success:function(e,f,d){if(d.getResponseHeader("X-Ajax-Location")){a.objectData.url=d.getResponseHeader("X-Ajax-Location");a._loadObject(c)}else{if(a.objectData.requestDataType==="json"){a.objectData.data=e}else{c.html(e)}a._showContent(c)}},error:function(d,f,e){a.error()}}));break;case "flash":a._showContent(c);break;case "video":if(typeof(c.get(0).canPlayType)==="function"||a.objects["case"].find("video").length===0){a._showContent(c)}else{a.error()}break;default:if(a.objectData.url){c.on("load",function(){a._showContent(c)});c.on("error",function(){a.error()})}else{a.error()}break}},error:function(){a.objectData.type="error";var c=b('<div class="'+a.settings.classPrefix+'inlineWrap"></div>');c.html(a.settings.errorMessage);a.objects.contentInner.html(c);a._showContent(a.objects.contentInner)},_calculateDimensions:function(d){a._cleanupDimensions();if(!d){return}var c={ratio:1,objectWidth:d.attr("width")?d.attr("width"):d.attr(a._prefixAttributeName("width")),objectHeight:d.attr("height")?d.attr("height"):d.attr(a._prefixAttributeName("height"))};if(!a.settings.disableShrink){c.maxWidth=parseInt(a.dimensions.windowWidth*a.settings.shrinkFactor);c.maxHeight=parseInt(a.dimensions.windowHeight*a.settings.shrinkFactor);if(c.maxWidth>a.settings.maxWidth){c.maxWidth=a.settings.maxWidth}if(c.maxHeight>a.settings.maxHeight){c.maxHeight=a.settings.maxHeight}c.differenceWidthAsPercent=parseInt(100/c.maxWidth*c.objectWidth);c.differenceHeightAsPercent=parseInt(100/c.maxHeight*c.objectHeight);switch(a.objectData.type){case "image":case "flash":case "video":case "iframe":case "ajax":case "inline":if(a.objectData.type==="image"||a.settings.fixedRatio===!0){if(c.differenceWidthAsPercent>100&&c.differenceWidthAsPercent>c.differenceHeightAsPercent){c.objectWidth=c.maxWidth;c.objectHeight=parseInt(c.objectHeight/c.differenceWidthAsPercent*100)}if(c.differenceHeightAsPercent>100&&c.differenceHeightAsPercent>c.differenceWidthAsPercent){c.objectWidth=parseInt(c.objectWidth/c.differenceHeightAsPercent*100);c.objectHeight=c.maxHeight}if(c.differenceHeightAsPercent>100&&c.differenceWidthAsPercent<c.differenceHeightAsPercent){c.objectWidth=parseInt(c.maxWidth/c.differenceHeightAsPercent*c.differenceWidthAsPercent);c.objectHeight=c.maxHeight}break}case "error":if(!isNaN(c.objectWidth)&&c.objectWidth>c.maxWidth){c.objectWidth=c.maxWidth}break;default:if((isNaN(c.objectWidth)||c.objectWidth>c.maxWidth)&&!a.settings.forceWidth){c.objectWidth=c.maxWidth}if(((isNaN(c.objectHeight)&&c.objectHeight!=="auto")||c.objectHeight>c.maxHeight)&&!a.settings.forceHeight){c.objectHeight=c.maxHeight}break}}if(a.settings.forceWidth){try{c.objectWidth=a.settings[a.objectData.type].width}catch(f){c.objectWidth=a.settings.width||c.objectWidth}c.maxWidth=null}if(d.attr(a._prefixAttributeName("max-width"))){c.maxWidth=d.attr(a._prefixAttributeName("max-width"))}if(a.settings.forceHeight){try{c.objectHeight=a.settings[a.objectData.type].height}catch(f){c.objectHeight=a.settings.height||c.objectHeight}c.maxHeight=null}if(d.attr(a._prefixAttributeName("max-height"))){c.maxHeight=d.attr(a._prefixAttributeName("max-height"))}a._adjustDimensions(d,c)},_adjustDimensions:function(d,c){d.css({width:c.objectWidth,height:c.objectHeight,"max-width":c.maxWidth,"max-height":c.maxHeight});a.objects.contentInner.css({width:d.outerWidth(),height:d.outerHeight(),"max-width":"100%"});a.objects["case"].css({width:a.objects.contentInner.outerWidth(),"max-width":"100%"});a.objects["case"].css({"margin-top":parseInt(-(a.objects["case"].outerHeight()/2)),"margin-left":parseInt(-(a.objects["case"].outerWidth()/2))})},_loading:function(c){if(c==="start"){a.objects["case"].addClass(a.settings.classPrefix+"loading");a.objects.loading.show()}else{if(c==="end"){a.objects["case"].removeClass(a.settings.classPrefix+"loading");a.objects.loading.hide()}}},getViewportDimensions:function(){return{windowWidth:b(window).innerWidth(),windowHeight:b(window).innerHeight()}}
3,_verifyDataUrl:function(c){if(!c||c===undefined||c===""){return!1}if(c.indexOf("#")>-1){c=c.split("#");c="#"+c[c.length-1]}return a._normalizeUrl(c.toString())},_getFileUrlSuffix:function(c){var d=/(?:\.([^.]+))?$/;return d.exec(c.toLowerCase())[1]},_verifyDataType:function(d){var h=a.settings.typeMapping;if(!d){return!1}for(var f in h){if(h.hasOwnProperty(f)){var c=h[f].split(",");for(var e=0;e<c.length;e++){var j=c[e].toLowerCase(),g=new RegExp(".("+j+")$","i"),k=d.toLowerCase().split("?")[0].substr(-5);if(g.test(k)===!0||(f==="inline"&&(d.indexOf(j)>-1))){return f}}}}return"iframe"},_addElements:function(){if(typeof a.objects["case"]!=="undefined"&&b("#"+a.objects["case"].attr("id")).length){return}a.settings.markup()},_showContent:function(c){a.objects.document.attr(a._prefixAttributeName("type"),a.objectData.type);a.cache.object=c;a._callHooks(a.settings.onBeforeShow);if(a.settings.breakBeforeShow){return}a.show()},_startInTransition:function(){switch(a.transition["in"]()){case "scrollTop":case "scrollRight":case "scrollBottom":case "scrollLeft":case "scrollHorizontal":case "scrollVertical":a.transition.scroll(a.objects["case"],"in",a.settings.speedIn);a.transition.fade(a.objects.contentInner,"in",a.settings.speedIn);break;case "elastic":if(a.objects["case"].css("opacity")<1){a.transition.zoom(a.objects["case"],"in",a.settings.speedIn);a.transition.fade(a.objects.contentInner,"in",a.settings.speedIn)}case "fade":case "fadeInline":a.transition.fade(a.objects["case"],"in",a.settings.speedIn);a.transition.fade(a.objects.contentInner,"in",a.settings.speedIn);break;default:a.transition.fade(a.objects["case"],"in",0);break}a._loading("end");a.isBusy=!1;if(!a.cache.firstOpened){a.cache.firstOpened=a.objectData["this"]}a.objects.info.hide();setTimeout(function(){a.transition.fade(a.objects.info,"in",a.settings.speedIn)},a.settings.speedIn);a._callHooks(a.settings.onFinish)},_processContent:function(){a.isBusy=!0;a.transition.fade(a.objects.info,"out",0);switch(a.settings.transitionOut){case "scrollTop":case "scrollRight":case "scrollBottom":case "scrollLeft":case "scrollVertical":case "scrollHorizontal":if(a.objects["case"].is(":hidden")){a.transition.fade(a.objects.contentInner,"out",0);a.transition.fade(a.objects["case"],"out",0,0,function(){a._loadContent()})}else{a.transition.scroll(a.objects["case"],"out",a.settings.speedOut,function(){a._loadContent()})}break;case "fade":if(a.objects["case"].is(":hidden")){a.transition.fade(a.objects["case"],"out",0,0,function(){a._loadContent()})}else{a.transition.fade(a.objects["case"],"out",a.settings.speedOut,0,function(){a._loadContent()})}break;case "fadeInline":case "elastic":if(a.objects["case"].is(":hidden")){a.transition.fade(a.objects["case"],"out",0,0,function(){a._loadContent()})}else{a.transition.fade(a.objects.contentInner,"out",a.settings.speedOut,0,function(){a._loadContent()})}break;default:a.transition.fade(a.objects["case"],"out",0,0,function(){a._loadContent()});break}},_handleEvents:function(){a._unbindEvents();a.objects.nav.children().not(a.objects.close).hide();if(a.isSlideshowEnabled()){if((a.settings.slideshowAutoStart===!0||a.isSlideshowStarted)&&!a.objects.nav.hasClass(a.settings.classPrefix+"paused")){a._startTimeout()}else{a._stopTimeout()}}if(a.settings.liveResize){a._watchResizeInteraction()}a.objects.close.click(function(c){c.preventDefault();a.close()});if(a.settings.closeOnOverlayClick===!0){a.objects.overlay.css("cursor","pointer").click(function(c){c.preventDefault();a.close()})}if(a.settings.useKeys===!0){a._addKeyEvents()}if(a.objectData.isPartOfSequence){a.objects.nav.attr(a._prefixAttributeName("ispartofsequence"),!0);a.objects.nav.data("items",a._setNavigation());a.objects.prev.click(function(c){c.preventDefault();if(a.settings.navigateEndless===!0||!a.item.isFirst()){a.objects.prev.unbind("click");a.cache.action="prev";a.objects.nav.data("items").prev.click();if(a.isSlideshowEnabled()){a._stopTimeout()}}});a.objects.next.click(function(c){c.preventDefault();if(a.settings.navigateEndless===!0||!a.item.isLast()){a.objects.next.unbind("click");a.cache.action="next";a.objects.nav.data("items").next.click();
3if(a.isSlideshowEnabled()){a._stopTimeout()}}});if(a.isSlideshowEnabled()){a.objects.play.click(function(c){c.preventDefault();a._startTimeout()});a.objects.pause.click(function(c){c.preventDefault();a._stopTimeout()})}if(a.settings.swipe===!0){if(b.isPlainObject(b.event.special.swipeleft)){a.objects["case"].on("swipeleft",function(c){c.preventDefault();a.objects.next.click();if(a.isSlideshowEnabled()){a._stopTimeout()}})}if(b.isPlainObject(b.event.special.swiperight)){a.objects["case"].on("swiperight",function(c){c.preventDefault();a.objects.prev.click();if(a.isSlideshowEnabled()){a._stopTimeout()}})}}}},_addKeyEvents:function(){b(document).bind("keyup.lightcase",function(c){if(a.isBusy){return}switch(c.keyCode){case 27:a.objects.close.click();break;case 37:if(a.objectData.isPartOfSequence){a.objects.prev.click()}break;case 39:if(a.objectData.isPartOfSequence){a.objects.next.click()}break}})},_startTimeout:function(){a.isSlideshowStarted=!0;a.objects.play.hide();a.objects.pause.show();a.cache.action="next";a.objects.nav.removeClass(a.settings.classPrefix+"paused");a.timeout=setTimeout(function(){a.objects.nav.data("items").next.click()},a.settings.timeout)},_stopTimeout:function(){a.objects.play.show();a.objects.pause.hide();a.objects.nav.addClass(a.settings.classPrefix+"paused");clearTimeout(a.timeout)},_setNavigation:function(){var e=b((a.cache.selector||a.settings.attr)),d=a.objectData.sequenceLength-1,c={prev:e.eq(a.objectData.prevIndex),next:e.eq(a.objectData.nextIndex)};if(a.objectData.currentIndex>0){a.objects.prev.show()}else{c.prevItem=e.eq(d)}if(a.objectData.nextIndex<=d){a.objects.next.show()}else{c.next=e.eq(0)}if(a.settings.navigateEndless===!0){a.objects.prev.show();a.objects.next.show()}return c},item:{isFirst:function(){return(a.objectData.currentIndex===0)},isFirstOpened:function(){return a.objectData["this"].is(a.cache.firstOpened)},isLast:function(){return(a.objectData.currentIndex===(a.objectData.sequenceLength-1))}},_cloneObject:function(d){var e=d.clone(),c=d.attr("id");if(d.is(":hidden")){a._cacheObjectData(d);d.attr("id",a.settings.idPrefix+"temp-"+c).empty()}else{e.removeAttr("id")}return e.show()},isMobileDevice:function(){var c=navigator.userAgent.toLowerCase(),d=c.match(a.settings.mobileMatchExpression);return d?!0:!1},isTransitionSupported:function(){var c=a.objects.body.get(0),e=!1,f={transition:"",WebkitTransition:"-webkit-",MozTransition:"-moz-",OTransition:"-o-",MsTransition:"-ms-"};for(var d in f){if(f.hasOwnProperty(d)&&d in c.style){a.support.transition=f[d];e=!0}}return e},transition:{"in":function(){if(a.settings.transitionOpen&&!a.cache.firstOpened){return a.settings.transitionOpen}return a.settings.transitionIn},fade:function(j,g,c,f,i){var k=g==="in",h={},l=j.css("opacity"),e={},d=f?f:k?1:0;if(!a.isOpen&&k){return}h.opacity=l;e.opacity=d;j.css(a.support.transition+"transition","none");j.css(h).show();if(a.support.transitions){e[a.support.transition+"transition"]=c+"ms ease";setTimeout(function(){j.css(e);setTimeout(function(){j.css(a.support.transition+"transition","");if(i&&(a.isOpen||!k)){i()}},c)},15)}else{j.stop();j.animate(e,c,i)}},scroll:function(m,i,c,l){var o=i==="in",g=o?a.settings.transitionIn:a.settings.transitionOut,k="left",j={},n=o?0:1,f=o?"-50%":"50%",e={},d=o?1:0,h=o?"50%":"-50%";if(!a.isOpen&&o){return}switch(g){case "scrollTop":k="top";break;case "scrollRight":f=o?"150%":"50%";h=o?"50%":"150%";break;case "scrollBottom":k="top";f=o?"150%":"50%";h=o?"50%":"150%";break;case "scrollHorizontal":f=o?"150%":"50%";h=o?"50%":"-50%";break;case "scrollVertical":k="top";f=o?"-50%":"50%";h=o?"50%":"150%";break}if(a.cache.action==="prev"){switch(g){case "scrollHorizontal":f=o?"-50%":"50%";h=o?"50%":"150%";break;case "scrollVertical":f=o?"150%":"50%";h=o?"50%":"-50%";break}}j.opacity=n;j[k]=f;e.opacity=d;e[k]=h;m.css(a.support.transition+"transition","none");m.css(j).show();if(a.support.transitions){e[a.support.transition+"transition"]=c+"ms ease";setTimeout(function(){m.css(e);setTimeout(function(){m.css(a.support.transition+"transition","");if(l&&(a.isOpen||!o)){l()}},c)},15)}else{m.stop();m.animate(e,c,l)}},zoom:function(k,h,d,j){var l=h==="in",i={},m=k.css("opacity"),g=l?"scale(0.75)":"scale(1)",f={},e=l?1:0,c=l?"scale(1)":"scale(0.75)";if(!a.isOpen&&l){return}i.opacity=m;i[a.support.transition+"transform"]=g;f.opacity=e;k.css(a.support.transition+"transition","none");k.css(i).show();if(a.support.transitions){f[a.support.transition+"transform"]=c;f[a.support.transition+"transition"]=d+"ms ease";setTimeout(function(){k.css(f);setTimeout(function(){k.css(a.support.transition+"transform","");k.css(a.support.transition+"transition","");if(j&&(a.isOpen||!l)){j()}},d)},15)}else{k.stop();k.animate(f,d,j)}}},_callHooks:function(c){if(typeof(c)==="object"){b.each(c,function(d,e){if(typeof(e)==="function"){e.call(a.origin)}})}},_cacheObjectData:function(c){b.data(c,"cache",{id:c.attr("id"),content:c.html()});a.cache.originalObject=c},_restoreObject:function(){var c=b('[id^="'+a.settings.idPrefix+'temp-"]');
3c.attr("id",b.data(a.cache.originalObject,"cache").id);c.html(b.data(a.cache.originalObject,"cache").content)},resize:function(d,c){if(!a.isOpen){return}if(a.isSlideshowEnabled()){a._stopTimeout()}if(typeof c==="object"&&c!==null){if(c.width){a.cache.object.attr(a._prefixAttributeName("width"),c.width)}if(c.maxWidth){a.cache.object.attr(a._prefixAttributeName("max-width"),c.maxWidth)}if(c.height){a.cache.object.attr(a._prefixAttributeName("height"),c.height)}if(c.maxHeight){a.cache.object.attr(a._prefixAttributeName("max-height"),c.maxHeight)}}a.dimensions=a.getViewportDimensions();a._calculateDimensions(a.cache.object);a._callHooks(a.settings.onResize)},_watchResizeInteraction:function(){b(window).resize(a.resize)},_unwatchResizeInteraction:function(){b(window).off("resize",a.resize)},_switchToFullScreenMode:function(){a.settings.shrinkFactor=1;a.settings.overlayOpacity=1;b("html").addClass(a.settings.classPrefix+"fullScreenMode")},_open:function(){a.isOpen=!0;a.support.transitions=a.settings.cssTransitions?a.isTransitionSupported():!1;a.support.mobileDevice=a.isMobileDevice();if(a.support.mobileDevice){b("html").addClass(a.settings.classPrefix+"isMobileDevice");if(a.settings.fullScreenModeForMobile){a._switchToFullScreenMode()}}if(!a.settings.transitionIn){a.settings.transitionIn=a.settings.transition}if(!a.settings.transitionOut){a.settings.transitionOut=a.settings.transition}switch(a.transition["in"]()){case "fade":case "fadeInline":case "elastic":case "scrollTop":case "scrollRight":case "scrollBottom":case "scrollLeft":case "scrollVertical":case "scrollHorizontal":if(a.objects["case"].is(":hidden")){a.objects.close.css("opacity",0);a.objects.overlay.css("opacity",0);a.objects["case"].css("opacity",0);a.objects.contentInner.css("opacity",0)}a.transition.fade(a.objects.overlay,"in",a.settings.speedIn,a.settings.overlayOpacity,function(){a.transition.fade(a.objects.close,"in",a.settings.speedIn);a._handleEvents();a._processContent()});break;default:a.transition.fade(a.objects.overlay,"in",0,a.settings.overlayOpacity,function(){a.transition.fade(a.objects.close,"in",0);a._handleEvents();a._processContent()});break}a.objects.document.addClass(a.settings.classPrefix+"open");a.objects["case"].attr("aria-hidden","false")},show:function(){a._callHooks(a.settings.onBeforeCalculateDimensions);a._calculateDimensions(a.cache.object);a._callHooks(a.settings.onAfterCalculateDimensions);a._startInTransition()},close:function(){a.isOpen=!1;if(a.isSlideshowEnabled()){a._stopTimeout();a.isSlideshowStarted=!1;a.objects.nav.removeClass(a.settings.classPrefix+"paused")}a.objects.loading.hide();a._unbindEvents();a._unwatchResizeInteraction();b("html").removeClass(a.settings.classPrefix+"open");a.objects["case"].attr("aria-hidden","true");a.objects.nav.children().hide();a.objects.close.hide();a._callHooks(a.settings.onClose);a.transition.fade(a.objects.info,"out",0);switch(a.settings.transitionClose||a.settings.transitionOut){case "fade":case "fadeInline":case "scrollTop":case "scrollRight":case "scrollBottom":case "scrollLeft":case "scrollHorizontal":case "scrollVertical":a.transition.fade(a.objects["case"],"out",a.settings.speedOut,0,function(){a.transition.fade(a.objects.overlay,"out",a.settings.speedOut,0,function(){a.cleanup()})});break;case "elastic":a.transition.zoom(a.objects["case"],"out",a.settings.speedOut,function(){a.transition.fade(a.objects.overlay,"out",a.settings.speedOut,0,function(){a.cleanup()})});break;default:a.cleanup();break}},_unbindEvents:function(){a.objects.overlay.unbind("click");b(document).unbind("keyup.lightcase");a.objects["case"].unbind("swipeleft").unbind("swiperight");a.objects.prev.unbind("click");a.objects.next.unbind("click");a.objects.play.unbind("click");a.objects.pause.unbind("click");a.objects.close.unbind("click")},_cleanupDimensions:function(){var c=a.objects.contentInner.css("opacity");a.objects["case"].css({width:"",height:"",top:"",left:"","margin-top":"","margin-left":""});a.objects.contentInner.removeAttr("style").css("opacity",c);a.objects.contentInner.children().removeAttr("style")},cleanup:function(){a._cleanupDimensions();a.objects.loading.hide();a.objects.overlay.hide();a.objects["case"].hide();a.objects.prev.hide();a.objects.next.hide();a.objects.play.hide();a.objects.pause.hide();a.objects.document.removeAttr(a._prefixAttributeName("type"));a.objects.nav.removeAttr(a._prefixAttributeName("ispartofsequence"));a.objects.contentInner.empty().hide();a.objects.info.children().empty();if(a.cache.originalObject){a._restoreObject()}a._callHooks(a.settings.onCleanup);a.cache={}},_matchMedia:function(){return window.matchMedia||window.msMatchMedia},_devicePixelRatio:function(){return window.devicePixelRatio||1},_isPublicMethod:function(c){return(typeof a[c]==="function"&&c.charAt(0)!=="_")},_export:function(){window.lightcase={};b.each(a,function(c){if(a._isPublicMethod(c)){lightcase[c]=a[c]}})}};a._export();b.fn.lightcase=function(c){if(a._isPublicMethod(c)){return a[c].apply(this,Array.prototype.slice.call(arguments,1
3))}else{if(typeof c==="object"||!c){return a.init.apply(this,arguments)}else{b.error("Method "+c+" does not exist on jQuery.lightcase")}}}})(jQuery); 4/*! lightcaseEventInit - v0.1.2 */ 5function lightcaseEventInit(elements,options){if(!options)options={};if(!options.maxWidth)options.maxWidth=1680;if(!options.maxHeight)options.maxHeight=945;if(!options.shrinkFactor)options.shrinkFactor=1;elements.lightcase(options).off("click.lightcase").on("click.lightcase",function(e){if($("#lightcase-content:visible").length){$(this).lightcase("start",options)}return!1}).off("mousedown.lightcase").on("mousedown.lightcase",function(e){if(e.which!==1)return;var delta=4;var x=e.clientX;var y=e.clientY;$(this).on("mouseup.lightcase",function(e){var newx=e.clientX;var newy=e.clientY;if(newx<x+delta&&newx>x-delta&&newy<y+delta&&newy>y-delta){$(this).lightcase("start",options)}$(this).off("mouseup.lightcase")})})} 6/*! SiOrganiseImagesV4 - v0.1.6 */ 7(function(){!function(e){var t=e.Element.prototype;"function"!=typeof t.matches&&(t.matches=t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),o=0;t[o]&&t[o]!==this;)++o;return Boolean(t[o])}),"function"!=typeof t.closest&&(t.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null})}(window);document.addEventListener("DOMContentLoaded",function(){init()});init();window.addEventListener("load",function(){if(!window.$)return;$(document).ajaxComplete(function(){init()})});window.siOrganiseImages={run:init,lightCaseAttributes:function(image){lightCaseAttributes(image)},lightCaseHrefAttributes:function(link){lightCaseHrefAttributes(link)}} 8function init(){var dynamicImages=document.querySelectorAll("img");for(var i=0;i<dynamicImages.length;i++){var image=dynamicImages[i];lightCaseAttributes(image)} 9var imageLinks=document.querySelectorAll("a[href*='.jpg']");for(var i=0;i<imageLinks.length;i++){var link=imageLinks[i];lightCaseHrefAttributes(link)}} 10function lightCaseAttributes(image){if(!image||image.getAttribute("data-sigallery")==="none")return;var parent=image.parentElement;var dataSrc=image.getAttribute("data-src");var collection=image.closest("[data-sigallery]");var collectionName="";if(collection&&collection.getAttribute("data-sigallery")){collectionName=":"+collection.getAttribute("data-sigallery")} 11if(parent&&parent.tagName==="A"&&parent.href&&parent.href.indexOf(".jpg")>0){var anchorCollectionName=parent.getAttribute("data-sigallery");collectionName=anchorCollectionName&&anchorCollectionName.length?":"+anchorCollectionName:collectionName;parent.setAttribute("data-rel","lightcase"+collectionName)}else if(image.src&&image.src.indexOf(".jpg")>0&&collection){image.setAttribute("data-rel","lightcase"+collectionName);image.setAttribute("data-lc-href",image.src)}else if(dataSrc&&dataSrc.indexOf(".jpg")>0&&collection){image.setAttribute("data-rel","lightcase"+collectionName);image.setAttribute("data-lc-href",dataSrc)}} 12function lightCaseHrefAttributes(link){if(!link||link.getAttribute("data-sigallery")==="none")return;if(link.getAttribute("data-rel"))return;var dataSrc=link.href;var collection=link.closest("[data-sigallery]");var collectionName="";if(collection&&collection.getAttribute("data-sigallery")){collectionName=":"+collection.getAttribute("data-sigallery")} 13if(dataSrc&&dataSrc.indexOf(".jpg")>0){link.setAttribute("data-rel","lightcase"+collectionName)}}})()
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.