/** * Galleria v1.5.7 2017-05-10 * http://galleria.io * * Copyright (c) 2010 - 2016 worse is better UG * Licensed under the MIT license * https://raw.github.com/worseisbetter/galleria/master/LICENSE * */ (function(e,m,f,t){var n=m.document,M=e(n),y=e(m),N=Array.prototype,W=!0,R=!1,H=navigator.userAgent.toLowerCase(),X=m.location.hash.replace(/#\//,""),O="file:"==m.location.protocol?"http:":m.location.protocol,p=Math,z=function(){},ea=function(){return!1},fa=!(1279v&&a){var b=a.style;a=(a=a.currentStyle)&&a.filter||b.filter||"";/alpha/.test(a)&&(b.filter=a.replace(/alpha\([^)]*\)/i, ""))}},forceStyles:function(a,b){a=e(a);a.attr("style")&&a.data("styles",a.attr("style")).removeAttr("style");a.css(b)},revertStyles:function(){e.each(h.array(arguments),function(a,b){b=e(b);b.removeAttr("style");b.attr("style","");b.data("styles")&&b.attr("style",b.data("styles")).data("styles",null)})},moveOut:function(a){h.forceStyles(a,{position:"absolute",left:-1E4})},moveIn:function(){h.revertStyles.apply(h,h.array(arguments))},hide:function(a,b,d){d=d||z;var c=e(a);a=c[0];c.data("opacity")|| c.data("opacity",c.css("opacity"));var g={opacity:0};b?h.animate(a,g,{duration:b,complete:9>v&&a?function(){h.removeAlpha(a);a.style.visibility="hidden";d.call(a)}:d,stop:!0}):9>v&&a?(h.removeAlpha(a),a.style.visibility="hidden"):c.css(g)},show:function(a,b,d){d=d||z;var c=e(a);a=c[0];var g={opacity:parseFloat(c.data("opacity"))||1};b?(9>v&&(c.css("opacity",0),a.style.visibility="visible"),h.animate(a,g,{duration:b,complete:9>v&&a?function(){1==g.opacity&&h.removeAlpha(a);d.call(a)}:d,stop:!0})): 9>v&&1==g.opacity&&a?(h.removeAlpha(a),a.style.visibility="visible"):c.css(g)},wait:function(a){f._waiters=f._waiters||[];a=e.extend({until:ea,success:z,error:function(){f.raise("Could not complete wait function.")},timeout:3E3},a);var b=h.timestamp(),d,c,g,k=function(){c=h.timestamp();d=c-b;h.removeFromArray(f._waiters,g);if(a.until(d))return a.success(),!1;if("number"==typeof a.timeout&&c>=b+a.timeout)return a.error(),!1;f._waiters.push(g=m.setTimeout(k,10))};f._waiters.push(g=m.setTimeout(k,10))}, toggleQuality:function(a,b){7!==v&&8!==v||!a||"IMG"!=a.nodeName.toUpperCase()||("undefined"===typeof b&&(b="nearest-neighbor"===a.style.msInterpolationMode),a.style.msInterpolationMode=b?"bicubic":"nearest-neighbor")},insertStyleTag:function(a,b){if(!b||!e("#"+b).length){var d=n.createElement("style");b&&(d.id=b);w().head.appendChild(d);if(d.styleSheet)d.styleSheet.cssText=a;else{var c=n.createTextNode(a);d.appendChild(c)}}},loadScript:function(a,b){var d=!1,c=e("