var cssua=function(e,o,i){"use strict";var s=" ua-",r=/\s*([\-\w ]+)[\s\/\:]([\d_]+\b(?:[\-\._\/]\w+)*)/,n=/([\w\-\.]+[\s\/][v]?[\d_]+\b(?:[\-\._\/]\w+)*)/g,a=/\b(?:(blackberry\w*|bb10)|(rim tablet os))(?:\/(\d+\.\d+(?:\.\w+)*))?/,b=/\bsilk-accelerated=true\b/,t=/\bfluidapp\b/,l=/(\bwindows\b|\bmacintosh\b|\blinux\b|\bunix\b)/,p=/(\bandroid\b|\bipad\b|\bipod\b|\bwindows phone\b|\bwpdesktop\b|\bxblwp7\b|\bzunewp7\b|\bwindows ce\b|\bblackberry\w*|\bbb10\b|\brim tablet os\b|\bmeego|\bwebos\b|\bpalm|\bsymbian|\bj2me\b|\bdocomo\b|\bpda\b|\bchtml\b|\bmidp\b|\bcldc\b|\w*?mobile\w*?|\w*?phone\w*?)/,c=/(\bxbox\b|\bplaystation\b|\bnintendo\s+\w+)/,d={parse:function(e,o){var i={};if(o&&(i.standalone=o),!(e=(""+e).toLowerCase()))return i;for(var s,d,m=e.split(/[()]/),w=0,_=m.length;w<_;w++)if(w%2){var u=m[w].split(";");for(s=0,d=u.length;s0;)i+=s+e+"-"+o.substring(0,r),r=o.indexOf("-",r+1);i+=s+e+"-"+o}return i}var i="";for(var r in e)r&&e.hasOwnProperty(r)&&(i+=o(r,e[r]));return i},encode:function(e){var o="";for(var i in e)i&&e.hasOwnProperty(i)&&(o&&(o+="&"),o+=encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return o}};d.userAgent=d.ua=d.parse(o,i);var m=d.format(d.ua)+" js";return e.className?e.className=e.className.replace(/\bno-js\b/g,"")+m:e.className=m.substr(1),d}(document.documentElement,navigator.userAgent,navigator.standalone); !function(e,t,n,o){var r=[],a={_version:"3.12.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){r.push({name:e,fn:t,options:n})},addAsyncTest:function(e){r.push({name:null,fn:e})}},i=function(){};i.prototype=a,i=new i;var s=[];function c(e,t){return typeof e===t}var l,d,u=n.documentElement,p="svg"===u.nodeName.toLowerCase();function f(e){var t=u.className,n=i._config.classPrefix||"";if(p&&(t=t.baseVal),i._config.enableJSClass){var o=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(o,"$1"+n+"js$2")}i._config.enableClasses&&(e.length>0&&(t+=" "+n+e.join(" "+n)),p?u.className.baseVal=t:u.className=t)}function m(e,t){if("object"==typeof e)for(var n in e)l(e,n)&&m(n,e[n]);else{var o=(e=e.toLowerCase()).split("."),r=i[o[0]];if(2===o.length&&(r=r[o[1]]),void 0!==r)return i;t="function"==typeof t?t():t,1===o.length?i[o[0]]=t:(!i[o[0]]||i[o[0]]instanceof Boolean||(i[o[0]]=new Boolean(i[o[0]])),i[o[0]][o[1]]=t),f([(t&&!1!==t?"":"no-")+o.join("-")]),i._trigger(e,t)}return i}l=c(d={}.hasOwnProperty,"undefined")||c(d.call,"undefined")?function(e,t){return t in e&&c(e.constructor.prototype[t],"undefined")}:function(e,t){return d.call(e,t)},a._l={},a.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),i.hasOwnProperty(e)&&setTimeout(function(){i._trigger(e,i[e])},0)},a._trigger=function(e,t){if(this._l[e]){var n=this._l[e];setTimeout(function(){var e;for(e=0;e",o.insertBefore(n.lastChild,o.firstChild)}function u(){var e=h.elements;return"string"==typeof e?e.split(" "):e}function p(e){var t=l[e[s]];return t||(t={},c++,e[s]=c,l[c]=t),t}function f(e,n,r){return n||(n=t),o?n.createElement(e):(r||(r=p(n)),!(s=r.cache[e]?r.cache[e].cloneNode():i.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e)).canHaveChildren||a.test(e)||s.tagUrn?s:r.frag.appendChild(s));var s}function m(e){e||(e=t);var r=p(e);return!h.shivCSS||n||r.hasCSS||(r.hasCSS=!!d(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),o||function(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return h.shivMethods?f(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+u().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(h,t.frag)}(e,r),e}!function(){try{var e=t.createElement("a");e.innerHTML="",n="hidden"in e,o=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return void 0===e.cloneNode||void 0===e.createDocumentFragment||void 0===e.createElement}()}catch(e){n=!0,o=!0}}();var h={elements:r.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:!1!==r.shivCSS,supportsUnknownElements:o,shivMethods:!1!==r.shivMethods,type:"default",shivDocument:m,createElement:f,createDocumentFragment:function(e,n){if(e||(e=t),o)return e.createDocumentFragment();for(var r=(n=n||p(e)).frag.cloneNode(),a=0,i=u(),s=i.length;a+~])("+u().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),a="$1"+y+"\\:$2";o--;)(t=n[o]=n[o].split("}"))[t.length-1]=t[t.length-1].replace(r,a),n[o]=t.join("}");return n.join("{")}(c.reverse().join("")),n=function(e){for(var t,n=e.getElementsByTagName("*"),o=n.length,r=RegExp("^(?:"+u().join("|")+")$","i"),a=[];o--;)t=n[o],r.test(t.nodeName)&&a.push(t.applyElement(b(t)));return a}(e),t=d(e,c)}),a.attachEvent("onafterprint",function(){!function(e){for(var t=e.length;t--;)e[t].removeNode()}(n),clearTimeout(o._removeSheetTimer),o._removeSheetTimer=setTimeout(i,500)}),e.printShived=!0,e}h.type+=" print",h.shivPrint=x,x(t),"object"==typeof module&&module.exports&&(module.exports=h)}(void 0!==t?t:this,n);var b=function(){},x=function(){};function w(e,t,o,r){var a,i,s,c,l="modernizr",d=y("div"),f=function(){var e=n.body;return e||((e=y(p?"svg":"body")).fake=!0),e}();if(parseInt(o,10))for(;o--;)(s=y("div")).id=r?r[o]:l+(o+1),d.appendChild(s);return(a=y("style")).type="text/css",a.id="s"+l,(f.fake?f:d).appendChild(a),f.appendChild(d),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(n.createTextNode(e)),d.id=l,f.fake&&(f.style.background="",f.style.overflow="hidden",c=u.style.overflow,u.style.overflow="hidden",u.appendChild(f)),i=t(d,e),f.fake&&f.parentNode?(f.parentNode.removeChild(f),u.style.overflow=c,u.offsetHeight):d.parentNode.removeChild(d),!!i}function S(e,n,o){var r;if("getComputedStyle"in t){r=getComputedStyle.call(t,e,n);var a=t.console;if(null!==r)o&&(r=r.getPropertyValue(o));else if(a)a[a.error?"error":"log"].call(a,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}else r=!n&&e.currentStyle&&e.currentStyle[o];return r}t.console&&(b=function(){var e=console.error?"error":"log";t.console[e].apply(t.console,Array.prototype.slice.call(arguments))},x=function(){var e=console.warn?"warn":"log";t.console[e].apply(t.console,Array.prototype.slice.call(arguments))}),a.load=function(){"yepnope"in t?(x("yepnope.js (aka Modernizr.load) is no longer included as part of Modernizr. yepnope appears to be available on the page, so we’ll use it to handle this call to Modernizr.load, but please update your code to use yepnope directly.\n See http://github.com/Modernizr/Modernizr/issues/1182 for more information."),t.yepnope.apply(t,[].slice.call(arguments,0))):b("yepnope.js (aka Modernizr.load) is no longer included as part of Modernizr. Get it from http://yepnopejs.com. See http://github.com/Modernizr/Modernizr/issues/1182 for more information.")};var C,E=(C=t.matchMedia||t.msMatchMedia)?function(e){var t=C(e);return t&&t.matches||!1}:function(e){var t=!1;return w("@media "+e+" { #modernizr { position: absolute; } }",function(e){t="absolute"===S(e,null,"position")}),t};function P(e,t){return!!~(""+e).indexOf(t)}a.mq=E;var k={elem:y("modernizr")};i._q.push(function(){delete k.elem});var _={style:k.elem.style};function z(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function N(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function M(e,n,r,a){if(a=!c(a,"undefined")&&a,!c(r,"undefined")){var i=function(e,n){var r=e.length;if("CSS"in t&&"supports"in t.CSS){for(;r--;)if(t.CSS.supports(z(e[r]),n))return!0;return!1}if("CSSSupportsRule"in t){for(var a=[];r--;)a.push("("+z(e[r])+":"+n+")");return w("@supports ("+(a=a.join(" or "))+") { #modernizr { position: absolute; } }",function(e){return"absolute"===S(e,null,"position")})}return o}(e,r);if(!c(i,"undefined"))return i}for(var s,l,d,u,p,f=["modernizr","tspan","samp"];!_.style&&f.length;)s=!0,_.modElem=y(f.shift()),_.style=_.modElem.style;function m(){s&&(delete _.style,delete _.modElem)}for(d=e.length,l=0;l7)}),i.addTest("geolocation","geolocation"in navigator),i.addTest("history",function(){var e=navigator.userAgent;return!!e&&((-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone")||"file:"===location.protocol)&&(t.history&&"pushState"in t.history))});var D=y("input"),F="autocomplete autofocus list placeholder max min multiple pattern required step".split(" "),W={};i.input=function(e){for(var n=0,o=e.length;n=9,V||U)?i.addTest("fontface",!1):B('@font-face {font-family:"font";src:url("https://")}',function(e,t){var o=n.getElementById("smodernizr"),r=o.sheet||o.styleSheet,a=r?r.cssRules&&r.cssRules[0]?r.cssRules[0].cssText:r.cssText||"":"",s=/src/i.test(a)&&0===a.indexOf(t.split(" ")[0]);i.addTest("fontface",s)}),B('#modernizr{font:0/0 a}#modernizr:after{content:":)";visibility:hidden;font:7px/1 a}',function(e){i.addTest("generatedcontent",e.offsetHeight>=6)}),i.addTest("cssgradients",function(){for(var e,t="background-image:",n="",o=0,r=O.length-1;o-1}),i.addTest("hsla",function(){var e=y("a").style;return e.cssText="background-color:hsla(120,40%,100%,.5)",P(e.backgroundColor,"rgba")||P(e.backgroundColor,"hsla")}),i.addTest("multiplebgs",function(){var e=y("a").style;return e.cssText="background:url(https://),url(https://),red url(https://)",/(url\s*\(.*?){3}/.test(e.background)}),i.addTest("opacity",function(){var e=y("a").style;return e.cssText=O.join("opacity:.55;"),/^0.55$/.test(e.opacity)}),i.addTest("cssreflections",R("boxReflect","above",!0)),i.addTest("rgba",function(){var e=y("a").style;return e.cssText="background-color:rgba(150,255,150,.5)",(""+e.backgroundColor).indexOf("rgba")>-1}),i.addTest("textshadow",L("textShadow","1px 1px")),i.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&R("transform","scale(1)",!0)});var G="CSS"in t&&"supports"in t.CSS,J="supportsCSS"in t;i.addTest("supports",G||J),i.addTest("csstransforms3d",function(){return!!R("perspective","1px",!0)}),i.addTest("csstransitions",R("transition","all",!0)),i.addTest("localstorage",function(){var e="modernizr";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}),i.addTest("sessionstorage",function(){var e="modernizr";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){return!1}}),i.addTest("websqldatabase","openDatabase"in t);var Z={}.toString;i.addTest("svgclippaths",function(){return!!n.createElementNS&&/SVGClipPath/.test(Z.call(n.createElementNS("http://www.w3.org/2000/svg","clipPath")))}),i.addTest("inlinesvg",function(){var e=y("div");return e.innerHTML="","http://www.w3.org/2000/svg"===("undefined"!=typeof SVGRect&&e.firstChild&&e.firstChild.namespaceURI)}),i.addTest("smil",function(){return!!n.createElementNS&&/SVGAnimate/.test(Z.call(n.createElementNS("http://www.w3.org/2000/svg","animate")))}),i.addTest("webworkers","Worker"in t),function(){var e,t,n,o,a,l;for(var d in r)if(r.hasOwnProperty(d)){if(e=[],(t=r[d]).name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n .children, > .sub-menu");if(e.preventDefault(),(i.hasClass("page_item_has_children")||i.hasClass("menu-item-has-children"))&&(t.length&&!t.is(":visible")?t.stop(!0,!0).slideDown("slow"):t.stop(!0,!0).slideUp("slow")),n.parent(".page_item_has_children.current_page_item, .menu-item-has-children.current-menu-item").length)return!1}),jQuery(".fusion-vertical-menu-widget.hover li").each(function(){var e;jQuery(this).hover(function(){var n=jQuery(this).find("> .children, > .sub-menu");clearTimeout(e),e=setTimeout(function(){n.length&&n.stop(!0,!0).slideDown("slow")},500)},function(){var n=jQuery(this),i=n.find(".children, .sub-menu");clearTimeout(e),e=setTimeout(function(){0===n.find(".current_page_item").length&&!1===n.hasClass("current_page_item")&&i.stop(!0,!0).slideUp("slow")},500)})})}); var fusionJSVars={"visibility_small":"640","visibility_medium":"1024"};var fusion={fusionResizeWidth:0,fusionResizeHeight:0,currentPostID:null,toBool:function(t){return 1===t||"1"===t||!0===t||"true"===t||"on"===t},restArguments:function(t,e){return e=null==e?t.length-1:+e,function(){for(var n,i=Math.max(arguments.length-e,0),o=Array(i),r=0;rt.rootBounds.height?(i=t.rootBounds.height/t.boundingClientRect.height,e.thresholds.filter(function(e){return e>=t.intersectionRatio&&e<=i}).length||(n=!0)):t.isIntersecting&&1===t.intersectionRatio&&(n=!0):t.isIntersecting&&(n=!0),n},getCurrentPostID:function(){return null===this.currentPostID&&(this.currentPostID=void 0!==jQuery("body").data("awb-post-id")?jQuery("body").data("awb-post-id"):0),this.currentPostID}};fusion.delay=fusion.restArguments(function(t,e,n){return setTimeout(function(){return t.apply(null,n)},e)}),fusion.ready=function(t){if("function"==typeof t)return"complete"===document.readyState?t():void document.addEventListener("DOMContentLoaded",t,!1)},fusion.passiveSupported=function(){var t,e;if(void 0===fusion.supportsPassive){try{e={get passive(){t=!0}},window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){t=!1}fusion.supportsPassive=!!t&&{passive:!0}}return fusion.supportsPassive},fusion.getElements=function(t){var e=[];return t?("object"==typeof t?Object.keys(t).forEach(function(n){Element.prototype.isPrototypeOf(t[n])&&e.push(t[n])}):"string"==typeof t&&(e=document.querySelectorAll(t),e=Array.prototype.slice.call(e)),e):[]},Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}),jQuery(document).ready(function(){var t;void 0===jQuery.migrateVersion&&2
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:o},l.prototype.init=function(e,i,o){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&t(document).find(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var n=this.options.trigger.split(" "),s=n.length;s--;){var r=n[s];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(i){var o=this.$element.data();for(var n in o)o.hasOwnProperty(n)&&-1!==t.inArray(n,e)&&delete o[n];return(i=t.extend({},this.getDefaults(),this.$element.data(),i)).delay&&"number"==typeof i.delay&&(i.delay={show:i.delay,hide:i.delay}),i.sanitize&&(i.template=a(i.template,i.whiteList,i.sanitizeFn)),i},l.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,o){i[t]!=o&&(e[t]=o)}),e},l.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState)i.hoverState="in";else{if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)}},l.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},l.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)}},l.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var o=this,n=this.tip(),s=this.getUID(this.type);this.setContent(),n.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&n.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,p=a.test(r);p&&(r=r.replace(a,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this).addClass(this.$element.data("class")),this.options.container?n.appendTo(t(document).find(this.options.container)):n.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var h=this.getPosition(),f=n[0].offsetWidth,u=n[0].offsetHeight;if(p){var c=r,d=this.getPosition(this.$viewport);r="bottom"==r&&h.bottom+u>d.bottom?"top":"top"==r&&h.top-ud.width?"left":"left"==r&&h.left-fr.top+r.height&&(n.top=r.top+r.height-l)}else{var p=e.left-s,h=e.left+s+i;pr.right&&(n.left=r.left+r.width-h)}return n},l.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},l.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},l.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(e){var i=this;e&&((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},l.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null})},l.prototype.sanitizeHtml=function(t){return a(t,this.options.whiteList,this.options.sanitizeFn)};var p=t.fn.tooltip;t.fn.tooltip=function(e){return this.each(function(){var i=t(this),o=i.data("bs.tooltip"),n="object"==typeof e&&e;!o&&/destroy|hide/.test(e)||(o||i.data("bs.tooltip",o=new l(this,n)),"string"==typeof e&&"function"==typeof o[e]&&o[e]())})},t.fn.tooltip.Constructor=l,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=p,this}}(jQuery); !function(t){"use strict";var e=function(e,o){this.options=o,this.$element=t(e),this.$backdrop="",this.isShown=null,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.prototype.toggle=function(t){return this[this.isShown?"hide":"show"](t)},e.prototype.show=function(e){var o=this,s=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(s),this.isShown||s.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.backdrop(function(){var s=t.support.transition&&o.$element.hasClass("fade");o.$element.parent().length||o.$element.appendTo(document.body),o.$element.show().scrollTop(0),s&&o.$element[0].offsetWidth,o.$element.addClass("in").attr("aria-hidden",!1),o.enforceFocus();var i=t.Event("shown.bs.modal",{relatedTarget:e});s?o.$element.find(".modal-dialog").one(t.support.transition.end,function(){o.$element.focus().trigger(i)}).emulateTransitionEnd(300):o.$element.focus().trigger(i)}))},e.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one(t.support.transition.end,t.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},e.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.focus()},this))},e.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},e.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.removeBackdrop(),t.$element.trigger("hidden.bs.modal")})},e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},e.prototype.backdrop=function(e){var o=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var s=t.support.transition&&o;if(this.$backdrop=t('').css(f).html(u)),t.show().data({naturalWidth:d||h.outerWidth(),naturalHeight:p||h.outerHeight()}).hide(),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,o),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r);var m=findImageInElement(t);n.loadImage(m,function(){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,o),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r),n.configureHolder(e,i,t)}),a.ajaxSetup.success(s,l,c),"function"==typeof g.success&&g.success(s,l,c)}).fail(function(s,l,c){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,o),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r),n.hideLoader(),$("div.ilightbox-container",t).empty().append(''+a.errors.loadContents+""),n.configureHolder(e,i,t),a.ajaxSetup.error(s,l,c),"function"==typeof g.error&&g.error(s,l,c)});break;case"html":var m=e.URL;if(container=$("div.ilightbox-container",t),m[0].nodeName)h=m.clone();else{var v=$(m);h=v.selector?$("
"+v+"
"):v}var b=n.items[o].options.width||parseInt(h.attr("width")),x=n.items[o].options.height||parseInt(h.attr("height"));n.addContent(t,e),h.appendTo(document.documentElement).hide(),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,o),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r);f=findImageInElement(t);"function"==typeof a.callback.onBeforeLoad&&a.callback.onBeforeLoad.call(n,n.ui,o),"function"==typeof e.options.onBeforeLoad&&e.options.onBeforeLoad.call(n,r),n.loadImage(f,function(){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,o),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r),t.show().data({naturalWidth:b||container.outerWidth(),naturalHeight:x||container.outerHeight()}).hide(),h.remove(),n.configureHolder(e,i,t)})}},configureHolder:function(e,t,o){var i=this,n=i.vars,a=i.options;if("current"!=t&&("next"==t?o.addClass("ilightbox-next"):o.addClass("ilightbox-prev")),"current"==t)var r=n.current;else if("next"==t){var s=a.styles.nextOpacity;r=n.next}else s=a.styles.prevOpacity,r=n.prev;var l={element:o,position:r};i.items[r].options.width=i.items[r].options.width||0,i.items[r].options.height=i.items[r].options.height||0,"current"==t?a.show.effect?o.css(transform,gpuAcceleration).fadeIn(e.speed,function(){if(o.css(transform,""),e.caption){i.setCaption(e,o);var t=$("div.ilightbox-caption",o),n=parseInt(t.outerHeight()/o.outerHeight()*100);a.caption.start&n<=50&&t.fadeIn(a.effects.fadeSpeed)}var s=e.options.social;s&&(i.setSocial(s,e.URL,o),a.social.start&&$("div.ilightbox-social",o).fadeIn(a.effects.fadeSpeed)),i.generateThumbnails(),"function"==typeof a.callback.onShow&&a.callback.onShow.call(i,i.ui,r),"function"==typeof e.options.onShow&&e.options.onShow.call(i,l)}):(o.show(),i.generateThumbnails(),"function"==typeof a.callback.onShow&&a.callback.onShow.call(i,i.ui,r),"function"==typeof e.options.onShow&&e.options.onShow.call(i,l)):a.show.effect?o.fadeTo(e.speed,s,function(){"next"==t?n.nextLock=!1:n.prevLock=!1,i.generateThumbnails(),"function"==typeof a.callback.onShow&&a.callback.onShow.call(i,i.ui,r),"function"==typeof e.options.onShow&&e.options.onShow.call(i,l)}):(o.css({opacity:s}).show(),"next"==t?n.nextLock=!1:n.prevLock=!1,i.generateThumbnails(),"function"==typeof a.callback.onShow&&a.callback.onShow.call(i,i.ui,r),"function"==typeof e.options.onShow&&e.options.onShow.call(i,l)),setTimeout(function(){i.repositionPhoto()},0)},generateBoxes:function(){var e=this,t=e.vars,o=e.options;o.infinite&&t.total>=3?(t.current==t.total-1&&(t.next=0),0==t.current&&(t.prev=t.total-1)):o.infinite=!1,e.loadContent(e.items[t.current],"current",o.show.speed),e.items[t.next]&&e.loadContent(e.items[t.next],"next",o.show.speed),e.items[t.prev]&&e.loadContent(e.items[t.prev],"prev",o.show.speed)},generateThumbnails:function(){var e=this,t=e.vars,o=e.options,i=null;if(t.thumbs&&!e.vars.dontGenerateThumbs){var n=t.thumbnails,a=$("div.ilightbox-thumbnails-container",n),r=$("div.ilightbox-thumbnails-grid",a),s=0;r.removeAttr("style").empty(),$.each(e.items,function(l,c){var u=t.current==l?"ilightbox-active":"",h=t.current==l?o.thumbnails.activeOpacity:o.thumbnails.normalOpacity,d=c.options.thumbnail,p=$('
'),f=$('
');p.css({opacity:0}).addClass(u),"video"!=c.type&&"flash"!=c.type||void 0!==c.options.icon?c.options.icon&&(f.addClass("ilightbox-thumbnail-"+c.options.icon),p.append(f)):(f.addClass("ilightbox-thumbnail-video"),p.append(f)),d&&e.loadImage(d,function(t){s++,t?p.data({naturalWidth:t.width,naturalHeight:t.height}).append(''):p.data({naturalWidth:o.thumbnails.maxWidth,naturalHeight:o.thumbnails.maxHeight}),clearTimeout(i),i=setTimeout(function(){e.positionThumbnails(n,a,r)},20),setTimeout(function(){p.fadeTo(o.effects.loadedFadeSpeed,h)},20*s)}),r.append(p)}),e.vars.dontGenerateThumbs=!0}},positionThumbnails:function(e,t,o){var i=this,n=i.vars,a=i.options,r=getViewport(),s=a.path.toLowerCase();e||(e=n.thumbnails),t||(t=$("div.ilightbox-thumbnails-container",e)),o||(o=$("div.ilightbox-thumbnails-grid",t));var l=$(".ilightbox-thumbnail",o),c="horizontal"==s?r.width-a.styles.pageOffsetX:l.eq(0).outerWidth()-a.styles.pageOffsetX,u="horizontal"==s?l.eq(0).outerHeight()-a.styles.pageOffsetY:r.height-a.styles.pageOffsetY,h="horizontal"==s?0:c,d="horizontal"==s?u:0,p=$(".ilightbox-active",o),f={};arguments.length<3&&(l.css({opacity:a.thumbnails.normalOpacity}),p.css({opacity:a.thumbnails.activeOpacity})),l.each(function(e){var t=$(this),o=t.data(),n="horizontal"==s?0:a.thumbnails.maxWidth;height="horizontal"==s?a.thumbnails.maxHeight:0,dims=i.getNewDimenstions(n,height,o.naturalWidth,o.naturalHeight,!0),t.css({width:dims.width,height:dims.height}),"horizontal"==s&&t.css({float:"left"}),"horizontal"==s?h+=t.outerWidth(!0):d+=t.outerHeight()}),f={width:h,height:d},o.css(f),f={};var g=o.offset(),m=p.length?p.offset():{top:parseInt(u/2),left:parseInt(c/2)};g.top=g.top-$doc.scrollTop(),g.left=g.left-$doc.scrollLeft(),m.top=m.top-g.top-$doc.scrollTop(),m.left=m.left-g.left-$doc.scrollLeft(),"horizontal"==s?(f.top=0,f.left=parseInt(c/2-m.left-p.outerWidth()/2)):(f.top=parseInt(u/2-m.top-p.outerHeight()/2),f.left=0),arguments.length<3?o.stop().animate(f,a.effects.repositionSpeed,"easeOutCirc"):o.css(f)},loadImage:function(e,t){Array.isArray(e)||(e=[e]);var o=this,i=e.length;i>0?(o.showLoader(),$.each(e,function(n,a){var r=new Image;r.onload=function(){0==(i-=1)&&(o.hideLoader(),t(r))},r.onerror=r.onabort=function(){0==(i-=1)&&(o.hideLoader(),t(!1))},r.src=e[n]})):t(!1)},patchItemsEvents:function(){var e=this,t=e.vars,o=supportTouch?"click.iL itap.iL":"click.iL",i=supportTouch?"click.iL itap.iL":"itap.iL";if(e.context&&e.selector){var n=$(e.selector,e.context);$(e.context).on(o,e.selector,function(){var o=$(this),i=n.index(o);return t.current=i,t.next=e.items[i+1]?i+1:null,t.prev=e.items[i-1]?i-1:null,e.addContents(),e.patchEvents(),!1}).on(i,e.selector,function(){return!1})}else $.each(e.itemsObject,function(n,a){a.on(o,function(){return t.current=n,t.next=e.items[n+1]?n+1:null,t.prev=e.items[n-1]?n-1:null,e.addContents(),e.patchEvents(),!1}).on(i,function(){return!1})})},dispatchItemsEvents:function(){var e=this;e.vars,e.options;e.context&&e.selector?$(e.context).off(".iL",e.selector):$.each(e.itemsObject,function(e,t){t.off(".iL")})},refresh:function(){this.dispatchItemsEvents(),this.attachItems(),this.normalizeItems(),this.patchItemsEvents()},patchEvents:function(){var e=this,t=e.vars,o=e.options,i=o.path.toLowerCase(),n=$(".ilightbox-holder"),a=fullScreenApi.fullScreenEventName+".iLightBox",r=verticalDistanceThreshold=100,s=[t.nextButton[0],t.prevButton[0],t.nextButton[0].firstChild,t.prevButton[0].firstChild];$win.on("resize.iLightBox",function(){var i=getViewport();o.mobileOptimizer&&!o.innerToolbar&&(t.isMobile=i.width<=t.mobileMaxWidth),t.BODY[t.isMobile?"addClass":"removeClass"]("isMobile"),t.nextLock||t.prevLock||e.repositionPhoto(null),supportTouch&&(clearTimeout(t.setTime),t.setTime=setTimeout(function(){var e=getScrollXY().y;window.scrollTo(0,e-30),window.scrollTo(0,e+30),window.scrollTo(0,e)},2e3)),t.thumbs&&e.positionThumbnails()}).on("keydown.iLightBox",function(i){if(o.controls.keyboard)switch(i.keyCode){case 13:i.shiftKey&&o.keyboard.shift_enter&&e.fullScreenAction();break;case 27:o.keyboard.esc&&e.closeAction();break;case 37:o.keyboard.left&&!t.lockKey&&e.moveTo("prev");break;case 38:o.keyboard.up&&!t.lockKey&&e.moveTo("prev");break;case 39:o.keyboard.right&&!t.lockKey&&e.moveTo("next");break;case 40:o.keyboard.down&&!t.lockKey&&e.moveTo("next")}}),fullScreenApi.supportsFullScreen&&$win.on(a,function(){e.doFullscreen()});var l=[o.caption.show+".iLightBox",o.caption.hide+".iLightBox",o.social.show+".iLightBox",o.social.hide+".iLightBox"].filter(function(e,t,o){return o.lastIndexOf(e)===t}),c="";$.each(l,function(e,t){0!=e&&(c+=" "),c+=t}),$doc.on(clickEvent,".ilightbox-overlay",function(){o.overlay.blur&&e.closeAction()}).on(clickEvent,".ilightbox-next, .ilightbox-next-button",function(){e.moveTo("next")}).on(clickEvent,".ilightbox-prev, .ilightbox-prev-button",function(){e.moveTo("prev")}).on(clickEvent,".ilightbox-thumbnail",function(){var o=$(this),i=$(".ilightbox-thumbnail",t.thumbnails).index(o);i!=t.current&&e.goTo(i)}).on(c,".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(e){var i=$("div.ilightbox-caption",t.holder),n=$("div.ilightbox-social",t.holder),a=o.effects.fadeSpeed;t.nextLock||t.prevLock?(e.type!=o.caption.show||i.is(":visible")?e.type==o.caption.hide&&i.is(":visible")&&i.fadeOut(a):i.fadeIn(a),e.type!=o.social.show||n.is(":visible")?e.type==o.social.hide&&n.is(":visible")&&n.fadeOut(a):n.fadeIn(a)):(e.type!=o.caption.show||i.is(":visible")?e.type==o.caption.hide&&i.is(":visible")&&i.stop().fadeOut(a):i.stop().fadeIn(a),e.type!=o.social.show||n.is(":visible")?e.type==o.social.hide&&n.is(":visible")&&n.stop().fadeOut(a):n.stop().fadeIn(a))}).on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-wrapper",function(e){"mouseenter"==e.type?t.lockWheel=!0:t.lockWheel=!1}).on(clickEvent,".ilightbox-toolbar a.ilightbox-close, .ilightbox-toolbar a.ilightbox-fullscreen, .ilightbox-toolbar a.ilightbox-play, .ilightbox-toolbar a.ilightbox-pause",function(){var t=$(this);t.hasClass("fusion-updated")||(t.hasClass("ilightbox-fullscreen")?e.fullScreenAction():t.hasClass("ilightbox-play")?(e.resume(),t.addClass("ilightbox-pause").removeClass("ilightbox-play")):t.hasClass("ilightbox-pause")?(e.pause(),t.addClass("ilightbox-play").removeClass("ilightbox-pause")):e.closeAction(),t.addClass("fusion-updated"),setTimeout(function(){t.removeClass("fusion-updated")},100))}).on(touchMoveEvent,".ilightbox-overlay, .ilightbox-thumbnails-container",function(e){e.preventDefault()}),o.controls.arrows&&!supportTouch&&$doc.on("mousemove.iLightBox",function(e){t.isMobile||(t.mouseID||t.hideableElements.show(),t.mouseID=clearTimeout(t.mouseID),-1===s.indexOf(e.target)&&(t.mouseID=setTimeout(function(){t.hideableElements.hide(),t.mouseID=clearTimeout(t.mouseID)},3e3)))}),o.controls.slideshow&&o.slideshow.pauseOnHover&&$doc.on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(o){"mouseenter"==o.type&&t.cycleID?e.pause():"mouseleave"==o.type&&t.isPaused&&e.resume()});var u=$(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails");o.controls.mousewheel&&u.on("mousewheel.iLightBox",function(o,i){t.lockWheel||(o.preventDefault(),i<0?e.moveTo("next"):i>0&&e.moveTo("prev"))}),o.controls.swipe&&n.on(touchStartEvent,function(a){if(!(t.nextLock||t.prevLock||1==t.total||t.lockSwipe)){t.BODY.addClass("ilightbox-closedhand");var s,l=a.originalEvent.touches?a.originalEvent.touches[0]:a,c=$doc.scrollTop(),u=$doc.scrollLeft(),h=[n.eq(0).offset(),n.eq(1).offset(),n.eq(2).offset()],d=[{top:h[0].top-c,left:h[0].left-u},{top:h[1].top-c,left:h[1].left-u},{top:h[2].top-c,left:h[2].left-u}],p={time:(new Date).getTime(),coords:[l.pageX-u,l.pageY-c]};n.on(touchMoveEvent,g),$doc.one(touchStopEvent,function(a){n.off(touchMoveEvent,g),t.BODY.removeClass("ilightbox-closedhand"),p&&s&&("horizontal"==i&&s.time-p.time<1e3&&abs(p.coords[0]-s.coords[0])>r&&abs(p.coords[1]-s.coords[1])s.coords[0]?t.current!=t.total-1||o.infinite?(t.isSwipe=!0,e.moveTo("next")):m():0!=t.current||o.infinite?(t.isSwipe=!0,e.moveTo("prev")):m():"vertical"==i&&s.time-p.time<1e3&&abs(p.coords[1]-s.coords[1])>r&&abs(p.coords[0]-s.coords[0])s.coords[1]?t.current!=t.total-1||o.infinite?(t.isSwipe=!0,e.moveTo("next")):m():0!=t.current||o.infinite?(t.isSwipe=!0,e.moveTo("prev")):m():m()),p=s=undefined})}function f(e){var t=$(this),o=d[e],n=[p.coords[0]-s.coords[0],p.coords[1]-s.coords[1]];t[0].style["horizontal"==i?"left":"top"]=("horizontal"==i?o.left-n[0]:o.top-n[1])+"px"}function g(e){if(p){var t=e.originalEvent.touches?e.originalEvent.touches[0]:e;s={time:(new Date).getTime(),coords:[t.pageX-u,t.pageY-c]},n.each(f),e.preventDefault()}}function m(){n.each(function(){var e=$(this),t=e.data("offset")||{top:e.offset().top-c,left:e.offset().left-u},o=t.top,i=t.left;e.css(transform,gpuAcceleration).stop().animate({top:o,left:i},500,"easeOutCirc",function(){e.css(transform,"")})})}})},goTo:function(e){var t=this,o=t.vars,i=t.options,n=e-o.current;if(i.infinite&&(e==o.total-1&&0==o.current&&(n=-1),o.current==o.total-1&&0==e&&(n=1)),1==n)t.moveTo("next");else if(-1==n)t.moveTo("prev");else{if(o.nextLock||o.prevLock)return!1;"function"==typeof i.callback.onBeforeChange&&i.callback.onBeforeChange.call(t,t.ui),i.linkId&&(o.hashLock=!0,window.location.hash=i.linkId+"/"+e),t.items[e]&&(t.items[e].options.mousewheel?t.vars.lockWheel=!1:o.lockWheel=!0,t.items[e].options.swipe?o.lockSwipe=!1:o.lockSwipe=!0),$.each([o.holder,o.nextPhoto,o.prevPhoto],function(e,t){t.css(transform,gpuAcceleration).fadeOut(i.effects.loadedFadeSpeed)}),o.current=e,o.next=e+1,o.prev=e-1,t.createUI(),setTimeout(function(){t.generateBoxes()},i.effects.loadedFadeSpeed+50),$(".ilightbox-thumbnail",o.thumbnails).removeClass("ilightbox-active").eq(e).addClass("ilightbox-active"),t.positionThumbnails(),i.linkId&&setTimeout(function(){o.hashLock=!1},55),i.infinite||(o.nextButton.add(o.prevButton).add(o.innerPrevButton).add(o.innerNextButton).removeClass("disabled"),0==o.current&&o.prevButton.add(o.innerPrevButton).addClass("disabled"),o.current>=o.total-1&&o.nextButton.add(o.innerNextButton).addClass("disabled")),t.resetCycle(),"function"==typeof i.callback.onAfterChange&&i.callback.onAfterChange.call(t,t.ui)}},moveTo:function(e){var t=this,o=t.vars,i=t.options,n=i.path.toLowerCase(),a=getViewport(),r=i.effects.switchSpeed,s=t.vars.holder,l=s.find("iframe").length?s.find("iframe").attr("src"):"";if(l&&-1!==l.indexOf("vimeo.com")&&s.find("iframe").attr("src",l),o.nextLock||o.prevLock)return!1;var c="next"==e?o.next:o.prev;if(i.linkId&&c&&(o.hashLock=!0,window.location.hash=i.linkId+"/"+c),"next"==e){if(!t.items[c])return!1;var u=o.nextPhoto,h=o.holder,d=o.prevPhoto,p="ilightbox-prev",f="ilightbox-next"}else if("prev"==e){if(!t.items[c])return!1;u=o.prevPhoto,h=o.holder,d=o.nextPhoto,p="ilightbox-next",f="ilightbox-prev"}"function"==typeof i.callback.onBeforeChange&&i.callback.onBeforeChange.call(t,t.ui),"next"==e?o.nextLock=!0:o.prevLock=!0;var g=$("div.ilightbox-caption",h),m=$("div.ilightbox-social",h);if(g.length&&g.stop().fadeOut(r,function(){$(this).remove()}),m.length&&m.stop().fadeOut(r,function(){$(this).remove()}),t.items[c].caption){t.setCaption(t.items[c],u);var v=$("div.ilightbox-caption",u),b=parseInt(v.outerHeight()/u.outerHeight()*100);i.caption.start&&b<=50&&v.fadeIn(r)}var x=t.items[c].options.social;x&&(t.setSocial(x,t.items[c].URL,u),i.social.start&&$("div.ilightbox-social",u).fadeIn(i.effects.fadeSpeed)),$.each([u,h,d],function(e,t){t.removeClass("ilightbox-next ilightbox-prev")});var w=u.data("offset"),y=a.width-i.styles.pageOffsetX,k=a.height-i.styles.pageOffsetY,S=w.newDims.width,L=w.newDims.height,T=w.thumbsOffset,A=w.diff,I=parseInt(k/2-L/2-A.H-T.H/2),C=parseInt(y/2-S/2-A.W-T.W/2);u.css(transform,gpuAcceleration).animate({top:I,left:C,opacity:1},r,o.isSwipe?"easeOutCirc":"easeInOutCirc",function(){u.css(transform,"")}),$("div.ilightbox-container",u).animate({width:S,height:L},r,o.isSwipe?"easeOutCirc":"easeInOutCirc");var O=h.data("offset"),B=O.object;A=O.diff,S=O.newDims.width,L=O.newDims.height,S=parseInt(S*i.styles["next"==e?"prevScale":"nextScale"]),L=parseInt(L*i.styles["next"==e?"prevScale":"nextScale"]),I="horizontal"==n?parseInt(k/2-B.offsetY-L/2-A.H-T.H/2):parseInt(k-B.offsetX-A.H-T.H/2),"prev"==e?C="horizontal"==n?parseInt(y-B.offsetX-A.W-T.W/2):parseInt(y/2-S/2-A.W-B.offsetY-T.W/2):(I="horizontal"==n?I:parseInt(B.offsetX-A.H-L-T.H/2),C="horizontal"==n?parseInt(B.offsetX-A.W-S-T.W/2):parseInt(y/2-B.offsetY-S/2-A.W-T.W/2)),$("div.ilightbox-container",h).animate({width:S,height:L},r,o.isSwipe?"easeOutCirc":"easeInOutCirc"),h.addClass(p).css(transform,gpuAcceleration).animate({top:I,left:C,opacity:i.styles.prevOpacity},r,o.isSwipe?"easeOutCirc":"easeInOutCirc",function(){h.css(transform,""),$(".ilightbox-thumbnail",o.thumbnails).removeClass("ilightbox-active").eq(c).addClass("ilightbox-active"),t.positionThumbnails(),t.items[c]&&(t.items[c].options.mousewheel?o.lockWheel=!1:o.lockWheel=!0,t.items[c].options.swipe?o.lockSwipe=!1:o.lockSwipe=!0),o.isSwipe=!1,"next"==e?(o.nextPhoto=d,o.prevPhoto=h,o.holder=u,o.nextPhoto.hide(),o.next=o.next+1,o.prev=o.current,o.current=o.current+1,i.infinite&&(o.current>o.total-1&&(o.current=0),o.current==o.total-1&&(o.next=0),0==o.current&&(o.prev=o.total-1)),t.createUI(),t.items[o.next]?t.loadContent(t.items[o.next],"next"):o.nextLock=!1):(o.prevPhoto=d,o.nextPhoto=h,o.holder=u,o.prevPhoto.hide(),o.next=o.current,o.current=o.prev,o.prev=o.current-1,i.infinite&&(o.current==o.total-1&&(o.next=0),0==o.current&&(o.prev=o.total-1)),t.createUI(),t.items[o.prev]?t.loadContent(t.items[o.prev],"prev"):o.prevLock=!1),i.linkId&&setTimeout(function(){o.hashLock=!1},55),i.infinite||(o.nextButton.add(o.prevButton).add(o.innerPrevButton).add(o.innerNextButton).removeClass("disabled"),0==o.current&&o.prevButton.add(o.innerPrevButton).addClass("disabled"),o.current>=o.total-1&&o.nextButton.add(o.innerNextButton).addClass("disabled")),t.repositionPhoto(),t.resetCycle(),"function"==typeof i.callback.onAfterChange&&i.callback.onAfterChange.call(t,t.ui)}),I="horizontal"==n?getPixel(d,"top"):"next"==e?parseInt(-k/2-d.outerHeight()):parseInt(2*I),C="horizontal"==n?"next"==e?parseInt(-y/2-d.outerWidth()):parseInt(2*C):getPixel(d,"left"),d.css(transform,gpuAcceleration).animate({top:I,left:C,opacity:i.styles.nextOpacity},r,o.isSwipe?"easeOutCirc":"easeInOutCirc",function(){d.css(transform,"")}).addClass(f)},setCaption:function(e,t){var o=$('
');e.caption&&(o.html(e.caption),$("div.ilightbox-container",t).append(o))},normalizeSocial:function(e,t){this.vars;var o=this.options,i=window.location.href;return $.each(e,function(n,a){if(!a)return!0;var r,s;switch(n.toLowerCase()){case"facebook":r="http://www.facebook.com/share.php?v=4&src=bm&u={URL}",s="Share on Facebook";break;case"twitter":r="http://twitter.com/home?status={URL}",s="Share on Twitter";break;case"delicious":r="http://delicious.com/post?url={URL}",s="Share on Delicious";break;case"digg":r="http://digg.com/submit?phase=2&url={URL}",s="Share on Digg";break;case"reddit":r="http://reddit.com/submit?url={URL}",s="Share on reddit"}e[n]={URL:a.URL&&absolutizeURI(i,a.URL)||o.linkId&&window.location.href||"string"!=typeof t&&i||t&&absolutizeURI(i,t)||i,source:a.source||r||a.URL&&absolutizeURI(i,a.URL)||t&&absolutizeURI(i,t),text:a.text||s||"Share on "+n,width:void 0===a.width||isNaN(a.width)?640:parseInt(a.width),height:a.height||360}}),e},setSocial:function(e,t,o){var i=$('
'),n="
    ";e=this.normalizeSocial(e,t),$.each(e,function(e,t){e.toLowerCase();var o=t.source.replace(/\{URL\}/g,encodeURIComponent(t.URL).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")),i="mail"===e?"":'onclick="javascript:window.open(this.href'+(t.width<=0||t.height<=0?"":", '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height="+t.height+",width="+t.width+",left=40,top=40'")+');return false;"';n+='
  • '}),n+="
",i.html(n),$("div.ilightbox-container",o).append(i)},fullScreenAction:function(){this.vars;fullScreenApi.supportsFullScreen?fullScreenApi.isFullScreen()?fullScreenApi.cancelFullScreen(document.documentElement):fullScreenApi.requestFullScreen(document.documentElement):this.doFullscreen()},doFullscreen:function(){var e=this,t=e.vars,o=getViewport(),i=e.options;if(i.fullAlone){var n=t.holder,a=e.items[t.current],r=o.width,s=o.height,l=[n,t.nextPhoto,t.prevPhoto,t.nextButton,t.prevButton,t.overlay,t.toolbar,t.thumbnails,t.loader],c=[t.loader,t.thumbnails];if(t.isInFullScreen)t.isInFullScreen=t.lockKey=t.lockWheel=t.lockSwipe=!1,t.overlay.css({opacity:e.options.overlay.opacity}),$.each(c,function(e,t){t.show()}),t.fullScreenButton.attr("title",i.text.enterFullscreen),n.data({naturalWidth:n.data("naturalWidthOld"),naturalHeight:n.data("naturalHeightOld"),naturalWidthOld:null,naturalHeightOld:null}),$.each(l,function(e,t){t.removeClass("ilightbox-fullscreen")}),"function"==typeof i.callback.onExitFullScreen&&i.callback.onExitFullScreen.call(e,e.ui);else{if(t.isInFullScreen=t.lockKey=t.lockWheel=t.lockSwipe=!0,t.overlay.css({opacity:1}),$.each(c,function(e,t){t.hide()}),t.fullScreenButton.attr("title",i.text.exitFullscreen),-1!=i.fullStretchTypes.indexOf(a.type))n.data({naturalWidthOld:n.data("naturalWidth"),naturalHeightOld:n.data("naturalHeight"),naturalWidth:r,naturalHeight:s});else{o=a.options.fullViewPort||i.fullViewPort||"";var u=r,h=s,d=n.data("naturalWidth"),p=n.data("naturalHeight");if("fill"==o.toLowerCase())(h=u/d*p)u||p>h;u=(f=e.getNewDimenstions(u,h,d,p,g)).width,h=f.height}n.data({naturalWidthOld:n.data("naturalWidth"),naturalHeightOld:n.data("naturalHeight"),naturalWidth:u,naturalHeight:h})}$.each(l,function(e,t){t.addClass("ilightbox-fullscreen")}),"function"==typeof i.callback.onEnterFullScreen&&i.callback.onEnterFullScreen.call(e,e.ui)}}else t.isInFullScreen?t.isInFullScreen=!1:t.isInFullScreen=!0;e.repositionPhoto(!0)},closeAction:function(){var e=this.vars,t=this.options;$win.off(".iLightBox"),$doc.off(".iLightBox"),$doc.off(clickEvent,".ilightbox-overlay"),$doc.off(clickEvent,".ilightbox-next, .ilightbox-next-button"),$doc.off(clickEvent,".ilightbox-prev, .ilightbox-prev-button"),$doc.off(clickEvent,".ilightbox-thumbnail"),$doc.off(clickEvent,".ilightbox-toolbar a.ilightbox-close, .ilightbox-toolbar a.ilightbox-fullscreen, .ilightbox-toolbar a.ilightbox-play, .ilightbox-toolbar a.ilightbox-pause"),e.isInFullScreen&&fullScreenApi.cancelFullScreen(document.documentElement),$(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails").off(".iLightBox"),t.hide.effect?e.overlay.stop().fadeOut(t.hide.speed,function(){e.overlay.remove(),e.BODY.removeClass("ilightbox-noscroll").off(".iLightBox")}):(e.overlay.remove(),e.BODY.removeClass("ilightbox-noscroll").off(".iLightBox"));var o=[e.toolbar,e.holder,e.nextPhoto,e.prevPhoto,e.nextButton,e.prevButton,e.loader,e.thumbnails];$.each(o,function(e,t){t.removeAttr("style").remove()}),e.prevButton.removeClass("disabled"),e.nextButton.removeClass("disabled"),e.dontGenerateThumbs=e.isInFullScreen=!1,window.iLightBox=null,t.linkId&&(e.hashLock=!0,removeHash(),setTimeout(function(){e.hashLock=!1},55)),"function"==typeof t.callback.onHide&&t.callback.onHide.call(this,this.ui)},repositionPhoto:function(){var e=this,t=e.vars,o=e.options,i=o.path.toLowerCase(),n=getViewport(),a=n.width,r=n.height,s=t.isInFullScreen&&o.fullAlone||t.isMobile?0:"horizontal"==i?0:t.thumbnails.outerWidth(),l=t.isMobile?t.toolbar.outerHeight():t.isInFullScreen&&o.fullAlone?0:"horizontal"==i?t.thumbnails.outerHeight():0,c=t.isInFullScreen&&o.fullAlone?a:a-o.styles.pageOffsetX,u=t.isInFullScreen&&o.fullAlone?r:r-o.styles.pageOffsetY,h="horizontal"==i?parseInt(e.items[t.next]||e.items[t.prev]?2*(o.styles.nextOffsetX+o.styles.prevOffsetX):c/10<=30?30:c/10):parseInt(c/10<=30?30:c/10)+s,d="horizontal"==i?parseInt(u/10<=30?30:u/10)+l:parseInt(e.items[t.next]||e.items[t.prev]?2*(o.styles.nextOffsetX+o.styles.prevOffsetX):u/10<=30?30:u/10),p={type:"current",width:c,height:u,item:e.items[t.current],offsetW:h,offsetH:d,thumbsOffsetW:s,thumbsOffsetH:l,animate:arguments.length,holder:t.holder};e.repositionEl(p),e.items[t.next]&&(p=$.extend(p,{type:"next",item:e.items[t.next],offsetX:o.styles.nextOffsetX,offsetY:o.styles.nextOffsetY,holder:t.nextPhoto}),e.repositionEl(p)),e.items[t.prev]&&(p=$.extend(p,{type:"prev",item:e.items[t.prev],offsetX:o.styles.prevOffsetX,offsetY:o.styles.prevOffsetY,holder:t.prevPhoto}),e.repositionEl(p));var f="horizontal"==i?{left:parseInt(c/2-t.loader.outerWidth()/2)}:{top:parseInt(u/2-t.loader.outerHeight()/2)};t.loader.css(f)},repositionEl:function(e){var t=this.vars,o=this.options,i=o.path.toLowerCase(),n="current"==e.type&&t.isInFullScreen&&o.fullAlone?e.width:e.width-e.offsetW,a="current"==e.type&&t.isInFullScreen&&o.fullAlone?e.height:e.height-e.offsetH,r=e.item,s=e.item.options,l=e.holder,c=e.offsetX||0,u=e.offsetY||0,h=e.thumbsOffsetW,d=e.thumbsOffsetH;"current"==e.type?("number"==typeof s.width&&s.width&&(n=t.isInFullScreen&&o.fullAlone&&(-1!=o.fullStretchTypes.indexOf(r.type)||s.fullViewPort||o.fullViewPort)?n:s.width>n?n:s.width),"number"==typeof s.height&&s.height&&(a=t.isInFullScreen&&o.fullAlone&&(-1!=o.fullStretchTypes.indexOf(r.type)||s.fullViewPort||o.fullViewPort)?a:s.height>a?a:s.height)):("number"==typeof s.width&&s.width&&(n=s.width>n?n:s.width),"number"==typeof s.height&&s.height&&(a=s.height>a?a:s.height)),$(".ilightbox-inner-toolbar",l).length&&(a=parseInt(a-$(".ilightbox-inner-toolbar",l).outerHeight()));var p="string"==typeof s.width&&-1!=s.width.indexOf("%")?percentToValue(parseInt(s.width.replace("%","")),e.width):l.data("naturalWidth"),f="string"==typeof s.height&&-1!=s.height.indexOf("%")?percentToValue(parseInt(s.height.replace("%","")),e.height):l.data("naturalHeight"),g="string"==typeof s.width&&-1!=s.width.indexOf("%")||"string"==typeof s.height&&-1!=s.height.indexOf("%")?{width:p,height:f}:this.getNewDimenstions(n,a,p,f),m=$.extend({},g,{});"prev"==e.type||"next"==e.type?(p=parseInt(g.width*("next"==e.type?o.styles.nextScale:o.styles.prevScale)),f=parseInt(g.height*("next"==e.type?o.styles.nextScale:o.styles.prevScale))):(p=g.width,f=g.height);var v=parseInt((getPixel(l,"padding-left")+getPixel(l,"padding-right")+getPixel(l,"border-left-width")+getPixel(l,"border-right-width"))/2),b=parseInt((getPixel(l,"padding-top")+getPixel(l,"padding-bottom")+getPixel(l,"border-top-width")+getPixel(l,"border-bottom-width")+($(".ilightbox-inner-toolbar",l).outerHeight()||0))/2);switch(e.type){case"current":var x=parseInt(e.height/2-f/2-b-d/2),w=parseInt(e.width/2-p/2-v-h/2);break;case"next":x="horizontal"==i?parseInt(e.height/2-u-f/2-b-d/2):parseInt(e.height-c-b-d/2),w="horizontal"==i?parseInt(e.width-c-v-h/2):parseInt(e.width/2-p/2-v-u-h/2);break;case"prev":x="horizontal"==i?parseInt(e.height/2-u-f/2-b-d/2):parseInt(c-b-f-d/2),w="horizontal"==i?parseInt(c-v-p-h/2):parseInt(e.width/2-u-p/2-v-h/2)}l.data("offset",{top:x,left:w,newDims:m,diff:{W:v,H:b},thumbsOffset:{W:h,H:d},object:e}),e.animate>0&&o.effects.reposition?(l.css(transform,gpuAcceleration).stop().animate({top:x,left:w},o.effects.repositionSpeed,"easeOutCirc",function(){l.css(transform,"")}),$("div.ilightbox-container",l).stop().animate({width:p,height:f},o.effects.repositionSpeed,"easeOutCirc"),$("div.ilightbox-inner-toolbar",l).stop().animate({width:p},o.effects.repositionSpeed,"easeOutCirc",function(){$(this).css("overflow","visible")})):(l.css({top:x,left:w}),$("div.ilightbox-container",l).css({width:p,height:f}),$("div.ilightbox-inner-toolbar",l).css({width:p}))},resume:function(e){var t=this,o=t.vars,i=t.options;!i.slideshow.pauseTime||i.controls.slideshow&&o.total<=1||ea.options.maxScale?factor=a.options.maxScale:factor=0,html5H264:!(!e.canPlayType||!e.canPlayType("video/mp4").replace(/no/,"")),html5WebM:!(!e.canPlayType||!e.canPlayType("video/webm").replace(/no/,"")),html5Vorbis:!(!e.canPlayType||!e.canPlayType("video/ogg").replace(/no/,"")),html5QuickTime:!(!e.canPlayType||!e.canPlayType("video/quicktime").replace(/no/,""))}},addContent:function(e,t){var o=this;switch(t.type){case"video":var i=!1,n=t.videoType,a=t.options.html5video;("video/mp4"==(n=!n&&t.options.videoType?t.options.videoType:n)||"mp4"==t.ext||"m4v"==t.ext||a.h264)&&o.plugins.html5H264?(t.ext="mp4",t.URL=a.h264||t.URL):a.webm&&o.plugins.html5WebM?(t.ext="webm",t.URL=a.webm||t.URL):a.ogg&&o.plugins.html5Vorbis&&(t.ext="ogv",t.URL=a.ogg||t.URL),!o.plugins.html5H264||"video/mp4"!=n&&"mp4"!=t.ext&&"m4v"!=t.ext?!o.plugins.html5WebM||"video/webm"!=n&&"webm"!=t.ext?!o.plugins.html5Vorbis||"video/ogg"!=n&&"ogv"!=t.ext?!o.plugins.html5QuickTime||"video/quicktime"!=n&&"mov"!=t.ext&&"qt"!=t.ext||(i=!0,n="video/quicktime"):(i=!0,n="video/ogg"):(i=!0,n="video/webm"):(i=!0,n="video/mp4"),i?m=$("