// source --> https://www.quest4truth.org/wp-content/plugins/the-events-calendar/src/resources/js/tribe-events.min.js var tribe_ev=window.tribe_ev||{},tribe_debug=!0;window.debug=function(){function e(e){!r||!a&&s&&s.log||r.apply(i,e)}function t(e){return d>0?d>e:l.length+d<=e}for(var r,a,i=this,n=Array.prototype.slice,s=i.console,o={},d=9,l=["error","warn","info","debug","log"],u="assert clear count dir dirxml exception group groupCollapsed groupEnd profile profileEnd table time timeEnd trace".split(" "),c=u.length,b=[];--c>=0;)!function(e){o[e]=function(){0!==d&&s&&s[e]&&s[e].apply(s,arguments)}}(u[c]);for(c=l.length;--c>=0;)!function(r,a){o[a]=function(){var o=n.call(arguments),d=[a].concat(o);b.push(d),e(d),s&&t(r)&&(s.firebug?s[a].apply(i,o):s[a]?s[a](o):s.log(o))}}(c,l[c]);return o.setLevel=function(e){d="number"==typeof e?e:9},o.setCallback=function(){var t=n.call(arguments),i=b.length,s=i;for(r=t.shift()||null,a="boolean"==typeof t[0]&&t.shift(),s-="number"==typeof t[0]?t.shift():i;s99?Math.round(m/10):m),t:y<12?"a":"p",tt:y<12?"am":"pm",T:y<12?"A":"P",TT:y<12?"AM":"PM",Z:s?"UTC":(String(i).match(t)||[""]).pop().replace(r,""),o:(p>0?"-":"+")+a(100*Math.floor(Math.abs(p)/60)+Math.abs(p)%60,4),S:["th","st","nd","rd"][l%10>3?0:(l%100-l%10!=10)*l%10]};return n.replace(e,function(e){return e in f?f[e]:e.slice(1,e.length-1)})}}}();tribeDateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",tribeQuery:"yyyy-mm-dd",tribeMonthQuery:"yyyy-mm",0:"yyyy-mm-dd",1:"m/d/yyyy",2:"mm/dd/yyyy",3:"d/m/yyyy",4:"dd/mm/yyyy",5:"m-d-yyyy",6:"mm-dd-yyyy",7:"d-m-yyyy",8:"dd-mm-yyyy",9:"yyyy.mm.dd",10:"mm.dd.yyyy",11:"dd.mm.yyyy",m0:"yyyy-mm",m1:"m/yyyy",m2:"mm/yyyy",m3:"m/yyyy",m4:"mm/yyyy",m5:"m-yyyy",m6:"mm-yyyy",m7:"m-yyyy",m8:"mm-yyyy"},tribeDateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};var tribeUtils={getQueryVars:function(e){var t={},e=e||location;return e.search.substr(1).split("&").forEach(function(e){t[e.split("=")[0]]=e.split("=")[1]}),t}};Date.prototype.format=function(e,t){return tribeDateFormat(this,e,t)},function(){function e(e,t){var r=arguments.callee;return r.cache[e]||(r.cache[e]=function(){var t=e,a=/^[\w\-]+$/.test(e)?r.get(e):(t="template(string)",e),i=1,n=("try { "+(r.variable?"var "+r.variable+" = this.stash;":"with (this.stash) { ")+"this.ret += '"+a.replace(/\[\[/g,"").replace(/\]\]/g,"").replace(/'(?![^\x11\x13]+?\x13)/g,"\\x27").replace(/^\s*|\s*$/g,"").replace(/\n/g,function(){return"';\nthis.line = "+ ++i+"; this.ret += '\\n"}).replace(/\x11=raw(.+?)\x13/g,"' + ($1) + '").replace(/\x11=(.+?)\x13/g,"' + this.escapeHTML($1) + '").replace(/\x11(.+?)\x13/g,"'; $1; this.ret += '")+"'; "+(r.variable?"":"}")+"return this.ret;} catch (e) { throw 'TemplateError: ' + e + ' (on "+t+"' + ' line ' + this.line + ')'; } //@ sourceURL="+t+"\n").replace(/this\.ret \+= '';/g,""),s=new Function(n),o={"&":"&","<":"<",">":">",'"':""","'":"'"},d=function(e){return(""+e).replace(/[&<>\'\"]/g,function(e){return o[e]})};return function(e){return s.call(r.context={escapeHTML:d,line:1,ret:"",stash:e})}}()),t?r.cache[e](t):r.cache[e]}function t(t,r){var a=function(r){return r.include=function(t,r){var a={};for(var i in e.context.stash)e.context.stash.hasOwnProperty(i)&&(a[i]=e.context.stash[i]);if(r)for(var i in r)r.hasOwnProperty(i)&&(a[i]=r[i]);var n=e.context;n.ret+=e(t,a),e.context=n},r.wrapper=function(t,r){var a=e.context.ret;e.context.ret="",r.apply(e.context);var i=e.context.ret,n=e.context.stash.content;e.context.stash.content=i,e.context.ret=a+e(t,e.context.stash),e.context.stash.content=n},e(t,r)};return r?a(r):a}e.cache={},e.get=function(e){return document.getElementById(e).innerHTML},e.get=function(e){var r=t.get;return r?r(e):document.getElementById(e).innerHTML},this.tribe_tmpl=e,this.tribe_tmpl_extended=t}(),function(e,t){if(e.fn.tribe_clear_form=function(){return this.each(function(){var t=this.type,r=this.tagName.toLowerCase();return"form"==r?e(":input",this).tribe_clear_form():void("text"==t||"password"==t||"textarea"==r?this.value="":"checkbox"==t||"radio"==t?this.checked=!1:"select"==r&&(this.selectedIndex=0))})},e.fn.tribe_has_attr=function(e){return this.attr(e)!==t},e.fn.tribe_spin=function(){var t=e(".tribe-events-ajax-loading:first").clone().addClass("tribe-events-active-spinner");t.prependTo(document.getElementById("tribe-events-content")),e(this).addClass("tribe-events-loading").css("opacity",.25)},"undefined"!=typeof e.fn.datepicker&&"undefined"!=typeof e.fn.datepicker.noConflict){var r=e.fn.datepicker.noConflict();e.fn.bootstrapDatepicker=r}"undefined"!=typeof tribe_bootstrap_datepicker_strings&&null!=tribe_bootstrap_datepicker_strings.dates&&(e.fn.bootstrapDatepicker.dates.en=tribe_bootstrap_datepicker_strings.dates)}(jQuery),function(e,t,r,a,i,n){tribe_ev.fn={current_date:function(){var e=new Date,t=e.getDate(),r=e.getMonth()+1,a=e.getFullYear();return t<10&&(t="0"+t),r<10&&(r="0"+r),a+"-"+r+"-"+t},disable_inputs:function(e,t){r(e).find(t).prop("disabled",!0),r(e).find(".select2-container").length&&r(e).find(".select2-container").each(function(){var e=r(this).attr("id"),t=r("#"+e);t.select2("disable")})},disable_empty:function(e,t){r(e).find(t).each(function(){""===r(this).val()&&r(this).prop("disabled",!0)})},enable_inputs:function(e,t){r(e).find(t).prop("disabled",!1),r(e).find(".select2-container").length&&r(e).find(".select2-container").each(function(){var e=r(this).attr("id"),t=r("#"+e);t.select2("enable")})},execute_resize:function(){var e=tribe_ev.data.v_width;tribe_ev.fn.update_viewport_variables(),e!==tribe_ev.data.v_width&&(tribe_ev.fn.mobile_class(),r(tribe_ev.events).trigger("tribe_ev_resizeComplete"),r(tribe_ev.events).trigger("resize-complete.tribe"))},get_base_url:function(){var a="",i=r(t.getElementById("tribe-events-header")),n=r('link[rel="canonical"]');return a=n.length?n.attr("href"):i.length?i.data("baseurl"):e.location.origin+e.location.path},update_base_url:function(e){var a=r(t.getElementById("tribe-events-header")),i=r('link[rel="canonical"]');i.length?i.attr("href",e):a.length&&a.data("baseurl",e).attr("data-baseurl",e)},get_category:function(){return tribe_ev.fn.is_category()?r(t.getElementById("tribe-events")).data("category"):""},get_day:function(){var e="";return r(t.getElementById("tribe-bar-date")).length&&(e=r(t.getElementById("tribe-bar-date-day")).val()),a&&debug.info('TEC Debug: tribe_ev.fn.get_day returned this date: "'+e+'".'),e},get_params:function(){return location.search.substr(1)},get_url_param:function(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null},in_params:function(e,t){return e.toLowerCase().indexOf(t)},invalid_date:function(e){return e=new Date(e),isNaN(e)},invalid_date_in_params:function(e){if(e.hasOwnProperty("tribe-bar-date")){var t=new Date(e["tribe-bar-date"]);return isNaN(t)}return!1},is_category:function(){var e=r(t.getElementById("tribe-events"));return!(!e.length||!e.tribe_has_attr("data-category")||""===e.data("category"))},is_featured:function(){return"1"==r(t.getElementById("tribe-events")).data("featured")},mobile_class:function(){var e=r("body");tribe_ev.data.v_width<=tribe_ev.data.mobile_break?e.addClass("tribe-mobile"):e.removeClass("tribe-mobile")},maybe_default_view_change:function(){if(tribe_ev.data.redirected_view||!tribe_ev.data.default_view||!tribe_ev.data.default_mobile_view||tribe_ev.data.default_view==tribe_ev.data.default_mobile_view||!tribe_ev.state.view||tribe_ev.data.default_mobile_view==tribe_ev.state.view)return!1;var e=r("body");if(!e.hasClass("tribe-mobile"))return!1;var t=r(".tribe-bar-views-option"),a=".tribe-bar-views-option-"+tribe_ev.data.default_mobile_view,i=t.filter(a);r(a).data("redirected",!0),i.trigger("click")},parse_string:function(e){var t={};return e.replace(/([^&=]+)=?([^&]*)(?:&+|$)/g,function(e,r,a){(t[r]=t[r]||[]).push(a)}),a&&debug.info("TEC Debug: tribe_ev.fn.parse_string returned this map:",t),t},pre_ajax:function(e){e&&"function"==typeof e&&e()},scroll_to:function(e,t,a){r("html, body").stop().animate({scrollTop:r(e).offset().top-t},{duration:a})},serialize:function(e,t){tribe_ev.fn.enable_inputs(e,t),tribe_ev.fn.disable_empty(e,t);var i=r(e).serialize();return tribe_ev.fn.disable_inputs(e,t),a&&i&&debug.info('TEC Debug: tribe_ev.fn.serialize returned these params: "'+i),i},set_form:function(e){var i=r("body"),n=r(t.getElementById("tribe-bar-form"));i.addClass("tribe-reset-on"),n.length&&n.tribe_clear_form(),e=tribe_ev.fn.parse_string(e),r.each(e,function(e,t){if("action"!==e){var a=decodeURIComponent(e),i="";if(1===t.length)Array.isArray(t)&&(t=t[0]),t=decodeURIComponent(t.replace(/\+/g,"%20")),r('[name="'+a+'"]').is('input[type="text"], input[type="hidden"]')?r('[name="'+a+'"]').val(t):r('[name="'+a+'"][value="'+t+'"]').is(":checkbox, :radio")?r('[name="'+a+'"][value="'+t+'"]').prop("checked",!0):r('[name="'+a+'"]').is("select")&&r('select[name="'+a+'"] option[value="'+t+'"]').attr("selected",!0);else for(var n=0;nt&&(t=e)}),setTimeout(function(){e.css("height",t)},100)}},tribe_ev.tests={live_ajax:function(){var e=r(t.getElementById("tribe-events"));return!(!e.length||!e.tribe_has_attr("data-live_ajax")||"1"!=e.data("live_ajax"))},map_view:function(){return"undefined"!=typeof GeoLoc&&GeoLoc.map_view},no_bar:function(){return r("body").is(".tribe-bar-is-disabled")},pushstate:!(!e.history||!history.pushState),reset_on:function(){return r("body").is(".tribe-reset-on")},starting_delim:function(){return tribe_ev.state.cur_url.indexOf("?")!=-1?"&":"?"},webkit:"WebkitAppearance"in t.documentElement.style},tribe_ev.data={ajax_response:{},base_url:"",cur_url:tribe_ev.fn.url_path(t.URL),cur_date:tribe_ev.fn.current_date(),datepicker_formats:{main:["yyyy-mm-dd","m/d/yyyy","mm/dd/yyyy","d/m/yyyy","dd/mm/yyyy","m-d-yyyy","mm-dd-yyyy","d-m-yyyy","dd-mm-yyyy","yyyy.mm.dd","mm.dd.yyyy","dd.mm.yyyy"],month:["yyyy-mm","m/yyyy","mm/yyyy","m/yyyy","mm/yyyy","m-yyyy","mm-yyyy","m-yyyy","mm-yyyy","yyyy.mm","mm.yyyy","mm.yyyy"]},datepicker_opts:{},default_permalinks:!i.permalink_settings.length,initial_url:tribe_ev.fn.url_path(t.URL),mobile_break:768,default_mobile_view:null,redirected_view:null,default_view:null,params:tribe_ev.fn.get_params(),v_height:0,v_width:0},tribe_ev.events={},tribe_ev.state={ajax_running:!1,ajax_timer:0,ajax_trigger:"",category:"",date:"",datepicker_format:"0",do_string:!1,featured:!1,filters:!1,filter_cats:!1,initial_load:!0,mdate:"",paged:1,page_title:"",params:{},popping:!1,pushstate:!0,pushcount:0,recurrence:!1,updating_picker:!1,url_params:{},view:"",view_target:""}}(window,document,jQuery,tribe_debug,tribe_js_config),function(e,t,r,a,i,n,s,o,d){r(t).ready(function(){function l(){r(".tribe-events-list").length&&r(".tribe-events-list-separator-month").prev(".vevent").addClass("tribe-event-end-month")}function u(){var e=!0;if("undefined"!=typeof tribe_js_config.force_filtered_ical_link&&(e=!tribe_js_config.force_filtered_ical_link),e){var a=t.URL,i="?";a.indexOf("?")>0&&(i="&");var n=a+i+"ical=1&tribe_display="+s.view;r("a.tribe-events-ical").attr("href",n)}}d&&debug.info("TEC Debug: Tribe Events JS init, Init Timer started from tribe-events.js."),n.update_viewport_variables();var c,b=r("body"),y=r(t.getElementById("tribe-events")),v=(r(t.getElementById("tribe-events-content")),r(t.getElementById("tribe-events-header")));y.removeClass("tribe-no-js"),s.category=n.get_category(),a.base_url=n.get_base_url(),s.page_title=t.title;var _=n.get_url_param("tribe_event_display");if(_?s.view=_:v.length&&v.tribe_has_attr("data-view")&&(s.view=v.data("view")),y.tribe_has_attr("data-datepicker_format")&&y.attr("data-datepicker_format").length>=1&&(s.datepicker_format=y.attr("data-datepicker_format")),s.view&&d&&debug.time("Tribe JS Init Timer"),r(i).on("tribe_ev_collectParams",function(){if("undefined"!=typeof tribe_ev.state&&"undefined"!=typeof tribe_ev.state.params&&(-1!==tribe_ev.fn.in_params(tribe_ev.state.params,"eventdate")||-1!==tribe_ev.fn.in_params(tribe_ev.state.params,"tribe_event_display"))&&r(t.getElementById("tribe-events")).is(".tribe-events-shortcode")){var i=r(t.getElementById("tribe-events-header")),n=r('link[rel="canonical"]'),o=null;if(o=n.length?n.attr("href"):i.length?i.data("baseurl"):e.location.origin+e.location.path,tribe_ev.state.params+="&baseurl="+o,i.length){var d=/tribe_events_cat=([^&]*)/gi.exec(i.data("baseurl"));if(d=d&&"undefined"!=typeof d[1]?d[1]:null){var l=new RegExp("tribe_event_category="+d);tribe_ev.state.params.match(l)||(tribe_ev.state.params+="&tribe_event_category="+d),"string"!=typeof tribe_ev.state.url_params||tribe_ev.state.url_params.match(l)||(tribe_ev.state.url_params+="&tribe_event_category="+d)}}"month"!==s.view||r("#tribe-events-bar").length||(a.default_permalinks?tribe_ev.state.url_params+="tribe-bar-date="+tribeDateFormat(s.mdate,"tribeMonthQuery"):s.url_params="tribe-bar-date="+tribeDateFormat(s.mdate,"tribeMonthQuery"))}}),y.length){var m=y.tribe_has_attr("data-mobilebreak");m=!1===m?y.find("[data-mobilebreak]").eq(0):y,m.length&&(a.mobile_break=parseInt(m.data("mobilebreak"),10));var p=y.tribe_has_attr("data-default-mobile-view");p=!1===p?y.find("[data-default-mobile-view]").eq(0):y,p.length&&(a.default_mobile_view=p.data("defaultMobileView"),a.default_view=p.data("defaultView"),a.redirected_view=p.data("redirectedView"))}y.length&&a.mobile_break>0&&b.addClass("tribe-is-responsive"),r(".tribe-events-calendar-widget").not(":eq(0)").hide(),n.tooltips(),n.mobile_class(),l(),r(".tribe-events-list .tribe-events-notices").length&&r("#tribe-events-header .tribe-events-sub-nav").empty(),r(".tribe-events-list").length&&r(".tribe-events-list-separator-month").prev(".vevent").addClass("tribe-event-end-month"),r(i).on("tribe_ev_ajaxSuccess",function(){r(".tribe-events-active-spinner").remove(),l()}),r(i).on("tribe_ev_ajaxSuccess",function(){u()}),u(),r(e).resize(function(){clearTimeout(c),c=setTimeout(n.execute_resize,200)}),d&&(debug.groupCollapsed("TEC Debug: Browser and events settings information:"),debug.log('User agent reported as: "'+navigator.userAgent),debug.log('Live ajax returned its state as: "'+o.live_ajax()),s.view&&debug.log('Tribe js detected the view to be: "'+s.view),debug.log('Supports pushstate: "'+o.pushstate),debug.groupEnd(),debug.info("TEC Debug: tribe-events.js successfully loaded"))})}(window,document,jQuery,tribe_ev.data,tribe_ev.events,tribe_ev.fn,tribe_ev.state,tribe_ev.tests,tribe_debug); // source --> https://www.quest4truth.org/wp-content/plugins/js_composer/assets/js/vendors/woocommerce-add-to-cart.js window.jQuery( document ).ready( function ( $ ) { $( 'body' ).on( 'adding_to_cart', function ( event, $button, data ) { $button && $button.hasClass( 'vc_gitem-link' ) && $button .addClass( 'vc-gitem-add-to-cart-loading-btn' ) .parents( '.vc_grid-item-mini' ) .addClass( 'vc-woocommerce-add-to-cart-loading' ) .append( $( '
' ) ); } ).on( 'added_to_cart', function ( event, fragments, cart_hash, $button ) { if ( 'undefined' === typeof($button) ) { $button = $( '.vc-gitem-add-to-cart-loading-btn' ); } $button && $button.hasClass( 'vc_gitem-link' ) && $button .removeClass( 'vc-gitem-add-to-cart-loading-btn' ) .parents( '.vc_grid-item-mini' ) .removeClass( 'vc-woocommerce-add-to-cart-loading' ) .find( '.vc_wc-load-add-to-loader-wrapper' ).remove(); } ); } ); // source --> https://www.quest4truth.org/wp-content/themes/ronneby/assets/js/jquery.queryloader2.min.js !function(e){function t(e){this.parent=e,this.container,this.loadbar,this.percentageContainer}function n(e){this.toPreload=[],this.parent=e,this.container}function i(e){this.element,this.parent=e}function r(i,r){this.element=i,this.$element=e(i),this.options=r,this.foundUrls=[],this.destroyed=!1,this.imageCounter=0,this.imageDone=0,this.alreadyLoaded=!1,this.preloadContainer=new n(this),this.overlayLoader=new t(this),this.defaultOptions={onComplete:function(){},onLoadComplete:function(){},backgroundColor:"#000",barColor:"#fff",overlayId:"qLoverlay",barHeight:1,percentage:!1,deepSearch:!0,completeAnimation:"fade",minimumTime:500},this.init()}!function(e){"use strict";function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,i=function(){};n.addEventListener?i=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(i=function(e,n,i){e[n+i]=i.handleEvent?function(){var n=t(e);i.handleEvent.call(i,n)}:function(){var n=t(e);i.call(e,n)},e.attachEvent("on"+n,e[n+i])});var r=function(){};n.removeEventListener?r=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(r=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(i){e[t+n]=void 0}});var o={bind:i,unbind:r};"function"==typeof define&&define.amd?define(o):"object"==typeof exports?module.exports=o:e.eventie=o}(this),function(){"use strict";function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var i=e.prototype,r=this,o=r.EventEmitter;i.getListeners=function(e){var t,n,i=this._getEvents();if(e instanceof RegExp){t={};for(n in i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n])}else t=i[e]||(i[e]=[]);return t},i.flattenListeners=function(e){var t,n=[];for(t=0;tn;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=i({},this.options),"function"==typeof t?n=t:i(this.options,t),n&&this.on("always",n),this.getImages(),d&&(this.jqDeferred=new d.Deferred);var r=this;setTimeout(function(){r.check()})}function a(e){this.img=e}function h(e){this.src=e,f[e]=this}var d=e.jQuery,p=e.console,c="undefined"!=typeof p,u=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];"IMG"===n.nodeName&&this.addImage(n);for(var i=n.querySelectorAll("img"),r=0,o=i.length;o>r;r++){var s=i[r];this.addImage(s)}}},s.prototype.addImage=function(e){var t=new a(e);this.images.push(t)},s.prototype.check=function(){function e(e){return t.options.debug&&c,t.progress(e),n++,n===i&&t.complete(),!0}var t=this,n=0,i=this.images.length;if(this.hasAnyBroken=!1,!i)return void this.complete();for(var r=0;i>r;r++){var o=this.images[r];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var n=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[n](t)}})},d&&(d.fn.imagesLoaded=function(e,t){var n=new s(this,e,t);return n.jqDeferred.promise(d(this))}),a.prototype=new t,a.prototype.check=function(){var e=f[this.img.src]||new h(this.img.src);if(e.isConfirmed)return void this.confirm(e.isLoaded,"cached was confirmed");if(this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var t=this;e.on("confirm",function(e,n){return t.confirm(e.isLoaded,n),!0}),e.check()},a.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var f={};return h.prototype=new t,h.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},h.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},h.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},h.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},h.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},h.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s}),t.prototype.createOverlay=function(){var t="absolute";if("body"==this.parent.element.tagName.toLowerCase())t="fixed";else{var n=this.parent.$element.css("position");("fixed"!=n||"absolute"!=n)&&this.parent.$element.css("position","relative")}this.container=e("
").appendTo(this.parent.$element),this.parent._qLbar_wrap.length>0?(this.parent._qLbar_wrap.appendTo(this.container),this.parent.options.percentage=this.parent._qLbar_wrap.hasClass("dfd-percentage-enabled")?!0:!1,this.loadbar=this.parent._qLbar_wrap.find("#qLbar")):e("#qLoverlay_logo").length>0&&(this.logo=e('
').appendTo(this.container)),1==this.parent.options.percentage&&(this.percentageContainer=e("
").text("0%").appendTo(this.container)),this.parent.preloadContainer.toPreload.length&&1!=this.parent.alreadyLoaded||this.parent.destroyContainers()},t.prototype.updatePercentage=function(e){this.loadbar&&this.loadbar.stop().animate({width:e+"%",minWidth:e+"%"},2e3),1==this.parent.options.percentage&&this.percentageContainer.text(Math.ceil(e)+"%")},n.prototype.create=function(){e("#"+this.parent.options.overlayId).remove(),this.container=e("
").appendTo("body").css({display:"none",overflow:"hidden"}),this.processQueue()},n.prototype.processQueue=function(){for(var e=0;this.toPreload.length>e;e++)this.parent.destroyed||this.preloadImage(this.toPreload[e])},n.prototype.addImage=function(e){this.toPreload.push(e)},n.prototype.preloadImage=function(e){var t=new i;t.addToPreloader(this,e),t.bindLoadEvent()},i.prototype.addToPreloader=function(t,n){this.element=e("").attr("src",n),this.element.appendTo(t.container),this.parent=t.parent},i.prototype.bindLoadEvent=function(){this.parent.imageCounter++,this.element[0].ref=this,new imagesLoaded(this.element,function(e){e.elements[0].ref.completeLoading()})},i.prototype.completeLoading=function(){this.parent.imageDone++;var e=this.parent.imageDone/this.parent.imageCounter*100;this.parent.overlayLoader.updatePercentage(e),(this.parent.imageDone==this.parent.imageCounter||e>=100)&&this.parent.endLoader()},r.prototype.init=function(){this._qLbar_wrap=e("#qLbar_wrap").detach(),this.options=e.extend({},this.defaultOptions,this.options);this.findImageInElement(this.element);if(1==this.options.deepSearch)for(var t=this.$element.find("*:not(script)"),n=0;n0&&!e.match(/^(data:)/i)?!0:!1},r.prototype.urlIsNew=function(e){return-1==this.foundUrls.indexOf(e)?!0:!1},r.prototype.destroyContainers=function(){this.destroyed=!0,this.preloadContainer.container.remove(),this.overlayLoader.container.remove()},r.prototype.endLoader=function(){this.destroyed=!0,this.onLoadComplete()},r.prototype.onLoadComplete=function(){if(this.options.onLoadComplete(),"grow"==this.options.completeAnimation){var t=this.options.minimumTime;this.overlayLoader.loadbar[0].parent=this,this.overlayLoader.loadbar.stop().animate({width:"100%"},t,function(){e(this).animate({top:"0%",width:"100%",height:"100%"},500,function(){this.parent.overlayLoader.container[0].parent=this.parent,this.parent.overlayLoader.container.fadeOut(500,function(){this.parent.destroyContainers(),this.parent.options.onComplete()})})})}else{var t=this.options.minimumTime;this.overlayLoader.container[0].parent=this,this.overlayLoader.container.fadeOut(t,function(){this.parent.destroyContainers(),this.parent.options.onComplete()})}},Array.prototype.indexOf||(Array.prototype.indexOf=function(e){var t=this.length>>>0,n=Number(arguments[1])||0;for(n=0>n?Math.ceil(n):Math.floor(n),0>n&&(n+=t);t>n;n++)if(n in this&&this[n]===e)return n;return-1}),e.fn.queryLoader2=function(e){return this.each(function(){new r(this,e)})};{var o={barHeight:1e3,barColor:"#000",percentage:!1,completeAnimation:"fade",minimumTime:2e3};/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}e(document).ready(function(){e("body").queryLoader2(o)})}(jQuery);