/* Galleria v 1.2.3 2011-04-14 http://galleria.aino.se Copyright (c) 2011, Aino Licensed under the MIT license. */ (function(e){var j=this,m=j.document,A=e(m),w=!1,o=navigator.userAgent.toLowerCase(),B=j.location.hash.replace(/#\//,""),p=function(){return g.TOUCH?"touchstart":"click"},n=function(){var a=3,b=m.createElement("div"),c=b.getElementsByTagName("i");do b.innerHTML="<\!--[if gt IE "+ ++a+"]>";while(c[0]);return a>4?a:void 0}(),q=function(){return{html:m.documentElement,body:m.body,head:m.getElementsByTagName("head")[0],title:m.title}},C=function(){var a=[];e.each("data ready thumbnail loadstart loadfinish image play pause progress fullscreen_enter fullscreen_exit idle_enter idle_exit rescale lightbox_open lightbox_close lightbox_image".split(" "), function(b,c){a.push(c);/_/.test(c)&&a.push(c.replace(/_/g,""))});return a}(),D=function(a){var b;if(typeof a!=="object")return a;e.each(a,function(c,d){/^[a-z]+_/.test(c)&&(b="",e.each(c.split("_"),function(a,c){b+=a>0?c.substr(0,1).toUpperCase()+c.substr(1):c}),a[b]=d,delete a[c])});return a},x=function(a){if(e.inArray(a,C)>-1)return g[a.toUpperCase()];return a},r={trunk:{},add:function(a,b,c,d){d=d||!1;this.clear(a);if(d)var e=b,b=function(){e();r.add(a,b,c)};this.trunk[a]=j.setTimeout(b,c)},clear:function(a){var b= function(a){j.clearTimeout(this.trunk[a]);delete this.trunk[a]},c;if(a&&a in this.trunk)b.call(r,a);else if(typeof a==="undefined")for(c in this.trunk)this.trunk.hasOwnProperty(c)&&b.call(r,c)}},t=[],f=function(){return{array:function(a){return Array.prototype.slice.call(a)},create:function(a,b){var c=m.createElement(b||"div");c.className=a;return c},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(f.array(arguments), function(a,b){b=e(b).removeAttr("style");b.data("styles")&&b.attr("style",b.data("styles")).data("styles",null)})},moveOut:function(a){f.forceStyles(a,{position:"absolute",left:-1E4})},moveIn:function(){f.revertStyles.apply(f,f.array(arguments))},hide:function(a,b,c){a=e(a);a.data("opacity")||a.data("opacity",a.css("opacity"));var d={opacity:0};b?a.stop().animate(d,b,c):a.css(d)},show:function(a,b,c){var a=e(a),d={opacity:parseFloat(a.data("opacity"))||1};b?a.stop().animate(d,b,c):a.css(d)},addTimer:function(){r.add.apply(r, f.array(arguments));return this},clearTimer:function(){r.clear.apply(r,f.array(arguments));return this},wait:function(a){var a=e.extend({until:function(){return!1},success:function(){},error:function(){g.raise("Could not complete wait function.")},timeout:3E3},a),b=f.timestamp(),c,d,i=function(){d=f.timestamp();c=d-b;if(a.until(c))return a.success(),!1;if(d>=b+a.timeout)return a.error(),!1;j.setTimeout(i,2)};j.setTimeout(i,2)},toggleQuality:function(a,b){if(!(n!==7&&n!==8)&&a)typeof b==="undefined"&& (b=a.style.msInterpolationMode==="nearest-neighbor"),a.style.msInterpolationMode=b?"bicubic":"nearest-neighbor"},insertStyleTag:function(a){var b=m.createElement("style");q().head.appendChild(b);b.styleSheet?b.styleSheet.cssText=a:(a=m.createTextNode(a),b.appendChild(a))},loadScript:function(a,b){var c=!1,d=e("