/*!
* jQuery Form Plugin
* version: 3.51.0-2014.06.20
* Requires jQuery v1.5 or later
* Copyright (c) 2014 M. Alsup
* Examples and documentation at: http://malsup.com/jquery/form/
* Project repository: https://github.com/malsup/form
* Dual licensed under the MIT and GPL licenses.
* https://github.com/malsup/form#copyright-and-license
*/
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e("undefined"!=typeof jQuery?jQuery:window.Zepto)}(function(e){"use strict";function t(t){var r=t.data;t.isDefaultPrevented()||(t.preventDefault(),e(t.target).ajaxSubmit(r))}function r(t){var r=t.target,a=e(r);if(!a.is("[type=submit],[type=image]")){var n=a.closest("[type=submit]");if(0===n.length)return;r=n[0]}var i=this;if(i.clk=r,"image"==r.type)if(void 0!==t.offsetX)i.clk_x=t.offsetX,i.clk_y=t.offsetY;else if("function"==typeof e.fn.offset){var o=a.offset();i.clk_x=t.pageX-o.left,i.clk_y=t.pageY-o.top}else i.clk_x=t.pageX-r.offsetLeft,i.clk_y=t.pageY-r.offsetTop;setTimeout(function(){i.clk=i.clk_x=i.clk_y=null},100)}function a(){if(e.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}var n={};n.fileapi=void 0!==e(" ").get(0).files,n.formdata=void 0!==window.FormData;var i=!!e.fn.prop;e.fn.attr2=function(){if(!i)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},e.fn.ajaxSubmit=function(t){function r(r){var a,n,i=e.param(r,t.traditional).split("&"),o=i.length,s=[];for(a=0;o>a;a++)i[a]=i[a].replace(/\+/g," "),n=i[a].split("="),s.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return s}function o(a){for(var n=new FormData,i=0;i').val(m.extraData[d].value).appendTo(w)[0]:e(' ').val(m.extraData[d]).appendTo(w)[0]);m.iframeTarget||v.appendTo("body"),g.attachEvent?g.attachEvent("onload",s):g.addEventListener("load",s,!1),setTimeout(t,15);try{w.submit()}catch(h){var x=document.createElement("form").submit;x.apply(w)}}finally{w.setAttribute("action",i),w.setAttribute("enctype",c),r?w.setAttribute("target",r):f.removeAttr("target"),e(l).remove()}}function s(t){if(!x.aborted&&!F){if(M=n(g),M||(a("cannot access response document"),t=k),t===D&&x)return x.abort("timeout"),void S.reject(x,"timeout");if(t==k&&x)return x.abort("server abort"),void S.reject(x,"error","server abort");if(M&&M.location.href!=m.iframeSrc||T){g.detachEvent?g.detachEvent("onload",s):g.removeEventListener("load",s,!1);var r,i="success";try{if(T)throw"timeout";var o="xml"==m.dataType||M.XMLDocument||e.isXMLDoc(M);if(a("isXml="+o),!o&&window.opera&&(null===M.body||!M.body.innerHTML)&&--O)return a("requeing onLoad callback, DOM not available"),void setTimeout(s,250);var u=M.body?M.body:M.documentElement;x.responseText=u?u.innerHTML:null,x.responseXML=M.XMLDocument?M.XMLDocument:M,o&&(m.dataType="xml"),x.getResponseHeader=function(e){var t={"content-type":m.dataType};return t[e.toLowerCase()]},u&&(x.status=Number(u.getAttribute("status"))||x.status,x.statusText=u.getAttribute("statusText")||x.statusText);var c=(m.dataType||"").toLowerCase(),l=/(json|script|text)/.test(c);if(l||m.textarea){var f=M.getElementsByTagName("textarea")[0];if(f)x.responseText=f.value,x.status=Number(f.getAttribute("status"))||x.status,x.statusText=f.getAttribute("statusText")||x.statusText;else if(l){var p=M.getElementsByTagName("pre")[0],h=M.getElementsByTagName("body")[0];p?x.responseText=p.textContent?p.textContent:p.innerText:h&&(x.responseText=h.textContent?h.textContent:h.innerText)}}else"xml"==c&&!x.responseXML&&x.responseText&&(x.responseXML=X(x.responseText));try{E=_(x,c,m)}catch(y){i="parsererror",x.error=r=y||i}}catch(y){a("error caught: ",y),i="error",x.error=r=y||i}x.aborted&&(a("upload aborted"),i=null),x.status&&(i=x.status>=200&&x.status<300||304===x.status?"success":"error"),"success"===i?(m.success&&m.success.call(m.context,E,"success",x),S.resolve(x.responseText,"success",x),d&&e.event.trigger("ajaxSuccess",[x,m])):i&&(void 0===r&&(r=x.statusText),m.error&&m.error.call(m.context,x,i,r),S.reject(x,"error",r),d&&e.event.trigger("ajaxError",[x,m,r])),d&&e.event.trigger("ajaxComplete",[x,m]),d&&!--e.active&&e.event.trigger("ajaxStop"),m.complete&&m.complete.call(m.context,x,i),F=!0,m.timeout&&clearTimeout(j),setTimeout(function(){m.iframeTarget?v.attr("src",m.iframeSrc):v.remove(),x.responseXML=null},100)}}}var c,l,m,d,p,v,g,x,y,b,T,j,w=f[0],S=e.Deferred();if(S.abort=function(e){x.abort(e)},r)for(l=0;l '),v.css({position:"absolute",top:"-1000px",left:"-1000px"})),g=v[0],x={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(t){var r="timeout"===t?"timeout":"aborted";a("aborting upload... "+r),this.aborted=1;try{g.contentWindow.document.execCommand&&g.contentWindow.document.execCommand("Stop")}catch(n){}v.attr("src",m.iframeSrc),x.error=r,m.error&&m.error.call(m.context,x,r,t),d&&e.event.trigger("ajaxError",[x,m,r]),m.complete&&m.complete.call(m.context,x,r)}},d=m.global,d&&0===e.active++&&e.event.trigger("ajaxStart"),d&&e.event.trigger("ajaxSend",[x,m]),m.beforeSend&&m.beforeSend.call(m.context,x,m)===!1)return m.global&&e.active--,S.reject(),S;if(x.aborted)return S.reject(),S;y=w.clk,y&&(b=y.name,b&&!y.disabled&&(m.extraData=m.extraData||{},m.extraData[b]=y.value,"image"==y.type&&(m.extraData[b+".x"]=w.clk_x,m.extraData[b+".y"]=w.clk_y)));var D=1,k=2,A=e("meta[name=csrf-token]").attr("content"),L=e("meta[name=csrf-param]").attr("content");L&&A&&(m.extraData=m.extraData||{},m.extraData[L]=A),m.forceSync?o():setTimeout(o,10);var E,M,F,O=50,X=e.parseXML||function(e,t){return window.ActiveXObject?(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!=t.documentElement.nodeName?t:null},C=e.parseJSON||function(e){return window.eval("("+e+")")},_=function(t,r,a){var n=t.getResponseHeader("content-type")||"",i="xml"===r||!r&&n.indexOf("xml")>=0,o=i?t.responseXML:t.responseText;return i&&"parsererror"===o.documentElement.nodeName&&e.error&&e.error("parsererror"),a&&a.dataFilter&&(o=a.dataFilter(o,r)),"string"==typeof o&&("json"===r||!r&&n.indexOf("json")>=0?o=C(o):("script"===r||!r&&n.indexOf("javascript")>=0)&&e.globalEval(o)),o};return S}if(!this.length)return a("ajaxSubmit: skipping submit process - no element selected"),this;var u,c,l,f=this;"function"==typeof t?t={success:t}:void 0===t&&(t={}),u=t.type||this.attr2("method"),c=t.url||this.attr2("action"),l="string"==typeof c?e.trim(c):"",l=l||window.location.href||"",l&&(l=(l.match(/^([^#]+)/)||[])[1]),t=e.extend(!0,{url:l,success:e.ajaxSettings.success,type:u||e.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},t);var m={};if(this.trigger("form-pre-serialize",[this,t,m]),m.veto)return a("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(t.beforeSerialize&&t.beforeSerialize(this,t)===!1)return a("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var d=t.traditional;void 0===d&&(d=e.ajaxSettings.traditional);var p,h=[],v=this.formToArray(t.semantic,h);if(t.data&&(t.extraData=t.data,p=e.param(t.data,d)),t.beforeSubmit&&t.beforeSubmit(v,this,t)===!1)return a("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[v,this,t,m]),m.veto)return a("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var g=e.param(v,d);p&&(g=g?g+"&"+p:p),"GET"==t.type.toUpperCase()?(t.url+=(t.url.indexOf("?")>=0?"&":"?")+g,t.data=null):t.data=g;var x=[];if(t.resetForm&&x.push(function(){f.resetForm()}),t.clearForm&&x.push(function(){f.clearForm(t.includeHidden)}),!t.dataType&&t.target){var y=t.success||function(){};x.push(function(r){var a=t.replaceTarget?"replaceWith":"html";e(t.target)[a](r).each(y,arguments)})}else t.success&&x.push(t.success);if(t.success=function(e,r,a){for(var n=t.context||this,i=0,o=x.length;o>i;i++)x[i].apply(n,[e,r,a||f,f])},t.error){var b=t.error;t.error=function(e,r,a){var n=t.context||this;b.apply(n,[e,r,a,f])}}if(t.complete){var T=t.complete;t.complete=function(e,r){var a=t.context||this;T.apply(a,[e,r,f])}}var j=e("input[type=file]:enabled",this).filter(function(){return""!==e(this).val()}),w=j.length>0,S="multipart/form-data",D=f.attr("enctype")==S||f.attr("encoding")==S,k=n.fileapi&&n.formdata;a("fileAPI :"+k);var A,L=(w||D)&&!k;t.iframe!==!1&&(t.iframe||L)?t.closeKeepAlive?e.get(t.closeKeepAlive,function(){A=s(v)}):A=s(v):A=(w||D)&&k?o(v):e.ajax(t),f.removeData("jqxhr").data("jqxhr",A);for(var E=0;Ec;c++)if(d=u[c],f=d.name,f&&!d.disabled)if(t&&o.clk&&"image"==d.type)o.clk==d&&(a.push({name:f,value:e(d).val(),type:d.type}),a.push({name:f+".x",value:o.clk_x},{name:f+".y",value:o.clk_y}));else if(m=e.fieldValue(d,!0),m&&m.constructor==Array)for(r&&r.push(d),l=0,h=m.length;h>l;l++)a.push({name:f,value:m[l]});else if(n.fileapi&&"file"==d.type){r&&r.push(d);var v=d.files;if(v.length)for(l=0;li;i++)r.push({name:a,value:n[i]});else null!==n&&"undefined"!=typeof n&&r.push({name:this.name,value:n})}}),e.param(r)},e.fn.fieldValue=function(t){for(var r=[],a=0,n=this.length;n>a;a++){var i=this[a],o=e.fieldValue(i,t);null===o||"undefined"==typeof o||o.constructor==Array&&!o.length||(o.constructor==Array?e.merge(r,o):r.push(o))}return r},e.fieldValue=function(t,r){var a=t.name,n=t.type,i=t.tagName.toLowerCase();if(void 0===r&&(r=!0),r&&(!a||t.disabled||"reset"==n||"button"==n||("checkbox"==n||"radio"==n)&&!t.checked||("submit"==n||"image"==n)&&t.form&&t.form.clk!=t||"select"==i&&-1==t.selectedIndex))return null;if("select"==i){var o=t.selectedIndex;if(0>o)return null;for(var s=[],u=t.options,c="select-one"==n,l=c?o+1:u.length,f=c?o:0;l>f;f++){var m=u[f];if(m.selected){var d=m.value;if(d||(d=m.attributes&&m.attributes.value&&!m.attributes.value.specified?m.text:m.value),c)return d;s.push(d)}}return s}return e(t).val()},e.fn.clearForm=function(t){return this.each(function(){e("input,select,textarea",this).clearFields(t)})},e.fn.clearFields=e.fn.clearInputs=function(t){var r=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var a=this.type,n=this.tagName.toLowerCase();r.test(a)||"textarea"==n?this.value="":"checkbox"==a||"radio"==a?this.checked=!1:"select"==n?this.selectedIndex=-1:"file"==a?/MSIE/.test(navigator.userAgent)?e(this).replaceWith(e(this).clone(!0)):e(this).val(""):t&&(t===!0&&/hidden/.test(a)||"string"==typeof t&&e(this).is(t))&&(this.value="")})},e.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})},e.fn.enable=function(e){return void 0===e&&(e=!0),this.each(function(){this.disabled=!e})},e.fn.selected=function(t){return void 0===t&&(t=!0),this.each(function(){var r=this.type;if("checkbox"==r||"radio"==r)this.checked=t;else if("option"==this.tagName.toLowerCase()){var a=e(this).parent("select");t&&a[0]&&"select-one"==a[0].type&&a.find("option").selected(!1),this.selected=t}})},e.fn.ajaxSubmit.debug=!1});
;(function($){'use strict';if(typeof _wpcf7=='undefined'||_wpcf7===null){return;}
_wpcf7=$.extend({cached:0},_wpcf7);$.fn.wpcf7InitForm=function(){this.ajaxForm({beforeSubmit:function(arr,$form,options){$form.wpcf7ClearResponseOutput();$form.find('[aria-invalid]').attr('aria-invalid','false');$form.find('img.ajax-loader').css({visibility:'visible'});return true;},beforeSerialize:function($form,options){$form.find('[placeholder].placeheld').each(function(i,n){$(n).val('');});return true;},data:{'_wpcf7_is_ajax_call':1},dataType:'json',success:$.wpcf7AjaxSuccess,error:function(xhr,status,error,$form){var e=$('
').text(error.message);$form.after(e);}});if(_wpcf7.cached){this.wpcf7OnloadRefill();}
this.wpcf7ToggleSubmit();this.find('.wpcf7-submit').wpcf7AjaxLoader();this.find('.wpcf7-acceptance').click(function(){$(this).closest('form').wpcf7ToggleSubmit();});this.find('.wpcf7-exclusive-checkbox').wpcf7ExclusiveCheckbox();this.find('.wpcf7-list-item.has-free-text').wpcf7ToggleCheckboxFreetext();this.find('[placeholder]').wpcf7Placeholder();if(_wpcf7.jqueryUi&&!_wpcf7.supportHtml5.date){this.find('input.wpcf7-date[type="date"]').each(function(){$(this).datepicker({dateFormat:'yy-mm-dd',minDate:new Date($(this).attr('min')),maxDate:new Date($(this).attr('max'))});});}
if(_wpcf7.jqueryUi&&!_wpcf7.supportHtml5.number){this.find('input.wpcf7-number[type="number"]').each(function(){$(this).spinner({min:$(this).attr('min'),max:$(this).attr('max'),step:$(this).attr('step')});});}
this.find('.wpcf7-character-count').wpcf7CharacterCount();this.find('.wpcf7-validates-as-url').change(function(){$(this).wpcf7NormalizeUrl();});this.find('.wpcf7-recaptcha').wpcf7Recaptcha();};$.wpcf7AjaxSuccess=function(data,status,xhr,$form){if(!$.isPlainObject(data)||$.isEmptyObject(data)){return;}
var $responseOutput=$form.find('div.wpcf7-response-output');$form.wpcf7ClearResponseOutput();$form.find('.wpcf7-form-control').removeClass('wpcf7-not-valid');$form.removeClass('invalid spam sent failed');if(data.captcha){$form.wpcf7RefillCaptcha(data.captcha);}
if(data.quiz){$form.wpcf7RefillQuiz(data.quiz);}
if(data.invalids){$.each(data.invalids,function(i,n){$form.find(n.into).wpcf7NotValidTip(n.message);$form.find(n.into).find('.wpcf7-form-control').addClass('wpcf7-not-valid');$form.find(n.into).find('[aria-invalid]').attr('aria-invalid','true');});$responseOutput.addClass('wpcf7-validation-errors');$form.addClass('invalid');$(data.into).trigger('wpcf7:invalid');$(data.into).trigger('invalid.wpcf7');}else if(1==data.spam){$form.find('[name="g-recaptcha-response"]').each(function(){if(''==$(this).val()){var $recaptcha=$(this).closest('.wpcf7-form-control-wrap');$recaptcha.wpcf7NotValidTip(_wpcf7.recaptcha.messages.empty);}});$responseOutput.addClass('wpcf7-spam-blocked');$form.addClass('spam');$(data.into).trigger('wpcf7:spam');$(data.into).trigger('spam.wpcf7');}else if(1==data.mailSent){$responseOutput.addClass('wpcf7-mail-sent-ok');$form.addClass('sent');if(data.onSentOk){$.each(data.onSentOk,function(i,n){eval(n)});}
$(data.into).trigger('wpcf7:mailsent');$(data.into).trigger('mailsent.wpcf7');}else{$responseOutput.addClass('wpcf7-mail-sent-ng');$form.addClass('failed');$(data.into).trigger('wpcf7:mailfailed');$(data.into).trigger('mailfailed.wpcf7');}
if(data.onSubmit){$.each(data.onSubmit,function(i,n){eval(n)});}
$(data.into).trigger('wpcf7:submit');$(data.into).trigger('submit.wpcf7');if(1==data.mailSent){$form.resetForm();}
$form.find('[placeholder].placeheld').each(function(i,n){$(n).val($(n).attr('placeholder'));});$responseOutput.append(data.message).slideDown('fast');$responseOutput.attr('role','alert');$.wpcf7UpdateScreenReaderResponse($form,data);};$.fn.wpcf7ExclusiveCheckbox=function(){return this.find('input:checkbox').click(function(){var name=$(this).attr('name');$(this).closest('form').find('input:checkbox[name="'+name+'"]').not(this).prop('checked',false);});};$.fn.wpcf7Placeholder=function(){if(_wpcf7.supportHtml5.placeholder){return this;}
return this.each(function(){$(this).val($(this).attr('placeholder'));$(this).addClass('placeheld');$(this).focus(function(){if($(this).hasClass('placeheld'))
$(this).val('').removeClass('placeheld');});$(this).blur(function(){if(''==$(this).val()){$(this).val($(this).attr('placeholder'));$(this).addClass('placeheld');}});});};$.fn.wpcf7AjaxLoader=function(){return this.each(function(){var loader=$(' ').attr({src:_wpcf7.loaderUrl,alt:_wpcf7.sending}).css('visibility','hidden');$(this).after(loader);});};$.fn.wpcf7ToggleSubmit=function(){return this.each(function(){var form=$(this);if(this.tagName.toLowerCase()!='form'){form=$(this).find('form').first();}
if(form.hasClass('wpcf7-acceptance-as-validation')){return;}
var submit=form.find('input:submit');if(!submit.length)return;var acceptances=form.find('input:checkbox.wpcf7-acceptance');if(!acceptances.length)return;submit.removeAttr('disabled');acceptances.each(function(i,n){n=$(n);if(n.hasClass('wpcf7-invert')&&n.is(':checked')||!n.hasClass('wpcf7-invert')&&!n.is(':checked')){submit.attr('disabled','disabled');}});});};$.fn.wpcf7ToggleCheckboxFreetext=function(){return this.each(function(){var $wrap=$(this).closest('.wpcf7-form-control');if($(this).find(':checkbox, :radio').is(':checked')){$(this).find(':input.wpcf7-free-text').prop('disabled',false);}else{$(this).find(':input.wpcf7-free-text').prop('disabled',true);}
$wrap.find(':checkbox, :radio').change(function(){var $cb=$('.has-free-text',$wrap).find(':checkbox, :radio');var $freetext=$(':input.wpcf7-free-text',$wrap);if($cb.is(':checked')){$freetext.prop('disabled',false).focus();}else{$freetext.prop('disabled',true);}});});};$.fn.wpcf7CharacterCount=function(){return this.each(function(){var $count=$(this);var name=$count.attr('data-target-name');var down=$count.hasClass('down');var starting=parseInt($count.attr('data-starting-value'),10);var maximum=parseInt($count.attr('data-maximum-value'),10);var minimum=parseInt($count.attr('data-minimum-value'),10);var updateCount=function($target){var length=$target.val().length;var count=down?starting-length:length;$count.attr('data-current-value',count);$count.text(count);if(maximum&&maximum'+message+'');if($into.is('.use-floating-validation-tip *')){$('.wpcf7-not-valid-tip',$into).mouseover(function(){$(this).wpcf7FadeOut();});$(':input',$into).focus(function(){$('.wpcf7-not-valid-tip',$into).not(':hidden').wpcf7FadeOut();});}});};$.fn.wpcf7FadeOut=function(){return this.each(function(){$(this).animate({opacity:0},'fast',function(){$(this).css({'z-index':-100});});});};$.fn.wpcf7OnloadRefill=function(){return this.each(function(){var url=$(this).attr('action');if(0');$.each(data.invalids,function(i,n){if(n.idref){var $li=$(' ').append($(' ').attr('href','#'+n.idref).append(n.message));}else{var $li=$(' ').append(n.message);}
$invalids.append($li);});$response.append($invalids);}
$response.attr('role','alert').focus();}};$.wpcf7SupportHtml5=function(){var features={};var input=document.createElement('input');features.placeholder='placeholder'in input;var inputTypes=['email','url','tel','number','range','date'];$.each(inputTypes,function(index,value){input.setAttribute('type',value);features[value]=input.type!=='text';});return features;};$(function(){_wpcf7.supportHtml5=$.wpcf7SupportHtml5();$('div.wpcf7 > form').wpcf7InitForm();});})(jQuery);
;var addComment={moveForm:function(a,b,c,d){var e,f,g,h,i=this,j=i.I(a),k=i.I(c),l=i.I("cancel-comment-reply-link"),m=i.I("comment_parent"),n=i.I("comment_post_ID"),o=k.getElementsByTagName("form")[0];if(j&&k&&l&&m&&o){i.respondId=c,d=d||!1,i.I("wp-temp-form-div")||(e=document.createElement("div"),e.id="wp-temp-form-div",e.style.display="none",k.parentNode.insertBefore(e,k)),j.parentNode.insertBefore(k,j.nextSibling),n&&d&&(n.value=d),m.value=b,l.style.display="",l.onclick=function(){var a=addComment,b=a.I("wp-temp-form-div"),c=a.I(a.respondId);if(b&&c)return a.I("comment_parent").value="0",b.parentNode.insertBefore(c,b),b.parentNode.removeChild(b),this.style.display="none",this.onclick=null,!1};try{for(var p=0;p'),a.parent().width(b),a.css("cssText","width: 100% !important;"),jQuery('
').appendTo(a.parent(".gravity-select-parent")),calc_select_arrow_dimensions()}},150)})}function calc_select_arrow_dimensions(){jQuery(".avada-select-parent .select-arrow, .gravity-select-parent .select-arrow, .wpcf7-select-parent .select-arrow").each(function(){jQuery(this).prev().innerHeight()>0&&jQuery(this).css({height:jQuery(this).prev().innerHeight(),width:jQuery(this).prev().innerHeight(),"line-height":jQuery(this).prev().innerHeight()+"px"})})}function recursive_gform_submission_handler(){jQuery(".gform_wrapper").find("form").attr("target")&&jQuery(".gform_wrapper").find("form").attr("target").indexOf("gform_ajax_frame")>-1&&jQuery(".gform_wrapper").find("form").submit(function(a){setTimeout(function(){wrap_gravity_selects(),calc_select_arrow_dimensions(),recursive_gform_submission_handler()},800)})}function _fusionRefreshScroll(){jQuery;_fusionScrollTop=window.pageYOffset,_fusionScrollLeft=window.pageXOffset}function _fusionParallaxAll(){_fusionRefreshScroll();for(var a=0;a<_fusionImageParallaxImages.length;a++)_fusionImageParallaxImages[a].doParallax()}function _fusionRefreshWindow(){_fusionScrollTop=window.pageYOffset,_fusionWindowHeight=jQuery(window).height(),_fusionScrollLeft=window.pageXOffset,_fusionWindowWidth=jQuery(window).width()}function _fbRowGetAllElementsWithAttribute(a){for(var b=[],c=document.getElementsByTagName("*"),d=0,e=c.length;e>d;d++)c[d].getAttribute(a)&&b.push(c[d]);return b}function _fbRowOnPlayerReady(a){var b=a.target;b.playVideo(),b.isMute&&b.mute();var c=b.getCurrentTime(),d=+new Date/1e3,e=0,f=!0;b.loopInterval=setInterval(function(){"undefined"!=typeof b.loopTimeout&&clearTimeout(b.loopTimeout),c==b.getCurrentTime()?e=c+(+new Date/1e3-d):(e=b.getCurrentTime(),d=+new Date/1e3),c=b.getCurrentTime(),e+(f?.45:.21)>=b.getDuration()&&(b.pauseVideo(),b.seekTo(0),b.playVideo(),f=!1)},150)}function _fbRowOnPlayerStateChange(a){a.data===YT.PlayerState.ENDED?("undefined"!=typeof a.target.loopTimeout&&clearTimeout(a.target.loopTimeout),a.target.seekTo(0)):a.data===YT.PlayerState.PLAYING&&jQuery(a.target.getIframe()).parent().css("visibility","visible")}function resizeVideo(a){var b=a.parent();if(null===b.find("iframe").width())return void setTimeout(function(){resizeVideo(a)},500);var c=a;c.css({width:"auto",height:"auto",left:"auto",top:"auto"}),c.css("position","absolute");var d=(b.find("iframe").width(),b.find("iframe").height(),b.width()),e=b.height(),f=parseInt(b.css("padding-left")),g=parseInt(b.css("padding-right"));jQuery(".width-100").length>=1&&(g>0&&(d+=g),f>0&&(d+=f));var h,i,j,k,l="16:9";if("undefined"!=typeof a.attr("data-video-aspect-ratio")&&-1!==a.attr("data-video-aspect-ratio").indexOf(":")&&(l=a.attr("data-video-aspect-ratio").split(":"),l[0]=parseFloat(l[0]),l[1]=parseFloat(l[1])),i=e,h=l[0]/l[1]*e,j=l[0]/l[1]*e-d,k=d*l[1]/l[0]-e,h>=d&&i>=e?(height=e,width=l[0]/l[1]*e):(width=d,height=d*l[1]/l[0]),jQuery(".width-100").length>=1&&(g>0&&(width+=g),f>0&&(width+=f),height=width*l[1]/l[0]),marginTop=-(height-e)/2,marginLeft=-(width-d)/2,b.find(".fusion-video-cover").length<1){var m=b.find("iframe").parent();m.prepend('
')}b.find(".fusion-video-cover").css({"z-index":0,width:width,height:height,position:"absolute"}),b.find("iframe").parent().css({marginLeft:marginLeft,marginTop:marginTop}),b.find("iframe").css({width:width,height:height,"z-index":-1})}function onYouTubeIframeAPIReady(){for(var a=_fbRowGetAllElementsWithAttribute("data-youtube-video-id"),b=0;bb?(e.css("height","auto"),a>$last_window_position?$top?($top=!1,$top_offset=f.offset().top>0?f.offset().top-h:d,e.attr("style","top: "+$top_offset+"px; height: auto;")):!$bottom&&a+b>g+f.offset().top&&c>g+d&&($bottom=!0,e.attr("style","position: fixed; bottom: 0; top: auto; height: auto;")):a<$last_window_position?$bottom?($bottom=!1,$top_offset=f.offset().top>0?f.offset().top-h:d,e.attr("style","top: "+$top_offset+"px; height: auto;")):!$top&&a+d0?f.offset().top-h:d,b>$last_window_height&&c>f.offset().top+h+g&&a+b>f.offset().top+g&&($top_offset+=b-$last_window_height),e.attr("style","top:"+$top_offset+"px; height: auto;"))):($top=!0,e.attr("style","position: fixed;")),$last_window_position=a,void($last_window_height=b))}function insertParam(a,b,c,d){if(replaceDuplicates=!0,a.indexOf("#")>0){var e=a.indexOf("#");urlhash=a.substring(a.indexOf("#"),a.length)}else{urlhash="";var e=a.length}sourceUrl=a.substring(0,e);var f=sourceUrl.split("?"),g="";if(f.length>1)for(var h=f[1].split("&"),i=0;i1?"&"+g.substring(1):""):(""!==g&&"?"!=g&&(g+="&"),g+=b+"="+(c?c:"")),f[0]+g+urlhash}function ytVidId(a){var b=/^(?:https?:)?(\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/;return a.match(b)?RegExp.$1:!1}function onYouTubePlayerAPIReady(){YT_ready(!0)}+function(a){"use strict";function b(c,d){var e=a.proxy(this.process,this);this.$body=a("body"),this.$scrollElement=a(a(c).is("body")?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.2",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b="offset",c=0;a.isWindow(this.$scrollElement[0])||(b="position",c=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var d=this;this.$body.find(this.selector).map(function(){var d=a(this),e=d.data("target")||d.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[b]().top+c,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){d.offsets.push(this[0]),d.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b=e[a]&&(!e[a+1]||b<=e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,this.clear();var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("current-menu-item");d.parent(".sub-menu").length&&(d=d.closest("li.fusion-dropdown-menu").addClass("current-menu-item")),d.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".current-menu-item").removeClass("current-menu-item"),a(this.selector).parentsUntil(this.options.target,".current-menu-parent").removeClass("current-menu-parent")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()})}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.DEFAULTS={toggle:!0},b.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},b.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b=a.Event("show.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.$parent&&this.$parent.find("> .fusion-panel > .in");if(c&&c.length){var d=c.data("bs.collapse");if(d&&d.transitioning)return;c.collapse("hide"),d||c.data("bs.collapse",null)}var e=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[e](0),this.transitioning=1;var f=function(){this.$element.removeClass("collapsing").addClass("collapse in")[e]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return f.call(this);var g=a.camelCase(["scroll",e].join("-"));this.$element.one(a.support.transition.end,a.proxy(f,this)).emulateTransitionEnd(350)[e](this.$element[0][g])}}},b.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return a.support.transition?void this.$element[c](0).one(a.support.transition.end,a.proxy(d,this)).emulateTransitionEnd(350):d.call(this)}}},b.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c);!e&&f.toggle&&"show"==c&&(c=!c),e||d.data("bs.collapse",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(b){var c,d=a(this),e=d.attr("data-target")||b.preventDefault()||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,""),f=a(e),g=f.data("bs.collapse"),h=g?"toggle":d.data(),i=d.attr("data-parent"),j=i&&a(i);g&&g.transitioning||(j&&j.find('[data-toggle=collapse][data-parent="'+i+'"]').not(d).addClass("collapsed"),d[f.hasClass("in")?"addClass":"removeClass"]("collapsed")),f.collapse(h)}),jQuery("click.bs.collapse.data-api, [data-toggle=collapse]").each(function(){jQuery(this).attr("data-parent");if(0==jQuery(this).parents(".panel-group").length){var a=Math.floor(10*Math.random()+1),b=jQuery(this).parents(".fusion-panel");jQuery(this).attr("data-parent","accordian-"+a),jQuery(b).wrap('')}})}(jQuery),+function(a){"use strict";var b=function(b,c){this.options=c,this.$element=a(b),this.$backdrop="",this.isShown=null,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};b.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},b.prototype.toggle=function(a){return this[this.isShown?"hide":"show"](a)},b.prototype.show=function(b){var c=this,d=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(d),this.isShown||d.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.backdrop(function(){var d=a.support.transition&&c.$element.hasClass("fade");c.$element.parent().length||c.$element.appendTo(document.body),c.$element.show().scrollTop(0),d&&c.$element[0].offsetWidth,c.$element.addClass("in").attr("aria-hidden",!1),c.enforceFocus();var e=a.Event("shown.bs.modal",{relatedTarget:b});d?c.$element.find(".modal-dialog").one(a.support.transition.end,function(){c.$element.focus().trigger(e)}).emulateTransitionEnd(300):c.$element.focus().trigger(e)}))},b.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one(a.support.transition.end,a.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},b.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.focus()},this))},b.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},b.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.removeBackdrop(),a.$element.trigger("hidden.bs.modal")})},b.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},b.prototype.backdrop=function(b){var c=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var d=a.support.transition&&c;if(this.$backdrop=a('
').appendTo(document.body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),d&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;d?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()):b&&b()};var c=a.fn.modal;a.fn.modal=function(c,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},b.DEFAULTS,e.data(),"object"==typeof c&&c);f||e.data("bs.modal",f=new b(this,g)),"string"==typeof c?f[c](d):g.show&&f.show(d)})},a.fn.modal.Constructor=b,a.fn.modal.noConflict=function(){return a.fn.modal=c,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(b){var c=a(this),d=c.attr("href"),e=a(c.attr("data-target")||d&&d.replace(/.*(?=#[^\s]+$)/,"")),f=e.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(d)&&d},e.data(),c.data());c.is("a")&&b.preventDefault(),e.modal(f,this).one("hide",function(){c.is(":visible")&&c.focus()})}),a(document).on("show.bs.modal",".modal",function(){a(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){a(document.body).removeClass("modal-open")})}(jQuery),+function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a")[0],f=a.Event("show.bs.tab",{relatedTarget:e});if(b.trigger(f),!f.isDefaultPrevented()){var g=a(d);this.activate(b.parent("li"),c),this.activate(g,g.parent(),function(){b.trigger({type:"shown.bs.tab",relatedTarget:e})})}}},b.prototype.activate=function(b,c,d){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),g?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var f=c.find("> .active"),g=d&&a.support.transition&&f.hasClass("fade");g?f.one(a.support.transition.end,e).emulateTransitionEnd(150):e(),f.removeClass("in")};var c=a.fn.tab;a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new b(this)),"string"==typeof c&&e[c]()})},a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=c,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})}(jQuery),+function(a){"use strict";var b=function(a,b){this.type="",this.options="",this.enabled="",this.timeout="",this.hoverState="",this.$element=null,this.init("tooltip",a,b)};b.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},b.prototype.init=function(b,c,d){this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d);for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},b.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},b.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show()},b.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},b.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){if(this.$element.trigger(b),b.isDefaultPrevented())return;var c=this,d=this.tip();this.setContent(),this.options.animation&&d.addClass("fade");var e="function"==typeof this.options.placement?this.options.placement.call(this,d[0],this.$element[0]):this.options.placement,f=/\s?auto?\s?/i,g=f.test(e);g&&(e=e.replace(f,"")||"top"),d.detach().css({top:0,left:0,display:"block"}).addClass(e).addClass(this.$element.data("class")),this.options.container?d.appendTo(this.options.container):d.insertAfter(this.$element);var h=this.getPosition(),i=d[0].offsetWidth,j=d[0].offsetHeight;if(g){var k=this.$element.parent(),l=e,m=document.documentElement.scrollTop||document.body.scrollTop,n="body"==this.options.container?window.innerWidth:k.outerWidth(),o="body"==this.options.container?window.innerHeight:k.outerHeight(),p="body"==this.options.container?0:k.offset().left;e="bottom"==e&&h.top+h.height+j-m>o?"top":"top"==e&&h.top-m-j<0?"bottom":"right"==e&&h.right+i>n?"left":"left"==e&&h.left-i
'}),b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),b.prototype.constructor=b,b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content")[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},b.prototype.hasContent=function(){return this.getTitle()||this.getContent()},b.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},b.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var c=a.fn.popover;a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof c&&c;(e||"destroy"!=c)&&(e||d.data("bs.popover",e=new b(this,f)),"string"==typeof c&&e[c]())})},a.fn.popover.Constructor=b,a.fn.popover.noConflict=function(){return a.fn.popover=c,this}}(jQuery);var cssua=function(a,b,c){"use strict";var d=" ua-",e=/\s*([\-\w ]+)[\s\/\:]([\d_]+\b(?:[\-\._\/]\w+)*)/,f=/([\w\-\.]+[\s\/][v]?[\d_]+\b(?:[\-\._\/]\w+)*)/g,g=/\b(?:(blackberry\w*|bb10)|(rim tablet os))(?:\/(\d+\.\d+(?:\.\w+)*))?/,h=/\bsilk-accelerated=true\b/,i=/\bfluidapp\b/,j=/(\bwindows\b|\bmacintosh\b|\blinux\b|\bunix\b)/,k=/(\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*?)/,l=/(\bxbox\b|\bplaystation\b|\bnintendo\s+\w+)/,m={parse:function(a,b){var c={};if(b&&(c.standalone=b),a=(""+a).toLowerCase(),!a)return c;for(var d,m,n=a.split(/[()]/),o=0,p=n.length;p>o;o++)if(o%2){var q=n[o].split(";");for(d=0,m=q.length;m>d;d++)if(e.exec(q[d])){var r=RegExp.$1.split(" ").join("_"),s=RegExp.$2;(!c[r]||parseFloat(c[r])d;d++){var u=t[d].split(/[\/\s]+/);u.length&&"mozilla"!==u[0]&&(c[u[0].split(" ").join("_")]=u.slice(1).join("-"))}}if(k.exec(a))c.mobile=RegExp.$1,g.exec(a)&&(delete c[c.mobile],c.blackberry=c.version||RegExp.$3||RegExp.$2||RegExp.$1,RegExp.$1?c.mobile="blackberry":"0.0.1"===c.version&&(c.blackberry="7.1.0.0"));else if(j.exec(a))c.desktop=RegExp.$1;else if(l.exec(a)){c.game=RegExp.$1;var v=c.game.split(" ").join("_");c.version&&!c[v]&&(c[v]=c.version)}return c.intel_mac_os_x?(c.mac_os_x=c.intel_mac_os_x.split("_").join("."),delete c.intel_mac_os_x):c.cpu_iphone_os?(c.ios=c.cpu_iphone_os.split("_").join("."),delete c.cpu_iphone_os):c.cpu_os?(c.ios=c.cpu_os.split("_").join("."),delete c.cpu_os):"iphone"!==c.mobile||c.ios||(c.ios="1"),c.opera&&c.version?(c.opera=c.version,delete c.blackberry):h.exec(a)?c.silk_accelerated=!0:i.exec(a)&&(c.fluidapp=c.version),c.applewebkit?(c.webkit=c.applewebkit,delete c.applewebkit,c.opr&&(c.opera=c.opr,delete c.opr,delete c.chrome),c.safari&&(c.chrome||c.crios||c.opera||c.silk||c.fluidapp||c.phantomjs||c.mobile&&!c.ios?delete c.safari:c.version&&!c.rim_tablet_os?c.safari=c.version:c.safari={419:"2.0.4",417:"2.0.3",416:"2.0.2",412:"2.0",312:"1.3",125:"1.2",85:"1.0"}[parseInt(c.safari,10)]||c.safari)):c.msie||c.trident?(c.opera||(c.ie=c.msie||c.rv),delete c.msie,c.windows_phone_os?(c.windows_phone=c.windows_phone_os,delete c.windows_phone_os):("wpdesktop"===c.mobile||"xblwp7"===c.mobile||"zunewp7"===c.mobile)&&(c.mobile="windows desktop",c.windows_phone=+c.ie<9?"7.0":+c.ie<10?"7.5":"8.0",delete c.windows_nt)):(c.gecko||c.firefox)&&(c.gecko=c.rv),c.rv&&delete c.rv,c.version&&delete c.version,c},format:function(a){function b(a,b){a=a.split(".").join("-");var c=d+a;if("string"==typeof b){b=b.split(" ").join("_").split(".").join("-");for(var e=b.indexOf("-");e>0;)c+=d+a+"-"+b.substring(0,e),e=b.indexOf("-",e+1);c+=d+a+"-"+b}return c}var c="";for(var e in a)e&&a.hasOwnProperty(e)&&(c+=b(e,a[e]));return c},encode:function(a){var b="";for(var c in a)c&&a.hasOwnProperty(c)&&(b&&(b+="&"),b+=encodeURIComponent(c)+"="+encodeURIComponent(a[c]));return b}};m.userAgent=m.ua=m.parse(b,c);var n=m.format(m.ua)+" js";return a.className?a.className=a.className.replace(/\bno-js\b/g,"")+n:a.className=n.substr(1),m}(document.documentElement,navigator.userAgent,navigator.standalone);!function(a,b){"object"==typeof exports?module.exports=b(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],b):b(a.jQuery)}(this,function(a){var b=function(a,b){var c,d=document.createElement("canvas");a.appendChild(d),"undefined"!=typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(d);var e=d.getContext("2d");d.width=d.height=b.size;var f=1;window.devicePixelRatio>1&&(f=window.devicePixelRatio,d.style.width=d.style.height=[b.size,"px"].join(""),d.width=d.height=b.size*f,e.scale(f,f)),e.translate(b.size/2,b.size/2),e.rotate((-0.5+b.rotate/180)*Math.PI);var g=(b.size-b.lineWidth)/2;b.scaleColor&&b.scaleLength&&(g-=b.scaleLength+2),Date.now=Date.now||function(){return+new Date};var h=function(a,b,c){c=Math.min(Math.max(-1,c||0),1);var d=0>=c?!0:!1;e.beginPath(),e.arc(0,0,g,0,2*Math.PI*c,d),e.strokeStyle=a,e.lineWidth=b,e.stroke()},i=function(){var a,c;e.lineWidth=1,e.fillStyle=b.scaleColor,e.save();for(var d=24;d>0;--d)d%6===0?(c=b.scaleLength,a=0):(c=.6*b.scaleLength,a=b.scaleLength-c),e.fillRect(-b.size/2+a,0,c,1),e.rotate(Math.PI/12);e.restore()},j=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a){window.setTimeout(a,1e3/60)}}(),k=function(){b.scaleColor&&i(),b.trackColor&&h(b.trackColor,b.lineWidth,1)};this.getCanvas=function(){return d},this.getCtx=function(){return e},this.clear=function(){e.clearRect(b.size/-2,b.size/-2,b.size,b.size)},this.draw=function(a){b.scaleColor||b.trackColor?e.getImageData&&e.putImageData?c?e.putImageData(c,0,0):(k(),c=e.getImageData(0,0,b.size*f,b.size*f)):(this.clear(),k()):this.clear(),e.lineCap=b.lineCap;
var d;d="function"==typeof b.barColor?b.barColor(a):b.barColor,h(d,b.lineWidth,a/100)}.bind(this),this.animate=function(a,c){var d=Date.now();b.onStart(a,c);var e=function(){var f=Math.min(Date.now()-d,b.animate.duration),g=b.easing(this,f,a,c-a,b.animate.duration);this.draw(g),b.onStep(a,c,g),f>=b.animate.duration?b.onStop(a,c):j(e)}.bind(this);j(e)}.bind(this)},c=function(a,c){var d={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(a,b,c,d,e){return b/=e/2,1>b?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},onStart:function(a,b){},onStep:function(a,b,c){},onStop:function(a,b){}};if("undefined"!=typeof b)d.renderer=b;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");d.renderer=SVGRenderer}var e={},f=0,g=function(){this.el=a,this.options=e;for(var b in d)d.hasOwnProperty(b)&&(e[b]=c&&"undefined"!=typeof c[b]?c[b]:d[b],"function"==typeof e[b]&&(e[b]=e[b].bind(this)));"string"==typeof e.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[e.easing])?e.easing=jQuery.easing[e.easing]:e.easing=d.easing,"number"==typeof e.animate&&(e.animate={duration:e.animate,enabled:!0}),"boolean"!=typeof e.animate||e.animate||(e.animate={duration:1e3,enabled:e.animate}),this.renderer=new e.renderer(a,e),this.renderer.draw(f),a.dataset&&a.dataset.percent?this.update(parseFloat(a.dataset.percent)):a.getAttribute&&a.getAttribute("data-percent")&&this.update(parseFloat(a.getAttribute("data-percent")))}.bind(this);this.update=function(a){return a=parseFloat(a),e.animate.enabled?this.renderer.animate(f,a):this.renderer.draw(a),f=a,this}.bind(this),this.disableAnimation=function(){return e.animate.enabled=!1,this},this.enableAnimation=function(){return e.animate.enabled=!0,this},g()};a.fn.easyPieChart=function(b){return this.each(function(){var d;a.data(this,"easyPieChart")||(d=a.extend({},b,a(this).data()),a.data(this,"easyPieChart",new c(this,d)))})}}),document.createElement("canvas").getContext||!function(){function a(){return this.context_||(this.context_=new j(this))}function b(a,b,c){var d=x.call(arguments,2);return function(){return a.apply(b,d.concat(x.call(arguments)))}}function c(a){var b=a.srcElement;switch(a.propertyName){case"width":b.style.width=b.attributes.width.nodeValue+"px",b.getContext().clearRect();break;case"height":b.style.height=b.attributes.height.nodeValue+"px",b.getContext().clearRect()}}function d(a){var b=a.srcElement;b.firstChild&&(b.firstChild.style.width=b.clientWidth+"px",b.firstChild.style.height=b.clientHeight+"px")}function e(){return[[1,0,0],[0,1,0],[0,0,1]]}function f(a,b){for(var c=e(),d=0;3>d;d++)for(var f=0;3>f;f++){for(var g=0,h=0;3>h;h++)g+=a[d][h]*b[h][f];c[d][f]=g}return c}function g(a,b){b.fillStyle=a.fillStyle,b.lineCap=a.lineCap,b.lineJoin=a.lineJoin,b.lineWidth=a.lineWidth,b.miterLimit=a.miterLimit,b.shadowBlur=a.shadowBlur,b.shadowColor=a.shadowColor,b.shadowOffsetX=a.shadowOffsetX,b.shadowOffsetY=a.shadowOffsetY,b.strokeStyle=a.strokeStyle,b.globalAlpha=a.globalAlpha,b.arcScaleX_=a.arcScaleX_,b.arcScaleY_=a.arcScaleY_,b.lineScale_=a.lineScale_}function h(a){var b,c=1;if(a=String(a),"rgb"==a.substring(0,3)){var d=a.indexOf("(",3),e=a.indexOf(")",d+1),f=a.substring(d+1,e).split(",");b="#";for(var g=0;3>g;g++)b+=z[Number(f[g])];4==f.length&&"a"==a.substr(3,1)&&(c=f[3])}else b=a;return{color:b,alpha:c}}function i(a){switch(a){case"butt":return"flat";case"round":return"round";case"square":default:return"square"}}function j(a){this.m_=e(),this.mStack_=[],this.aStack_=[],this.currentPath_=[],this.strokeStyle="#000",this.fillStyle="#000",this.lineWidth=1,this.lineJoin="miter",this.lineCap="butt",this.miterLimit=1*v,this.globalAlpha=1,this.canvas=a;var b=a.ownerDocument.createElement("div");b.style.width=a.clientWidth+"px",b.style.height=a.clientHeight+"px",b.style.overflow="hidden",b.style.position="absolute",a.appendChild(b),this.element_=b,this.arcScaleX_=1,this.arcScaleY_=1,this.lineScale_=1}function k(a,b,c,d){a.currentPath_.push({type:"bezierCurveTo",cp1x:b.x,cp1y:b.y,cp2x:c.x,cp2y:c.y,x:d.x,y:d.y}),a.currentX_=d.x,a.currentY_=d.y}function l(a){for(var b=0;3>b;b++)for(var c=0;2>c;c++)if(!isFinite(a[b][c])||isNaN(a[b][c]))return!1;return!0}function m(a,b,c){if(l(b)&&(a.m_=b,c)){var d=b[0][0]*b[1][1]-b[0][1]*b[1][0];a.lineScale_=u(t(d))}}function n(a){this.type_=a,this.x0_=0,this.y0_=0,this.r0_=0,this.x1_=0,this.y1_=0,this.r1_=0,this.colors_=[]}function o(){}var p=Math,q=p.round,r=p.sin,s=p.cos,t=p.abs,u=p.sqrt,v=10,w=v/2,x=Array.prototype.slice,y={init:function(a){if(/MSIE/.test(navigator.userAgent)&&!window.opera){var c=a||document;c.createElement("canvas"),c.attachEvent("onreadystatechange",b(this.init_,this,c))}},init_:function(a){if(a.namespaces.g_vml_||a.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml","#default#VML"),a.namespaces.g_o_||a.namespaces.add("g_o_","urn:schemas-microsoft-com:office:office","#default#VML"),!a.styleSheets.ex_canvas_)var b=null,c="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}g_vml_\\:*{behavior:url(#default#VML)}g_o_\\:*{behavior:url(#default#VML)}";try{b=a.createStyleSheet(),b.owningElement.id="ex_canvas_",b.cssText=c}catch(d){b=document.styleSheets[document.styleSheets.length-1],b.cssText+="\r\n"+c}for(var e=a.getElementsByTagName("canvas"),f=0;fA;A++)for(var B=0;16>B;B++)z[16*A+B]=A.toString(16)+B.toString(16);var C=j.prototype;C.clearRect=function(){this.element_.innerHTML=""},C.beginPath=function(){this.currentPath_=[]},C.moveTo=function(a,b){var c=this.getCoords_(a,b);this.currentPath_.push({type:"moveTo",x:c.x,y:c.y}),this.currentX_=c.x,this.currentY_=c.y},C.lineTo=function(a,b){var c=this.getCoords_(a,b);this.currentPath_.push({type:"lineTo",x:c.x,y:c.y}),this.currentX_=c.x,this.currentY_=c.y},C.bezierCurveTo=function(a,b,c,d,e,f){var g=this.getCoords_(e,f),h=this.getCoords_(a,b),i=this.getCoords_(c,d);k(this,h,i,g)},C.quadraticCurveTo=function(a,b,c,d){var e=this.getCoords_(a,b),f=this.getCoords_(c,d),g={x:this.currentX_+2/3*(e.x-this.currentX_),y:this.currentY_+2/3*(e.y-this.currentY_)},h={x:g.x+(f.x-this.currentX_)/3,y:g.y+(f.y-this.currentY_)/3};k(this,g,h,f)},C.arc=function(a,b,c,d,e,f){c*=v;var g=f?"at":"wa",h=a+s(d)*c-w,i=b+r(d)*c-w,j=a+s(e)*c-w,k=b+r(e)*c-w;h!=j||f||(h+=.125);var l=this.getCoords_(a,b),m=this.getCoords_(h,i),n=this.getCoords_(j,k);this.currentPath_.push({type:g,x:l.x,y:l.y,radius:c,xStart:m.x,yStart:m.y,xEnd:n.x,yEnd:n.y})},C.rect=function(a,b,c,d){this.moveTo(a,b),this.lineTo(a+c,b),this.lineTo(a+c,b+d),this.lineTo(a,b+d),this.closePath()},C.strokeRect=function(a,b,c,d){var e=this.currentPath_;this.beginPath(),this.moveTo(a,b),this.lineTo(a+c,b),this.lineTo(a+c,b+d),this.lineTo(a,b+d),this.closePath(),this.stroke(),this.currentPath_=e},C.fillRect=function(a,b,c,d){var e=this.currentPath_;this.beginPath(),this.moveTo(a,b),this.lineTo(a+c,b),this.lineTo(a+c,b+d),this.lineTo(a,b+d),this.closePath(),this.fill(),this.currentPath_=e},C.createLinearGradient=function(a,b,c,d){var e=new n("gradient");return e.x0_=a,e.y0_=b,e.x1_=c,e.y1_=d,e},C.createRadialGradient=function(a,b,c,d,e,f){var g=new n("gradientradial");return g.x0_=a,g.y0_=b,g.r0_=c,g.x1_=d,g.y1_=e,g.r1_=f,g},C.drawImage=function(a,b){var c,d,e,f,g,h,i,j,k=a.runtimeStyle.width,l=a.runtimeStyle.height;a.runtimeStyle.width="auto",a.runtimeStyle.height="auto";var m=a.width,n=a.height;if(a.runtimeStyle.width=k,a.runtimeStyle.height=l,3==arguments.length)c=arguments[1],d=arguments[2],g=h=0,i=e=m,j=f=n;else if(5==arguments.length)c=arguments[1],d=arguments[2],e=arguments[3],f=arguments[4],g=h=0,i=m,j=n;else{if(9!=arguments.length)throw Error("Invalid number of arguments");g=arguments[1],h=arguments[2],i=arguments[3],j=arguments[4],c=arguments[5],d=arguments[6],e=arguments[7],f=arguments[8]}var o=this.getCoords_(c,d),r=[],s=10,t=10;if(r.push(" ',' "," "),this.element_.insertAdjacentHTML("BeforeEnd",r.join(""))},C.stroke=function(a){var b=[],c=h(a?this.fillStyle:this.strokeStyle),d=c.color,e=c.alpha*this.globalAlpha,f=10,g=10;b.push("k.x)&&(k.x=n.x),(null==j.y||n.yk.y)&&(k.y=n.y))}if(b.push(' ">'),a)if("object"==typeof this.fillStyle){var o=this.fillStyle,r=0,s={x:0,y:0},t=0,u=1;if("gradient"==o.type_){var w=o.x0_/this.arcScaleX_,x=o.y0_/this.arcScaleY_,y=o.x1_/this.arcScaleX_,z=o.y1_/this.arcScaleY_,A=this.getCoords_(w,x),B=this.getCoords_(y,z),C=B.x-A.x,D=B.y-A.y;r=180*Math.atan2(C,D)/Math.PI,0>r&&(r+=360),1e-6>r&&(r=0)}else{var A=this.getCoords_(o.x0_,o.y0_),E=k.x-j.x,F=k.y-j.y;s={x:(A.x-j.x)/E,y:(A.y-j.y)/F},E/=this.arcScaleX_*v,F/=this.arcScaleY_*v;var G=p.max(E,F);t=2*o.r0_/G,u=2*o.r1_/G-t}var H=o.colors_;H.sort(function(a,b){return a.offset-b.offset});for(var I=H.length,J=H[0].color,K=H[I-1].color,L=H[0].alpha*this.globalAlpha,M=H[I-1].alpha*this.globalAlpha,N=[],l=0;I>l;l++){var O=H[l];N.push(O.offset*u+t+" "+O.color)}b.push(' ')}else b.push(' ');else{var P=this.lineScale_*this.lineWidth;1>P&&(e*=P),b.push(" ')}b.push(" "),this.element_.insertAdjacentHTML("beforeEnd",b.join(""))},C.fill=function(){this.stroke(!0)},C.closePath=function(){this.currentPath_.push({type:"close"})},C.getCoords_=function(a,b){var c=this.m_;return{x:v*(a*c[0][0]+b*c[1][0]+c[2][0])-w,y:v*(a*c[0][1]+b*c[1][1]+c[2][1])-w}},C.save=function(){var a={};g(this,a),this.aStack_.push(a),this.mStack_.push(this.m_),this.m_=f(e(),this.m_)},C.restore=function(){g(this.aStack_.pop(),this),this.m_=this.mStack_.pop()},C.translate=function(a,b){var c=[[1,0,0],[0,1,0],[a,b,1]];m(this,f(c,this.m_),!1)},C.rotate=function(a){var b=s(a),c=r(a),d=[[b,c,0],[-c,b,0],[0,0,1]];m(this,f(d,this.m_),!1)},C.scale=function(a,b){this.arcScaleX_*=a,this.arcScaleY_*=b;var c=[[a,0,0],[0,b,0],[0,0,1]];m(this,f(c,this.m_),!0)},C.transform=function(a,b,c,d,e,g){var h=[[a,b,0],[c,d,0],[e,g,1]];m(this,f(h,this.m_),!0)},C.setTransform=function(a,b,c,d,e,f){var g=[[a,b,0],[c,d,0],[e,f,1]];m(this,g,!0)},C.clip=function(){},C.arcTo=function(){},C.createPattern=function(){return new o},n.prototype.addColorStop=function(a,b){b=h(b),this.colors_.push({offset:a,color:b.color,alpha:b.alpha})},G_vmlCanvasManager=y,CanvasRenderingContext2D=j,CanvasGradient=n,CanvasPattern=o}();var Froogaloop=function(){function a(b){return new a.fn.init(b)}function b(a,b,c){if(!c.contentWindow.postMessage)return!1;var d=c.getAttribute("src").split("?")[0],e=JSON.stringify({method:a,value:b});"//"===d.substr(0,2)&&(d=window.location.protocol+d),c.contentWindow.postMessage(e,d)}function c(a){var b,c;try{b=JSON.parse(a.data),c=b.event||b.method}catch(d){}if("ready"!=c||j||(j=!0),a.origin!=k)return!1;var f=b.value,g=b.data,h=""===h?null:b.player_id,i=e(c,h),l=[];return i?(void 0!==f&&l.push(f),g&&l.push(g),h&&l.push(h),l.length>0?i.apply(null,l):i.call()):!1}function d(a,b,c){c?(i[c]||(i[c]={}),i[c][a]=b):i[a]=b}function e(a,b){return b?i[b][a]:i[a]}function f(a,b){if(b&&i[b]){if(!i[b][a])return!1;i[b][a]=null}else{if(!i[a])return!1;i[a]=null}return!0}function g(a){"//"===a.substr(0,2)&&(a=window.location.protocol+a);for(var b=a.split("/"),c="",d=0,e=b.length;e>d&&3>d;d++)c+=b[d],2>d&&(c+="/");return c}function h(a){return!!(a&&a.constructor&&a.call&&a.apply)}var i={},j=!1,k=(Array.prototype.slice,"");return a.fn=a.prototype={element:null,init:function(a){return"string"==typeof a&&(a=document.getElementById(a)),this.element=a,k=g(this.element.getAttribute("src")),this},api:function(a,c){if(!this.element||!a)return!1;var e=this,f=e.element,g=""!==f.id?f.id:null,i=h(c)?null:c,j=h(c)?c:null;return j&&d(a,j,g),b(a,i,f),e},addEvent:function(a,c){if(!this.element)return!1;var e=this,f=e.element,g=""!==f.id?f.id:null;return d(a,c,g),"ready"!=a?b("addEventListener",a,f):"ready"==a&&j&&c.call(null,g),e},removeEvent:function(a){if(!this.element)return!1;var c=this,d=c.element,e=""!==d.id?d.id:null,g=f(a,e);"ready"!=a&&g&&b("removeEventListener",a,d)}},a.fn.init.prototype=a.fn,window.addEventListener?window.addEventListener("message",c,!1):window.attachEvent("onmessage",c),window.Froogaloop=window.$f=a}();(function(){function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;bc;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a){this.src=a,n[a]=this}var j=a.jQuery,k=a.console,l="undefined"!=typeof k,m=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0,b=this.elements.length;b>a;a++){var c=this.elements[a];"IMG"===c.nodeName&&this.addImage(c);var d=c.nodeType;if(d&&(1===d||9===d||11===d))for(var e=c.querySelectorAll("img"),f=0,g=e.length;g>f;f++){var h=e[f];this.addImage(h)}}},g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.check=function(){function a(a,e){return b.options.debug&&l&&k.log("confirm",a,e),b.progress(a),c++,c===d&&b.complete(),!0}var b=this,c=0,d=this.images.length;if(this.hasAnyBroken=!1,!d)return void this.complete();for(var e=0;d>e;e++){var f=this.images[e];f.on("confirm",a),f.check()}},g.prototype.progress=function(a){this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded;var b=this;setTimeout(function(){b.emit("progress",b,a),b.jqDeferred&&b.jqDeferred.notify&&b.jqDeferred.notify(b,a)})},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var b=this;setTimeout(function(){if(b.emit(a,b),b.emit("always",b),b.jqDeferred){var c=b.hasAnyBroken?"reject":"resolve";b.jqDeferred[c](b)}})},j&&(j.fn.imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))}),h.prototype=new b,h.prototype.check=function(){var a=n[this.img.src]||new i(this.img.src);if(a.isConfirmed)return void this.confirm(a.isLoaded,"cached was confirmed");if(this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var b=this;a.on("confirm",function(a,c){return b.confirm(a.isLoaded,c),!0}),a.check()},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("confirm",this,b)};var n={};return i.prototype=new b,i.prototype.check=function(){if(!this.isChecked){var a=new Image;c.bind(a,"load",this),c.bind(a,"error",this),a.src=this.src,this.isChecked=!0}},i.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},i.prototype.onload=function(a){this.confirm(!0,"onload"),this.unbindProxyEvents(a)},i.prototype.onerror=function(a){this.confirm(!1,"onerror"),this.unbindProxyEvents(a)},i.prototype.confirm=function(a,b){this.isConfirmed=!0,this.isLoaded=a,this.emit("confirm",this,b)},i.prototype.unbindProxyEvents=function(a){c.unbind(a.target,"load",this),c.unbind(a.target,"error",this)},g}),function(a){function b(){}function c(a){function c(b){b.prototype.option||(b.prototype.option=function(b){a.isPlainObject(b)&&(this.options=a.extend(!0,this.options,b))})}function e(b,c){a.fn[b]=function(e){if("string"==typeof e){for(var g=d.call(arguments,1),h=0,i=this.length;i>h;h++){var j=this[h],k=a.data(j,b);if(k)if(a.isFunction(k[e])&&"_"!==e.charAt(0)){var l=k[e].apply(k,g);if(void 0!==l)return l}else f("no such method '"+e+"' for "+b+" instance");else f("cannot call methods on "+b+" prior to initialization; attempted to call '"+e+"'")}return this}return this.each(function(){var d=a.data(this,b);d?(d.option(e),d._init()):(d=new c(this,e),a.data(this,b,d))})}}if(a){var f="undefined"==typeof console?b:function(a){};return a.bridget=function(a,b){c(b),e(a,b)},a.bridget}}var d=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],c):c("object"==typeof exports?require("jquery"):a.jQuery)}(window),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):"object"==typeof exports?module.exports=f:a.eventie=f}(this),function(a){function b(a){"function"==typeof a&&(b.isReady?a():g.push(a))}function c(a){var c="readystatechange"===a.type&&"complete"!==f.readyState;b.isReady||c||d()}function d(){b.isReady=!0;for(var a=0,c=g.length;c>a;a++){var d=g[a];d()}}function e(e){return"complete"===f.readyState?d():(e.bind(f,"DOMContentLoaded",c),e.bind(f,"readystatechange",c),e.bind(a,"load",c)),b}var f=a.document,g=[];b.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],e):"object"==typeof exports?module.exports=e(require("eventie")):a.docReady=e(a.eventie)}(window),function(){function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if(a instanceof RegExp){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;be;e++)if(b=c[e]+a,"string"==typeof d[b])return b}}var c="Webkit Moz ms Ms O".split(" "),d=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return b}):"object"==typeof exports?module.exports=b:a.getStyleProperty=b}(window),function(a,b){function c(a){var b=parseFloat(a),c=-1===a.indexOf("%")&&!isNaN(b);return c&&b}function d(){}function e(){for(var a={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},b=0,c=h.length;c>b;b++){var d=h[b];a[d]=0}return a}function f(b){function d(){if(!m){m=!0;var d=a.getComputedStyle;if(j=function(){var a=d?function(a){return d(a,null)}:function(a){return a.currentStyle};return function(b){var c=a(b);return c||g("Style returned "+c+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),c}}(),k=b("boxSizing")){var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style[k]="border-box";var f=document.body||document.documentElement;f.appendChild(e);var h=j(e);l=200===c(h.width),f.removeChild(e)}}}function f(a){if(d(),"string"==typeof a&&(a=document.querySelector(a)),a&&"object"==typeof a&&a.nodeType){var b=j(a);if("none"===b.display)return e();var f={};f.width=a.offsetWidth,f.height=a.offsetHeight;for(var g=f.isBorderBox=!(!k||!b[k]||"border-box"!==b[k]),m=0,n=h.length;n>m;m++){var o=h[m],p=b[o];p=i(a,p);var q=parseFloat(p);f[o]=isNaN(q)?0:q}var r=f.paddingLeft+f.paddingRight,s=f.paddingTop+f.paddingBottom,t=f.marginLeft+f.marginRight,u=f.marginTop+f.marginBottom,v=f.borderLeftWidth+f.borderRightWidth,w=f.borderTopWidth+f.borderBottomWidth,x=g&&l,y=c(b.width);y!==!1&&(f.width=y+(x?0:r+v));var z=c(b.height);return z!==!1&&(f.height=z+(x?0:s+w)),f.innerWidth=f.width-(r+v),f.innerHeight=f.height-(s+w),f.outerWidth=f.width+t,f.outerHeight=f.height+u,f}}function i(b,c){if(a.getComputedStyle||-1===c.indexOf("%"))return c;var d=b.style,e=d.left,f=b.runtimeStyle,g=f&&f.left;return g&&(f.left=b.currentStyle.left),d.left=c,c=d.pixelLeft,d.left=e,g&&(f.left=g),c}var j,k,l,m=!1;return f}var g="undefined"==typeof console?d:function(a){},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],f):"object"==typeof exports?module.exports=f(require("desandro-get-style-property")):a.getSize=f(a.getStyleProperty)}(window),function(a){function b(a,b){return a[g](b)}function c(a){if(!a.parentNode){var b=document.createDocumentFragment();b.appendChild(a)}}function d(a,b){c(a);for(var d=a.parentNode.querySelectorAll(b),e=0,f=d.length;f>e;e++)if(d[e]===a)return!0;return!1}function e(a,d){return c(a),b(a,d)}var f,g=function(){if(a.matchesSelector)return"matchesSelector";for(var b=["webkit","moz","ms","o"],c=0,d=b.length;d>c;c++){var e=b[c],f=e+"MatchesSelector";if(a[f])return f}}();if(g){var h=document.createElement("div"),i=b(h,"div");f=i?b:e}else f=d;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return f}):"object"==typeof exports?module.exports=f:window.matchesSelector=f}(Element.prototype),function(a){function b(a,b){for(var c in b)a[c]=b[c];return a}function c(a){for(var b in a)return!1;return b=null,!0}function d(a){return a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})}function e(a,e,f){function h(a,b){a&&(this.element=a,this.layout=b,this.position={x:0,y:0},this._create())}var i=f("transition"),j=f("transform"),k=i&&j,l=!!f("perspective"),m={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[i],n=["transform","transition","transitionDuration","transitionProperty"],o=function(){for(var a={},b=0,c=n.length;c>b;b++){var d=n[b],e=f(d);e&&e!==d&&(a[d]=e)}return a}();b(h.prototype,a.prototype),h.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},h.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},h.prototype.getSize=function(){this.size=e(this.element)},h.prototype.css=function(a){var b=this.element.style;for(var c in a){var d=o[c]||c;b[d]=a[c]}},h.prototype.getPosition=function(){var a=g(this.element),b=this.layout.options,c=b.isOriginLeft,d=b.isOriginTop,e=parseInt(a[c?"left":"right"],10),f=parseInt(a[d?"top":"bottom"],10);e=isNaN(e)?0:e,f=isNaN(f)?0:f;var h=this.layout.size;e-=c?h.paddingLeft:h.paddingRight,f-=d?h.paddingTop:h.paddingBottom,this.position.x=e,this.position.y=f},h.prototype.layoutPosition=function(){var a=this.layout.size,b=this.layout.options,c={};b.isOriginLeft?(c.left=this.position.x+a.paddingLeft+"px",c.right=""):(c.right=this.position.x+a.paddingRight+"px",c.left=""),b.isOriginTop?(c.top=this.position.y+a.paddingTop+"px",c.bottom=""):(c.bottom=this.position.y+a.paddingBottom+"px",c.top=""),this.css(c),this.emitEvent("layout",[this])};var p=l?function(a,b){return"translate3d("+a+"px, "+b+"px, 0)"}:function(a,b){
return"translate("+a+"px, "+b+"px)"};h.prototype._transitionTo=function(a,b){this.getPosition();var c=this.position.x,d=this.position.y,e=parseInt(a,10),f=parseInt(b,10),g=e===this.position.x&&f===this.position.y;if(this.setPosition(a,b),g&&!this.isTransitioning)return void this.layoutPosition();var h=a-c,i=b-d,j={},k=this.layout.options;h=k.isOriginLeft?h:-h,i=k.isOriginTop?i:-i,j.transform=p(h,i),this.transition({to:j,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},h.prototype.goTo=function(a,b){this.setPosition(a,b),this.layoutPosition()},h.prototype.moveTo=k?h.prototype._transitionTo:h.prototype.goTo,h.prototype.setPosition=function(a,b){this.position.x=parseInt(a,10),this.position.y=parseInt(b,10)},h.prototype._nonTransition=function(a){this.css(a.to),a.isCleaning&&this._removeStyles(a.to);for(var b in a.onTransitionEnd)a.onTransitionEnd[b].call(this)},h.prototype._transition=function(a){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(a);var b=this._transn;for(var c in a.onTransitionEnd)b.onEnd[c]=a.onTransitionEnd[c];for(c in a.to)b.ingProperties[c]=!0,a.isCleaning&&(b.clean[c]=!0);if(a.from){this.css(a.from);var d=this.element.offsetHeight;d=null}this.enableTransition(a.to),this.css(a.to),this.isTransitioning=!0};var q=j&&d(j)+",opacity";h.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:q,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(m,this,!1))},h.prototype.transition=h.prototype[i?"_transition":"_nonTransition"],h.prototype.onwebkitTransitionEnd=function(a){this.ontransitionend(a)},h.prototype.onotransitionend=function(a){this.ontransitionend(a)};var r={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};h.prototype.ontransitionend=function(a){if(a.target===this.element){var b=this._transn,d=r[a.propertyName]||a.propertyName;if(delete b.ingProperties[d],c(b.ingProperties)&&this.disableTransition(),d in b.clean&&(this.element.style[a.propertyName]="",delete b.clean[d]),d in b.onEnd){var e=b.onEnd[d];e.call(this),delete b.onEnd[d]}this.emitEvent("transitionEnd",[this])}},h.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(m,this,!1),this.isTransitioning=!1},h.prototype._removeStyles=function(a){var b={};for(var c in a)b[c]="";this.css(b)};var s={transitionProperty:"",transitionDuration:""};return h.prototype.removeTransitionStyles=function(){this.css(s)},h.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.emitEvent("remove",[this])},h.prototype.remove=function(){if(!i||!parseFloat(this.layout.options.transitionDuration))return void this.removeElem();var a=this;this.on("transitionEnd",function(){return a.removeElem(),!0}),this.hide()},h.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var a=this.layout.options;this.transition({from:a.hiddenStyle,to:a.visibleStyle,isCleaning:!0})},h.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var a=this.layout.options;this.transition({from:a.visibleStyle,to:a.hiddenStyle,isCleaning:!0,onTransitionEnd:{opacity:function(){this.isHidden&&this.css({display:"none"})}}})},h.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},h}var f=a.getComputedStyle,g=f?function(a){return f(a,null)}:function(a){return a.currentStyle};"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property"],e):"object"==typeof exports?module.exports=e(require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property")):(a.Outlayer={},a.Outlayer.Item=e(a.EventEmitter,a.getSize,a.getStyleProperty))}(window),function(a){function b(a,b){for(var c in b)a[c]=b[c];return a}function c(a){return"[object Array]"===l.call(a)}function d(a){var b=[];if(c(a))b=a;else if(a&&"number"==typeof a.length)for(var d=0,e=a.length;e>d;d++)b.push(a[d]);else b.push(a);return b}function e(a,b){var c=n(b,a);-1!==c&&b.splice(c,1)}function f(a){return a.replace(/(.)([A-Z])/g,function(a,b,c){return b+"-"+c}).toLowerCase()}function g(c,g,l,n,o,p){function q(a,c){if("string"==typeof a&&(a=h.querySelector(a)),!a||!m(a))return void(i&&i.error("Bad "+this.constructor.namespace+" element: "+a));this.element=a,this.options=b({},this.constructor.defaults),this.option(c);var d=++r;this.element.outlayerGUID=d,s[d]=this,this._create(),this.options.isInitLayout&&this.layout()}var r=0,s={};return q.namespace="outlayer",q.Item=p,q.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},b(q.prototype,l.prototype),q.prototype.option=function(a){b(this.options,a)},q.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),b(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},q.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},q.prototype._itemize=function(a){for(var b=this._filterFindItemElements(a),c=this.constructor.Item,d=[],e=0,f=b.length;f>e;e++){var g=b[e],h=new c(g,this);d.push(h)}return d},q.prototype._filterFindItemElements=function(a){a=d(a);for(var b=this.options.itemSelector,c=[],e=0,f=a.length;f>e;e++){var g=a[e];if(m(g))if(b){o(g,b)&&c.push(g);for(var h=g.querySelectorAll(b),i=0,j=h.length;j>i;i++)c.push(h[i])}else c.push(g)}return c},q.prototype.getItemElements=function(){for(var a=[],b=0,c=this.items.length;c>b;b++)a.push(this.items[b].element);return a},q.prototype.layout=function(){this._resetLayout(),this._manageStamps();var a=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,a),this._isLayoutInited=!0},q.prototype._init=q.prototype.layout,q.prototype._resetLayout=function(){this.getSize()},q.prototype.getSize=function(){this.size=n(this.element)},q.prototype._getMeasurement=function(a,b){var c,d=this.options[a];d?("string"==typeof d?c=this.element.querySelector(d):m(d)&&(c=d),this[a]=c?n(c)[b]:d):this[a]=0},q.prototype.layoutItems=function(a,b){a=this._getItemsForLayout(a),this._layoutItems(a,b),this._postLayout()},q.prototype._getItemsForLayout=function(a){for(var b=[],c=0,d=a.length;d>c;c++){var e=a[c];e.isIgnored||b.push(e)}return b},q.prototype._layoutItems=function(a,b){function c(){d.emitEvent("layoutComplete",[d,a])}var d=this;if(!a||!a.length)return void c();this._itemsOn(a,"layout",c);for(var e=[],f=0,g=a.length;g>f;f++){var h=a[f],i=this._getItemLayoutPosition(h);i.item=h,i.isInstant=b||h.isLayoutInstant,e.push(i)}this._processLayoutQueue(e)},q.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},q.prototype._processLayoutQueue=function(a){for(var b=0,c=a.length;c>b;b++){var d=a[b];this._positionItem(d.item,d.x,d.y,d.isInstant)}},q.prototype._positionItem=function(a,b,c,d){d?a.goTo(b,c):a.moveTo(b,c)},q.prototype._postLayout=function(){this.resizeContainer()},q.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var a=this._getContainerSize();a&&(this._setContainerMeasure(a.width,!0),this._setContainerMeasure(a.height,!1))}},q.prototype._getContainerSize=k,q.prototype._setContainerMeasure=function(a,b){if(void 0!==a){var c=this.size;c.isBorderBox&&(a+=b?c.paddingLeft+c.paddingRight+c.borderLeftWidth+c.borderRightWidth:c.paddingBottom+c.paddingTop+c.borderTopWidth+c.borderBottomWidth),a=Math.max(a,0),this.element.style[b?"width":"height"]=a+"px"}},q.prototype._itemsOn=function(a,b,c){function d(){return e++,e===f&&c.call(g),!0}for(var e=0,f=a.length,g=this,h=0,i=a.length;i>h;h++){var j=a[h];j.on(b,d)}},q.prototype.ignore=function(a){var b=this.getItem(a);b&&(b.isIgnored=!0)},q.prototype.unignore=function(a){var b=this.getItem(a);b&&delete b.isIgnored},q.prototype.stamp=function(a){if(a=this._find(a)){this.stamps=this.stamps.concat(a);for(var b=0,c=a.length;c>b;b++){var d=a[b];this.ignore(d)}}},q.prototype.unstamp=function(a){if(a=this._find(a))for(var b=0,c=a.length;c>b;b++){var d=a[b];e(d,this.stamps),this.unignore(d)}},q.prototype._find=function(a){return a?("string"==typeof a&&(a=this.element.querySelectorAll(a)),a=d(a)):void 0},q.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var a=0,b=this.stamps.length;b>a;a++){var c=this.stamps[a];this._manageStamp(c)}}},q.prototype._getBoundingRect=function(){var a=this.element.getBoundingClientRect(),b=this.size;this._boundingRect={left:a.left+b.paddingLeft+b.borderLeftWidth,top:a.top+b.paddingTop+b.borderTopWidth,right:a.right-(b.paddingRight+b.borderRightWidth),bottom:a.bottom-(b.paddingBottom+b.borderBottomWidth)}},q.prototype._manageStamp=k,q.prototype._getElementOffset=function(a){var b=a.getBoundingClientRect(),c=this._boundingRect,d=n(a),e={left:b.left-c.left-d.marginLeft,top:b.top-c.top-d.marginTop,right:c.right-b.right-d.marginRight,bottom:c.bottom-b.bottom-d.marginBottom};return e},q.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},q.prototype.bindResize=function(){this.isResizeBound||(c.bind(a,"resize",this),this.isResizeBound=!0)},q.prototype.unbindResize=function(){this.isResizeBound&&c.unbind(a,"resize",this),this.isResizeBound=!1},q.prototype.onresize=function(){function a(){b.resize(),delete b.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var b=this;this.resizeTimeout=setTimeout(a,100)},q.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},q.prototype.needsResizeLayout=function(){var a=n(this.element),b=this.size&&a;return b&&a.innerWidth!==this.size.innerWidth},q.prototype.addItems=function(a){var b=this._itemize(a);return b.length&&(this.items=this.items.concat(b)),b},q.prototype.appended=function(a){var b=this.addItems(a);b.length&&(this.layoutItems(b,!0),this.reveal(b))},q.prototype.prepended=function(a){var b=this._itemize(a);if(b.length){var c=this.items.slice(0);this.items=b.concat(c),this._resetLayout(),this._manageStamps(),this.layoutItems(b,!0),this.reveal(b),this.layoutItems(c)}},q.prototype.reveal=function(a){var b=a&&a.length;if(b)for(var c=0;b>c;c++){var d=a[c];d.reveal()}},q.prototype.hide=function(a){var b=a&&a.length;if(b)for(var c=0;b>c;c++){var d=a[c];d.hide()}},q.prototype.getItem=function(a){for(var b=0,c=this.items.length;c>b;b++){var d=this.items[b];if(d.element===a)return d}},q.prototype.getItems=function(a){if(a&&a.length){for(var b=[],c=0,d=a.length;d>c;c++){var e=a[c],f=this.getItem(e);f&&b.push(f)}return b}},q.prototype.remove=function(a){a=d(a);var b=this.getItems(a);if(b&&b.length){this._itemsOn(b,"remove",function(){this.emitEvent("removeComplete",[this,b])});for(var c=0,f=b.length;f>c;c++){var g=b[c];g.remove(),e(g,this.items)}}},q.prototype.destroy=function(){var a=this.element.style;a.height="",a.position="",a.width="";for(var b=0,c=this.items.length;c>b;b++){var d=this.items[b];d.destroy()}this.unbindResize();var e=this.element.outlayerGUID;delete s[e],delete this.element.outlayerGUID,j&&j.removeData(this.element,this.constructor.namespace)},q.data=function(a){var b=a&&a.outlayerGUID;return b&&s[b]},q.create=function(a,c){function d(){q.apply(this,arguments)}return Object.create?d.prototype=Object.create(q.prototype):b(d.prototype,q.prototype),d.prototype.constructor=d,d.defaults=b({},q.defaults),b(d.defaults,c),d.prototype.settings={},d.namespace=a,d.data=q.data,d.Item=function(){p.apply(this,arguments)},d.Item.prototype=new p,g(function(){for(var b=f(a),c=h.querySelectorAll(".js-"+b),e="data-"+b+"-options",g=0,k=c.length;k>g;g++){var l,m=c[g],n=m.getAttribute(e);try{l=n&&JSON.parse(n)}catch(o){i&&i.error("Error parsing "+e+" on "+m.nodeName.toLowerCase()+(m.id?"#"+m.id:"")+": "+o);continue}var p=new d(m,l);j&&j.data(m,a,p)}}),j&&j.bridget&&j.bridget(a,d),d},q.Item=p,q}var h=a.document,i=a.console,j=a.jQuery,k=function(){},l=Object.prototype.toString,m="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(a){return a instanceof HTMLElement}:function(a){return a&&"object"==typeof a&&1===a.nodeType&&"string"==typeof a.nodeName},n=Array.prototype.indexOf?function(a,b){return a.indexOf(b)}:function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1};"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","doc-ready/doc-ready","eventEmitter/EventEmitter","get-size/get-size","matches-selector/matches-selector","./item"],g):"object"==typeof exports?module.exports=g(require("eventie"),require("doc-ready"),require("wolfy87-eventemitter"),require("get-size"),require("desandro-matches-selector"),require("./item")):a.Outlayer=g(a.eventie,a.docReady,a.EventEmitter,a.getSize,a.matchesSelector,a.Outlayer.Item)}(window),function(a){function b(a){function b(){a.Item.apply(this,arguments)}b.prototype=new a.Item,b.prototype._create=function(){this.id=this.layout.itemGUID++,a.Item.prototype._create.call(this),this.sortData={}},b.prototype.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var a=this.layout.options.getSortData,b=this.layout._sorters;for(var c in a){var d=b[c];this.sortData[c]=d(this.element,this)}}};var c=b.prototype.destroy;return b.prototype.destroy=function(){c.apply(this,arguments),this.css({display:""})},b}"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],b):"object"==typeof exports?module.exports=b(require("outlayer")):(a.Isotope=a.Isotope||{},a.Isotope.Item=b(a.Outlayer))}(window),function(a){function b(a,b){function c(a){this.isotope=a,a&&(this.options=a.options[this.namespace],this.element=a.element,this.items=a.filteredItems,this.size=a.size)}return function(){function a(a){return function(){return b.prototype[a].apply(this.isotope,arguments)}}for(var d=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout"],e=0,f=d.length;f>e;e++){var g=d[e];c.prototype[g]=a(g)}}(),c.prototype.needsVerticalResizeLayout=function(){var b=a(this.isotope.element),c=this.isotope.size&&b;return c&&b.innerHeight!==this.isotope.size.innerHeight},c.prototype._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},c.prototype.getColumnWidth=function(){this.getSegmentSize("column","Width")},c.prototype.getRowHeight=function(){this.getSegmentSize("row","Height")},c.prototype.getSegmentSize=function(a,b){var c=a+b,d="outer"+b;if(this._getMeasurement(c,d),!this[c]){var e=this.getFirstItemSize();this[c]=e&&e[d]||this.isotope.size["inner"+b]}},c.prototype.getFirstItemSize=function(){var b=this.isotope.filteredItems[0];return b&&b.element&&a(b.element)},c.prototype.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},c.prototype.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},c.modes={},c.create=function(a,b){function d(){c.apply(this,arguments)}return d.prototype=new c,b&&(d.options=b),d.prototype.namespace=a,c.modes[a]=d,d},c}"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],b):"object"==typeof exports?module.exports=b(require("get-size"),require("outlayer")):(a.Isotope=a.Isotope||{},a.Isotope.LayoutMode=b(a.getSize,a.Outlayer))}(window),function(a){function b(a,b){var d=a.create("masonry");return d.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var a=this.cols;for(this.colYs=[];a--;)this.colYs.push(0);this.maxY=0},d.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var a=this.items[0],c=a&&a.element;this.columnWidth=c&&b(c).outerWidth||this.containerWidth}this.columnWidth+=this.gutter,this.cols=Math.floor((this.containerWidth+this.gutter)/this.columnWidth),this.cols=Math.max(this.cols,1)},d.prototype.getContainerWidth=function(){var a=this.options.isFitWidth?this.element.parentNode:this.element,c=b(a);this.containerWidth=c&&c.innerWidth},d.prototype._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth%this.columnWidth,d=b&&1>b?"round":"ceil",e=Math[d](a.size.outerWidth/this.columnWidth);e=Math.min(e,this.cols);for(var f=this._getColGroup(e),g=Math.min.apply(Math,f),h=c(f,g),i={x:this.columnWidth*h,y:g},j=g+a.size.outerHeight,k=this.cols+1-f.length,l=0;k>l;l++)this.colYs[h+l]=j;return i},d.prototype._getColGroup=function(a){if(2>a)return this.colYs;for(var b=[],c=this.cols+1-a,d=0;c>d;d++){var e=this.colYs.slice(d,d+a);b[d]=Math.max.apply(Math,e)}return b},d.prototype._manageStamp=function(a){var c=b(a),d=this._getElementOffset(a),e=this.options.isOriginLeft?d.left:d.right,f=e+c.outerWidth,g=Math.floor(e/this.columnWidth);g=Math.max(0,g);var h=Math.floor(f/this.columnWidth);h-=f%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var i=(this.options.isOriginTop?d.top:d.bottom)+c.outerHeight,j=g;h>=j;j++)this.colYs[j]=Math.max(i,this.colYs[j])},d.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var a={height:this.maxY};return this.options.isFitWidth&&(a.width=this._getContainerFitWidth()),a},d.prototype._getContainerFitWidth=function(){for(var a=0,b=this.cols;--b&&0===this.colYs[b];)a++;return(this.cols-a)*this.columnWidth-this.gutter},d.prototype.needsResizeLayout=function(){var a=this.containerWidth;return this.getContainerWidth(),a!==this.containerWidth},d}var c=Array.prototype.indexOf?function(a,b){return a.indexOf(b)}:function(a,b){for(var c=0,d=a.length;d>c;c++){var e=a[c];if(e===b)return c}return-1};"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size"],b):"object"==typeof exports?module.exports=b(require("outlayer"),require("get-size")):a.Masonry=b(a.Outlayer,a.getSize)}(window),function(a){function b(a,b){for(var c in b)a[c]=b[c];return a}function c(a,c){var d=a.create("masonry"),e=d.prototype._getElementOffset,f=d.prototype.layout,g=d.prototype._getMeasurement;b(d.prototype,c.prototype),d.prototype._getElementOffset=e,d.prototype.layout=f,d.prototype._getMeasurement=g;var h=d.prototype.measureColumns;d.prototype.measureColumns=function(){this.items=this.isotope.filteredItems,h.call(this)};var i=d.prototype._manageStamp;return d.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft,this.options.isOriginTop=this.isotope.options.isOriginTop,i.apply(this,arguments)},d}"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],c):"object"==typeof exports?module.exports=c(require("../layout-mode"),require("masonry-layout")):c(a.Isotope.LayoutMode,a.Masonry)}(window),function(a){function b(a){var b=a.create("fitRows");return b.prototype._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},b.prototype._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth+this.gutter,c=this.isotope.size.innerWidth+this.gutter;0!==this.x&&b+this.x>c&&(this.x=0,this.y=this.maxY);var d={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+a.size.outerHeight),this.x+=b,d},b.prototype._getContainerSize=function(){return{height:this.maxY}},b}"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],b):"object"==typeof exports?module.exports=b(require("../layout-mode")):b(a.Isotope.LayoutMode)}(window),function(a){function b(a){var b=a.create("vertical",{horizontalAlignment:0});return b.prototype._resetLayout=function(){this.y=0},b.prototype._getItemLayoutPosition=function(a){a.getSize();var b=(this.isotope.size.innerWidth-a.size.outerWidth)*this.options.horizontalAlignment,c=this.y;return this.y+=a.size.outerHeight,{x:b,y:c}},b.prototype._getContainerSize=function(){return{height:this.y}},b}"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],b):"object"==typeof exports?module.exports=b(require("../layout-mode")):b(a.Isotope.LayoutMode)}(window),function(a){function b(a,b){for(var c in b)a[c]=b[c];return a}function c(a){return"[object Array]"===k.call(a)}function d(a){var b=[];if(c(a))b=a;else if(a&&"number"==typeof a.length)for(var d=0,e=a.length;e>d;d++)b.push(a[d]);else b.push(a);return b}function e(a,b){var c=l(b,a);-1!==c&&b.splice(c,1)}function f(a,c,f,i,k){function l(a,b){return function(c,d){for(var e=0,f=a.length;f>e;e++){var g=a[e],h=c.sortData[g],i=d.sortData[g];if(h>i||i>h){var j=void 0!==b[g]?b[g]:b,k=j?1:-1;return(h>i?1:-1)*k}}return 0}}var m=a.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});m.Item=i,m.LayoutMode=k,m.prototype._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),a.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var b in k.modes)this._initLayoutMode(b)},m.prototype.reloadItems=function(){this.itemGUID=0,a.prototype.reloadItems.call(this)},m.prototype._itemize=function(){for(var b=a.prototype._itemize.apply(this,arguments),c=0,d=b.length;d>c;c++){var e=b[c];e.id=this.itemGUID++}return this._updateItemsSortData(b),b},m.prototype._initLayoutMode=function(a){var c=k.modes[a],d=this.options[a]||{};this.options[a]=c.options?b(c.options,d):d,this.modes[a]=new c(this)},m.prototype.layout=function(){return!this._isLayoutInited&&this.options.isInitLayout?void this.arrange():void this._layout()},m.prototype._layout=function(){var a=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,a),this._isLayoutInited=!0},m.prototype.arrange=function(a){this.option(a),this._getIsInstant(),this.filteredItems=this._filter(this.items),this._sort(),this._layout()},m.prototype._init=m.prototype.arrange,m.prototype._getIsInstant=function(){var a=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=a,a},m.prototype._filter=function(a){function b(){l.reveal(e),l.hide(f)}var c=this.options.filter;c=c||"*";for(var d=[],e=[],f=[],g=this._getFilterTest(c),h=0,i=a.length;i>h;h++){var j=a[h];if(!j.isIgnored){var k=g(j);k&&d.push(j),k&&j.isHidden?e.push(j):k||j.isHidden||f.push(j)}}var l=this;return this._isInstant?this._noTransition(b):b(),d},m.prototype._getFilterTest=function(a){return g&&this.options.isJQueryFiltering?function(b){return g(b.element).is(a)}:"function"==typeof a?function(b){return a(b.element)}:function(b){return f(b.element,a)}},m.prototype.updateSortData=function(a){var b;a?(a=d(a),b=this.getItems(a)):b=this.items,this._getSorters(),this._updateItemsSortData(b)},m.prototype._getSorters=function(){var a=this.options.getSortData;for(var b in a){var c=a[b];this._sorters[b]=n(c)}},m.prototype._updateItemsSortData=function(a){for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.updateSortData()}};var n=function(){function a(a){if("string"!=typeof a)return a;var c=h(a).split(" "),d=c[0],e=d.match(/^\[(.+)\]$/),f=e&&e[1],g=b(f,d),i=m.sortDataParsers[c[1]];return a=i?function(a){return a&&i(g(a))}:function(a){return a&&g(a)}}function b(a,b){var c;return c=a?function(b){return b.getAttribute(a)}:function(a){var c=a.querySelector(b);return c&&j(c)}}return a}();m.sortDataParsers={parseInt:function(a){return parseInt(a,10)},parseFloat:function(a){return parseFloat(a)}},m.prototype._sort=function(){var a=this.options.sortBy;if(a){var b=[].concat.apply(a,this.sortHistory),c=l(b,this.options.sortAscending);this.filteredItems.sort(c),a!==this.sortHistory[0]&&this.sortHistory.unshift(a)}},m.prototype._mode=function(){var a=this.options.layoutMode,b=this.modes[a];if(!b)throw new Error("No layout mode: "+a);return b.options=this.options[a],b},m.prototype._resetLayout=function(){a.prototype._resetLayout.call(this),this._mode()._resetLayout()},m.prototype._getItemLayoutPosition=function(a){return this._mode()._getItemLayoutPosition(a)},m.prototype._manageStamp=function(a){this._mode()._manageStamp(a)},m.prototype._getContainerSize=function(){return this._mode()._getContainerSize()},m.prototype.needsResizeLayout=function(){return this._mode().needsResizeLayout()},m.prototype.appended=function(a){var b=this.addItems(a);if(b.length){var c=this._filterRevealAdded(b);this.filteredItems=this.filteredItems.concat(c)}},m.prototype.prepended=function(a){var b=this._itemize(a);if(b.length){var c=this.items.slice(0);this.items=b.concat(c),this._resetLayout(),this._manageStamps();var d=this._filterRevealAdded(b);this.layoutItems(c),this.filteredItems=d.concat(this.filteredItems)}},m.prototype._filterRevealAdded=function(a){var b=this._noTransition(function(){return this._filter(a)});return this.layoutItems(b,!0),this.reveal(b),a},m.prototype.insert=function(a){var b=this.addItems(a);if(b.length){var c,d,e=b.length;for(c=0;e>c;c++)d=b[c],this.element.appendChild(d.element);var f=this._filter(b);for(this._noTransition(function(){this.hide(f)}),c=0;e>c;c++)b[c].isLayoutInstant=!0;for(this.arrange(),c=0;e>c;c++)delete b[c].isLayoutInstant;this.reveal(f)}};var o=m.prototype.remove;return m.prototype.remove=function(a){a=d(a);var b=this.getItems(a);if(o.call(this,a),b&&b.length)for(var c=0,f=b.length;f>c;c++){var g=b[c];e(g,this.filteredItems)}},m.prototype.shuffle=function(){for(var a=0,b=this.items.length;b>a;a++){var c=this.items[a];c.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},m.prototype._noTransition=function(a){var b=this.options.transitionDuration;this.options.transitionDuration=0;var c=a.call(this);return this.options.transitionDuration=b,c},m.prototype.getFilteredItemElements=function(){for(var a=[],b=0,c=this.filteredItems.length;c>b;b++)a.push(this.filteredItems[b].element);return a},m}var g=a.jQuery,h=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s+|\s+$/g,"")},i=document.documentElement,j=i.textContent?function(a){return a.textContent}:function(a){return a.innerText},k=Object.prototype.toString,l=Array.prototype.indexOf?function(a,b){return a.indexOf(b)}:function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1};"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],f):"object"==typeof exports?module.exports=f(require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry"),require("./layout-modes/fit-rows"),require("./layout-modes/vertical")):a.Isotope=f(a.Outlayer,a.getSize,a.matchesSelector,a.Isotope.Item,a.Isotope.LayoutMode)}(window),function(a){a.fn.appear=function(b,c){var d=a.extend({data:void 0,one:!0,accX:0,accY:0},c);return this.each(function(){var c=a(this);if(c.appeared=!1,!b)return void c.trigger("appear",d.data);var e=a(window),f=function(){if(!c.is(":visible"))return void(c.appeared=!1);var a=e.scrollLeft(),b=e.scrollTop(),f=c.offset(),g=f.left,h=f.top,i=d.accX,j=d.accY,k=c.height(),l=e.height(),m=c.width(),n=e.width();h+k+j>=b&&b+l+j>=h&&g+m+i>=a&&a+n+i>=g?c.appeared||c.trigger("appear",d.data):c.appeared=!1},g=function(){if(c.appeared=!0,d.one){e.unbind("scroll",f);var g=a.inArray(f,a.fn.appear.checks);g>=0&&a.fn.appear.checks.splice(g,1)}b.apply(this,arguments)};d.one?c.one("appear",d.data,g):c.bind("appear",d.data,g),e.scroll(f),a.fn.appear.checks.push(f),f()})},a.extend(a.fn.appear,{checks:[],timeout:null,checkAll:function(){var b=a.fn.appear.checks.length;if(b>0)for(;b--;)a.fn.appear.checks[b]()},run:function(){a.fn.appear.timeout&&clearTimeout(a.fn.appear.timeout),a.fn.appear.timeout=setTimeout(a.fn.appear.checkAll,20)}}),a.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(b,c){var d=a.fn[c];d&&(a.fn[c]=function(){var b=d.apply(this,arguments);return a.fn.appear.run(),b})})}(jQuery),function(a){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],a):a(jQuery)}(function(a){"use strict";function b(b){return!b||void 0!==b.allowPageScroll||void 0===b.swipe&&void 0===b.swipeStatus||(b.allowPageScroll=j),void 0!==b.click&&void 0===b.tap&&(b.tap=b.click),b||(b={}),b=a.extend({},a.fn.swipe.defaults,b),this.each(function(){var d=a(this),e=d.data(B);e||(e=new c(this,b),d.data(B,e))})}function c(b,c){function C(b){if(!(ja()||a(b.target).closest(c.excludedElements,Sa).length>0)){var d,e=b.originalEvent?b.originalEvent:b,f=y?e.touches[0]:e;return Ta=u,y?Ua=e.touches.length:b.preventDefault(),Ja=0,Ka=null,Qa=null,La=0,Ma=0,Na=0,Oa=1,Pa=0,Va=oa(),Ra=ra(),ha(),!y||Ua===c.fingers||c.fingers===s||R()?(la(0,f),Wa=Aa(),2==Ua&&(la(1,e.touches[1]),Ma=Na=ua(Va[0].start,Va[1].start)),(c.swipeStatus||c.pinchStatus)&&(d=J(e,Ta))):d=!1,d===!1?(Ta=x,J(e,Ta),d):(c.hold&&(ab=setTimeout(a.proxy(function(){Sa.trigger("hold",[e.target]),c.hold&&(d=c.hold.call(Sa,e,e.target))},this),c.longTapThreshold)),ka(!0),null)}}function D(a){var b=a.originalEvent?a.originalEvent:a;if(Ta!==w&&Ta!==x&&!ia()){var d,e=y?b.touches[0]:b,f=ma(e);if(Xa=Aa(),y&&(Ua=b.touches.length),c.hold&&clearTimeout(ab),Ta=v,2==Ua&&(0==Ma?(la(1,b.touches[1]),Ma=Na=ua(Va[0].start,Va[1].start)):(ma(b.touches[1]),Na=ua(Va[0].end,Va[1].end),Qa=wa(Va[0].end,Va[1].end)),Oa=va(Ma,Na),Pa=Math.abs(Ma-Na)),Ua===c.fingers||c.fingers===s||!y||R()){if(Ka=za(f.start,f.end),P(a,Ka),Ja=xa(f.start,f.end),La=ta(),pa(Ka,Ja),(c.swipeStatus||c.pinchStatus)&&(d=J(b,Ta)),!c.triggerOnTouchEnd||c.triggerOnTouchLeave){var g=!0;if(c.triggerOnTouchLeave){var h=Ba(this);g=Ca(f.end,h)}!c.triggerOnTouchEnd&&g?Ta=I(v):c.triggerOnTouchLeave&&!g&&(Ta=I(w)),(Ta==x||Ta==w)&&J(b,Ta)}}else Ta=x,J(b,Ta);d===!1&&(Ta=x,J(b,Ta))}}function E(a){var b=a.originalEvent;return y&&b.touches.length>0?(ga(),!0):(ia()&&(Ua=Za),Xa=Aa(),La=ta(),M()||!L()?(Ta=x,J(b,Ta)):c.triggerOnTouchEnd||0==c.triggerOnTouchEnd&&Ta===v?(a.preventDefault(),Ta=w,J(b,Ta)):!c.triggerOnTouchEnd&&Y()?(Ta=w,K(b,Ta,n)):Ta===v&&(Ta=x,J(b,Ta)),ka(!1),null)}function F(){Ua=0,Xa=0,Wa=0,Ma=0,Na=0,Oa=1,ha(),ka(!1)}function G(a){var b=a.originalEvent;c.triggerOnTouchLeave&&(Ta=I(w),J(b,Ta))}function H(){Sa.unbind(Ea,C),Sa.unbind(Ia,F),Sa.unbind(Fa,D),Sa.unbind(Ga,E),Ha&&Sa.unbind(Ha,G),ka(!1)}function I(a){var b=a,d=O(),e=L(),f=M();return!d||f?b=x:!e||a!=v||c.triggerOnTouchEnd&&!c.triggerOnTouchLeave?!e&&a==w&&c.triggerOnTouchLeave&&(b=x):b=w,b}function J(a,b){var c=void 0;return V()||U()?c=K(a,b,l):(S()||R())&&c!==!1&&(c=K(a,b,m)),ea()&&c!==!1?c=K(a,b,o):fa()&&c!==!1?c=K(a,b,p):da()&&c!==!1&&(c=K(a,b,n)),b===x&&F(a),b===w&&(y?0==a.touches.length&&F(a):F(a)),c}function K(b,j,k){var q=void 0;if(k==l){if(Sa.trigger("swipeStatus",[j,Ka||null,Ja||0,La||0,Ua,Va]),c.swipeStatus&&(q=c.swipeStatus.call(Sa,b,j,Ka||null,Ja||0,La||0,Ua,Va),q===!1))return!1;if(j==w&&T()){if(Sa.trigger("swipe",[Ka,Ja,La,Ua,Va]),c.swipe&&(q=c.swipe.call(Sa,b,Ka,Ja,La,Ua,Va),q===!1))return!1;switch(Ka){case d:Sa.trigger("swipeLeft",[Ka,Ja,La,Ua,Va]),c.swipeLeft&&(q=c.swipeLeft.call(Sa,b,Ka,Ja,La,Ua,Va));break;case e:Sa.trigger("swipeRight",[Ka,Ja,La,Ua,Va]),c.swipeRight&&(q=c.swipeRight.call(Sa,b,Ka,Ja,La,Ua,Va));break;case f:Sa.trigger("swipeUp",[Ka,Ja,La,Ua,Va]),c.swipeUp&&(q=c.swipeUp.call(Sa,b,Ka,Ja,La,Ua,Va));break;case g:Sa.trigger("swipeDown",[Ka,Ja,La,Ua,Va]),c.swipeDown&&(q=c.swipeDown.call(Sa,b,Ka,Ja,La,Ua,Va))}}}if(k==m){if(Sa.trigger("pinchStatus",[j,Qa||null,Pa||0,La||0,Ua,Oa,Va]),c.pinchStatus&&(q=c.pinchStatus.call(Sa,b,j,Qa||null,Pa||0,La||0,Ua,Oa,Va),q===!1))return!1;if(j==w&&Q())switch(Qa){case h:Sa.trigger("pinchIn",[Qa||null,Pa||0,La||0,Ua,Oa,Va]),
c.pinchIn&&(q=c.pinchIn.call(Sa,b,Qa||null,Pa||0,La||0,Ua,Oa,Va));break;case i:Sa.trigger("pinchOut",[Qa||null,Pa||0,La||0,Ua,Oa,Va]),c.pinchOut&&(q=c.pinchOut.call(Sa,b,Qa||null,Pa||0,La||0,Ua,Oa,Va))}}return k==n?(j===x||j===w)&&(clearTimeout(_a),clearTimeout(ab),Z()&&!aa()?($a=Aa(),_a=setTimeout(a.proxy(function(){$a=null,Sa.trigger("tap",[b.target]),c.tap&&(q=c.tap.call(Sa,b,b.target))},this),c.doubleTapThreshold)):($a=null,Sa.trigger("tap",[b.target]),c.tap&&(q=c.tap.call(Sa,b,b.target)))):k==o?(j===x||j===w)&&(clearTimeout(_a),$a=null,Sa.trigger("doubletap",[b.target]),c.doubleTap&&(q=c.doubleTap.call(Sa,b,b.target))):k==p&&(j===x||j===w)&&(clearTimeout(_a),$a=null,Sa.trigger("longtap",[b.target]),c.longTap&&(q=c.longTap.call(Sa,b,b.target))),q}function L(){var a=!0;return null!==c.threshold&&(a=Ja>=c.threshold),a}function M(){var a=!1;return null!==c.cancelThreshold&&null!==Ka&&(a=qa(Ka)-Ja>=c.cancelThreshold),a}function N(){return null!==c.pinchThreshold?Pa>=c.pinchThreshold:!0}function O(){var a;return a=c.maxTimeThreshold&&La>=c.maxTimeThreshold?!1:!0}function P(a,b){if(c.allowPageScroll===j||R())a.preventDefault();else{var h=c.allowPageScroll===k;switch(b){case d:(c.swipeLeft&&h||!h&&c.allowPageScroll!=q)&&a.preventDefault();break;case e:(c.swipeRight&&h||!h&&c.allowPageScroll!=q)&&a.preventDefault();break;case f:(c.swipeUp&&h||!h&&c.allowPageScroll!=r)&&a.preventDefault();break;case g:(c.swipeDown&&h||!h&&c.allowPageScroll!=r)&&a.preventDefault()}}}function Q(){var a=W(),b=X(),c=N();return a&&b&&c}function R(){return!!(c.pinchStatus||c.pinchIn||c.pinchOut)}function S(){return!(!Q()||!R())}function T(){var a=O(),b=L(),c=W(),d=X(),e=M(),f=!e&&d&&c&&b&&a;return f}function U(){return!!(c.swipe||c.swipeStatus||c.swipeLeft||c.swipeRight||c.swipeUp||c.swipeDown)}function V(){return!(!T()||!U())}function W(){return Ua===c.fingers||c.fingers===s||!y}function X(){return 0!==Va[0].end.x}function Y(){return!!c.tap}function Z(){return!!c.doubleTap}function $(){return!!c.longTap}function _(){if(null==$a)return!1;var a=Aa();return Z()&&a-$a<=c.doubleTapThreshold}function aa(){return _()}function ba(){return(1===Ua||!y)&&(isNaN(Ja)||Jac.longTapThreshold&&t>Ja}function da(){return!(!ba()||!Y())}function ea(){return!(!_()||!Z())}function fa(){return!(!ca()||!$())}function ga(){Ya=Aa(),Za=event.touches.length+1}function ha(){Ya=0,Za=0}function ia(){var a=!1;if(Ya){var b=Aa()-Ya;b<=c.fingerReleaseThreshold&&(a=!0)}return a}function ja(){return!(Sa.data(B+"_intouch")!==!0)}function ka(a){a===!0?(Sa.bind(Fa,D),Sa.bind(Ga,E),Ha&&Sa.bind(Ha,G)):(Sa.unbind(Fa,D,!1),Sa.unbind(Ga,E,!1),Ha&&Sa.unbind(Ha,G,!1)),Sa.data(B+"_intouch",a===!0)}function la(a,b){var c=void 0!==b.identifier?b.identifier:0;return Va[a].identifier=c,Va[a].start.x=Va[a].end.x=b.pageX||b.clientX,Va[a].start.y=Va[a].end.y=b.pageY||b.clientY,Va[a]}function ma(a){var b=void 0!==a.identifier?a.identifier:0,c=na(b);return c.end.x=a.pageX||a.clientX,c.end.y=a.pageY||a.clientY,c}function na(a){for(var b=0;b=b;b++)a.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0});return a}function pa(a,b){b=Math.max(b,qa(a)),Ra[a].distance=b}function qa(a){return Ra[a]?Ra[a].distance:void 0}function ra(){var a={};return a[d]=sa(d),a[e]=sa(e),a[f]=sa(f),a[g]=sa(g),a}function sa(a){return{direction:a,distance:0}}function ta(){return Xa-Wa}function ua(a,b){var c=Math.abs(a.x-b.x),d=Math.abs(a.y-b.y);return Math.round(Math.sqrt(c*c+d*d))}function va(a,b){var c=b/a*1;return c.toFixed(2)}function wa(){return 1>Oa?i:h}function xa(a,b){return Math.round(Math.sqrt(Math.pow(b.x-a.x,2)+Math.pow(b.y-a.y,2)))}function ya(a,b){var c=a.x-b.x,d=b.y-a.y,e=Math.atan2(d,c),f=Math.round(180*e/Math.PI);return 0>f&&(f=360-Math.abs(f)),f}function za(a,b){var c=ya(a,b);return 45>=c&&c>=0?d:360>=c&&c>=315?d:c>=135&&225>=c?e:c>45&&135>c?g:f}function Aa(){var a=new Date;return a.getTime()}function Ba(b){b=a(b);var c=b.offset(),d={left:c.left,right:c.left+b.outerWidth(),top:c.top,bottom:c.top+b.outerHeight()};return d}function Ca(a,b){return a.x>b.left&&a.xb.top&&a.yc;c++){var e=a.anims[c];e&&e[0][b.transition](e[1],a.duration,a.easing,e[2])}}function sc_stopScroll(a,b){is_boolean(b)||(b=!0),is_object(a.pre)&&sc_stopScroll(a.pre,b);for(var c=0,d=a.anims.length;d>c;c++){var e=a.anims[c];e[0].stop(!0),b&&(e[0].css(e[1]),is_function(e[2])&&e[2]())}is_object(a.post)&&sc_stopScroll(a.post,b)}function sc_afterScroll(a,b,c){switch(b&&b.remove(),c.fx){case"fade":case"crossfade":case"cover-fade":case"uncover-fade":a.css("opacity",1),a.css("filter","")}}function sc_fireCallbacks(a,b,c,d,e){if(b[c]&&b[c].call(a,d),e[c].length)for(var f=0,g=e[c].length;g>f;f++)e[c][f].call(a,d);return[]}function sc_fireQueue(a,b,c){return b.length&&(a.trigger(cf_e(b[0][0],c),b[0][1]),b.shift()),b}function sc_hideHiddenItems(a){a.each(function(){var a=$(this);a.data("_cfs_isHidden",a.is(":hidden")).hide()})}function sc_showHiddenItems(a){a&&a.each(function(){var a=$(this);a.data("_cfs_isHidden")||a.show()})}function sc_clearTimers(a){return a.auto&&clearTimeout(a.auto),a.progress&&clearInterval(a.progress),a}function sc_mapCallbackArguments(a,b,c,d,e,f,g){return{width:g.width,height:g.height,items:{old:a,skipped:b,visible:c},scroll:{items:d,direction:e,duration:f}}}function sc_getDuration(a,b,c,d){var e=a.duration;return"none"==a.fx?0:("auto"==e?e=b.scroll.duration/b.scroll.items*c:10>e&&(e=d/e),1>e?0:("fade"==a.fx&&(e/=2),Math.round(e)))}function nv_showNavi(a,b,c){var d=is_number(a.items.minimum)?a.items.minimum:a.items.visible+1;if("show"==b||"hide"==b)var e=b;else if(d>b){debug(c,"Not enough items ("+b+" total, "+d+" needed): Hiding navigation.");var e="hide"}else var e="show";var f="show"==e?"removeClass":"addClass",g=cf_c("hidden",c);a.auto.button&&a.auto.button[e]()[f](g),a.prev.button&&a.prev.button[e]()[f](g),a.next.button&&a.next.button[e]()[f](g),a.pagination.container&&a.pagination.container[e]()[f](g)}function nv_enableNavi(a,b,c){if(!a.circular&&!a.infinite){var d="removeClass"==b||"addClass"==b?b:!1,e=cf_c("disabled",c);if(a.auto.button&&d&&a.auto.button[d](e),a.prev.button){var f=d||0==b?"addClass":"removeClass";a.prev.button[f](e)}if(a.next.button){var f=d||b==a.items.visible?"addClass":"removeClass";a.next.button[f](e)}}}function go_getObject(a,b){return is_function(b)?b=b.call(a):is_undefined(b)&&(b={}),b}function go_getItemsObject(a,b){return b=go_getObject(a,b),is_number(b)?b={visible:b}:"variable"==b?b={visible:b,width:b,height:b}:is_object(b)||(b={}),b}function go_getScrollObject(a,b){return b=go_getObject(a,b),is_number(b)?b=50>=b?{items:b}:{duration:b}:is_string(b)?b={easing:b}:is_object(b)||(b={}),b}function go_getNaviObject(a,b){if(b=go_getObject(a,b),is_string(b)){var c=cf_getKeyCode(b);b=-1==c?$(b):c}return b}function go_getAutoObject(a,b){return b=go_getNaviObject(a,b),is_jquery(b)?b={button:b}:is_boolean(b)?b={play:b}:is_number(b)&&(b={timeoutDuration:b}),b.progress&&(is_string(b.progress)||is_jquery(b.progress))&&(b.progress={bar:b.progress}),b}function go_complementAutoObject(a,b){return is_function(b.button)&&(b.button=b.button.call(a)),is_string(b.button)&&(b.button=$(b.button)),is_boolean(b.play)||(b.play=!0),is_number(b.delay)||(b.delay=0),is_undefined(b.pauseOnEvent)&&(b.pauseOnEvent=!0),is_boolean(b.pauseOnResize)||(b.pauseOnResize=!0),is_number(b.timeoutDuration)||(b.timeoutDuration=b.duration<10?2500:5*b.duration),b.progress&&(is_function(b.progress.bar)&&(b.progress.bar=b.progress.bar.call(a)),is_string(b.progress.bar)&&(b.progress.bar=$(b.progress.bar)),b.progress.bar?(is_function(b.progress.updater)||(b.progress.updater=$.fn.carouFredSel.progressbarUpdater),is_number(b.progress.interval)||(b.progress.interval=50)):b.progress=!1),b}function go_getPrevNextObject(a,b){return b=go_getNaviObject(a,b),is_jquery(b)?b={button:b}:is_number(b)&&(b={key:b}),b}function go_complementPrevNextObject(a,b){return is_function(b.button)&&(b.button=b.button.call(a)),is_string(b.button)&&(b.button=$(b.button)),is_string(b.key)&&(b.key=cf_getKeyCode(b.key)),b}function go_getPaginationObject(a,b){return b=go_getNaviObject(a,b),is_jquery(b)?b={container:b}:is_boolean(b)&&(b={keys:b}),b}function go_complementPaginationObject(a,b){return is_function(b.container)&&(b.container=b.container.call(a)),is_string(b.container)&&(b.container=$(b.container)),is_number(b.items)||(b.items=!1),is_boolean(b.keys)||(b.keys=!1),is_function(b.anchorBuilder)||is_false(b.anchorBuilder)||(b.anchorBuilder=$.fn.carouFredSel.pageAnchorBuilder),is_number(b.deviation)||(b.deviation=0),b}function go_getSwipeObject(a,b){return is_function(b)&&(b=b.call(a)),is_undefined(b)&&(b={onTouch:!1}),is_true(b)?b={onTouch:b}:is_number(b)&&(b={items:b}),b}function go_complementSwipeObject(a,b){return is_boolean(b.onTouch)||(b.onTouch=!0),is_boolean(b.onMouse)||(b.onMouse=!1),is_object(b.options)||(b.options={}),is_boolean(b.options.triggerOnTouchEnd)||(b.options.triggerOnTouchEnd=!1),b}function go_getMousewheelObject(a,b){return is_function(b)&&(b=b.call(a)),is_true(b)?b={}:is_number(b)?b={items:b}:is_undefined(b)&&(b=!1),b}function go_complementMousewheelObject(a,b){return b}function gn_getItemIndex(a,b,c,d,e){if(is_string(a)&&(a=$(a,e)),is_object(a)&&(a=$(a,e)),is_jquery(a)?(a=e.children().index(a),is_boolean(c)||(c=!1)):is_boolean(c)||(c=!0),is_number(a)||(a=0),is_number(b)||(b=0),c&&(a+=d.first),a+=b,d.total>0){for(;a>=d.total;)a-=d.total;for(;0>a;)a+=d.total}return a}function gn_getVisibleItemsPrev(a,b,c){for(var d=0,e=0,f=c;f>=0;f--){var g=a.eq(f);if(d+=g.is(":visible")?g[b.d.outerWidth](!0):0,d>b.maxDimension)return e;0==f&&(f=a.length),e++}}function gn_getVisibleItemsPrevFilter(a,b,c){return gn_getItemsPrevFilter(a,b.items.filter,b.items.visibleConf.org,c)}function gn_getScrollItemsPrevFilter(a,b,c,d){return gn_getItemsPrevFilter(a,b.items.filter,d,c)}function gn_getItemsPrevFilter(a,b,c,d){for(var e=0,f=0,g=d,h=a.length;g>=0;g--){if(f++,f==h)return f;var i=a.eq(g);if(i.is(b)&&(e++,e==c))return f;0==g&&(g=h)}}function gn_getVisibleOrg(a,b){return b.items.visibleConf.org||a.children().slice(0,b.items.visible).filter(b.items.filter).length}function gn_getVisibleItemsNext(a,b,c){for(var d=0,e=0,f=c,g=a.length-1;g>=f;f++){var h=a.eq(f);if(d+=h.is(":visible")?h[b.d.outerWidth](!0):0,d>b.maxDimension)return e;if(e++,e==g+1)return e;f==g&&(f=-1)}}function gn_getVisibleItemsNextTestCircular(a,b,c,d){var e=gn_getVisibleItemsNext(a,b,c);return b.circular||c+e>d&&(e=d-c),e}function gn_getVisibleItemsNextFilter(a,b,c){return gn_getItemsNextFilter(a,b.items.filter,b.items.visibleConf.org,c,b.circular)}function gn_getScrollItemsNextFilter(a,b,c,d){return gn_getItemsNextFilter(a,b.items.filter,d+1,c,b.circular)-1}function gn_getItemsNextFilter(a,b,c,d,e){for(var f=0,g=0,h=d,i=a.length-1;i>=h;h++){if(g++,g>=i)return g;var j=a.eq(h);if(j.is(b)&&(f++,f==c))return g;h==i&&(h=-1)}}function gi_getCurrentItems(a,b){return a.slice(0,b.items.visible)}function gi_getOldItemsPrev(a,b,c){return a.slice(c,b.items.visibleConf.old+c)}function gi_getNewItemsPrev(a,b){return a.slice(0,b.items.visible)}function gi_getOldItemsNext(a,b){return a.slice(0,b.items.visibleConf.old)}function gi_getNewItemsNext(a,b,c){return a.slice(c,b.items.visible+c)}function sz_storeMargin(a,b,c){b.usePadding&&(is_string(c)||(c="_cfs_origCssMargin"),a.each(function(){var a=$(this),d=parseInt(a.css(b.d.marginRight),10);is_number(d)||(d=0),a.data(c,d)}))}function sz_resetMargin(a,b,c){if(b.usePadding){var d=is_boolean(c)?c:!1;is_number(c)||(c=0),sz_storeMargin(a,b,"_cfs_tempCssMargin"),a.each(function(){var a=$(this);a.css(b.d.marginRight,d?a.data("_cfs_tempCssMargin"):c+a.data("_cfs_origCssMargin"))})}}function sz_storeOrigCss(a){a.each(function(){var a=$(this);a.data("_cfs_origCss",a.attr("style")||"")})}function sz_restoreOrigCss(a){a.each(function(){var a=$(this);a.attr("style",a.data("_cfs_origCss")||"")})}function sz_setResponsiveSizes(a,b){var c=(a.items.visible,a.items[a.d.width]),d=a[a.d.height],e=is_percentage(d);b.each(function(){var b=$(this),f=c-ms_getPaddingBorderMargin(b,a,"Width");b[a.d.width](f),e&&b[a.d.height](ms_getPercentage(f,d))})}function sz_setSizes(a,b){var c=a.parent(),d=a.children(),e=gi_getCurrentItems(d,b),f=cf_mapWrapperSizes(ms_getSizes(e,b,!0),b,!1);if(c.css(f),b.usePadding){var g=b.padding,h=g[b.d[1]];b.align&&0>h&&(h=0);var i=e.last();i.css(b.d.marginRight,i.data("_cfs_origCssMargin")+h),a.css(b.d.top,g[b.d[0]]),a.css(b.d.left,g[b.d[3]])}return a.css(b.d.width,f[b.d.width]+2*ms_getTotalSize(d,b,"width")),a.css(b.d.height,ms_getLargestSize(d,b,"height")),b.centerVertically&&a.css("line-height",f.height+"px"),f}function ms_getSizes(a,b,c){return[ms_getTotalSize(a,b,"width",c),ms_getLargestSize(a,b,"height",c)]}function ms_getLargestSize(a,b,c,d){return is_boolean(d)||(d=!1),is_number(b[b.d[c]])&&d?b[b.d[c]]:is_number(b.items[b.d[c]])?b.items[b.d[c]]:(c=c.toLowerCase().indexOf("width")>-1?"outerWidth":"outerHeight",ms_getTrueLargestSize(a,b,c))}function ms_getTrueLargestSize(a,b,c){for(var d=0,e=0,f=a.length;f>e;e++){var g=a.eq(e).find(".fusion-carousel-item-wrapper"),h=g.is(":visible")?g[b.d[c]](!0):0;h>d&&(d=h)}return d}function ms_getTotalSize(a,b,c,d){if(is_boolean(d)||(d=!1),is_number(b[b.d[c]])&&d)return b[b.d[c]];if(is_number(b.items[b.d[c]]))return b.items[b.d[c]]*a.length;for(var e=c.toLowerCase().indexOf("width")>-1?"outerWidth":"outerHeight",f=0,g=0,h=a.length;h>g;g++){var i=a.eq(g);f+=i.is(":visible")?i[b.d[e]](!0):0}return f}function ms_getParentSize(a,b,c){var d=a.is(":visible");d&&a.hide();var e=a.parent()[b.d[c]]();return d&&a.show(),e}function ms_getMaxDimension(a,b){return is_number(a[a.d.width])?a[a.d.width]:b}function ms_hasVariableSizes(a,b,c){for(var d=!1,e=!1,f=0,g=a.length;g>f;f++){var h=a.eq(f),i=h.is(":visible")?h[b.d[c]](!0):0;d===!1?d=i:d!=i&&(e=!0),0==d&&(e=!0)}return e}function ms_getPaddingBorderMargin(a,b,c){return a[b.d["outer"+c]](!0)-a[b.d[c.toLowerCase()]]()}function ms_getPercentage(a,b){if(is_percentage(b)){if(b=parseInt(b.slice(0,-1),10),!is_number(b))return a;a*=b/100}return a}function cf_e(a,b,c,d,e){return is_boolean(c)||(c=!0),is_boolean(d)||(d=!0),is_boolean(e)||(e=!1),c&&(a=b.events.prefix+a),d&&(a=a+"."+b.events.namespace),d&&e&&(a+=b.serialNumber),a}function cf_c(a,b){return is_string(b.classnames[a])?b.classnames[a]:a}function cf_mapWrapperSizes(a,b,c){is_boolean(c)||(c=!0);var d=b.usePadding&&c?b.padding:[0,0,0,0],e={};return e[b.d.width]=a[0]+d[1]+d[3],e[b.d.height]=a[1]+d[0]+d[2],e}function cf_sortParams(a,b){for(var c=[],d=0,e=a.length;e>d;d++)for(var f=0,g=b.length;g>f;f++)if(b[f].indexOf(typeof a[d])>-1&&is_undefined(c[f])){c[f]=a[d];break}return c}function cf_getPadding(a){if(is_undefined(a))return[0,0,0,0];if(is_number(a))return[a,a,a,a];if(is_string(a)&&(a=a.split("px").join("").split("em").join("").split(" ")),!is_array(a))return[0,0,0,0];for(var b=0;4>b;b++)a[b]=parseInt(a[b],10);switch(a.length){case 0:return[0,0,0,0];case 1:return[a[0],a[0],a[0],a[0]];case 2:return[a[0],a[1],a[0],a[1]];case 3:return[a[0],a[1],a[2],a[1]];default:return[a[0],a[1],a[2],a[3]]}}function cf_getAlignPadding(a,b){var c=is_number(b[b.d.width])?Math.ceil(b[b.d.width]-ms_getTotalSize(a,b,"width")):0;switch(b.align){case"left":return[0,c];case"right":return[c,0];case"center":default:return[Math.ceil(c/2),Math.floor(c/2)]}}function cf_getDimensions(a){for(var b=[["width","innerWidth","outerWidth","height","innerHeight","outerHeight","left","top","marginRight",0,1,2,3],["height","innerHeight","outerHeight","width","innerWidth","outerWidth","top","left","marginBottom",3,2,1,0]],c=b[0].length,d="right"==a.direction||"left"==a.direction?0:1,e={},f=0;c>f;f++)e[b[0][f]]=b[d][f];return e}function cf_getAdjust(a,b,c,d){var e=a;if(is_function(c))e=c.call(d,e);else if(is_string(c)){var f=c.split("+"),g=c.split("-");if(g.length>f.length)var h=!0,i=g[0],j=g[1];else var h=!1,i=f[0],j=f[1];switch(i){case"even":e=a%2==1?a-1:a;break;case"odd":e=a%2==0?a-1:a;break;default:e=a}j=parseInt(j,10),is_number(j)&&(h&&(j=-j),e+=j)}return(!is_number(e)||1>e)&&(e=1),e}function cf_getItemsAdjust(a,b,c,d){return cf_getItemAdjustMinMax(cf_getAdjust(a,b,c,d),b.items.visibleConf)}function cf_getItemAdjustMinMax(a,b){return is_number(b.min)&&ab.max&&(a=b.max),1>a&&(a=1),a}function cf_getSynchArr(a){is_array(a)||(a=[[a]]),is_array(a[0])||(a=[a]);for(var b=0,c=a.length;c>b;b++)is_string(a[b][0])&&(a[b][0]=$(a[b][0])),is_boolean(a[b][1])||(a[b][1]=!0),is_boolean(a[b][2])||(a[b][2]=!0),is_number(a[b][3])||(a[b][3]=0);return a}function cf_getKeyCode(a){return"right"==a?39:"left"==a?37:"up"==a?38:"down"==a?40:-1}function cf_setCookie(a,b,c){if(a){var d=b.triggerHandler(cf_e("currentPosition",c));$.fn.carouFredSel.cookie.set(a,d)}}function cf_getCookie(a){var b=$.fn.carouFredSel.cookie.get(a);return""==b?0:b}function in_mapCss(a,b){for(var c={},d=0,e=b.length;e>d;d++)c[b[d]]=a.css(b[d]);return c}function in_complementItems(a,b,c,d){return is_object(a.visibleConf)||(a.visibleConf={}),is_object(a.sizesConf)||(a.sizesConf={}),0==a.start&&is_number(d)&&(a.start=d),is_object(a.visible)?(a.visibleConf.min=a.visible.min,a.visibleConf.max=a.visible.max,a.visible=!1):is_string(a.visible)?("variable"==a.visible?a.visibleConf.variable=!0:a.visibleConf.adjust=a.visible,a.visible=!1):is_function(a.visible)&&(a.visibleConf.adjust=a.visible,a.visible=!1),is_string(a.filter)||(a.filter=c.filter(":hidden").length>0?":visible":"*"),a[b.d.width]||(b.responsive?(debug(!0,"Set a "+b.d.width+" for the items!"),a[b.d.width]=ms_getTrueLargestSize(c,b,"outerWidth")):a[b.d.width]=ms_hasVariableSizes(c,b,"outerWidth")?"variable":c[b.d.outerWidth](!0)),a[b.d.height]||(a[b.d.height]=ms_hasVariableSizes(c,b,"outerHeight")?"variable":c[b.d.outerHeight](!0)),a.sizesConf.width=a.width,a.sizesConf.height=a.height,a}function in_complementVisibleItems(a,b){return"variable"==a.items[a.d.width]&&(a.items.visibleConf.variable=!0),a.items.visibleConf.variable||(is_number(a[a.d.width])?a.items.visible=Math.floor(a[a.d.width]/a.items[a.d.width]):(a.items.visible=Math.floor(b/a.items[a.d.width]),a[a.d.width]=a.items.visible*a.items[a.d.width],a.items.visibleConf.adjust||(a.align=!1)),("Infinity"==a.items.visible||a.items.visible<1)&&(debug(!0,'Not a valid number of visible items: Set to "variable".'),a.items.visibleConf.variable=!0)),a}function in_complementPrimarySize(a,b,c){return"auto"==a&&(a=ms_getTrueLargestSize(c,b,"outerWidth")),a}function in_complementSecondarySize(a,b,c){return"auto"==a&&(a=ms_getTrueLargestSize(c,b,"outerHeight")),a||(a=b.items[b.d.height]),a}function in_getAlignPadding(a,b){var c=cf_getAlignPadding(gi_getCurrentItems(b,a),a);return a.padding[a.d[1]]=c[1],a.padding[a.d[3]]=c[0],a}function in_getResponsiveValues(a,b,c){var d=cf_getItemAdjustMinMax(Math.ceil(a[a.d.width]/a.items[a.d.width]),a.items.visibleConf);d>b.length&&(d=b.length);var e=Math.floor(a[a.d.width]/d);return a.items.visible=d,a.items[a.d.width]=e,a[a.d.width]=d*e,a}function bt_pauseOnHoverConfig(a){if(is_string(a))var b=a.indexOf("immediate")>-1?!0:!1,c=a.indexOf("resume")>-1?!0:!1;else var b=c=!1;return[b,c]}function bt_mousesheelNumber(a){return is_number(a)?a:null}function is_null(a){return null===a}function is_undefined(a){return is_null(a)||"undefined"==typeof a||""===a||"undefined"===a}function is_array(a){return a instanceof Array}function is_jquery(a){return a instanceof jQuery}function is_object(a){return(a instanceof Object||"object"==typeof a)&&!is_null(a)&&!is_jquery(a)&&!is_array(a)&&!is_function(a)}function is_number(a){return(a instanceof Number||"number"==typeof a)&&!isNaN(a)}function is_string(a){return(a instanceof String||"string"==typeof a)&&!is_undefined(a)&&!is_true(a)&&!is_false(a)}function is_function(a){return a instanceof Function||"function"==typeof a}function is_boolean(a){return a instanceof Boolean||"boolean"==typeof a||is_true(a)||is_false(a)}function is_true(a){return a===!0||"true"===a}function is_false(a){return a===!1||"false"===a}function is_percentage(a){return is_string(a)&&"%"==a.slice(-1)}function getTime(){return(new Date).getTime()}function deprecated(a,b){debug(!0,a+" is DEPRECATED, support for it will be removed. Use "+b+" instead.")}function debug(a,b){if(!is_undefined(window.console)&&!is_undefined(window.console.log)){if(is_object(a)){var c=" ("+a.selector+")";a=a.debug}else var c="";if(!a)return!1;b=is_string(b)?"carouFredSel"+c+": "+b:["carouFredSel"+c+":",b],window.console.log(b)}return!1}$.fn.carouFredSel||($.fn.caroufredsel=$.fn.carouFredSel=function(options,configs){if(0==this.length)return debug(!0,'No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){$(this).carouFredSel(options,configs)});var $cfs=this,$tt0=this[0],starting_position=!1;$cfs.data("_cfs_isCarousel")&&(starting_position=$cfs.triggerHandler("_cfs_triggerEvent","currentPosition"),$cfs.trigger("_cfs_triggerEvent",["destroy",!0]));var FN={};FN._init=function(a,b,c){a=go_getObject($tt0,a),a.items=go_getItemsObject($tt0,a.items),a.scroll=go_getScrollObject($tt0,a.scroll),a.auto=go_getAutoObject($tt0,a.auto),a.prev=go_getPrevNextObject($tt0,a.prev),a.next=go_getPrevNextObject($tt0,a.next),a.pagination=go_getPaginationObject($tt0,a.pagination),a.swipe=go_getSwipeObject($tt0,a.swipe),a.mousewheel=go_getMousewheelObject($tt0,a.mousewheel),b&&(opts_orig=$.extend(!0,{},$.fn.carouFredSel.defaults,a)),opts=$.extend(!0,{},$.fn.carouFredSel.defaults,a),opts.d=cf_getDimensions(opts),crsl.direction="up"==opts.direction||"left"==opts.direction?"next":"prev";var d=$cfs.children(),e=ms_getParentSize($wrp,opts,"width");if(is_true(opts.cookie)&&(opts.cookie="caroufredsel_cookie_"+conf.serialNumber),opts.maxDimension=ms_getMaxDimension(opts,e),opts.items=in_complementItems(opts.items,opts,d,c),opts[opts.d.width]=in_complementPrimarySize(opts[opts.d.width],opts,d),opts[opts.d.height]=in_complementSecondarySize(opts[opts.d.height],opts,d),opts.responsive&&(is_percentage(opts[opts.d.width])||(opts[opts.d.width]="100%")),is_percentage(opts[opts.d.width])&&(crsl.upDateOnWindowResize=!0,crsl.primarySizePercentage=opts[opts.d.width],opts[opts.d.width]=ms_getPercentage(e,crsl.primarySizePercentage),opts.items.visible||(opts.items.visibleConf.variable=!0)),opts.responsive?(opts.usePadding=!1,opts.padding=[0,0,0,0],opts.align=!1,opts.items.visibleConf.variable=!1):(opts.items.visible||(opts=in_complementVisibleItems(opts,e)),opts[opts.d.width]||(!opts.items.visibleConf.variable&&is_number(opts.items[opts.d.width])&&"*"==opts.items.filter?(opts[opts.d.width]=opts.items.visible*opts.items[opts.d.width],opts.align=!1):opts[opts.d.width]="variable"),is_undefined(opts.align)&&(opts.align=is_number(opts[opts.d.width])?"center":!1),opts.items.visibleConf.variable&&(opts.items.visible=gn_getVisibleItemsNext(d,opts,0))),"*"==opts.items.filter||opts.items.visibleConf.variable||(opts.items.visibleConf.org=opts.items.visible,opts.items.visible=gn_getVisibleItemsNextFilter(d,opts,0)),opts.items.visible=cf_getItemsAdjust(opts.items.visible,opts,opts.items.visibleConf.adjust,$tt0),opts.items.visibleConf.old=opts.items.visible,opts.responsive)opts.items.visibleConf.min||(opts.items.visibleConf.min=opts.items.visible),opts.items.visibleConf.max||(opts.items.visibleConf.max=opts.items.visible),opts=in_getResponsiveValues(opts,d,e);else switch(opts.padding=cf_getPadding(opts.padding),"top"==opts.align?opts.align="left":"bottom"==opts.align&&(opts.align="right"),opts.align){case"center":case"left":case"right":"variable"!=opts[opts.d.width]&&(opts=in_getAlignPadding(opts,d),opts.usePadding=!0);break;default:opts.align=!1,opts.usePadding=0==opts.padding[0]&&0==opts.padding[1]&&0==opts.padding[2]&&0==opts.padding[3]?!1:!0}is_number(opts.scroll.duration)||(opts.scroll.duration=500),is_undefined(opts.scroll.items)&&(opts.scroll.items=opts.responsive||opts.items.visibleConf.variable||"*"!=opts.items.filter?"visible":opts.items.visible),opts.auto=$.extend(!0,{},opts.scroll,opts.auto),opts.prev=$.extend(!0,{},opts.scroll,opts.prev),opts.next=$.extend(!0,{},opts.scroll,opts.next),opts.pagination=$.extend(!0,{},opts.scroll,opts.pagination),opts.auto=go_complementAutoObject($tt0,opts.auto),opts.prev=go_complementPrevNextObject($tt0,opts.prev),opts.next=go_complementPrevNextObject($tt0,opts.next),opts.pagination=go_complementPaginationObject($tt0,opts.pagination),opts.swipe=go_complementSwipeObject($tt0,opts.swipe),opts.mousewheel=go_complementMousewheelObject($tt0,opts.mousewheel),opts.synchronise&&(opts.synchronise=cf_getSynchArr(opts.synchronise)),opts.auto.onPauseStart&&(opts.auto.onTimeoutStart=opts.auto.onPauseStart,deprecated("auto.onPauseStart","auto.onTimeoutStart")),opts.auto.onPausePause&&(opts.auto.onTimeoutPause=opts.auto.onPausePause,deprecated("auto.onPausePause","auto.onTimeoutPause")),opts.auto.onPauseEnd&&(opts.auto.onTimeoutEnd=opts.auto.onPauseEnd,deprecated("auto.onPauseEnd","auto.onTimeoutEnd")),opts.auto.pauseDuration&&(opts.auto.timeoutDuration=opts.auto.pauseDuration,deprecated("auto.pauseDuration","auto.timeoutDuration"))},FN._build=function(){$cfs.data("_cfs_isCarousel",!0);var a=$cfs.children(),b=in_mapCss($cfs,["textAlign","float","position","top","right","bottom","left","zIndex","width","height","marginTop","marginRight","marginBottom","marginLeft"]),c="relative";switch(b.position){case"absolute":case"fixed":c=b.position}"parent"==conf.wrapper?sz_storeOrigCss($wrp):$wrp.css(b),$wrp.css({overflow:"hidden",position:c}),sz_storeOrigCss($cfs),$cfs.data("_cfs_origCssZindex",b.zIndex),$cfs.css({textAlign:"left","float":"none",position:"absolute",top:0,right:"auto",bottom:"auto",left:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0}),sz_storeMargin(a,opts),sz_storeOrigCss(a),opts.responsive&&sz_setResponsiveSizes(opts,a)},FN._bind_events=function(){FN._unbind_events(),$cfs.bind(cf_e("stop",conf),function(a,b){return a.stopPropagation(),crsl.isStopped||opts.auto.button&&opts.auto.button.addClass(cf_c("stopped",conf)),crsl.isStopped=!0,opts.auto.play&&(opts.auto.play=!1,$cfs.trigger(cf_e("pause",conf),b)),!0}),$cfs.bind(cf_e("finish",conf),function(a){return a.stopPropagation(),crsl.isScrolling&&sc_stopScroll(scrl),!0}),$cfs.bind(cf_e("pause",conf),function(a,b,c){if(a.stopPropagation(),tmrs=sc_clearTimers(tmrs),b&&crsl.isScrolling){scrl.isStopped=!0;var d=getTime()-scrl.startTime;scrl.duration-=d,scrl.pre&&(scrl.pre.duration-=d),scrl.post&&(scrl.post.duration-=d),sc_stopScroll(scrl,!1)}if(crsl.isPaused||crsl.isScrolling||c&&(tmrs.timePassed+=getTime()-tmrs.startTime),crsl.isPaused||opts.auto.button&&opts.auto.button.addClass(cf_c("paused",conf)),crsl.isPaused=!0,opts.auto.onTimeoutPause){var e=opts.auto.timeoutDuration-tmrs.timePassed,f=100-Math.ceil(100*e/opts.auto.timeoutDuration);opts.auto.onTimeoutPause.call($tt0,f,e)}return!0}),$cfs.bind(cf_e("play",conf),function(a,b,c,d){a.stopPropagation(),tmrs=sc_clearTimers(tmrs);var e=[b,c,d],f=["string","number","boolean"],g=cf_sortParams(e,f);if(b=g[0],c=g[1],d=g[2],"prev"!=b&&"next"!=b&&(b=crsl.direction),is_number(c)||(c=0),is_boolean(d)||(d=!1),d&&(crsl.isStopped=!1,opts.auto.play=!0),!opts.auto.play)return a.stopImmediatePropagation(),debug(conf,"Carousel stopped: Not scrolling.");crsl.isPaused&&opts.auto.button&&(opts.auto.button.removeClass(cf_c("stopped",conf)),opts.auto.button.removeClass(cf_c("paused",conf))),crsl.isPaused=!1,tmrs.startTime=getTime();var h=opts.auto.timeoutDuration+c;return dur2=h-tmrs.timePassed,perc=100-Math.ceil(100*dur2/h),opts.auto.progress&&(tmrs.progress=setInterval(function(){var a=getTime()-tmrs.startTime+tmrs.timePassed,b=Math.ceil(100*a/h);opts.auto.progress.updater.call(opts.auto.progress.bar[0],b)},opts.auto.progress.interval)),tmrs.auto=setTimeout(function(){opts.auto.progress&&opts.auto.progress.updater.call(opts.auto.progress.bar[0],100),opts.auto.onTimeoutEnd&&opts.auto.onTimeoutEnd.call($tt0,perc,dur2),crsl.isScrolling?$cfs.trigger(cf_e("play",conf),b):$cfs.trigger(cf_e(b,conf),opts.auto)},dur2),opts.auto.onTimeoutStart&&opts.auto.onTimeoutStart.call($tt0,perc,dur2),!0}),$cfs.bind(cf_e("resume",conf),function(a){return a.stopPropagation(),scrl.isStopped?(scrl.isStopped=!1,crsl.isPaused=!1,crsl.isScrolling=!0,scrl.startTime=getTime(),sc_startScroll(scrl,conf)):$cfs.trigger(cf_e("play",conf)),!0}),$cfs.bind(cf_e("prev",conf)+" "+cf_e("next",conf),function(a,b,c,d,e){if(a.stopPropagation(),crsl.isStopped||$cfs.is(":hidden"))return a.stopImmediatePropagation(),debug(conf,"Carousel stopped or hidden: Not scrolling.");var f=is_number(opts.items.minimum)?opts.items.minimum:opts.items.visible+1;if(f>itms.total)return a.stopImmediatePropagation(),debug(conf,"Not enough items ("+itms.total+" total, "+f+" needed): Not scrolling.");var g=[b,c,d,e],h=["object","number/string","function","boolean"],i=cf_sortParams(g,h);b=i[0],c=i[1],d=i[2],e=i[3];var j=a.type.slice(conf.events.prefix.length);if(is_object(b)||(b={}),is_function(d)&&(b.onAfter=d),is_boolean(e)&&(b.queue=e),b=$.extend(!0,{},opts[j],b),b.conditions&&!b.conditions.call($tt0,j))return a.stopImmediatePropagation(),debug(conf,'Callback "conditions" returned false.');if(!is_number(c)){if("*"!=opts.items.filter)c="visible";else for(var k=[c,b.items,opts[j].items],i=0,l=k.length;l>i;i++)if(is_number(k[i])||"page"==k[i]||"visible"==k[i]){c=k[i];break}switch(c){case"page":return a.stopImmediatePropagation(),
$cfs.triggerHandler(cf_e(j+"Page",conf),[b,d]);case"visible":opts.items.visibleConf.variable||"*"!=opts.items.filter||(c=opts.items.visible)}}if(scrl.isStopped)return $cfs.trigger(cf_e("resume",conf)),$cfs.trigger(cf_e("queue",conf),[j,[b,c,d]]),a.stopImmediatePropagation(),debug(conf,"Carousel resumed scrolling.");if(b.duration>0&&crsl.isScrolling)return b.queue&&("last"==b.queue&&(queu=[]),("first"!=b.queue||0==queu.length)&&$cfs.trigger(cf_e("queue",conf),[j,[b,c,d]])),a.stopImmediatePropagation(),debug(conf,"Carousel currently scrolling.");if(tmrs.timePassed=0,$cfs.trigger(cf_e("slide_"+j,conf),[b,c]),opts.synchronise)for(var m=opts.synchronise,n=[b,c],o=0,l=m.length;l>o;o++){var p=j;m[o][2]||(p="prev"==p?"next":"prev"),m[o][1]||(n[0]=m[o][0].triggerHandler("_cfs_triggerEvent",["configuration",p])),n[1]=c+m[o][3],m[o][0].trigger("_cfs_triggerEvent",["slide_"+p,n])}return!0}),$cfs.bind(cf_e("slide_prev",conf),function(a,b,c){a.stopPropagation();var d=$cfs.children();if(!opts.circular&&0==itms.first)return opts.infinite&&$cfs.trigger(cf_e("next",conf),itms.total-1),a.stopImmediatePropagation();if(sz_resetMargin(d,opts),!is_number(c)){if(opts.items.visibleConf.variable)c=gn_getVisibleItemsPrev(d,opts,itms.total-1);else if("*"!=opts.items.filter){var e=is_number(b.items)?b.items:gn_getVisibleOrg($cfs,opts);c=gn_getScrollItemsPrevFilter(d,opts,itms.total-1,e)}else c=opts.items.visible;c=cf_getAdjust(c,opts,b.items,$tt0)}if(opts.circular||itms.total-c=itms.total;)itms.first-=itms.total;opts.circular||(0==itms.first&&b.onEnd&&b.onEnd.call($tt0,"prev"),opts.infinite||nv_enableNavi(opts,itms.first,conf)),$cfs.children().slice(itms.total-c,itms.total).prependTo($cfs),itms.totall?opts.padding[opts.d[3]]:0,p=!1,q=$();if(opts.items.visible=0&&sz_resetMargin(j,opts,opts.padding[opts.d[1]]),l>=0&&sz_resetMargin(i,opts,opts.padding[opts.d[3]]),opts.align&&(opts.padding[opts.d[1]]=m,opts.padding[opts.d[3]]=l),B[opts.d.left]=-(t-o),C[opts.d.left]=-(v-o),x[opts.d.left]=u[opts.d.width];var E=function(){},F=function(){},G=function(){},H=function(){},I=function(){},J=function(){},K=function(){},L=function(){},M=function(){},N=function(){},O=function(){};switch(b.fx){case"crossfade":case"cover":case"cover-fade":case"uncover":case"uncover-fade":s=$cfs.clone(!0).appendTo($wrp)}switch(b.fx){case"crossfade":case"uncover":case"uncover-fade":s.children().slice(0,c).remove(),s.children().slice(opts.items.visibleConf.old).remove();break;case"cover":case"cover-fade":s.children().slice(opts.items.visible).remove(),s.css(C)}if($cfs.css(B),scrl=sc_setScroll(D,b.easing,conf),w[opts.d.left]=opts.usePadding?opts.padding[opts.d[3]]:0,opts.centerVertically&&(w["line-height"]=u.height+"px"),("variable"==opts[opts.d.width]||"variable"==opts[opts.d.height])&&(E=function(){$wrp.css(u)},F=function(){scrl.anims.push([$wrp,u])}),opts.usePadding){switch(k.not(i).length&&(y[opts.d.marginRight]=i.data("_cfs_origCssMargin"),0>l?i.css(y):(K=function(){i.css(y)},L=function(){scrl.anims.push([i,y])})),b.fx){case"cover":case"cover-fade":s.children().eq(c-1).css(y)}k.not(j).length&&(z[opts.d.marginRight]=j.data("_cfs_origCssMargin"),G=function(){j.css(z)},H=function(){scrl.anims.push([j,z])}),m>=0&&(A[opts.d.marginRight]=k.data("_cfs_origCssMargin")+opts.padding[opts.d[1]],I=function(){k.css(A)},J=function(){scrl.anims.push([k,A])})}O=function(){$cfs.css(w)};var P=opts.items.visible+c-itms.total;N=function(){if(P>0&&($cfs.children().slice(itms.total).remove(),g=$($cfs.children().slice(itms.total-(opts.items.visible-P)).get().concat($cfs.children().slice(0,P).get()))),sc_showHiddenItems(p),opts.usePadding){var a=$cfs.children().eq(opts.items.visible+c-1);a.css(opts.d.marginRight,a.data("_cfs_origCssMargin"))}};var Q=sc_mapCallbackArguments(g,q,h,c,"prev",D,u);switch(M=function(){sc_afterScroll($cfs,s,b),crsl.isScrolling=!1,clbk.onAfter=sc_fireCallbacks($tt0,b,"onAfter",Q,clbk),queu=sc_fireQueue($cfs,queu,conf),crsl.isPaused||$cfs.trigger(cf_e("play",conf))},crsl.isScrolling=!0,tmrs=sc_clearTimers(tmrs),clbk.onBefore=sc_fireCallbacks($tt0,b,"onBefore",Q,clbk),b.fx){case"none":$cfs.css(w),E(),G(),I(),K(),O(),N(),M();break;case"fade":scrl.anims.push([$cfs,{opacity:0},function(){E(),G(),I(),K(),O(),N(),scrl=sc_setScroll(D,b.easing,conf),scrl.anims.push([$cfs,{opacity:1},M]),sc_startScroll(scrl,conf)}]);break;case"crossfade":$cfs.css({opacity:0}),scrl.anims.push([s,{opacity:0}]),scrl.anims.push([$cfs,{opacity:1},M]),F(),G(),I(),K(),O(),N();break;case"cover":scrl.anims.push([s,w,function(){G(),I(),K(),O(),N(),M()}]),F();break;case"cover-fade":scrl.anims.push([$cfs,{opacity:0}]),scrl.anims.push([s,w,function(){G(),I(),K(),O(),N(),M()}]),F();break;case"uncover":scrl.anims.push([s,x,M]),F(),G(),I(),K(),O(),N();break;case"uncover-fade":$cfs.css({opacity:0}),scrl.anims.push([$cfs,{opacity:1}]),scrl.anims.push([s,x,M]),F(),G(),I(),K(),O(),N();break;default:scrl.anims.push([$cfs,w,function(){N(),M()}]),F(),H(),J(),L()}return sc_startScroll(scrl,conf),cf_setCookie(opts.cookie,$cfs,conf),$cfs.trigger(cf_e("updatePageStatus",conf),[!1,u]),!0}),$cfs.bind(cf_e("slide_next",conf),function(a,b,c){a.stopPropagation();var d=$cfs.children();if(!opts.circular&&itms.first==opts.items.visible)return opts.infinite&&$cfs.trigger(cf_e("prev",conf),itms.total-1),a.stopImmediatePropagation();if(sz_resetMargin(d,opts),!is_number(c)){if("*"!=opts.items.filter){var e=is_number(b.items)?b.items:gn_getVisibleOrg($cfs,opts);c=gn_getScrollItemsNextFilter(d,opts,0,e)}else c=opts.items.visible;c=cf_getAdjust(c,opts,b.items,$tt0)}var f=0==itms.first?itms.total:itms.first;if(!opts.circular){if(opts.items.visibleConf.variable)var g=gn_getVisibleItemsNext(d,opts,c),e=gn_getVisibleItemsPrev(d,opts,f-1);else var g=opts.items.visible,e=opts.items.visible;c+g>f&&(c=f-e)}if(opts.items.visibleConf.old=opts.items.visible,opts.items.visibleConf.variable){for(var g=cf_getItemsAdjust(gn_getVisibleItemsNextTestCircular(d,opts,c,f),opts,opts.items.visibleConf.adjust,$tt0);opts.items.visible-c>=g&&cm&&(w[opts.d.left]+=m),("variable"==opts[opts.d.width]||"variable"==opts[opts.d.height])&&(C=function(){$wrp.css(u)},D=function(){scrl.anims.push([$wrp,u])}),opts.usePadding){var L=l.data("_cfs_origCssMargin");n>=0&&(L+=opts.padding[opts.d[1]]),l.css(opts.d.marginRight,L),j.not(k).length&&(z[opts.d.marginRight]=k.data("_cfs_origCssMargin")),E=function(){k.css(z)},F=function(){scrl.anims.push([k,z])};var M=j.data("_cfs_origCssMargin");m>0&&(M+=opts.padding[opts.d[3]]),y[opts.d.marginRight]=M,G=function(){j.css(y)},H=function(){scrl.anims.push([j,y])}}K=function(){$cfs.css(A)};var N=opts.items.visible+c-itms.total;J=function(){N>0&&$cfs.children().slice(itms.total).remove();var a=$cfs.children().slice(0,c).appendTo($cfs).last();if(N>0&&(i=gi_getCurrentItems(d,opts)),sc_showHiddenItems(p),opts.usePadding){if(itms.totalb?"next":"prev"),"prev"==f&&(b=itms.total-b),$cfs.trigger(cf_e(f,conf),[e,b,g]),!0)}),$cfs.bind(cf_e("prevPage",conf),function(a,b,c){a.stopPropagation();var d=$cfs.triggerHandler(cf_e("currentPage",conf));return $cfs.triggerHandler(cf_e("slideToPage",conf),[d-1,b,"prev",c])}),$cfs.bind(cf_e("nextPage",conf),function(a,b,c){a.stopPropagation();var d=$cfs.triggerHandler(cf_e("currentPage",conf));return $cfs.triggerHandler(cf_e("slideToPage",conf),[d+1,b,"next",c])}),$cfs.bind(cf_e("slideToPage",conf),function(a,b,c,d,e){a.stopPropagation(),is_number(b)||(b=$cfs.triggerHandler(cf_e("currentPage",conf)));var f=opts.pagination.items||opts.items.visible,g=Math.ceil(itms.total/f)-1;return 0>b&&(b=g),b>g&&(b=0),$cfs.triggerHandler(cf_e("slideTo",conf),[b*f,0,!0,c,d,e])}),$cfs.bind(cf_e("jumpToStart",conf),function(a,b){if(a.stopPropagation(),b=b?gn_getItemIndex(b,0,!0,itms,$cfs):0,b+=itms.first,0!=b){if(itms.total>0)for(;b>itms.total;)b-=itms.total;$cfs.prepend($cfs.children().slice(b,itms.total))}return!0}),$cfs.bind(cf_e("synchronise",conf),function(a,b){if(a.stopPropagation(),b)b=cf_getSynchArr(b);else{if(!opts.synchronise)return debug(conf,"No carousel to synchronise.");b=opts.synchronise}for(var c=$cfs.triggerHandler(cf_e("currentPosition",conf)),d=!0,e=0,f=b.length;f>e;e++)b[e][0].triggerHandler(cf_e("slideTo",conf),[c,b[e][3],!0])||(d=!1);return d}),$cfs.bind(cf_e("queue",conf),function(a,b,c){return a.stopPropagation(),is_function(b)?b.call($tt0,queu):is_array(b)?queu=b:is_undefined(b)||queu.push([b,c]),queu}),$cfs.bind(cf_e("insertItem",conf),function(a,b,c,d,e){a.stopPropagation();var f=[b,c,d,e],g=["string/object","string/number/object","boolean","number"],h=cf_sortParams(f,g);if(b=h[0],c=h[1],d=h[2],e=h[3],is_object(b)&&!is_jquery(b)?b=$(b):is_string(b)&&(b=$(b)),!is_jquery(b)||0==b.length)return debug(conf,"Not a valid object.");is_undefined(c)&&(c="end"),sz_storeMargin(b,opts),sz_storeOrigCss(b);var i=c,j="before";"end"==c?d?(0==itms.first?(c=itms.total-1,j="after"):(c=itms.first,itms.first+=b.length),0>c&&(c=0)):(c=itms.total-1,j="after"):c=gn_getItemIndex(c,e,d,itms,$cfs);var k=$cfs.children().eq(c);return k.length?k[j](b):(debug(conf,"Correct insert-position not found! Appending item to the end."),$cfs.append(b)),"end"==i||d||c=itms.total&&(itms.first-=itms.total),$cfs.trigger(cf_e("updateSizes",conf)),$cfs.trigger(cf_e("linkAnchors",conf)),!0}),$cfs.bind(cf_e("removeItem",conf),function(a,b,c,d){a.stopPropagation();var e=[b,c,d],f=["string/number/object","boolean","number"],g=cf_sortParams(e,f);b=g[0],c=g[1],d=g[2];if(b instanceof $&&b.length>1)return h=$(),b.each(function(a,b){var e=$cfs.trigger(cf_e("removeItem",conf),[$(this),c,d]);e&&(h=h.add(e))}),h;if(is_undefined(b)||"end"==b)h=$cfs.children().last();else{b=gn_getItemIndex(b,d,c,itms,$cfs);var h=$cfs.children().eq(b);h.length&&bc&&(c=0),c>e&&(c=e),is_function(b)&&b.call($tt0,c),c}),$cfs.bind(cf_e("currentVisible",conf),function(a,b){a.stopPropagation();var c=gi_getCurrentItems($cfs.children(),opts);return is_function(b)&&b.call($tt0,c),c}),$cfs.bind(cf_e("slice",conf),function(a,b,c,d){if(a.stopPropagation(),0==itms.total)return!1;var e=[b,c,d],f=["number","number","function"],g=cf_sortParams(e,f);if(b=is_number(g[0])?g[0]:0,c=is_number(g[1])?g[1]:itms.total,d=g[2],b+=itms.first,c+=itms.first,items.total>0){for(;b>itms.total;)b-=itms.total;for(;c>itms.total;)c-=itms.total;for(;0>b;)b+=itms.total;for(;0>c;)c+=itms.total}var h,i=$cfs.children();return h=c>b?i.slice(b,c):$(i.slice(b,itms.total).get().concat(i.slice(0,c).get())),is_function(d)&&d.call($tt0,h),h}),$cfs.bind(cf_e("isPaused",conf)+" "+cf_e("isStopped",conf)+" "+cf_e("isScrolling",conf),function(a,b){a.stopPropagation();var c=a.type.slice(conf.events.prefix.length),d=crsl[c];return is_function(b)&&b.call($tt0,d),d}),$cfs.bind(cf_e("configuration",conf),function(e,a,b,c){e.stopPropagation();var reInit=!1;if(is_function(a))a.call($tt0,opts);else if(is_object(a))opts_orig=$.extend(!0,{},opts_orig,a),b!==!1?reInit=!0:opts=$.extend(!0,{},opts,a);else if(!is_undefined(a))if(is_function(b)){var val=eval("opts."+a);is_undefined(val)&&(val=""),b.call($tt0,val)}else{if(is_undefined(b))return eval("opts."+a);"boolean"!=typeof c&&(c=!0),eval("opts_orig."+a+" = b"),c!==!1?reInit=!0:eval("opts."+a+" = b")}if(reInit){sz_resetMargin($cfs.children(),opts),FN._init(opts_orig),FN._bind_buttons();var sz=sz_setSizes($cfs,opts);$cfs.trigger(cf_e("updatePageStatus",conf),[!0,sz])}return opts}),$cfs.bind(cf_e("linkAnchors",conf),function(a,b,c){return a.stopPropagation(),is_undefined(b)?b=$("body"):is_string(b)&&(b=$(b)),is_jquery(b)&&0!=b.length?(is_string(c)||(c="a.caroufredsel"),b.find(c).each(function(){var a=this.hash||"";a.length>0&&-1!=$cfs.children().index($(a))&&$(this).unbind("click").click(function(b){b.preventDefault(),$cfs.trigger(cf_e("slideTo",conf),a)})}),!0):debug(conf,"Not a valid object.")}),$cfs.bind(cf_e("updatePageStatus",conf),function(a,b,c){if(a.stopPropagation(),opts.pagination.container){var d=opts.pagination.items||opts.items.visible,e=Math.ceil(itms.total/d);b&&(opts.pagination.anchorBuilder&&(opts.pagination.container.children().remove(),opts.pagination.container.each(function(){for(var a=0;e>a;a++){var b=$cfs.children().eq(gn_getItemIndex(a*d,0,!0,itms,$cfs));$(this).append(opts.pagination.anchorBuilder.call(b[0],a+1))}})),opts.pagination.container.each(function(){$(this).children().unbind(opts.pagination.event).each(function(a){$(this).bind(opts.pagination.event,function(b){b.preventDefault(),$cfs.trigger(cf_e("slideTo",conf),[a*d,-opts.pagination.deviation,!0,opts.pagination])})})}));var f=$cfs.triggerHandler(cf_e("currentPage",conf))+opts.pagination.deviation;return f>=e&&(f=0),0>f&&(f=e-1),opts.pagination.container.each(function(){$(this).children().removeClass(cf_c("selected",conf)).eq(f).addClass(cf_c("selected",conf))}),!0}}),$cfs.bind(cf_e("updateSizes",conf),function(a){var b=opts.items.visible,c=$cfs.children(),d=ms_getParentSize($wrp,opts,"width");if(itms.total=c.length,crsl.primarySizePercentage?(opts.maxDimension=d,opts[opts.d.width]=ms_getPercentage(d,crsl.primarySizePercentage)):opts.maxDimension=ms_getMaxDimension(opts,d),opts.responsive?(opts.items.width=opts.items.sizesConf.width,opts.items.height=opts.items.sizesConf.height,opts=in_getResponsiveValues(opts,c,d),b=opts.items.visible,sz_setResponsiveSizes(opts,c)):opts.items.visibleConf.variable?b=gn_getVisibleItemsNext(c,opts,0):"*"!=opts.items.filter&&(b=gn_getVisibleItemsNextFilter(c,opts,0)),!opts.circular&&0!=itms.first&&b>itms.first){if(opts.items.visibleConf.variable)var e=gn_getVisibleItemsPrev(c,opts,itms.first)-itms.first;else if("*"!=opts.items.filter)var e=gn_getVisibleItemsPrevFilter(c,opts,itms.first)-itms.first;else var e=opts.items.visible-itms.first;debug(conf,"Preventing non-circular: sliding "+e+" items backward."),$cfs.trigger(cf_e("prev",conf),e)}opts.items.visible=cf_getItemsAdjust(b,opts,opts.items.visibleConf.adjust,$tt0),opts.items.visibleConf.old=opts.items.visible,opts=in_getAlignPadding(opts,c);var f=sz_setSizes($cfs,opts);return $cfs.trigger(cf_e("updatePageStatus",conf),[!0,f]),nv_showNavi(opts,itms.total,conf),nv_enableNavi(opts,itms.first,conf),f}),$cfs.bind(cf_e("destroy",conf),function(a,b){return a.stopPropagation(),tmrs=sc_clearTimers(tmrs),$cfs.data("_cfs_isCarousel",!1),$cfs.trigger(cf_e("finish",conf)),b&&$cfs.trigger(cf_e("jumpToStart",conf)),sz_restoreOrigCss($cfs.children()),sz_restoreOrigCss($cfs),FN._unbind_events(),FN._unbind_buttons(),"parent"==conf.wrapper?sz_restoreOrigCss($wrp):$wrp.replaceWith($cfs),!0}),$cfs.bind(cf_e("debug",conf),function(a){return debug(conf,"Carousel width: "+opts.width),debug(conf,"Carousel height: "+opts.height),debug(conf,"Item widths: "+opts.items.width),debug(conf,"Item heights: "+opts.items.height),debug(conf,"Number of items visible: "+opts.items.visible),opts.auto.play&&debug(conf,"Number of items scrolled automatically: "+opts.auto.items),opts.prev.button&&debug(conf,"Number of items scrolled backward: "+opts.prev.items),opts.next.button&&debug(conf,"Number of items scrolled forward: "+opts.next.items),conf.debug}),$cfs.bind("_cfs_triggerEvent",function(a,b,c){return a.stopPropagation(),$cfs.triggerHandler(cf_e(b,conf),c)})},FN._unbind_events=function(){$cfs.unbind(cf_e("",conf)),$cfs.unbind(cf_e("",conf,!1)),$cfs.unbind("_cfs_triggerEvent")},FN._bind_buttons=function(){if(FN._unbind_buttons(),nv_showNavi(opts,itms.total,conf),nv_enableNavi(opts,itms.first,conf),opts.auto.pauseOnHover){var a=bt_pauseOnHoverConfig(opts.auto.pauseOnHover);$wrp.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),a)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})}if(opts.auto.button&&opts.auto.button.bind(cf_e(opts.auto.event,conf,!1),function(a){a.preventDefault();var b=!1,c=null;crsl.isPaused?b="play":opts.auto.pauseOnEvent&&(b="pause",c=bt_pauseOnHoverConfig(opts.auto.pauseOnEvent)),b&&$cfs.trigger(cf_e(b,conf),c)}),opts.prev.button&&(opts.prev.button.bind(cf_e(opts.prev.event,conf,!1),function(a){a.preventDefault(),$cfs.trigger(cf_e("prev",conf))}),opts.prev.pauseOnHover)){var a=bt_pauseOnHoverConfig(opts.prev.pauseOnHover);opts.prev.button.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),a)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})}if(opts.next.button&&(opts.next.button.bind(cf_e(opts.next.event,conf,!1),function(a){a.preventDefault(),$cfs.trigger(cf_e("next",conf))}),opts.next.pauseOnHover)){var a=bt_pauseOnHoverConfig(opts.next.pauseOnHover);opts.next.button.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),a)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})}if(opts.pagination.container&&opts.pagination.pauseOnHover){var a=bt_pauseOnHoverConfig(opts.pagination.pauseOnHover);opts.pagination.container.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),a)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})}if((opts.prev.key||opts.next.key)&&$(document).bind(cf_e("keyup",conf,!1,!0,!0),function(a){var b=a.keyCode;b==opts.next.key&&(a.preventDefault(),$cfs.trigger(cf_e("next",conf))),b==opts.prev.key&&(a.preventDefault(),$cfs.trigger(cf_e("prev",conf)))}),opts.pagination.keys&&$(document).bind(cf_e("keyup",conf,!1,!0,!0),function(a){var b=a.keyCode;b>=49&&58>b&&(b=(b-49)*opts.items.visible,b<=itms.total&&(a.preventDefault(),$cfs.trigger(cf_e("slideTo",conf),[b,0,!0,opts.pagination])))}),$.fn.swipe){var b="ontouchstart"in window;if(b&&opts.swipe.onTouch||!b&&opts.swipe.onMouse){var c=$.extend(!0,{},opts.prev,opts.swipe),d=$.extend(!0,{},opts.next,opts.swipe),e=function(){$cfs.trigger(cf_e("prev",conf),[c])},f=function(){$cfs.trigger(cf_e("next",conf),[d])};switch(opts.direction){case"up":case"down":opts.swipe.options.swipeUp=f,opts.swipe.options.swipeDown=e;break;default:opts.swipe.options.swipeLeft=f,opts.swipe.options.swipeRight=e}crsl.swipe&&$cfs.swipe("destroy"),$wrp.swipe(opts.swipe.options),crsl.swipe=!0}}if($.fn.mousewheel&&opts.mousewheel){var g=$.extend(!0,{},opts.prev,opts.mousewheel),h=$.extend(!0,{},opts.next,opts.mousewheel);crsl.mousewheel&&$wrp.unbind(cf_e("mousewheel",conf,!1)),$wrp.bind(cf_e("mousewheel",conf,!1),function(a,b){a.preventDefault(),b>0?$cfs.trigger(cf_e("prev",conf),[g]):$cfs.trigger(cf_e("next",conf),[h])}),crsl.mousewheel=!0}if(opts.auto.play&&$cfs.trigger(cf_e("play",conf),opts.auto.delay),crsl.upDateOnWindowResize){var i=function(a){$cfs.trigger(cf_e("finish",conf)),opts.auto.pauseOnResize&&!crsl.isPaused&&$cfs.trigger(cf_e("play",conf)),sz_resetMargin($cfs.children(),opts),$cfs.trigger(cf_e("updateSizes",conf))},j=$(window),k=null;if($.debounce&&"debounce"==conf.onWindowResize)k=$.debounce(200,i);else if($.throttle&&"throttle"==conf.onWindowResize)k=$.throttle(300,i);else{var l=0,m=0;k=function(){var a=j.width(),b=j.height();(a!=l||b!=m)&&(i(),l=a,m=b)}}j.bind(cf_e("resize",conf,!1,!0,!0),k)}},FN._unbind_buttons=function(){var a=(cf_e("",conf),cf_e("",conf,!1));ns3=cf_e("",conf,!1,!0,!0),$(document).unbind(ns3),$(window).unbind(ns3),$wrp.unbind(a),opts.auto.button&&opts.auto.button.unbind(a),opts.prev.button&&opts.prev.button.unbind(a),opts.next.button&&opts.next.button.unbind(a),opts.pagination.container&&(opts.pagination.container.unbind(a),opts.pagination.anchorBuilder&&opts.pagination.container.children().remove()),crsl.swipe&&($cfs.swipe("destroy"),$wrp.css("cursor","default"),crsl.swipe=!1),crsl.mousewheel&&(crsl.mousewheel=!1),nv_showNavi(opts,"hide",conf),nv_enableNavi(opts,"removeClass",conf)},is_boolean(configs)&&(configs={debug:configs});var crsl={direction:"next",isPaused:!0,isScrolling:!1,isStopped:!1,mousewheel:!1,swipe:!1},itms={total:$cfs.children().length,first:0},tmrs={auto:null,progress:null,startTime:getTime(),timePassed:0},scrl={isStopped:!1,duration:0,startTime:0,easing:"",anims:[]},clbk={onBefore:[],onAfter:[]},queu=[],conf=$.extend(!0,{},$.fn.carouFredSel.configs,configs),opts={},opts_orig=$.extend(!0,{},options),$wrp="parent"==conf.wrapper?$cfs.parent():$cfs.wrap("<"+conf.wrapper.element+' class="'+conf.wrapper.classname+'" />').parent();if(conf.selector=$cfs.selector,conf.serialNumber=$.fn.carouFredSel.serialNumber++,conf.transition=conf.transition&&$.fn.transition?"transition":"animate",FN._init(opts_orig,!0,starting_position),FN._build(),FN._bind_events(),FN._bind_buttons(),is_array(opts.items.start))var start_arr=opts.items.start;else{var start_arr=[];0!=opts.items.start&&start_arr.push(opts.items.start)}if(opts.cookie&&start_arr.unshift(parseInt(cf_getCookie(opts.cookie),10)),start_arr.length>0)for(var a=0,l=start_arr.length;l>a;a++){var s=start_arr[a];if(0!=s){if(s===!0){if(s=window.location.hash,s.length<1)continue}else"random"===s&&(s=Math.floor(Math.random()*itms.total));if($cfs.triggerHandler(cf_e("slideTo",conf),[s,0,!0,{fx:"none"}]))break}}var siz=sz_setSizes($cfs,opts),itm=gi_getCurrentItems($cfs.children(),opts);return opts.onCreate&&opts.onCreate.call($tt0,{width:siz.width,height:siz.height,items:itm}),$cfs.trigger(cf_e("updatePageStatus",conf),[!0,siz]),$cfs.trigger(cf_e("linkAnchors",conf)),conf.debug&&$cfs.trigger(cf_e("debug",conf)),$cfs},$.fn.carouFredSel.serialNumber=1,$.fn.carouFredSel.defaults={synchronise:!1,infinite:!0,circular:!0,responsive:!1,centerVertically:!1,direction:"left",items:{start:0},scroll:{easing:"swing",duration:500,pauseOnHover:!1,event:"click",queue:!1}},$.fn.carouFredSel.configs={debug:!1,transition:!1,onWindowResize:"throttle",events:{prefix:"",namespace:"cfs"},wrapper:{element:"div",classname:"caroufredsel_wrapper"},classnames:{}},$.fn.carouFredSel.pageAnchorBuilder=function(a){return''+a+" "},$.fn.carouFredSel.progressbarUpdater=function(a){$(this).css("width",a+"%")},$.fn.carouFredSel.cookie={get:function(a){a+="=";for(var b=document.cookie.split(";"),c=0,d=b.length;d>c;c++){for(var e=b[c];" "==e.charAt(0);)e=e.slice(1);if(0==e.indexOf(a))return e.slice(a.length)}return 0},set:function(a,b,c){var d="";if(c){var e=new Date;e.setTime(e.getTime()+24*c*60*60*1e3),d="; expires="+e.toGMTString()}document.cookie=a+"="+b+d+"; path=/"},remove:function(a){$.fn.carouFredSel.cookie.set(a,"",-1)}},$.extend($.easing,{quadratic:function(a){var b=a*a;return a*(-b*a+4*b-6*a+4)},cubic:function(a){return a*(4*a*a-9*a+6)},elastic:function(a){var b=a*a;return a*(33*b*b-106*b*a+126*b-67*a+15)}}))}(jQuery),function(a){function b(a,b){return a.toFixed(b.decimals)}a.fn.countTo=function(b){return b=b||{},a(this).each(function(){function c(){k+=g,j++,d(k),"function"==typeof e.onUpdate&&e.onUpdate.call(h,k),j>=f&&(i.removeData("countTo"),clearInterval(l.interval),k=e.to,"function"==typeof e.onComplete&&e.onComplete.call(h,k))}function d(a){var b=e.formatter.call(h,a,e);i.text(b)}var e=a.extend({},a.fn.countTo.defaults,{from:a(this).data("from"),to:a(this).data("to"),speed:a(this).data("speed"),refreshInterval:a(this).data("refresh-interval"),decimals:a(this).data("decimals")},b),f=Math.ceil(e.speed/e.refreshInterval),g=(e.to-e.from)/f,h=this,i=a(this),j=0,k=e.from,l=i.data("countTo")||{};i.data("countTo",l),l.interval&&clearInterval(l.interval),l.interval=setInterval(c,e.refreshInterval),d(k)})},a.fn.countTo.defaults={from:0,to:0,speed:1e3,refreshInterval:100,decimals:0,formatter:b,onUpdate:null,onComplete:null}}(jQuery),function(a,b){"use strict";function c(b){a.fn.cycle.debug&&d(b)}function d(){window.console&&console.log}function e(b,c,d){var e=a(b).data("cycle.opts");if(e){var f=!!b.cyclePause;f&&e.paused?e.paused(b,e,c,d):!f&&e.resumed&&e.resumed(b,e,c,d)}}function f(c,f,g){function i(b,c,e){if(!b&&c===!0){var f=a(e).data("cycle.opts");if(!f)return d("options not found, can not resume"),!1;e.cycleTimeout&&(clearTimeout(e.cycleTimeout),e.cycleTimeout=0),m(f.elements,f,1,!f.backwards)}}if(c.cycleStop===b&&(c.cycleStop=0),(f===b||null===f)&&(f={}),f.constructor==String){switch(f){case"destroy":case"stop":var j=a(c).data("cycle.opts");return j?(c.cycleStop++,c.cycleTimeout&&clearTimeout(c.cycleTimeout),c.cycleTimeout=0,j.elements&&a(j.elements).stop(),a(c).removeData("cycle.opts"),"destroy"==f&&h(c,j),!1):!1;case"toggle":return c.cyclePause=1===c.cyclePause?0:1,i(c.cyclePause,g,c),e(c),!1;case"pause":return c.cyclePause=1,e(c),!1;case"resume":return c.cyclePause=0,i(!1,g,c),e(c),!1;case"prev":case"next":return(j=a(c).data("cycle.opts"))?("string"==typeof g&&(j.oneTimeFx=g),a.fn.cycle[f](j),!1):(d('options not found, "prev/next" ignored'),!1);default:f={fx:f}}return f}if(f.constructor==Number){var k=f;return(f=a(c).data("cycle.opts"))?0>k||k>=f.elements.length?(d("invalid slide index: "+k),!1):(f.nextSlide=k,c.cycleTimeout&&(clearTimeout(c.cycleTimeout),c.cycleTimeout=0),"string"==typeof g&&(f.oneTimeFx=g),m(f.elements,f,1,k>=f.currSlide),!1):(d("options not found, can not advance slide"),!1)}return f}function g(b,c){if(!a.support.opacity&&c.cleartype&&b.style.filter)try{b.style.removeAttribute("filter")}catch(d){}}function h(b,c){c.next&&a(c.next).unbind(c.prevNextEvent),c.prev&&a(c.prev).unbind(c.prevNextEvent),(c.pager||c.pagerAnchorBuilder)&&a.each(c.pagerAnchors||[],function(){this.unbind().remove()}),c.pagerAnchors=null,a(b).unbind("mouseenter.cycle mouseleave.cycle"),c.destroy&&c.destroy(c);
}function i(c,f,h,i,n){var r,s=a.extend({},a.fn.cycle.defaults,i||{},a.metadata?c.metadata():a.meta?c.data():{}),t=a.isFunction(c.data)?c.data(s.metaAttr):null;t&&(s=a.extend(s,t)),s.autostop&&(s.countdown=s.autostopCount||h.length);var u=c[0];if(c.data("cycle.opts",s),s.$cont=c,s.stopCount=u.cycleStop,s.elements=h,s.before=s.before?[s.before]:[],s.after=s.after?[s.after]:[],!a.support.opacity&&s.cleartype&&s.after.push(function(){g(this,s)}),s.continuous&&s.after.push(function(){m(h,s,0,!s.backwards)}),j(s),a.support.opacity||!s.cleartype||s.cleartypeNoBg||q(f),"static"==c.css("position")&&c.css("position","relative"),s.width&&c.width(s.width),s.height&&"auto"!=s.height&&c.height(s.height),s.startingSlide!==b?(s.startingSlide=parseInt(s.startingSlide,10),s.startingSlide>=h.length||s.startSlide<0?s.startingSlide=0:r=!0):s.backwards?s.startingSlide=h.length-1:s.startingSlide=0,s.random){s.randomMap=[];for(var v=0;v=h.length&&(s.startingSlide=0);s.currSlide=s.startingSlide||0;var x=s.startingSlide;f.css({position:"absolute",top:0,left:0}).hide().each(function(b){var c;c=s.backwards?x?x>=b?h.length+(b-x):x-b:h.length-b:x?b>=x?h.length-(b-x):x-b:h.length-b,a(this).css("z-index",c)}),a(h[x]).css("opacity",1).show(),g(h[x],s),s.fit&&(s.aspect?f.each(function(){var b=a(this),c=s.aspect===!0?b.width()/b.height():s.aspect;s.width&&b.width()!=s.width&&(b.width(s.width),b.height(s.width/c)),s.height&&b.height()z?E:z,A=F>A?F:A}s.containerResize&&z>0&&A>0&&c.animate({width:z+"px",height:A+"px"}),s.containerResizeHeight&&A>0&&c.animate({height:A+"px"})}var G=!1;if(s.pause&&c.bind("mouseenter.cycle",function(){G=!0,this.cyclePause++,e(u,!0)}).bind("mouseleave.cycle",function(){G&&this.cyclePause--,e(u,!0)}),k(s)===!1)return!1;var H=!1;if(i.requeueAttempts=i.requeueAttempts||0,f.each(function(){var b=a(this);if(this.cycleH=s.fit&&s.height?s.height:b.height()||this.offsetHeight||this.height||b.attr("height")||0,this.cycleW=s.fit&&s.width?s.width:b.width()||this.offsetWidth||this.width||b.attr("width")||0,b.is("img")){var c=0===this.cycleH&&0===this.cycleW&&!this.complete;if(c){if(n.s&&s.requeueOnImageNotLoaded&&++i.requeueAttempts<100)return d(i.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH),setTimeout(function(){a(n.s,n.c).cycle(i)},s.requeueTimeout),H=!0,!1;d("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}return!0}),H)return!1;if(s.cssBefore=s.cssBefore||{},s.cssAfter=s.cssAfter||{},s.cssFirst=s.cssFirst||{},s.animIn=s.animIn||{},s.animOut=s.animOut||{},f.not(":eq("+x+")").css(s.cssBefore),a(f[x]).css(s.cssFirst),s.timeout){s.timeout=parseInt(s.timeout,10),s.speed.constructor==String&&(s.speed=a.fx.speeds[s.speed]||parseInt(s.speed,10)),s.sync||(s.speed=s.speed/2);for(var I="none"==s.fx?0:"shuffle"==s.fx?500:250;s.timeout-s.speed=h.length-1?0:s.startingSlide+1,!s.multiFx){var J=a.fn.cycle.transitions[s.fx];if(a.isFunction(J))J(c,f,s);else if("custom"!=s.fx&&!s.multiFx)return d("unknown transition: "+s.fx,"; slideshow terminating"),!1}var K=f[x];return s.skipInitializationCallbacks||(s.before.length&&s.before[0].apply(K,[K,K,s,!0]),s.after.length&&s.after[0].apply(K,[K,K,s,!0])),s.next&&a(s.next).bind(s.prevNextEvent,function(){return o(s,1)}),s.prev&&a(s.prev).bind(s.prevNextEvent,function(){return o(s,0)}),(s.pager||s.pagerAnchorBuilder)&&p(h,s),l(s,h),s}function j(b){b.original={before:[],after:[]},b.original.cssBefore=a.extend({},b.cssBefore),b.original.cssAfter=a.extend({},b.cssAfter),b.original.animIn=a.extend({},b.animIn),b.original.animOut=a.extend({},b.animOut),a.each(b.before,function(){b.original.before.push(this)}),a.each(b.after,function(){b.original.after.push(this)})}function k(b){var e,f,g=a.fn.cycle.transitions;if(b.fx.indexOf(",")>0){for(b.multiFx=!0,b.fxs=b.fx.replace(/\s*/g,"").split(","),e=0;ee;e++){var k=Math.floor(Math.random()*b.fxs.length);b.fxs.push(b.fxs.splice(k,1)[0])}c("randomized fx sequence: ",b.fxs)}return!0}function l(b,c){b.addSlide=function(d,e){var f=a(d),g=f[0];b.autostopCount||b.countdown++,c[e?"unshift":"push"](g),b.els&&b.els[e?"unshift":"push"](g),b.slideCount=c.length,b.random&&(b.randomMap.push(b.slideCount-1),b.randomMap.sort(function(a,b){return Math.random()-.5})),f.css("position","absolute"),f[e?"prependTo":"appendTo"](b.$cont),e&&(b.currSlide++,b.nextSlide++),a.support.opacity||!b.cleartype||b.cleartypeNoBg||q(f),b.fit&&b.width&&f.width(b.width),b.fit&&b.height&&"auto"!=b.height&&f.height(b.height),g.cycleH=b.fit&&b.height?b.height:f.height(),g.cycleW=b.fit&&b.width?b.width:f.width(),f.css(b.cssBefore),(b.pager||b.pagerAnchorBuilder)&&a.fn.cycle.createPagerAnchor(c.length-1,g,a(b.pager),c,b),a.isFunction(b.onAddSlide)?b.onAddSlide(f):f.hide()}}function m(d,e,f,g){function h(){var a=0;e.timeout;e.timeout&&!e.continuous?(a=n(d[e.currSlide],d[e.nextSlide],e,g),"shuffle"==e.fx&&(a-=e.speedOut)):e.continuous&&i.cyclePause&&(a=10),a>0&&(i.cycleTimeout=setTimeout(function(){m(d,e,0,!e.backwards)},a))}var i=e.$cont[0],j=d[e.currSlide],k=d[e.nextSlide];if(f&&e.busy&&e.manualTrump&&(c("manualTrump in go(), stopping active transition"),a(d).stop(!0,!0),e.busy=0,clearTimeout(i.cycleTimeout)),e.busy)return void c("transition active, ignoring new tx request");if(i.cycleStop==e.stopCount&&(0!==i.cycleTimeout||f)){if(!f&&!i.cyclePause&&!e.bounce&&(e.autostop&&--e.countdown<=0||e.nowrap&&!e.random&&e.nextSlide=e.fxs.length)?e.lastFx=0:!g&&(e.lastFx===b||--e.lastFx<0)&&(e.lastFx=e.fxs.length-1),o=e.fxs[e.lastFx]),e.oneTimeFx&&(o=e.oneTimeFx,e.oneTimeFx=null),a.fn.cycle.resetState(e,o),e.before.length&&a.each(e.before,function(a,b){i.cycleStop==e.stopCount&&b.apply(k,[j,k,e,g])});var p=function(){e.busy=0,a.each(e.after,function(a,b){i.cycleStop==e.stopCount&&b.apply(k,[j,k,e,g])}),i.cycleStop||h()};c("tx firing("+o+"); currSlide: "+e.currSlide+"; nextSlide: "+e.nextSlide),e.busy=1,e.fxFn?e.fxFn(j,k,e,p,g,f&&e.fastOnEvent):a.isFunction(a.fn.cycle[e.fx])?a.fn.cycle[e.fx](j,k,e,p,g,f&&e.fastOnEvent):a.fn.cycle.custom(j,k,e,p,g,f&&e.fastOnEvent)}if(l||e.nextSlide==e.currSlide){var q;e.lastSlide=e.currSlide,e.random?(e.currSlide=e.nextSlide,++e.randomIndex==d.length&&(e.randomIndex=0,e.randomMap.sort(function(a,b){return Math.random()-.5})),e.nextSlide=e.randomMap[e.randomIndex],e.nextSlide==e.currSlide&&(e.nextSlide=e.currSlide==e.slideCount-1?0:e.currSlide+1)):e.backwards?(q=e.nextSlide-1<0,q&&e.bounce?(e.backwards=!e.backwards,e.nextSlide=1,e.currSlide=0):(e.nextSlide=q?d.length-1:e.nextSlide-1,e.currSlide=q?0:e.nextSlide+1)):(q=e.nextSlide+1==d.length,q&&e.bounce?(e.backwards=!e.backwards,e.nextSlide=d.length-2,e.currSlide=d.length-1):(e.nextSlide=q?0:e.nextSlide+1,e.currSlide=q?d.length-1:e.nextSlide-1))}l&&e.pager&&e.updateActivePagerLink(e.pager,e.currSlide,e.activePagerClass)}}function n(a,b,d,e){if(d.timeoutFn){for(var f=d.timeoutFn.call(a,a,b,d,e);"none"!=d.fx&&f-d.speed<250;)f+=d.speed;if(c("calculated timeout: "+f+"; speed: "+d.speed),f!==!1)return f}return d.timeout}function o(b,c){var d=c?1:-1,e=b.elements,f=b.$cont[0],g=f.cycleTimeout;if(g&&(clearTimeout(g),f.cycleTimeout=0),b.random&&0>d)b.randomIndex--,-2==--b.randomIndex?b.randomIndex=e.length-2:-1==b.randomIndex&&(b.randomIndex=e.length-1),b.nextSlide=b.randomMap[b.randomIndex];else if(b.random)b.nextSlide=b.randomMap[b.randomIndex];else if(b.nextSlide=b.currSlide+d,b.nextSlide<0){if(b.nowrap)return!1;b.nextSlide=e.length-1}else if(b.nextSlide>=e.length){if(b.nowrap)return!1;b.nextSlide=0}var h=b.onPrevNextEvent||b.prevNextClick;return a.isFunction(h)&&h(d>0,b.nextSlide,e[b.nextSlide]),m(e,b,1,c),!1}function p(b,c){var d=a(c.pager);a.each(b,function(e,f){a.fn.cycle.createPagerAnchor(e,f,d,b,c)}),c.updateActivePagerLink(c.pager,c.startingSlide,c.activePagerClass)}function q(b){function d(a){return a=parseInt(a,10).toString(16),a.length<2?"0"+a:a}function e(b){for(;b&&"html"!=b.nodeName.toLowerCase();b=b.parentNode){var c=a.css(b,"background-color");if(c&&c.indexOf("rgb")>=0){var e=c.match(/\d+/g);return"#"+d(e[0])+d(e[1])+d(e[2])}if(c&&"transparent"!=c)return c}return"#ffffff"}c("applying clearType background-color hack"),b.each(function(){a(this).css("background-color",e(this))})}var r="3.0.3";a.expr[":"].paused=function(a){return a.cyclePause},a.fn.cycle=function(b,e){var g={s:this.selector,c:this.context};return 0===this.length&&"stop"!=b?!a.isReady&&g.s?(d("DOM not ready, queuing slideshow"),a(function(){a(g.s,g.c).cycle(b,e)}),this):(d("terminating; zero elements found by selector"+(a.isReady?"":" (DOM not ready)")),this):this.each(function(){var h=f(this,b,e);if(h!==!1){h.updateActivePagerLink=h.updateActivePagerLink||a.fn.cycle.updateActivePagerLink,this.cycleTimeout&&clearTimeout(this.cycleTimeout),this.cycleTimeout=this.cyclePause=0,this.cycleStop=0;var j=a(this),k=h.slideExpr?a(h.slideExpr,this):j.children(),l=k.get();if(l.length<2)return void d("terminating; too few slides: "+l.length);var o=i(j,k,l,h,g);if(o!==!1){var p=o.continuous?10:n(l[o.currSlide],l[o.nextSlide],o,!o.backwards);p&&(p+=o.delay||0,10>p&&(p=10),c("first timeout: "+p),this.cycleTimeout=setTimeout(function(){m(l,o,0,!h.backwards)},p))}}})},a.fn.cycle.resetState=function(b,c){c=c||b.fx,b.before=[],b.after=[],b.cssBefore=a.extend({},b.original.cssBefore),b.cssAfter=a.extend({},b.original.cssAfter),b.animIn=a.extend({},b.original.animIn),b.animOut=a.extend({},b.original.animOut),b.fxFn=null,a.each(b.original.before,function(){b.before.push(this)}),a.each(b.original.after,function(){b.after.push(this)});var d=a.fn.cycle.transitions[c];a.isFunction(d)&&d(b.$cont,a(b.elements),b)},a.fn.cycle.updateActivePagerLink=function(b,c,d){a(b).each(function(){a(this).children().removeClass(d).eq(c).addClass(d)})},a.fn.cycle.next=function(a){o(a,1)},a.fn.cycle.prev=function(a){o(a,0)},a.fn.cycle.createPagerAnchor=function(b,d,f,g,h){var i;if(a.isFunction(h.pagerAnchorBuilder)?(i=h.pagerAnchorBuilder(b,d),c("pagerAnchorBuilder("+b+", el) returned: "+i)):i=' ',i){var j=a(i);if(0===j.parents("body").length){var k=[];f.length>1?(f.each(function(){var b=j.clone(!0);a(this).append(b),k.push(b[0])}),j=a(k)):j.appendTo(f)}h.pagerAnchors=h.pagerAnchors||[],h.pagerAnchors.push(j);var l=function(c){c.preventDefault(),h.nextSlide=b;var d=h.$cont[0],e=d.cycleTimeout;e&&(clearTimeout(e),d.cycleTimeout=0);var f=h.onPagerEvent||h.pagerClick;a.isFunction(f)&&f(h.nextSlide,g[h.nextSlide]),m(g,h,1,h.currSlided?e-d:a.slideCount-d:d>e?d-e:d+a.slideCount-e},a.fn.cycle.commonReset=function(b,c,d,e,f,g){a(d.elements).not(b).hide(),"undefined"==typeof d.cssBefore.opacity&&(d.cssBefore.opacity=1),d.cssBefore.display="block",d.slideResize&&e!==!1&&c.cycleW>0&&(d.cssBefore.width=c.cycleW),d.slideResize&&f!==!1&&c.cycleH>0&&(d.cssBefore.height=c.cycleH),d.cssAfter=d.cssAfter||{},d.cssAfter.display="none",a(b).css("zIndex",d.slideCount+(g===!0?1:0)),a(c).css("zIndex",d.slideCount+(g===!0?0:1))},a.fn.cycle.custom=function(b,c,d,e,f,g){var h=a(b),i=a(c),j=d.speedIn,k=d.speedOut,l=d.easeIn,m=d.easeOut,n=d.animInDelay,o=d.animOutDelay;i.css(d.cssBefore),g&&(j=k="number"==typeof g?g:1,l=m=null);var p=function(){i.delay(n).animate(d.animIn,j,l,function(){e()})};h.delay(o).animate(d.animOut,k,m,function(){h.css(d.cssAfter),d.sync||p()}),d.sync&&p()},a.fn.cycle.transitions={fade:function(b,c,d){c.not(":eq("+d.currSlide+")").css("opacity",0),d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d),d.cssBefore.opacity=0}),d.animIn={opacity:1},d.animOut={opacity:0},d.cssBefore={top:0,left:0}}},a.fn.cycle.ver=function(){return r},a.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:!1,animIn:null,animInDelay:0,animOut:null,animOutDelay:0,aspect:!1,autostop:0,autostopCount:0,backwards:!1,before:null,center:null,cleartype:!a.support.opacity,cleartypeNoBg:!1,containerResize:1,containerResizeHeight:0,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:!0,metaAttr:"cycle",next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:!0,requeueTimeout:250,rev:0,shuffle:null,skipInitializationCallbacks:!1,slideExpr:null,slideResize:1,speed:1e3,speedIn:null,speedOut:null,startingSlide:b,sync:1,timeout:4e3,timeoutFn:null,updateActivePagerLink:null,width:null}}(jQuery),function(a){"use strict";a.fn.cycle.transitions.none=function(b,c,d){d.fxFn=function(b,c,d,e){a(c).show(),a(b).hide(),e()}},a.fn.cycle.transitions.fadeout=function(b,c,d){c.not(":eq("+d.currSlide+")").css({display:"block",opacity:1}),d.before.push(function(b,c,d,e,f,g){a(b).css("zIndex",d.slideCount+(g!==!0?1:0)),a(c).css("zIndex",d.slideCount+(g!==!0?0:1))}),d.animIn.opacity=1,d.animOut.opacity=0,d.cssBefore.opacity=1,d.cssBefore.display="block",d.cssAfter.zIndex=0},a.fn.cycle.transitions.scrollUp=function(b,c,d){b.css("overflow","hidden"),d.before.push(a.fn.cycle.commonReset);var e=b.height();d.cssBefore.top=e,d.cssBefore.left=0,d.cssFirst.top=0,d.animIn.top=0,d.animOut.top=-e},a.fn.cycle.transitions.scrollDown=function(b,c,d){b.css("overflow","hidden"),d.before.push(a.fn.cycle.commonReset);var e=b.height();d.cssFirst.top=0,d.cssBefore.top=-e,d.cssBefore.left=0,d.animIn.top=0,d.animOut.top=e},a.fn.cycle.transitions.scrollLeft=function(b,c,d){b.css("overflow","hidden"),d.before.push(a.fn.cycle.commonReset);var e=b.width();d.cssFirst.left=0,d.cssBefore.left=e,d.cssBefore.top=0,d.animIn.left=0,d.animOut.left=0-e},a.fn.cycle.transitions.scrollRight=function(b,c,d){b.css("overflow","hidden"),d.before.push(a.fn.cycle.commonReset);var e=b.width();d.cssFirst.left=0,d.cssBefore.left=-e,d.cssBefore.top=0,d.animIn.left=0,d.animOut.left=e},a.fn.cycle.transitions.scrollHorz=function(b,c,d){b.css("overflow","hidden").width(),d.before.push(function(b,c,d,e){d.rev&&(e=!e),a.fn.cycle.commonReset(b,c,d),d.cssBefore.left=e?c.cycleW-1:1-c.cycleW,d.animOut.left=e?-b.cycleW:b.cycleW}),d.cssFirst.left=0,d.cssBefore.top=0,d.animIn.left=0,d.animOut.top=0},a.fn.cycle.transitions.scrollVert=function(b,c,d){b.css("overflow","hidden"),d.before.push(function(b,c,d,e){d.rev&&(e=!e),a.fn.cycle.commonReset(b,c,d),d.cssBefore.top=e?1-c.cycleH:c.cycleH-1,d.animOut.top=e?b.cycleH:-b.cycleH}),d.cssFirst.top=0,d.cssBefore.left=0,d.animIn.top=0,d.animOut.left=0},a.fn.cycle.transitions.slideX=function(b,c,d){d.before.push(function(b,c,d){a(d.elements).not(b).hide(),a.fn.cycle.commonReset(b,c,d,!1,!0),d.animIn.width=c.cycleW}),d.cssBefore.left=0,d.cssBefore.top=0,d.cssBefore.width=0,d.animIn.width="show",d.animOut.width=0},a.fn.cycle.transitions.slideY=function(b,c,d){d.before.push(function(b,c,d){a(d.elements).not(b).hide(),a.fn.cycle.commonReset(b,c,d,!0,!1),d.animIn.height=c.cycleH}),d.cssBefore.left=0,d.cssBefore.top=0,d.cssBefore.height=0,d.animIn.height="show",d.animOut.height=0},a.fn.cycle.transitions.shuffle=function(b,c,d){var e,f=b.css("overflow","visible").width();for(c.css({left:0,top:0}),d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!0,!0,!0)}),d.speedAdjusted||(d.speed=d.speed/2,d.speedAdjusted=!0),d.random=0,d.shuffle=d.shuffle||{left:-f,top:15},d.els=[],e=0;ei;i++)f?d.els.push(d.els.shift()):d.els.unshift(d.els.pop());if(f)for(var j=0,k=d.els.length;k>j;j++)a(d.els[j]).css("z-index",k-j+h);else{var l=a(b).css("z-index");g.css("z-index",parseInt(l,10)+1+h)}g.animate({left:0,top:0},d.speedOut,d.easeOut,function(){a(f?this:b).hide(),e&&e()})})},a.extend(d.cssBefore,{display:"block",opacity:1,top:0,left:0})},a.fn.cycle.transitions.turnUp=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!0,!1),d.cssBefore.top=c.cycleH,d.animIn.height=c.cycleH,d.animOut.width=c.cycleW}),d.cssFirst.top=0,d.cssBefore.left=0,d.cssBefore.height=0,d.animIn.top=0,d.animOut.height=0},a.fn.cycle.transitions.turnDown=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!0,!1),d.animIn.height=c.cycleH,d.animOut.top=b.cycleH}),d.cssFirst.top=0,d.cssBefore.left=0,d.cssBefore.top=0,d.cssBefore.height=0,d.animOut.height=0},a.fn.cycle.transitions.turnLeft=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!1,!0),d.cssBefore.left=c.cycleW,d.animIn.width=c.cycleW}),d.cssBefore.top=0,d.cssBefore.width=0,d.animIn.left=0,d.animOut.width=0},a.fn.cycle.transitions.turnRight=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!1,!0),d.animIn.width=c.cycleW,d.animOut.left=b.cycleW}),a.extend(d.cssBefore,{top:0,left:0,width:0}),d.animIn.left=0,d.animOut.width=0},a.fn.cycle.transitions.zoom=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!1,!1,!0),d.cssBefore.top=c.cycleH/2,d.cssBefore.left=c.cycleW/2,a.extend(d.animIn,{top:0,left:0,width:c.cycleW,height:c.cycleH}),a.extend(d.animOut,{width:0,height:0,top:b.cycleH/2,left:b.cycleW/2})}),d.cssFirst.top=0,d.cssFirst.left=0,d.cssBefore.width=0,d.cssBefore.height=0},a.fn.cycle.transitions.fadeZoom=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!1,!1),d.cssBefore.left=c.cycleW/2,d.cssBefore.top=c.cycleH/2,a.extend(d.animIn,{top:0,left:0,width:c.cycleW,height:c.cycleH})}),d.cssBefore.width=0,d.cssBefore.height=0,d.animOut.opacity=0},a.fn.cycle.transitions.blindX=function(b,c,d){var e=b.css("overflow","hidden").width();d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d),d.animIn.width=c.cycleW,d.animOut.left=b.cycleW}),d.cssBefore.left=e,d.cssBefore.top=0,d.animIn.left=0,d.animOut.left=e},a.fn.cycle.transitions.blindY=function(b,c,d){var e=b.css("overflow","hidden").height();d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d),d.animIn.height=c.cycleH,d.animOut.top=b.cycleH}),d.cssBefore.top=e,d.cssBefore.left=0,d.animIn.top=0,d.animOut.top=e},a.fn.cycle.transitions.blindZ=function(b,c,d){var e=b.css("overflow","hidden").height(),f=b.width();d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d),d.animIn.height=c.cycleH,d.animOut.top=b.cycleH}),d.cssBefore.top=e,d.cssBefore.left=f,d.animIn.top=0,d.animIn.left=0,d.animOut.top=e,d.animOut.left=f},a.fn.cycle.transitions.growX=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!1,!0),d.cssBefore.left=this.cycleW/2,d.animIn.left=0,d.animIn.width=this.cycleW,d.animOut.left=0}),d.cssBefore.top=0,d.cssBefore.width=0},a.fn.cycle.transitions.growY=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!0,!1),d.cssBefore.top=this.cycleH/2,d.animIn.top=0,d.animIn.height=this.cycleH,d.animOut.top=0}),d.cssBefore.height=0,d.cssBefore.left=0},a.fn.cycle.transitions.curtainX=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!1,!0,!0),d.cssBefore.left=c.cycleW/2,d.animIn.left=0,d.animIn.width=this.cycleW,d.animOut.left=b.cycleW/2,d.animOut.width=0}),d.cssBefore.top=0,d.cssBefore.width=0},a.fn.cycle.transitions.curtainY=function(b,c,d){d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!0,!1,!0),d.cssBefore.top=c.cycleH/2,d.animIn.top=0,d.animIn.height=c.cycleH,d.animOut.top=b.cycleH/2,d.animOut.height=0}),d.cssBefore.height=0,d.cssBefore.left=0},a.fn.cycle.transitions.cover=function(b,c,d){var e=d.direction||"left",f=b.css("overflow","hidden").width(),g=b.height();d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d),d.cssAfter.display="","right"==e?d.cssBefore.left=-f:"up"==e?d.cssBefore.top=g:"down"==e?d.cssBefore.top=-g:d.cssBefore.left=f}),d.animIn.left=0,d.animIn.top=0,d.cssBefore.top=0,d.cssBefore.left=0},a.fn.cycle.transitions.uncover=function(b,c,d){var e=d.direction||"left",f=b.css("overflow","hidden").width(),g=b.height();d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!0,!0,!0),"right"==e?d.animOut.left=f:"up"==e?d.animOut.top=-g:"down"==e?d.animOut.top=g:d.animOut.left=-f}),d.animIn.left=0,d.animIn.top=0,d.cssBefore.top=0,d.cssBefore.left=0},a.fn.cycle.transitions.toss=function(b,c,d){var e=b.css("overflow","visible").width(),f=b.height();d.before.push(function(b,c,d){a.fn.cycle.commonReset(b,c,d,!0,!0,!0),d.animOut.left||d.animOut.top?d.animOut.opacity=0:a.extend(d.animOut,{left:2*e,top:-f/2,opacity:0})}),d.cssBefore.left=0,d.cssBefore.top=0,d.animIn.left=0},a.fn.cycle.transitions.wipe=function(b,c,d){var e=b.css("overflow","hidden").width(),f=b.height();d.cssBefore=d.cssBefore||{};var g;if(d.clip)if(/l2r/.test(d.clip))g="rect(0px 0px "+f+"px 0px)";else if(/r2l/.test(d.clip))g="rect(0px "+e+"px "+f+"px "+e+"px)";else if(/t2b/.test(d.clip))g="rect(0px "+e+"px 0px 0px)";else if(/b2t/.test(d.clip))g="rect("+f+"px "+e+"px "+f+"px 0px)";else if(/zoom/.test(d.clip)){var h=parseInt(f/2,10),i=parseInt(e/2,10);g="rect("+h+"px "+i+"px "+h+"px "+i+"px)"}d.cssBefore.clip=d.cssBefore.clip||g||"rect(0px 0px 0px 0px)";var j=d.cssBefore.clip.match(/(\d+)/g),k=parseInt(j[0],10),l=parseInt(j[1],10),m=parseInt(j[2],10),n=parseInt(j[3],10);d.before.push(function(b,c,d){if(b!=c){var g=a(b),h=a(c);a.fn.cycle.commonReset(b,c,d,!0,!0,!1),d.cssAfter.display="block";var i=1,j=parseInt(d.speedIn/13,10)-1;!function o(){var a=k?k-parseInt(i*(k/j),10):0,b=n?n-parseInt(i*(n/j),10):0,c=f>m?m+parseInt(i*((f-m)/j||1),10):f,d=e>l?l+parseInt(i*((e-l)/j||1),10):e;h.css({clip:"rect("+a+"px "+d+"px "+c+"px "+b+"px)"}),i++<=j?setTimeout(o,13):g.css("display","none")}()}}),a.extend(d.cssBefore,{display:"block",opacity:1,top:0,left:0}),d.animIn={left:0},d.animOut={left:0}}}(jQuery),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return 0==b?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return 0==b?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),hb?-.5*h*Math.pow(2,10*(b-=1))*Math.sin(2*(b*e-f)*Math.PI/g)+c:h*Math.pow(2,-10*(b-=1))*Math.sin(2*(b*e-f)*Math.PI/g)*.5+d+c},easeInBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),(b/=e/2)<1?d/2*b*b*(((f*=1.525)+1)*b-f)+c:d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c},easeOutBounce:function(a,b,c,d,e){return(b/=e)<1/2.75?7.5625*d*b*b+c:2/2.75>b?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:2.5/2.75>b?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(a,b,c,d,e){return e/2>b?.5*jQuery.easing.easeInBounce(a,2*b,0,d,e)+c:.5*jQuery.easing.easeOutBounce(a,2*b-e,0,d,e)+.5*d+c}}),function(a,b,c){var d,e=b.event;e.special.smartresize={setup:function(){b(this).bind("resize",e.special.smartresize.handler)},teardown:function(){b(this).unbind("resize",e.special.smartresize.handler)},handler:function(a,b){var c=this,e=arguments;a.type="smartresize",d&&clearTimeout(d),d=setTimeout(function(){jQuery.event.handle.apply(c,e)},"execAsap"===b?0:100)}},b.fn.smartresize=function(a){return a?this.bind("smartresize",a):this.trigger("smartresize",["execAsap"])},b.Slideshow=function(a,c){this.$el=b(c),this.$list=this.$el.find("ul.ei-slider-large"),this.$imgItems=this.$list.children("li"),this.itemsCount=this.$imgItems.length,this.$images=this.$imgItems.find("img:first"),this.$sliderthumbs=this.$el.find("ul.ei-slider-thumbs").hide(),this.$sliderElems=this.$sliderthumbs.children("li"),this.$sliderElem=this.$sliderthumbs.children("li.ei-slider-element"),this.$thumbs=this.$sliderElems.not(".ei-slider-element"),this._init(a)},b.Slideshow.defaults={animation:"sides",autoplay:!1,slideshow_interval:3e3,speed:800,easing:"",titlesFactor:.6,titlespeed:800,titleeasing:"",thumbMaxWidth:150},b.Slideshow.prototype={_init:function(a){this.options=b.extend(!0,{},b.Slideshow.defaults,a),this.$imgItems.css("opacity",0),this.$imgItems.find("div.ei-title > *").css("opacity",0),this.current=0;var c=this;this.$loading=b('Loading
').prependTo(c.$el),b.when(this._preloadImages()).done(function(){c.$loading.hide(),c._setImagesSize(),c._initThumbs(),c.$imgItems.eq(c.current).css({opacity:1,"z-index":10}).show().find("div.ei-title > *").css("opacity",1),c.options.autoplay&&c._startSlideshow(),c._initEvents()})},_preloadImages:function(){var a=this,c=0;return b.Deferred(function(d){a.$images.each(function(e){b(" ").load(function(){++c===a.itemsCount&&d.resolve()}).attr("src",b(this).attr("src"))})}).promise()},_setImagesSize:function(){this.elWidth=this.$el.width();var a=this;this.$images.each(function(c){var d=b(this);imgDim=a._getImageDim(d.attr("src")),d.css({width:imgDim.width,height:imgDim.height,marginLeft:imgDim.left,marginTop:imgDim.top})})},_getImageDim:function(a){var b=new Image;b.src=a;var c,d,e=this.elWidth,f=this.$el.height(),g=f/e,h=b.width,i=b.height,j=i/h;return g>j?(d=f,c=f/j):(d=e*j,c=e),{width:c,height:d,left:(e-c)/2,top:(f-d)/2}},_initThumbs:function(){this.$sliderElems.css({"max-width":this.options.thumbMaxWidth+"px",width:100/this.itemsCount+"%"}),this.$sliderthumbs.css("max-width",this.options.thumbMaxWidth*this.itemsCount+"px").show()},_startSlideshow:function(){var a=this;this.slideshow=setTimeout(function(){var b;b=a.current===a.itemsCount-1?0:a.current+1,a._slideTo(b),a.options.autoplay&&a._startSlideshow()},this.options.slideshow_interval)},_slideTo:function(a){if(a===this.current||this.isAnimating)return!1;this.isAnimating=!0;var c=this.$imgItems.eq(this.current),d=this.$imgItems.eq(a),e=this,f={zIndex:10},g={opacity:1};"sides"===this.options.animation&&(f.left=a>this.current?-1*this.elWidth:this.elWidth,g.left=0),d.find("div.ei-title > h2").css("margin-right","50px").stop().delay(this.options.speed*this.options.titlesFactor).animate({marginRight:"0px",opacity:1},this.options.titlespeed,this.options.titleeasing).end().find("div.ei-title > h3").css("margin-right","-50px").stop().delay(this.options.speed*this.options.titlesFactor).animate({marginRight:"0px",opacity:1},this.options.titlespeed,this.options.titleeasing),b.when(c.css("z-index",1).find("div.ei-title > *").stop().fadeOut(this.options.speed/2,function(){b(this).show().css("opacity",0)}),d.css(f).stop().animate(g,this.options.speed,this.options.easing),this.$sliderElem.stop().animate({left:this.$thumbs.eq(a).position().left},this.options.speed)).done(function(){c.css("opacity",0).find("div.ei-title > *").css("opacity",0),e.current=a,e.isAnimating=!1})},_initEvents:function(){var c=this;b(a).on("smartresize.eislideshow",function(a){c._setImagesSize(),c.$sliderElem.css("left",c.$thumbs.eq(c.current).position().left)}),this.$thumbs.on("click.eislideshow",function(a){c.options.autoplay&&(clearTimeout(c.slideshow),c.options.autoplay=!1);var d=b(this),e=d.index()-1;return c._slideTo(e),!1})}};var f=function(a){this.console};b.fn.eislideshow=function(a){if("string"==typeof a){var c=Array.prototype.slice.call(arguments,1);this.each(function(){var d=b.data(this,"eislideshow");return d?b.isFunction(d[a])&&"_"!==a.charAt(0)?void d[a].apply(d,c):void f("no such method '"+a+"' for eislideshow instance"):void f("cannot call methods on eislideshow prior to initialization; attempted to call method '"+a+"'");
})}else this.each(function(){var c=b.data(this,"eislideshow");c||b.data(this,"eislideshow",new b.Slideshow(a,this))});return this}}(window,jQuery),function(a){"use strict";a.fn.fitVids=function(b){var c={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var d=document.head||document.getElementsByTagName("head")[0],e=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}",f=document.createElement("div");f.innerHTML='x
",d.appendChild(f.childNodes[1])}return b&&a.extend(c,b),this.each(function(){var b=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"];c.customSelector&&b.push(c.customSelector);var d=".fitvidsignore";c.ignore&&(d=d+", "+c.ignore);var e=a(this).find(b.join(","));e=e.not("object object"),e=e.not(d),e.each(function(){var b=a(this);if(!(b.parents(d).length>0||"embed"===this.tagName.toLowerCase()&&b.parent("object").length||b.parent(".fluid-width-video-wrapper").length)){b.css("height")||b.css("width")||!isNaN(b.attr("height"))&&!isNaN(b.attr("width"))||(b.attr("height",9),b.attr("width",16));var c="object"===this.tagName.toLowerCase()||b.attr("height")&&!isNaN(parseInt(b.attr("height"),10))?parseInt(b.attr("height"),10):b.height(),e=isNaN(parseInt(b.attr("width"),10))?b.width():parseInt(b.attr("width"),10),f=c/e;if(!b.attr("id")){var g="fitvid"+Math.floor(999999*Math.random());b.attr("id",g)}b.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",100*f+"%"),b.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto),function(b){function c(){var a=document.getElementsByTagName("script"),b=a[a.length-1].src.split("?")[0];return b.split("/").length>0?b.split("/").slice(0,-1).join("/")+"/":""}function d(a,b,c){for(var d=0;d=9,c.isie10=c.isie&&"performance"in window&&document.documentMode>=10,c.isie9mobile=/iemobile.9/i.test(navigator.userAgent),c.isie9mobile&&(c.isie9=!1),c.isie7mobile=!c.isie9mobile&&c.isie7&&/iemobile/i.test(navigator.userAgent),c.ismozilla="MozAppearance"in b.style,c.iswebkit="WebkitAppearance"in b.style,c.ischrome="chrome"in window,c.ischrome22=c.ischrome&&c.haspointerlock,c.ischrome26=c.ischrome&&"transition"in b.style,c.cantouch="ontouchstart"in document.documentElement||"ontouchstart"in window,c.hasmstouch=window.navigator.msPointerEnabled||!1,c.ismac=/^mac$/i.test(navigator.platform),c.isios=c.cantouch&&/iphone|ipad|ipod/i.test(navigator.platform),c.isios4=c.isios&&!("seal"in Object),c.isandroid=/android/i.test(navigator.userAgent),c.trstyle=!1,c.hastransform=!1,c.hastranslate3d=!1,c.transitionstyle=!1,c.hastransition=!1,c.transitionend=!1;for(var d=["transform","msTransform","webkitTransform","MozTransform","OTransform"],e=0;e0;){if(9==a[0].nodeType)return!1;var b=a.css("zIndex");if(!isNaN(b)&&0!=b)return parseInt(b);a=a.parent()}return!1}function l(a,b,c){var d=a.css(b),e=parseFloat(d);if(isNaN(e)){e=x[d]||0;var f=3==e?c?s.win.outerHeight()-s.win.innerHeight():s.win.outerWidth()-s.win.innerWidth():1;return s.isie8&&e&&(e+=1),f?e:0}return e}function o(a,b,c,d){s._bind(a,b,function(d){var d=d?d:window.event,e={original:d,target:d.target||d.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"==d.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){return d.preventDefault?d.preventDefault():d.returnValue=!1,!1},stopImmediatePropagation:function(){d.stopImmediatePropagation?d.stopImmediatePropagation():d.cancelBubble=!0}};return"mousewheel"==b?(e.deltaY=-1/40*d.wheelDelta,d.wheelDeltaX&&(e.deltaX=-1/40*d.wheelDeltaX)):e.deltaY=d.detail,c.call(a,e)},d)}function p(a,b,c){var d,e;if(0==a.deltaMode?(d=-Math.floor(a.deltaX*(s.opt.mousescrollstep/54)),e=-Math.floor(a.deltaY*(s.opt.mousescrollstep/54))):1==a.deltaMode&&(d=-Math.floor(a.deltaX*s.opt.mousescrollstep),e=-Math.floor(a.deltaY*s.opt.mousescrollstep)),b&&s.opt.oneaxismousemode&&0==d&&e&&(d=e,e=0),d&&(s.scrollmom&&s.scrollmom.stop(),s.lastdeltax+=d,s.debounced("mousewheelx",function(){var a=s.lastdeltax;s.lastdeltax=0,s.rail.drag||s.doScrollLeftBy(a)},120)),e){if(s.opt.nativeparentscrolling&&c&&!s.ispage&&!s.zoomactive)if(0>e){if(s.getScrollTop()>=s.page.maxh)return!0}else if(s.getScrollTop()<=0)return!0;s.scrollmom&&s.scrollmom.stop(),s.lastdeltay+=e,s.debounced("mousewheely",function(){var a=s.lastdeltay;s.lastdeltay=0,s.rail.drag||s.doScrollBy(a)},120)}return a.stopImmediatePropagation(),a.preventDefault()}var s=this;if(this.version="3.5.0 BETA5",this.name="nicescroll",this.me=b,this.opt={doc:j("body"),win:!1},j.extend(this.opt,r),this.opt.snapbackspeed=80,a)for(var u in s.opt)"undefined"!=typeof a[u]&&(s.opt[u]=a[u]);this.doc=s.opt.doc,this.iddoc=this.doc&&this.doc[0]?this.doc[0].id||"":"",this.ispage=/BODY|HTML/.test(s.opt.win?s.opt.win[0].nodeName:this.doc[0].nodeName),this.haswrapper=s.opt.win!==!1,this.win=s.opt.win||(this.ispage?j(window):this.doc),this.docscroll=this.ispage&&!this.haswrapper?j(window):this.win,this.body=j("body"),this.viewport=!1,this.isfixed=!1,this.iframe=!1,this.isiframe="IFRAME"==this.doc[0].nodeName&&"IFRAME"==this.win[0].nodeName,this.istextarea="TEXTAREA"==this.win[0].nodeName,this.forcescreen=!1,this.canshowonmouseevent="scroll"!=s.opt.autohidemode,this.onmousedown=!1,this.onmouseup=!1,this.onmousemove=!1,this.onmousewheel=!1,this.onkeypress=!1,this.ongesturezoom=!1,this.onclick=!1,this.onscrollstart=!1,this.onscrollend=!1,this.onscrollcancel=!1,this.onzoomin=!1,this.onzoomout=!1,this.view=!1,this.page=!1,this.scroll={x:0,y:0},this.scrollratio={x:0,y:0},this.cursorheight=20,this.scrollvaluemax=0,this.checkrtlmode=!1,this.scrollrunning=!1,this.scrollmom=!1,this.observer=!1,this.observerremover=!1;do this.id="ascrail"+h++;while(document.getElementById(this.id));this.rail=!1,this.cursor=!1,this.cursorfreezed=!1,this.selectiondrag=!1,this.zoom=!1,this.zoomactive=!1,this.hasfocus=!1,this.hasmousefocus=!1,this.visibility=!0,this.locked=!1,this.hidden=!1,this.cursoractive=!0,this.overflowx=s.opt.overflowx,this.overflowy=s.opt.overflowy,this.nativescrollingarea=!1,this.checkarea=0,this.events=[],this.saved={},this.delaylist={},this.synclist={},this.lastdeltax=0,this.lastdeltay=0,this.detected=t();var w=j.extend({},this.detected);this.canhwscroll=w.hastransform&&s.opt.hwacceleration,this.ishwscroll=this.canhwscroll&&s.haswrapper,this.istouchcapable=!1,w.cantouch&&w.ischrome&&!w.isios&&!w.isandroid&&(this.istouchcapable=!0,w.cantouch=!1),w.cantouch&&w.ismozilla&&!w.isios&&!w.isandroid&&(this.istouchcapable=!0,w.cantouch=!1),s.opt.enablemouselockapi||(w.hasmousecapture=!1,w.haspointerlock=!1),this.delayed=function(a,b,c,d){var e=s.delaylist[a],f=(new Date).getTime();return!d&&e&&e.tt?!1:(e&&e.tt&&clearTimeout(e.tt),void(e&&e.last+c>f&&!e.tt?s.delaylist[a]={last:f+c,tt:setTimeout(function(){s.delaylist[a].tt=0,b.call()},c)}:e&&e.tt||(s.delaylist[a]={last:f,tt:0},setTimeout(function(){b.call()},0))))},this.debounced=function(a,b,c){var d=s.delaylist[a];(new Date).getTime();s.delaylist[a]=b,d||setTimeout(function(){var b=s.delaylist[a];s.delaylist[a]=!1,b.call()},c)},this.synched=function(a,b){function c(){s.onsync||(m(function(){s.onsync=!1;for(a in s.synclist){var b=s.synclist[a];b&&b.call(s),s.synclist[a]=!1}}),s.onsync=!0)}return s.synclist[a]=b,c(),a},this.unsynched=function(a){s.synclist[a]&&(s.synclist[a]=!1)},this.css=function(a,b){for(var c in b)s.saved.css.push([a,c,a.css(c)]),a.css(c,b[c])},this.scrollTop=function(a){return"undefined"==typeof a?s.getScrollTop():s.setScrollTop(a)},this.scrollLeft=function(a){return"undefined"==typeof a?s.getScrollLeft():s.setScrollLeft(a)},BezierClass=function(a,b,c,d,e,f,g){this.st=a,this.ed=b,this.spd=c,this.p1=d||0,this.p2=e||1,this.p3=f||0,this.p4=g||1,this.ts=(new Date).getTime(),this.df=this.ed-this.st},BezierClass.prototype={B2:function(a){return 3*a*a*(1-a)},B3:function(a){return 3*a*(1-a)*(1-a)},B4:function(a){return(1-a)*(1-a)*(1-a)},getNow:function(){var a=(new Date).getTime(),b=1-(a-this.ts)/this.spd,c=this.B2(b)+this.B3(b)+this.B4(b);return 0>b?this.ed:this.st+Math.round(this.df*c)},update:function(a,b){return this.st=this.getNow(),this.ed=a,this.spd=b,this.ts=(new Date).getTime(),this.df=this.ed-this.st,this}},this.ishwscroll?(this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"},w.hastranslate3d&&w.isios&&this.doc.css("-webkit-backface-visibility","hidden"),this.getScrollTop=function(a){if(!a){var b=c();if(b)return 16==b.length?-b[13]:-b[5];if(s.timerscroll&&s.timerscroll.bz)return s.timerscroll.bz.getNow()}return s.doc.translate.y},this.getScrollLeft=function(a){if(!a){var b=c();if(b)return 16==b.length?-b[12]:-b[4];if(s.timerscroll&&s.timerscroll.bh)return s.timerscroll.bh.getNow()}return s.doc.translate.x},document.createEvent?this.notifyScrollEvent=function(a){var b=document.createEvent("UIEvents");b.initUIEvent("scroll",!1,!0,window,1),a.dispatchEvent(b)}:document.fireEvent?this.notifyScrollEvent=function(a){var b=document.createEventObject();a.fireEvent("onscroll"),b.cancelBubble=!0}:this.notifyScrollEvent=function(a,b){},w.hastranslate3d&&s.opt.enabletranslate3d?(this.setScrollTop=function(a,b){s.doc.translate.y=a,s.doc.translate.ty=-1*a+"px",s.doc.css(w.trstyle,"translate3d("+s.doc.translate.tx+","+s.doc.translate.ty+",0px)"),b||s.notifyScrollEvent(s.win[0])},this.setScrollLeft=function(a,b){s.doc.translate.x=a,s.doc.translate.tx=-1*a+"px",s.doc.css(w.trstyle,"translate3d("+s.doc.translate.tx+","+s.doc.translate.ty+",0px)"),b||s.notifyScrollEvent(s.win[0])}):(this.setScrollTop=function(a,b){s.doc.translate.y=a,s.doc.translate.ty=-1*a+"px",s.doc.css(w.trstyle,"translate("+s.doc.translate.tx+","+s.doc.translate.ty+")"),b||s.notifyScrollEvent(s.win[0])},this.setScrollLeft=function(a,b){s.doc.translate.x=a,s.doc.translate.tx=-1*a+"px",s.doc.css(w.trstyle,"translate("+s.doc.translate.tx+","+s.doc.translate.ty+")"),b||s.notifyScrollEvent(s.win[0])})):(this.getScrollTop=function(){return s.docscroll.scrollTop()},this.setScrollTop=function(a){return s.docscroll.scrollTop(a)},this.getScrollLeft=function(){return s.docscroll.scrollLeft()},this.setScrollLeft=function(a){return s.docscroll.scrollLeft(a)}),this.getTarget=function(a){return a?a.target?a.target:a.srcElement?a.srcElement:!1:!1},this.hasParent=function(a,b){if(!a)return!1;for(var c=a.target||a.srcElement||a||!1;c&&c.id!=b;)c=c.parentNode||!1;return c!==!1};var x={thin:1,medium:3,thick:5};this.getOffset=function(){if(s.isfixed)return{top:parseFloat(s.win.css("top")),left:parseFloat(s.win.css("left"))};if(!s.viewport)return s.win.offset();var a=s.win.offset(),b=s.viewport.offset();return{top:a.top-b.top+s.viewport.scrollTop(),left:a.left-b.left+s.viewport.scrollLeft()}},this.updateScrollBar=function(a){if(s.ishwscroll)s.rail.css({height:s.win.innerHeight()}),s.railh&&s.railh.css({width:s.win.innerWidth()});else{var b=s.getOffset(),c={top:b.top,left:b.left};c.top+=l(s.win,"border-top-width",!0);(s.win.outerWidth()-s.win.innerWidth())/2;c.left+=s.rail.align?s.win.outerWidth()-l(s.win,"border-right-width")-s.rail.width:l(s.win,"border-left-width");var d=s.opt.railoffset;if(d&&(d.top&&(c.top+=d.top),s.rail.align&&d.left&&(c.left+=d.left)),s.locked||s.rail.css({top:c.top,left:c.left,height:a?a.h:s.win.innerHeight()}),s.zoom&&s.zoom.css({top:c.top+1,left:1==s.rail.align?c.left-20:c.left+s.rail.width+4}),s.railh&&!s.locked){var c={top:b.top,left:b.left},e=s.railh.align?c.top+l(s.win,"border-top-width",!0)+s.win.innerHeight()-s.railh.height:c.top+l(s.win,"border-top-width",!0),f=c.left+l(s.win,"border-left-width");s.railh.css({top:e,left:f,width:s.railh.width})}}},this.doRailClick=function(a,b,c){var d,e,f,g;s.locked||(s.cancelEvent(a),b?(d=c?s.doScrollLeft:s.doScrollTop,f=c?(a.pageX-s.railh.offset().left-s.cursorwidth/2)*s.scrollratio.x:(a.pageY-s.rail.offset().top-s.cursorheight/2)*s.scrollratio.y,d(f)):(d=c?s.doScrollLeftBy:s.doScrollBy,f=c?s.scroll.x:s.scroll.y,g=c?a.pageX-s.railh.offset().left:a.pageY-s.rail.offset().top,e=c?s.view.w:s.view.h,d(f>=g?e:-e)))},s.hasanimationframe=m,s.hascancelanimationframe=n,s.hasanimationframe?s.hascancelanimationframe||(n=function(){s.cancelAnimationFrame=!0}):(m=function(a){return setTimeout(a,15-Math.floor(+new Date/1e3)%16)},n=clearInterval),this.init=function(){function a(b){if(s.selectiondrag){if(b){var c=s.win.outerHeight(),d=b.pageY-s.selectiondrag.top;d>0&&c>d&&(d=0),d>=c&&(d-=c),s.selectiondrag.df=d}if(0!=s.selectiondrag.df){var e=2*-Math.floor(s.selectiondrag.df/6);s.doScrollBy(e),s.debounced("doselectionscroll",function(){a()},50)}}}function b(a){s.iframexd=!1;try{var b="contentDocument"in this?this.contentDocument:this.contentWindow.document;b.domain}catch(a){s.iframexd=!0,b=!1}if(s.iframexd)return"console"in window,!0;if(s.forcescreen=!0,s.isiframe&&(s.iframe={doc:j(b),html:s.doc.contents().find("html")[0],body:s.doc.contents().find("body")[0]},s.getContentSize=function(){return{w:Math.max(s.iframe.html.scrollWidth,s.iframe.body.scrollWidth),h:Math.max(s.iframe.html.scrollHeight,s.iframe.body.scrollHeight)}},s.docscroll=j(s.iframe.body)),!w.isios&&s.opt.iframeautoresize&&!s.isiframe){s.win.scrollTop(0),s.doc.height("");var c=Math.max(b.getElementsByTagName("html")[0].scrollHeight,b.body.scrollHeight);s.doc.height(c)}s.lazyResize(30),w.isie7&&s.css(j(s.iframe.html),{"overflow-y":"hidden"}),s.css(j(s.iframe.body),{"overflow-y":"hidden"}),w.isios&&s.haswrapper&&s.css(j(b.body),{"-webkit-transform":"translate3d(0,0,0)"}),"contentWindow"in this?s.bind(this.contentWindow,"scroll",s.onscroll):s.bind(b,"scroll",s.onscroll),s.opt.enablemousewheel&&s.bind(b,"mousewheel",s.onmousewheel),s.opt.enablekeyboard&&s.bind(b,w.isopera?"keypress":"keydown",s.onkeypress),(w.cantouch||s.opt.touchbehavior)&&(s.bind(b,"mousedown",s.ontouchstart),s.bind(b,"mousemove",function(a){s.ontouchmove(a,!0)}),s.opt.grabcursorenabled&&w.cursorgrabvalue&&s.css(j(b.body),{cursor:w.cursorgrabvalue})),s.bind(b,"mouseup",s.ontouchend),s.zoom&&(s.opt.dblclickzoom&&s.bind(b,"dblclick",s.doZoom),s.ongesturezoom&&s.bind(b,"gestureend",s.ongesturezoom))}if(s.saved.css=[],w.isie7mobile)return!0;if(w.isoperamini)return!0;if(w.hasmstouch&&s.css(s.ispage?j("html"):s.win,{"-ms-touch-action":"none"}),s.zindex="auto",s.ispage||"auto"!=s.opt.zindex?s.zindex=s.opt.zindex:s.zindex=d()||"auto",s.ispage||"auto"==s.zindex||s.zindex>i&&(i=s.zindex),s.isie&&0==s.zindex&&"auto"==s.opt.zindex&&(s.zindex="auto"),!s.ispage||!w.cantouch&&!w.isieold&&!w.isie9mobile){var c=s.docscroll;s.ispage&&(c=s.haswrapper?s.win:s.doc),w.isie9mobile||s.css(c,{"overflow-y":"hidden"}),s.ispage&&w.isie7&&("BODY"==s.doc[0].nodeName?s.css(j("html"),{"overflow-y":"hidden"}):"HTML"==s.doc[0].nodeName&&s.css(j("body"),{"overflow-y":"hidden"})),!w.isios||s.ispage||s.haswrapper||s.css(j("body"),{"-webkit-overflow-scrolling":"touch"});var h=j(document.createElement("div"));h.css({position:"relative",top:0,"float":"right",width:s.opt.cursorwidth,height:"0px","background-color":s.opt.cursorcolor,border:s.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":s.opt.cursorborderradius,"-moz-border-radius":s.opt.cursorborderradius,"border-radius":s.opt.cursorborderradius}),h.hborder=parseFloat(h.outerHeight()-h.innerHeight()),s.cursor=h;var l=j(document.createElement("div"));l.attr("id",s.id),l.addClass("nicescroll-rails");var m,n,o=["left","right"];for(var p in o)n=o[p],m=s.opt.railpadding[n],m?l.css("padding-"+n,m+"px"):s.opt.railpadding[n]=0;l.append(h),l.width=Math.max(parseFloat(s.opt.cursorwidth),h.outerWidth())+s.opt.railpadding.left+s.opt.railpadding.right,l.css({width:l.width+"px",zIndex:s.zindex,background:s.opt.background,cursor:"default"}),l.visibility=!0,l.scrollable=!0,l.align="left"==s.opt.railalign?0:1,s.rail=l,s.rail.drag=!1;var r=!1;if(!s.opt.boxzoom||s.ispage||w.isieold||(r=document.createElement("div"),s.bind(r,"click",s.doZoom),s.zoom=j(r),s.zoom.css({cursor:"pointer","z-index":s.zindex,backgroundImage:"url("+k+"zoomico.png)",height:18,width:18,backgroundPosition:"0px 0px"}),s.opt.dblclickzoom&&s.bind(s.win,"dblclick",s.doZoom),w.cantouch&&s.opt.gesturezoom&&(s.ongesturezoom=function(a){return a.scale>1.5&&s.doZoomIn(a),a.scale<.8&&s.doZoomOut(a),s.cancelEvent(a)},s.bind(s.win,"gestureend",s.ongesturezoom))),s.railh=!1,s.opt.horizrailenabled){s.css(c,{"overflow-x":"hidden"});var h=j(document.createElement("div"));h.css({position:"relative",top:0,height:s.opt.cursorwidth,width:"0px","background-color":s.opt.cursorcolor,border:s.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":s.opt.cursorborderradius,"-moz-border-radius":s.opt.cursorborderradius,"border-radius":s.opt.cursorborderradius}),h.wborder=parseFloat(h.outerWidth()-h.innerWidth()),s.cursorh=h;var t=j(document.createElement("div"));t.attr("id",s.id+"-hr"),t.addClass("nicescroll-rails"),t.height=Math.max(parseFloat(s.opt.cursorwidth),h.outerHeight()),t.css({height:t.height+"px",zIndex:s.zindex,background:s.opt.background}),t.append(h),t.visibility=!0,t.scrollable=!0,t.align="top"==s.opt.railvalign?0:1,s.railh=t,s.railh.drag=!1}if(s.ispage)l.css({position:"fixed",top:"0px",height:"100%"}),l.css(l.align?{right:"0px"}:{left:"0px"}),s.body.append(l),s.railh&&(t.css({position:"fixed",left:"0px",width:"100%"}),t.css(t.align?{bottom:"0px"}:{top:"0px"}),s.body.append(t));else{if(s.ishwscroll){"static"==s.win.css("position")&&s.css(s.win,{position:"relative"});var u="HTML"==s.win[0].nodeName?s.body:s.win;s.zoom&&(s.zoom.css({position:"absolute",top:1,right:0,"margin-right":l.width+4}),u.append(s.zoom)),l.css({position:"absolute",top:0}),l.css(l.align?{right:0}:{left:0}),u.append(l),t&&(t.css({position:"absolute",left:0,bottom:0}),t.css(t.align?{bottom:0}:{top:0}),u.append(t))}else{s.isfixed="fixed"==s.win.css("position");var x=s.isfixed?"fixed":"absolute";s.isfixed||(s.viewport=s.getViewport(s.win[0])),s.viewport&&(s.body=s.viewport,0==/relative|absolute/.test(s.viewport.css("position"))&&s.css(s.viewport,{position:"relative"})),l.css({position:x}),s.zoom&&s.zoom.css({position:x}),s.updateScrollBar(),s.body.append(l),s.zoom&&s.body.append(s.zoom),s.railh&&(t.css({position:x}),s.body.append(t))}w.isios&&s.css(s.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),w.isie&&s.opt.disableoutline&&s.win.attr("hideFocus","true"),w.iswebkit&&s.opt.disableoutline&&s.win.css({outline:"none"})}if(s.opt.autohidemode===!1?(s.autohidedom=!1,s.rail.css({opacity:s.opt.cursoropacitymax}),s.railh&&s.railh.css({opacity:s.opt.cursoropacitymax})):s.opt.autohidemode===!0?(s.autohidedom=j().add(s.rail),w.isie8&&(s.autohidedom=s.autohidedom.add(s.cursor)),s.railh&&(s.autohidedom=s.autohidedom.add(s.railh)),s.railh&&w.isie8&&(s.autohidedom=s.autohidedom.add(s.cursorh))):"scroll"==s.opt.autohidemode?(s.autohidedom=j().add(s.rail),s.railh&&(s.autohidedom=s.autohidedom.add(s.railh))):"cursor"==s.opt.autohidemode?(s.autohidedom=j().add(s.cursor),s.railh&&(s.autohidedom=s.autohidedom.add(s.cursorh))):"hidden"==s.opt.autohidemode&&(s.autohidedom=!1,s.hide(),s.locked=!1),w.isie9mobile){s.scrollmom=new v(s),s.onmangotouch=function(a){var b=s.getScrollTop(),c=s.getScrollLeft();if(b==s.scrollmom.lastscrolly&&c==s.scrollmom.lastscrollx)return!0;var d=b-s.mangotouch.sy,e=c-s.mangotouch.sx,f=Math.round(Math.sqrt(Math.pow(e,2)+Math.pow(d,2)));if(0!=f){var g=0>d?-1:1,h=0>e?-1:1,i=+new Date;if(s.mangotouch.lazy&&clearTimeout(s.mangotouch.lazy),i-s.mangotouch.tm>80||s.mangotouch.dry!=g||s.mangotouch.drx!=h)s.scrollmom.stop(),s.scrollmom.reset(c,b),s.mangotouch.sy=b,s.mangotouch.ly=b,s.mangotouch.sx=c,s.mangotouch.lx=c,s.mangotouch.dry=g,s.mangotouch.drx=h,s.mangotouch.tm=i;else{s.scrollmom.stop(),s.scrollmom.update(s.mangotouch.sx-e,s.mangotouch.sy-d);i-s.mangotouch.tm;s.mangotouch.tm=i;var j=Math.max(Math.abs(s.mangotouch.ly-b),Math.abs(s.mangotouch.lx-c));s.mangotouch.ly=b,s.mangotouch.lx=c,j>2&&(s.mangotouch.lazy=setTimeout(function(){s.mangotouch.lazy=!1,s.mangotouch.dry=0,s.mangotouch.drx=0,s.mangotouch.tm=0,s.scrollmom.doMomentum(30)},100))}}};var y=s.getScrollTop(),z=s.getScrollLeft();s.mangotouch={sy:y,ly:y,dry:0,sx:z,lx:z,drx:0,lazy:!1,tm:0},s.bind(s.docscroll,"scroll",s.onmangotouch)}else{if(w.cantouch||s.istouchcapable||s.opt.touchbehavior||w.hasmstouch){s.scrollmom=new v(s),s.ontouchstart=function(a){if(a.pointerType&&2!=a.pointerType)return!1;if(!s.locked){if(w.hasmstouch)for(var b=a.target?a.target:!1;b;){var c=j(b).getNiceScroll();if(c.length>0&&c[0].me==s.me)break;if(c.length>0)return!1;if("DIV"==b.nodeName&&b.id==s.id)break;b=b.parentNode?b.parentNode:!1}s.cancelScroll();var b=s.getTarget(a);if(b){var d=/INPUT/i.test(b.nodeName)&&/range/i.test(b.type);if(d)return s.stopPropagation(a)}if(!("clientX"in a)&&"changedTouches"in a&&(a.clientX=a.changedTouches[0].clientX,a.clientY=a.changedTouches[0].clientY),s.forcescreen){var e=a,a={original:a.original?a.original:a};a.clientX=e.screenX,a.clientY=e.screenY}if(s.rail.drag={x:a.clientX,y:a.clientY,sx:s.scroll.x,sy:s.scroll.y,st:s.getScrollTop(),sl:s.getScrollLeft(),pt:2,dl:!1},s.ispage||!s.opt.directionlockdeadzone)s.rail.drag.dl="f";else{var f={w:j(window).width(),h:j(window).height()},g={w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},h=Math.max(0,g.h-f.h),i=Math.max(0,g.w-f.w);!s.rail.scrollable&&s.railh.scrollable?s.rail.drag.ck=h>0?"v":!1:s.rail.scrollable&&!s.railh.scrollable?s.rail.drag.ck=i>0?"h":!1:s.rail.drag.ck=!1,s.rail.drag.ck||(s.rail.drag.dl="f")}if(s.opt.touchbehavior&&s.isiframe&&w.isie){var k=s.win.position();s.rail.drag.x+=k.left,s.rail.drag.y+=k.top}if(s.hasmoving=!1,s.lastmouseup=!1,s.scrollmom.reset(a.clientX,a.clientY),!w.cantouch&&!this.istouchcapable&&!w.hasmstouch){var l=b?/INPUT|SELECT|TEXTAREA/i.test(b.nodeName):!1;if(!l)return!s.ispage&&w.hasmousecapture&&b.setCapture(),s.opt.touchbehavior?s.cancelEvent(a):s.stopPropagation(a);/SUBMIT|CANCEL|BUTTON/i.test(j(b).attr("type"))&&(pc={tg:b,click:!1},s.preventclick=pc)}}},s.ontouchend=function(a){return a.pointerType&&2!=a.pointerType?!1:s.rail.drag&&2==s.rail.drag.pt&&(s.scrollmom.doMomentum(),s.rail.drag=!1,s.hasmoving&&(s.hasmoving=!1,s.lastmouseup=!0,s.hideCursor(),w.hasmousecapture&&document.releaseCapture(),!w.cantouch))?s.cancelEvent(a):void 0};var A=s.opt.touchbehavior&&s.isiframe&&!w.hasmousecapture;s.ontouchmove=function(a,b){if(a.pointerType&&2!=a.pointerType)return!1;if(s.rail.drag&&2==s.rail.drag.pt){if(w.cantouch&&"undefined"==typeof a.original)return!0;s.hasmoving=!0,s.preventclick&&!s.preventclick.click&&(s.preventclick.click=s.preventclick.tg.onclick||!1,s.preventclick.tg.onclick=s.onpreventclick);var c=j.extend({original:a},a);if(a=c,"changedTouches"in a&&(a.clientX=a.changedTouches[0].clientX,a.clientY=a.changedTouches[0].clientY),s.forcescreen){var d=a,a={original:a.original?a.original:a};a.clientX=d.screenX,a.clientY=d.screenY}var e=ofy=0;if(A&&!b){var f=s.win.position();e=-f.left,ofy=-f.top}var g=a.clientY+ofy,h=g-s.rail.drag.y,i=a.clientX+e,k=i-s.rail.drag.x,l=s.rail.drag.st-h;if(s.ishwscroll&&s.opt.bouncescroll?0>l?l=Math.round(l/2):l>s.page.maxh&&(l=s.page.maxh+Math.round((l-s.page.maxh)/2)):(0>l&&(l=0,g=0),l>s.page.maxh&&(l=s.page.maxh,g=0)),s.railh&&s.railh.scrollable){var m=s.rail.drag.sl-k;s.ishwscroll&&s.opt.bouncescroll?0>m?m=Math.round(m/2):m>s.page.maxw&&(m=s.page.maxw+Math.round((m-s.page.maxw)/2)):(0>m&&(m=0,i=0),m>s.page.maxw&&(m=s.page.maxw,i=0))}var n=!1;if(s.rail.drag.dl)n=!0,"v"==s.rail.drag.dl?m=s.rail.drag.sl:"h"==s.rail.drag.dl&&(l=s.rail.drag.st);else{var o=Math.abs(h),p=Math.abs(k),q=s.opt.directionlockdeadzone;if("v"==s.rail.drag.ck){if(o>q&&.3*o>=p)return s.rail.drag=!1,!0;p>q&&(s.rail.drag.dl="f",j("body").scrollTop(j("body").scrollTop()))}else if("h"==s.rail.drag.ck){if(p>q&&.3*p>=o)return s.rail.drag=!1,!0;o>q&&(s.rail.drag.dl="f",j("body").scrollLeft(j("body").scrollLeft()))}}if(s.synched("touchmove",function(){s.rail.drag&&2==s.rail.drag.pt&&(s.prepareTransition&&s.prepareTransition(0),s.rail.scrollable&&s.setScrollTop(l),s.scrollmom.update(i,g),s.railh&&s.railh.scrollable?(s.setScrollLeft(m),s.showCursor(l,m)):s.showCursor(l),w.isie10&&document.selection.clear())}),w.ischrome&&s.istouchcapable&&(n=!1),n)return s.cancelEvent(a)}}}s.onmousedown=function(a,b){if(!s.rail.drag||1==s.rail.drag.pt){if(s.locked)return s.cancelEvent(a);s.cancelScroll(),s.rail.drag={x:a.clientX,y:a.clientY,sx:s.scroll.x,sy:s.scroll.y,pt:1,hr:!!b};var c=s.getTarget(a);return!s.ispage&&w.hasmousecapture&&c.setCapture(),s.isiframe&&!w.hasmousecapture&&(s.saved.csspointerevents=s.doc.css("pointer-events"),s.css(s.doc,{"pointer-events":"none"})),s.cancelEvent(a)}},s.onmouseup=function(a){if(s.rail.drag){if(w.hasmousecapture&&document.releaseCapture(),s.isiframe&&!w.hasmousecapture&&s.doc.css("pointer-events",s.saved.csspointerevents),1!=s.rail.drag.pt)return;return s.rail.drag=!1,s.cancelEvent(a)}},s.onmousemove=function(a){if(s.rail.drag){if(1!=s.rail.drag.pt)return;if(w.ischrome&&0==a.which)return s.onmouseup(a);if(s.cursorfreezed=!0,s.rail.drag.hr){s.scroll.x=s.rail.drag.sx+(a.clientX-s.rail.drag.x),s.scroll.x<0&&(s.scroll.x=0);var b=s.scrollvaluemaxw;s.scroll.x>b&&(s.scroll.x=b)}else{s.scroll.y=s.rail.drag.sy+(a.clientY-s.rail.drag.y),s.scroll.y<0&&(s.scroll.y=0);var c=s.scrollvaluemax;s.scroll.y>c&&(s.scroll.y=c)}return s.synched("mousemove",function(){s.rail.drag&&1==s.rail.drag.pt&&(s.showCursor(),s.rail.drag.hr?s.doScrollLeft(Math.round(s.scroll.x*s.scrollratio.x),s.opt.cursordragspeed):s.doScrollTop(Math.round(s.scroll.y*s.scrollratio.y),s.opt.cursordragspeed))}),s.cancelEvent(a)}},w.cantouch||s.opt.touchbehavior?(s.onpreventclick=function(a){return s.preventclick?(s.preventclick.tg.onclick=s.preventclick.click,s.preventclick=!1,s.cancelEvent(a)):void 0},s.bind(s.win,"mousedown",s.ontouchstart),s.onclick=w.isios?!1:function(a){return s.lastmouseup?(s.lastmouseup=!1,s.cancelEvent(a)):!0},s.opt.grabcursorenabled&&w.cursorgrabvalue&&(s.css(s.ispage?s.doc:s.win,{cursor:w.cursorgrabvalue}),s.css(s.rail,{cursor:w.cursorgrabvalue}))):("getSelection"in document?s.hasTextSelected=function(){return document.getSelection().rangeCount>0}:"selection"in document?s.hasTextSelected=function(){return"None"!=document.selection.type}:s.hasTextSelected=function(){return!1},s.onselectionstart=function(a){s.ispage||(s.selectiondrag=s.win.offset())},s.onselectionend=function(a){s.selectiondrag=!1},s.onselectiondrag=function(b){s.selectiondrag&&s.hasTextSelected()&&s.debounced("selectionscroll",function(){a(b)},250)}),w.hasmstouch&&(s.css(s.rail,{"-ms-touch-action":"none"}),s.css(s.cursor,{"-ms-touch-action":"none"}),s.bind(s.win,"MSPointerDown",s.ontouchstart),s.bind(document,"MSPointerUp",s.ontouchend),s.bind(document,"MSPointerMove",s.ontouchmove),s.bind(s.cursor,"MSGestureHold",function(a){a.preventDefault()}),s.bind(s.cursor,"contextmenu",function(a){a.preventDefault()})),this.istouchcapable&&(s.bind(s.win,"touchstart",s.ontouchstart),s.bind(document,"touchend",s.ontouchend),s.bind(document,"touchcancel",s.ontouchend),s.bind(document,"touchmove",s.ontouchmove)),s.bind(s.cursor,"mousedown",s.onmousedown),s.bind(s.cursor,"mouseup",s.onmouseup),s.railh&&(s.bind(s.cursorh,"mousedown",function(a){s.onmousedown(a,!0)}),s.bind(s.cursorh,"mouseup",function(a){return s.rail.drag&&2==s.rail.drag.pt?void 0:(s.rail.drag=!1,s.hasmoving=!1,s.hideCursor(),w.hasmousecapture&&document.releaseCapture(),s.cancelEvent(a))})),(s.opt.cursordragontouch||!w.cantouch&&!s.opt.touchbehavior)&&(s.rail.css({cursor:"default"}),s.railh&&s.railh.css({cursor:"default"}),s.jqbind(s.rail,"mouseenter",function(){s.canshowonmouseevent&&s.showCursor(),s.rail.active=!0}),s.jqbind(s.rail,"mouseleave",function(){s.rail.active=!1,s.rail.drag||s.hideCursor()}),s.opt.sensitiverail&&(s.bind(s.rail,"click",function(a){s.doRailClick(a,!1,!1)}),s.bind(s.rail,"dblclick",function(a){s.doRailClick(a,!0,!1)}),s.bind(s.cursor,"click",function(a){s.cancelEvent(a)}),s.bind(s.cursor,"dblclick",function(a){s.cancelEvent(a)})),s.railh&&(s.jqbind(s.railh,"mouseenter",function(){s.canshowonmouseevent&&s.showCursor(),s.rail.active=!0}),s.jqbind(s.railh,"mouseleave",function(){s.rail.active=!1,s.rail.drag||s.hideCursor()}),s.opt.sensitiverail&&(s.bind(s.railh,"click",function(a){s.doRailClick(a,!1,!0)}),s.bind(s.railh,"dblclick",function(a){s.doRailClick(a,!0,!0)}),s.bind(s.cursorh,"click",function(a){s.cancelEvent(a)}),s.bind(s.cursorh,"dblclick",function(a){
s.cancelEvent(a)})))),w.cantouch||s.opt.touchbehavior?(s.bind(w.hasmousecapture?s.win:document,"mouseup",s.ontouchend),s.bind(document,"mousemove",s.ontouchmove),s.onclick&&s.bind(document,"click",s.onclick),s.opt.cursordragontouch&&(s.bind(s.cursor,"mousedown",s.onmousedown),s.bind(s.cursor,"mousemove",s.onmousemove),s.cursorh&&s.bind(s.cursorh,"mousedown",s.onmousedown),s.cursorh&&s.bind(s.cursorh,"mousemove",s.onmousemove))):(s.bind(w.hasmousecapture?s.win:document,"mouseup",s.onmouseup),s.bind(document,"mousemove",s.onmousemove),s.onclick&&s.bind(document,"click",s.onclick),!s.ispage&&s.opt.enablescrollonselection&&(s.bind(s.win[0],"mousedown",s.onselectionstart),s.bind(document,"mouseup",s.onselectionend),s.bind(s.cursor,"mouseup",s.onselectionend),s.cursorh&&s.bind(s.cursorh,"mouseup",s.onselectionend),s.bind(document,"mousemove",s.onselectiondrag)),s.zoom&&(s.jqbind(s.zoom,"mouseenter",function(){s.canshowonmouseevent&&s.showCursor(),s.rail.active=!0}),s.jqbind(s.zoom,"mouseleave",function(){s.rail.active=!1,s.rail.drag||s.hideCursor()}))),s.opt.enablemousewheel&&(s.isiframe||s.bind(w.isie&&s.ispage?document:s.win,"mousewheel",s.onmousewheel),s.bind(s.rail,"mousewheel",s.onmousewheel),s.railh&&s.bind(s.railh,"mousewheel",s.onmousewheelhr)),s.ispage||w.cantouch||/HTML|BODY/.test(s.win[0].nodeName)||(s.win.attr("tabindex")||s.win.attr({tabindex:g++}),s.jqbind(s.win,"focus",function(a){e=s.getTarget(a).id||!0,s.hasfocus=!0,s.canshowonmouseevent&&s.noticeCursor()}),s.jqbind(s.win,"blur",function(a){e=!1,s.hasfocus=!1}),s.jqbind(s.win,"mouseenter",function(a){f=s.getTarget(a).id||!0,s.hasmousefocus=!0,s.canshowonmouseevent&&s.noticeCursor()}),s.jqbind(s.win,"mouseleave",function(){f=!1,s.hasmousefocus=!1}))}if(s.onkeypress=function(a){if(s.locked&&0==s.page.maxh)return!0;a=a?a:window.e;var b=s.getTarget(a);if(b&&/INPUT|TEXTAREA|SELECT|OPTION/.test(b.nodeName)){var c=b.getAttribute("type")||b.type||!1;if(!c||!/submit|button|cancel/i.tp)return!0}if(s.hasfocus||s.hasmousefocus&&!e||s.ispage&&!e&&!f){var d=a.keyCode;if(s.locked&&27!=d)return s.cancelEvent(a);var g=a.ctrlKey||!1,h=a.shiftKey||!1,i=!1;switch(d){case 38:case 63233:s.doScrollBy(72),i=!0;break;case 40:case 63235:s.doScrollBy(-72),i=!0;break;case 37:case 63232:s.railh&&(g?s.doScrollLeft(0):s.doScrollLeftBy(72),i=!0);break;case 39:case 63234:s.railh&&(g?s.doScrollLeft(s.page.maxw):s.doScrollLeftBy(-72),i=!0);break;case 33:case 63276:s.doScrollBy(s.view.h),i=!0;break;case 34:case 63277:s.doScrollBy(-s.view.h),i=!0;break;case 36:case 63273:s.railh&&g?s.doScrollPos(0,0):s.doScrollTo(0),i=!0;break;case 35:case 63275:s.railh&&g?s.doScrollPos(s.page.maxw,s.page.maxh):s.doScrollTo(s.page.maxh),i=!0;break;case 32:s.opt.spacebarenabled&&(s.doScrollBy(h?s.view.h:-s.view.h),i=!0);break;case 27:s.zoomactive&&(s.doZoom(),i=!0)}if(i)return s.cancelEvent(a)}},s.opt.enablekeyboard&&s.bind(document,w.isopera&&!w.isopera12?"keypress":"keydown",s.onkeypress),s.bind(window,"resize",s.lazyResize),s.bind(window,"orientationchange",s.lazyResize),s.bind(window,"load",s.lazyResize),w.ischrome&&!s.ispage&&!s.haswrapper){var B=s.win.attr("style"),C=parseFloat(s.win.css("width"))+1;s.win.css("width",C),s.synched("chromefix",function(){s.win.attr("style",B)})}s.onAttributeChange=function(a){s.lazyResize(250)},s.ispage||s.haswrapper||(q!==!1?(s.observer=new q(function(a){a.forEach(s.onAttributeChange)}),s.observer.observe(s.win[0],{childList:!0,characterData:!1,attributes:!0,subtree:!1}),s.observerremover=new q(function(a){a.forEach(function(a){if(a.removedNodes.length>0)for(var b in a.removedNodes)if(a.removedNodes[b]==s.win[0])return s.remove()})}),s.observerremover.observe(s.win[0].parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(s.bind(s.win,w.isie&&!w.isie9?"propertychange":"DOMAttrModified",s.onAttributeChange),w.isie9&&s.win[0].attachEvent("onpropertychange",s.onAttributeChange),s.bind(s.win,"DOMNodeRemoved",function(a){a.target==s.win[0]&&s.remove()}))),!s.ispage&&s.opt.boxzoom&&s.bind(window,"resize",s.resizeZoom),s.istextarea&&s.bind(s.win,"mouseup",s.lazyResize),s.checkrtlmode=!0,s.lazyResize(30)}"IFRAME"==this.doc[0].nodeName&&(this.doc[0].readyState&&"complete"==this.doc[0].readyState&&setTimeout(function(){b.call(s.doc[0],!1)},500),s.bind(this.doc,"load",b))},this.showCursor=function(a,b){s.cursortimeout&&(clearTimeout(s.cursortimeout),s.cursortimeout=0),s.rail&&(s.autohidedom&&(s.autohidedom.stop().css({opacity:s.opt.cursoropacitymax}),s.cursoractive=!0),s.rail.drag&&1==s.rail.drag.pt||("undefined"!=typeof a&&a!==!1&&(s.scroll.y=Math.round(1*a/s.scrollratio.y)),"undefined"!=typeof b&&(s.scroll.x=Math.round(1*b/s.scrollratio.x))),s.cursor.css({height:s.cursorheight,top:s.scroll.y}),s.cursorh&&(s.cursorh.css(!s.rail.align&&s.rail.visibility?{width:s.cursorwidth,left:s.scroll.x+s.rail.width}:{width:s.cursorwidth,left:s.scroll.x}),s.cursoractive=!0),s.zoom&&s.zoom.stop().css({opacity:s.opt.cursoropacitymax}))},this.hideCursor=function(a){s.cursortimeout||s.rail&&s.autohidedom&&(s.cursortimeout=setTimeout(function(){s.rail.active&&s.showonmouseevent||(s.autohidedom.stop().animate({opacity:s.opt.cursoropacitymin}),s.zoom&&s.zoom.stop().animate({opacity:s.opt.cursoropacitymin}),s.cursoractive=!1),s.cursortimeout=0},a||s.opt.hidecursordelay))},this.noticeCursor=function(a,b,c){s.showCursor(b,c),s.rail.active||s.hideCursor(a)},this.getContentSize=s.ispage?function(){return{w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}}:s.haswrapper?function(){return{w:s.doc.outerWidth()+parseInt(s.win.css("paddingLeft"))+parseInt(s.win.css("paddingRight")),h:s.doc.outerHeight()+parseInt(s.win.css("paddingTop"))+parseInt(s.win.css("paddingBottom"))}}:function(){return{w:s.docscroll[0].scrollWidth,h:s.docscroll[0].scrollHeight}},this.onResize=function(a,b){if(!s.win)return!1;if(!s.haswrapper&&!s.ispage){if("none"==s.win.css("display"))return s.visibility&&s.hideRail().hideRailHr(),!1;s.hidden||s.visibility||s.showRail().showRailHr()}var c=s.page.maxh,d=s.page.maxw,e={h:s.view.h,w:s.view.w};if(s.view={w:s.ispage?s.win.width():parseInt(s.win[0].clientWidth),h:s.ispage?s.win.height():parseInt(s.win[0].clientHeight)},s.page=b?b:s.getContentSize(),s.page.maxh=Math.max(0,s.page.h-s.view.h),s.page.maxw=Math.max(0,s.page.w-s.view.w),s.page.maxh==c&&s.page.maxw==d&&s.view.w==e.w){if(s.ispage)return s;var f=s.win.offset();if(s.lastposition){var g=s.lastposition;if(g.top==f.top&&g.left==f.left)return s}s.lastposition=f}if(0==s.page.maxh?(s.hideRail(),s.scrollvaluemax=0,s.scroll.y=0,s.scrollratio.y=0,s.cursorheight=0,s.setScrollTop(0),s.rail.scrollable=!1):s.rail.scrollable=!0,0==s.page.maxw?(s.hideRailHr(),s.scrollvaluemaxw=0,s.scroll.x=0,s.scrollratio.x=0,s.cursorwidth=0,s.setScrollLeft(0),s.railh.scrollable=!1):s.railh.scrollable=!0,s.locked=0==s.page.maxh&&0==s.page.maxw,s.locked)return s.ispage||s.updateScrollBar(s.view),!1;s.hidden||s.visibility?s.hidden||s.railh.visibility||s.showRailHr():s.showRail().showRailHr(),s.istextarea&&s.win.css("resize")&&"none"!=s.win.css("resize")&&(s.view.h-=20),s.cursorheight=Math.min(s.view.h,Math.round(s.view.h*(s.view.h/s.page.h))),s.cursorheight=s.opt.cursorfixedheight?s.opt.cursorfixedheight:Math.max(s.opt.cursorminheight,s.cursorheight),s.cursorwidth=Math.min(s.view.w,Math.round(s.view.w*(s.view.w/s.page.w))),s.cursorwidth=s.opt.cursorfixedheight?s.opt.cursorfixedheight:Math.max(s.opt.cursorminheight,s.cursorwidth),s.scrollvaluemax=s.view.h-s.cursorheight-s.cursor.hborder,s.railh&&(s.railh.width=s.page.maxh>0?s.view.w-s.rail.width:s.view.w,s.scrollvaluemaxw=s.railh.width-s.cursorwidth-s.cursorh.wborder),s.checkrtlmode&&s.railh&&(s.checkrtlmode=!1,s.opt.rtlmode&&0==s.scroll.x&&s.setScrollLeft(s.page.maxw)),s.ispage||s.updateScrollBar(s.view),s.scrollratio={x:s.page.maxw/s.scrollvaluemaxw,y:s.page.maxh/s.scrollvaluemax};var h=s.getScrollTop();return h>s.page.maxh?s.doScrollTop(s.page.maxh):(s.scroll.y=Math.round(s.getScrollTop()*(1/s.scrollratio.y)),s.scroll.x=Math.round(s.getScrollLeft()*(1/s.scrollratio.x)),s.cursoractive&&s.noticeCursor()),s.scroll.y&&0==s.getScrollTop()&&s.doScrollTo(Math.floor(s.scroll.y*s.scrollratio.y)),s},this.resize=s.onResize,this.lazyResize=function(a){return a=isNaN(a)?30:a,s.delayed("resize",s.resize,a),s},this._bind=function(a,b,c,d){s.events.push({e:a,n:b,f:c,b:d,q:!1}),a.addEventListener?a.addEventListener(b,c,d||!1):a.attachEvent?a.attachEvent("on"+b,c):a["on"+b]=c},this.jqbind=function(a,b,c){s.events.push({e:a,n:b,f:c,q:!0}),j(a).bind(b,c)},this.bind=function(a,b,c,d){var e="jquery"in a?a[0]:a;if(void 0==e&&(e=a),"mousewheel"==b)if("onwheel"in s.win)s._bind(e,"wheel",c,d||!1);else{var f="undefined"!=typeof document.onmousewheel?"mousewheel":"DOMMouseScroll";o(e,f,c,d||!1),"DOMMouseScroll"==f&&o(e,"MozMousePixelScroll",c,d||!1)}else if(e.addEventListener){if(w.cantouch&&/mouseup|mousedown|mousemove/.test(b)){var g="mousedown"==b?"touchstart":"mouseup"==b?"touchend":"touchmove";s._bind(e,g,function(a){if(a.touches){if(a.touches.length<2){var b=a.touches.length?a.touches[0]:a;b.original=a,c.call(this,b)}}else if(a.changedTouches){var b=a.changedTouches[0];b.original=a,c.call(this,b)}},d||!1)}s._bind(e,b,c,d||!1),w.cantouch&&"mouseup"==b&&s._bind(e,"touchcancel",c,d||!1)}else s._bind(e,b,function(a){return a=a||window.event||!1,a&&a.srcElement&&(a.target=a.srcElement),"pageY"in a||(a.pageX=a.clientX+document.documentElement.scrollLeft,a.pageY=a.clientY+document.documentElement.scrollTop),c.call(e,a)===!1||d===!1?s.cancelEvent(a):!0})},this._unbind=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent?a.detachEvent("on"+b,c):a["on"+b]=!1},this.unbindAll=function(){for(var a=0;a0)return c;b=b.parentNode?b.parentNode:!1}return!1},this.onmousewheel=function(a){if(s.locked)return s.debounced("checkunlock",s.resize,250),!0;if(s.rail.drag)return s.cancelEvent(a);if("auto"==s.opt.oneaxismousemode&&0!=a.deltaX&&(s.opt.oneaxismousemode=!1),s.opt.oneaxismousemode&&0==a.deltaX&&!s.rail.scrollable)return s.railh&&s.railh.scrollable?s.onmousewheelhr(a):!0;var b=+new Date,c=!1;if(s.opt.preservenativescrolling&&s.checkarea+60020?c:0},s.opt.smoothscroll?s.ishwscroll&&w.hastransition&&s.opt.usetransition?(this.prepareTransition=function(a,b){var c=b?a>20?a:0:s.getTransitionSpeed(a),d=c?w.prefixstyle+"transform "+c+"ms ease-out":"";return s.lasttransitionstyle&&s.lasttransitionstyle==d||(s.lasttransitionstyle=d,s.doc.css(w.transitionstyle,d)),c},this.doScrollLeft=function(a,b){var c=s.scrollrunning?s.newscrolly:s.getScrollTop();s.doScrollPos(a,c,b)},this.doScrollTop=function(a,b){var c=s.scrollrunning?s.newscrollx:s.getScrollLeft();s.doScrollPos(c,a,b)},this.doScrollPos=function(a,b,c){var d=s.getScrollTop(),e=s.getScrollLeft();return((s.newscrolly-d)*(b-d)<0||(s.newscrollx-e)*(a-e)<0)&&s.cancelScroll(),0==s.opt.bouncescroll&&(0>b?b=0:b>s.page.maxh&&(b=s.page.maxh),0>a?a=0:a>s.page.maxw&&(a=s.page.maxw)),s.scrollrunning&&a==s.newscrollx&&b==s.newscrolly?!1:(s.newscrolly=b,s.newscrollx=a,s.newscrollspeed=c||!1,s.timer?!1:void(s.timer=setTimeout(function(){var c=s.getScrollTop(),d=s.getScrollLeft(),e={};e.x=a-d,e.y=b-c,e.px=d,e.py=c;var f=Math.round(Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))),g=s.newscrollspeed&&s.newscrollspeed>1?s.newscrollspeed:s.getTransitionSpeed(f);if(s.newscrollspeed&&s.newscrollspeed<=1&&(g*=s.newscrollspeed),s.prepareTransition(g,!0),s.timerscroll&&s.timerscroll.tm&&clearInterval(s.timerscroll.tm),g>0){if(!s.scrollrunning&&s.onscrollstart){var h={type:"scrollstart",current:{x:d,y:c},request:{x:a,y:b},end:{x:s.newscrollx,y:s.newscrolly},speed:g};s.onscrollstart.call(s,h)}w.transitionend?s.scrollendtrapped||(s.scrollendtrapped=!0,s.bind(s.doc,w.transitionend,s.onScrollEnd,!1)):(s.scrollendtrapped&&clearTimeout(s.scrollendtrapped),s.scrollendtrapped=setTimeout(s.onScrollEnd,g));var i=c,j=d;s.timerscroll={bz:new BezierClass(i,s.newscrolly,g,0,0,.58,1),bh:new BezierClass(j,s.newscrollx,g,0,0,.58,1)},s.cursorfreezed||(s.timerscroll.tm=setInterval(function(){s.showCursor(s.getScrollTop(),s.getScrollLeft())},60))}s.synched("doScroll-set",function(){s.timer=0,s.scrollendtrapped&&(s.scrollrunning=!0),s.setScrollTop(s.newscrolly),s.setScrollLeft(s.newscrollx),s.scrollendtrapped||s.onScrollEnd()})},50)))},this.cancelScroll=function(){if(!s.scrollendtrapped)return!0;var a=s.getScrollTop(),b=s.getScrollLeft();return s.scrollrunning=!1,w.transitionend||clearTimeout(w.transitionend),s.scrollendtrapped=!1,s._unbind(s.doc,w.transitionend,s.onScrollEnd),s.prepareTransition(0),s.setScrollTop(a),s.railh&&s.setScrollLeft(b),s.timerscroll&&s.timerscroll.tm&&clearInterval(s.timerscroll.tm),s.timerscroll=!1,s.cursorfreezed=!1,s.showCursor(a,b),s},this.onScrollEnd=function(){s.scrollendtrapped&&s._unbind(s.doc,w.transitionend,s.onScrollEnd),s.scrollendtrapped=!1,s.prepareTransition(0),s.timerscroll&&s.timerscroll.tm&&clearInterval(s.timerscroll.tm),s.timerscroll=!1;var a=s.getScrollTop(),b=s.getScrollLeft();if(s.setScrollTop(a),s.railh&&s.setScrollLeft(b),s.noticeCursor(!1,a,b),s.cursorfreezed=!1,0>a?a=0:a>s.page.maxh&&(a=s.page.maxh),0>b?b=0:b>s.page.maxw&&(b=s.page.maxw),a!=s.newscrolly||b!=s.newscrollx)return s.doScrollPos(b,a,s.opt.snapbackspeed);if(s.onscrollend&&s.scrollrunning){var c={type:"scrollend",current:{x:b,y:a},end:{x:s.newscrollx,y:s.newscrolly}};s.onscrollend.call(s,c)}s.scrollrunning=!1}):(this.doScrollLeft=function(a,b){var c=s.scrollrunning?s.newscrolly:s.getScrollTop();s.doScrollPos(a,c,b)},this.doScrollTop=function(a,b){var c=s.scrollrunning?s.newscrollx:s.getScrollLeft();s.doScrollPos(c,a,b)},this.doScrollPos=function(a,b,c){function d(){if(s.cancelAnimationFrame)return!0;if(s.scrollrunning=!0,k=1-k)return s.timer=m(d)||1;var a=0,b=sy=s.getScrollTop();if(s.dst.ay){b=s.bzscroll?s.dst.py+s.bzscroll.getNow()*s.dst.ay:s.newscrolly;var c=b-sy;(0>c&&b0&&b>s.newscrolly)&&(b=s.newscrolly),s.setScrollTop(b),b==s.newscrolly&&(a=1)}else a=1;var e=sx=s.getScrollLeft();if(s.dst.ax){e=s.bzscroll?s.dst.px+s.bzscroll.getNow()*s.dst.ax:s.newscrollx;var c=e-sx;(0>c&&e0&&e>s.newscrollx)&&(e=s.newscrollx),s.setScrollLeft(e),e==s.newscrollx&&(a+=1)}else a+=1;if(2==a){if(s.timer=0,s.cursorfreezed=!1,s.bzscroll=!1,s.scrollrunning=!1,0>b?b=0:b>s.page.maxh&&(b=s.page.maxh),0>e?e=0:e>s.page.maxw&&(e=s.page.maxw),e!=s.newscrollx||b!=s.newscrolly)s.doScrollPos(e,b);else if(s.onscrollend){var f={type:"scrollend",current:{x:sx,y:sy},end:{x:s.newscrollx,y:s.newscrolly}};s.onscrollend.call(s,f)}}else s.timer=m(d)||1}var b="undefined"==typeof b||b===!1?s.getScrollTop(!0):b;if(s.timer&&s.newscrolly==b&&s.newscrollx==a)return!0;s.timer&&n(s.timer),s.timer=0;var e=s.getScrollTop(),f=s.getScrollLeft();((s.newscrolly-e)*(b-e)<0||(s.newscrollx-f)*(a-f)<0)&&s.cancelScroll(),s.newscrolly=b,s.newscrollx=a,s.bouncescroll&&s.rail.visibility||(s.newscrolly<0?s.newscrolly=0:s.newscrolly>s.page.maxh&&(s.newscrolly=s.page.maxh)),s.bouncescroll&&s.railh.visibility||(s.newscrollx<0?s.newscrollx=0:s.newscrollx>s.page.maxw&&(s.newscrollx=s.page.maxw)),s.dst={},s.dst.x=a-f,s.dst.y=b-e,s.dst.px=f,s.dst.py=e;var g=Math.round(Math.sqrt(Math.pow(s.dst.x,2)+Math.pow(s.dst.y,2)));s.dst.ax=s.dst.x/g,s.dst.ay=s.dst.y/g;var h=0,i=g;0==s.dst.x?(h=e,i=b,s.dst.ay=1,s.dst.py=0):0==s.dst.y&&(h=f,i=a,s.dst.ax=1,s.dst.px=0);var j=s.getTransitionSpeed(g);if(c&&1>=c&&(j*=c),j>0?s.bzscroll=s.bzscroll?s.bzscroll.update(i,j):new BezierClass(h,i,j,0,1,0,1):s.bzscroll=!1,!s.timer){(e==s.page.maxh&&b>=s.page.maxh||f==s.page.maxw&&a>=s.page.maxw)&&s.checkContentSize();var k=1;if(s.cancelAnimationFrame=!1,s.timer=1,s.onscrollstart&&!s.scrollrunning){var l={type:"scrollstart",current:{x:f,y:e},request:{x:a,y:b},end:{x:s.newscrollx,y:s.newscrolly},speed:j};s.onscrollstart.call(s,l)}d(),(e==s.page.maxh&&b>=e||f==s.page.maxw&&a>=f)&&s.checkContentSize(),s.noticeCursor()}},this.cancelScroll=function(){return s.timer&&n(s.timer),s.timer=0,s.bzscroll=!1,s.scrollrunning=!1,s}):(this.doScrollLeft=function(a,b){var c=s.getScrollTop();s.doScrollPos(a,c,b)},this.doScrollTop=function(a,b){var c=s.getScrollLeft();s.doScrollPos(c,a,b)},this.doScrollPos=function(a,b,c){var d=a>s.page.maxw?s.page.maxw:a;0>d&&(d=0);var e=b>s.page.maxh?s.page.maxh:b;0>e&&(e=0),s.synched("scroll",function(){s.setScrollTop(e),s.setScrollLeft(d)})},this.cancelScroll=function(){}),this.doScrollBy=function(a,b){var c=0;if(b)c=Math.floor((s.scroll.y-a)*s.scrollratio.y);else{var d=s.timer?s.newscrolly:s.getScrollTop(!0);c=d-a}if(s.bouncescroll){var e=Math.round(s.view.h/2);-e>c?c=-e:c>s.page.maxh+e&&(c=s.page.maxh+e)}return s.cursorfreezed=!1,py=s.getScrollTop(!0),0>c&&py<=0?s.noticeCursor():c>s.page.maxh&&py>=s.page.maxh?(s.checkContentSize(),s.noticeCursor()):void s.doScrollTop(c)},this.doScrollLeftBy=function(a,b){var c=0;if(b)c=Math.floor((s.scroll.x-a)*s.scrollratio.x);else{var d=s.timer?s.newscrollx:s.getScrollLeft(!0);c=d-a}if(s.bouncescroll){var e=Math.round(s.view.w/2);-e>c?c=-e:c>s.page.maxw+e&&(c=s.page.maxw+e)}return s.cursorfreezed=!1,px=s.getScrollLeft(!0),0>c&&px<=0?s.noticeCursor():c>s.page.maxw&&px>=s.page.maxw?s.noticeCursor():void s.doScrollLeft(c)},this.doScrollTo=function(a,b){var c=b?Math.round(a*s.scrollratio.y):a;0>c?c=0:c>s.page.maxh&&(c=s.page.maxh),s.cursorfreezed=!1,s.doScrollTop(a)},this.checkContentSize=function(){var a=s.getContentSize();(a.h!=s.page.h||a.w!=s.page.w)&&s.resize(!1,a)},s.onscroll=function(a){s.rail.drag||s.cursorfreezed||s.synched("scroll",function(){s.scroll.y=Math.round(s.getScrollTop()*(1/s.scrollratio.y)),s.railh&&(s.scroll.x=Math.round(s.getScrollLeft()*(1/s.scrollratio.x))),s.noticeCursor()})},s.bind(s.docscroll,"scroll",s.onscroll),this.doZoomIn=function(a){if(!s.zoomactive){s.zoomactive=!0,s.zoomrestore={style:{}};var b=["position","top","left","zIndex","backgroundColor","marginTop","marginBottom","marginLeft","marginRight"],c=s.win[0].style;for(var d in b){var e=b[d];s.zoomrestore.style[e]="undefined"!=typeof c[e]?c[e]:""}s.zoomrestore.style.width=s.win.css("width"),s.zoomrestore.style.height=s.win.css("height"),s.zoomrestore.padding={w:s.win.outerWidth()-s.win.width(),h:s.win.outerHeight()-s.win.height()},w.isios4&&(s.zoomrestore.scrollTop=j(window).scrollTop(),j(window).scrollTop(0)),s.win.css({position:w.isios4?"absolute":"fixed",top:0,left:0,"z-index":i+100,margin:"0px"});var f=s.win.css("backgroundColor");return(""==f||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(f))&&s.win.css("backgroundColor","#fff"),s.rail.css({"z-index":i+101}),s.zoom.css({"z-index":i+102}),s.zoom.css("backgroundPosition","0px -18px"),s.resizeZoom(),s.onzoomin&&s.onzoomin.call(s),s.cancelEvent(a)}},this.doZoomOut=function(a){return s.zoomactive?(s.zoomactive=!1,s.win.css("margin",""),s.win.css(s.zoomrestore.style),w.isios4&&j(window).scrollTop(s.zoomrestore.scrollTop),s.rail.css({"z-index":s.zindex}),s.zoom.css({"z-index":s.zindex}),s.zoomrestore=!1,s.zoom.css("backgroundPosition","0px 0px"),s.onResize(),s.onzoomout&&s.onzoomout.call(s),s.cancelEvent(a)):void 0},this.doZoom=function(a){return s.zoomactive?s.doZoomOut(a):s.doZoomIn(a)},this.resizeZoom=function(){if(s.zoomactive){var a=s.getScrollTop();s.win.css({width:j(window).width()-s.zoomrestore.padding.w+"px",height:j(window).height()-s.zoomrestore.padding.h+"px"}),s.onResize(),s.setScrollTop(Math.min(s.page.maxh,a))}},this.init(),j.nicescroll.push(this)},v=function(a){var b=this;this.nc=a,this.lastx=0,this.lasty=0,this.speedx=0,this.speedy=0,this.lasttime=0,this.steptime=0,this.snapx=!1,this.snapy=!1,this.demulx=0,this.demuly=0,this.lastscrollx=-1,this.lastscrolly=-1,this.chkx=0,this.chky=0,this.timer=0,this.time=function(){return+new Date},this.reset=function(a,c){b.stop();var d=b.time();b.steptime=0,b.lasttime=d,b.speedx=0,b.speedy=0,b.lastx=a,b.lasty=c,b.lastscrollx=-1,b.lastscrolly=-1},this.update=function(a,c){var d=b.time();b.steptime=d-b.lasttime,b.lasttime=d;var e=c-b.lasty,f=a-b.lastx,g=b.nc.getScrollTop(),h=b.nc.getScrollLeft(),i=g+e,j=h+f;b.snapx=0>j||j>b.nc.page.maxw,b.snapy=0>i||i>b.nc.page.maxh,b.speedx=f,b.speedy=e,b.lastx=a,b.lasty=c},this.stop=function(){b.nc.unsynched("domomentum2d"),b.timer&&clearTimeout(b.timer),b.timer=0,b.lastscrollx=-1,b.lastscrolly=-1},this.doSnapy=function(a,c){var d=!1;0>c?(c=0,d=!0):c>b.nc.page.maxh&&(c=b.nc.page.maxh,d=!0),0>a?(a=0,d=!0):a>b.nc.page.maxw&&(a=b.nc.page.maxw,d=!0),d&&b.nc.doScrollPos(a,c,b.nc.opt.snapbackspeed)},this.doMomentum=function(a){var c=b.time(),d=a?c+a:b.lasttime,e=b.nc.getScrollLeft(),f=b.nc.getScrollTop(),g=b.nc.page.maxh,h=b.nc.page.maxw;b.speedx=h>0?Math.min(60,b.speedx):0,b.speedy=g>0?Math.min(60,b.speedy):0;var i=d&&60>=c-d;(0>f||f>g||0>e||e>h)&&(i=!1);var j=b.speedy&&i?b.speedy:!1,k=b.speedx&&i?b.speedx:!1;if(j||k){var l=Math.max(16,b.steptime);if(l>50){var m=l/50;b.speedx*=m,b.speedy*=m,l=50}b.demulxy=0,b.lastscrollx=b.nc.getScrollLeft(),b.chkx=b.lastscrollx,b.lastscrolly=b.nc.getScrollTop(),b.chky=b.lastscrolly;var n=b.lastscrollx,o=b.lastscrolly,p=function(){var a=b.time()-c>600?.04:.02;b.speedx&&(n=Math.floor(b.lastscrollx-b.speedx*(1-b.demulxy)),b.lastscrollx=n,(0>n||n>h)&&(a=.1)),b.speedy&&(o=Math.floor(b.lastscrolly-b.speedy*(1-b.demulxy)),b.lastscrolly=o,(0>o||o>g)&&(a=.1)),b.demulxy=Math.min(1,b.demulxy+a),b.nc.synched("domomentum2d",function(){if(b.speedx){var a=b.nc.getScrollLeft();a!=b.chkx&&b.stop(),b.chkx=n,b.nc.setScrollLeft(n)}if(b.speedy){var c=b.nc.getScrollTop();c!=b.chky&&b.stop(),b.chky=o,b.nc.setScrollTop(o)}b.timer||(b.nc.hideCursor(),b.doSnapy(n,o))}),b.demulxy<1?b.timer=setTimeout(p,l):(b.stop(),b.nc.hideCursor(),b.doSnapy(n,o))};p()}else b.doSnapy(b.nc.getScrollLeft(),b.nc.getScrollTop())}},w=b.fn.scrollTop;b.cssHooks.pageYOffset={get:function(a,b,c){var d=j.data(a,"__nicescroll")||!1;return d&&d.ishwscroll?d.getScrollTop():w.call(a)},set:function(a,b){var c=j.data(a,"__nicescroll")||!1;return c&&c.ishwscroll?c.setScrollTop(parseInt(b)):w.call(a,b),this}},b.fn.scrollTop=function(a){if("undefined"==typeof a){var b=this[0]?j.data(this[0],"__nicescroll")||!1:!1;return b&&b.ishwscroll?b.getScrollTop():w.call(this)}return this.each(function(){var b=j.data(this,"__nicescroll")||!1;b&&b.ishwscroll?b.setScrollTop(parseInt(a)):w.call(j(this),a)})};var x=b.fn.scrollLeft;j.cssHooks.pageXOffset={get:function(a,b,c){var d=j.data(a,"__nicescroll")||!1;return d&&d.ishwscroll?d.getScrollLeft():x.call(a)},set:function(a,b){var c=j.data(a,"__nicescroll")||!1;return c&&c.ishwscroll?c.setScrollLeft(parseInt(b)):x.call(a,b),this}},b.fn.scrollLeft=function(a){if("undefined"==typeof a){var b=this[0]?j.data(this[0],"__nicescroll")||!1:!1;return b&&b.ishwscroll?b.getScrollLeft():x.call(this)}return this.each(function(){var b=j.data(this,"__nicescroll")||!1;b&&b.ishwscroll?b.setScrollLeft(parseInt(a)):x.call(j(this),a)})};var y=function(b){var c=this;if(this.length=0,this.name="nicescrollarray",this.each=function(a){for(var b=0,d=0;b0,n="fade"===d.vars.animation,o=""!==d.vars.asNavFor,p={},q=!0;a.data(b,"flexslider",d),p={init:function(){d.animating=!1,d.currentSlide=parseInt(d.vars.startAt?d.vars.startAt:0,10),isNaN(d.currentSlide)&&(d.currentSlide=0),d.animatingTo=d.currentSlide,d.atEnd=0===d.currentSlide||d.currentSlide===d.last,d.containerSelector=d.vars.selector.substr(0,d.vars.selector.search(" ")),d.slides=a(d.vars.selector,d),d.container=a(d.containerSelector,d),d.count=d.slides.length,d.syncExists=a(d.vars.sync).length>0,"slide"===d.vars.animation&&(d.vars.animation="swing"),d.prop=k?"top":"marginLeft",d.args={},d.manualPause=!1,d.stopped=!1,d.started=!1,d.startTimeout=null,d.transitions=!d.vars.video&&!n&&d.vars.useCSS&&function(){var a=document.createElement("div"),b=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var c in b)if(void 0!==a.style[b[c]])return d.pfx=b[c].replace("Perspective","").toLowerCase(),d.prop="-"+d.pfx+"-transform",!0;return!1}(),d.ensureAnimationEnd="",""!==d.vars.controlsContainer&&(d.controlsContainer=a(d.vars.controlsContainer).length>0&&a(d.vars.controlsContainer)),""!==d.vars.manualControls&&(d.manualControls=a(d.vars.manualControls).length>0&&a(d.vars.manualControls)),d.vars.randomize&&(d.slides.sort(function(){return Math.round(Math.random())-.5}),d.container.empty().append(d.slides)),d.doMath(),d.setup("init"),d.vars.controlNav&&p.controlNav.setup(),d.vars.directionNav&&p.directionNav.setup(),d.vars.keyboard&&(1===a(d.containerSelector).length||d.vars.multipleKeyboard)&&a(document).bind("keyup",function(a){var b=a.keyCode;if(!d.animating&&(39===b||37===b)){var c=39===b?d.getTarget("next"):37===b?d.getTarget("prev"):!1;d.flexAnimate(c,d.vars.pauseOnAction)}}),d.vars.mousewheel&&d.bind("mousewheel",function(a,b,c,e){a.preventDefault();var f=d.getTarget(0>b?"next":"prev");d.flexAnimate(f,d.vars.pauseOnAction)}),d.vars.pausePlay&&p.pausePlay.setup(),d.vars.slideshow&&d.vars.pauseInvisible&&p.pauseInvisible.init(),d.vars.slideshow&&(d.vars.pauseOnHover&&d.hover(function(){d.manualPlay||d.manualPause||d.pause()},function(){d.manualPause||d.manualPlay||d.stopped||d.play()}),d.vars.pauseInvisible&&p.pauseInvisible.isHidden()||(d.vars.initDelay>0?d.startTimeout=setTimeout(d.play,d.vars.initDelay):d.play())),o&&p.asNav.setup(),h&&d.vars.touch&&p.touch(),(!n||n&&d.vars.smoothHeight)&&a(window).bind("resize orientationchange focus",p.resize),d.find("img").attr("draggable","false"),setTimeout(function(){d.vars.start(d)},200)},asNav:{setup:function(){d.asNav=!0,d.animatingTo=Math.floor(d.currentSlide/d.move),d.currentItem=d.currentSlide,d.slides.removeClass(f+"active-slide").eq(d.currentItem).addClass(f+"active-slide"),g?(b._slider=d,d.slides.each(function(){var b=this;b._gesture=new MSGesture,b._gesture.target=b,b.addEventListener("MSPointerDown",function(a){a.preventDefault(),a.currentTarget._gesture&&a.currentTarget._gesture.addPointer(a.pointerId)},!1),b.addEventListener("MSGestureTap",function(b){b.preventDefault();var c=a(this),e=c.index();a(d.vars.asNavFor).data("flexslider").animating||c.hasClass("active")||(d.direction=d.currentItem=g&&c.hasClass(f+"active-slide")?d.flexAnimate(d.getTarget("prev"),!0):a(d.vars.asNavFor).data("flexslider").animating||c.hasClass(f+"active-slide")||(d.direction=d.currentItem'),d.pagingCount>1)for(var h=0;h ':""+g+" ","thumbnails"===d.vars.controlNav&&!0===d.vars.thumbCaptions){var k=c.attr("data-thumbcaption");""!=k&&void 0!=k&&(b+=''+k+" ")}d.controlNavScaffold.append(""+b+" "),g++}d.controlsContainer?a(d.controlsContainer).append(d.controlNavScaffold):d.append(d.controlNavScaffold),p.controlNav.set(),p.controlNav.active(),d.controlNavScaffold.delegate("a, img",i,function(b){if(b.preventDefault(),""===j||j===b.type){var c=a(this),e=d.controlNav.index(c);c.hasClass(f+"active")||(d.direction=e>d.currentSlide?"next":"prev",d.flexAnimate(e,d.vars.pauseOnAction))}""===j&&(j=b.type),p.setToClearWatchedEvent()})},setupManual:function(){d.controlNav=d.manualControls,p.controlNav.active(),d.controlNav.bind(i,function(b){if(b.preventDefault(),""===j||j===b.type){var c=a(this),e=d.controlNav.index(c);c.hasClass(f+"active")||(e>d.currentSlide?d.direction="next":d.direction="prev",d.flexAnimate(e,d.vars.pauseOnAction))}""===j&&(j=b.type),p.setToClearWatchedEvent()})},set:function(){var b="thumbnails"===d.vars.controlNav?"img":"a";d.controlNav=a("."+f+"control-nav li "+b,d.controlsContainer?d.controlsContainer:d)},active:function(){d.controlNav.removeClass(f+"active").eq(d.animatingTo).addClass(f+"active")},update:function(b,c){d.pagingCount>1&&"add"===b?d.controlNavScaffold.append(a(""+d.count+" ")):1===d.pagingCount?d.controlNavScaffold.find("li").remove():d.controlNav.eq(c).closest("li").remove(),p.controlNav.set(),d.pagingCount>1&&d.pagingCount!==d.controlNav.length?d.update(c,b):p.controlNav.active()}},directionNav:{setup:function(){var b=a('");d.controlsContainer?(a(d.controlsContainer).append(b),d.directionNav=a("."+f+"direction-nav li a",d.controlsContainer)):(d.append(b),d.directionNav=a("."+f+"direction-nav li a",d)),p.directionNav.update(),d.directionNav.bind(i,function(b){b.preventDefault();var c;(""===j||j===b.type)&&(c=d.getTarget(a(this).hasClass(f+"next")?"next":"prev"),d.flexAnimate(c,d.vars.pauseOnAction)),""===j&&(j=b.type),p.setToClearWatchedEvent()})},update:function(){var a=f+"disabled";1===d.pagingCount?d.directionNav.addClass(a).attr("tabindex","-1"):d.vars.animationLoop?d.directionNav.removeClass(a).removeAttr("tabindex"):0===d.animatingTo?d.directionNav.removeClass(a).filter("."+f+"prev").addClass(a).attr("tabindex","-1"):d.animatingTo===d.last?d.directionNav.removeClass(a).filter("."+f+"next").addClass(a).attr("tabindex","-1"):d.directionNav.removeClass(a).removeAttr("tabindex")}},pausePlay:{setup:function(){var b=a('');d.controlsContainer?(d.controlsContainer.append(b),d.pausePlay=a("."+f+"pauseplay a",d.controlsContainer)):(d.append(b),d.pausePlay=a("."+f+"pauseplay a",d)),p.pausePlay.update(d.vars.slideshow?f+"pause":f+"play"),d.pausePlay.bind(i,function(b){b.preventDefault(),(""===j||j===b.type)&&(a(this).hasClass(f+"pause")?(d.manualPause=!0,d.manualPlay=!1,d.pause()):(d.manualPause=!1,d.manualPlay=!0,d.play())),""===j&&(j=b.type),p.setToClearWatchedEvent()})},update:function(a){"play"===a?d.pausePlay.removeClass(f+"pause").addClass(f+"play").html(d.vars.playText):d.pausePlay.removeClass(f+"play").addClass(f+"pause").html(d.vars.pauseText)}},touch:function(){function a(a){d.animating?a.preventDefault():(window.navigator.msPointerEnabled||1===a.touches.length)&&(d.pause(),q=k?d.h:d.w,s=Number(new Date),u=a.touches[0].pageX,v=a.touches[0].pageY,p=m&&l&&d.animatingTo===d.last?0:m&&l?d.limit-(d.itemW+d.vars.itemMargin)*d.move*d.animatingTo:m&&d.currentSlide===d.last?d.limit:m?(d.itemW+d.vars.itemMargin)*d.move*d.currentSlide:l?(d.last-d.currentSlide+d.cloneOffset)*q:(d.currentSlide+d.cloneOffset)*q,j=k?v:u,o=k?u:v,b.addEventListener("touchmove",c,!1),b.addEventListener("touchend",e,!1))}function c(a){u=a.touches[0].pageX,v=a.touches[0].pageY,r=k?j-v:j-u,t=k?Math.abs(r)b)&&(a.preventDefault(),!n&&d.transitions&&(d.vars.animationLoop||(r/=0===d.currentSlide&&0>r||d.currentSlide===d.last&&r>0?Math.abs(r)/q+2:1),d.setProps(p+r,"setTouch")))}function e(a){if(b.removeEventListener("touchmove",c,!1),d.animatingTo===d.currentSlide&&!t&&null!==r){var f=l?-r:r,g=d.getTarget(f>0?"next":"prev");d.canAdvance(g)&&(Number(new Date)-s<550&&Math.abs(f)>50||Math.abs(f)>q/2)?d.flexAnimate(g,d.vars.pauseOnAction):n||d.flexAnimate(d.currentSlide,d.vars.pauseOnAction,!0)}b.removeEventListener("touchend",e,!1),j=null,o=null,r=null,p=null}function f(a){a.stopPropagation(),d.animating?a.preventDefault():(d.pause(),b._gesture.addPointer(a.pointerId),w=0,q=k?d.h:d.w,s=Number(new Date),p=m&&l&&d.animatingTo===d.last?0:m&&l?d.limit-(d.itemW+d.vars.itemMargin)*d.move*d.animatingTo:m&&d.currentSlide===d.last?d.limit:m?(d.itemW+d.vars.itemMargin)*d.move*d.currentSlide:l?(d.last-d.currentSlide+d.cloneOffset)*q:(d.currentSlide+d.cloneOffset)*q)}function h(a){a.stopPropagation();var c=a.target._slider;if(c){var d=-a.translationX,e=-a.translationY;return w+=k?e:d,r=w,t=k?Math.abs(w)500)&&(a.preventDefault(),!n&&c.transitions&&(c.vars.animationLoop||(r=w/(0===c.currentSlide&&0>w||c.currentSlide===c.last&&w>0?Math.abs(w)/q+2:1)),c.setProps(p+r,"setTouch"))))}}function i(a){a.stopPropagation();var b=a.target._slider;if(b){if(b.animatingTo===b.currentSlide&&!t&&null!==r){var c=l?-r:r,d=b.getTarget(c>0?"next":"prev");b.canAdvance(d)&&(Number(new Date)-s<550&&Math.abs(c)>50||Math.abs(c)>q/2)?b.flexAnimate(d,b.vars.pauseOnAction):n||b.flexAnimate(b.currentSlide,b.vars.pauseOnAction,!0)}j=null,o=null,r=null,p=null,w=0}}var j,o,p,q,r,s,t=!1,u=0,v=0,w=0;g?(b.style.msTouchAction="pan-y",b._gesture=new MSGesture,b._gesture.target=b,b.addEventListener("MSPointerDown",f,!1),b._slider=d,b.addEventListener("MSGestureChange",h,!1),b.addEventListener("MSGestureEnd",i,!1)):b.addEventListener("touchstart",a,!1)},resize:function(){!d.animating&&d.is(":visible")&&(m||d.doMath(),n?p.smoothHeight():m?(d.slides.width(d.computedW),d.update(d.pagingCount),d.setProps()):k?(d.viewport.height(d.h),d.setProps(d.h,"setTotal")):(d.vars.smoothHeight&&p.smoothHeight(),d.newSlides.width(d.computedW),d.setProps(d.computedW,"setTotal")))},smoothHeight:function(a){if(!k||n){var b=n?d:d.viewport;a?b.animate({height:d.slides.eq(d.animatingTo).height()},a):b.height(d.slides.eq(d.animatingTo).height())}},sync:function(b){var c=a(d.vars.sync).data("flexslider"),e=d.animatingTo;switch(b){case"animate":c.flexAnimate(e,d.vars.pauseOnAction,!1,!0);break;case"play":c.playing||c.asNav||c.play();break;case"pause":c.pause()}},uniqueID:function(b){return b.find("[id]").each(function(){var b=a(this);b.attr("id",b.attr("id")+"_clone")}),b},pauseInvisible:{visProp:null,init:function(){var a=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var b=0;b0?setTimeout(d.play,d.vars.initDelay):d.play()})}},isHidden:function(){return document[p.pauseInvisible.visProp]||!1}},setToClearWatchedEvent:function(){clearTimeout(e),e=setTimeout(function(){j=""},3e3)}},d.flexAnimate=function(b,c,e,g,i){if(d.vars.animationLoop||b===d.currentSlide||(d.direction=b>d.currentSlide?"next":"prev"),o&&1===d.pagingCount&&(d.direction=d.currentItemd.limit&&1!==d.visible?d.limit:s):r=0===d.currentSlide&&b===d.count-1&&d.vars.animationLoop&&"next"!==d.direction?l?(d.count+d.cloneOffset)*t:0:d.currentSlide===d.last&&0===b&&d.vars.animationLoop&&"prev"!==d.direction?l?0:(d.count+1)*t:l?(d.count-1-b+d.cloneOffset)*t:(b+d.cloneOffset)*t,d.setProps(r,"",d.vars.animationSpeed),d.transitions?(d.vars.animationLoop&&d.atEnd||(d.animating=!1,d.currentSlide=d.animatingTo),d.container.unbind("webkitTransitionEnd transitionend"),d.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(d.ensureAnimationEnd),d.wrapup(t)}),clearTimeout(d.ensureAnimationEnd),d.ensureAnimationEnd=setTimeout(function(){d.wrapup(t)},d.vars.animationSpeed+100)):d.container.animate(d.args,d.vars.animationSpeed,d.vars.easing,function(){d.wrapup(t)})}d.vars.smoothHeight&&p.smoothHeight(d.vars.animationSpeed)}},d.wrapup=function(a){n||m||(0===d.currentSlide&&d.animatingTo===d.last&&d.vars.animationLoop?d.setProps(a,"jumpEnd"):d.currentSlide===d.last&&0===d.animatingTo&&d.vars.animationLoop&&d.setProps(a,"jumpStart")),d.animating=!1,d.currentSlide=d.animatingTo,d.vars.after(d)},d.animateSlides=function(){!d.animating&&q&&d.flexAnimate(d.getTarget("next"))},d.pause=function(){clearInterval(d.animatedSlides),d.animatedSlides=null,d.playing=!1,d.vars.pausePlay&&p.pausePlay.update("play"),d.syncExists&&p.sync("pause")},d.play=function(){d.playing&&clearInterval(d.animatedSlides),d.animatedSlides=d.animatedSlides||setInterval(d.animateSlides,d.vars.slideshowSpeed),d.started=d.playing=!0,d.vars.pausePlay&&p.pausePlay.update("pause"),d.syncExists&&p.sync("play")},d.stop=function(){d.pause(),d.stopped=!0},d.canAdvance=function(a,b){var c=o?d.pagingCount-1:d.last;return b?!0:o&&d.currentItem===d.count-1&&0===a&&"prev"===d.direction?!0:o&&0===d.currentItem&&a===d.pagingCount-1&&"next"!==d.direction?!1:a!==d.currentSlide||o?d.vars.animationLoop?!0:d.atEnd&&0===d.currentSlide&&a===c&&"next"!==d.direction?!1:d.atEnd&&d.currentSlide===c&&0===a&&"next"===d.direction?!1:!0:!1},d.getTarget=function(a){return d.direction=a,"next"===a?d.currentSlide===d.last?0:d.currentSlide+1:0===d.currentSlide?d.last:d.currentSlide-1},d.setProps=function(a,b,c){var e=function(){var c=a?a:(d.itemW+d.vars.itemMargin)*d.move*d.animatingTo,e=function(){if(m)return"setTouch"===b?a:l&&d.animatingTo===d.last?0:l?d.limit-(d.itemW+d.vars.itemMargin)*d.move*d.animatingTo:d.animatingTo===d.last?d.limit:c;switch(b){case"setTotal":return l?(d.count-1-d.currentSlide+d.cloneOffset)*a:(d.currentSlide+d.cloneOffset)*a;case"setTouch":return l?a:a;case"jumpEnd":return l?a:d.count*a;case"jumpStart":return l?d.count*a:a;default:return a}}();return-1*e+"px"}();d.transitions&&(e=k?"translate3d(0,"+e+",0)":"translate3d("+e+",0,0)",c=void 0!==c?c/1e3+"s":"0s",d.container.css("-"+d.pfx+"-transition-duration",c),d.container.css("transition-duration",c)),d.args[d.prop]=e,(d.transitions||void 0===c)&&d.container.css(d.args),d.container.css("transform",e)},d.setup=function(b){if(n)d.slides.css({width:"100%","float":"left",marginRight:"-100%",position:"relative"}),"init"===b&&(h?d.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+d.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(d.currentSlide).css({opacity:1,zIndex:2}):d.slides.css({opacity:0,display:"block",zIndex:1}).eq(d.currentSlide).css({zIndex:2}).animate({opacity:1},d.vars.animationSpeed,d.vars.easing)),d.vars.smoothHeight&&p.smoothHeight();else{var c,e;"init"===b&&(d.viewport=a('
').css({overflow:"hidden",position:"relative"}).appendTo(d).append(d.container),d.cloneCount=0,d.cloneOffset=0,l&&(e=a.makeArray(d.slides).reverse(),d.slides=a(e),d.container.empty().append(d.slides))),d.vars.animationLoop&&!m&&(d.cloneCount=2,d.cloneOffset=1,"init"!==b&&d.container.find(".clone").remove(),p.uniqueID(d.slides.first().clone().addClass("clone").attr("aria-hidden","true")).appendTo(d.container),p.uniqueID(d.slides.last().clone().addClass("clone").attr("aria-hidden","true")).prependTo(d.container)),d.newSlides=a(d.vars.selector,d),c=l?d.count-1-d.currentSlide+d.cloneOffset:d.currentSlide+d.cloneOffset,k&&!m?(d.container.height(200*(d.count+d.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){d.newSlides.css({display:"block"}),d.doMath(),d.viewport.height(d.h),d.setProps(c*d.h,"init")},"init"===b?100:0)):(d.container.width(200*(d.count+d.cloneCount)+"%"),d.setProps(c*d.computedW,"init"),setTimeout(function(){d.doMath(),d.newSlides.css({width:d.computedW,"float":"left",display:"block"}),d.vars.smoothHeight&&p.smoothHeight()},"init"===b?100:0))}m||d.slides.removeClass(f+"active-slide").eq(d.currentSlide).addClass(f+"active-slide"),d.vars.init(d)},d.doMath=function(){var a=d.slides.first(),b=d.vars.itemMargin,c=d.vars.minItems,e=d.vars.maxItems;d.w=void 0===d.viewport?d.width():d.viewport.width(),d.h=a.height(),d.boxPadding=a.outerWidth()-a.width(),m?(d.itemT=d.vars.itemWidth+b,d.minW=c?c*d.itemT:d.w,d.maxW=e?e*d.itemT-b:d.w,d.itemW=d.minW>d.w?(d.w-b*(c-1))/c:d.maxWd.w?d.w:d.vars.itemWidth,d.visible=Math.floor(d.w/d.itemW),d.move=d.vars.move>0&&d.vars.moved.w?d.itemW*(d.count-1)+b*(d.count-1):(d.itemW+b)*d.count-d.w-b):(d.itemW=d.w,d.pagingCount=d.count,d.last=d.count-1),d.computedW=d.itemW-d.boxPadding},d.update=function(a,b){d.doMath(),m||(ad.controlNav.length?p.controlNav.update("add"):("remove"===b&&!m||d.pagingCountd.last&&(d.currentSlide-=1,d.animatingTo-=1),p.controlNav.update("remove",d.last))),d.vars.directionNav&&p.directionNav.update()},d.addSlide=function(b,c){var e=a(b);d.count+=1,d.last=d.count-1,k&&l?void 0!==c?d.slides.eq(d.count-c).after(e):d.container.prepend(e):void 0!==c?d.slides.eq(c).before(e):d.container.append(e),d.update(c,"add"),d.slides=a(d.vars.selector+":not(.clone)",d),d.setup(),d.vars.added(d)},d.removeSlide=function(b){var c=isNaN(b)?d.slides.index(a(b)):b;d.count-=1,d.last=d.count-1,isNaN(b)?a(b,d.slides).remove():k&&l?d.slides.eq(d.last).remove():d.slides.eq(b).remove(),d.doMath(),d.update(c,"remove"),d.slides=a(d.vars.selector+":not(.clone)",d),d.setup(),d.vars.removed(d)},d.destroy=function(){var b="."+d.vars.namespace;d.vars.controlNav&&d.controlNav.closest(b+"control-nav").remove(),d.vars.directionNav&&d.directionNav.closest(b+"direction-nav").remove(),d.vars.pausePlay&&d.pausePlay.closest(b+"pauseplay").remove(),d.find(".clone").remove(),d.unbind(d.vars.eventNamespace),"fade"!=d.vars.animation&&d.container.unwrap(),d.container.removeAttr("style"),d.container.unbind(d.vars.eventNamespace),d.slides.removeAttr("style"),d.slides.filter(b+"active-slide").removeClass(d.vars.namespace+"active-slide"),d.slides.unbind(d.vars.eventNamespace),a(document).unbind(d.vars.eventNamespace+"-"+d.id),a(window).unbind(d.vars.eventNamespace+"-"+d.id),d.stop(),d.removeData("flexslider")},p.init()},a(window).blur(function(a){focused=!1}).focus(function(a){focused=!0}),a.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},a.fn.flexslider=function(b){if(void 0===b&&(b={}),"object"==typeof b)return this.each(function(){var c=a(this),d=b.selector?b.selector:".slides > li",e=c.find(d);1===e.length&&b.allowOneSlide===!0||0===e.length?(e.fadeIn(400),b.start&&b.start(c)):void 0===c.data("flexslider")&&new a.flexslider(this,b)});var c=a(this).data("flexslider");switch(b){case"play":c.play();break;case"pause":c.pause();break;case"stop":c.stop();break;case"next":c.flexAnimate(c.getTarget("next"),!0);break;case"prev":case"previous":c.flexAnimate(c.getTarget("prev"),!0);break;case"destroy":c.destroy();break;default:"number"==typeof b&&c.flexAnimate(b,!0)}}}(jQuery),function(a,b,c,d){"use strict";function e(b,c){this.element=b,this.settings=a.extend({},g,c),this._defaults=g,this._name=f,this.geocoder=new google.maps.Geocoder,this.next_address=0,this.infowindow=new google.maps.InfoWindow,this.markers=[],this.query_sent=!1,this.last_cache_index="none",this.bounds=new google.maps.LatLngBounds,this.init()}var f="fusion_maps",g={addresses:{},address_pin:!0,animations:!0,delay:10,infobox_background_color:!1,infobox_styling:"default",infobox_text_color:!1,map_style:"default",map_type:"roadmap",marker_icon:!1,overlay_color:!1,overlay_color_hsl:{},pan_control:!0,show_address:!0,scale_control:!0,scrollwheel:!0,zoom:9,zoom_control:!0};a.extend(e.prototype,{init:function(){var b,d,e={zoom:this.settings.zoom,mapTypeId:this.settings.map_type,scrollwheel:this.settings.scrollwheel,scaleControl:this.settings.scale_control,panControl:this.settings.pan_control,zoomControl:this.settings.zoom_control},f=a(c).width()>640?!0:!1,g=this;this.settings.scrollwheel||(e.draggable=f),this.settings.address_pin||(this.settings.addresses=[this.settings.addresses[0]]),jQuery.each(this.settings.addresses,function(a){0==this.cache&&(g.last_cache_index=a)}),this.settings.addresses[0].coordinates&&(b=new google.maps.LatLng(this.settings.addresses[0].latitude,this.settings.addresses[0].longitude),e.center=b),this.map=new google.maps.Map(this.element,e),this.settings.overlay_color&&"custom"==this.settings.map_style&&(d=[{stylers:[{hue:this.settings.overlay_color},{lightness:2*this.settings.overlay_color_hsl.lum-100},{saturation:2*this.settings.overlay_color_hsl.sat-100}]},{featureType:"road",elementType:"geometry",stylers:[{visibility:"simplified"}]},{featureType:"road",elementType:"labels"}],this.map.setOptions({styles:d}));var h=google.maps.event.addListener(this.map,"bounds_changed",function(){var a=new google.maps.LatLng(g.settings.addresses[0].latitude,g.settings.addresses[0].longitude);g.map.setZoom(g.settings.zoom),g.map.setCenter(a),google.maps.event.removeListener(h)});this.next_geocode_request()},geocode_address:function(a,b){var c,d,e,f,g,h=this,i=!0;"object"==typeof a&&0==a.cache?(i=!1,a.coordinates===!0?(c=new google.maps.LatLng(a.latitude,a.longitude),d={latLng:c}):d={address:a.address},this.geocoder.geocode(d,function(d,e){var f,g,j;if(e==google.maps.GeocoderStatus.OK?(a.coordinates===!0?(j=c,f=jQuery.trim(a.latitude),g=jQuery.trim(a.longitude)):(j=d[0].geometry.location,f=j.lat(),g=j.lng()),h.settings.addresses[b].latitude=f,h.settings.addresses[b].longitude=g,a.coordinates===!0&&""===a.infobox_content&&(a.geocoded_address=d[0].formatted_address),1!=h.next_address||a.coordinates||h.map.setCenter(j),h.settings.address_pin&&h.create_marker(a,f,g),0==h.next_address&&h.map.setCenter(j)):e==google.maps.GeocoderStatus.OVER_QUERY_LIMIT&&(h.next_address--,h.settings.delay++),0==i&&0==h.query_sent&&h.last_cache_index==b){var k={action:"fusion_cache_map",addresses:h.settings.addresses,security:js_local_vars.admin_ajax_nonce};jQuery.post(js_local_vars.admin_ajax,k),h.query_sent=!0}h.next_geocode_request()})):"object"==typeof a&&1==a.cache&&(e=jQuery.trim(a.latitude),f=jQuery.trim(a.longitude),g=new google.maps.LatLng(e,f),a.coordinates===!0&&""===a.infobox_content&&(a.geocoded_address=a.geocoded_address),h.settings.address_pin&&h.create_marker(a,e,f),0==h.next_address&&h.map.setCenter(g),h.next_geocode_request())},create_marker:function(a,b,c,d){var e,f,g={position:new google.maps.LatLng(b,c),map:this.map};this.bounds.extend(g.position),a.infobox_content?e=a.infobox_content:(e=a.address,a.coordinates===!0&&a.geocoded_address&&(e=a.geocoded_address)),this.settings.animations&&(g.animation=google.maps.Animation.DROP),"custom"==this.settings.map_style&&"theme"==this.settings.marker_icon?g.icon=new google.maps.MarkerImage(a.marker,null,null,null,new google.maps.Size(37,55)):"custom"==this.settings.map_style&&a.marker&&(g.icon=a.marker),f=new google.maps.Marker(g),this.markers.push(f),this.create_infowindow(e,f),this.next_address>=this.settings.addresses.length&&this.map.fitBounds(this.bounds)},create_infowindow:function(a,b){var d,e,f,g=this;"custom"==this.settings.infobox_styling&&"custom"==this.settings.map_style?(e=c.createElement("div"),f={content:e,disableAutoPan:!0,maxWidth:150,pixelOffset:new google.maps.Size(-125,10),zIndex:null,boxStyle:{background:"none",opacity:1,width:"250px"},closeBoxMargin:"2px 2px 2px 2px",closeBoxURL:"//www.google.com/intl/en_us/mapfiles/close.gif",infoBoxClearance:new google.maps.Size(1,1)},e.className="fusion-info-box",e.style.cssText="background-color:"+this.settings.infobox_background_color+";color:"+this.settings.infobox_text_color+";",e.innerHTML=a,d=new InfoBox(f),d.open(this.map,b),this.settings.show_address||d.close(this.map,b),google.maps.event.addListener(b,"click",function(){var a=d.getMap();null===a||"undefined"==typeof a?d.open(g.map,this):d.close(g.map,this)})):(d=new google.maps.InfoWindow({disableAutoPan:!0,content:a}),this.settings.show_address&&(d.show=!0,d.open(this.map,b)),google.maps.event.addListener(b,"click",function(){var a=d.getMap();null===a||"undefined"==typeof a?d.open(g.map,this):d.close(g.map,this)}))},next_geocode_request:function(){var a=this;a.next_addressCongratulations, you've reached the end of the internet.",img:"data:image/gif;base64,R0lGODlh3AATAPQeAPDy+MnQ6LW/4N3h8MzT6rjC4sTM5r/I5NHX7N7j8c7U6tvg8OLl8uXo9Ojr9b3G5MfP6Ovu9tPZ7PT1+vX2+tbb7vf4+8/W69jd7rC73vn5/O/x+K243ai02////wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQECgD/ACwAAAAA3AATAAAF/6AnjmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEj0BAScpHLJbDqf0Kh0Sq1ar9isdioItAKGw+MAKYMFhbF63CW438f0mg1R2O8EuXj/aOPtaHx7fn96goR4hmuId4qDdX95c4+RBIGCB4yAjpmQhZN0YGYGXitdZBIVGAsLoq4BBKQDswm1CQRkcG6ytrYKubq8vbfAcMK9v7q7EMO1ycrHvsW6zcTKsczNz8HZw9vG3cjTsMIYqQkCLBwHCgsMDQ4RDAYIqfYSFxDxEfz88/X38Onr16+Bp4ADCco7eC8hQYMAEe57yNCew4IVBU7EGNDiRn8Z831cGLHhSIgdFf9chIeBg7oA7gjaWUWTVQAGE3LqBDCTlc9WOHfm7PkTqNCh54rePDqB6M+lR536hCpUqs2gVZM+xbrTqtGoWqdy1emValeXKzggYBBB5y1acFNZmEvXAoN2cGfJrTv3bl69Ffj2xZt3L1+/fw3XRVw4sGDGcR0fJhxZsF3KtBTThZxZ8mLMgC3fRatCbYMNFCzwLEqLgE4NsDWs/tvqdezZf13Hvk2A9Szdu2X3pg18N+68xXn7rh1c+PLksI/Dhe6cuO3ow3NfV92bdArTqC2Ebd3A8vjf5QWfH6Bg7Nz17c2fj69+fnq+8N2Lty+fuP78/eV2X13neIcCeBRwxorbZrA1ANoCDGrgoG8RTshahQ9iSKEEzUmYIYfNWViUhheCGJyIP5E4oom7WWjgCeBFAJNv1DVV01MAdJhhjdkplWNzO/5oXI846njjVEIqR2OS2B1pE5PVscajkxhMycqLJghQSwT40PgfAl4GqNSXYdZXJn5gSkmmmmJu1aZYb14V51do+pTOCmA40AqVCIhG5IJ9PvYnhIFOxmdqhpaI6GeHCtpooisuutmg+Eg62KOMKuqoTaXgicQWoIYq6qiklmoqFV0UoeqqrLbq6quwxirrrLTWauutJ4QAACH5BAUKABwALAcABADOAAsAAAX/IPd0D2dyRCoUp/k8gpHOKtseR9yiSmGbuBykler9XLAhkbDavXTL5k2oqFqNOxzUZPU5YYZd1XsD72rZpBjbeh52mSNnMSC8lwblKZGwi+0QfIJ8CncnCoCDgoVnBHmKfByGJimPkIwtiAeBkH6ZHJaKmCeVnKKTHIihg5KNq4uoqmEtcRUtEREMBggtEr4QDrjCuRC8h7/BwxENeicSF8DKy82pyNLMOxzWygzFmdvD2L3P0dze4+Xh1Arkyepi7dfFvvTtLQkZBC0T/FX3CRgCMOBHsJ+EHYQY7OinAGECgQsB+Lu3AOK+CewcWjwxQeJBihtNGHSoQOE+iQ3//4XkwBBhRZMcUS6YSXOAwIL8PGqEaSJCiYt9SNoCmnJPAgUVLChdaoFBURN8MAzl2PQphwQLfDFd6lTowglHve6rKpbjhK7/pG5VinZP1qkiz1rl4+tr2LRwWU64cFEihwEtZgbgR1UiHaMVvxpOSwBA37kzGz9e8G+B5MIEKLutOGEsAH2ATQwYfTmuX8aETWdGPZmiZcccNSzeTCA1Sw0bdiitC7LBWgu8jQr8HRzqgpK6gX88QbrB14z/kF+ELpwB8eVQj/JkqdylAudji/+ts3039vEEfK8Vz2dlvxZKG0CmbkKDBvllRd6fCzDvBLKBDSCeffhRJEFebFk1k/Mv9jVIoIJZSeBggwUaNeB+Qk34IE0cXlihcfRxkOAJFFhwGmKlmWDiakZhUJtnLBpnWWcnKaAZcxI0piFGGLBm1mc90kajSCveeBVWKeYEoU2wqeaQi0PetoE+rr14EpVC7oAbAUHqhYExbn2XHHsVqbcVew9tx8+XJKk5AZsqqdlddGpqAKdbAYBn1pcczmSTdWvdmZ17c1b3FZ99vnTdCRFM8OEcAhLwm1NdXnWcBBSMRWmfkWZqVlsmLIiAp/o1gGV2vpS4lalGYsUOqXrddcKCmK61aZ8SjEpUpVFVoCpTj4r661Km7kBHjrDyc1RAIQAAIfkEBQoAGwAsBwAEAM4ACwAABf/gtmUCd4goQQgFKj6PYKi0yrrbc8i4ohQt12EHcal+MNSQiCP8gigdz7iCioaCIvUmZLp8QBzW0EN2vSlCuDtFKaq4RyHzQLEKZNdiQDhRDVooCwkbfm59EAmKi4SGIm+AjIsKjhsqB4mSjT2IOIOUnICeCaB/mZKFNTSRmqVpmJqklSqskq6PfYYCDwYHDC4REQwGCBLGxxIQDsHMwhAIX8bKzcENgSLGF9PU1j3Sy9zX2NrgzQziChLk1BHWxcjf7N046tvN82715czn9Pryz6Ilc4ACj4EBOCZM8KEnAYYADBRKnACAYUMFv1wotIhCEcaJCisqwJFgAUSQGyX/kCSVUUTIdKMwJlyo0oXHlhskwrTJciZHEXsgaqS4s6PJiCAr1uzYU8kBBSgnWFqpoMJMUjGtDmUwkmfVmVypakWhEKvXsS4nhLW5wNjVroJIoc05wSzTr0PtiigpYe4EC2vj4iWrFu5euWIMRBhacaVJhYQBEFjA9jHjyQ0xEABwGceGAZYjY0YBOrRLCxUp29QM+bRkx5s7ZyYgVbTqwwti2ybJ+vLtDYpycyZbYOlptxdx0kV+V7lC5iJAyyRrwYKxAdiz82ng0/jnAdMJFz0cPi104Ec1Vj9/M6F173vKL/feXv156dw11tlqeMMnv4V5Ap53GmjQQH97nFfg+IFiucfgRX5Z8KAgbUlQ4IULIlghhhdOSB6AgX0IVn8eReghen3NRIBsRgnH4l4LuEidZBjwRpt6NM5WGwoW0KSjCwX6yJSMab2GwwAPDXfaBCtWpluRTQqC5JM5oUZAjUNS+VeOLWpJEQ7VYQANW0INJSZVDFSnZphjSikfmzE5N4EEbQI1QJmnWXCmHulRp2edwDXF43txukenJwvI9xyg9Q26Z3MzGUcBYFEChZh6DVTq34AU8Iflh51Sd+CnKFYQ6mmZkhqfBKfSxZWqA9DZanWjxmhrWwi0qtCrt/43K6WqVjjpmhIqgEGvculaGKklKstAACEAACH5BAUKABwALAcABADOAAsAAAX/ICdyQmaMYyAUqPgIBiHPxNpy79kqRXH8wAPsRmDdXpAWgWdEIYm2llCHqjVHU+jjJkwqBTecwItShMXkEfNWSh8e1NGAcLgpDGlRgk7EJ/6Ae3VKfoF/fDuFhohVeDeCfXkcCQqDVQcQhn+VNDOYmpSWaoqBlUSfmowjEA+iEAEGDRGztAwGCDcXEA60tXEiCrq8vREMEBLIyRLCxMWSHMzExnbRvQ2Sy7vN0zvVtNfU2tLY3rPgLdnDvca4VQS/Cpk3ABwSLQkYAQwT/P309vcI7OvXr94jBQMJ/nskkGA/BQBRLNDncAIAiDcG6LsxAWOLiQzmeURBKWSLCQbv/1F0eDGinJUKR47YY1IEgQASKk7Yc7ACRwZm7mHweRJoz59BJUogisKCUaFMR0x4SlJBVBFTk8pZivTR0K73rN5wqlXEAq5Fy3IYgHbEzQ0nLy4QSoCjXLoom96VOJEeCosK5n4kkFfqXjl94wa+l1gvAcGICbewAOAxY8l/Ky/QhAGz4cUkGxu2HNozhwMGBnCUqUdBg9UuW9eUynqSwLHIBujePef1ZGQZXcM+OFuEBeBhi3OYgLyqcuaxbT9vLkf4SeqyWxSQpKGB2gQpm1KdWbu72rPRzR9Ne2Nu9Kzr/1Jqj0yD/fvqP4aXOt5sW/5qsXXVcv1Nsp8IBUAmgswGF3llGgeU1YVXXKTN1FlhWFXW3gIE+DVChApysACHHo7Q4A35lLichh+ROBmLKAzgYmYEYDAhCgxKGOOMn4WR4kkDaoBBOxJtdNKQxFmg5JIWIBnQc07GaORfUY4AEkdV6jHlCEISSZ5yTXpp1pbGZbkWmcuZmQCaE6iJ0FhjMaDjTMsgZaNEHFRAQVp3bqXnZED1qYcECOz5V6BhSWCoVJQIKuKQi2KFKEkEFAqoAo7uYSmO3jk61wUUMKmknJ4SGimBmAa0qVQBhAAAIfkEBQoAGwAsBwAEAM4ACwAABf/gJm5FmRlEqhJC+bywgK5pO4rHI0D3pii22+Mg6/0Ej96weCMAk7cDkXf7lZTTnrMl7eaYoy10JN0ZFdco0XAuvKI6qkgVFJXYNwjkIBcNBgR8TQoGfRsJCRuCYYQQiI+ICosiCoGOkIiKfSl8mJkHZ4U9kZMbKaI3pKGXmJKrngmug4WwkhA0lrCBWgYFCCMQFwoQDRHGxwwGCBLMzRLEx8iGzMMO0cYNeCMKzBDW19lnF9DXDIY/48Xg093f0Q3s1dcR8OLe8+Y91OTv5wrj7o7B+7VNQqABIoRVCMBggsOHE36kSoCBIcSH3EbFangxogJYFi8CkJhqQciLJEf/LDDJEeJIBT0GsOwYUYJGBS0fjpQAMidGmyVP6sx4Y6VQhzs9VUwkwqaCCh0tmKoFtSMDmBOf9phg4SrVrROuasRQAaxXpVUhdsU6IsECZlvX3kwLUWzRt0BHOLTbNlbZG3vZinArge5Dvn7wbqtQkSYAAgtKmnSsYKVKo2AfW048uaPmG386i4Q8EQMBAIAnfB7xBxBqvapJ9zX9WgRS2YMpnvYMGdPK3aMjt/3dUcNI4blpj7iwkMFWDXDvSmgAlijrt9RTR78+PS6z1uAJZIe93Q8g5zcsWCi/4Y+C8bah5zUv3vv89uft30QP23punGCx5954oBBwnwYaNCDY/wYrsYeggnM9B2Fpf8GG2CEUVWhbWAtGouEGDy7Y4IEJVrbSiXghqGKIo7z1IVcXIkKWWR361QOLWWnIhwERpLaaCCee5iMBGJQmJGyPFTnbkfHVZGRtIGrg5HALEJAZbu39BuUEUmq1JJQIPtZilY5hGeSWsSk52G9XqsmgljdIcABytq13HyIM6RcUA+r1qZ4EBF3WHWB29tBgAzRhEGhig8KmqKFv8SeCeo+mgsF7YFXa1qWSbkDpom/mqR1PmHCqJ3fwNRVXjC7S6CZhFVCQ2lWvZiirhQq42SACt25IK2hv8TprriUV1usGgeka7LFcNmCldMLi6qZMgFLgpw16Cipb7bC1knXsBiEAACH5BAUKABsALAcABADOAAsAAAX/4FZsJPkUmUGsLCEUTywXglFuSg7fW1xAvNWLF6sFFcPb42C8EZCj24EJdCp2yoegWsolS0Uu6fmamg8n8YYcLU2bXSiRaXMGvqV6/KAeJAh8VgZqCX+BexCFioWAYgqNi4qAR4ORhRuHY408jAeUhAmYYiuVlpiflqGZa5CWkzc5fKmbbhIpsAoQDRG8vQwQCBLCwxK6vb5qwhfGxxENahvCEA7NzskSy7vNzzzK09W/PNHF1NvX2dXcN8K55cfh69Luveol3vO8zwi4Yhj+AQwmCBw4IYclDAAJDlQggVOChAoLKkgFkSCAHDwWLKhIEOONARsDKryogFPIiAUb/95gJNIiw4wnI778GFPhzBKFOAq8qLJEhQpiNArjMcHCmlTCUDIouTKBhApELSxFWiGiVKY4E2CAekPgUphDu0742nRrVLJZnyrFSqKQ2ohoSYAMW6IoDpNJ4bLdILTnAj8KUF7UeENjAKuDyxIgOuGiOI0EBBMgLNew5AUrDTMGsFixwBIaNCQuAXJB57qNJ2OWm2Aj4skwCQCIyNkhhtMkdsIuodE0AN4LJDRgfLPtn5YDLdBlraAByuUbBgxQwICxMOnYpVOPej074OFdlfc0TqC62OIbcppHjV4o+LrieWhfT8JC/I/T6W8oCl29vQ0XjLdBaA3s1RcPBO7lFvpX8BVoG4O5jTXRQRDuJ6FDTzEWF1/BCZhgbyAKE9qICYLloQYOFtahVRsWYlZ4KQJHlwHS/IYaZ6sZd9tmu5HQm2xi1UaTbzxYwJk/wBF5g5EEYOBZeEfGZmNdFyFZmZIR4jikbLThlh5kUUVJGmRT7sekkziRWUIACABk3T4qCsedgO4xhgGcY7q5pHJ4klBBTQRJ0CeHcoYHHUh6wgfdn9uJdSdMiebGJ0zUPTcoS286FCkrZxnYoYYKWLkBowhQoBeaOlZAgVhLidrXqg2GiqpQpZ4apwSwRtjqrB3muoF9BboaXKmshlqWqsWiGt2wphJkQbAU5hoCACH5BAUKABsALAcABADOAAsAAAX/oGFw2WZuT5oZROsSQnGaKjRvilI893MItlNOJ5v5gDcFrHhKIWcEYu/xFEqNv6B1N62aclysF7fsZYe5aOx2yL5aAUGSaT1oTYMBwQ5VGCAJgYIJCnx1gIOBhXdwiIl7d0p2iYGQUAQBjoOFSQR/lIQHnZ+Ue6OagqYzSqSJi5eTpTxGcjcSChANEbu8DBAIEsHBChe5vL13G7fFuscRDcnKuM3H0La3EA7Oz8kKEsXazr7Cw9/Gztar5uHHvte47MjktznZ2w0G1+D3BgirAqJmJMAQgMGEgwgn5Ei0gKDBhBMALGRYEOJBb5QcWlQo4cbAihZz3GgIMqFEBSM1/4ZEOWPAgpIIJXYU+PIhRG8ja1qU6VHlzZknJNQ6UanCjQkWCIGSUGEjAwVLjc44+DTqUQtPPS5gejUrTa5TJ3g9sWCr1BNUWZI161StiQUDmLYdGfesibQ3XMq1OPYthrwuA2yU2LBs2cBHIypYQPPlYAKFD5cVvNPtW8eVGbdcQADATsiNO4cFAPkvHpedPzc8kUcPgNGgZ5RNDZG05reoE9s2vSEP79MEGiQGy1qP8LA4ZcdtsJE48ONoLTBtTV0B9LsTnPceoIDBDQvS7W7vfjVY3q3eZ4A339J4eaAmKqU/sV58HvJh2RcnIBsDUw0ABqhBA5aV5V9XUFGiHfVeAiWwoFgJJrIXRH1tEMiDFV4oHoAEGlaWhgIGSGBO2nFomYY3mKjVglidaNYJGJDkWW2xxTfbjCbVaOGNqoX2GloR8ZeTaECS9pthRGJH2g0b3Agbk6hNANtteHD2GJUucfajCQBy5OOTQ25ZgUPvaVVQmbKh9510/qQpwXx3SQdfk8tZJOd5b6JJFplT3ZnmmX3qd5l1eg5q00HrtUkUn0AKaiGjClSAgKLYZcgWXwocGRcCFGCKwSB6ceqphwmYRUFYT/1WKlOdUpipmxW0mlCqHjYkAaeoZlqrqZ4qd+upQKaapn/AmgAegZ8KUtYtFAQQAgAh+QQFCgAbACwHAAQAzgALAAAF/+C2PUcmiCiZGUTrEkKBis8jQEquKwU5HyXIbEPgyX7BYa5wTNmEMwWsSXsqFbEh8DYs9mrgGjdK6GkPY5GOeU6ryz7UFopSQEzygOGhJBjoIgMDBAcBM0V/CYqLCQqFOwobiYyKjn2TlI6GKC2YjJZknouaZAcQlJUHl6eooJwKooobqoewrJSEmyKdt59NhRKFMxLEEA4RyMkMEAjDEhfGycqAG8TQx9IRDRDE3d3R2ctD1RLg0ttKEnbY5wZD3+zJ6M7X2RHi9Oby7u/r9g38UFjTh2xZJBEBMDAboogAgwkQI07IMUORwocSJwCgWDFBAIwZOaJIsOBjRogKJP8wTODw5ESVHVtm3AhzpEeQElOuNDlTZ0ycEUWKWFASqEahGwYUPbnxoAgEdlYSqDBkgoUNClAlIHbSAoOsqCRQnQHxq1axVb06FWFxLIqyaze0Tft1JVqyE+pWXMD1pF6bYl3+HTqAWNW8cRUFzmih0ZAAB2oGKukSAAGGRHWJgLiR6AylBLpuHKKUMlMCngMpDSAa9QIUggZVVvDaJobLeC3XZpvgNgCmtPcuwP3WgmXSq4do0DC6o2/guzcseECtUoO0hmcsGKDgOt7ssBd07wqesAIGZC1YIBa7PQHvb1+SFo+++HrJSQfB33xfav3i5eX3Hnb4CTJgegEq8tH/YQEOcIJzbm2G2EoYRLgBXFpVmFYDcREV4HIcnmUhiGBRouEMJGJGzHIspqgdXxK0yCKHRNXoIX4uorCdTyjkyNtdPWrA4Up82EbAbzMRxxZRR54WXVLDIRmRcag5d2R6ugl3ZXzNhTecchpMhIGVAKAYpgJjjsSklBEd99maZoo535ZvdamjBEpusJyctg3h4X8XqodBMx0tiNeg/oGJaKGABpogS40KSqiaEgBqlQWLUtqoVQnytekEjzo0hHqhRorppOZt2p923M2AAV+oBtpAnnPNoB6HaU6mAAIU+IXmi3j2mtFXuUoHKwXpzVrsjcgGOauKEjQrwq157hitGq2NoWmjh7z6Wmxb0m5w66+2VRAuXN/yFUAIACH5BAUKABsALAcABADOAAsAAAX/4CZuRiaM45MZqBgIRbs9AqTcuFLE7VHLOh7KB5ERdjJaEaU4ClO/lgKWjKKcMiJQ8KgumcieVdQMD8cbBeuAkkC6LYLhOxoQ2PF5Ys9PKPBMen17f0CCg4VSh32JV4t8jSNqEIOEgJKPlkYBlJWRInKdiJdkmQlvKAsLBxdABA4RsbIMBggtEhcQsLKxDBC2TAS6vLENdJLDxMZAubu8vjIbzcQRtMzJz79S08oQEt/guNiyy7fcvMbh4OezdAvGrakLAQwyABsELQkY9BP+//ckyPDD4J9BfAMh1GsBoImMeQUN+lMgUJ9CiRMa5msxoB9Gh/o8GmxYMZXIgxtR/yQ46S/gQAURR0pDwYDfywoyLPip5AdnCwsMFPBU4BPFhKBDi444quCmDKZOfwZ9KEGpCKgcN1jdALSpPqIYsabS+nSqvqplvYqQYAeDPgwKwjaMtiDl0oaqUAyo+3TuWwUAMPpVCfee0cEjVBGQq2ABx7oTWmQk4FglZMGN9fGVDMCuiH2AOVOu/PmyxM630gwM0CCn6q8LjVJ8GXvpa5Uwn95OTC/nNxkda1/dLSK475IjCD6dHbK1ZOa4hXP9DXs5chJ00UpVm5xo2qRpoxptwF2E4/IbJpB/SDz9+q9b1aNfQH08+p4a8uvX8B53fLP+ycAfemjsRUBgp1H20K+BghHgVgt1GXZXZpZ5lt4ECjxYR4ScUWiShEtZqBiIInRGWnERNnjiBglw+JyGnxUmGowsyiiZg189lNtPGACjV2+S9UjbU0JWF6SPvEk3QZEqsZYTk3UAaRSUnznJI5LmESCdBVSyaOWUWLK4I5gDUYVeV1T9l+FZClCAUVA09uSmRHBCKAECFEhW51ht6rnmWBXkaR+NjuHpJ40D3DmnQXt2F+ihZxlqVKOfQRACACH5BAUKABwALAcABADOAAsAAAX/ICdyUCkUo/g8mUG8MCGkKgspeC6j6XEIEBpBUeCNfECaglBcOVfJFK7YQwZHQ6JRZBUqTrSuVEuD3nI45pYjFuWKvjjSkCoRaBUMWxkwBGgJCXspQ36Bh4EEB0oKhoiBgyNLjo8Ki4QElIiWfJqHnISNEI+Ql5J9o6SgkqKkgqYihamPkW6oNBgSfiMMDQkGCBLCwxIQDhHIyQwQCGMKxsnKVyPCF9DREQ3MxMPX0cu4wt7J2uHWx9jlKd3o39MiuefYEcvNkuLt5O8c1ePI2tyELXGQwoGDAQf+iEC2xByDCRAjTlAgIUWCBRgCPJQ4AQBFXAs0coT40WLIjRxL/47AcHLkxIomRXL0CHPERZkpa4q4iVKiyp0tR/7kwHMkTUBBJR5dOCEBAVcKKtCAyOHpowXCpk7goABqBZdcvWploACpBKkpIJI1q5OD2rIWE0R1uTZu1LFwbWL9OlKuWb4c6+o9i3dEgw0RCGDUG9KlRw56gDY2qmCByZBaASi+TACA0TucAaTteCcy0ZuOK3N2vJlx58+LRQyY3Xm0ZsgjZg+oPQLi7dUcNXi0LOJw1pgNtB7XG6CBy+U75SYfPTSQAgZTNUDnQHt67wnbZyvwLgKiMN3oCZB3C76tdewpLFgIP2C88rbi4Y+QT3+8S5USMICZXWj1pkEDeUU3lOYGB3alSoEiMIjgX4WlgNF2EibIwQIXauWXSRg2SAOHIU5IIIMoZkhhWiJaiFVbKo6AQEgQXrTAazO1JhkBrBG3Y2Y6EsUhaGn95hprSN0oWpFE7rhkeaQBchGOEWnwEmc0uKWZj0LeuNV3W4Y2lZHFlQCSRjTIl8uZ+kG5HU/3sRlnTG2ytyadytnD3HrmuRcSn+0h1dycexIK1KCjYaCnjCCVqOFFJTZ5GkUUjESWaUIKU2lgCmAKKQIUjHapXRKE+t2og1VgankNYnohqKJ2CmKplso6GKz7WYCgqxeuyoF8u9IQAgA7",
msg:null,msgText:"Loading the next set of posts... ",selector:null,speed:"fast",start:b},state:{isDuringAjax:!1,isInvalidPage:!1,isDestroyed:!1,isDone:!1,isPaused:!1,isBeyondMaxPage:!1,currPage:1},debug:!1,behavior:b,binder:a(window),nextSelector:"div.navigation a:first",navSelector:"div.navigation",contentSelector:null,extraScrollPx:150,itemSelector:"div.post",animate:!1,pathParse:b,dataType:"html",appendCallback:!0,bufferPx:40,errorCallback:function(){},infid:0,pixelsFromNavToBottom:b,path:b,prefill:!1,maxPage:b},a.infinitescroll.prototype={_binding:function(a){var c=this,d=c.options;return d.v="2.0b2.120520",d.behavior&&this["_binding_"+d.behavior]!==b?void this["_binding_"+d.behavior].call(this):"bind"!==a&&"unbind"!==a?(this._debug("Binding value "+a+" not valid"),!1):("unbind"===a?this.options.binder.unbind("smartscroll.infscr."+c.options.infid):this.options.binder[a]("smartscroll.infscr."+c.options.infid,function(){c.scroll()}),void this._debug("Binding",a))},_create:function(c,d){var e=a.extend(!0,{},a.infinitescroll.defaults,c);this.options=e;var f=a(window),g=this;if(!g._validate(c))return!1;var h=a(e.nextSelector).attr("href");if(!h)return this._debug("Navigation selector not found"),!1;e.path=e.path||this._determinepath(h),e.contentSelector=e.contentSelector||this.element,e.loading.selector=e.loading.selector||e.contentSelector,e.loading.msg=e.loading.msg||a(''+e.loading.msgText+"
"),(new Image).src=e.loading.img,e.pixelsFromNavToBottom===b&&(e.pixelsFromNavToBottom=a(document).height()-a(e.navSelector).offset().top,this._debug("pixelsFromNavToBottom: "+e.pixelsFromNavToBottom));var i=this;return e.loading.start=e.loading.start||function(){a(e.navSelector).hide(),e.loading.msg.insertAfter(e.loading.selector).show(e.loading.speed,a.proxy(function(){this.beginAjax(e)},i))},e.loading.finished=e.loading.finished||function(){e.state.isBeyondMaxPage||e.loading.msg.fadeOut(e.loading.speed)},e.callback=function(c,g,h){e.behavior&&c["_callback_"+e.behavior]!==b&&c["_callback_"+e.behavior].call(a(e.contentSelector)[0],g,h),d&&d.call(a(e.contentSelector)[0],g,e,h),e.prefill&&f.bind("resize.infinite-scroll",c._prefill)},c.debug&&(!Function.prototype.bind||"object"!=typeof console&&"function"!=typeof console||"object"!=typeof console.log||["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach(function(a){console[a]=this.call(console[a],console)},Function.prototype.bind)),this._setup(),e.prefill&&this._prefill(),!0},_prefill:function(){function b(){return a(c.options.contentSelector).height()<=d.height()}var c=this,d=a(window);this._prefill=function(){b()&&c.scroll(),d.bind("resize.infinite-scroll",function(){b()&&(d.unbind("resize.infinite-scroll"),c.scroll())})},this._prefill()},_debug:function(){!0===this.options.debug&&("undefined"!=typeof console&&"function"==typeof console.log?1===Array.prototype.slice.call(arguments).length&&"string"==typeof Array.prototype.slice.call(arguments)[0]:Function.prototype.bind||"undefined"==typeof console||"object"!=typeof console.log||Function.prototype.call.call(console.log,console,Array.prototype.slice.call(arguments)))},_determinepath:function(a){var c=this.options;if(c.behavior&&this["_determinepath_"+c.behavior]!==b)return this["_determinepath_"+c.behavior].call(this,a);if(c.pathParse)return this._debug("pathParse manual"),c.pathParse(a,this.options.state.currPage+1);if(a.match(/^(.*2?)\b2\b(.*?$)/))a=a.match(/^(.*2?)\b2\b(.*?$)/).slice(1);else if(a.match(/^(.*?)\b2\b(.*?$)/))a=a.match(/^(.*?)\b2\b(.*?$)/).slice(1);else if(a.match(/^(.*?)2(.*?$)/)){if(a.match(/^(.*?page=)2(\/.*|$)/))return a=a.match(/^(.*?page=)2(\/.*|$)/).slice(1);a=a.match(/^(.*?)2(.*?$)/).slice(1)}else{if(a.match(/^(.*?page=)1(\/.*|$)/))return a=a.match(/^(.*?page=)1(\/.*|$)/).slice(1);this._debug("Sorry, we couldn't parse your Next (Previous Posts) URL. Verify your the css selector points to the correct A tag. If you still get this error: yell, scream, and kindly ask for help at infinite-scroll.com."),c.state.isInvalidPage=!0}return this._debug("determinePath",a),a},_error:function(a){var c=this.options;return c.behavior&&this["_error_"+c.behavior]!==b?void this["_error_"+c.behavior].call(this,a):("destroy"!==a&&"end"!==a&&(a="unknown"),this._debug("Error",a),("end"===a||c.state.isBeyondMaxPage)&&this._showdonemsg(),c.state.isDone=!0,c.state.currPage=1,c.state.isPaused=!1,c.state.isBeyondMaxPage=!1,void this._binding("unbind"))},_loadcallback:function(c,d,e){var f,g=this.options,h=this.options.callback,i=g.state.isDone?"done":g.appendCallback?"append":"no-append";if(g.behavior&&this["_loadcallback_"+g.behavior]!==b)return void this["_loadcallback_"+g.behavior].call(this,c,d,e);switch(i){case"done":return this._showdonemsg(),!1;case"no-append":if("html"===g.dataType&&(d=""+d+"
",d=a(d).find(g.itemSelector)),0===d.length)return this._error("end");break;case"append":var j=c.children();if(0===j.length)return this._error("end");for(f=document.createDocumentFragment();c[0].firstChild;)f.appendChild(c[0].firstChild);this._debug("contentSelector",a(g.contentSelector)[0]),a(g.contentSelector)[0].appendChild(f),d=j.get()}if(g.loading.finished.call(a(g.contentSelector)[0],g),g.animate){var k=a(window).scrollTop()+a(g.loading.msg).height()+g.extraScrollPx+"px";a("html,body").animate({scrollTop:k},800,function(){g.state.isDuringAjax=!1})}g.animate||(g.state.isDuringAjax=!1),h(this,d,e),g.prefill&&this._prefill()},_nearbottom:function(){var c=this.options,d=0+a(document).height()-c.binder.scrollTop()-a(window).height();return c.behavior&&this["_nearbottom_"+c.behavior]!==b?this["_nearbottom_"+c.behavior].call(this):(this._debug("math:",d,c.pixelsFromNavToBottom),d-c.bufferPx-1&&0===a(b[c]).length)return this._debug("Your "+c+" found no elements."),!1;return!0},bind:function(){this._binding("bind")},destroy:function(){return this.options.state.isDestroyed=!0,this.options.loading.finished(),this._error("destroy")},pause:function(){this._pausing("pause")},resume:function(){this._pausing("resume")},beginAjax:function(c){var d,e,f,g,h=this,i=c.path;if(c.state.currPage++,c.maxPage!==b&&c.state.currPage>c.maxPage)return c.state.isBeyondMaxPage=!0,void this.destroy();switch(d=a(a(c.contentSelector).is("table, tbody")?" ":"
"),e="function"==typeof i?i(c.state.currPage):i.join(c.state.currPage),h._debug("heading into ajax",e),f="html"===c.dataType||"json"===c.dataType?c.dataType:"html+callback",c.appendCallback&&"html"===c.dataType&&(f+="+callback"),f){case"html+callback":h._debug("Using HTML via .load() method"),d.load(e+" "+c.itemSelector,b,function(a){h._loadcallback(d,a,e)});break;case"html":h._debug("Using "+f.toUpperCase()+" via $.ajax() method"),a.ajax({url:e,dataType:c.dataType,complete:function(a,b){g="undefined"!=typeof a.isResolved?a.isResolved():"success"===b||"notmodified"===b,g?h._loadcallback(d,a.responseText,e):h._error("end")}});break;case"json":h._debug("Using "+f.toUpperCase()+" via $.ajax() method"),a.ajax({dataType:"json",type:"GET",url:e,success:function(a,f,i){if(g="undefined"!=typeof i.isResolved?i.isResolved():"success"===f||"notmodified"===f,c.appendCallback)if(c.template!==b){var j=c.template(a);d.append(j),g?h._loadcallback(d,j):h._error("end")}else h._debug("template must be defined."),h._error("end");else g?h._loadcallback(d,a,e):h._error("end")},error:function(){h._debug("JSON ajax request failed."),h._error("end")}})}},retrieve:function(c){c=c||null;var d=this,e=d.options;return e.behavior&&this["retrieve_"+e.behavior]!==b?void this["retrieve_"+e.behavior].call(this,c):e.state.isDestroyed?(this._debug("Instance is destroyed"),!1):(e.state.isDuringAjax=!0,void e.loading.start.call(a(e.contentSelector)[0],e))},scroll:function(){var a=this.options,c=a.state;return a.behavior&&this["scroll_"+a.behavior]!==b?void this["scroll_"+a.behavior].call(this):void(c.isDuringAjax||c.isInvalidPage||c.isDone||c.isDestroyed||c.isPaused||this._nearbottom()&&this.retrieve())},toggle:function(){this._pausing()},unbind:function(){this._binding("unbind")},update:function(b){a.isPlainObject(b)&&(this.options=a.extend(!0,this.options,b))}},a.fn.infinitescroll=function(b,c){var d=typeof b;switch(d){case"string":var e=Array.prototype.slice.call(arguments,1);this.each(function(){var c=a.data(this,"infinitescroll");return c&&a.isFunction(c[b])&&"_"!==b.charAt(0)?void c[b].apply(c,e):!1});break;case"object":this.each(function(){var d=a.data(this,"infinitescroll");d?d.update(b):(d=new a.infinitescroll(b,c,this),d.failed||a.data(this,"infinitescroll",d))})}return this};var c,d=a.event;d.special.smartscroll={setup:function(){a(this).bind("scroll",d.special.smartscroll.handler)},teardown:function(){a(this).unbind("scroll",d.special.smartscroll.handler)},handler:function(b,d){var e=this,f=arguments;b.type="smartscroll",c&&clearTimeout(c),c=setTimeout(function(){a(e).trigger("smartscroll",f)},"execAsap"===d?0:100)}},a.fn.smartscroll=function(a){return a?this.bind("smartscroll",a):this.trigger("smartscroll",["execAsap"])}}),function(a,b,c){function d(a){var b={},d=/^jQuery\d+$/;return c.each(a.attributes,function(a,c){c.specified&&!d.test(c.name)&&(b[c.name]=c.value)}),b}function e(a,b){var d=this,e=c(d);if(d.value==e.attr("placeholder")&&e.hasClass("placeholder"))if(e.data("placeholder-password")){if(e=e.hide().next().show().attr("id",e.removeAttr("id").data("placeholder-id")),a===!0)return e[0].value=b;e.focus()}else d.value="",e.removeClass("placeholder"),d==g()&&d.select()}function f(){var a,b=this,f=c(b),g=this.id;if(""==b.value){if("password"==b.type){if(!f.data("placeholder-textinput")){try{a=f.clone().attr({type:"text"})}catch(h){a=c(" ").attr(c.extend(d(this),{type:"text"}))}a.removeAttr("name").data({"placeholder-password":f,"placeholder-id":g}).bind("focus.placeholder",e),f.data({"placeholder-textinput":a,"placeholder-id":g}).before(a)}f=f.removeAttr("id").hide().prev().attr("id",g).show()}f.addClass("placeholder"),f[0].value=f.attr("placeholder")}else f.removeClass("placeholder")}function g(){try{return b.activeElement}catch(a){}}var h,i,j="placeholder"in b.createElement("input"),k="placeholder"in b.createElement("textarea"),l=c.fn,m=c.valHooks,n=c.propHooks;j&&k?(i=l.placeholder=function(){return this},i.input=i.textarea=!0):(i=l.placeholder=function(){var a=this;return a.filter((j?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":e,"blur.placeholder":f}).data("placeholder-enabled",!0).trigger("blur.placeholder"),a},i.input=j,i.textarea=k,h={get:function(a){var b=c(a),d=b.data("placeholder-password");return d?d[0].value:b.data("placeholder-enabled")&&b.hasClass("placeholder")?"":a.value},set:function(a,b){var d=c(a),h=d.data("placeholder-password");return h?h[0].value=b:d.data("placeholder-enabled")?(""==b?(a.value=b,a!=g()&&f.call(a)):d.hasClass("placeholder")?e.call(a,!0,b)||(a.value=b):a.value=b,d):a.value=b}},j||(m.input=h,n.value=h),k||(m.textarea=h,n.value=h),c(function(){c(b).delegate("form","submit.placeholder",function(){var a=c(".placeholder",this).each(e);setTimeout(function(){a.each(f)},10)})}),c(a).bind("beforeunload.placeholder",function(){c(".placeholder").each(function(){this.value=""})}))}(this,document,jQuery),function(a){a.fn.UItoTop=function(b){var c={text:"",min:200,inDelay:600,outDelay:400,containerID:"toTop",containerHoverID:"toTopHover",scrollSpeed:1200,easingType:"linear"},d=a.extend(c,b),e="#"+d.containerID,f="#"+d.containerHoverID;a("body").append('"),a(e).hide().on("click.UItoTop",function(){return a("html, body").animate({scrollTop:0},d.scrollSpeed,d.easingType),a("#"+d.containerHoverID,this).stop().animate({opacity:0},d.inDelay,d.easingType),!1}).prepend(' ').hover(function(){a(f,this).stop().animate({opacity:1},600,"linear")},function(){a(f,this).stop().animate({opacity:0},700,"linear")}),a(window).scroll(function(){var b=a(window).scrollTop();"undefined"==typeof document.body.style.maxHeight&&a(e).css({position:"absolute",top:b+a(window).height()-50}),b>d.min?a(e).fadeIn(d.inDelay):a(e).fadeOut(d.Outdelay)})}}(jQuery),function(){var a=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1},b=[].slice;!function(a,b){return"function"==typeof define&&define.amd?define("waypoints",["jquery"],function(c){return b(c,a)}):b(a.jQuery,a)}(this,function(c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t;return e=c(d),l=a.call(d,"ontouchstart")>=0,h={horizontal:{},vertical:{}},i=1,k={},j="waypoints-context-id",o="resize.waypoints",p="scroll.waypoints",q=1,r="waypoints-waypoint-ids",s="waypoint",t="waypoints",f=function(){function a(a){var b=this;this.$element=a,this.element=a[0],this.didResize=!1,this.didScroll=!1,this.id="context"+i++,this.oldScroll={x:a.scrollLeft(),y:a.scrollTop()},this.waypoints={horizontal:{},vertical:{}},a.data(j,this.id),k[this.id]=this,a.bind(p,function(){var a;return b.didScroll||l?void 0:(b.didScroll=!0,a=function(){return b.doScroll(),b.didScroll=!1},d.setTimeout(a,c[t].settings.scrollThrottle))}),a.bind(o,function(){var a;return b.didResize?void 0:(b.didResize=!0,a=function(){return c[t]("refresh"),b.didResize=!1},d.setTimeout(a,c[t].settings.resizeThrottle))})}return a.prototype.doScroll=function(){var a,b=this;return a={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!l||a.vertical.oldScroll&&a.vertical.newScroll||c[t]("refresh"),c.each(a,function(a,d){var e,f,g;return g=[],f=d.newScroll>d.oldScroll,e=f?d.forward:d.backward,c.each(b.waypoints[a],function(a,b){var c,e;return d.oldScroll<(c=b.offset)&&c<=d.newScroll?g.push(b):d.newScroll<(e=b.offset)&&e<=d.oldScroll?g.push(b):void 0}),g.sort(function(a,b){return a.offset-b.offset}),f||g.reverse(),c.each(g,function(a,b){return b.options.continuous||a===g.length-1?b.trigger([e]):void 0})}),this.oldScroll={x:a.horizontal.newScroll,y:a.vertical.newScroll}},a.prototype.refresh=function(){var a,b,d,e=this;return d=c.isWindow(this.element),b=this.$element.offset(),this.doScroll(),a={horizontal:{contextOffset:d?0:b.left,contextScroll:d?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:d?0:b.top,contextScroll:d?0:this.oldScroll.y,contextDimension:d?c[t]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},c.each(a,function(a,b){return c.each(e.waypoints[a],function(a,d){var e,f,g,h,i;return e=d.options.offset,g=d.offset,f=c.isWindow(d.element)?0:d.$element.offset()[b.offsetProp],c.isFunction(e)?e=e.apply(d.element):"string"==typeof e&&(e=parseFloat(e),d.options.offset.indexOf("%")>-1&&(e=Math.ceil(b.contextDimension*e/100))),d.offset=f-b.contextOffset+b.contextScroll-e,d.options.onlyOnScroll&&null!=g||!d.enabled?void 0:null!==g&&g<(h=b.oldScroll)&&h<=d.offset?d.trigger([b.backward]):null!==g&&g>(i=b.oldScroll)&&i>=d.offset?d.trigger([b.forward]):null===g&&b.oldScroll>=d.offset?d.trigger([b.forward]):void 0})})},a.prototype.checkEmpty=function(){return c.isEmptyObject(this.waypoints.horizontal)&&c.isEmptyObject(this.waypoints.vertical)?(this.$element.unbind([o,p].join(" ")),delete k[this.id]):void 0},a}(),g=function(){function a(a,b,d){var e,f;d=c.extend({},c.fn[s].defaults,d),"bottom-in-view"===d.offset&&(d.offset=function(){var a;return a=c[t]("viewportHeight"),c.isWindow(b.element)||(a=b.$element.height()),a-c(this).outerHeight()}),this.$element=a,this.element=a[0],this.axis=d.horizontal?"horizontal":"vertical",this.callback=d.handler,this.context=b,this.enabled=d.enabled,this.id="waypoints"+q++,this.offset=null,this.options=d,b.waypoints[this.axis][this.id]=this,h[this.axis][this.id]=this,e=null!=(f=a.data(r))?f:[],e.push(this.id),a.data(r,e)}return a.prototype.trigger=function(a){return this.enabled?(null!=this.callback&&this.callback.apply(this.element,a),this.options.triggerOnce?this.destroy():void 0):void 0},a.prototype.disable=function(){return this.enabled=!1},a.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},a.prototype.destroy=function(){return delete h[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},a.getWaypointsByElement=function(a){var b,d;return(d=c(a).data(r))?(b=c.extend({},h.horizontal,h.vertical),c.map(d,function(a){return b[a]})):[]},a}(),n={init:function(a,b){var d;return null==b&&(b={}),null==(d=b.handler)&&(b.handler=a),this.each(function(){var a,d,e,h;return a=c(this),e=null!=(h=b.context)?h:c.fn[s].defaults.context,c.isWindow(e)||(e=a.closest(e)),e=c(e),d=k[e.data(j)],d||(d=new f(e)),new g(a,d,b)}),c[t]("refresh"),this},disable:function(){return n._invoke(this,"disable")},enable:function(){return n._invoke(this,"enable")},destroy:function(){return n._invoke(this,"destroy")},prev:function(a,b){return n._traverse.call(this,a,b,function(a,b,c){return b>0?a.push(c[b-1]):void 0})},next:function(a,b){return n._traverse.call(this,a,b,function(a,b,c){return ba.oldScroll.y})},left:function(a){return null==a&&(a=d),m._filter(a,"horizontal",function(a,b){return b.offset<=a.oldScroll.x})},right:function(a){return null==a&&(a=d),m._filter(a,"horizontal",function(a,b){return b.offset>a.oldScroll.x})},enable:function(){return m._invoke("enable")},disable:function(){return m._invoke("disable")},destroy:function(){return m._invoke("destroy")},extendFn:function(a,b){return n[a]=b},_invoke:function(a){var b;return b=c.extend({},h.vertical,h.horizontal),c.each(b,function(b,c){return c[a](),!0})},_filter:function(a,b,d){var e,f;return(e=k[c(a).data(j)])?(f=[],c.each(e.waypoints[b],function(a,b){return d(e,b)?f.push(b):void 0}),f.sort(function(a,b){return a.offset-b.offset}),c.map(f,function(a){return a.element})):[]}},c[t]=function(){var a,c;return c=arguments[0],a=2<=arguments.length?b.call(arguments,1):[],m[c]?m[c].apply(null,a):m.aggregate.call(null,c)},c[t].settings={resizeThrottle:100,scrollThrottle:30},e.load(function(){return c[t]("refresh")})})}.call(this),window.Modernizr=function(a,b,c){function d(a){t.cssText=a}function e(a,b){return d(x.join(a+";")+(b||""))}function f(a,b){return typeof a===b}function g(a,b){return!!~(""+a).indexOf(b)}function h(a,b){for(var d in a){var e=a[d];if(!g(e,"-")&&t[e]!==c)return"pfx"==b?e:!0}return!1}function i(a,b,d){for(var e in a){var g=b[a[e]];if(g!==c)return d===!1?a[e]:f(g,"function")?g.bind(d||b):g}return!1}function j(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+z.join(d+" ")+d).split(" ");return f(b,"string")||f(b,"undefined")?h(e,b):(e=(a+" "+A.join(d+" ")+d).split(" "),i(e,b,c))}function k(){o.input=function(c){for(var d=0,e=c.length;e>d;d++)E[c[d]]=!!(c[d]in u);return E.list&&(E.list=!(!b.createElement("datalist")||!a.HTMLDataListElement)),E}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),o.inputtypes=function(a){for(var d,e,f,g=0,h=a.length;h>g;g++)u.setAttribute("type",e=a[g]),d="text"!==u.type,d&&(u.value=v,u.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(e)&&u.style.WebkitAppearance!==c?(q.appendChild(u),f=b.defaultView,d=f.getComputedStyle&&"textfield"!==f.getComputedStyle(u,null).WebkitAppearance&&0!==u.offsetHeight,q.removeChild(u)):/^(search|tel)$/.test(e)||(d=/^(url|email)$/.test(e)?u.checkValidity&&u.checkValidity()===!1:u.value!=v)),D[a[g]]=!!d;return D}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var l,m,n="2.6.2",o={},p=!0,q=b.documentElement,r="modernizr",s=b.createElement(r),t=s.style,u=b.createElement("input"),v=":)",w={}.toString,x=" -webkit- -moz- -o- -ms- ".split(" "),y="Webkit Moz O ms",z=y.split(" "),A=y.toLowerCase().split(" "),B={svg:"http://www.w3.org/2000/svg"},C={},D={},E={},F=[],G=F.slice,H=function(a,c,d,e){var f,g,h,i,j=b.createElement("div"),k=b.body,l=k||b.createElement("body");if(parseInt(d,10))for(;d--;)h=b.createElement("div"),h.id=e?e[d]:r+(d+1),j.appendChild(h);return f=["",'"].join(""),j.id=r,(k?j:l).innerHTML+=f,l.appendChild(j),k||(l.style.background="",l.style.overflow="hidden",i=q.style.overflow,q.style.overflow="hidden",q.appendChild(l)),g=c(j,a),k?j.parentNode.removeChild(j):(l.parentNode.removeChild(l),q.style.overflow=i),!!g},I=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return H("@media "+b+" { #"+r+" { position: absolute; } }",function(b){d="absolute"==(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle).position}),d},J=function(){function a(a,e){e=e||b.createElement(d[a]||"div"),a="on"+a;var g=a in e;return g||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(a,""),g=f(e[a],"function"),f(e[a],"undefined")||(e[a]=c),e.removeAttribute(a))),e=null,g}var d={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return a}(),K={}.hasOwnProperty;m=f(K,"undefined")||f(K.call,"undefined")?function(a,b){return b in a&&f(a.constructor.prototype[b],"undefined")}:function(a,b){return K.call(a,b)},Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var c=G.call(arguments,1),d=function(){if(this instanceof d){var e=function(){};e.prototype=b.prototype;var f=new e,g=b.apply(f,c.concat(G.call(arguments)));return Object(g)===g?g:f}return b.apply(a,c.concat(G.call(arguments)))};return d}),C.flexbox=function(){return j("flexWrap")},C.canvas=function(){var a=b.createElement("canvas");return!(!a.getContext||!a.getContext("2d"))},C.canvastext=function(){return!(!o.canvas||!f(b.createElement("canvas").getContext("2d").fillText,"function"))},C.webgl=function(){return!!a.WebGLRenderingContext},C.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:H(["@media (",x.join("touch-enabled),("),r,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=9===a.offsetTop}),c},C.geolocation=function(){return"geolocation"in navigator},C.postmessage=function(){return!!a.postMessage},C.websqldatabase=function(){return!!a.openDatabase},C.indexedDB=function(){return!!j("indexedDB",a)},C.hashchange=function(){return J("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},C.history=function(){return!(!a.history||!history.pushState)},C.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},C.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},C.rgba=function(){return d("background-color:rgba(150,255,150,.5)"),g(t.backgroundColor,"rgba")},C.hsla=function(){return d("background-color:hsla(120,40%,100%,.5)"),g(t.backgroundColor,"rgba")||g(t.backgroundColor,"hsla")},C.multiplebgs=function(){return d("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(t.background)},C.backgroundsize=function(){return j("backgroundSize")},C.borderimage=function(){return j("borderImage")},C.borderradius=function(){return j("borderRadius")},C.boxshadow=function(){return j("boxShadow")},C.textshadow=function(){return""===b.createElement("div").style.textShadow},C.opacity=function(){return e("opacity:.55"),/^0.55$/.test(t.opacity)},C.cssanimations=function(){return j("animationName")},C.csscolumns=function(){return j("columnCount")},C.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return d((a+"-webkit- ".split(" ").join(b+a)+x.join(c+a)).slice(0,-a.length)),g(t.backgroundImage,"gradient")},C.cssreflections=function(){return j("boxReflect")},C.csstransforms=function(){return!!j("transform")},C.csstransforms3d=function(){var a=!!j("perspective");return a&&"webkitPerspective"in q.style&&H("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=9===b.offsetLeft&&3===b.offsetHeight}),a},C.csstransitions=function(){return j("transition")},C.fontface=function(){var a;return H('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&0===g.indexOf(d.split(" ")[0])}),a},C.generatedcontent=function(){var a;return H(["#",r,"{font:0/0 a}#",r,':after{content:"',v,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},C.video=function(){var a=b.createElement("video"),c=!1;try{(c=!!a.canPlayType)&&(c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(d){}return c},C.audio=function(){var a=b.createElement("audio"),c=!1;try{(c=!!a.canPlayType)&&(c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(d){}return c},C.localstorage=function(){try{return localStorage.setItem(r,r),localStorage.removeItem(r),!0}catch(a){return!1}},C.sessionstorage=function(){try{return sessionStorage.setItem(r,r),sessionStorage.removeItem(r),!0}catch(a){return!1}},C.webworkers=function(){return!!a.Worker},C.applicationcache=function(){return!!a.applicationCache},C.svg=function(){return!!b.createElementNS&&!!b.createElementNS(B.svg,"svg").createSVGRect},C.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML=" ",(a.firstChild&&a.firstChild.namespaceURI)==B.svg},C.smil=function(){return!!b.createElementNS&&/SVGAnimate/.test(w.call(b.createElementNS(B.svg,"animate")))},C.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(w.call(b.createElementNS(B.svg,"clipPath")))};for(var L in C)m(C,L)&&(l=L.toLowerCase(),o[l]=C[L](),F.push((o[l]?"":"no-")+l));return o.input||k(),o.addTest=function(a,b){if("object"==typeof a)for(var d in a)m(a,d)&&o.addTest(d,a[d]);else{if(a=a.toLowerCase(),o[a]!==c)return o;b="function"==typeof b?b():b,"undefined"!=typeof p&&p&&(q.className+=" "+(b?"":"no-")+a),o[a]=b}return o},d(""),s=u=null,o._version=n,o._prefixes=x,o._domPrefixes=A,o._cssomPrefixes=z,o.mq=I,o.hasEvent=J,o.testProp=function(a){return h([a])},o.testAllProps=j,o.testStyles=H,o.prefixed=function(a,b,c){return b?j(a,b,c):j(a,"pfx")},q.className=q.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(p?" js "+F.join(" "):""),o}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==q.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=r.shift();s=1,a?a.t?o(function(){("c"==a.t?m.injectCss:m.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):s=0}function i(a,c,d,e,f,i,j){function k(b){if(!n&&g(l.readyState)&&(t.r=n=1,!s&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&o(function(){v.removeChild(l)},50);for(var d in A[c])A[c].hasOwnProperty(d)&&A[c][d].onload()}}var j=j||m.errorTimeout,l=b.createElement(a),n=0,q=0,t={t:d,s:c,e:f,a:i,x:j};1===A[c]&&(q=1,A[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,q)},r.splice(e,0,t),"img"!=a&&(q||2===A[c]?(v.insertBefore(l,u?null:p),o(k,j)):A[c].push(l))}function j(a,b,c,d,f){return s=0,b=b||"j",e(a)?i("c"==b?x:w,a,b,this.i++,c,d,f):(r.splice(this.i++,0,a),1==r.length&&h()),this}function k(){var a=m;return a.loader={load:j,i:0},a}var l,m,n=b.documentElement,o=a.setTimeout,p=b.getElementsByTagName("script")[0],q={}.toString,r=[],s=0,t="MozAppearance"in n.style,u=t&&!!b.createRange().compareNode,v=u?n:p.parentNode,n=a.opera&&"[object Opera]"==q.call(a.opera),n=!!b.attachEvent&&!n,w=t?"object":n?"script":"img",x=n?"script":w,y=Array.isArray||function(a){return"[object Array]"==q.call(a)},z=[],A={},B={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}};m=function(a){function b(a){var b,c,d,a=a.split("!"),e=z.length,f=a.pop(),g=a.length,f={url:f,origUrl:f,prefixes:a};for(c=0;g>c;c++)d=a[c].split("="),(b=B[d.shift()])&&(f=b(f,d));for(c=0;e>c;c++)f=z[c](f);return f}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(A[i.url]?i.noexec=!0:A[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),A[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(l=function(){var a=[].slice.call(arguments);m.apply(this,a),n()}),g(a,l,b,0,j);else if(Object(a)===a)for(i in h=function(){var b,c=0;for(b in a)a.hasOwnProperty(b)&&c++;
return c}(),a)a.hasOwnProperty(i)&&(!c&&!--h&&(d(l)?l=function(){var a=[].slice.call(arguments);m.apply(this,a),n()}:l[i]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),n()}}(m[i])),g(a[i],l,b,i,j))}else!c&&n()}var h,i,j=!!a.test,k=a.load||a.both,l=a.callback||f,m=l,n=a.complete||f;c(j?a.yep:a.nope,!!k),k&&c(k)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(y(a))for(i=0;ih&&!b.requestAnimationFrame;++h)b.requestAnimationFrame=b[g[h]+"RequestAnimationFrame"],b.cancelAnimationFrame=b[g[h]+"CancelAnimationFrame"]||b[g[h]+"CancelRequestAnimationFrame"];b.requestAnimationFrame||(b.requestAnimationFrame=function(a,c){var d=(new Date).getTime(),f=d-e,g=Math.max(0,16-f),h=b.setTimeout(function(){a(d+g)},g);return e=d+g,h}),b.cancelAnimationFrame||(b.cancelAnimationFrame=function(a){clearTimeout(a)}),jQuery.fx.timer=function(a){a()&&jQuery.timers.push(a)&&!d&&(d=!0,f(a.elem))},jQuery.fx.stop=function(){d=!1}}(jQuery,this),function(a){function b(b){var c=b||window.event,d=[].slice.call(arguments,1),e=0,f=0,g=0;return b=a.event.fix(c),b.type="mousewheel",c.wheelDelta&&(e=c.wheelDelta/120),c.detail&&(e=-c.detail/3),g=e,void 0!==c.axis&&c.axis===c.HORIZONTAL_AXIS&&(g=0,f=-1*e),void 0!==c.wheelDeltaY&&(g=c.wheelDeltaY/120),void 0!==c.wheelDeltaX&&(f=-1*c.wheelDeltaX/120),d.unshift(b,e,f,g),(a.event.dispatch||a.event.handle).apply(this,d)}var c=["DOMMouseScroll","mousewheel"];if(a.event.fixHooks)for(var d=c.length;d;)a.event.fixHooks[c[--d]]=a.event.mouseHooks;a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=c.length;a;)this.addEventListener(c[--a],b,!1);else this.onmousewheel=b},teardown:function(){if(this.removeEventListener)for(var a=c.length;a;)this.removeEventListener(c[--a],b,!1);else this.onmousewheel=null}},a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})}(jQuery),function($,window,undefined){function getPixel(a,b){return parseInt(a.css(b),10)||0}function within(a,b,c){return b>a?b:a>c?c:a}function getViewport(){var a=window,b="inner";return"innerWidth"in window||(b="client",a=document.documentElement||document.body),{width:a[b+"Width"],height:a[b+"Height"]}}function removeHash(){history&&history.pushState&&history.pushState("",document.title,window.location.pathname+window.location.search)}function doAjax(a,b){var a="http://ilightbox.net/getSource/jsonp.php?url="+encodeURIComponent(a).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A");$.ajax({url:a,dataType:"jsonp"}),iLCallback=function(a){b.call(this,a)}}function findImageInElement(a){var b=$("*",a),c=new Array;return b.each(function(){var a="",b=this;if("none"!=$(b).css("background-image")?a=$(b).css("background-image"):"undefined"!=typeof $(b).attr("src")&&"img"==b.nodeName.toLowerCase()&&(a=$(b).attr("src")),-1==a.indexOf("gradient")){a=a.replace(/url\(\"/g,""),a=a.replace(/url\(/g,""),a=a.replace(/\"\)/g,""),a=a.replace(/\)/g,"");for(var d=a.split(","),e=0;e0&&-1==$.inArray(d[e],c)){var f="";browser.msie&&browser.version<9&&(f="?"+floor(3e3*random())),c.push(d[e]+f)}}}),c}function getExtension(a){var b=a?a.split(".").pop().toLowerCase():"",c=-1!==b.indexOf("?")?"?"+b.split("?").pop():"";return b.replace(c,"")}function getTypeByExtension(a){var b,c=getExtension(a);return b=-1!==extensions.image.indexOf(c)?"image":-1!==extensions.flash.indexOf(c)?"flash":-1!==extensions.video.indexOf(c)?"video":"iframe"}function percentToValue(a,b){return parseInt(b/100*a)}function parseURI(a){var b=String(a).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return b?{href:b[0]||"",protocol:b[1]||"",authority:b[2]||"",host:b[3]||"",hostname:b[4]||"",port:b[5]||"",pathname:b[6]||"",search:b[7]||"",hash:b[8]||""}:null}function absolutizeURI(a,b){function c(a){var b=[];return a.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(a){"/.."===a?b.pop():b.push(a)}),b.join("").replace(/^\//,"/"===a.charAt(0)?"/":"")}return b=parseURI(b||""),a=parseURI(a||""),b&&a?(b.protocol||a.protocol)+(b.protocol||b.authority?b.authority:a.authority)+c(b.protocol||b.authority||"/"===b.pathname.charAt(0)?b.pathname:b.pathname?(a.authority&&!a.pathname?"/":"")+a.pathname.slice(0,a.pathname.lastIndexOf("/")+1)+b.pathname:a.pathname)+(b.protocol||b.authority||b.pathname?b.search:b.search||a.search)+b.hash:null}function version_compare(a,b,c){this.php_js=this.php_js||{},this.php_js.ENV=this.php_js.ENV||{};var d=0,e=0,f=0,g={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},h=function(a){return a=(""+a).replace(/[_\-+]/g,"."),a=a.replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,"."),a.length?a.split("."):[-8]},i=function(a){return a?isNaN(a)?g[a]||-7:parseInt(a,10):0};for(a=h(a),b=h(b),e=max(a.length,b.length),d=0;e>d;d++)if(a[d]!=b[d]){if(a[d]=i(a[d]),b[d]=i(b[d]),a[d]b[d]){f=1;break}}if(!c)return f;switch(c){case">":case"gt":return f>0;case">=":case"ge":return f>=0;case"<=":case"le":return 0>=f;case"==":case"=":case"eq":return 0===f;case"<>":case"!=":case"ne":return 0!==f;case"":case"<":case"lt":return 0>f;default:return null}}function getScrollXY(){var a=0,b=0;return"number"==typeof window.pageYOffset?(b=window.pageYOffset,a=window.pageXOffset):document.body&&(document.body.scrollLeft||document.body.scrollTop)?(b=document.body.scrollTop,a=document.body.scrollLeft):document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)&&(b=document.documentElement.scrollTop,a=document.documentElement.scrollLeft),{x:a,y:b}}function AC_QuickTimeVersion(){return gQTGeneratorVersion}function _QTComplain(a,b){b=b.replace("%%",a),alert(b)}function _QTAddAttribute(a,b,c){var d;return d=gTagAttrs[a+b],null==d&&(d=gTagAttrs[b]),null!=d?(0==b.indexOf(a)&&null==c&&(c=b.substring(a.length)),null==c&&(c=b),c+'="'+d+'" '):""}function _QTAddObjectAttr(a,b){return 0==a.indexOf("emb#")?"":(0==a.indexOf("obj#")&&null==b&&(b=a.substring(4)),_QTAddAttribute("obj#",a,b))}function _QTAddEmbedAttr(a,b){return 0==a.indexOf("obj#")?"":(0==a.indexOf("emb#")&&null==b&&(b=a.substring(4)),_QTAddAttribute("emb#",a,b))}function _QTAddObjectParam(a,b){var c,d="",e=b?" />":">";return-1==a.indexOf("emb#")&&(c=gTagAttrs["obj#"+a],null==c&&(c=gTagAttrs[a]),0==a.indexOf("obj#")&&(a=a.substring(4)),null!=c&&(d=' c.length||0!=c.length%2)return _QTComplain(a,gArgCountErr),"";gTagAttrs=[],gTagAttrs.src=c[0],gTagAttrs.width=c[1],gTagAttrs.height=c[2],gTagAttrs.classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",gTagAttrs.pluginspage="http://www.apple.com/quicktime/download/",a=c[3],(null==a||""==a)&&(a="6,0,2,0"),gTagAttrs.codebase="http://www.apple.com/qtactivex/qtplugin.cab#version="+a;for(var d,e=4;e\n"+_QTAddObjectParam("src",b),e=" \n"}function QT_GenerateOBJECTText(){return _QTGenerate("QT_GenerateOBJECTText",!1,arguments)}var extensions={flash:["swf"],image:["bmp","gif","jpeg","jpg","png","tiff","tif","jfif","jpe"],iframe:["asp","aspx","cgi","cfm","htm","html","jsp","php","pl","php3","php4","php5","phtml","rb","rhtml","shtml","txt"],video:["avi","mov","mpg","mpeg","movie","mp4","webm","ogv","ogg","3gp","m4v"]},$win=$(window),$doc=$(document),browser,transform,gpuAcceleration,fullScreenApi="",supportTouch=!!("ontouchstart"in window)&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),clickEvent=supportTouch?"itap.iLightBox":"click.iLightBox",touchStartEvent=supportTouch?"touchstart.iLightBox":"mousedown.iLightBox",touchStopEvent=supportTouch?"touchend.iLightBox":"mouseup.iLightBox",touchMoveEvent=supportTouch?"touchmove.iLightBox":"mousemove.iLightBox",abs=Math.abs,sqrt=Math.sqrt,round=Math.round,max=Math.max,min=Math.min,floor=Math.floor,random=Math.random,pluginspages={quicktime:"http://www.apple.com/quicktime/download",flash:"http://www.adobe.com/go/getflash"},iLightBox=function(a,b,c,d){var e=this;if(e.options=b,e.selector=a.selector||a,e.context=a.context,e.instant=d,c.length<1?e.attachItems():e.items=c,e.vars={total:e.items.length,start:0,current:null,next:null,prev:null,BODY:$("body"),loadRequests:0,overlay:$('
'),loader:$(''),toolbar:$('
'),innerToolbar:$('
'),title:$('
'),closeButton:$(' '),fullScreenButton:$(' '),innerPlayButton:$(' '),innerNextButton:$(' '),innerPrevButton:$(' '),holder:$(''),nextPhoto:$(''),prevPhoto:$(''),nextButton:$(' '),prevButton:$(' '),thumbnails:$(''),thumbs:!1,nextLock:!1,prevLock:!1,hashLock:!1,isMobile:!1,mobileMaxWidth:980,isInFullScreen:!1,isSwipe:!1,mouseID:0,cycleID:0,isPaused:0},e.vars.hideableElements=e.vars.nextButton.add(e.vars.prevButton),e.normalizeItems(),e.availPlugins(),e.options.startFrom=e.options.startFrom>0&&e.options.startFrom>=e.vars.total?e.vars.total-1:e.options.startFrom,e.options.startFrom=e.options.randomStart?floor(random()*e.vars.total):e.options.startFrom,e.vars.start=e.options.startFrom,d?e.instantCall():e.patchItemsEvents(),e.options.linkId&&(e.hashChangeHandler(),$win.iLightBoxHashChange(function(){e.hashChangeHandler()})),supportTouch){var f=/(click|mouseenter|mouseleave|mouseover|mouseout)/gi,g="itap";e.options.caption.show=e.options.caption.show.replace(f,g),e.options.caption.hide=e.options.caption.hide.replace(f,g),e.options.social.show=e.options.social.show.replace(f,g),e.options.social.hide=e.options.social.hide.replace(f,g)}e.options.controls.arrows&&$.extend(e.options.styles,{nextOffsetX:0,prevOffsetX:0,nextOpacity:0,prevOpacity:0})};iLightBox.prototype={showLoader:function(){var a=this;a.vars.loadRequests+=1,"horizontal"==a.options.path.toLowerCase()?a.vars.loader.stop().animate({top:"-30px"},a.options.show.speed,"easeOutCirc"):a.vars.loader.stop().animate({left:"-30px"},a.options.show.speed,"easeOutCirc")},hideLoader:function(){var a=this;a.vars.loadRequests-=1,a.vars.loadRequests=a.vars.loadRequests<0?0:a.vars.loadRequests,"horizontal"==a.options.path.toLowerCase()?a.vars.loadRequests<=0&&a.vars.loader.stop().animate({top:"-192px"},a.options.show.speed,"easeInCirc"):a.vars.loadRequests<=0&&a.vars.loader.stop().animate({left:"-192px"},a.options.show.speed,"easeInCirc")},createUI:function(){var a=this;a.ui={currentElement:a.vars.holder,nextElement:a.vars.nextPhoto,prevElement:a.vars.prevPhoto,currentItem:a.vars.current,nextItem:a.vars.next,prevItem:a.vars.prev,hide:function(){a.closeAction()},refresh:function(){arguments.length>0?a.repositionPhoto(!0):a.repositionPhoto()},fullscreen:function(){a.fullScreenAction()}}},attachItems:function(){var iL=this,itemsObject=new Array,items=new Array;$(iL.selector,iL.context).each(function(){var t=$(this),URL=t.attr(iL.options.attr)||null,options=t.data("options")&&eval("({"+t.data("options")+"})")||{},caption=t.data("caption"),title=t.data("title"),type=t.data("type")||getTypeByExtension(URL);items.push({URL:URL,caption:caption,title:title,type:type,options:options}),iL.instant||itemsObject.push(t)}),iL.items=items,iL.itemsObject=itemsObject,iL.vars&&(iL.vars.total=items.length)},normalizeItems:function(){var a=this,b=new Array;$.each(a.items,function(c,d){"string"==typeof d&&(d={url:d});var e=d.url||d.URL||null,f=d.options||{},g=d.caption||null,h=d.title||null,i=d.type?d.type.toLowerCase():getTypeByExtension(e),j="object"!=typeof e?getExtension(e):"";f.thumbnail=f.thumbnail||("image"==i?e:null),f.videoType=f.videoType||null,f.skin=f.skin||a.options.skin,f.width=f.width||null,f.height=f.height||null,f.mousewheel="undefined"!=typeof f.mousewheel?f.mousewheel:!0,f.swipe="undefined"!=typeof f.swipe?f.swipe:!0,f.social="undefined"!=typeof f.social?f.social:a.options.social.buttons&&$.extend({},{},a.options.social.buttons),"video"==i&&(f.html5video="undefined"!=typeof f.html5video?f.html5video:{},f.html5video.webm=f.html5video.webm||f.html5video.WEBM||null,f.html5video.controls="undefined"!=typeof f.html5video.controls?f.html5video.controls:"controls",f.html5video.preload=f.html5video.preload||"metadata",f.html5video.autoplay="undefined"!=typeof f.html5video.autoplay?f.html5video.autoplay:!1),f.width&&f.height||("video"==i?(f.width=js_local_vars.lightbox_video_width,f.height=js_local_vars.lightbox_video_height):"iframe"==i?(f.width=js_local_vars.lightbox_video_width,f.height=js_local_vars.lightbox_video_height):"flash"==i&&(f.width=js_local_vars.lightbox_video_width,f.height=js_local_vars.lightbox_video_height)),delete d.url,d.index=c,d.URL=e,d.caption=g,d.title=h,d.type=i,d.options=f,d.ext=j,b.push(d)}),a.items=b},instantCall:function(){var a=this,b=a.vars.start;a.vars.current=b,a.vars.next=a.items[b+1]?b+1:null,a.vars.prev=a.items[b-1]?b-1:null,a.addContents(),a.patchEvents()},addContents:function(){var a=this,b=a.vars,c=a.options,d=getViewport(),e=c.path.toLowerCase(),f=b.total>0&&a.items.filter(function(a,b,d){return-1===["image","flash","video"].indexOf(a.type)&&"undefined"==typeof a.recognized&&(c.smartRecognition||a.options.smartRecognition)}),g=f.length>0;c.mobileOptimizer&&!c.innerToolbar&&(b.isMobile=d.width<=b.mobileMaxWidth),b.overlay.addClass(c.skin).hide().css("opacity",c.overlay.opacity),c.linkId&&b.overlay[0].setAttribute("linkid",c.linkId),c.controls.toolbar&&(b.toolbar.addClass(c.skin).append(b.closeButton),c.controls.fullscreen&&b.toolbar.append(b.fullScreenButton),c.controls.slideshow&&b.toolbar.append(b.innerPlayButton),b.total>1&&b.toolbar.append(b.innerPrevButton).append(b.innerNextButton)),b.BODY.addClass("ilightbox-noscroll").append(b.overlay).append(b.loader).append(b.holder).append(b.nextPhoto).append(b.prevPhoto),c.innerToolbar||b.BODY.append(b.toolbar),c.controls.arrows&&b.BODY.append(b.nextButton).append(b.prevButton),c.controls.thumbnail&&b.total>1&&(b.BODY.append(b.thumbnails),b.thumbnails.addClass(c.skin).addClass("ilightbox-"+e),$("div.ilightbox-thumbnails-grid",b.thumbnails).empty(),b.thumbs=!0);var h="horizontal"==c.path.toLowerCase()?{left:parseInt(d.width/2-b.loader.outerWidth()/2)}:{top:parseInt(d.height/2-b.loader.outerHeight()/2)};b.loader.addClass(c.skin).css(h),b.nextButton.add(b.prevButton).addClass(c.skin),"horizontal"==e&&b.loader.add(b.nextButton).add(b.prevButton).addClass("horizontal"),b.BODY[b.isMobile?"addClass":"removeClass"]("isMobile"),c.infinite||(b.prevButton.add(b.prevButton).add(b.innerPrevButton).add(b.innerNextButton).removeClass("disabled"),b.nextButton.add(b.prevButton).add(b.innerPrevButton).add(b.innerNextButton).removeClass("disabled"),0==b.current&&b.prevButton.add(b.innerPrevButton).addClass("disabled"),b.current>=b.total-1&&b.nextButton.add(b.innerNextButton).addClass("disabled")),c.show.effect?(b.overlay.stop().fadeIn(c.show.speed),b.toolbar.stop().fadeIn(c.show.speed)):(b.overlay.show(),b.toolbar.show());var i=f.length;g?(a.showLoader(),$.each(f,function(d,e){var f=function(d){var e=-1,f=(a.items.filter(function(a,b,c){return a.URL==d.url&&(e=b),a.URL==d.url}),a.items[e]);d&&$.extend(!0,f,{URL:d.source,type:d.type,recognized:!0,options:{html5video:d.html5video,width:"image"==d.type?0:d.width||f.width,height:"image"==d.type?0:d.height||f.height,thumbnail:f.options.thumbnail||d.thumbnail}}),i--,0==i&&(a.hideLoader(),b.dontGenerateThumbs=!1,a.generateThumbnails(),c.show.effect?setTimeout(function(){a.generateBoxes()},c.show.speed):a.generateBoxes())};a.ogpRecognition(this,f)})):c.show.effect?setTimeout(function(){a.generateBoxes()},c.show.speed):a.generateBoxes(),a.createUI(),window.iLightBox={close:function(){a.closeAction()},fullscreen:function(){a.fullScreenAction()},moveNext:function(){a.moveTo("next")},movePrev:function(){a.moveTo("prev")},goTo:function(b){a.goTo(b)},refresh:function(){a.refresh()},reposition:function(){arguments.length>0?a.repositionPhoto(!0):a.repositionPhoto()},setOption:function(b){a.setOption(b)},destroy:function(){a.closeAction(),a.dispatchItemsEvents()}},c.linkId&&(b.hashLock=!0,window.location.hash=c.linkId+"/"+b.current,setTimeout(function(){b.hashLock=!1},55)),c.slideshow.startPaused||(a.resume(),b.innerPlayButton.removeClass("ilightbox-play").addClass("ilightbox-pause")),"function"==typeof a.options.callback.onOpen&&a.options.callback.onOpen.call(a)},loadContent:function(a,b,c){var d,e,f=this;switch(f.createUI(),a.speed=c||f.options.effects.loadedFadeSpeed,"current"==b&&(a.options.mousewheel?f.vars.lockWheel=!1:f.vars.lockWheel=!0,a.options.swipe?f.vars.lockSwipe=!1:f.vars.lockSwipe=!0),b){case"current":d=f.vars.holder,e=f.vars.current;break;case"next":d=f.vars.nextPhoto,e=f.vars.next;break;case"prev":d=f.vars.prevPhoto,e=f.vars.prev}if(d.removeAttr("style class").addClass("ilightbox-holder"+(supportTouch?" supportTouch":"")).addClass(a.options.skin),$("div.ilightbox-inner-toolbar",d).remove(),a.title||f.options.innerToolbar){var g=f.vars.innerToolbar.clone();if(a.title&&f.options.show.title){var h=f.vars.title.clone();h.empty().html(a.title),g.append(h)}f.options.innerToolbar&&g.append(f.vars.total>1?f.vars.toolbar.clone():f.vars.toolbar),d.prepend(g)}f.loadSwitcher(a,d,e,b)},loadSwitcher:function(a,b,c,d){var e=this,g=e.options,h={element:b,position:c};switch(a.type){case"image":"function"==typeof g.callback.onBeforeLoad&&g.callback.onBeforeLoad.call(e,e.ui,c),"function"==typeof a.options.onBeforeLoad&&a.options.onBeforeLoad.call(e,h),e.loadImage(a.URL,function(f){"function"==typeof g.callback.onAfterLoad&&g.callback.onAfterLoad.call(e,e.ui,c),"function"==typeof a.options.onAfterLoad&&a.options.onAfterLoad.call(e,h);var i=f?f.width:400,j=f?f.height:200;b.data({naturalWidth:i,naturalHeight:j}),$("div.ilightbox-container",b).empty().append(f?' ':''+g.errors.loadImage+" "),"function"==typeof g.callback.onRender&&g.callback.onRender.call(e,e.ui,c),"function"==typeof a.options.onRender&&a.options.onRender.call(e,h),e.configureHolder(a,d,b)});break;case"video":b.data({naturalWidth:a.options.width,naturalHeight:a.options.height}),e.addContent(b,a),"function"==typeof g.callback.onRender&&g.callback.onRender.call(e,e.ui,c),"function"==typeof a.options.onRender&&a.options.onRender.call(e,h),e.configureHolder(a,d,b);break;case"iframe":for(var i=a.URL.substring(a.URL.indexOf("?")+1).split("&"),j={},k=0;k').css(o).html(k)),b.show().data({naturalWidth:m||l.outerWidth(),naturalHeight:n||l.outerHeight()}).hide(),"function"==typeof g.callback.onRender&&g.callback.onRender.call(e,e.ui,c),"function"==typeof a.options.onRender&&a.options.onRender.call(e,h);var q=findImageInElement(b);e.loadImage(q,function(){"function"==typeof g.callback.onAfterLoad&&g.callback.onAfterLoad.call(e,e.ui,c),"function"==typeof a.options.onAfterLoad&&a.options.onAfterLoad.call(e,h),e.configureHolder(a,d,b)}),g.ajaxSetup.success(f,i,j),"function"==typeof p.success&&p.success(f,i,j)},error:function(i,j,k){"function"==typeof g.callback.onAfterLoad&&g.callback.onAfterLoad.call(e,e.ui,c),"function"==typeof a.options.onAfterLoad&&a.options.onAfterLoad.call(e,h),f,e.hideLoader(),$("div.ilightbox-container",b).empty().append(''+g.errors.loadContents+" "),e.configureHolder(a,d,b),g.ajaxSetup.error(i,j,k),"function"==typeof p.error&&p.error(i,j,k)}});break;case"html":var m,q=a.URL;if(container=$("div.ilightbox-container",b),q[0].nodeName)m=q.clone();else{var r=$(q);m=r.selector?$(""+r+"
"):r}var s=e.items[c].options.width||parseInt(m.attr("width")),t=e.items[c].options.height||parseInt(m.attr("height"));e.addContent(b,a),m.appendTo(document.documentElement).hide(),"function"==typeof g.callback.onRender&&g.callback.onRender.call(e,e.ui,c),"function"==typeof a.options.onRender&&a.options.onRender.call(e,h);var o=findImageInElement(b);"function"==typeof g.callback.onBeforeLoad&&g.callback.onBeforeLoad.call(e,e.ui,c),"function"==typeof a.options.onBeforeLoad&&a.options.onBeforeLoad.call(e,h),e.loadImage(o,function(){"function"==typeof g.callback.onAfterLoad&&g.callback.onAfterLoad.call(e,e.ui,c),"function"==typeof a.options.onAfterLoad&&a.options.onAfterLoad.call(e,h),b.show().data({naturalWidth:s||container.outerWidth(),naturalHeight:t||container.outerHeight()}).hide(),m.remove(),e.configureHolder(a,d,b)})}},configureHolder:function(a,b,c){var d=this,e=d.vars,f=d.options;if("current"!=b&&c.addClass("next"==b?"ilightbox-next":"ilightbox-prev"),"current"==b)var g=e.current;else if("next"==b)var h=f.styles.nextOpacity,g=e.next;else var h=f.styles.prevOpacity,g=e.prev;var i={element:c,position:g};d.items[g].options.width=d.items[g].options.width||0,d.items[g].options.height=d.items[g].options.height||0,"current"==b?f.show.effect?c.css(transform,gpuAcceleration).fadeIn(a.speed,function(){if(c.css(transform,""),a.caption){d.setCaption(a,c);var b=$("div.ilightbox-caption",c),e=parseInt(b.outerHeight()/c.outerHeight()*100);f.caption.start&50>=e&&b.fadeIn(f.effects.fadeSpeed)}var h=a.options.social;h&&(d.setSocial(h,a.URL,c),f.social.start&&$("div.ilightbox-social",c).fadeIn(f.effects.fadeSpeed)),d.generateThumbnails(),"function"==typeof f.callback.onShow&&f.callback.onShow.call(d,d.ui,g),"function"==typeof a.options.onShow&&a.options.onShow.call(d,i)}):(c.show(),d.generateThumbnails(),"function"==typeof f.callback.onShow&&f.callback.onShow.call(d,d.ui,g),"function"==typeof a.options.onShow&&a.options.onShow.call(d,i)):f.show.effect?c.fadeTo(a.speed,h,function(){"next"==b?e.nextLock=!1:e.prevLock=!1,d.generateThumbnails(),"function"==typeof f.callback.onShow&&f.callback.onShow.call(d,d.ui,g),"function"==typeof a.options.onShow&&a.options.onShow.call(d,i)}):(c.css({opacity:h}).show(),"next"==b?e.nextLock=!1:e.prevLock=!1,d.generateThumbnails(),"function"==typeof f.callback.onShow&&f.callback.onShow.call(d,d.ui,g),"function"==typeof a.options.onShow&&a.options.onShow.call(d,i)),setTimeout(function(){d.repositionPhoto()},0)},generateBoxes:function(){var a=this,b=a.vars,c=a.options;c.infinite&&b.total>=3?(b.current==b.total-1&&(b.next=0),0==b.current&&(b.prev=b.total-1)):c.infinite=!1,a.loadContent(a.items[b.current],"current",c.show.speed),a.items[b.next]&&a.loadContent(a.items[b.next],"next",c.show.speed),a.items[b.prev]&&a.loadContent(a.items[b.prev],"prev",c.show.speed)},generateThumbnails:function(){var a=this,b=a.vars,c=a.options,d=null;if(b.thumbs&&!a.vars.dontGenerateThumbs){var e=b.thumbnails,f=$("div.ilightbox-thumbnails-container",e),g=$("div.ilightbox-thumbnails-grid",f),h=0;g.removeAttr("style").empty(),$.each(a.items,function(i,j){var k=b.current==i?"ilightbox-active":"",l=b.current==i?c.thumbnails.activeOpacity:c.thumbnails.normalOpacity,m=j.options.thumbnail,n=$('
'),o=$('
');n.css({opacity:0}).addClass(k),"video"!=j.type&&"flash"!=j.type||"undefined"!=typeof j.options.icon?j.options.icon&&(o.addClass("ilightbox-thumbnail-"+j.options.icon),n.append(o)):(o.addClass("ilightbox-thumbnail-video"),n.append(o)),m&&a.loadImage(m,function(b){h++,b?n.data({naturalWidth:b.width,naturalHeight:b.height}).append(' '):n.data({naturalWidth:c.thumbnails.maxWidth,naturalHeight:c.thumbnails.maxHeight}),clearTimeout(d),d=setTimeout(function(){a.positionThumbnails(e,f,g)},20),setTimeout(function(){n.fadeTo(c.effects.loadedFadeSpeed,l)},20*h)}),g.append(n)}),a.vars.dontGenerateThumbs=!0}},positionThumbnails:function(a,b,c){var d=this,e=d.vars,f=d.options,g=getViewport(),h=f.path.toLowerCase();a||(a=e.thumbnails),b||(b=$("div.ilightbox-thumbnails-container",a)),c||(c=$("div.ilightbox-thumbnails-grid",b));var i=$(".ilightbox-thumbnail",c),j="horizontal"==h?g.width-f.styles.pageOffsetX:i.eq(0).outerWidth()-f.styles.pageOffsetX,k="horizontal"==h?i.eq(0).outerHeight()-f.styles.pageOffsetY:g.height-f.styles.pageOffsetY,l="horizontal"==h?0:j,m="horizontal"==h?k:0,n=$(".ilightbox-active",c),o={};arguments.length<3&&(i.css({opacity:f.thumbnails.normalOpacity}),n.css({opacity:f.thumbnails.activeOpacity})),i.each(function(a){var b=$(this),c=b.data(),e="horizontal"==h?0:f.thumbnails.maxWidth;height="horizontal"==h?f.thumbnails.maxHeight:0,dims=d.getNewDimenstions(e,height,c.naturalWidth,c.naturalHeight,!0),b.css({width:dims.width,height:dims.height}),"horizontal"==h&&b.css({"float":"left"}),"horizontal"==h?l+=b.outerWidth():m+=b.outerHeight()}),o={width:l,height:m},c.css(o),o={};var p=c.offset(),q=n.length?n.offset():{top:parseInt(k/2),left:parseInt(j/2)};p.top=p.top-$doc.scrollTop(),p.left=p.left-$doc.scrollLeft(),q.top=q.top-p.top-$doc.scrollTop(),q.left=q.left-p.left-$doc.scrollLeft(),"horizontal"==h?(o.top=0,o.left=parseInt(j/2-q.left-n.outerWidth()/2)):(o.top=parseInt(k/2-q.top-n.outerHeight()/2),o.left=0),arguments.length<3?c.stop().animate(o,f.effects.repositionSpeed,"easeOutCirc"):c.css(o)},loadImage:function(a,b){$.isArray(a)||(a=[a]);var c=this,d=a.length;d>0?(c.showLoader(),$.each(a,function(e,f){var g=new Image;g.onload=function(){d-=1,0==d&&(c.hideLoader(),b(g))},g.onerror=g.onabort=function(){d-=1,0==d&&(c.hideLoader(),b(!1))},g.src=a[e]})):b(!1)},patchItemsEvents:function(){var a=this,b=a.vars,c=supportTouch?"itap.iL":"click.iL",d=supportTouch?"click.iL":"itap.iL";
if(a.context&&a.selector){var e=$(a.selector,a.context);$(a.context).on(c,a.selector,function(){var c=$(this),d=e.index(c);return b.current=d,b.next=a.items[d+1]?d+1:null,b.prev=a.items[d-1]?d-1:null,a.addContents(),a.patchEvents(),!1}).on(d,a.selector,function(){return!1})}else $.each(a.itemsObject,function(e,f){f.on(c,function(){return b.current=e,b.next=a.items[e+1]?e+1:null,b.prev=a.items[e-1]?e-1:null,a.addContents(),a.patchEvents(),!1}).on(d,function(){return!1})})},dispatchItemsEvents:function(){var a=this;a.vars,a.options;a.context&&a.selector?$(a.context).off(".iL",a.selector):$.each(a.itemsObject,function(a,b){b.off(".iL")})},refresh:function(){var a=this;a.dispatchItemsEvents(),a.attachItems(),a.normalizeItems(),a.patchItemsEvents()},patchEvents:function(){function a(a){c.isMobile||(c.mouseID||c.hideableElements.show(),c.mouseID=clearTimeout(c.mouseID),-1===j.indexOf(a.target)&&(c.mouseID=setTimeout(function(){c.hideableElements.hide(),c.mouseID=clearTimeout(c.mouseID)},3e3)))}var b=this,c=b.vars,d=b.options,e=d.path.toLowerCase(),f=$(".ilightbox-holder"),g=fullScreenApi.fullScreenEventName+".iLightBox",h=1e3,i=verticalDistanceThreshold=100,j=[c.nextButton[0],c.prevButton[0],c.nextButton[0].firstChild,c.prevButton[0].firstChild];$win.bind("resize.iLightBox",function(){var a=getViewport();d.mobileOptimizer&&!d.innerToolbar&&(c.isMobile=a.width<=c.mobileMaxWidth),c.BODY[c.isMobile?"addClass":"removeClass"]("isMobile"),b.repositionPhoto(null),supportTouch&&(clearTimeout(c.setTime),c.setTime=setTimeout(function(){var a=getScrollXY().y;window.scrollTo(0,a-30),window.scrollTo(0,a+30),window.scrollTo(0,a)},2e3)),c.thumbs&&b.positionThumbnails()}).bind("keydown.iLightBox",function(a){if(d.controls.keyboard)switch(a.keyCode){case 13:a.shiftKey&&d.keyboard.shift_enter&&b.fullScreenAction();break;case 27:d.keyboard.esc&&b.closeAction();break;case 37:d.keyboard.left&&!c.lockKey&&b.moveTo("prev");break;case 38:d.keyboard.up&&!c.lockKey&&b.moveTo("prev");break;case 39:d.keyboard.right&&!c.lockKey&&b.moveTo("next");break;case 40:d.keyboard.down&&!c.lockKey&&b.moveTo("next")}}),fullScreenApi.supportsFullScreen&&$win.bind(g,function(){b.doFullscreen()});var k=[d.caption.show+".iLightBox",d.caption.hide+".iLightBox",d.social.show+".iLightBox",d.social.hide+".iLightBox"].filter(function(a,b,c){return c.lastIndexOf(a)===b}),l="";$.each(k,function(a,b){0!=a&&(l+=" "),l+=b}),$doc.on(clickEvent,".ilightbox-overlay",function(){d.overlay.blur&&b.closeAction()}).on(clickEvent,".ilightbox-next, .ilightbox-next-button",function(){b.moveTo("next")}).on(clickEvent,".ilightbox-prev, .ilightbox-prev-button",function(){b.moveTo("prev")}).on(clickEvent,".ilightbox-thumbnail",function(){var a=$(this),d=$(".ilightbox-thumbnail",c.thumbnails),e=d.index(a);e!=c.current&&b.goTo(e)}).on(l,".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(a){var b=$("div.ilightbox-caption",c.holder),e=$("div.ilightbox-social",c.holder),f=d.effects.fadeSpeed;c.nextLock||c.prevLock?(a.type!=d.caption.show||b.is(":visible")?a.type==d.caption.hide&&b.is(":visible")&&b.fadeOut(f):b.fadeIn(f),a.type!=d.social.show||e.is(":visible")?a.type==d.social.hide&&e.is(":visible")&&e.fadeOut(f):e.fadeIn(f)):(a.type!=d.caption.show||b.is(":visible")?a.type==d.caption.hide&&b.is(":visible")&&b.stop().fadeOut(f):b.stop().fadeIn(f),a.type!=d.social.show||e.is(":visible")?a.type==d.social.hide&&e.is(":visible")&&e.stop().fadeOut(f):e.stop().fadeIn(f))}).on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-wrapper",function(a){"mouseenter"==a.type?c.lockWheel=!0:c.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 a=$(this);a.hasClass("ilightbox-fullscreen")?b.fullScreenAction():a.hasClass("ilightbox-play")?(b.resume(),a.addClass("ilightbox-pause").removeClass("ilightbox-play")):a.hasClass("ilightbox-pause")?(b.pause(),a.addClass("ilightbox-play").removeClass("ilightbox-pause")):b.closeAction()}).on(touchMoveEvent,".ilightbox-overlay, .ilightbox-thumbnails-container",function(a){a.preventDefault()}),d.controls.arrows&&!supportTouch&&$doc.on("mousemove.iLightBox",a),d.controls.slideshow&&d.slideshow.pauseOnHover&&$doc.on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(a){"mouseenter"==a.type&&c.cycleID?b.pause():"mouseleave"==a.type&&c.isPaused&&b.resume()});var m=$(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails");d.controls.mousewheel&&m.on("mousewheel.iLightBox",function(a,d){c.lockWheel||(a.preventDefault(),0>d?b.moveTo("next"):d>0&&b.moveTo("prev"))}),d.controls.swipe&&f.on(touchStartEvent,function(a){function g(a){var b=$(this),c=q[a],d=[r.coords[0]-l.coords[0],r.coords[1]-l.coords[1]];b[0].style["horizontal"==e?"left":"top"]=("horizontal"==e?c.left-d[0]:c.top-d[1])+"px"}function j(a){if(r){var b=a.originalEvent.touches?a.originalEvent.touches[0]:a;l={time:(new Date).getTime(),coords:[b.pageX-o,b.pageY-n]},f.each(g),a.preventDefault()}}function k(){f.each(function(){var a=$(this),b=a.data("offset")||{top:a.offset().top-n,left:a.offset().left-o},c=b.top,d=b.left;a.css(transform,gpuAcceleration).stop().animate({top:c,left:d},500,"easeOutCirc",function(){a.css(transform,"")})})}if(!(c.nextLock||c.prevLock||1==c.total||c.lockSwipe)){c.BODY.addClass("ilightbox-closedhand");var l,m=a.originalEvent.touches?a.originalEvent.touches[0]:a,n=$doc.scrollTop(),o=$doc.scrollLeft(),p=[f.eq(0).offset(),f.eq(1).offset(),f.eq(2).offset()],q=[{top:p[0].top-n,left:p[0].left-o},{top:p[1].top-n,left:p[1].left-o},{top:p[2].top-n,left:p[2].left-o}],r={time:(new Date).getTime(),coords:[m.pageX-o,m.pageY-n]};f.bind(touchMoveEvent,j),$doc.one(touchStopEvent,function(a){f.unbind(touchMoveEvent,j),c.BODY.removeClass("ilightbox-closedhand"),r&&l&&("horizontal"==e&&l.time-r.timei&&abs(r.coords[1]-l.coords[1])l.coords[0]?c.current!=c.total-1||d.infinite?(c.isSwipe=!0,b.moveTo("next")):k():0!=c.current||d.infinite?(c.isSwipe=!0,b.moveTo("prev")):k():"vertical"==e&&l.time-r.timei&&abs(r.coords[0]-l.coords[0])l.coords[1]?c.current!=c.total-1||d.infinite?(c.isSwipe=!0,b.moveTo("next")):k():0!=c.current||d.infinite?(c.isSwipe=!0,b.moveTo("prev")):k():k()),r=l=undefined})}})},goTo:function(a){var b=this,c=b.vars,d=b.options,e=a-c.current;if(d.infinite&&(a==c.total-1&&0==c.current&&(e=-1),c.current==c.total-1&&0==a&&(e=1)),1==e)b.moveTo("next");else if(-1==e)b.moveTo("prev");else{if(c.nextLock||c.prevLock)return!1;"function"==typeof d.callback.onBeforeChange&&d.callback.onBeforeChange.call(b,b.ui),d.linkId&&(c.hashLock=!0,window.location.hash=d.linkId+"/"+a),b.items[a]&&(b.items[a].options.mousewheel?b.vars.lockWheel=!1:c.lockWheel=!0,b.items[a].options.swipe?c.lockSwipe=!1:c.lockSwipe=!0),$.each([c.holder,c.nextPhoto,c.prevPhoto],function(a,b){b.css(transform,gpuAcceleration).fadeOut(d.effects.loadedFadeSpeed)}),c.current=a,c.next=a+1,c.prev=a-1,b.createUI(),setTimeout(function(){b.generateBoxes()},d.effects.loadedFadeSpeed+50),$(".ilightbox-thumbnail",c.thumbnails).removeClass("ilightbox-active").eq(a).addClass("ilightbox-active"),b.positionThumbnails(),d.linkId&&setTimeout(function(){c.hashLock=!1},55),d.infinite||(c.nextButton.add(c.prevButton).add(c.innerPrevButton).add(c.innerNextButton).removeClass("disabled"),0==c.current&&c.prevButton.add(c.innerPrevButton).addClass("disabled"),c.current>=c.total-1&&c.nextButton.add(c.innerNextButton).addClass("disabled")),b.resetCycle(),"function"==typeof d.callback.onAfterChange&&d.callback.onAfterChange.call(b,b.ui)}},moveTo:function(a){var b=this,c=b.vars,d=b.options,e=d.path.toLowerCase(),f=getViewport(),g=d.effects.switchSpeed;if(c.nextLock||c.prevLock)return!1;var h="next"==a?c.next:c.prev;if(d.linkId&&(c.hashLock=!0,window.location.hash=d.linkId+"/"+h),"next"==a){if(!b.items[h])return!1;var i=c.nextPhoto,j=c.holder,k=c.prevPhoto,l="ilightbox-prev",m="ilightbox-next"}else if("prev"==a){if(!b.items[h])return!1;var i=c.prevPhoto,j=c.holder,k=c.nextPhoto,l="ilightbox-next",m="ilightbox-prev"}"function"==typeof d.callback.onBeforeChange&&d.callback.onBeforeChange.call(b,b.ui),"next"==a?c.nextLock=!0:c.prevLock=!0;var n=$("div.ilightbox-caption",j),o=$("div.ilightbox-social",j);if(n.length&&n.stop().fadeOut(g,function(){$(this).remove()}),o.length&&o.stop().fadeOut(g,function(){$(this).remove()}),b.items[h].caption){b.setCaption(b.items[h],i);var p=$("div.ilightbox-caption",i),q=parseInt(p.outerHeight()/i.outerHeight()*100);d.caption.start&&50>=q&&p.fadeIn(g)}var r=b.items[h].options.social;r&&(b.setSocial(r,b.items[h].URL,i),d.social.start&&$("div.ilightbox-social",i).fadeIn(d.effects.fadeSpeed)),$.each([i,j,k],function(a,b){b.removeClass("ilightbox-next ilightbox-prev")});var s=i.data("offset"),t=f.width-d.styles.pageOffsetX,u=f.height-d.styles.pageOffsetY,v=s.newDims.width,w=s.newDims.height,x=s.thumbsOffset,y=s.diff,z=parseInt(u/2-w/2-y.H-x.H/2),A=parseInt(t/2-v/2-y.W-x.W/2);i.css(transform,gpuAcceleration).animate({top:z,left:A,opacity:1},g,c.isSwipe?"easeOutCirc":"easeInOutCirc",function(){i.css(transform,"")}),$("div.ilightbox-container",i).animate({width:v,height:w},g,c.isSwipe?"easeOutCirc":"easeInOutCirc");var B=j.data("offset"),C=B.object;y=B.diff,v=B.newDims.width,w=B.newDims.height,v=parseInt(v*d.styles["next"==a?"prevScale":"nextScale"]),w=parseInt(w*d.styles["next"==a?"prevScale":"nextScale"]),z=parseInt("horizontal"==e?u/2-C.offsetY-w/2-y.H-x.H/2:u-C.offsetX-y.H-x.H/2),"prev"==a?A=parseInt("horizontal"==e?t-C.offsetX-y.W-x.W/2:t/2-v/2-y.W-C.offsetY-x.W/2):(z="horizontal"==e?z:parseInt(C.offsetX-y.H-w-x.H/2),A=parseInt("horizontal"==e?C.offsetX-y.W-v-x.W/2:t/2-C.offsetY-v/2-y.W-x.W/2)),$("div.ilightbox-container",j).animate({width:v,height:w},g,c.isSwipe?"easeOutCirc":"easeInOutCirc"),j.addClass(l).css(transform,gpuAcceleration).animate({top:z,left:A,opacity:d.styles.prevOpacity},g,c.isSwipe?"easeOutCirc":"easeInOutCirc",function(){j.css(transform,""),$(".ilightbox-thumbnail",c.thumbnails).removeClass("ilightbox-active").eq(h).addClass("ilightbox-active"),b.positionThumbnails(),b.items[h]&&(b.items[h].options.mousewheel?c.lockWheel=!1:c.lockWheel=!0,b.items[h].options.swipe?c.lockSwipe=!1:c.lockSwipe=!0),c.isSwipe=!1,"next"==a?(c.nextPhoto=k,c.prevPhoto=j,c.holder=i,c.nextPhoto.hide(),c.next=c.next+1,c.prev=c.current,c.current=c.current+1,d.infinite&&(c.current>c.total-1&&(c.current=0),c.current==c.total-1&&(c.next=0),0==c.current&&(c.prev=c.total-1)),b.createUI(),b.items[c.next]?b.loadContent(b.items[c.next],"next"):c.nextLock=!1):(c.prevPhoto=k,c.nextPhoto=j,c.holder=i,c.prevPhoto.hide(),c.next=c.current,c.current=c.prev,c.prev=c.current-1,d.infinite&&(c.current==c.total-1&&(c.next=0),0==c.current&&(c.prev=c.total-1)),b.createUI(),b.items[c.prev]?b.loadContent(b.items[c.prev],"prev"):c.prevLock=!1),d.linkId&&setTimeout(function(){c.hashLock=!1},55),d.infinite||(c.nextButton.add(c.prevButton).add(c.innerPrevButton).add(c.innerNextButton).removeClass("disabled"),0==c.current&&c.prevButton.add(c.innerPrevButton).addClass("disabled"),c.current>=c.total-1&&c.nextButton.add(c.innerNextButton).addClass("disabled")),b.repositionPhoto(),b.resetCycle(),"function"==typeof d.callback.onAfterChange&&d.callback.onAfterChange.call(b,b.ui)}),z="horizontal"==e?getPixel(k,"top"):parseInt("next"==a?-(u/2)-k.outerHeight():2*z),A="horizontal"==e?parseInt("next"==a?-(t/2)-k.outerWidth():2*A):getPixel(k,"left"),k.css(transform,gpuAcceleration).animate({top:z,left:A,opacity:d.styles.nextOpacity},g,c.isSwipe?"easeOutCirc":"easeInOutCirc",function(){k.css(transform,"")}).addClass(m)},setCaption:function(a,b){var c=$('
');a.caption&&(c.html(a.caption),$("div.ilightbox-container",b).append(c))},normalizeSocial:function(a,b){var c=this,d=(c.vars,c.options),e=window.location.href;return $.each(a,function(c,f){if(!f)return!0;var g,h,i=c.toLowerCase();switch(i){case"facebook":g="http://www.facebook.com/share.php?v=4&src=bm&u={URL}",h="Share on Facebook";break;case"twitter":g="http://twitter.com/home?status={URL}",h="Share on Twitter";break;case"googleplus":g="https://plus.google.com/share?url={URL}",h="Share on Google+";break;case"delicious":g="http://delicious.com/post?url={URL}",h="Share on Delicious";break;case"digg":g="http://digg.com/submit?phase=2&url={URL}",h="Share on Digg";break;case"reddit":g="http://reddit.com/submit?url={URL}",h="Share on reddit"}a[c]={URL:f.URL&&absolutizeURI(e,f.URL)||d.linkId&&window.location.href||"string"!=typeof b&&e||b&&absolutizeURI(e,b)||e,source:f.source||g||f.URL&&absolutizeURI(e,f.URL)||b&&absolutizeURI(e,b),text:f.text||h||"Share on "+c,width:"undefined"==typeof f.width||isNaN(f.width)?640:parseInt(f.width),height:f.height||360}}),a},setSocial:function(a,b,c){var d=this,e=$('
'),f="";a=d.normalizeSocial(a,b),$.each(a,function(a,b){var c=(a.toLowerCase(),b.source.replace(/\{URL\}/g,encodeURIComponent(b.URL).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")));f+=' '}),f+=" ",e.html(f),$("div.ilightbox-container",c).append(e)},fullScreenAction:function(){var a=this;a.vars;fullScreenApi.supportsFullScreen?fullScreenApi.isFullScreen()?fullScreenApi.cancelFullScreen(document.documentElement):fullScreenApi.requestFullScreen(document.documentElement):a.doFullscreen()},doFullscreen:function(){var a=this,b=a.vars,c=getViewport(),d=a.options;if(d.fullAlone){var e=b.holder,f=a.items[b.current],g=c.width,h=c.height,i=[e,b.nextPhoto,b.prevPhoto,b.nextButton,b.prevButton,b.overlay,b.toolbar,b.thumbnails,b.loader],j=[b.loader,b.thumbnails];if(b.isInFullScreen)b.isInFullScreen=b.lockKey=b.lockWheel=b.lockSwipe=!1,b.overlay.css({opacity:a.options.overlay.opacity}),$.each(j,function(a,b){b.show()}),b.fullScreenButton.attr("title",d.text.enterFullscreen),e.data({naturalWidth:e.data("naturalWidthOld"),naturalHeight:e.data("naturalHeightOld"),naturalWidthOld:null,naturalHeightOld:null}),$.each(i,function(a,b){b.removeClass("ilightbox-fullscreen")}),"function"==typeof d.callback.onExitFullScreen&&d.callback.onExitFullScreen.call(a,a.ui);else{if(b.isInFullScreen=b.lockKey=b.lockWheel=b.lockSwipe=!0,b.overlay.css({opacity:1}),$.each(j,function(a,b){b.hide()}),b.fullScreenButton.attr("title",d.text.exitFullscreen),-1!=d.fullStretchTypes.indexOf(f.type))e.data({naturalWidthOld:e.data("naturalWidth"),naturalHeightOld:e.data("naturalHeight"),naturalWidth:g,naturalHeight:h});else{var c=f.options.fullViewPort||d.fullViewPort||"",k=g,l=h,m=e.data("naturalWidth"),n=e.data("naturalHeight");if("fill"==c.toLowerCase())l=k/m*n,h>l&&(k=h/n*m,l=h);else if("fit"==c.toLowerCase()){var o=a.getNewDimenstions(k,l,m,n,!0);k=o.width,l=o.height}else if("stretch"==c.toLowerCase())k=k,l=l;else{var p=m>k||n>l?!0:!1,o=a.getNewDimenstions(k,l,m,n,p);k=o.width,l=o.height}e.data({naturalWidthOld:e.data("naturalWidth"),naturalHeightOld:e.data("naturalHeight"),naturalWidth:k,naturalHeight:l})}$.each(i,function(a,b){b.addClass("ilightbox-fullscreen")}),"function"==typeof d.callback.onEnterFullScreen&&d.callback.onEnterFullScreen.call(a,a.ui)}}else b.isInFullScreen?b.isInFullScreen=!1:b.isInFullScreen=!0;a.repositionPhoto(!0)},closeAction:function(){var a=this,b=a.vars,c=a.options;$win.unbind(".iLightBox"),$doc.off(".iLightBox"),b.isInFullScreen&&fullScreenApi.cancelFullScreen(document.documentElement),$(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails").off(".iLightBox"),c.hide.effect?b.overlay.stop().fadeOut(c.hide.speed,function(){b.overlay.remove(),b.BODY.removeClass("ilightbox-noscroll").off(".iLightBox")}):(b.overlay.remove(),b.BODY.removeClass("ilightbox-noscroll").off(".iLightBox"));var d=[b.toolbar,b.holder,b.nextPhoto,b.prevPhoto,b.nextButton,b.prevButton,b.loader,b.thumbnails];$.each(d,function(a,b){b.removeAttr("style").remove()}),b.dontGenerateThumbs=b.isInFullScreen=!1,window.iLightBox=null,c.linkId&&(b.hashLock=!0,removeHash(),setTimeout(function(){b.hashLock=!1},55)),"function"==typeof c.callback.onHide&&c.callback.onHide.call(a,a.ui)},repositionPhoto:function(){var a=this,b=a.vars,c=a.options,d=c.path.toLowerCase(),e=getViewport(),f=e.width,g=e.height,h=b.isInFullScreen&&c.fullAlone||b.isMobile?0:"horizontal"==d?0:b.thumbnails.outerWidth(),i=b.isMobile?b.toolbar.outerHeight():b.isInFullScreen&&c.fullAlone?0:"horizontal"==d?b.thumbnails.outerHeight():0,j=b.isInFullScreen&&c.fullAlone?f:f-c.styles.pageOffsetX,k=b.isInFullScreen&&c.fullAlone?g:g-c.styles.pageOffsetY,l="horizontal"==d?parseInt(a.items[b.next]||a.items[b.prev]?2*(c.styles.nextOffsetX+c.styles.prevOffsetX):30>=j/10?30:j/10):parseInt(30>=j/10?30:j/10)+h,m="horizontal"==d?parseInt(30>=k/10?30:k/10)+i:parseInt(a.items[b.next]||a.items[b.prev]?2*(c.styles.nextOffsetX+c.styles.prevOffsetX):30>=k/10?30:k/10),n={type:"current",width:j,height:k,item:a.items[b.current],offsetW:l,offsetH:m,thumbsOffsetW:h,thumbsOffsetH:i,animate:arguments.length,holder:b.holder};a.repositionEl(n),a.items[b.next]&&(n=$.extend(n,{type:"next",item:a.items[b.next],offsetX:c.styles.nextOffsetX,offsetY:c.styles.nextOffsetY,holder:b.nextPhoto}),a.repositionEl(n)),a.items[b.prev]&&(n=$.extend(n,{type:"prev",item:a.items[b.prev],offsetX:c.styles.prevOffsetX,offsetY:c.styles.prevOffsetY,holder:b.prevPhoto}),a.repositionEl(n));var o="horizontal"==d?{left:parseInt(j/2-b.loader.outerWidth()/2)}:{top:parseInt(k/2-b.loader.outerHeight()/2)};b.loader.css(o)},repositionEl:function(a){var b=this,c=b.vars,d=b.options,e=d.path.toLowerCase(),f="current"==a.type&&c.isInFullScreen&&d.fullAlone?a.width:a.width-a.offsetW,g="current"==a.type&&c.isInFullScreen&&d.fullAlone?a.height:a.height-a.offsetH,h=a.item,i=a.item.options,j=a.holder,k=a.offsetX||0,l=a.offsetY||0,m=a.thumbsOffsetW,n=a.thumbsOffsetH;"current"==a.type?("number"==typeof i.width&&i.width&&(f=c.isInFullScreen&&d.fullAlone&&(-1!=d.fullStretchTypes.indexOf(h.type)||i.fullViewPort||d.fullViewPort)?f:i.width>f?f:i.width),"number"==typeof i.height&&i.height&&(g=c.isInFullScreen&&d.fullAlone&&(-1!=d.fullStretchTypes.indexOf(h.type)||i.fullViewPort||d.fullViewPort)?g:i.height>g?g:i.height)):("number"==typeof i.width&&i.width&&(f=i.width>f?f:i.width),"number"==typeof i.height&&i.height&&(g=i.height>g?g:i.height)),g=parseInt(g-$(".ilightbox-inner-toolbar",j).outerHeight());var o="string"==typeof i.width&&-1!=i.width.indexOf("%")?percentToValue(parseInt(i.width.replace("%","")),a.width):j.data("naturalWidth"),p="string"==typeof i.height&&-1!=i.height.indexOf("%")?percentToValue(parseInt(i.height.replace("%","")),a.height):j.data("naturalHeight"),q="string"==typeof i.width&&-1!=i.width.indexOf("%")||"string"==typeof i.height&&-1!=i.height.indexOf("%")?{width:o,height:p}:b.getNewDimenstions(f,g,o,p),r=$.extend({},q,{});"prev"==a.type||"next"==a.type?(o=parseInt(q.width*("next"==a.type?d.styles.nextScale:d.styles.prevScale)),p=parseInt(q.height*("next"==a.type?d.styles.nextScale:d.styles.prevScale))):(o=q.width,p=q.height);var s=parseInt((getPixel(j,"padding-left")+getPixel(j,"padding-right")+getPixel(j,"border-left-width")+getPixel(j,"border-right-width"))/2),t=parseInt((getPixel(j,"padding-top")+getPixel(j,"padding-bottom")+getPixel(j,"border-top-width")+getPixel(j,"border-bottom-width")+$(".ilightbox-inner-toolbar",j).outerHeight())/2);switch(a.type){case"current":var u=parseInt(a.height/2-p/2-t-n/2),v=parseInt(a.width/2-o/2-s-m/2);break;case"next":var u=parseInt("horizontal"==e?a.height/2-l-p/2-t-n/2:a.height-k-t-n/2),v=parseInt("horizontal"==e?a.width-k-s-m/2:a.width/2-o/2-s-l-m/2);break;case"prev":var u=parseInt("horizontal"==e?a.height/2-l-p/2-t-n/2:k-t-p-n/2),v=parseInt("horizontal"==e?k-s-o-m/2:a.width/2-l-o/2-s-m/2)}j.data("offset",{top:u,left:v,newDims:r,diff:{W:s,H:t},thumbsOffset:{W:m,H:n},object:a}),a.animate>0&&d.effects.reposition?(j.css(transform,gpuAcceleration).stop().animate({top:u,left:v},d.effects.repositionSpeed,"easeOutCirc",function(){j.css(transform,"")}),$("div.ilightbox-container",j).stop().animate({width:o,height:p},d.effects.repositionSpeed,"easeOutCirc"),$("div.ilightbox-inner-toolbar",j).stop().animate({width:o},d.effects.repositionSpeed,"easeOutCirc",function(){$(this).css("overflow","visible")})):(j.css({top:u,left:v}),$("div.ilightbox-container",j).css({width:o,height:p}),$("div.ilightbox-inner-toolbar",j).css({width:o}))},resume:function(a){var b=this,c=b.vars,d=b.options;!d.slideshow.pauseTime||d.controls.slideshow&&c.total<=1||af.options.maxScale?factor=f.options.maxScale:factor=0||parseInt(PluginDetect.getVersion("Flash"))>=0?!0:!1,quicktime:parseInt(PluginDetect.getVersion("QuickTime"))>=0?!0:!1,html5H264:!(!b.canPlayType||!b.canPlayType("video/mp4").replace(/no/,"")),html5WebM:!(!b.canPlayType||!b.canPlayType("video/webm").replace(/no/,"")),html5Vorbis:!(!b.canPlayType||!b.canPlayType("video/ogg").replace(/no/,"")),html5QuickTime:!(!b.canPlayType||!b.canPlayType("video/quicktime").replace(/no/,""))}},addContent:function(a,b){var c,d=this;switch(b.type){case"video":var e=!1,f=b.videoType,g=b.options.html5video;("video/mp4"==f||"mp4"==b.ext||"m4v"==b.ext||g.h264)&&d.plugins.html5H264?(b.ext="mp4",b.URL=g.h264||b.URL):g.webm&&d.plugins.html5WebM?(b.ext="webm",b.URL=g.webm||b.URL):g.ogg&&d.plugins.html5Vorbis&&(b.ext="ogv",b.URL=g.ogg||b.URL),!d.plugins.html5H264||"video/mp4"!=f&&"mp4"!=b.ext&&"m4v"!=b.ext?!d.plugins.html5WebM||"video/webm"!=f&&"webm"!=b.ext?!d.plugins.html5Vorbis||"video/ogg"!=f&&"ogv"!=b.ext?!d.plugins.html5QuickTime||"video/quicktime"!=f&&"mov"!=b.ext&&"qt"!=b.ext||(e=!0,f="video/quicktime"):(e=!0,f="video/ogg"):(e=!0,f="video/webm"):(e=!0,f="video/mp4"),e?c=$(" ",{width:"100%",height:"100%",preload:g.preload,autoplay:g.autoplay,poster:g.poster,controls:g.controls}).append($(" ",{src:b.URL,type:f})):d.plugins.quicktime?(c=$(" ",{type:"video/quicktime",pluginspage:pluginspages.quicktime}).attr({data:b.URL,width:"100%",height:"100%"}).append($(" ",{name:"src",value:b.URL})).append($(" ",{name:"autoplay",value:"false"})).append($(" ",{name:"loop",value:"false"})).append($(" ",{name:"scale",value:"tofit"})),browser.msie&&(c=QT_GenerateOBJECTText(b.URL,"100%","100%","","SCALE","tofit","AUTOPLAY","false","LOOP","false"))):c=$(" ",{"class":"ilightbox-alert",html:d.options.errors.missingPlugin.replace("{pluginspage}",pluginspages.quicktime).replace("{type}","QuickTime")});break;case"flash":if(d.plugins.flash){var h="",i=0;b.options.flashvars?$.each(b.options.flashvars,function(a,b){0!=i&&(h+="&"),h+=a+"="+encodeURIComponent(b),i++}):h=null,c=$(" ").attr({type:"application/x-shockwave-flash",src:b.URL,width:"number"==typeof b.options.width&&b.options.width&&"1"==d.options.minScale&&"1"==d.options.maxScale?b.options.width:"100%",height:"number"==typeof b.options.height&&b.options.height&&"1"==d.options.minScale&&"1"==d.options.maxScale?b.options.height:"100%",quality:"high",bgcolor:"#000000",play:"true",loop:"true",menu:"true",wmode:"transparent",scale:"showall",allowScriptAccess:"always",allowFullScreen:"true",flashvars:h,fullscreen:"yes"})}else c=$(" ",{"class":"ilightbox-alert",html:d.options.errors.missingPlugin.replace("{pluginspage}",pluginspages.flash).replace("{type}","Adobe Flash player")});break;case"iframe":for(var j=b.URL.substring(b.URL.indexOf("?")+1).split("&"),k={},l="?",m=0;m ").attr({width:"number"==typeof b.options.width&&b.options.width&&"1"==d.options.minScale&&"1"==d.options.maxScale?b.options.width:"100%",height:"number"==typeof b.options.height&&b.options.height&&"1"==d.options.minScale&&"1"==d.options.maxScale?b.options.height:"100%",src:q,frameborder:0,hspace:0,vspace:0,scrolling:supportTouch?"auto":"scroll",webkitAllowFullScreen:"",mozallowfullscreen:"",allowFullScreen:""});break;case"inline":c=$('
').html($(b.URL).clone(!0));break;case"html":var c,r=b.URL;if(r[0].nodeName)c=$('
').html(r);else{var s=$(b.URL),t=s.selector?$(""+s+"
"):s;c=$('
').html(t)}}return $("div.ilightbox-container",a).empty().html(c),"video"===c[0].tagName.toLowerCase()&&browser.webkit&&setTimeout(function(){var a=c[0].currentSrc+"?"+floor(3e4*random());c[0].currentSrc=a,c[0].src=a}),c},ogpRecognition:function(a,b){var c=this,d=a.URL;c.showLoader(),doAjax(d,function(a){if(c.hideLoader(),a){var d=new Object;if(d.length=!1,d.url=a.url,200==a.status){var e=a.results,f=e.type,g=e.source;d.type=f,d.html5video=e.html5video||{},d.length=!0,e.images&&(d.thumbnail=e.images[0]),g&&(d.source=g.src,d.width=g.width&&parseInt(g.width)||0,d.height=g.height&&parseInt(g.height)||0,d.thumbnail=g.thumbnail,"application/x-shockwave-flash"==g.type?d.type="flash":-1!=g.type.indexOf("video/")?d.type="video":-1!=g.type.indexOf("/html")?d.type="iframe":-1!=g.type.indexOf("image/")&&(d.type="image"))}else if("undefined"!=typeof a.response)throw a.response;b.call(this,d.length?d:!1)}})},hashChangeHandler:function(a){var b=this,c=b.vars,d=b.options,e=a||window.location.href,f=parseURI(e).hash,g=f.split("/"),h=g[1];if(!(c.hashLock||"#"+d.linkId!=g[0]&&f.length>1))if(h){var i=g[1]||0;if(b.items[i]){var j=$(".ilightbox-overlay");j.length&&j.attr("linkid")==d.linkId?b.goTo(i):b.itemsObject[i].trigger(supportTouch?"itap":"click")}else{var j=$(".ilightbox-overlay");j.length&&b.closeAction()}}else{var j=$(".ilightbox-overlay");j.length&&b.closeAction()}}},$.fn.iLightBox=function(){var a=arguments,b=$.isPlainObject(a[0])?a[0]:a[1],c=$.isArray(a[0])||"string"==typeof a[0]?a[0]:a[1];b||(b={});var d=$.extend(!0,{attr:"href",path:"vertical",skin:"dark",linkId:!1,infinite:!1,startFrom:0,randomStart:!1,keepAspectRatio:!0,maxScale:1,minScale:.2,innerToolbar:!1,smartRecognition:!1,mobileOptimizer:!0,fullAlone:!0,fullViewPort:null,fullStretchTypes:"flash, video",overlay:{blur:!0,opacity:.85},controls:{arrows:!1,slideshow:!1,toolbar:!0,fullscreen:!0,thumbnail:!0,keyboard:!0,mousewheel:!0,swipe:!0},keyboard:{left:!0,right:!0,up:!0,down:!0,esc:!0,shift_enter:!0},show:{effect:!0,speed:300,title:!0},hide:{effect:!0,speed:300},caption:{start:!0,show:"mouseenter",hide:"mouseleave"},social:{start:!0,show:"mouseenter",hide:"mouseleave",buttons:!1},styles:{pageOffsetX:0,pageOffsetY:0,nextOffsetX:45,nextOffsetY:0,nextOpacity:1,nextScale:1,prevOffsetX:45,prevOffsetY:0,prevOpacity:1,prevScale:1},thumbnails:{maxWidth:120,maxHeight:80,normalOpacity:1,activeOpacity:.6},effects:{reposition:!0,repositionSpeed:200,switchSpeed:500,loadedFadeSpeed:180,fadeSpeed:200},slideshow:{pauseTime:5e3,pauseOnHover:!1,startPaused:!0},text:{close:"Press Esc to close",enterFullscreen:"Enter Fullscreen (Shift+Enter)",exitFullscreen:"Exit Fullscreen (Shift+Enter)",slideShow:"Slideshow",next:"Next",previous:"Previous"},errors:{loadImage:"An error occurred when trying to load photo.",loadContents:"An error occurred when trying to load contents.",missingPlugin:"The content your are attempting to view requires the {type} plugin ."},ajaxSetup:{url:"",beforeSend:function(a,b){},cache:!1,complete:function(a,b){},crossDomain:!1,error:function(a,b,c){},success:function(a,b,c){},global:!0,ifModified:!1,username:null,password:null,type:"GET"},callback:{}},b),e=$.isArray(c)||"string"==typeof c?!0:!1;if(c=$.isArray(c)?c:new Array,"string"==typeof a[0]&&(c[0]=a[0]),version_compare($.fn.jquery,"1.8",">=")){var f=new iLightBox($(this),d,c,e);return{close:function(){f.closeAction()},fullscreen:function(){f.fullScreenAction()},moveNext:function(){f.moveTo("next")},movePrev:function(){f.moveTo("prev")},goTo:function(a){f.goTo(a)},refresh:function(){f.refresh()},reposition:function(){arguments.length>0?f.repositionPhoto(!0):f.repositionPhoto()},setOption:function(a){f.setOption(a)},destroy:function(){f.closeAction(),f.dispatchItemsEvents()}}}throw"The jQuery version that was loaded is too old. iLightBox requires jQuery 1.8+"},$.iLightBox=function(){return $.fn.iLightBox(arguments[0],arguments[1])},$.extend($.easing,{easeInCirc:function(a,b,c,d,e){return-d*(sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(sqrt(1-b*b)-1)+c:d/2*(sqrt(1-(b-=2)*b)+1)+c}}),function(){$.each("touchstart touchmove touchend tap taphold swipeleft swiperight scrollstart scrollstop".split(" "),function(a,b){$.fn[b]=function(a){return a?this.bind(b,a):this.trigger(b)},$.attrFn&&($.attrFn[b]=!0)});var a={startEvent:"touchstart.iTap",endEvent:"touchend.iTap"};$.event.special.itap={setup:function(){var b,c,d=this,e=$(this);e.bind(a.startEvent,function(f){b=getScrollXY(),e.one(a.endEvent,function(a){c=getScrollXY();var e=a||window.event;a=$.event.fix(e),a.type="itap",b&&c&&b.x==c.x&&b.y==c.y&&($.event.dispatch||$.event.handle).call(d,a),b=c=undefined})})},teardown:function(){$(this).unbind(a.startEvent)}}}(),function(){if(fullScreenApi={supportsFullScreen:!1,isFullScreen:function(){return!1},requestFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",prefix:""},browserPrefixes="webkit moz o ms khtml".split(" "),"undefined"!=typeof document.cancelFullScreen)fullScreenApi.supportsFullScreen=!0;else for(var a=0,b=browserPrefixes.length;b>a;a++)if(fullScreenApi.prefix=browserPrefixes[a],"undefined"!=typeof document[fullScreenApi.prefix+"CancelFullScreen"]){fullScreenApi.supportsFullScreen=!0;break}fullScreenApi.supportsFullScreen&&(fullScreenApi.fullScreenEventName=fullScreenApi.prefix+"fullscreenchange",fullScreenApi.isFullScreen=function(){switch(this.prefix){case"":return document.fullScreen;case"webkit":return document.webkitIsFullScreen;default:return document[this.prefix+"FullScreen"]}},fullScreenApi.requestFullScreen=function(a){return""===this.prefix?a.requestFullScreen():a[this.prefix+"RequestFullScreen"]()},fullScreenApi.cancelFullScreen=function(a){return""===this.prefix?document.cancelFullScreen():document[this.prefix+"CancelFullScreen"]();
})}(),function(){function a(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}}var b=a(navigator.userAgent);browser={},b.browser&&(browser[b.browser]=!0,browser.version=b.version),browser.chrome?browser.webkit=!0:browser.webkit&&(browser.safari=!0)}(),function(){function a(a){for(var d=0,e=b.length;e>d;d++){var f=b[d]?b[d]+a.charAt(0).toUpperCase()+a.slice(1):a;if(c.style[f]!==undefined)return f}}var b=["","webkit","moz","ms","o"],c=document.createElement("div");transform=a("transform")||"",gpuAcceleration=a("perspective")?"translateZ(0) ":""}();var PluginDetect={version:"0.7.9",name:"PluginDetect",handler:function(a,b,c){return function(){a(b,c)}},openTag:"<",isDefined:function(a){return"undefined"!=typeof a},isArray:function(a){return/array/i.test(Object.prototype.toString.call(a))},isFunc:function(a){return"function"==typeof a},isString:function(a){return"string"==typeof a},isNum:function(a){return"number"==typeof a},isStrNum:function(a){return"string"==typeof a&&/\d/.test(a)},getNumRegx:/[\d][\d\.\_,-]*/,splitNumRegx:/[\.\_,-]/g,getNum:function(a,b){var c=this,d=c.isStrNum(a)?(c.isDefined(b)?new RegExp(b):c.getNumRegx).exec(a):null;return d?d[0]:null},compareNums:function(a,b,c){var d,e,f,g=this,h=parseInt;if(g.isStrNum(a)&&g.isStrNum(b)){if(g.isDefined(c)&&c.compareNums)return c.compareNums(a,b);for(d=a.split(g.splitNumRegx),e=b.split(g.splitNumRegx),f=0;fh(e[f],10))return 1;if(h(d[f],10)c;c++)/^(0+)(.+)$/.test(d[c])&&(d[c]=RegExp.$2),(c>b||!/\d/.test(d[c]))&&(d[c]="0");return d.slice(0,4).join(",")},$$hasMimeType:function(a){return function(b){if(!a.isIE&&b){var c,d,e,f=a.isArray(b)?b:a.isString(b)?[b]:[];for(e=0;e2||!a||!a.version||!(c=g.getNum(a.version)))return b;if(!b)return c;for(c=g.formatNum(c),b=g.formatNum(b),d=b.split(g.splitNumRegx),e=c.split(g.splitNumRegx),f=0;f-1&&f>h&&"0"!=d[f])return b;if(e[f]!=d[f]&&(-1==h&&(h=f),"0"!=d[f]))return b}return c},AXO:window.ActiveXObject,getAXO:function(a){var b=null,c=this;try{b=new c.AXO(a)}catch(d){}return b},convertFuncs:function(a){var b,c,d=/^[\$][\$]/;for(b in a)if(d.test(b))try{c=b.slice(2),c.length>0&&!a[c]&&(a[c]=a[b](a),delete a[b])}catch(e){}},initObj:function(a,b,c){var d,e;if(a){if(1==a[b[0]]||c)for(d=0;d=0;a-=2)if(i[a]&&new RegExp(i[a],"i").test(g)){b.OS=i[a+1];break}}if(b.head=d.getElementsByTagName("head")[0]||d.getElementsByTagName("body")[0]||d.body||null,b.isIE=new Function("return/*@cc_on!@*/!1")(),b.verIE=b.isIE&&/MSIE\s*(\d+\.?\d*)/i.test(e)?parseFloat(RegExp.$1,10):null,b.verIEfull=null,b.docModeIE=null,b.isIE){var j,k=document.createElement("div");try{k.style.behavior="url(#default#clientcaps)",b.verIEfull=k.getComponentVersion("{89820200-ECBD-11CF-8B85-00AA005B4383}","componentid").replace(/,/g,".")}catch(l){}j=parseFloat(b.verIEfull||"0",10),b.docModeIE=d.documentMode||(/back/i.test(d.compatMode||"")?5:j)||b.verIE,b.verIE=j||b.docModeIE}if(b.ActiveXEnabled=!1,b.isIE){var a,m=["Msxml2.XMLHTTP","Msxml2.DOMDocument","Microsoft.XMLDOM","ShockwaveFlash.ShockwaveFlash","TDCCtl.TDCCtl","Shell.UIHelper","Scripting.Dictionary","wmplayer.ocx"];for(a=0;a0&&c.isFunc(a[0]))&&b.push(a)},callArray:function(a){var b,c=this;if(c.isArray(a))for(b=0;b0&&b.isFunc(a[0])?a[0](b,c>1?a[1]:0,c>2?a[2]:0,c>3?a[3]:0):b.isFunc(a)&&a(b)},getVersionDelimiter:",",$$getVersion:function(a){return function(b,c,d){var e,f,g=a.init(b);return g.status<0?null:(e=g.plugin,1!=e.getVersionDone&&(e.getVersion(null,c,d),null===e.getVersionDone&&(e.getVersionDone=1)),a.cleanup(),f=e.version||e.version0,f=f?f.replace(a.splitNumRegx,a.getVersionDelimiter):f)}},cleanup:function(){var a=this;a.garbage&&a.isDefined(window.CollectGarbage)&&window.CollectGarbage()},isActiveXObject:function(a,b){var c=this,d=!1,e='"+a.HTML+c.openTag+"/object>";if(!c.head)return d;c.head.insertBefore(document.createElement("object"),c.head.firstChild),c.head.firstChild.outerHTML=e;try{c.head.firstChild.classid=a.classID}catch(f){}try{c.head.firstChild.object&&(d=!0)}catch(f){}try{d&&c.head.firstChild.readyState<4&&(c.garbage=!0)}catch(f){}return c.head.removeChild(c.head.firstChild),d},codebaseSearch:function(a,b){var c=this;if(!c.ActiveXEnabled||!a)return null;a.BIfuncs&&a.BIfuncs.length&&null!==a.BIfuncs[a.BIfuncs.length-1]&&c.callArray(a.BIfuncs);var d,e=a.SEARCH;if(c.isStrNum(b))return e.match&&e.min&&c.compareNums(b,e.min)<=0?!0:e.match&&e.max&&c.compareNums(b,e.max)>=0?!1:(d=c.isActiveXObject(a,b),d&&(!e.min||c.compareNums(b,e.min)>0)&&(e.min=b),d||e.max&&!(c.compareNums(b,e.max)<0)||(e.max=b),d);var f,g,h,i,j,k=[0,0,0,0],l=[].concat(e.digits),m=e.min?1:0,n=function(b,d){var e=[].concat(k);return e[b]=d,c.isActiveXObject(a,e.join(","))};if(e.max){for(i=e.max.split(c.splitNumRegx),f=0;fk[0]&&(k[0]=j[0])}if(j&&i)for(f=1;fk[f]&&(k[f]=j[f]);if(e.max)for(f=1;f0&&0==l[f]&&l[f-1]g&&!(l[f]-k[f]<1)&&(d=round((l[f]+k[f])/2),!h["a"+d]);g++)h["a"+d]=1,n(f,d)?(k[f]=d,m=1):l[f]=d;if(l[f]=k[f],!m&&n(f,k[f])&&(m=1),!m)break}return m?k.join(","):null},addWinEvent:function(a,b){var c,d=this,e=window;d.isFunc(b)&&(e.addEventListener?e.addEventListener(a,b,!1):e.attachEvent?e.attachEvent("on"+a,b):(c=e["on"+a],e["on"+a]=d.winHandler(b,c)))},winHandler:function(a,b){return function(){a(),"function"==typeof b&&b()}},WLfuncs0:[],WLfuncs:[],runWLfuncs:function(a){a.winLoaded=!0,a.callArray(a.WLfuncs0),a.callArray(a.WLfuncs),a.onDoneEmptyDiv&&a.onDoneEmptyDiv()},winLoaded:!1,$$onWindowLoaded:function(a){return function(b){a.winLoaded?a.call(b):a.fPush(b,a.WLfuncs)}},div:null,divID:"plugindetect",divWidth:50,pluginSize:1,emptyDiv:function(){var a,b,c,d,e,f=this;if(f.div&&f.div.childNodes)for(a=f.div.childNodes.length-1;a>=0;a--){if(c=f.div.childNodes[a],c&&c.childNodes)for(b=c.childNodes.length-1;b>=0;b--){e=c.childNodes[b];try{c.removeChild(e)}catch(g){}}if(c)try{f.div.removeChild(c)}catch(g){}}if(f.div||(d=document.getElementById(f.divID),d&&(f.div=d)),f.div&&f.div.parentNode){try{f.div.parentNode.removeChild(f.div)}catch(g){}f.div=null}},DONEfuncs:[],onDoneEmptyDiv:function(){var a,b,c=this;if(c.winLoaded&&(!c.WLfuncs||!c.WLfuncs.length||null===c.WLfuncs[c.WLfuncs.length-1])){for(a in c)if(b=c[a],b&&b.funcs){if(3==b.OTF)return;if(b.funcs.length&&null!==b.funcs[b.funcs.length-1])return}for(a=0;ai||0>g||0>i||0>k||k<=e.pluginSize||e.pluginSize<1)return 0;if(g>=k)return-1;try{if(g==e.pluginSize&&(!e.isIE||4==e.getDOMobj(a).readyState)){if(!a.winLoaded&&e.winLoaded)return 1;if(a.winLoaded&&e.isNum(d)&&(e.isNum(a.count)||(a.count=d),d-a.count>=10))return 1}}catch(l){}return 0},getDOMobj:function(a,b){var c=this,d=a?a.span:0,e=d&&d.firstChild?1:0;try{e&&b&&c.div.focus()}catch(f){}return e?d.firstChild:null},setStyle:function(a,b){var c,d=a.style;if(d&&b)for(c=0;c.'+c.openTag+"/div>"),e=f.getElementById(d)}catch(h){}g=f.getElementsByTagName("body")[0]||f.body,g&&(g.insertBefore(a,g.firstChild),e&&g.removeChild(e))},insertHTML:function(a,b,c,d,e){var f,g,h,i=document,j=this,k=i.createElement("span"),l=["outlineStyle","none","borderStyle","none","padding","0px","margin","0px","visibility","visible"],m="outline-style:none;border-style:none;padding:0px;margin:0px;visibility:visible;";if(j.isDefined(d)||(d=""),j.isString(a)&&/[^\s]/.test(a)){for(a=a.toLowerCase().replace(/\s/g,""),f=j.openTag+a+' width="'+j.pluginSize+'" height="'+j.pluginSize+'" ',f+='style="'+m+'display:inline;" ',g=0;g",g=0;g ');f+=d+j.openTag+"/"+a+">"}else f=d;if(j.div||(h=i.getElementById(j.divID),h?j.div=h:(j.div=i.createElement("div"),j.div.id=j.divID),j.setStyle(j.div,l.concat(["width",j.divWidth+"px","height",j.pluginSize+3+"px","fontSize",j.pluginSize+3+"px","lineHeight",j.pluginSize+3+"px","verticalAlign","baseline","display","block"])),h||(j.setStyle(j.div,["position","absolute","right","0px","top","0px"]),j.insertDivInBody(j.div))),j.div&&j.div.parentNode){j.setStyle(k,l.concat(["fontSize",j.pluginSize+3+"px","lineHeight",j.pluginSize+3+"px","verticalAlign","baseline","display","inline"]));try{k.innerHTML=f}catch(n){}try{j.div.appendChild(k)}catch(n){}return{span:k,winLoaded:j.winLoaded,tagName:a,outerHTML:f}}return{span:null,winLoaded:j.winLoaded,tagName:"",outerHTML:f}},Plugins:{quicktime:{mimeType:["video/quicktime","application/x-quicktimeplayer","image/x-macpaint","image/x-quicktime"],progID:"QuickTimeCheckObject.QuickTimeCheck.1",progID0:"QuickTime.QuickTime",classID:"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",minIEver:7,HTML:' ',getCodeBaseVersion:function(a){return'codebase="#version='+a+'"'},SEARCH:{min:0,max:0,match:0,digits:[16,128,128,0]},getVersion:function(a){var b,c=this,d=c.$,e=null,f=null;if(d.isIE){if(d.isStrNum(a)&&(b=a.split(d.splitNumRegx),b.length>3&&parseInt(b[3],10)>0&&(b[3]="9999"),a=b.join(",")),d.isStrNum(a)&&d.verIE>=c.minIEver&&c.canUseIsMin()>0)return c.installed=c.isMin(a),void(c.getVersionDone=0);c.getVersionDone=1,!e&&d.verIE>=c.minIEver&&(e=c.CDBASE2VER(d.codebaseSearch(c))),e||(f=d.getAXO(c.progID),f&&f.QuickTimeVersion&&(e=f.QuickTimeVersion.toString(16),e=parseInt(e.charAt(0),16)+"."+parseInt(e.charAt(1),16)+"."+parseInt(e.charAt(2),16)))}else d.hasMimeType(c.mimeType)&&(f=3!=d.OS?d.findNavPlugin("QuickTime.*Plug-?in",0):null,f&&f.name&&(e=d.getNum(f.name)));c.installed=e?1:f?0:-1,c.version=d.formatNum(e,3)},cdbaseUpper:["7,60,0,0","0,0,0,0"],cdbaseLower:["7,50,0,0",null],cdbase2ver:[function(a,b){var c=b.split(a.$.splitNumRegx);return[c[0],c[1].charAt(0),c[1].charAt(1),c[2]].join(",")},null],CDBASE2VER:function(a){var b,c=this,d=c.$,e=c.cdbaseUpper,f=c.cdbaseLower;if(a)for(a=d.formatNum(a),b=0;b=0&&c.cdbase2ver[b])return c.cdbase2ver[b](c,a);return a},canUseIsMin:function(){var a,b=this,c=b.$,d=b.canUseIsMin,e=b.cdbaseUpper,f=b.cdbaseLower;if(!d.value)for(d.value=-1,a=0;a2;a--)if(i=g.getAXO(f.progID+"."+a)){j=a.toString();break}if(i||(i=g.getAXO(f.progID)),"6"==j)try{i.AllowScriptAccess="always"}catch(k){return"6,0,21,0"}try{h=e(i.GetVariable("$version"))}catch(k){}!h&&j&&(h=j)}else{if(c=g.hasMimeType(f.mimeType)){b=g.getDOMobj(g.insertHTML("object",["type",f.mimeType],[],"",f));try{h=g.getNum(b.GetVariable("$version"))}catch(k){}}h||(d=c?c.enabledPlugin:null,d&&d.description&&(h=e(d.description)),h&&(h=g.getPluginFileVersion(d,h)))}return f.installed=h?1:-1,f.version=g.formatNum(h),!0}},shockwave:{mimeType:"application/x-director",progID:"SWCtl.SWCtl",classID:"clsid:166B1BCA-3F9C-11CF-8075-444553540000",getVersion:function(){var a,b=null,c=null,d=this,e=d.$;if(e.isIE){try{c=e.getAXO(d.progID).ShockwaveVersion("")}catch(f){}e.isString(c)&&c.length>0?b=e.getNum(c):e.getAXO(d.progID+".8")?b="8":e.getAXO(d.progID+".7")?b="7":e.getAXO(d.progID+".1")&&(b="6")}else a=e.findNavPlugin("Shockwave\\s*for\\s*Director"),a&&a.description&&e.hasMimeType(d.mimeType)&&(b=e.getNum(a.description)),b&&(b=e.getPluginFileVersion(a,b));d.installed=b?1:-1,d.version=e.formatNum(b)}},zz:0}};PluginDetect.initScript();var gArgCountErr='The "%%" function requires an even number of arguments.\nArguments should be in the form "atttributeName", "attributeValue", ...',gTagAttrs=null,gQTGeneratorVersion=1;!function(){function a(a){return a=a||location.href,"#"+a.replace(/^[^#]*#?(.*)$/,"$1")}var b,c=document,d=$.event.special,e=c.documentMode,f="oniLightBoxHashChange"in window&&(void 0===e||e>7);$.fn.iLightBoxHashChange=function(a){return a?this.bind("iLightBoxHashChange",a):this.trigger("iLightBoxHashChange")},$.fn.iLightBoxHashChange.delay=50,d.iLightBoxHashChange=$.extend(d.iLightBoxHashChange,{setup:function(){return f?!1:void $(b.start)},teardown:function(){return f?!1:void $(b.stop)}}),b=function(){function b(){var c=a(),e=j(g);c!==g?(i(g=c,e),$(window).trigger("iLightBoxHashChange")):e!==g&&(location.href=location.href.replace(/#.*/,"")+e),d=setTimeout(b,$.fn.iLightBoxHashChange.delay)}var d,e={},g=a(),h=function(a){return a},i=h,j=h;return e.start=function(){d||b()},e.stop=function(){d&&clearTimeout(d),d=void 0},browser.msie&&!f&&function(){var d,f;e.start=function(){d||(f=(f=$.fn.iLightBoxHashChange.src)&&f+a(),d=$('').hide().one("load",function(){f||i(a()),b()}).attr("src",f||"javascript:0").insertAfter("body")[0].contentWindow,c.onpropertychange=function(){try{"title"===event.propertyName&&(d.document.title=c.title)}catch(a){}})},e.stop=h,j=function(){return a(d.location.href)},i=function(a,b){var e=d.document,f=$.fn.iLightBoxHashChange.domain;a!==b&&(e.title=c.title,e.open(),f&&e.write(''),e.close(),d.location.hash=a)}}(),e}()}(),Array.prototype.filter||(Array.prototype.filter=function(a){"use strict";if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if("function"!=typeof a)throw new TypeError;for(var d=[],e=arguments[1],f=0;c>f;f++)if(f in b){var g=b[f];a.call(e,g,f,b)&&d.push(g)}return d}),Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){var c;if(null==this)throw new TypeError('"this" is null or not defined');var d=Object(this),e=d.length>>>0;if(0===e)return-1;var f=+b||0;if(abs(f)===1/0&&(f=0),f>=e)return-1;for(c=max(f>=0?f:e-abs(f),0);e>c;){if(c in d&&d[c]===a)return c;c++}return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(a){"use strict";if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=c;arguments.length>1&&(d=Number(arguments[1]),d!=d?d=0:0!=d&&d!=1/0&&d!=-(1/0)&&(d=(d>0||-1)*floor(abs(d))));for(var e=d>=0?min(d,c-1):c-abs(d);e>=0;e--)if(e in b&&b[e]===a)return e;return-1})}(jQuery,this);var $avada_lightbox={},$il_instances=[];if($avada_lightbox.initialize_lightbox=function(){Boolean(Number(js_local_vars.status_lightbox))||($avada_lightbox.set_title_and_caption(),$avada_lightbox.activate_lightbox())},$avada_lightbox.activate_lightbox=function(){var a=[];jQuery('[data-rel^="prettyPhoto["], [rel^="prettyPhoto["], [data-rel^="iLightbox["], [rel^="iLightbox["]').each(function(){for(var b=(jQuery(this).attr("href"),["bmp","gif","jpeg","jpg","png","tiff","tif","jfif","jpe","svg"]),c=0,d=0;d a").each(function(){var c=this.getAttribute("data-rel");null==c&&(c="iLightbox[tiled-gallery-"+b+"]",jQuery(this).attr("data-rel",c)),-1===jQuery.inArray(c,a)&&a.push(c)}),b++}),jQuery.each(a,function(a,b){$il_instances.push(jQuery('[data-rel="'+b+'"], [rel="'+b+'"]').iLightBox($avada_lightbox.prepare_options(b)))}),jQuery("a[rel='prettyPhoto'], a[data-rel='prettyPhoto'], a[rel='iLightbox'], a[data-rel='iLightbox']").each(function(){$il_instances.push(jQuery(this).iLightBox($avada_lightbox.prepare_options("single")))}),Boolean(Number(js_local_vars.lightbox_post_images))&&jQuery(".single-post .post-content a, #posts-container .post .post-content a, .fusion-blog-shortcode .post .post-content a").has("img").each(function(){for(var a=["bmp","gif","jpeg","jpg","png","tiff","tif","jfif","jpe","svg"],b=0,c=0;c
').after('
'),jQuery(".cart-collaterals select#calc_shipping_country, .widget_layered_nav select").wrap('
').after('
'),jQuery(".cart-collaterals select#calc_shipping_state").after('
'),setTimeout(function(){jQuery("#billing_country_field .chosen-container").length||jQuery("#billing_country_field .select2-container").length||(jQuery("#billing_country_field select.country_select").wrap('
').after(' '),!jQuery("#billing_state_field select.state_select").length||jQuery("#billing_state_field .chosen-container").length||jQuery("#billing_state_field .select2-container").length||jQuery("#billing_state_field").addClass("avada-select-parent").append('
'),jQuery("#billing_country").change(function(){setTimeout(function(){(jQuery("#billing_state_field input#billing_state").length||jQuery("#billing_state_field").is(":hidden"))&&(jQuery("#billing_state_field .select-arrow").remove(),jQuery("#billing_state_field").removeClass("avada-select-parent")),jQuery("#billing_state_field select.state_select").length&&(jQuery("#billing_state_field").addClass("avada-select-parent"),jQuery("#billing_state_field .select-arrow").length||(jQuery("#billing_state_field").append('
'),calc_select_arrow_dimensions()))},1)})),jQuery("#shipping_country_field .chosen-container").length||jQuery("#shipping_country_field .select2-container").length||(jQuery("#shipping_country_field select.country_select").wrap('
').after(' '),jQuery("#shipping_state_field select.state_select").length&&jQuery("#shipping_state_field").addClass("avada-select-parent").append('
'),jQuery("#shipping_country").change(function(){setTimeout(function(){(jQuery("#shipping_state_field input#shipping_state").length||jQuery("#shipping_state_field").is(":hidden"))&&(jQuery("#shipping_state_field .select-arrow").remove(),jQuery("#shipping_state_field").removeClass("avada-select-parent")),jQuery("#shipping_state_field select.state_select").length&&(jQuery("#shipping_state_field").addClass("avada-select-parent"),jQuery("#shipping_state_field .select-arrow").length||(jQuery("#shipping_state_field").append('
'),calc_select_arrow_dimensions()))},1)}))},1),jQuery("#calc_shipping_country").change(function(){setTimeout(function(){jQuery(".avada-shipping-calculator-form select#calc_shipping_state").length&&!jQuery(".avada-shipping-calculator-form #calc_shipping_state").parent().find(".select-arrow").length&&jQuery(".avada-shipping-calculator-form select#calc_shipping_state").after('
'),jQuery(".avada-shipping-calculator-form input#calc_shipping_state").length&&jQuery(".avada-shipping-calculator-form #calc_shipping_state").parent().children(".select-arrow").remove(),calc_select_arrow_dimensions()},1)}),jQuery("table.variations select, .variations-table select, .product-addon select").wrap('
'),jQuery('
').appendTo("table.variations .avada-select-parent, .variations-table .avada-select-parent, .product-addon .avada-select-parent"),jQuery(".wpcf7-select:not([multiple])").wrap('
'),jQuery('
').appendTo(".wpcf7-select-parent"),wrap_gravity_selects(),jQuery("#bbp_stick_topic_select, #bbp_topic_status_select, #bbp_forum_id, #bbp_destination_topic").wrap('
').after('
'),jQuery(".variations_form select").change(function(){jQuery(".product #slider").length&&jQuery(".product #slider").flexslider(0)}),jQuery(".widget_categories select, .widget_archive select ").css("width","100%"),jQuery(".widget_categories select, .widget_archive select ").wrap('
').after('
')),calc_select_arrow_dimensions()}),jQuery(document).bind("gform_post_conditional_logic",function(){var a=jQuery(".gform_wrapper select");jQuery(a).each(function(){jQuery(this).hasClass("chzn-done")&&jQuery(this).parent().hasClass("gravity-select-parent")&&(jQuery(this).parent().find(".select-arrow").remove(),jQuery(this).unwrap('
'))})}),recursive_gform_submission_handler(),jQuery(document).ready(function(){function a(){jQuery("html").niceScroll({background:"#555",scrollspeed:60,mousescrollstep:40,cursorwidth:9,cursorborder:"0px",cursorcolor:"#303030",cursorborderradius:8,preservenativescrolling:!0,cursoropacitymax:1,cursoropacitymin:1,autohidemode:!1,zindex:999999,horizrailenabled:!1}),jQuery("html").getNiceScroll().length?jQuery("html").addClass("no-overflow-y"):jQuery("html").removeClass("no-overflow-y")}var b=js_local_vars.smooth_scrolling;setTimeout(function(){0==b&&!Modernizr.mq("screen and (max-width: "+(800+parseInt(js_local_vars.side_header_width))+"px)")&&jQuery("body").outerHeight(!0)>jQuery(window).height()&&!navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini)/)?a():jQuery("html").removeClass("no-overflow-y")},50),jQuery(window).resize(function(){var b=js_local_vars.smooth_scrolling;0==b&&!Modernizr.mq("screen and (max-width: "+(800+parseInt(js_local_vars.side_header_width))+"px)")&&jQuery("body").outerHeight(!0)>jQuery(window).height()&&!navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini)/)?a():(jQuery("html").getNiceScroll().remove(),jQuery("html").removeClass("no-overflow-y"),jQuery("html").css("overflow-y","auto"),jQuery("#ascrail2000").css("opacity","1"))})}),jQuery(window).load(function(){jQuery(".bbp-template-notice").each(function(){jQuery(this).hasClass("info")?jQuery(this).attr("class","fusion-alert alert notice alert-dismissable alert-info alert-shadow"):jQuery(this).attr("class","fusion-alert alert notice alert-dismissable alert-warning alert-shadow"),jQuery(this).children("tt").contents().unwrap(),jQuery(this).children("p").contents().unwrap(),jQuery(this).prepend('× '),jQuery(this).children(".close").click(function(a){a.preventDefault(),jQuery(this).parent().slideUp()})}),jQuery(".bbp-login-form").each(function(){jQuery(this).children("tt").contents().unwrap()})}),jQuery(function(a){if("undefined"!=typeof js_local_vars.woocommerce_23){var b=a("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").find("qty");b&&"date"!=b.prop("type")&&(a("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass("buttons_added").append(' ').prepend(' '),a("input.qty:not(.product-quantity input.qty)").each(function(){var b=parseFloat(a(this).attr("min"));b&&b>0&&parseFloat(a(this).val())d)?d:c+parseFloat(f)):e&&(e==c||e>c)?b.val(e):c>0&&b.val(c-parseFloat(f)),b.trigger("change")}))}}),jQuery(window).load(function(){function a(a){var b=a.height();a.find("img").each(function(){$img_height=jQuery(this).height(),$img_heightb&&(b=$img_height)}),a.css("height",b)}jQuery(window).resize(function(){jQuery(".crossfade-images").each(function(){b(jQuery(this)),a(jQuery(this))})}),jQuery(".crossfade-images").each(function(){b(jQuery(this)),a(jQuery(this))}),jQuery(".product-images").each(function(){!jQuery(this).find("img").length&&jQuery(this).find(".onsale").length&&jQuery(this).css("min-height","45px")}),jQuery(".variations_form").on("change",".variations select",function(a){setTimeout(function(){var a=jQuery(".images").find("#slider img:eq(0)"),b=a.attr("src"),c=jQuery(".images").find("#carousel img:eq(0)");a.parent().attr("href",b),a.parent().attr("data-o_href",b),$avada_lightbox.refresh_lightbox(),c.attr("src",b),jQuery(" .images #slider .flex-active-slide").resize()},1)})}),function(a){!function(){if(!a.requestAnimationFrame){a.webkitRequestAnimationFrame&&(a.requestAnimationFrame=a.webkitRequestAnimationFrame,a.cancelAnimationFrame=a.webkitCancelAnimationFrame||a.webkitCancelRequestAnimationFrame);
var b=0;a.requestAnimationFrame=function(c){var d=(new Date).getTime(),e=Math.max(0,16-(d-b)),f=a.setTimeout(function(){c(d+e)},e);return b=d+e,f},a.cancelAnimationFrame=function(a){clearTimeout(a)}}}(),"function"==typeof define&&define(function(){return a.requestAnimationFrame})}(window),"undefined"==typeof _fusionImageParallaxImages)var _fusionImageParallaxImages=[],_fusionScrollTop,_fusionWindowHeight,_fusionScrollLeft,_fusionWindowWidth;!function(a,b,c,d){function e(b,c){this.element=b,this.settings=a.extend({},g,c);var d=this.settings.align.split(" ");this.settings.xpos=d[0],2==d.length?this.settings.ypos=d[1]:this.settings.ypos="center",this._defaults=g,this._name=f,this.init()}var f="fusionImageParallax",g={direction:"up",mobileenabled:!1,mobiledevice:!1,width:"",height:"",align:"center",opacity:"1",velocity:".3",image:"",target:"",repeat:!1,loopScroll:"",loopScrollTime:"2",removeOrig:!1,complete:function(){}};a.extend(e.prototype,{init:function(){""===this.settings.target&&(this.settings.target=a(this.element)),""===this.settings.image&&"undefined"!=typeof a(this.element).css("backgroundImage")&&""!==a(this.element).css("backgroundImage")&&(this.settings.image=a(this.element).css("backgroundImage").replace(/url\(|\)|"|'/g,"")),_fusionImageParallaxImages.push(this),this.setup(),this.settings.complete(),this.containerWidth=0,this.containerHeight=0},setup:function(){this.settings.removeOrig!==!1&&a(this.element).remove(),this.resizeParallaxBackground()},doParallax:function(){if((!this.settings.mobiledevice||this.settings.mobileenabled)&&this.isInView()){var a=this.settings.target.find(".parallax-inner");a.css({minHeight:"150px"});var b=this.settings.target.width()+parseInt(this.settings.target.css("paddingRight"))+parseInt(this.settings.target.css("paddingLeft")),c=this.settings.target.height()+parseInt(this.settings.target.css("paddingTop"))+parseInt(this.settings.target.css("paddingBottom"));if(0===this.containerWidth||0===this.containerHeight||b===this.containerWidth&&c===this.containerHeight||this.resizeParallaxBackground(),this.containerWidth=b,this.containerHeight=c,"undefined"!=typeof a&&0!==a.length){var d=(_fusionScrollTop-this.scrollTopMin)/(this.scrollTopMax-this.scrollTopMin),e=this.moveMax*d;"down"===this.settings.direction&&(e*=1.25),("left"==this.settings.direction||"up"==this.settings.direction)&&(e*=-1);var f="translate3d(",g="px, -2px, 0px)",h="translate3d(0px, ",i="px, 0px)";"undefined"!=typeof _fusionParallaxIE9&&(f="translate(",g="px, 0px)",h="translate(0px, ",i="px)"),"no-repeat"==a.css("background-repeat")&&("down"==this.settings.direction&&0>e?e=0:"up"==this.settings.direction&&e>0?e=0:"right"==this.settings.direction&&0>e?e=0:"left"==this.settings.direction&&e>0&&(e=0)),"fixed"===this.settings.direction||a.css("left"===this.settings.direction||"right"===this.settings.direction?{webkitTransform:f+e+g,mozTransform:f+e+g,msTransform:f+e+g,oTransform:f+e+g,transform:f+e+g}:{webkitTransform:h+e+i,mozTransform:h+e+i,msTransform:h+e+i,oTransform:h+e+i,transform:h+e+i})}}},isInView:function(){var a=this.settings.target;if("undefined"!=typeof a&&0!==a.length){var b=a.offset().top,c=a.height()+parseInt(a.css("paddingTop"))+parseInt(a.css("paddingBottom"));return _fusionScrollTop>b+c||b>_fusionScrollTop+_fusionWindowHeight?!1:!0}},resizeParallaxBackground:function(){var a=this.settings.target;if("undefined"!=typeof a&&0!==a.length){var c="true"===this.settings.repeat||this.settings.repeat===!0||1===this.settings.repeat;if("none"===this.settings.direction){var d=a.width()+parseInt(a.css("paddingRight"))+parseInt(a.css("paddingLeft")),e=a.offset().left;"center"===this.settings.align?e="50% 50%":"left"===this.settings.align?e="0% 50%":"right"===this.settings.align?e="100% 50%":"top"===this.settings.align?e="50% 0%":"bottom"===this.settings.align&&(e="50% 100%"),a.css({opacity:Math.abs(parseFloat(this.settings.opacity)/100),backgroundSize:"cover",backgroundAttachment:"scroll",backgroundPosition:e,backgroundRepeat:"no-repeat"}),""!==this.settings.image&&"none"!==this.settings.image&&a.css({opacity:Math.abs(parseFloat(this.settings.opacity)/100),backgroundImage:"url("+this.settings.image+")"})}else if("fixed"===this.settings.direction)a.css({backgroundAttachment:"fixed",backgroundRepeat:"repeat"}),""!==this.settings.image&&"none"!==this.settings.image&&a.attr("style","background-image: url("+this.settings.image+") !important;"+a.attr("style"));else if("left"===this.settings.direction||"right"===this.settings.direction){var d=a.width()+parseInt(a.css("paddingRight"))+parseInt(a.css("paddingLeft")),f=a.height()+4+parseInt(a.css("paddingTop"))+parseInt(a.css("paddingBottom")),g=d;d+=400*Math.abs(parseFloat(this.settings.velocity));var h=0;"right"===this.settings.direction&&(h-=d-g),a.find(".parallax-inner").length<1&&a.prepend('
'),a.css({position:"relative",overflow:"hidden",zIndex:1,"background-image":"none"}).attr("style",a.attr("style")).find(".parallax-inner").css({pointerEvents:"none",width:d,height:f,position:"absolute",zIndex:-1,top:0,left:h,opacity:Math.abs(parseFloat(this.settings.opacity)/100),backgroundPosition:c?"0 0 ":this.settings.xpos+" "+this.settings.ypos,backgroundRepeat:c?"repeat":"no-repeat",backgroundSize:c?"auto":"cover"}),""!==this.settings.image&&"none"!==this.settings.image&&a.find(".parallax-inner").css({opacity:Math.abs(parseFloat(this.settings.opacity)/100),backgroundImage:"url("+this.settings.image+")",filter:jQuery(".ua-ie-8").length&&!c?"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.settings.image+"', sizingMethod='scale')":"","-ms-filter":jQuery(".ua-ie-8").length&&!c?"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.settings.image+"', sizingMethod='scale')":""});var i=0;a.offset().top>_fusionWindowHeight&&(i=a.offset().top-_fusionWindowHeight);var j=a.offset().top+a.height()+parseInt(a.css("paddingTop"))+parseInt(a.css("paddingBottom"));this.moveMax=d-g,this.scrollTopMin=i,this.scrollTopMax=j}else{var k=900,k=jQuery(b).height(),d=a.width()+parseInt(a.css("paddingRight"))+parseInt(a.css("paddingLeft")),f=a.height()+parseInt(a.css("paddingTop"))+parseInt(a.css("paddingBottom")),l=f;f+=k*Math.abs(parseFloat(this.settings.velocity));var m=0;"down"===this.settings.direction&&(m-=f-l),a.find(".parallax-inner").length<1&&a.prepend('
'),a.css({position:"relative",overflow:"hidden",zIndex:1,"background-image":"none"}).attr("style",a.attr("style")).find(".parallax-inner").css({pointerEvents:"none",width:d,height:f,position:"absolute",zIndex:-1,top:m,left:0,opacity:Math.abs(parseFloat(this.settings.opacity)/100),backgroundPosition:c?"0 0 ":this.settings.xpos+" "+this.settings.ypos,backgroundRepeat:c?"repeat":"no-repeat",backgroundSize:c?"auto":"cover"}),""!==this.settings.image&&"none"!==this.settings.image&&a.find(".parallax-inner").css({opacity:Math.abs(parseFloat(this.settings.opacity)/100),backgroundImage:"url("+this.settings.image+")",filter:jQuery(".ua-ie-8").length&&!c?"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.settings.image+"', sizingMethod='scale')":"","-ms-filter":jQuery(".ua-ie-8").length&&!c?"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.settings.image+"', sizingMethod='scale')":""});var i=0;a.offset().top>_fusionWindowHeight&&(i=a.offset().top-_fusionWindowHeight);var j=a.offset().top+a.height()+parseInt(a.css("paddingTop"))+parseInt(a.css("paddingBottom"));this.moveMax=f-l,this.scrollTopMin=i,this.scrollTopMax=j}}},isMobile:function(){return jQuery(b).width()<=800||Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait)")||Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape)")||b.screen.width<=1e3&&b.devicePixelRatio>1}}),a.fn[f]=function(b){return this.each(function(){a.data(this,"plugin_"+f)||a.data(this,"plugin_"+f,new e(this,b))}),this}}(jQuery,window,document),jQuery(document).ready(function(a){"use strict";function b(){_fusionRefreshScroll();for(var a=0;a<_fusionImageParallaxImages.length;a++)_fusionImageParallaxImages[a].doParallax();requestAnimationFrame(b)}a(window).on("scroll touchmove touchstart touchend gesturechange",function(a){requestAnimationFrame(_fusionParallaxAll)}),(Modernizr.touch&&jQuery(window).width()<=1024||window.screen.width<=1281&&window.devicePixelRatio>1)&&requestAnimationFrame(b),a(window).on("resize",function(){setTimeout(function(){var a=jQuery;_fusionRefreshWindow(),a.each(_fusionImageParallaxImages,function(a,b){b.resizeParallaxBackground()})},1)}),setTimeout(function(){var a=jQuery;_fusionRefreshWindow(),a.each(_fusionImageParallaxImages,function(a,b){b.resizeParallaxBackground()})},1),setTimeout(function(){var a=jQuery;_fusionRefreshWindow(),a.each(_fusionImageParallaxImages,function(a,b){b.resizeParallaxBackground()})},100)}),jQuery(window).load(function(){setTimeout(function(){var a=jQuery;_fusionRefreshWindow(),a.each(_fusionImageParallaxImages,function(a,b){b.resizeParallaxBackground()})},1),setTimeout(function(){var a=jQuery;_fusionRefreshWindow(),a.each(_fusionImageParallaxImages,function(a,b){b.resizeParallaxBackground()})},1e3)}),jQuery(document).ready(function(a){"use strict";function b(){return Modernizr.touch&&jQuery(window).width()<=1e3||window.screen.width<=1281&&window.devicePixelRatio>1}b()&&a(".fusion-bg-parallax.video > div").remove(),a(".fusion-bg-parallax").next().addClass("bg-parallax-parent"),a(".fusion-bg-parallax").attr("style","").css("display","none"),a(".fusion-bg-parallax").each(function(){a(this).fusionImageParallax({image:a(this).data("bg-image"),direction:a(this).data("direction"),mobileenabled:a(this).data("mobile-enabled"),mobiledevice:b(),opacity:a(this).data("opacity"),width:a(this).data("bg-width"),height:a(this).data("bg-height"),velocity:a(this).data("velocity"),align:a(this).data("bg-align"),repeat:a(this).data("bg-repeat"),target:a(this).next(),complete:function(){}})}),jQuery(".ua-ie-8").length||a(".fusion-parallax-fixed").each(function(){a(this).css({filter:"","-ms-filter":""})})});var $youtubeBGVideos={};jQuery(document).ready(function(a){function b(a){var b=document.getElementById(a).parentElement,c=$f(a);""!=jQuery(b).data("mute")&&c.api("setVolume","0"),c.addEvent("playProgress",function(a,c){jQuery(b).css("visibility","visible")})}if(!a("body").hasClass("vc_editor")){a(".bg-parallax.video, .fusion-bg-parallax.video").each(function(){a(this).prependTo(a(this).next().addClass("video")),a(this).css({opacity:Math.abs(parseFloat(a(this).attr("data-opacity"))/100)})});var c=a("[data-youtube-video-id], [data-vimeo-video-id]").parent();c.css("overflow","hidden"),a("[data-youtube-video-id], [data-vimeo-video-id]").each(function(){var b=a(this);setTimeout(function(){resizeVideo(b)},100)}),a("[data-youtube-video-id], [data-vimeo-video-id]").each(function(){var b=a(this);setTimeout(function(){resizeVideo(b)},1e3)}),a(window).resize(function(){a("[data-youtube-video-id], [data-vimeo-video-id]").each(function(){var b=a(this);setTimeout(function(){resizeVideo(b)},2)})});var d=a("[data-vimeo-video-id]");d.length>0&&a.getScript("//a.vimeocdn.com/js/froogaloop2.min.js?97273-1352487961").done(function(a,c){for(var d,e=document.querySelectorAll("iframe"),f=0,g=e.length;g>f;f++)d=e[f],$f(d).addEvent("ready",b)})}}),jQuery(window).load(function(){jQuery("[data-youtube-video-id], [data-vimeo-video-id]").each(function(){var a=jQuery(this);setTimeout(function(){resizeVideo(a)},500)})}),jQuery(document).ready(function(){"use strict";jQuery.fn.fusion_position_menu_dropdown=function(a){return jQuery(this).children(".sub-menu").each("Top"==js_local_vars.header_position&&!jQuery("body.rtl").length||"Left"==js_local_vars.header_position?function(){jQuery(this).removeAttr("style"),jQuery(this).show(),jQuery(this).removeData("shifted");var a=jQuery(this);if(a.length){var b=a.offset(),c=b.left,d=b.top,e=a.height(),f=a.outerWidth(),g=d+e,h=c+f,i=jQuery(window).height(),j=jQuery(window).width();if(jQuery("#wpadminbar").length)var k=jQuery("#wpadminbar").height();else var k=0;if(jQuery("#side-header").length)var l=jQuery("#side-header").offset().top-k;if(h>j?(a.parent().parent(".sub-menu").parent().parent(".sub-menu").length?a.css({left:"0",top:a.parent().parent(".sub-menu").height()}):a.parent().parent(".sub-menu").length?a.css({left:-1*f}):a.css("left",-1*f+a.parent().width()),a.data("shifted",1)):a.parent().parent(".sub-menu").length&&a.parent().parent(".sub-menu").data("shifted")&&(a.css("left",-1*f),a.data("shifted",1)),"Top"!=js_local_vars.header_position&&g>l+i&&jQuery(window).height()>=jQuery(".side-header-wrapper").height()){if(i>e)var m=-1*(g-l-i+20);else var m=-1*(d-k);a.css("top",m)}}}:function(){jQuery(this).removeAttr("style"),jQuery(this).removeData("shifted");var a=jQuery(this);if(a.length){var b=a.offset(),c=b.left,d=b.top,e=a.height(),f=a.outerWidth(),g=d+e,h=jQuery(window).height();if(jQuery("#wpadminbar").length)var i=jQuery("#wpadminbar").height();else var i=0;if(jQuery("#side-header").length)var j=jQuery("#side-header").offset().top-i;if(0>c?(a.parent().parent(".sub-menu").parent().parent(".sub-menu").length?a.css("Right"==js_local_vars.header_position?{left:"0",top:a.parent().parent(".sub-menu").height()}:{right:"0",top:a.parent().parent(".sub-menu").height()}):a.parent().parent(".sub-menu").length?a.css({right:-1*f}):a.css("right",-1*f+a.parent().width()),a.data("shifted",1)):a.parent().parent(".sub-menu").length&&a.parent().parent(".sub-menu").data("shifted")&&a.css("right",-1*f),"Top"!=js_local_vars.header_position&&g>j+h&&jQuery(window).height()>=jQuery(".side-header-wrapper").height()){if(h>e)var k=-1*(g-j-h+20);else var k=-1*(d-i);a.css("top",k)}}})},jQuery.fn.walk_through_menu_items=function(){jQuery(this).fusion_position_menu_dropdown(),jQuery(this).find(".sub-menu").length&&jQuery(this).find(".sub-menu li").walk_through_menu_items()},jQuery.fn.position_cart_dropdown=function(){"Top"!=js_local_vars.header_position&&jQuery(this).each(function(){jQuery(this).css("top","");var a=jQuery(this),b=a.offset().top,c=a.height(),d=b+c,e=jQuery("#wpadminbar").length?jQuery("#wpadminbar").height():0,f=jQuery("#side-header").offset().top-e,g=jQuery(window).height();if(d>f+g&&jQuery(window).height()>=jQuery(".side-header-wrapper").height()){if(g>c)var h=-1*(d-f-g+20);else var h=-1*(b-e);a.css("top",h)}})},jQuery.fn.position_menu_search_form=function(){"Top"!=js_local_vars.header_position&&jQuery(this).each(function(){jQuery(this).css("top","");var a=jQuery(this),b=a.offset().top,c=a.outerHeight(),d=b+c,e=jQuery("#wpadminbar").length?jQuery("#wpadminbar").height():0,f=jQuery("#side-header").offset().top-e,g=jQuery(window).height();if(d>f+g&&jQuery(window).height()>=jQuery(".side-header-wrapper").height()){var h=-1*(d-f-g+20);a.css("top",h)}})},jQuery.fn.fusion_position_megamenu=function(a){if(jQuery(".side-header-left").length)return this.each(function(){jQuery(this).children("li").each(function(){var a=jQuery(this),b=a.find(".fusion-megamenu-wrapper");if(b.length){b.removeAttr("style");var c=jQuery("#side-header").outerWidth()-1,d=b.offset().top,e=b.height(),f=d+e,g=jQuery("#wpadminbar").length?jQuery("#wpadminbar").height():0,h=jQuery("#side-header").offset().top-g,i=jQuery(window).height();if(jQuery("body.rtl").length?b.css({left:c,right:"auto"}):b.css("left",c),f>h+i&&jQuery(window).height()>=jQuery(".side-header-wrapper").height()){if(i>e)var j=-1*(f-h-i+20);else var j=-1*(d-g);b.css("top",j)}}})});if(jQuery(".side-header-right").length)return this.each(function(){jQuery(this).children("li").each(function(){var a=jQuery(this),b=a.find(".fusion-megamenu-wrapper");if(b.length){b.removeAttr("style");var c=-1*b.outerWidth(),d=b.offset().top,e=b.height(),f=d+e,g=jQuery("#wpadminbar").length?jQuery("#wpadminbar").height():0,h=jQuery("#side-header").offset().top-g,i=jQuery(window).height();if(jQuery("body.rtl").length?b.css({left:c,right:"auto"}):b.css("left",c),f>h+i&&jQuery(window).height()>=jQuery(".side-header-wrapper").height()){if(i>e)var j=-1*(f-h-i+20);else var j=-1*(d-g);b.css("top",j)}}})});var b="";if(b=jQuery(".header-v4").length?jQuery(this).parent(".fusion-main-menu").parent():jQuery(this).parent(".fusion-main-menu"),jQuery(this).parent(".fusion-main-menu").length){var c=b,d=c.offset(),e=c.width(),f=d.left,g=f+e;return this.each(jQuery("body.rtl").length?function(){jQuery(this).children("li").each(function(){var a=jQuery(this),b=a.offset(),c=b.left+a.outerWidth(),d=a.find(".fusion-megamenu-wrapper"),e=d.outerWidth(),h=0;if(d.length){d.removeAttr("style");var i;i=jQuery(jQuery(".fusion-secondary-main-menu").length?".fusion-header-wrapper .fusion-secondary-main-menu .fusion-row":".fusion-header-wrapper .fusion-row"),d.hasClass("col-span-12")&&i.width()c-e&&(h=-1*(e-(c-f)),("left"==js_local_vars.logo_alignment.toLowerCase()||"center"==js_local_vars.logo_alignment.toLowerCase()&&!jQuery(".header-v5").length||jQuery(this).parents(".sticky-header").length)&&c-h>g&&(h=-1*(g-c)),d.css("right",h))}})}:function(){jQuery(this).children("li").each(function(){var a=jQuery(this),b=a.offset(),c=a.find(".fusion-megamenu-wrapper"),d=c.outerWidth(),e=0;if(c.length){c.removeAttr("style");var h;h=jQuery(jQuery(".fusion-secondary-main-menu").length?".fusion-header-wrapper .fusion-secondary-main-menu .fusion-row":".fusion-header-wrapper .fusion-row"),c.hasClass("col-span-12")&&h.width()g&&(e=-1*(b.left-(g-d)),"right"==js_local_vars.logo_alignment.toLowerCase()&&b.left+ed?(a.css("width",d),a.parents(".fusion-megamenu-wrapper").hasClass("fusion-megamenu-fullwidth")||a.find(".fusion-megamenu-submenu").each(function(){var a=jQuery(this),c=a.data("width")*d/b;a.css("width",c)})):(a.css("width",b),a.parents(".fusion-megamenu-wrapper").hasClass("fusion-megamenu-fullwidth")||a.find(".fusion-megamenu-submenu").each(function(){jQuery(this).css("width",jQuery(this).data("width"))}))})},jQuery.fn.position_last_top_menu_item=function(a){if(jQuery(this).children("ul").length||jQuery(this).children("div").length){var b,c=jQuery(this),d=c.position().left,e=(c.outerWidth(),jQuery(".fusion-secondary-header .fusion-row")),f=e.position().left,g=e.outerWidth();c.children("ul").length?b=c.children("ul"):c.children("div").length&&(b=c.children("div")),jQuery("body.rtl").length?b.position().leftf+g&&(b.css("right","-1px").css("left","auto"),b.find(".sub-menu").each(function(){jQuery(this).css("right","100px").css("left","auto")}))}},jQuery(".fusion-main-menu > ul > li:last-child").addClass("fusion-last-menu-item"),cssua.ua.ie&&"8"==cssua.ua.ie.substr(0,1)&&jQuery(".fusion-header-shadow").removeClass("fusion-header-shadow"),jQuery.fn.fusion_position_menu_dropdown&&(jQuery(".fusion-dropdown-menu, .fusion-dropdown-menu li").mouseenter(function(){jQuery(this).fusion_position_menu_dropdown()}),jQuery(".fusion-dropdown-menu > ul > li").each(function(){jQuery(this).walk_through_menu_items()}),jQuery(window).on("resize",function(){jQuery(".fusion-dropdown-menu > ul > li").each(function(){jQuery(this).walk_through_menu_items()})})),jQuery(".fusion-dropdown-menu ").mouseenter(function(){jQuery(this).css("overflow","visible")}),jQuery(".fusion-dropdown-menu").mouseleave(function(){jQuery(this).css("overflow","")}),jQuery(document).click(function(){jQuery(".fusion-main-menu-search .fusion-custom-menu-item-contents").hide(),jQuery(".fusion-main-menu-search").removeClass("fusion-main-menu-search-open")}),jQuery(".fusion-main-menu-search").click(function(a){a.stopPropagation()}),jQuery(".fusion-main-menu-search .fusion-main-menu-icon").click(function(a){a.stopPropagation(),"block"==jQuery(this).parent().find(".fusion-custom-menu-item-contents").css("display")?(jQuery(this).parent().find(".fusion-custom-menu-item-contents").hide(),jQuery(this).parent().removeClass("fusion-main-menu-search-open")):(jQuery(this).parent().find(".fusion-custom-menu-item-contents").removeAttr("style"),jQuery(this).parent().find(".fusion-custom-menu-item-contents").show(),jQuery(this).parent().addClass("fusion-main-menu-search-open"),"Top"==js_local_vars.header_position&&(!jQuery("body.rtl").length&&jQuery(this).parent().find(".fusion-custom-menu-item-contents").offset().left<0&&jQuery(this).parent().find(".fusion-custom-menu-item-contents").css({left:"0",right:"auto"}),jQuery("body.rtl").length&&jQuery(this).parent().find(".fusion-custom-menu-item-contents").offset().left+jQuery(this).parent().find(".fusion-custom-menu-item-contents").width()>jQuery(window).width()&&jQuery(this).parent().find(".fusion-custom-menu-item-contents").css({left:"auto",right:"0"})))}),jQuery.fn.fusion_position_megamenu&&(jQuery(".fusion-main-menu > ul").fusion_position_megamenu(),jQuery(".fusion-main-menu .fusion-megamenu-menu").mouseenter(function(){jQuery(this).parent().fusion_position_megamenu()}),jQuery(window).resize(function(){jQuery(".fusion-main-menu > ul").fusion_position_megamenu()})),jQuery.fn.calc_megamenu_responsive_column_widths&&(jQuery(".fusion-main-menu > ul").calc_megamenu_responsive_column_widths(),jQuery(window).resize(function(){jQuery(".fusion-main-menu > ul").calc_megamenu_responsive_column_widths()})),jQuery(".fusion-header-wrapper .fusion-secondary-menu > ul > li:last-child").position_last_top_menu_item(),"Top"==js_local_vars.header_position&&(jQuery(".fusion-navbar-nav .cart").length&&jQuery(".fusion-navbar-nav .cart").mouseenter(function(a){!jQuery("body.rtl").length&&jQuery(this).find(".cart-contents").length&&jQuery(this).find(".cart-contents").offset().left<0&&jQuery(this).find(".cart-contents").css({left:"0",right:"auto"}),jQuery("body.rtl").length&&jQuery(this).find(".cart-contents").length&&jQuery(this).find(".cart-contents").offset().left+jQuery(this).find(".cart-contents").width()>jQuery(window).width()&&jQuery(this).find(".cart-contents").css({left:"auto",right:"0"})}),jQuery(window).on("resize",function(){jQuery(".fusion-navbar-nav .cart").find(".cart-contents").each(function(){var a=jQuery(this),b=a.outerWidth(),c=a.offset().left,d=c+b,e=a.parent().offset().left,f=jQuery(window).width();a.css(jQuery("body.rtl").length?c==e&&d>f||e>c&&d+b>f?{left:"auto",right:"0"}:{left:"0",right:"auto"}:e>c&&0>c||c==e&&0>c-b?{left:"0",right:"auto"}:{left:"auto",right:"0"})})})),jQuery(".fusion-megamenu-menu").mouseenter(function(){jQuery(this).find(".shortcode-map").length&&jQuery(this).find(".shortcode-map").each(function(){jQuery(this).reinitialize_google_map()})});var a=!1;jQuery(".fusion-megamenu-menu").mouseover(function(){jQuery(this).find(".fusion-megamenu-widgets-container iframe").each(function(){a||jQuery(this).attr("src",jQuery(this).attr("src")),a=!0})}),jQuery(".fusion-megamenu-wrapper iframe").mouseover(function(){jQuery(this).parents(".fusion-megamenu-widgets-container").css("display","block"),jQuery(this).parents(".fusion-megamenu-wrapper").css({opacity:"1",visibility:"visible"})}),jQuery(".fusion-megamenu-wrapper iframe").mouseout(function(){jQuery(this).parents(".fusion-megamenu-widgets-container").css("display",""),jQuery(this).parents(".fusion-megamenu-wrapper").css({opacity:"",visibility:""})}),jQuery(".fusion-navbar-nav .cart").find(".cart-contents").position_cart_dropdown(),jQuery(window).on("resize",function(){jQuery(".fusion-navbar-nav .cart").find(".cart-contents").position_cart_dropdown()}),jQuery(".fusion-navbar-nav .search-link").click(function(){setTimeout(function(){jQuery(".fusion-navbar-nav .search-link").parent().find(".main-nav-search-form").position_menu_search_form()},5)}),jQuery(window).on("resize",function(){jQuery(".fusion-navbar-nav .main-nav-search").find(".main-nav-search-form").position_menu_search_form()}),jQuery(".fusion-mobile-nav-holder").not(".fusion-mobile-sticky-nav-holder").each(function(){var a=jQuery(this),b="",c=jQuery(this).parent().find(".fusion-main-menu, .fusion-secondary-menu").not(".fusion-sticky-menu");"classic"==js_local_vars.mobile_menu_design&&(a.append(''+js_local_vars.dropdown_goto+"
"),jQuery(this).find(".fusion-mobile-selector").append('
')),jQuery(a).append(jQuery(c).find("> ul").clone()),b=jQuery(a).find("> ul"),b.find(".fusion-caret, .fusion-menu-login-box .fusion-custom-menu-item-contents, .fusion-menu-cart .fusion-custom-menu-item-contents, .fusion-main-menu-search, li> a > span > .button-icon-divider-left, li > a > span > .button-icon-divider-right").remove(),"classic"==js_local_vars.mobile_menu_design?b.find(".fusion-menu-cart > a").html(js_local_vars.mobile_nav_cart):b.find(".fusion-main-menu-cart").remove(),b.find("li").each(function(){jQuery(this).find("> a > .menu-text").removeAttr("class").addClass("menu-text");var a="fusion-mobile-nav-item";(jQuery(this).hasClass("current-menu-item")||jQuery(this).hasClass("current-menu-parent")||jQuery(this).hasClass("current-menu-ancestor"))&&(a+=" fusion-mobile-current-nav-item"),jQuery(this).attr("class",a),jQuery(this).attr("id")&&jQuery(this).attr("id",jQuery(this).attr("id").replace("menu-item","mobile-menu-item")),jQuery(this).attr("style","")}),jQuery(this).find(".fusion-mobile-selector").click(function(){b.hasClass("mobile-menu-expanded")?b.removeClass("mobile-menu-expanded"):b.addClass("mobile-menu-expanded"),b.slideToggle(200,"easeOutQuad")})}),jQuery(".fusion-mobile-sticky-nav-holder").each(function(){var a=jQuery(this),b="",c=jQuery(this).parent().find(".fusion-sticky-menu");"classic"==js_local_vars.mobile_menu_design&&(a.append(''+js_local_vars.dropdown_goto+"
"),jQuery(this).find(".fusion-mobile-selector").append('
')),jQuery(a).append(jQuery(c).find("> ul").clone()),b=jQuery(a).find("> ul"),b.find(".fusion-menu-cart, .fusion-menu-login-box, .fusion-main-menu-search").remove(),b.find("li").each(function(){var a="fusion-mobile-nav-item";(jQuery(this).hasClass("current-menu-item")||jQuery(this).hasClass("current-menu-parent")||jQuery(this).hasClass("current-menu-ancestor"))&&(a+=" fusion-mobile-current-nav-item"),jQuery(this).attr("class",a),jQuery(this).attr("id")&&jQuery(this).attr("id",jQuery(this).attr("id").replace("menu-item","mobile-menu-item")),jQuery(this).attr("style","")}),jQuery(this).find(".fusion-mobile-selector").click(function(){b.hasClass("mobile-menu-expanded")?b.removeClass("mobile-menu-expanded"):b.addClass("mobile-menu-expanded"),b.slideToggle(200,"easeOutQuad")})}),jQuery(".fusion-mobile-nav-holder > ul > li").each(function(){jQuery(this).find(".fusion-megamenu-widgets-container").remove(),jQuery(this).find(".fusion-megamenu-holder > ul").each(function(){jQuery(this).attr("class","sub-menu"),jQuery(this).attr("style",""),jQuery(this).find("> li").each(function(){var a="fusion-mobile-nav-item";if((jQuery(this).hasClass("current-menu-item")||jQuery(this).hasClass("current-menu-parent")||jQuery(this).hasClass("current-menu-ancestor")||jQuery(this).hasClass("fusion-mobile-current-nav-item"))&&(a+=" fusion-mobile-current-nav-item"),jQuery(this).attr("class",a),!jQuery(this).find(".fusion-megamenu-title a, > a").length&&(jQuery(this).find(".fusion-megamenu-title").each(function(){jQuery(this).children("a").length||jQuery(this).append(''+jQuery(this).text()+" ")}),!jQuery(this).find(".fusion-megamenu-title").length)){var b=jQuery(this);jQuery(this).find(".sub-menu").each(function(){b.after(jQuery(this))}),jQuery(this).remove()}jQuery(this).prepend(jQuery(this).find(".fusion-megamenu-title a, > a")),jQuery(this).find(".fusion-megamenu-title").remove()}),jQuery(this).closest(".fusion-mobile-nav-item").append(jQuery(this))}),jQuery(this).find(".fusion-megamenu-wrapper, .caret, .fusion-megamenu-bullet").remove()}),jQuery(".fusion-mobile-menu-icons .fusion-icon-bars").click(function(a){a.preventDefault();var b;b=jQuery(".fusion-header-v4").length>=1||jQuery(".fusion-header-v5").length>=1?".fusion-secondary-main-menu":jQuery("#side-header").length>=1?"#side-header":".fusion-header",jQuery(".fusion-is-sticky").length>=1&&jQuery(".fusion-mobile-sticky-nav-holder").length>=1?jQuery(b).find(".fusion-mobile-sticky-nav-holder").slideToggle(200,"easeOutQuad"):jQuery(b).find(".fusion-mobile-nav-holder").not(".fusion-mobile-sticky-nav-holder").slideToggle(200,"easeOutQuad")}),jQuery(".fusion-mobile-menu-icons .fusion-icon-search").click(function(a){a.preventDefault(),jQuery(".fusion-secondary-main-menu .fusion-secondary-menu-search, .side-header-wrapper .fusion-secondary-menu-search").slideToggle(200,"easeOutQuad")}),1==js_local_vars.submenu_slideout&&(jQuery(".fusion-mobile-nav-holder > ul li").each(function(){var a="fusion-mobile-nav-item";(jQuery(this).hasClass("current-menu-item")||jQuery(this).hasClass("current-menu-parent")||jQuery(this).hasClass("current-menu-ancestor")||jQuery(this).hasClass("fusion-mobile-current-nav-item"))&&(a+=" fusion-mobile-current-nav-item"),jQuery(this).attr("class",a),jQuery(this).find(" > ul").length&&(jQuery(this).prepend(''),jQuery(this).find(" > ul").hide())}),jQuery(".fusion-mobile-nav-holder .fusion-open-submenu").click(function(a){a.stopPropagation(),jQuery(this).parent().children(".sub-menu").slideToggle(200,"easeOutQuad")}))}),jQuery(window).load(function(){function a(){var a=0;Modernizr.mq("only screen and (max-width: 800px)")?(jQuery(".fusion-secondary-menu > ul").children("li").each(function(){a+=jQuery(this).outerWidth(!0)+2}),a>jQuery(window).width()&&jQuery(window).width()>318?k||(jQuery(".fusion-secondary-menu > ul").append(''),jQuery(".fusion-secondary-menu > ul").css("position","relative"),jQuery(".fusion-mobile-menu-sep").css({position:"absolute",top:jQuery(".fusion-secondary-menu > ul > li").height()-1+"px",width:"100%","border-bottom-width":"1px","border-bottom-style":"solid"}),k=!0):(jQuery(".fusion-secondary-menu > ul").css("position",""),jQuery(".fusion-secondary-menu > ul").find(".fusion-mobile-menu-sep").remove(),k=!1)):(jQuery(".fusion-secondary-menu > ul").css("position",""),jQuery(".fusion-secondary-menu > ul").find(".fusion-mobile-menu-sep").remove(),k=!1)}if("1"==js_local_vars.header_sticky&&(jQuery(".fusion-header-wrapper").length>=1||jQuery("#side-header").length>=1)){var b=300;"0"==js_local_vars.sticky_header_shrinkage&&(b=0);var c=jQuery(".fusion-header").parent();window.$header_parent_height=c.outerHeight(),window.$header_height=jQuery(".fusion-header").outerHeight();var d=parseInt(js_local_vars.nav_height),e=parseInt(js_local_vars.nav_highlight_border);window.$scrolled_header_height=65;var f=jQuery(".fusion-logo img:visible").length?jQuery(".fusion-logo img:visible"):"",g=!1;if(window.$sticky_trigger=jQuery(".fusion-header"),window.$sticky_trigger_position=window.$sticky_trigger.length?Math.round(window.$sticky_trigger.offset().top)-window.$wp_adminbar_height:0,window.$wp_adminbar_height=jQuery("#wpadminbar").length?jQuery("#wpadminbar").height():0,window.$sticky_header_type=1,window.$logo_height,window.$main_menu_height,
window.$slider_offset=0,window.$site_width=jQuery("#wrapper").outerWidth(),window.$media_query_test_1=Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1366px) and (orientation: portrait)")||Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape)"),window.$media_query_test_2=Modernizr.mq("screen and (max-width: 782px)"),window.$media_query_test_3=Modernizr.mq("screen and (max-width: "+(800+parseInt(js_local_vars.side_header_width))+"px)"),window.$media_query_test_4=Modernizr.mq("only screen and (max-width: 800px)"),"0"==js_local_vars.sticky_header_shrinkage&&(b=0,window.$scrolled_header_height=window.$header_height),f)if(f.hasClass("fusion-logo-2x")){var h=new Image;h.src=f.attr("src"),window.original_logo_height=parseInt(f.height())+parseInt(js_local_vars.logo_margin_top)+parseInt(js_local_vars.logo_margin_bottom)}else{var h=new Image;h.src=f.attr("src"),window.original_logo_height=parseInt(h.naturalHeight)+parseInt(js_local_vars.logo_margin_top)+parseInt(js_local_vars.logo_margin_bottom),h.onload=function(){window.original_logo_height=parseInt(this.height)+parseInt(js_local_vars.logo_margin_top)+parseInt(js_local_vars.logo_margin_bottom)}}(jQuery(".fusion-header-v4").length>=1||jQuery(".fusion-header-v5").length>=1)&&(window.$sticky_header_type=2,"menu_and_logo"==js_local_vars.header_sticky_type2_layout||Modernizr.mq("only screen and (max-width: 800px)")&&"modern"==js_local_vars.mobile_menu_design?window.$sticky_trigger=jQuery(".fusion-sticky-header-wrapper"):window.$sticky_trigger=jQuery(".fusion-secondary-main-menu"),window.$sticky_trigger_position=Math.round(window.$sticky_trigger.offset().top)-window.$wp_adminbar_height),1==window.$sticky_header_type&&(Modernizr.mq("only screen and (max-width: 800px)")?window.$scrolled_header_height=window.$header_height:window.$original_sticky_trigger_height=jQuery(window.$sticky_trigger).outerHeight()),2==window.$sticky_header_type&&("classic"==js_local_vars.mobile_menu_design&&jQuery(c).height(window.$header_parent_height),Modernizr.mq("only screen and (max-width: 800px)")?window.$scrolled_header_height=window.$header_parent_height:jQuery(c).height(window.$header_parent_height)),jQuery("#side-header").length>=1&&(window.$sticky_header_type=3);var i=jQuery(window).width(),j=jQuery(window).height();jQuery(window).resize(function(){if(window.$media_query_test_1=Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1366px) and (orientation: portrait)")||Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape)"),window.$media_query_test_2=Modernizr.mq("screen and (max-width: 782px)"),window.$media_query_test_3=Modernizr.mq("screen and (max-width: "+(800+parseInt(js_local_vars.side_header_width))+"px)"),window.$media_query_test_4=Modernizr.mq("only screen and (max-width: 800px)"),"1"!=js_local_vars.header_sticky_tablet&&window.$media_query_test_1?(jQuery(".fusion-header-wrapper, .fusion-header-sticky-height, .fusion-header, .fusion-logo, .fusion-header-wrapper .fusion-main-menu > li a, .fusion-header-wrapper .fusion-secondary-main-menu").attr("style",""),jQuery(".fusion-header-wrapper").removeClass("fusion-is-sticky")):"1"==js_local_vars.header_sticky_tablet&&window.$media_query_test_1&&(b=0),"1"!=js_local_vars.header_sticky_mobile&&window.$media_query_test_2?(jQuery(".fusion-header-wrapper, .fusion-header-sticky-height, .fusion-header, .fusion-logo, .fusion-header-wrapper .fusion-main-menu > li a, .fusion-header-wrapper .fusion-secondary-main-menu").attr("style",""),jQuery(".fusion-header-wrapper").removeClass("fusion-is-sticky")):"1"==js_local_vars.header_sticky_mobile&&window.$media_query_test_2&&(b=0),jQuery(window).width()!=i||jQuery(window).height()!=j){var a=parseInt(js_local_vars.nav_height),d=parseInt(js_local_vars.nav_highlight_border);if(jQuery("#wpadminbar").length&&(window.$wp_adminbar_height=jQuery("#wpadminbar").height()),jQuery("#wpadminbar").length>=1&&jQuery(".fusion-is-sticky").length>=1){var e=jQuery(".fusion-header");2==window.$sticky_header_type&&(e=jQuery("menu_only"!=js_local_vars.header_sticky_type2_layout||"classic"!=js_local_vars.mobile_menu_design&&window.$media_query_test_4?".fusion-sticky-header-wrapper":".fusion-secondary-main-menu")),jQuery(".fusion-header, .fusion-sticky-header-wrapper, .fusion-secondary-main-menu").css("top",""),jQuery(e).css("top",window.$wp_adminbar_height)}if(1==window.$sticky_header_type){if(jQuery(".fusion-secondary-header").length?window.$sticky_trigger_position=Math.round(jQuery(".fusion-secondary-header").offset().top)-window.$wp_adminbar_height+jQuery(".fusion-secondary-header").outerHeight():window.$sticky_trigger_position=Math.round(jQuery(".fusion-header").offset().top)-window.$wp_adminbar_height,!Modernizr.mq("only screen and (max-width: 800px)")){var g=jQuery(".fusion-logo img:visible").outerHeight()+parseInt(js_local_vars.logo_margin_top)+parseInt(js_local_vars.logo_margin_bottom);jQuery(".fusion-is-sticky").length&&window.original_logo_height>a+d?window.$header_height=window.original_logo_height:jQuery(".fusion-main-menu").outerWidth()>jQuery(".fusion-header .fusion-row").width()-jQuery(".fusion-logo img:visible").outerWidth()?window.$header_height=jQuery(".fusion-main-menu").outerHeight()+g:window.original_logo_height>a+d?window.$header_height=window.original_logo_height:window.$header_height=a+d,window.$header_height+=parseInt(js_local_vars.header_padding_top)+parseInt(js_local_vars.header_padding_bottom),window.$scrolled_header_height=65,"0"==js_local_vars.sticky_header_shrinkage&&(window.$scrolled_header_height=window.$header_height),jQuery(".fusion-header-sticky-height").css("height",window.$header_height),jQuery(".fusion-header").css("height",window.$header_height)}Modernizr.mq("only screen and (max-width: 800px)")&&(window.$header_height=jQuery(".fusion-header").outerHeight(),window.$scrolled_header_height=window.header_height,jQuery(".fusion-header-sticky-height").css("height",$scrolled_header_height),jQuery(".fusion-header").css("height",""))}if(2==window.$sticky_header_type&&("modern"==js_local_vars.mobile_menu_design&&(!Modernizr.mq("only screen and (max-width: 800px)")&&jQuery(".fusion-is-sticky").length&&"menu_only"==js_local_vars.header_sticky_type2_layout?window.$header_parent_height=jQuery(".fusion-header").parent().outerHeight()+jQuery(".fusion-secondary-main-menu").outerHeight():window.$header_parent_height=jQuery(".fusion-header").parent().outerHeight(),window.$scrolled_header_height=window.header_parent_height,Modernizr.mq("only screen and (max-width: 800px)")||(window.$header_parent_height=jQuery(".fusion-header").outerHeight()+jQuery(".fusion-secondary-main-menu").outerHeight(),window.$sticky_trigger_position=Math.round(jQuery(".fusion-header").offset().top)-window.$wp_adminbar_height+jQuery(".fusion-header").outerHeight(),jQuery(c).height(window.$header_parent_height),jQuery(".fusion-header-sticky-height").css("height","")),Modernizr.mq("only screen and (max-width: 800px)")&&(jQuery(".fusion-secondary-header").length?window.$sticky_trigger_position=Math.round(jQuery(".fusion-secondary-header").offset().top)-window.$wp_adminbar_height+jQuery(".fusion-secondary-header").outerHeight():window.$sticky_trigger_position=Math.round(jQuery(".fusion-header").offset().top)-window.$wp_adminbar_height,jQuery(c).height(""),jQuery(".fusion-header-sticky-height").css("height",jQuery(".fusion-sticky-header-wrapper").outerHeight()).hide())),"classic"==js_local_vars.mobile_menu_design&&(window.$header_parent_height=jQuery(".fusion-header").outerHeight()+jQuery(".fusion-secondary-main-menu").outerHeight(),window.$sticky_trigger_position=Math.round(jQuery(".fusion-header").offset().top)-window.$wp_adminbar_height+jQuery(".fusion-header").outerHeight(),jQuery(c).height(window.$header_parent_height))),3==window.$sticky_header_type){Modernizr.mq("only screen and (max-width:"+js_local_vars.side_header_break_point+"px)")||(jQuery("#side-header-sticky").css({height:"",top:""}),jQuery("#side-header").hasClass("fusion-is-sticky")&&(jQuery("#side-header").css({top:""}),jQuery("#side-header").removeClass("fusion-is-sticky")))}if(jQuery(".fusion-is-sticky").length>=1&&1==window.$sticky_header_type&&!Modernizr.mq("only screen and (max-width: 800px)")&&(Modernizr.mq("only screen and (max-width: 800px)")?jQuery(".fusion-header-sticky-height").css("height",window.$scrolled_header_height).show():(jQuery(window.$sticky_trigger).stop(!0,!0).animate({height:window.$scrolled_header_height},{queue:!1,duration:b,easing:"easeOutCubic",complete:function(){jQuery(this).css("overflow","visible")}}),jQuery(".fusion-header-sticky-height").show(),jQuery(".fusion-header-sticky-height").stop(!0,!0).animate({height:window.$scrolled_header_height},{queue:!1,duration:b,easing:"easeOutCubic",complete:function(){jQuery(this).css("overflow","visible")}})),"1"==js_local_vars.sticky_header_shrinkage)){if(f){var h=f.height();if(h ul > li > a").stop(!0,!0).animate({height:window.$scrolled_header_height-d,"line-height":window.$scrolled_header_height-d},{queue:!1,duration:b,easing:"easeOutCubic"})}i=jQuery(window).width(),j=jQuery(window).height()}}),jQuery(window).scroll(function(){if(!("1"!=js_local_vars.header_sticky_tablet&&window.$media_query_test_1||("1"==js_local_vars.header_sticky_tablet&&window.$media_query_test_1&&(b=0),"1"!=js_local_vars.header_sticky_mobile&&window.$media_query_test_2||("1"==js_local_vars.header_sticky_mobile&&window.$media_query_test_2&&(b=0),3==window.$sticky_header_type&&"1"!=js_local_vars.header_sticky_mobile||3==window.$sticky_header_type&&"1"==js_local_vars.header_sticky_mobile&&!window.$media_query_test_3))))if(0==jQuery(".fusion-is-sticky").length&&jQuery(".fusion-header, .fusion-secondary-main-menu").find(".fusion-mobile-nav-holder > ul").is(":visible")&&(window.$sticky_trigger_position=Math.round(jQuery(".fusion-header, .fusion-sticky-header-wrapper").find(".fusion-mobile-nav-holder:visible").offset().top)-window.$wp_adminbar_height+jQuery(".fusion-header, .fusion-sticky-header-wrapper").find(".fusion-mobile-nav-holder:visible").height()),3==window.$sticky_header_type||0!=jQuery(".fusion-is-sticky").length||jQuery(".fusion-header, .fusion-secondary-main-menu").find(".fusion-mobile-nav-holder > ul").is(":visible")||(window.$sticky_trigger=jQuery(".fusion-header"),window.$sticky_trigger_position=Math.round(window.$sticky_trigger.offset().top)-window.$wp_adminbar_height,2==window.$sticky_header_type&&("menu_and_logo"==js_local_vars.header_sticky_type2_layout||window.$media_query_test_4&&"modern"==js_local_vars.mobile_menu_design?window.$sticky_trigger=jQuery(".fusion-sticky-header-wrapper"):window.$sticky_trigger=jQuery(".fusion-secondary-main-menu"),window.$sticky_trigger_position=Math.round(window.$sticky_trigger.offset().top)-window.$wp_adminbar_height),"modern"!=js_local_vars.mobile_menu_design||2!=window.$sticky_header_type||!window.$media_query_test_4&&"menu_and_logo"!=js_local_vars.header_sticky_type2_layout||(window.$header_height=jQuery(window.$sticky_trigger).outerHeight(),window.$scrolled_header_height=window.$header_height,jQuery(".fusion-header-sticky-height").css("height",window.$scrolled_header_height).show())),jQuery(window).scrollTop()>window.$sticky_trigger_position){if(0==g){var a=0;if(jQuery("#wpadminbar").length>=1&&(a=jQuery("#wpadminbar").height()),jQuery(".fusion-header-wrapper").addClass("fusion-is-sticky"),jQuery(window.$sticky_trigger).css("top",a),f=jQuery(".fusion-logo img:visible"),"modern"==js_local_vars.mobile_menu_design?(jQuery(".fusion-header, .fusion-secondary-main-menu").find(".fusion-mobile-nav-holder").hide(),jQuery(".fusion-secondary-main-menu .fusion-main-menu-search .fusion-custom-menu-item-contents").hide()):jQuery(".fusion-header, .fusion-secondary-main-menu").find(".fusion-mobile-nav-holder > ul").hide(),"modern"==js_local_vars.mobile_menu_design&&jQuery(".fusion-is-sticky").length>=1&&jQuery(".fusion-mobile-sticky-nav-holder").length>=1&&jQuery(".fusion-mobile-nav-holder").is(":visible")&&jQuery(".fusion-mobile-nav-holder").not(".fusion-mobile-sticky-nav-holder").hide(),"boxed"==js_local_vars.layout_mode&&jQuery(window.$sticky_trigger).css("max-width",window.$site_width),1==window.$sticky_header_type&&(Modernizr.mq("only screen and (max-width: 800px)")?jQuery(".fusion-header-sticky-height").css("height",window.$scrolled_header_height).show():(jQuery(window.$sticky_trigger).stop(!0,!0).animate({height:window.$scrolled_header_height},{queue:!1,duration:b,easing:"easeOutCubic",complete:function(){jQuery(this).css("overflow","visible")}}),jQuery(".fusion-header-sticky-height").show(),jQuery(".fusion-header-sticky-height").stop(!0,!0).animate({height:window.$scrolled_header_height},{queue:!1,duration:b,easing:"easeOutCubic",complete:function(){jQuery(this).css("overflow","visible")}})),setTimeout(function(){jQuery(".fusion-header").addClass("fusion-sticky-shadow")},150),"1"==js_local_vars.sticky_header_shrinkage)){if(jQuery(window.$sticky_trigger).find(".fusion-row").stop(!0,!0).animate({"padding-top":0,"padding-bottom":0},{queue:!1,duration:b,easing:"easeOutCubic"}),f){var c=f.height();if(f.attr("data-logo-height",f.height()),f.attr("data-logo-width",f.width()),c ul > li > a").stop(!0,!0).animate({height:window.$scrolled_header_height-e,"line-height":window.$scrolled_header_height-e},{queue:!1,duration:b,easing:"easeOutCubic"})}2==window.$sticky_header_type&&jQuery(".fusion-header-sticky-height").show(),3==window.$sticky_header_type&&Modernizr.mq("only screen and (max-width:"+js_local_vars.side_header_break_point+"px)")&&(jQuery("#side-header-sticky").css({height:jQuery("#side-header").outerHeight()}),jQuery("#side-header").css({position:"fixed",top:a}).addClass("fusion-is-sticky")),g=!0}}else jQuery(window).scrollTop()<=window.$sticky_trigger_position&&(jQuery(".fusion-header-wrapper").removeClass("fusion-is-sticky"),jQuery(".fusion-header").removeClass("fusion-sticky-shadow"),f=jQuery(".fusion-logo img:visible"),"modern"==js_local_vars.mobile_menu_design&&0==jQuery(".fusion-is-sticky").length&&jQuery(".fusion-mobile-sticky-nav-holder").length>=1&&jQuery(".fusion-mobile-nav-holder").is(":visible")&&jQuery(".fusion-mobile-sticky-nav-holder").hide(),1==window.$sticky_header_type&&(Modernizr.mq("only screen and (max-width: 800px)")?jQuery(".fusion-header-sticky-height").hide().css("height",window.$header_height+e):(jQuery(window.$sticky_trigger).stop(!0,!0).animate({height:window.$header_height},{queue:!1,duration:b,easing:"easeOutCubic",complete:function(){jQuery(this).css("overflow","visible")},step:function(){jQuery(this).css("overflow","visible")}}),jQuery(".fusion-header-sticky-height").stop(!0,!0).animate({height:window.$header_height},{queue:!1,duration:b,easing:"easeOutCubic",complete:function(){jQuery(this).css("overflow","visible")},step:function(){jQuery(this).css("overflow","visible")}}),jQuery(".fusion-header-sticky-height").hide()),"1"==js_local_vars.sticky_header_shrinkage&&(jQuery(window.$sticky_trigger).find(".fusion-row").stop(!0,!0).animate({"padding-top":js_local_vars.header_padding_top,"padding-bottom":js_local_vars.header_padding_bottom},{queue:!1,duration:b,easing:"easeOutCubic"}),f&&f.stop(!0,!0).animate({height:f.data("logo-height")},{queue:!1,duration:b,easing:"easeOutCubic",complete:function(){jQuery(".fusion-sticky-logo-1x, .fusion-sticky-logo-2x").css("height","")}}),jQuery(".fusion-logo").stop(!0,!0).animate({"margin-top":jQuery(".fusion-logo").data("margin-top"),"margin-bottom":jQuery(".fusion-logo").data("margin-bottom")},{queue:!1,duration:b,easing:"easeOutCubic"}),jQuery(".fusion-main-menu > ul > li > a").stop(!0,!0).animate({height:d,"line-height":d},{queue:!1,duration:b,easing:"easeOutCubic"}))),2==window.$sticky_header_type&&(jQuery(".fusion-header-sticky-height").hide(),"menu_and_logo"==js_local_vars.header_sticky_type2_layout&&jQuery(".fusion-header-sticky-height").css("height",window.$header_parent_height)),3==window.$sticky_header_type&&Modernizr.mq("only screen and (max-width:"+js_local_vars.side_header_break_point+"px)")&&(jQuery("#side-header-sticky").css({height:""}),jQuery("#side-header").css({position:""}).removeClass("fusion-is-sticky")),g=!1)}),jQuery(window).trigger("scroll")}var k=!1;a(),jQuery(window).on("resize",function(){a()});var l=jQuery(".fusion-main-menu > ul > li > a > .iclflag"),m=l.height();l.css("margin-top",+m/-2+"px");var l=jQuery(".fusion-secondary-menu > ul > li > a > .iclflag"),m=l.height();l.css("margin-top",+m/-2+"px")}),jQuery(document).ajaxComplete(function(){if(jQuery(window).trigger("scroll"),jQuery(".fusion-is-sticky").length>=1&&window.$sticky_trigger&&3!=window.$sticky_header_type){var a=jQuery(window.$sticky_trigger),b=parseInt(js_local_vars.nav_highlight_border),c=a.height()-b;2==window.$sticky_header_type&&(a=jQuery(".fusion-secondary-main-menu"),c=a.find(".fusion-main-menu > ul > li > a").height()),jQuery(".fusion-main-menu > ul > li > a").css({height:c+"px","line-height":c+"px"})}});var generate_carousel=function(){jQuery().carouFredSel&&jQuery(".fusion-carousel").each(function(){var a=jQuery(this).attr("data-imagesize")?jQuery(this).data("imagesize"):"fixed",b=jQuery(this).attr("data-metacontent")&&"yes"==jQuery(this).data("metacontent")?!1:!0,c=jQuery(this).attr("data-autoplay")&&"yes"==jQuery(this).data("autoplay")?!0:!1,d=jQuery(this).parents(".related-posts").length?js_local_vars.related_posts_speed:js_local_vars.carousel_speed,e=jQuery(this).attr("data-scrollfx")?jQuery(this).data("scrollfx"):"scroll",f=jQuery(this).attr("data-scrollitems")?jQuery(this).data("scrollitems"):null,g=jQuery(this).attr("data-touchscroll")&&"yes"==jQuery(this).data("touchscroll")?!0:!1,h=g?" fusion-carousel-swipe":"",i=jQuery(this).attr("data-columns")?jQuery(this).data("columns"):6,j=jQuery(this).attr("data-itemmargin")?parseInt(jQuery(this).data("itemmargin")):44,k=jQuery(this).attr("data-itemwidth")?parseInt(jQuery(this).data("itemwidth"))+j:180+j,l=jQuery(this).width(),m=jQuery(this).parent().hasClass("fusion-image-carousel")&&"fixed"==a?"115px":"variable";Math.floor(l/k);jQuery(this).find(".fusion-carousel-positioner").css("margin-left","-"+j+"px"),jQuery(this).find(".fusion-carousel-item").css("margin-left",j+"px"),jQuery(this).find(".fusion-nav-prev").css("margin-left",j+"px"),jQuery(this).find("ul").carouFredSel({circular:!0,infinite:!0,responsive:!0,centerVertically:b,height:m,width:"100%",auto:{play:c,timeoutDuration:parseInt(d)},items:{height:"variable",width:k,visible:{min:1,max:i}},scroll:{pauseOnHover:!0,items:f,fx:e},swipe:{onTouch:g,onMouse:g,options:{excludedElements:"button, input, select, textarea, a, .noSwipe"}},prev:jQuery(this).find(".fusion-nav-prev"),next:jQuery(this).find(".fusion-nav-next"),onCreate:function(c){jQuery(this).find(".fusion-carousel-item-wrapper").css("visibility","visible"),jQuery(this).parents(".fusion-carousel").find(".fusion-carousel-nav").css("visibility","visible"),jQuery(this).parents(".fusion-woo-featured-products-slider").length&&jQuery(this).parent().css("overflow",""),b&&jQuery(this).css("line-height",jQuery(this).parent().height()+"px"),jQuery(this).css("top","auto"),jQuery(this).parents(".fusion-carousel").find(".fusion-nav-next").each(function(){jQuery(this).css("left",jQuery(this).parents(".fusion-carousel").find(".fusion-carousel-wrapper").width()-jQuery(this).width())}),"fixed"==a&&jQuery(this).find(".fusion-placeholder-image").each(function(){jQuery(this).css("height",jQuery(this).parents(".fusion-carousel-item").siblings().first().find("img").height())})},currentVisible:function(a){return a}},{wrapper:{classname:"fusion-carousel-wrapper"+h}})})},calcTabsLayout=function(a){jQuery(a).each(function(){var a=jQuery(this).parent().width(),b=jQuery(this).find("li").length,c=a%b,d=(a-c)/b,e=a-d*(b-1);jQuery(this).css({width:a+"px"}),jQuery(this).find("li").css({width:d+"px"}),jQuery(this).find("li:last").css({width:e+"px"}).addClass("no-border-right")})},fusion_reanimate_slider=function(a){var b=a.find(".slide-content");jQuery(b).each(function(){jQuery(this).stop(!0,!0),jQuery(this).css("opacity","0"),jQuery(this).css("margin-top","50px"),jQuery(this).animate({opacity:"1","margin-top":"0"},1e3)})},fusion_calculate_responsive_type_values=function(a,b,c,d){var e=a||1,f=b||1.5,g=js_local_vars.body_font_size*f,h=c||0===c?c:800,i=function(){if(jQuery(window).width()>=h)if(js_local_vars.site_width.indexOf("px"))var a=parseInt(js_local_vars.site_width);else var a=1100;else var a=h;var b=jQuery(window).width()/a,c=1-(1-b)*e;jQuery(d).each(jQuery(window).width()<=a?function(){jQuery(this).data("fontsize")*c>g?jQuery(this).css({"font-size":Math.round(jQuery(this).data("fontsize")*c*1e3)/1e3,"line-height":Math.round(jQuery(this).data("lineheight")*c*1e3)/1e3+"px"}):jQuery(this).data("fontsize")>g&&jQuery(this).css({"font-size":g,"line-height":Math.round(jQuery(this).data("lineheight")*g/jQuery(this).data("fontsize")*1e3)/1e3+"px"})}:function(){jQuery(this).data("inline-fontsize")?jQuery(this).css("font-size",jQuery(this).data("fontsize")):jQuery(this).css("font-size",""),jQuery(this).data("inline-lineheight")?jQuery(this).css("line-height",jQuery(this).data("lineheight")+"px"):jQuery(this).css("line-height","")})};i(),jQuery(window).on("resize orientationchange",i)};$top=$bottom=!1,$last_window_position=0,$last_window_height=jQuery(window).height(),function(a){"use strict";a(".tfs-slider").each(function(){var b=this;a(b).parents(".post-content").length>=1&&(a(b).data("parallax",0),a(b).data("full_screen",0)),cssua.ua.tablet_pc&&a(b).data("parallax",0),cssua.ua.mobile&&a(b).data("parallax",0)}),a.fn.init_waypoint=function(){a().waypoint&&(a(".fusion-counter-box").not(".fusion-modal .fusion-counter-box").waypoint(function(){a(this).find(".display-counter").each(function(){a(this).fusion_box_counting()})},{triggerOnce:!0,offset:"bottom-in-view"}),a(".counter-circle-wrapper").not(".fusion-modal .counter-circle-wrapper").waypoint(function(){a(this).fusion_draw_circles()},{triggerOnce:!0,offset:"bottom-in-view"}),a(".counter-circle-wrapper").not(".fusion-modal .counter-circle-wrapper").waypoint(function(){var b=a(this);a(window).on("resize",function(){b.fusion_redraw_circles()})},{triggerOnce:!0,offset:"bottom-in-view"}),a(".fusion-progressbar").not(".fusion-modal .fusion-progressbar").waypoint(function(){a(this).fusion_draw_progress()},{triggerOnce:!0,offset:"bottom-in-view"}),a(".fusion-content-boxes").waypoint(function(){var b=0;a(this).find(".content-box-column").each(function(){var c=this;setTimeout(function(){a(c).find(".fusion-animated").css("visibility","visible");var b=a(c).find(".fusion-animated").data("animationtype"),d=a(c).find(".fusion-animated").data("animationduration");a(c).find(".fusion-animated").addClass(b),d&&(a(c).find(".fusion-animated").css("-moz-animation-duration",d+"s"),a(c).find(".fusion-animated").css("-webkit-animation-duration",d+"s"),a(c).find(".fusion-animated").css("-ms-animation-duration",d+"s"),a(c).find(".fusion-animated").css("-o-animation-duration",d+"s"),a(c).find(".fusion-animated").css("animation-duration",d+"s")),(a(c).parents(".fusion-content-boxes").hasClass("content-boxes-timeline-horizontal")||a(c).parents(".fusion-content-boxes").hasClass("content-boxes-timeline-vertical"))&&a(c).addClass("fusion-appear")},b),b+=parseInt(a(this).parents(".fusion-content-boxes").attr("data-animation-delay"))})},{triggerOnce:!0,offset:"bottom-in-view"}),a(".fusion-animated").waypoint(function(){if(!a(this).parents(".fusion-delayed-animation").length){a(this).css("visibility","visible");var b=a(this).data("animationtype"),c=a(this).data("animationduration");if(a(this).addClass(b),c){a(this).css("-moz-animation-duration",c+"s"),a(this).css("-webkit-animation-duration",c+"s"),a(this).css("-ms-animation-duration",c+"s"),a(this).css("-o-animation-duration",c+"s"),a(this).css("animation-duration",c+"s");var d=a(this);setTimeout(function(){d.removeClass(b)},1e3*c)}}},{triggerOnce:!0,offset:"bottom-in-view"}))},a.fn.fusion_recalculate_carousel=function(){a(this).not(".fusion-woo-featured-products-slider").each(function(){var b=a(this),c=a(this).data("imagesize");setTimeout(function(){b.find(".fusion-nav-next").each(function(){a(this).css("left",b.find(".fusion-carousel-wrapper").width()-a(this).width())}),"fixed"==c&&(b.find(".fusion-placeholder-image").each(function(){a(this).css("height",a(this).parents(".fusion-carousel-item").siblings().first().find("img").height())}),a(b).parents(".fusion-image-carousel").length>=1&&b.find(".fusion-image-wrapper").each(function(){a(this).css("height",a(this).parents(".fusion-carousel-item").siblings().first().find("img").height()),a(this).css("width","100%")}))},5)})},a.fn.fusion_box_counting=function(){var b=a(this).data("value"),c=a(this).data("direction"),d=a(this).data("delimiter"),e=0,f=b;d||(d=""),"down"==c&&(e=b,f=0),a(this).countTo({from:e,to:f,refreshInterval:10,speed:1e3,formatter:function(a,b){return a=a.toFixed(b.decimals),a=a.replace(/\B(?=(\d{3})+(?!\d))/g,d),"-0"==a&&(a=0),a}})},a.fn.fusion_draw_circles=function(){var b=a(this),c=b.children(".counter-circle").attr("data-countdown"),d=b.children(".counter-circle").attr("data-filledcolor"),e=b.children(".counter-circle").attr("data-unfilledcolor"),f=b.children(".counter-circle").attr("data-scale"),g=b.children(".counter-circle").attr("data-size"),h=b.children(".counter-circle").attr("data-speed"),i=b.children(".counter-circle").attr("data-strokesize"),j=b.children(".counter-circle").attr("data-percent");b.parent().width()=b.data("originalsize")&&b.width()d.find(".flip-box-back").outerHeight()?(c=d.find(".flip-box-front").height(),b=cssua.ua.ie&&"8"==cssua.ua.ie.substr(0,1)?d.find(".flip-box-front").height():d.find(".flip-box-front").outerHeight(),e=(c-d.find(".flip-box-back-inner").outerHeight())/2,d.find(".flip-box-back").css("min-height",b),d.css("min-height",b),d.find(".flip-box-back-inner").css("margin-top",e)):(c=d.find(".flip-box-back").height(),b=cssua.ua.ie&&"8"==cssua.ua.ie.substr(0,1)?d.find(".flip-box-back").height():d.find(".flip-box-back").outerHeight(),e=(c-d.find(".flip-box-front-inner").outerHeight())/2,d.find(".flip-box-front").css("min-height",b),d.css("min-height",b),d.find(".flip-box-front-inner").css("margin-top",e)),cssua.ua.ie&&"8"==cssua.ua.ie.substr(0,1)&&d.find(".flip-box-back").css("height","100%")},100)},a.fn.fusion_scroller=function(b){var c=a.extend({type:"opacity",offset:0,end_offset:""},b),d=a(this);d.each(function(){var b,d,e,f=this;a(window).on("scroll",function(){b=a(f).offset().top,a("body").hasClass("admin-bar")&&(b=a(f).offset().top-a("#wpadminbar").outerHeight()),c.offset>0&&(b=a(f).offset().top-c.offset),d=a(f).outerHeight(),e=b+d,c.end_offset&&(e=a(c.end_offset).offset().top);var g=a(this).scrollTop();if(g>=b&&e>=g){var h=e-g,i=h/d*100;if("opacity"==c.type){var j=i/100*1;a(f).css({opacity:j})}else if("blur"==c.type){var i=100-i,k="blur("+i/100*50+"px)";a(f).css({"-webkit-filter":k,"-ms-filter":k,"-o-filter":k,"-moz-filter":k,filter:k})}else if("fading_blur"==c.type){var j=i/100*1,i=100-i,k="blur("+i/100*50+"px)";a(f).css({"-webkit-filter":k,"-ms-filter":k,"-o-filter":k,"-moz-filter":k,filter:k,opacity:j})}}if(b>g)if("opacity"==c.type)a(f).css({opacity:1});else if("blur"==c.type){var k="blur(0px)";a(f).css({"-webkit-filter":k,"-ms-filter":k,"-o-filter":k,"-moz-filter":k,filter:k})}else if("fading_blur"==c.type){var k="blur(0px)";a(f).css({opacity:1,"-webkit-filter":k,"-ms-filter":k,"-o-filter":k,"-moz-filter":k,filter:k})}})})},a.fn.fusion_switch_tab_on_link_click=function(b){var c=b||document.location.hash,d=c.split("#")[1];c&&a(this).find('.nav-tabs li a[href="'+c+'"]').length&&(a(this).find(".nav-tabs li").removeClass("active"),a(this).find('.nav-tabs li a[href="'+c+'"]').parent().addClass("active"),a(this).find(".tab-content .tab-pane").removeClass("in").removeClass("active"),a(this).find('.tab-content .tab-pane[id="'+d+'"]').addClass("in").addClass("active")),c&&a(this).find('.nav-tabs li a[id="'+d+'"]').length&&(a(this).find(".nav-tabs li").removeClass("active"),a(this).find('.nav-tabs li a[id="'+d+'"]').parent().addClass("active"),a(this).find(".tab-content .tab-pane").removeClass("in").removeClass("active"),a(this).find('.tab-content .tab-pane[id="'+a(this).find('.nav-tabs li a[id="'+d+'"]').attr("href").split("#")[1]+'"]').addClass("in").addClass("active"))},a.fn.equalHeights=function(b,c){if(a(this).children(".fusion-column-table").length||Modernizr.mq("only screen and (min-width: 800px)")||Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait)")){
var d=b?b:0;return this.each(function(){a(this).css("min-height","0"),a(this).css("height","auto"),a(this).find(".fusion-column-table").css("height","auto"),a(this).outerHeight()>d&&(d=a(this).outerHeight())}),c&&d>c&&(d=c),this.each(function(){var b=d;"0"==b&&a(this).attr("data-empty-column","true"),a(this).children(".fusion-column-table").length&&(b=d-(a(this).outerHeight()-a(this).height())),a(this).css("min-height",b),a(this).find(".fusion-column-table").height(b)})}return this.each(function(){a(this).css("min-height",""),a(this).find(".fusion-column-table").css("height","")})},a.fn.fusion_set_bg_img_dims=function(){a(this).each(function(){if('
'==a.trim(a(this).html())&&a(this).data("bg-url")){var b=new Image;b.src=a(this).data("bg-url");var c=parseInt(b.naturalHeight),d=parseInt(b.naturalWidth);b.onload=function(){c=parseInt(this.height),d=parseInt(this.width)},a(this).attr("data-bg-height",c),a(this).attr("data-bg-width",d)}})},a.fn.fusion_calculate_empty_column_height=function(){a(this).each(function(){if((a(this).parents(".fusion-equal-height-columns").length&&(Modernizr.mq("screen and (max-width: 800px)")||1==a(this).data("empty-column"))||!a(this).parents(".fusion-equal-height-columns").length)&&'
'==a.trim(a(this).html())){var b=a(this).data("bg-height"),c=a(this).data("bg-width"),d=a(this).outerWidth(),e=d/c,f=b*e;a(this).height(f)}})},a.fn.reinitialize_google_map=function(){var b=a(this).data("plugin_fusion_maps");if(b){var c=b.map,d=c.getCenter(),e=b.markers;if(google.maps.event.trigger(c,"resize"),c.setCenter(d),e)for(var f=0;fa(window).height()&&("Top"==js_local_vars.header_position||"Top"!=js_local_vars.header_position&&a(window).height()>a(".side-header-wrapper").height())&&Modernizr.mq("only screen and (min-width:"+parseInt(js_local_vars.side_header_break_point)+"px)")&&!Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait)")&&!Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape)")){if(b.css({position:"",margin:"",padding:""}),a("#main").css("margin-bottom",b.outerHeight()),a(".tfs-slider").length>=1&&1==a(".tfs-slider").data("parallax")&&b.hasClass("fusion-footer-parallax")){var d=a(".tfs-slider").parents("#sliders-container").outerHeight(),e=b.outerHeight();d>e?a("#main").css("min-height",d+100):e>d&&a("#main").css("min-height",e+100)}}else b.css({position:"static",margin:"0",padding:"0"}),a("#main").css("margin-bottom","")},1)}}(jQuery),jQuery(window).load(function(){function a(a,b,c,d){var e=jQuery(this).height();jQuery(this).parent().children().removeClass("active-testimonial"),jQuery(this).addClass("active-testimonial"),jQuery(this).parent().animate({height:e},500)}if("0"==js_local_vars.is_responsive){var b=["col-sm-0","col-sm-1","col-sm-2","col-sm-3","col-sm-4","col-sm-5","col-sm-6","col-sm-7","col-sm-8","col-sm-9","col-sm-10","col-sm-11","col-sm-12"];jQuery(".col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12").each(function(){for(var a=0;a li").equalHeights(),jQuery(".fusion-fullwidth.fusion-equal-height-columns").each(function(){jQuery(this).find(".fusion-layout-column .fusion-column-wrapper").equalHeights()}),jQuery(".fusion-layout-column .fusion-column-wrapper").fusion_set_bg_img_dims(),jQuery(".fusion-layout-column .fusion-column-wrapper").fusion_calculate_empty_column_height(),jQuery(window).on("resize",function(){jQuery(".fusion-fullwidth.fusion-equal-height-columns").each(function(){jQuery(this).find(".fusion-layout-column .fusion-column-wrapper").equalHeights()}),jQuery(".fusion-layout-column .fusion-column-wrapper").fusion_calculate_empty_column_height()}),cssua.ua.ios){var d=parseInt(cssua.ua.ios);7==d&&jQuery(".button-icon-divider-left, .button-icon-divider-right").each(function(){var a=jQuery(this).parent().outerHeight();jQuery(this).css("height",a)})}}),jQuery(document).ready(function(a){function b(){jQuery("#wpadminbar").length&&(j=parseInt(jQuery("#wpadminbar").outerHeight())),(jQuery(".fusion-header-v4").length||jQuery(".fusion-header-v5").length)&&(i=2),"1"==js_local_vars.header_sticky&&(1==i?(k=jQuery(".fusion-header").outerHeight(),65>k&&(k=65)):(k=jQuery(".fusion-secondary-main-menu").outerHeight(),"menu_and_logo"==js_local_vars.header_sticky_type2_layout&&(k+=jQuery(".fusion-header").outerHeight())),window.$media_query_test_4&&("1"==js_local_vars.header_sticky_mobile?(jQuery(".fusion-mobile-menu-design-classic").length&&(k=jQuery(".fusion-secondary-main-menu").outerHeight()),jQuery(".fusion-mobile-menu-design-modern").length&&(k=jQuery(".fusion-header").outerHeight())):k=0),"1"!=js_local_vars.header_sticky_tablet&&window.$media_query_test_1&&(k=0))}function c(a){return null!==a.match(/\.(jpeg|jpg|gif|png)$/)}if(jQuery(window).on("scroll",fusion_side_header_scroll),jQuery(window).on("resize",fusion_side_header_scroll),jQuery("h1, h2, h3, h4, h5, h6").each(function(){jQuery(this).prop("style")["font-size"]&&jQuery(this).attr("data-inline-fontsize",!0),jQuery(this).prop("style")["font-size"]&&jQuery(this).attr("data-inline-lineheight",!0),jQuery(this).attr("data-fontsize",parseInt(jQuery(this).css("font-size"))),jQuery(this).attr("data-lineheight",parseInt(jQuery(this).css("line-height")))}),1==js_local_vars.typography_responsive&&fusion_calculate_responsive_type_values(js_local_vars.typography_sensitivity,js_local_vars.typography_factor,800,"h1, h2, h3, h4, h5, h6"),jQuery(".tfs-slider").each(function(){fusion_calculate_responsive_type_values(jQuery(this).data("typo_sensitivity"),jQuery(this).data("typo_factor"),800,".tfs-slider h2, .tfs-slider h3")}),jQuery(window).on("resize",function(){jQuery(".fusion-carousel").fusion_recalculate_carousel()}),jQuery(".fusion-video").each(function(){jQuery(this).parents(".fusion-modal").length||1!=jQuery(this).data("autoplay")||jQuery(this).find("iframe").each(function(a){jQuery(this).attr("src",jQuery(this).attr("src").replace("autoplay=0","autoplay=1"))})}),jQuery(".fusion-footer-parallax").fusion_footer_parallax(),jQuery(window).on("resize",function(){jQuery(".fusion-footer-parallax").fusion_footer_parallax()}),jQuery(".fusion-footer .fusion-footer-widget-area .fusion-column").each(function(){jQuery(this).is(":empty")&&jQuery(this).css("margin-bottom","0")}),jQuery("body").addClass("1"==js_local_vars.disable_mobile_animate_css&&cssua.ua.mobile?"dont-animate":"do-animate"),jQuery(".comment-respond .comment-reply-title").length){for(var d=js_local_vars.title_style_type.split(" "),e="",f=0;f'),jQuery(".comment-respond .comment-reply-title").parent().append('')}if(jQuery("#sidebar-2").length>=1){var g=jQuery("#sidebar").css("float");jQuery("body").addClass("sidebar-position-"+g)}jQuery(".fusion-flip-box").mouseover(function(){jQuery(this).addClass("hover")}),jQuery(".fusion-flip-box").mouseout(function(){jQuery(this).removeClass("hover")}),jQuery(".fusion-accordian .panel-title a").click(function(a){a.preventDefault()}),jQuery(".my-show").click(function(){jQuery(".my-hidden").css("visibility","visible")}),jQuery(".demo_store").length&&(jQuery("#wrapper").css("margin-top",jQuery(".demo_store").outerHeight()),jQuery("#slidingbar-area").outerHeight()>0&&jQuery(".header-wrapper").css("margin-top","0"),jQuery(".sticky-header").length&&jQuery(".sticky-header").css("margin-top",jQuery(".demo_store").outerHeight()));var h=0;jQuery("#slidingbar-area.open_onload").length&&(jQuery("#slidingbar").slideDown(240,"easeOutQuad"),jQuery(".sb-toggle").addClass("open"),h=1,jQuery("#slidingbar .shortcode-map").length&&jQuery("#slidingbar").find(".shortcode-map").each(function(){jQuery(this).reinitialize_google_map()}),jQuery("#slidingbar-area").removeClass("open_onload")),jQuery(".sb-toggle").click(function(){var a=jQuery(this).parents("#slidingbar-area").children("#slidingbar");if(0===h){if(a.slideDown(240,"easeOutQuad"),jQuery(".sb-toggle").addClass("open"),h=1,a.find(".shortcode-map").length&&a.find(".shortcode-map").each(function(){jQuery(this).reinitialize_google_map()}),a.find(".fusion-carousel").length&&generate_carousel(),jQuery("#slidingbar").find(".fusion-carousel").fusion_recalculate_carousel(),a.find(".fusion-testimonials").length){var b=a.find(".fusion-testimonials .reviews").children(".active-testimonial");a.find(".fusion-testimonials .reviews").height(b.height())}}else 1==h&&(a.slideUp(240,"easeOutQuad"),jQuery(".sb-toggle").removeClass("open"),h=0)}),jQuery(".fusion-social-links-footer").find(".fusion-social-networks").children().length||(jQuery(".fusion-social-links-footer").hide(),jQuery(".fusion-footer-copyright-area .fusion-copyright-notice").css("padding-bottom","0")),jQuery().UItoTop&&(cssua.ua.mobile&&"1"==js_local_vars.status_totop_mobile?jQuery().UItoTop({easingType:"easeOutQuart"}):cssua.ua.mobile||jQuery().UItoTop({easingType:"easeOutQuart"})),jQuery(window).on("resize",function(){jQuery(".demo_store").length&&(jQuery("#wrapper").css("margin-top",jQuery(".demo_store").outerHeight()),jQuery(".sticky-header").length&&jQuery(".sticky-header").css("margin-top",jQuery(".demo_store").outerHeight())),jQuery(".sticky-header").length&&(jQuery(window).width()<765?jQuery("body.admin-bar #header-sticky.sticky-header").css("top","46px"):jQuery("body.admin-bar #header-sticky.sticky-header").css("top","32px"))}),"classic"==js_local_vars.mobile_menu_design&&(jQuery(".sh-mobile-nav-holder").append(''+js_local_vars.dropdown_goto+"
"),jQuery(".sh-mobile-nav-holder .mobile-selector").append('
')),jQuery(".sh-mobile-nav-holder").append(jQuery(".nav-holder .fusion-navbar-nav").clone()),jQuery(".sh-mobile-nav-holder .fusion-navbar-nav").attr("id","mobile-nav"),jQuery(".sh-mobile-nav-holder ul#mobile-nav").removeClass("fusion-navbar-nav"),jQuery(".sh-mobile-nav-holder ul#mobile-nav").children(".cart").remove(),jQuery(".sh-mobile-nav-holder ul#mobile-nav .mobile-nav-item").children(".login-box").remove(),jQuery(".sh-mobile-nav-holder ul#mobile-nav li").children("#main-nav-search-link").each(function(){jQuery(this).parents("li").remove()}),jQuery(".sh-mobile-nav-holder ul#mobile-nav").find("li").each(function(){var a="mobile-nav-item";(jQuery(this).hasClass("current-menu-item")||jQuery(this).hasClass("current-menu-parent")||jQuery(this).hasClass("current-menu-ancestor"))&&(a+=" mobile-current-nav-item"),jQuery(this).attr("class",a),jQuery(this).attr("id")&&jQuery(this).attr("id",jQuery(this).attr("id").replace("menu-item","mobile-menu-item")),jQuery(this).attr("style","")}),jQuery(".sh-mobile-nav-holder .mobile-selector").click(function(){jQuery(".sh-mobile-nav-holder #mobile-nav").hasClass("mobile-menu-expanded")?jQuery(".sh-mobile-nav-holder #mobile-nav").removeClass("mobile-menu-expanded"):jQuery(".sh-mobile-nav-holder #mobile-nav").addClass("mobile-menu-expanded"),jQuery(".sh-mobile-nav-holder #mobile-nav").slideToggle(200,"easeOutQuad")}),1==js_local_vars.submenu_slideout&&(jQuery(".header-wrapper .mobile-topnav-holder .mobile-topnav li, .header-wrapper .mobile-nav-holder .navigation li, .sticky-header .mobile-nav-holder .navigation li, .sh-mobile-nav-holder .navigation li").each(function(){var a="mobile-nav-item";(jQuery(this).hasClass("current-menu-item")||jQuery(this).hasClass("current-menu-parent")||jQuery(this).hasClass("current-menu-ancestor")||jQuery(this).hasClass("mobile-current-nav-item"))&&(a+=" mobile-current-nav-item"),jQuery(this).attr("class",a),jQuery(this).find(" > ul").length&&(jQuery(this).prepend(''),jQuery(this).find(" > ul").hide())}),jQuery(".header-wrapper .mobile-topnav-holder .open-submenu, .header-wrapper .mobile-nav-holder .open-submenu, .sticky-header .mobile-nav-holder .open-submenu, .sh-mobile-nav-holder .open-submenu").click(function(a){a.stopPropagation(),jQuery(this).parent().children(".sub-menu").slideToggle(200,"easeOutQuad")}));var i=1,j=0,k=0;b(),jQuery(window).on("resize scroll",function(){b()}),jQuery(".fusion-menu a:not([href=#], .fusion-megamenu-widgets-container a, .search-link), .fusion-mobile-nav-item a:not([href=#], .search-link), .fusion-button:not([href=#]), .fusion-one-page-text-link:not([href=#])").click(function(){if((location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")||location.hostname==this.hostname)&&this.hash){var c=jQuery(this.hash);if(c=c.length?c:jQuery("[name="+this.hash.slice(1)+"]"),c.length&&""!==this.hash.slice(1)){b();var d=a(document).scrollTop(),e=c.offset().top-j-k,f=Math.abs(d-e)/2;if(d>e)var g=d-f;else var g=d+f;return jQuery("html, body").animate({scrollTop:g},{duration:400,easing:"easeInExpo",complete:function(){b(),e=c.offset().top-j-k,jQuery("html, body").animate({scrollTop:e},450,"easeOutExpo")}}),c.hasClass("tab-link")&&jQuery(".fusion-tabs").fusion_switch_tab_on_link_click(),!1}}}),jQuery("body").scrollspy({target:".fusion-menu",offset:parseInt(j+k+1)}),jQuery(".side-nav-left .side-nav li").each(function(){jQuery(this).find("> .children").length&&(jQuery(".rtl").length?jQuery(this).find("> a").prepend(' '):jQuery(this).find("> a").append(' '))}),jQuery(".side-nav-right .side-nav li").each(function(){jQuery(this).find("> .children").length&&(jQuery("body.rtl").length?jQuery(this).find("> a").append(' '):jQuery(this).find("> a").prepend(' '))}),jQuery(".side-nav .current_page_item").each(function(){jQuery(this).find(".children").length&&jQuery(this).find(".children").show("slow")}),jQuery(".side-nav .current_page_item").each(function(){jQuery(this).parent().hasClass("side-nav")&&jQuery(this).find("ul").show("slow"),jQuery(this).parent().hasClass("children")&&jQuery(this).parents("ul").show("slow")}),("ontouchstart"in document.documentElement||navigator.msMaxTouchPoints)&&(jQuery(".fusion-main-menu li.menu-item-has-children > a, .fusion-secondary-menu li.menu-item-has-children > a, .order-dropdown > li .current-li").on("click",function(a){var b=jQuery(this);return b.hasClass("hover")?(b.removeClass("hover"),!0):(b.addClass("hover"),jQuery(".fusion-main-menu li.menu-item-has-children > a, .fusion-secondary-menu li.menu-item-has-children > a, .order-dropdown > li .current-li").not(this).removeClass("hover"),!1)}),jQuery(".sub-menu li, .fusion-mobile-nav-item li").not("li.menu-item-has-children").on("click",function(a){var b=jQuery(this).find("a").attr("href");return window.location=b,!0})),jQuery(".fusion-main-menu li.menu-item-has-children a, .fusion-secondary-menu li.menu-item-has-children a, .side-nav li.page_item_has_children a").each(function(){jQuery(this).attr("aria-haspopup","true")}),jQuery(".megaResponsive").length>=1&&jQuery(".mobile-nav-holder.main-menu").addClass("set-invisible"),""!==js_local_vars.language_flag&&jQuery(".search-field, .searchform").each(function(){jQuery(this).find('input[name="lang"]').length||jQuery(this).parents(".searchform").find('input[name="lang"]').length||jQuery(this).append(' ')}),jQuery("#wrapper .share-box").each(function(){jQuery('meta[property="og:title"]').length||(jQuery("head title").after(' '),jQuery("head title").after(' '),jQuery("head title").after(' '),jQuery("head title").after(' '),jQuery("head title").after(' '))}),sharebox_h4_width=jQuery("#wrapper .share-box h4").outerWidth(),sharebox_ul=jQuery(".share-box ul").outerWidth(),sharebox_h4_width+sharebox_ul>jQuery(".post-content").width()&&!jQuery(".single-avada_portfolio").length?(jQuery("#wrapper .share-box").css("height","auto"),jQuery("#wrapper .share-box h4").css("float","none").css("line-height","20px").css("padding-bottom","25px").css("padding-top","25px"),jQuery(".share-box ul").css("float","none").css("margin-top","0").css("overflow","hidden").css("padding","0 25px 25px")):jQuery("#wrapper .share-box").css("height",""),jQuery(window).on("resize",function(){jQuery(".title").each(function(a){l[a]>jQuery(this).parent().width()?jQuery(this).addClass("border-below-title"):jQuery(this).removeClass("border-below-title")}),sharebox_h4_width+sharebox_ul>jQuery("#content").width()?(jQuery("#wrapper .share-box").css("height","auto"),jQuery("#wrapper .share-box h4").css("float","none").css("line-height","20px").css("padding-bottom","25px").css("padding-top","25px"),jQuery(".share-box ul").css("float","none").css("margin-top","0").css("overflow","hidden").css("padding","0 25px 25px")):jQuery("#wrapper .share-box").css("height","")}),"Top"==js_local_vars.header_position&&jQuery(window).on("resize",function(){jQuery(".main-nav-search").each(function(){if(jQuery(this).hasClass("search-box-open")){var a=jQuery(this).find(".main-nav-search-form"),b=a.outerWidth(),c=a.offset().left,d=c+b,e=a.parent().offset().left,f=jQuery(window).width();a.css(jQuery("body.rtl").length?c==e&&d>f||e>c&&d+b>f?{left:"auto",right:"0"}:{left:"0",right:"auto"}:e>c&&0>c||c==e&&0>c-b?{left:"0",right:"auto"}:{left:"auto",right:"0"})}})});var l=[];jQuery(".title").each(function(a){l[a]=jQuery(this).find("h1,h2,h3,h4,h5,h6").width(),jQuery(this).find("h1,h2,h3,h4,h5,h6").width()>jQuery(this).parent().width()&&jQuery(this).addClass("border-below-title")}),jQuery(".fusion-tabs").fusion_switch_tab_on_link_click(),jQuery(".nav-tabs li").click(function(a){var b=jQuery(this),c=jQuery(this).find("a").attr("href");b.attr("id");setTimeout(function(){b.parents(".fusion-tabs").find(c).find(".shortcode-map").each(function(){jQuery(this).reinitialize_google_map()}),b.parents(".fusion-tabs").find(c).find(".fusion-carousel").length&&generate_carousel(),b.parents(".fusion-tabs").find(c).find(".fusion-portfolio").each(function(){jQuery(this).find(".fusion-portfolio-wrapper").isotope()}),b.parents(".fusion-tabs").find(c).find(".flexslider, .rev_slider_wrapper, .ls-container").length&&jQuery(window).trigger("resize"),b.parents(".fusion-tabs").find(c).find(".fusion-blog-shortcode").each(function(){var a=2;for(f=1;7>f;f++)jQuery(this).find(".fusion-blog-layout-grid").hasClass("fusion-blog-layout-grid-"+f)&&(a=f);var b=Math.floor(100/a*100)/100+"%";jQuery(this).find(".fusion-blog-layout-grid").find(".fusion-post-grid").css("width",b),jQuery(this).find(".fusion-blog-layout-grid").isotope(),calc_select_arrow_dimensions()})},350),a.preventDefault()}),jQuery(".tabs-widget .tabset li a").click(function(a){a.preventDefault()}),jQuery(".tabs-widget").each(function(){jQuery(this).find(".tabset li:first").addClass("active").show(),jQuery(this).find(".tab_content:first").show()}),jQuery(".tabs-widget .tabset li").click(function(a){var b=jQuery(this).find("a").attr("href");jQuery(this).parent().find(" > li").removeClass("active"),jQuery(this).addClass("active"),jQuery(this).parents(".tabs-widget").find(".tab_content").hide(),jQuery(this).parents(".tabs-widget").find(b).fadeIn()}),jQuery(".woocommerce .images #carousel a").click(function(a){a.preventDefault()}),jQuery(".tooltip-shortcode, .fusion-secondary-header .fusion-social-networks li, .fusion-author-social .fusion-social-networks li, .fusion-footer-copyright-area .fusion-social-networks li, .fusion-footer-widget-area .fusion-social-networks li, .sidebar .fusion-social-networks li, .social_links_shortcode li, .share-box li, .social-icon, .social li").mouseenter(function(a){jQuery(this).find(".popup").hoverFlow(a.type,{opacity:"show"})}),jQuery(".tooltip-shortcode, .fusion-secondary-header .fusion-social-networks li, .fusion-author-social .fusion-social-networks li, .fusion-footer-copyright-area .fusion-social-networks li, .fusion-footer-widget-area .fusion-social-networks li, .sidebar .fusion-social-networks li, .social_links_shortcode li, .share-box li, .social-icon, .social li").mouseleave(function(a){jQuery(this).find(".popup").hoverFlow(a.type,{opacity:"hide"})}),jQuery(".fusion-portfolio .fusion-filters a").click(function(a){a.preventDefault();var b=jQuery(this).data("filter"),c=[];jQuery(this).parents(".fusion-portfolio").find(".fusion-portfolio-wrapper").isotope({filter:b}),jQuery(this).parents(".fusion-filters").find(".fusion-filter").removeClass("fusion-active"),jQuery(this).parent().addClass("fusion-active"),jQuery(this).parents(".fusion-portfolio").find(".fusion-portfolio-wrapper").find(".fusion-portfolio-post").each(function(){var a="";if("individual"==js_local_vars.lightbox_behavior&&jQuery(this).find(".fusion-rollover-gallery").length&&(a=jQuery(this).find(".fusion-rollover-gallery").data("id")),b.length)var d=b.substr(1),e="iLightbox["+d+a+"]";else var d="fusion-portfolio-post",e="iLightbox[gallery"+a+"]";jQuery(this).hasClass(d)&&(b.length&&c.push(d+a),jQuery(this).find(".fusion-rollover-gallery").attr("data-rel",e),jQuery(this).find(".fusion-portfolio-gallery-hidden a").attr("data-rel",e))}),"created"!=jQuery(this).data("lightbox")&&(jQuery.each(c,function(a,b){$il_instances.push(jQuery('[data-rel="iLightbox['+b+']"], [rel="iLightbox['+b+']"]').iLightBox($avada_lightbox.prepare_options("iLightbox["+b+"]")))}),$avada_lightbox.refresh_lightbox(),jQuery(this).data("lightbox","created"))}),jQuery(".fusion-faqs").each(function(){var a=jQuery(this),b=a.find(".fusion-filters");if(jQuery(".fusion-faqs-wrapper").fadeIn(),b.length){b.fadeIn();var c=b.find(".fusion-filter"),d=b.find(".fusion-active").children("a"),e=d.attr("data-filter").substr(1),f=jQuery(this).find(".fusion-faqs-wrapper .fusion-faq-post");c&&c.each(function(){var a=jQuery(this),b=a.children("a").data("filter");f&&(e.length&&f.hide(),f.each(function(){var c=jQuery(this);c.hasClass(b.substr(1))&&a.hasClass("fusion-hidden")&&a.removeClass("fusion-hidden"),e.length&&c.hasClass(e)&&c.show()}))})}a.find(".fusion-filters a").click(function(b){b.preventDefault();var c=jQuery(this).attr("data-filter");a.find(".fusion-faqs-wrapper .fusion-faq-post").fadeOut(),setTimeout(function(){a.find(".fusion-faqs-wrapper .fusion-faq-post"+c).fadeIn()},400),jQuery(this).parents(".fusion-filters").find(".fusion-filter").removeClass("fusion-active"),jQuery(this).parent().addClass("fusion-active")})}),jQuery(".fusion-alert .close").click(function(a){a.preventDefault(),jQuery(this).parent().slideUp()}),jQuery("input, textarea").placeholder(),
Modernizr.mq("only screen and (max-width: 479px)")&&(jQuery(".overlay-full.layout-text-left .slide-excerpt p").each(function(){var a=jQuery(this).html(),b=a.split(/[\s\.\?]+/),c=10,d=b.length,e="";if(d>c+1){for(var f=0;c>f;f++)e+=b[f]+" ";jQuery(this).html(e)}}),jQuery(".fusion-portfolio .fusion-rollover-gallery").each(function(){var a=jQuery(this).attr("href");c(a)===!0&&jQuery(this).parents(".fusion-image-wrapper").find("> img").attr("src",a).attr("width","").attr("height",""),jQuery(this).parents(".fusion-portfolio-post").css("width","auto"),jQuery(this).parents(".fusion-portfolio-post").css("height","auto"),jQuery(this).parents(".fusion-portfolio-one:not(.fusion-portfolio-one-text)").find(".fusion-portfolio-post").css("margin","0")}),jQuery(".fusion-portfolio").length&&jQuery(".fusion-portfolio-wrapper").isotope()),Modernizr.mq("only screen and (max-width: 800px)")&&jQuery(".tabs-vertical").addClass("tabs-horizontal").removeClass("tabs-vertical"),jQuery(window).on("resize",function(){Modernizr.mq("only screen and (max-width: 800px)")?(jQuery(".tabs-vertical").addClass("tabs-original-vertical"),jQuery(".tabs-vertical").addClass("tabs-horizontal").removeClass("tabs-vertical")):jQuery(".tabs-original-vertical").removeClass("tabs-horizontal").addClass("tabs-vertical")}),jQuery(".catalog-ordering .orderby .current-li a").html(jQuery(".catalog-ordering .orderby ul li.current a").html()),jQuery(".catalog-ordering .sort-count .current-li a").html(jQuery(".catalog-ordering .sort-count ul li.current a").html()),jQuery(".woocommerce .shop_table .variation dd").after(" "),jQuery(".woocommerce .avada-myaccount-data th.order-actions").text(js_local_vars.order_actions),jQuery("body.rtl .woocommerce .wc-forward").each(function(){var a=jQuery(this);a.val("← "+a.val().replace("→",""))}),jQuery(".avada_myaccount_user").length&&jQuery(".woocommerce-error").length&&!jQuery(".avada-myaccount-nav").find(".active").children().hasClass("address")&&(jQuery(".avada-myaccount-nav").find(".active").removeClass("active"),jQuery(".avada-myaccount-nav").find(".account").parent().addClass("active"));var m=jQuery(".avada-myaccount-nav").find(".active a");m.hasClass("address")?jQuery(".avada-myaccount-data .edit_address_heading").fadeIn():jQuery(".avada-myaccount-data h2:nth-of-type(1)").fadeIn(),m.hasClass("downloads")?jQuery(".avada-myaccount-data .digital-downloads").fadeIn():m.hasClass("orders")?jQuery(".avada-myaccount-data .my_account_orders").fadeIn():m.hasClass("address")?jQuery(".avada-myaccount-data .myaccount_address, .avada-myaccount-data .address").fadeIn():m&&(jQuery(".avada-myaccount-data .edit-account-form, .avada-myaccount-data .edit-account-heading").fadeIn(),jQuery(".avada-myaccount-data h2:nth-of-type(1)").hide()),jQuery("body.rtl .avada-myaccount-data .my_account_orders .order-status").each(function(){jQuery(this).css("text-align","right")}),jQuery(".woocommerce input").each(function(){if(!jQuery(this).has("#coupon_code")){var a=jQuery(this).attr("id");jQuery(this).attr("placeholder",jQuery(this).parent().find("label[for="+a+"]").text())}}),jQuery(".woocommerce #reviews #comments .comment_container .comment-text").length&&jQuery(".woocommerce #reviews #comments .comment_container").append('
');for(var d=js_local_vars.title_style_type.split(" "),e="",f=0;f h2").length&&(jQuery(".woocommerce.single-product .related.products > h2").addClass("title-heading-left"),jQuery(".woocommerce.single-product .related.products > h2").wrap('
'),jQuery(".woocommerce.single-product .related.products > .title").append('')),jQuery(".woocommerce.single-product .upsells.products > h2").length&&(jQuery(".woocommerce.single-product .upsells.products > h2").addClass("title-heading-left"),jQuery(".woocommerce.single-product .upsells.products > h2").wrap('
'),jQuery(".woocommerce.single-product .upsells.products > .title").append('')),"block"==jQuery("body .sidebar").css("display")&&calcTabsLayout(".woocommerce-tabs .tabs-horizontal"),jQuery(".sidebar .products,.fusion-footer-widget-area .products,#slidingbar-area .products").each(function(){jQuery(this).removeClass("products-4"),jQuery(this).removeClass("products-3"),jQuery(this).removeClass("products-2"),jQuery(this).addClass("products-1")}),jQuery(".products-6 li, .products-5 li, .products-4 li, .products-3 li, .products-3 li").removeClass("last"),jQuery(".subcategory-products").each(function(){jQuery(this).addClass("products-"+js_local_vars.woocommerce_shop_page_columns)}),jQuery(".woocommerce-tabs ul.tabs li a").unbind("click"),jQuery(".woocommerce-tabs > ul.tabs li a").click(function(){var a=jQuery(this),b=a.closest(".woocommerce-tabs");return jQuery("ul.tabs li",b).removeClass("active"),jQuery("> div.panel",b).hide(),jQuery("div"+a.attr("href"),b).show(),a.parent().addClass("active"),!1}),jQuery(".woocommerce-checkout-nav a,.continue-checkout").click(function(b){var c=jQuery("#wpadminbar").length?jQuery("#wpadminbar").height():0,d=jQuery(".fusion-header-wrapper").find("div"),e=0;if(d.each(function(){"fixed"==jQuery(this).css("position")&&(e=jQuery(this).height())}),b.preventDefault(),!jQuery(".woocommerce .avada-checkout").find(".woocommerce-invalid").is(":visible")){var f=a(this).attr("data-name"),g=f;"#order_review"!=f&&(g="."+f),jQuery("form.checkout .col-1, form.checkout .col-2, form.checkout #order_review_heading, form.checkout #order_review").hide(),jQuery("form.checkout").find(g).fadeIn(),"#order_review"==g&&jQuery("form.checkout").find("#order_review_heading").fadeIn(),jQuery(".woocommerce-checkout-nav li").removeClass("active"),jQuery(".woocommerce-checkout-nav").find("[data-name="+f+"]").parent().addClass("active"),jQuery(this).hasClass("continue-checkout")&&jQuery(window).scrollTop()>0&&jQuery("html, body").animate({scrollTop:jQuery(".woocommerce-content-box.avada-checkout").offset().top-c-e},500)}calc_select_arrow_dimensions()}),jQuery("input[name=ship_to_different_address]").change(function(){jQuery(this).is(":checked")&&setTimeout(function(){calc_select_arrow_dimensions()},1)}),jQuery(".avada-myaccount-nav a").click(function(a){a.preventDefault(),jQuery(".avada-myaccount-data h2, .avada-myaccount-data .digital-downloads, .avada-myaccount-data .my_account_orders, .avada-myaccount-data .myaccount_address, .avada-myaccount-data .address, .avada-myaccount-data .edit-account-heading, .avada-myaccount-data .edit-account-form").hide(),jQuery(this).hasClass("downloads")?jQuery(".avada-myaccount-data h2:nth-of-type(1), .avada-myaccount-data .digital-downloads").fadeIn():jQuery(this).hasClass("orders")?(jQuery(this).parents(".avada-myaccount-nav").find(".downloads").length?heading=jQuery(".avada-myaccount-data h2:nth-of-type(2)"):heading=jQuery(".avada-myaccount-data h2:nth-of-type(1)"),heading.fadeIn(),jQuery(".avada-myaccount-data .my_account_orders").fadeIn()):jQuery(this).hasClass("address")?(jQuery(this).parents(".avada-myaccount-nav").find(".downloads").length&&jQuery(this).parents(".avada-myaccount-nav").find(".orders").length?heading=jQuery(".avada-myaccount-data h2:nth-of-type(3)"):jQuery(this).parents(".avada-myaccount-nav").find(".downloads").length||jQuery(this).parents(".avada-myaccount-nav").find(".orders").length?heading=jQuery(".avada-myaccount-data h2:nth-of-type(2)"):heading=jQuery(".avada-myaccount-data h2:nth-of-type(1)"),heading.fadeIn(),jQuery(".avada-myaccount-data .myaccount_address, .avada-myaccount-data .address").fadeIn()):jQuery(this).hasClass("account")&&jQuery(".avada-myaccount-data .edit-account-heading, .avada-myaccount-data .edit-account-form").fadeIn(),jQuery(".avada-myaccount-nav li").removeClass("active"),jQuery(this).parent().addClass("active")}),jQuery(".add_to_cart_button").click(function(a){var b=jQuery(this);b.closest(".product").find(".cart-loading").find("i").removeClass("fusion-icon-check-square-o").addClass("fusion-icon-spinner"),b.closest(".product").find(".cart-loading").fadeIn(),setTimeout(function(){b.closest(".product").find(".product-images img").animate({opacity:.75}),b.closest(".product").find(".cart-loading").find("i").hide().removeClass("fusion-icon-spinner").addClass("fusion-icon-check-square-o").fadeIn(),setTimeout(function(){b.closest(".product").find(".cart-loading").fadeOut().closest(".product").find(".product-images img").animate({opacity:1})},2e3)},2e3)}),jQuery("li.product").mouseenter(function(){jQuery(this).find(".cart-loading").find("i").hasClass("fusion-icon-check-square-o")&&jQuery(this).find(".cart-loading").fadeIn()}).mouseleave(function(){jQuery(this).find(".cart-loading").find("i").hasClass("fusion-icon-check-square-o")&&jQuery(this).find(".cart-loading").fadeOut()}),jQuery(".textarea-comment").each(function(){jQuery(this).css("max-width",jQuery("#content").width())}),Modernizr.mq("only screen and (max-width: 800px)")&&jQuery(".fullwidth-faded").each(function(){var a=jQuery(this).css("background-image");jQuery(this).parent().css("background-image",a),jQuery(this).remove()}),jQuery(".gform_wrapper").each(function(){jQuery(this).removeClass("gf_browser_ie")}),jQuery(".link-area-box").on("click",function(){jQuery(this).attr("data-link")&&(window.location=jQuery(this).attr("data-link"))}),jQuery(".link-type-button").each(function(){if(jQuery(this).parents(".content-boxes-clean-vertical").length>=1){var a=jQuery(".fusion-read-more-button").outerHeight();jQuery(this).find(".fusion-read-more-button").css("top",a/2)}}),jQuery(".link-area-link-icon .fusion-read-more-button, .link-area-link-icon .fusion-read-more, .link-area-link-icon .heading").mouseenter(function(){jQuery(this).parents(".link-area-link-icon").addClass("link-area-link-icon-hover")}),jQuery(".link-area-link-icon .fusion-read-more-button, .link-area-link-icon .fusion-read-more, .link-area-link-icon .heading").mouseleave(function(){jQuery(this).parents(".link-area-link-icon").removeClass("link-area-link-icon-hover")}),jQuery(".link-area-box").mouseenter(function(){jQuery(this).addClass("link-area-box-hover")}),jQuery(".link-area-box").mouseleave(function(){jQuery(this).removeClass("link-area-box-hover")})}),jQuery(window).load(function(){void 0===cssua.ua.mobile&&("1"==js_local_vars.page_title_fading&&jQuery(".fusion-page-title-wrapper").fusion_scroller("Left"==js_local_vars.header_position||"Right"==js_local_vars.header_position?{type:"opacity",end_offset:".fusion-page-title-captions > h1"}:{type:"opacity",offset:100}),jQuery(".fullwidth-faded").fusion_scroller({type:"fading_blur"}))}),jQuery(document).ready(function(){var a=jQuery("iframe");jQuery.each(a,function(a,b){var c=jQuery(this).attr("src");if(c){if(!Number(js_local_vars.status_vimeo)&&c.indexOf("vimeo")>=1){jQuery(this).attr("id","player_"+(a+1));var d=insertParam(c,"api","1",!1),e=insertParam(d,"player_id","player_"+(a+1),!1),f=insertParam(e,"wmode","opaque",!1);jQuery(this).attr("src",f)}if(!Number(js_local_vars.status_yt)&&ytVidId(c)){jQuery(this).attr("id","player_"+(a+1)),jQuery(this).parent().not(".post-content").wrap(' ');var d=insertParam(c,"enablejsapi","1",!1),e=insertParam(d,"wmode","opaque",!1);jQuery(this).attr("src",e),window.yt_vid_exists=!0}}}),jQuery(".full-video, .video-shortcode, .wooslider .slide-content").not("#bbpress-forums full-video, #bbpress-forums .video-shortcode, #bbpress-forums .wooslider .slide-content").fitVids(),jQuery("#bbpress-forums").fitVids()}),jQuery(window).load(function(){jQuery(".fusion-youtube-flash-fix").remove()}),jQuery(document).ready(function(){if(jQuery(".fusion-fullwidth.video-background").each(function(){jQuery(this).find("> div").attr("data-youtube-video-id")&&(window.yt_vid_exists=!0)}),!Number(js_local_vars.status_yt)&&window.yt_vid_exists===!0){var a=document.createElement("script");a.src=window.location.protocol+"//www.youtube.com/iframe_api";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}});var YT_ready=function(){var a=[],b=!1;return function(c,d){if(c===!0)for(b=!0;a.length;)a.shift()();else"function"==typeof c&&(b?c():a[d?"unshift":"push"](c))}}(),orig_logo_height=jQuery(".header-wrapper").find(".logo").height(),orig_logo_container_margin_top=String(jQuery(".header-wrapper").find(".logo").data("margin-top")),orig_logo_container_margin_bottom=String(jQuery(".header-wrapper").find(".logo").data("margin-bottom")),orig_menu_height=jQuery(".header-wrapper .fusion-navbar-nav > li > a").outerHeight();if(jQuery("#wrapper").length>=1)var wrapper_position=jQuery("#wrapper").position().left;else var wrapper_position;var is_parallax_tfs_slider=!1;if(orig_logo_container_margin_top||(orig_logo_container_margin_top="0px"),orig_logo_container_margin_bottom||(orig_logo_container_margin_bottom="0px"),jQuery(window).load(function(){function a(a){var b=$f(a),c=jQuery("#"+a).parents("li");b.addEvent("play",function(b){jQuery("#"+a).parents("li").parent().parent().flexslider("pause")}),b.addEvent("pause",function(b){jQuery("#"+a).parents("li").parent().parent().flexslider("yes"==jQuery(c).attr("data-loop")?"pause":"play")})}function b(a){jQuery(a).find("iframe").each(function(a){var b="pauseVideo";this.contentWindow.postMessage('{"event":"command","func":"'+b+'","args":""}',"*"),!jQuery(this).parents("li").hasClass("clone")&&jQuery(this).parents("li").hasClass("flex-active-slide")&&"yes"==jQuery(this).parents("li").attr("data-autoplay")&&(jQuery(this).parents(".flexslider").flexslider("pause"),this.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"),"yes"==jQuery(this).parents("li").attr("data-mute")&&this.contentWindow.postMessage('{"event":"command","func":"mute","args":""}',"*"))}),jQuery(a).find("video").each(function(a){"function"==typeof jQuery(this)[0].pause&&jQuery(this)[0].pause(),!jQuery(this).parents("li").hasClass("clone")&&jQuery(this).parents("li").hasClass("flex-active-slide")&&"yes"==jQuery(this).parents("li").attr("data-autoplay")&&"function"==typeof jQuery(this)[0].play&&jQuery(this)[0].play()})}var c=jQuery(".fusion-header-wrapper").height();if(jQuery(".sidebar").is(":visible")&&jQuery(".post-content .fusion-portfolio").each(function(){var a=jQuery(this).data("columns");jQuery(this).addClass("fusion-portfolio-"+a+"-sidebar")}),jQuery().isotope&&jQuery(".fusion-portfolio .fusion-portfolio-wrapper").length&&jQuery(".fusion-portfolio .fusion-portfolio-wrapper").each(function(){jQuery(this).next(".fusion-load-more-button").fadeIn(),jQuery(this).find(".fusion-placeholder-image").each("fixed"==jQuery(this).data("picturesize")?function(){jQuery(this).css({height:jQuery(this).parents(".fusion-portfolio-post").siblings().first().find("img").height(),width:jQuery(this).parents(".fusion-portfolio-post").siblings().first().find("img").width()})}:function(){jQuery(this).css({width:jQuery(this).parents(".fusion-portfolio-post").siblings().first().find("img").width()})});var a="";if(jQuery(".fusion-filters").length){var b=jQuery(".fusion-filters").find(".fusion-filter"),c=jQuery(".fusion-filters").find(".fusion-active"),d=c.children("a"),e=d.attr("data-filter").substr(1),f=jQuery(this).find(".fusion-portfolio-post"),g=[];b&&b.each(function(){var a=jQuery(this),b=a.children("a").data("filter");f&&(e.length&&f.hide(),jQuery(".fusion-filters").show(),f.each(function(){var c=jQuery(this),d=c.find(".fusion-rollover-gallery").data("rel");if(c.hasClass(b.substr(1))&&a.hasClass("fusion-hidden")&&a.removeClass("fusion-hidden"),e.length&&c.hasClass(e)&&(c.show(),d)){var f=d.replace("gallery",e);c.find(".fusion-rollover-gallery").attr("data-rel",f),g.push(f)}}))}),e.length&&(a="."+e,jQuery.each(g,function(a,b){$il_instances.push(jQuery('[data-rel="'+b+'"], [rel="'+b+'"]').iLightBox($avada_lightbox.prepare_options(b)))}),$avada_lightbox.refresh_lightbox(),d.data("lightbox","created"))}jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")}),$portfolio_wrapper=jQuery(this),setTimeout(function(){$portfolio_wrapper.parent().hasClass("fusion-portfolio-one")?(window.$portfolio_isotope=$portfolio_wrapper,window.$portfolio_isotope.isotope({itemSelector:".fusion-portfolio-post",layoutMode:"vertical",transformsEnabled:!1,isOriginLeft:jQuery(".rtl").length?!1:!0,filter:a})):(window.$portfolio_isotope=$portfolio_wrapper,window.$portfolio_isotope.isotope({itemSelector:".fusion-portfolio-post",resizable:!0,layoutMode:js_local_vars.isotope_type,transformsEnabled:!1,isOriginLeft:jQuery(".rtl").length?!1:!0,filter:a}))},1);var h=jQuery(this).find(".fusion-portfolio-post .fusion-placeholder-image");h.each(function(){jQuery(this).parents(".fusion-portfolio-content-wrapper, .fusion-image-wrapper").animate({opacity:1})});var i=jQuery(this).find(".fusion-portfolio-post .fusion-video");i.each(function(){jQuery(this).animate({opacity:1}),jQuery(this).parents(".fusion-portfolio-content-wrapper").animate({opacity:1})}),i.fitVids(),window.$portfolio_images_index=0,jQuery(this).imagesLoaded().progress(function(a,b){jQuery(b.img).parents(".fusion-portfolio-content-wrapper").length>=1?jQuery(b.img,h).parents(".fusion-portfolio-content-wrapper").delay(100*window.$portfolio_images_index).animate({opacity:1}):jQuery(b.img,h).parents(".fusion-image-wrapper").delay(100*window.$portfolio_images_index).animate({opacity:1}),window.$portfolio_images_index++}),setTimeout(function(){jQuery(window).trigger("resize")},250)}),jQuery().flexslider){if(!Number(js_local_vars.status_vimeo)){jQuery(".flexslider").find("iframe");jQuery(".flexslider").find("iframe").each(function(){var b=jQuery(this).attr("id");b&&$f(b).addEvent("ready",a)})}jQuery(".tfs-slider").each(function(){var a=this,d=jQuery(a).find("li").get(0);if(jQuery(a).parents(".post-content").length>=1&&(jQuery(a).data("parallax",0),jQuery(a).data("full_screen",0)),cssua.ua.tablet_pc&&jQuery(a).data("parallax",0),(cssua.ua.mobile||Modernizr.mq("only screen and (max-width: 1000px)"))&&jQuery(a).data("parallax",0),e=0,jQuery("#wpadminbar").length>=1)var e=jQuery("#wpadminbar").height();if(jQuery(a).parents("#sliders-container").length>=1&&1===jQuery(a).data("parallax")&&jQuery(".fusion-header").addClass("fusion-header-backface"),1==jQuery(a).data("full_screen")){var f=jQuery(window).height();if(jQuery(a).parents("#sliders-container").next().hasClass("fusion-header-wrapper")&&(f+=c-e),0===jQuery(a).data("parallax")&&(f=js_local_vars.header_transparency?jQuery(window).height()-e:jQuery(window).height()-(c+e)),Modernizr.mq("only screen and (max-width: 1000px)"))if("above"==js_local_vars.header_position)var f=jQuery(window).height()-(c+e);else var f=jQuery(window).height()-e;jQuery(a).find("video").each(function(){var b=jQuery(this).width()/jQuery(this).height(),c=b*f,d="-"+(c-jQuery(a).width())/2+"px",e=jQuery(a).parent().parent().parent().width();jQuery(a).parents(".post-content").length>=1&&(e=jQuery(a).width()),e>c&&(c="100%",d=0),jQuery(this).width(c),jQuery(this).css("left",d)})}else{var g=jQuery(a).data("slider_width");if(-1!=g.indexOf("%")){g=jQuery(d).find(".background-image").data("imgwidth"),g||cssua.ua.mobile||(g=jQuery(d).find("video").width()),g||(g=940),jQuery(a).data("first_slide_width",g),gh&&(h=.5);var i=jQuery(a).parent().parent().parent().width();jQuery(a).parents(".post-content").length>=1&&(i=jQuery(a).width());var f=h*i;f>parseInt(jQuery(a).data("slider_height"))&&(f=parseInt(jQuery(a).data("slider_height"))),200>f&&(f=200)}if(1==jQuery(a).data("full_screen")&&(jQuery(a).css("max-width","100%"),jQuery(a).find(".slides, .background").css("width","100%")),"Left"!=js_local_vars.header_position&&"Right"!=js_local_vars.header_position||jQuery(a).hasClass("fixed-width-slider")||1!=jQuery(a).data("parallax")||(jQuery(a).css("max-width",jQuery("#wrapper").width()),jQuery("body").hasClass("side-header-left")?jQuery(a).css("left",jQuery("#side-header").width()+1):jQuery("body").hasClass("side-header-right")&&jQuery(a).css("right",jQuery("#side-header").width()+1)),jQuery(a).parents(".fusion-slider-container").css("height",f),jQuery(a).css("height",f),jQuery(a).find(".background, .mobile_video_image").css("height",f),jQuery(".layout-boxed-mode").length>=1){var j=jQuery(".layout-boxed-mode #wrapper").width();jQuery(a).css("width",j),jQuery(a).css("margin-left","auto"),jQuery(a).css("margin-right","auto"),1!=jQuery(a).data("parallax")||Modernizr.mq("only screen and (max-width: 1000px)")||(jQuery(a).css("left","50%"),"Left"==js_local_vars.header_position||"Right"==js_local_vars.header_position?(j=jQuery(".layout-boxed-mode #wrapper").width()-jQuery(".layout-boxed-mode #side-header").width(),"Right"==js_local_vars.header_position&&(j=jQuery(".layout-boxed-mode #wrapper").width()+jQuery(".layout-boxed-mode #side-header").width()),jQuery(a).css("margin-left","-"+Math.floor(j/2)+"px")):jQuery(a).css("margin-left","-"+j/2+"px")),jQuery(a).find(".slides, .background").css("width","100%")}cssua.ua.mobile&&(jQuery(a).find(".fusion-button").each(function(){jQuery(this).removeClass("button-xlarge button-large button-medium"),jQuery(this).addClass("button-small")}),jQuery(a).find("li").each(function(){jQuery(this).attr("data-autoplay","no"),jQuery(this).data("autoplay","no")})),jQuery(a).find("a.button").each(function(){jQuery(this).data("old",jQuery(this).attr("class"))}),Modernizr.mq("only screen and (max-width: 800px)")?jQuery(a).find(".fusion-button").each(function(){jQuery(this).data("old",jQuery(this).attr("class")),jQuery(this).removeClass("button-xlarge button-large button-medium"),jQuery(this).addClass("button-small")}):jQuery(a).find("a.button").each(function(){jQuery(this).attr("class",jQuery(this).data("old"))}),1==jQuery(a).data("parallax")&&jQuery(window).scroll(function(){jQuery(window).scrollTop()>=jQuery(a).parents("#sliders-container").position().top+jQuery(a).parents("#sliders-container").height()?jQuery(a).css("display","none"):jQuery(a).css("display","block")});var k=jQuery(window).width(),l=jQuery(window).height();jQuery(window).on("resize",function(){if(jQuery(window).width()!=k||jQuery(window).height()!=l){var b=0;if(jQuery("#wpadminbar").length>=1)var b=jQuery("#wpadminbar").height();if(1==jQuery(a).data("full_screen")){var d=jQuery(window).height();if(jQuery(a).parents("#sliders-container").next().hasClass("fusion-header-wrapper")&&(d+=c-b),0===jQuery(a).data("parallax")&&(d=js_local_vars.header_transparency?jQuery(window).height()-b:jQuery(window).height()-(c+b)),Modernizr.mq("only screen and (max-width: 1000px)"))if("above"==js_local_vars.header_position)var d=jQuery(window).height()-(c+b);else var d=jQuery(window).height()-b;jQuery(a).find("video").each(function(){var b=jQuery(this).width()/jQuery(this).height(),c=b*jQuery(window).height(),d="-"+(c-jQuery(a).width())/2+"px",e=jQuery(a).parent().parent().parent().width();jQuery(a).parents(".post-content").length>=1&&(e=jQuery(a).width()),e>c&&(c="100%",d=0),jQuery(this).width(c),jQuery(this).css("left",d)})}else{var e=jQuery(a).data("slider_width");if(-1!=e.indexOf("%")){e=jQuery(a).data("first_slide_width"),eg&&(g=.5);var h=jQuery(a).parent().parent().parent().width();jQuery(a).parents(".post-content").length>=1&&(h=jQuery(a).width());var d=g*h;d>parseInt(jQuery(a).data("slider_height"))&&(d=parseInt(jQuery(a).data("slider_height"))),200>d&&(d=200),jQuery(a).find("video").each(function(){var b=jQuery(this).width()/jQuery(this).height(),c=b*d;e>c&&!jQuery(a).hasClass("full-width-slider")&&(c=e);var g="-"+(c-jQuery(a).width())/2+"px",h=jQuery(a).parent().parent().parent().width();jQuery(a).parents(".post-content").length>=1&&(h=jQuery(a).width()),h>c&&f===!0&&1!=jQuery(a).data("full_screen")&&(c="100%",g=0),jQuery(this).width(c),jQuery(this).css("left",g)}),jQuery(a).find(".fusion-button").each(Modernizr.mq("only screen and (max-width: 800px)")?function(){jQuery(this).removeClass("button-xlarge button-large button-medium"),jQuery(this).addClass("button-small")}:function(){jQuery(this).attr("class",jQuery(this).data("old"))})}if(1==jQuery(a).data("full_screen")&&"fade"==jQuery(a).data("animation")&&(jQuery(a).css("max-width","100%"),jQuery(a).find(".slides, .background").css("width","100%")),"Left"!=js_local_vars.header_position&&"Right"!=js_local_vars.header_position||jQuery(a).hasClass("fixed-width-slider")||1!=jQuery(a).data("parallax")||(jQuery(a).css("max-width",jQuery("#wrapper").width()),jQuery("body").hasClass("side-header-left")?jQuery(a).css("left",jQuery("#side-header").width()+1):jQuery("body").hasClass("side-header-right")&&jQuery(a).css("right",jQuery("#side-header").width()+1)),jQuery(a).parents(".fusion-slider-container").css("height",d),jQuery(a).parents(".fusion-slider-container").css("max-height",d),jQuery(a).css("height",d),jQuery(a).find(".background, .mobile_video_image").css("height",d),jQuery(".layout-boxed-mode").length>=1&&0===jQuery(a).parents(".post-content").length){var i=jQuery(".layout-boxed-mode #wrapper").width();jQuery(a).css("width",i),jQuery(a).css("margin-left","auto"),jQuery(a).css("margin-right","auto"),1!=jQuery(a).data("parallax")||Modernizr.mq("only screen and (max-width: 1000px)")||(jQuery(a).css("left","50%"),"Left"==js_local_vars.header_position||"Right"==js_local_vars.header_position?(i=jQuery(".layout-boxed-mode #wrapper").width()-jQuery(".layout-boxed-mode #side-header").width(),"Right"==js_local_vars.header_position&&(i=jQuery(".layout-boxed-mode #wrapper").width()+jQuery(".layout-boxed-mode #side-header").width()),jQuery(a).css("margin-left","-"+Math.floor(i/2)+"px")):jQuery(a).css("margin-left","-"+i/2+"px")),"slide"!=jQuery(a).data("animation")&&jQuery(a).find(".slides").css("width","100%"),jQuery(a).find(".background").css("width","100%")}if(1!=jQuery(a).data("parallax")||Modernizr.mq("only screen and (max-width: "+(1e3+parseInt(js_local_vars.side_header_width))+"px)"))1==jQuery(a).data("parallax")&&Modernizr.mq("only screen and (max-width: "+(1e3+parseInt(js_local_vars.side_header_width))+"px)")&&(jQuery(a).css("position","relative"),jQuery(a).css("left","0"),jQuery(a).css("margin-left","0"),"absolute"!=jQuery(".fusion-header-wrapper").css("position")&&jQuery(".fusion-header-wrapper").css("position","relative"),jQuery("#main, .fusion-footer-widget-area, .fusion-footer-copyright-area, .fusion-page-title-bar").css("position","relative"),jQuery("#main, .fusion-footer-widget-area, .fusion-footer-copyright-area, .fusion-page-title-bar").css("z-index","3"),jQuery(".fusion-header-wrapper").css("z-index","5"),jQuery(".fusion-header-wrapper").css("height","auto"),jQuery(a).parents(".fusion-slider-container").css("margin-top",""),jQuery(a).find(".flex-direction-nav li a").css("-webkit-transform","translate(0, 0)"),jQuery(a).find(".flex-direction-nav li a").css("-ms-transform","translate(0, 0)"),jQuery(a).find(".flex-direction-nav li a").css("-o-transform","translate(0, 0)"),jQuery(a).find(".flex-direction-nav li a").css("-moz-transform","translate(0, 0)"),jQuery(a).find(".flex-direction-nav li a").css("transform","translate(0, 0)"),jQuery(a).find(".flex-control-nav").css("bottom",0));else{if(jQuery(a).css("position","fixed"),"absolute"!=jQuery(".fusion-header-wrapper").css("position")&&(jQuery(".fusion-header-wrapper").css("position","relative"),jQuery(a).parents(".fusion-slider-container").css("margin-top","-"+c+"px")),jQuery("#main, .fusion-footer-widget-area, .fusion-footer-copyright-area, .fusion-page-title-bar").css("position","relative"),jQuery("#main, .fusion-footer-widget-area, .fusion-footer-copyright-area, .fusion-page-title-bar").css("z-index","3"),jQuery(".fusion-header-wrapper").css("z-index","5"),jQuery(".fusion-header-wrapper").css("height",c),jQuery(a).find(".flex-direction-nav li a").css("-webkit-transform","translate(0, "+c/2+"px)"),jQuery(a).find(".flex-direction-nav li a").css("-ms-transform","translate(0, "+c/2+"px)"),jQuery(a).find(".flex-direction-nav li a").css("-o-transform","translate(0, "+c/2+"px)"),jQuery(a).find(".flex-direction-nav li a").css("-moz-transform","translate(0, "+c/2+"px)"),jQuery(a).find(".flex-direction-nav li a").css("transform","translate(0, "+c/2+"px)"),jQuery(a).hasClass("fixed-width-slider")){if("Left"==js_local_vars.header_position||"Right"==js_local_vars.header_position){if(jQuery(a).parents("#sliders-container").length)var j=jQuery("#sliders-container");else var j=jQuery("#main");if(j.width()jQuery(a).width()&&(m=-1*jQuery(a).width())}else var m="-"+jQuery(a).width()/2+"px";jQuery(a).css("left","50%"),jQuery(a).css("margin-left",m)}jQuery(a).find(".flex-control-nav").css("bottom",c/2)}if(Modernizr.mq("only screen and (max-width: 640px)")){jQuery(a).parents(".fusion-slider-container").css("height",d),jQuery(a).css("height",d),jQuery(a).find(".background, .mobile_video_image").css("height",d);var n=jQuery(a).find(".slide-content-container");jQuery(n).each(function(){var a="-"+jQuery(this).find(".slide-content").height()/2+"px",b="0px";jQuery(this).css("margin-top",a),jQuery(this).css("padding-top",b)})}else if(Modernizr.mq("only screen and (max-width: 1000px)")){jQuery(a).parents(".fusion-slider-container").css("height",d),jQuery(a).css("height",d),jQuery(a).find(".background, .mobile_video_image").css("height",d);var n=jQuery(a).find(".slide-content-container");jQuery(n).each(function(){var a="-"+jQuery(this).find(".slide-content").height()/2+"px",b="0px";jQuery(this).css("margin-top",a),jQuery(this).css("padding-top",b)})}else{jQuery(a).parents(".fusion-slider-container").css("height",d),jQuery(a).css("height",d),jQuery(a).find(".background, .mobile_video_image").css("height",d);var n=jQuery(a).find(".slide-content-container");jQuery(n).each(function(){jQuery(this).css("-webkit-transform",""),jQuery(this).css("-ms-transform",""),jQuery(this).css("-o-transform",""),jQuery(this).css("-moz-transform",""),jQuery(this).css("transform","");var b="-"+jQuery(this).find(".slide-content").height()/2+"px";if("1"==jQuery(a).data("parallax")&&0===jQuery(a).parents(".post-content").length)var d=c/2;jQuery(this).css("margin-top",b),jQuery(this).css("padding-top",d)})}if(jQuery(a).parents(".post-content").length>=1&&(jQuery(a).parents(".fusion-slider-container").css("height","auto"),jQuery(a).css("height","auto"),jQuery(a).parents(".fusion-slider-container").css("max-height","none"),jQuery(a).find(".mobile_video_image").each(function(){var b=jQuery(".mobile_video_image").css("background-image").replace("url(","").replace(")","");if(b){var c=new Image;c.name=b,c.src=b,c.onload=function(){var b=this.height/this.width,c=jQuery(a).parent().parent().parent().width();jQuery(a).parents(".post-content").length>=1&&(c=jQuery(a).width());var e=b*c;d>e&&(jQuery(a).find(".mobile_video_image").css("height",e),jQuery(a).css("height",e))}}})),("Left"==js_local_vars.header_position||"Right"==js_local_vars.header_position)&&jQuery(a).parents("#sliders-container").length>=1){var n=jQuery(a).parents("#sliders-container").find(".slide-content-container");jQuery(n).each(function(){Modernizr.mq("only screen and (max-width: 1000px)")?(jQuery(this).find(".slide-content").css("margin-left",""),
jQuery(this).find(".slide-content").css("margin-right","")):jQuery(this).hasClass("slide-content-right")?jQuery(this).find(".slide-content").css("margin-right","100px"):jQuery(this).hasClass("slide-content-left")&&jQuery(this).find(".slide-content").css("margin-left","100px")})}Modernizr.mq("only screen and (max-width: 1000px)")&&jQuery(".fusion-header-wrapper").css("height",""),k=jQuery(window).width(),l=jQuery(window).height()}}),jQuery(a).parents(".post-content").length>=1&&(jQuery(a).css("max-width","100%"),"slide"!=jQuery(a).data("animation")&&jQuery(a).find(".slides").css("max-width","100%")),jQuery(a).find("video").each(function(){"function"==typeof jQuery(this)[0].pause&&jQuery(this)[0].pause()}),jQuery(a).flexslider({animation:jQuery(a).data("animation"),slideshow:jQuery(a).data("autoplay"),slideshowSpeed:jQuery(a).data("slideshow_speed"),animationSpeed:jQuery(a).data("animation_speed"),controlNav:Boolean(Number(jQuery(a).data("pagination_circles"))),directionNav:Boolean(Number(jQuery(a).data("nav_arrows"))),animationLoop:Boolean(Number(jQuery(a).data("loop"))),smoothHeight:!0,pauseOnHover:!1,useCSS:!0,video:!0,touch:!0,prevText:"",nextText:"",start:function(b){if(jQuery(a).parent().find(".fusion-slider-loading").remove(),e=0,jQuery("#wpadminbar").length>=1)var e=jQuery("#wpadminbar").height();if(jQuery(b.slides.eq(b.currentSlide)).find(".slide-content-container").show(),1==jQuery(a).data("full_screen")){var f=jQuery(window).height();if(jQuery(a).parents("#sliders-container").next().hasClass("fusion-header-wrapper")&&(f+=c-e),0===jQuery(a).data("parallax")&&(f=js_local_vars.header_transparency?jQuery(window).height()-e:jQuery(window).height()-(c+e)),Modernizr.mq("only screen and (max-width: 1000px)"))if("above"==js_local_vars.header_position)var f=jQuery(window).height()-(c+e);else var f=jQuery(window).height()-e;jQuery(a).find("video").each(function(){var b=jQuery(this).width()/jQuery(this).height(),c=b*f,d="-"+(c-jQuery(a).width())/2+"px",e=jQuery(a).parent().parent().parent().width();jQuery(a).parents(".post-content").length>=1&&(e=jQuery(a).width()),e>c&&(c="100%",d=0),jQuery(this).width(c),jQuery(this).css("left",d)})}else{var g=jQuery(a).data("slider_width");if(-1!=g.indexOf("%")){g=jQuery(d).find(".background-image").data("imgwidth"),g||cssua.ua.mobile||(g=jQuery(d).find("video").width()),g||(g=940),jQuery(a).data("first_slide_width",g),gi&&(i=.5);var j=jQuery(a).parent().parent().parent().width();jQuery(a).parents(".post-content").length>=1&&(j=jQuery(a).width());var f=i*j;f>parseInt(jQuery(a).data("slider_height"))&&(f=parseInt(jQuery(a).data("slider_height"))),200>f&&(f=200),jQuery(a).find("video").each(function(){var b=jQuery(this).width()/jQuery(this).height(),c=b*f;g>c&&!jQuery(a).hasClass("full-width-slider")&&(c=g);var d="-"+(c-jQuery(a).width())/2+"px",e=jQuery(a).parent().parent().parent().width();jQuery(a).parents(".post-content").length>=1&&(e=jQuery(a).width()),e>c&&h===!0&&1!=jQuery(a).data("full_screen")&&(c="100%",d=0),jQuery(this).width(c),jQuery(this).css("left",d)})}if(jQuery(a).parents(".fusion-slider-container").css("max-height",f),jQuery(a).parents(".fusion-slider-container").css("height",f),jQuery(a).css("height",f),jQuery(a).find(".background, .mobile_video_image").css("height",f),(0==jQuery(a).data("full_screen")&&cssua.ua.mobile&&"ipad"!=cssua.ua.mobile||jQuery(a).parents(".post-content").length>=1)&&(jQuery(a).parents(".fusion-slider-container").css("height","auto"),jQuery(a).find(".mobile_video_image").each(function(){var b=jQuery(".mobile_video_image").css("background-image").replace("url(","").replace(")","");if(b){var c=new Image;c.name=b,c.src=b,c.onload=function(){var b=this.height/this.width,c=jQuery(a).parent().parent().parent().width();jQuery(a).parents(".post-content").length>=1&&(c=jQuery(a).width());var d=b*c;f>d&&(jQuery(a).find(".mobile_video_image").css("height",d),jQuery(a).find(".mobile_video_image").css("height",d))}}}),jQuery(b.slides.eq(b.currentSlide)).find("video").length>=1&&jQuery(b.slides.eq(b.currentSlide)).find(".mobile_video_image").length>=1)){var k=jQuery(b.slides.eq(b.currentSlide)).find(".mobile_video_image").css("background-image").replace("url(","").replace(")","");if(k){var l=new Image;l.name=k,l.src=k,l.onload=function(){var b=this.height/this.width,c=jQuery(a).parent().parent().parent().width();jQuery(a).parents(".post-content").length>=1&&(c=jQuery(a).width());var d=b*c;f>d&&(jQuery(a).find(".mobile_video_image").css("height",d),jQuery(a).css("height",d))}}}if(1!=jQuery(a).data("parallax")||Modernizr.mq("only screen and (max-width: "+(1e3+parseInt(js_local_vars.side_header_width))+"px)"))1==jQuery(a).data("parallax")&&Modernizr.mq("only screen and (max-width: "+(1e3+parseInt(js_local_vars.side_header_width))+"px)")&&(jQuery(a).css("position","relative"),jQuery(a).css("left","0"),jQuery(a).css("margin-left","0"),"absolute"!=jQuery(".fusion-header-wrapper").css("position")&&jQuery(".fusion-header-wrapper").css("position","relative"),jQuery("#main, .fusion-footer-widget-area, .fusion-footer-copyright-area, .fusion-page-title-bar").css("position","relative"),jQuery("#main, .fusion-footer-widget-area, .fusion-footer-copyright-area, .fusion-page-title-bar").css("z-index","3"),jQuery(".fusion-header-wrapper").css("z-index","5"),jQuery(".fusion-header-wrapper").css("height","auto"),jQuery(a).parents(".fusion-slider-container").css("margin-top",""),jQuery(a).find(".flex-direction-nav li a").css("-webkit-transform","translate(0, 0)"),jQuery(a).find(".flex-direction-nav li a").css("-ms-transform","translate(0, 0)"),jQuery(a).find(".flex-direction-nav li a").css("-o-transform","translate(0, 0)"),jQuery(a).find(".flex-direction-nav li a").css("-moz-transform","translate(0, 0)"),jQuery(a).find(".flex-direction-nav li a").css("transform","translate(0, 0)"),jQuery(a).find(".flex-control-nav").css("bottom",0));else if(jQuery(a).css("position","fixed"),"absolute"!=jQuery(".fusion-header-wrapper").css("position")&&(jQuery(".fusion-header-wrapper").css("position","relative"),jQuery(a).parents(".fusion-slider-container").css("margin-top","-"+c+"px")),jQuery("#main, .fusion-footer-widget-area, .fusion-footer-copyright-area, .fusion-page-title-bar").css("position","relative"),jQuery("#main, .fusion-footer-widget-area, .fusion-footer-copyright-area, .fusion-page-title-bar").css("z-index","3"),jQuery(".fusion-header-wrapper").css("z-index","5"),jQuery(".fusion-header-wrapper").css("height",c),jQuery(a).find(".flex-direction-nav li a").css("-webkit-transform","translate(0, "+c/2+"px)"),jQuery(a).find(".flex-direction-nav li a").css("-ms-transform","translate(0, "+c/2+"px)"),jQuery(a).find(".flex-direction-nav li a").css("-o-transform","translate(0, "+c/2+"px)"),jQuery(a).find(".flex-direction-nav li a").css("-moz-transform","translate(0, "+c/2+"px)"),jQuery(a).find(".flex-direction-nav li a").css("transform","translate(0, "+c/2+"px)"),1==jQuery(a).data("full_screen")?jQuery(b).find(".flex-control-nav").css("bottom",c/2):jQuery(b).find(".flex-control-nav").css("bottom",0),jQuery(a).hasClass("fixed-width-slider")){if("Left"==js_local_vars.header_position||"Right"==js_local_vars.header_position){if(jQuery(a).parents("#sliders-container").length)var m=jQuery("#sliders-container");else var m=jQuery("#main");if(m.width()jQuery(a).width()&&(n=-1*jQuery(a).width())}else var n="-"+jQuery(a).width()/2+"px";jQuery(a).css("left","50%"),jQuery(a).css("margin-left",n)}if(Modernizr.mq("only screen and (max-width: 640px)")){var o=jQuery(a).find(".slide-content-container");jQuery(o).each(function(){var a="-"+jQuery(this).find(".slide-content").height()/2+"px",b="0px";jQuery(this).css("margin-top",a),jQuery(this).css("padding-top",b)})}else if(Modernizr.mq("only screen and (max-width: 800px)")){var o=jQuery(a).find(".slide-content-container");jQuery(o).each(function(){var a="-"+jQuery(this).find(".slide-content").height()/2+"px",b="0px";jQuery(this).css("margin-top",a),jQuery(this).css("padding-top",b)})}else{var o=jQuery(a).find(".slide-content-container");jQuery(o).each(function(){jQuery(this).css("-webkit-transform",""),jQuery(this).css("-ms-transform",""),jQuery(this).css("-o-transform",""),jQuery(this).css("-moz-transform",""),jQuery(this).css("transform","");var b="-"+jQuery(this).find(".slide-content").height()/2+"px";if("1"==jQuery(a).data("parallax")&&0===jQuery(a).parents(".post-content").length)var d=c/2;jQuery(this).css("margin-top",b),jQuery(this).css("padding-top",d)})}if(jQuery(b.slides.eq(b.currentSlide)).find("video").each(function(){"yes"==jQuery(this).parents("li").attr("data-autoplay")&&"function"==typeof jQuery(this)[0].play&&jQuery(this)[0].play()}),jQuery(b.slides.eq(b.currentSlide)).find("iframe").each(function(){if("yes"==jQuery(this).parents("li").attr("data-autoplay")){jQuery(a).flexslider("pause");var b=this;setTimeout(function(){b.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")},1e3)}}),("Left"==js_local_vars.header_position||"Right"==js_local_vars.header_position)&&jQuery(a).parents("#sliders-container").length>=1){var o=jQuery(a).parents("#sliders-container").find(".slide-content-container");jQuery(o).each(function(){Modernizr.mq("only screen and (max-width: 1000px)")||(jQuery(this).hasClass("slide-content-right")?jQuery(this).find(".slide-content").css("margin-right","100px"):jQuery(this).hasClass("slide-content-left")&&jQuery(this).find(".slide-content").css("margin-left","100px"))})}fusion_reanimate_slider(o),"undefined"!=typeof b.slides&&0!==b.slides.eq(b.currentSlide).find("iframe").length&&(Number(js_local_vars.status_yt)||window.yt_vid_exists!==!0||YT_ready(function(){new YT.Player(b.slides.eq(b.currentSlide).find("iframe").attr("id"),{events:{onReady:onPlayerReady(b.slides.eq(b.currentSlide)),onStateChange:onPlayerStateChange(b.slides.eq(b.currentSlide).find("iframe").attr("id"),b)}})}),Number(js_local_vars.status_vimeo)||($f(b.slides.eq(b.currentSlide).find("iframe")[0]).api("pause"),"yes"==jQuery(b.slides.eq(b.currentSlide)).data("autoplay")&&$f(b.slides.eq(b.currentSlide).find("iframe")[0]).api("play"),"yes"==jQuery(b.slides.eq(b.currentSlide)).data("mute")&&$f(b.slides.eq(b.currentSlide).find("iframe")[0]).api("setVolume",0))),jQuery(a).find(".overlay-link").hide(),jQuery(b.slides.eq(b.currentSlide)).find(".overlay-link").show(),jQuery.waypoints("viewportHeight"),jQuery.waypoints("refresh")},before:function(c){jQuery(a).find(".slide-content-container").hide(),0!==c.slides.eq(c.currentSlide).find("iframe").length&&(Number(js_local_vars.status_vimeo)||(jQuery(a).find("iframe").each(function(){$f(jQuery(this)[0]).api("pause")}),"yes"==jQuery(c.slides.eq(c.currentSlide)).data("autoplay")&&$f(c.slides.eq(c.currentSlide).find("iframe")[0]).api("play"),"yes"==jQuery(c.slides.eq(c.currentSlide)).data("mute")&&$f(c.slides.eq(c.currentSlide).find("iframe")[0]).api("setVolume",0)),Number(js_local_vars.status_yt)||window.yt_vid_exists!==!0||YT_ready(function(){new YT.Player(c.slides.eq(c.currentSlide).find("iframe").attr("id"),{events:{onReady:onPlayerReady(c.slides.eq(c.currentSlide)),onStateChange:onPlayerStateChange(c.slides.eq(c.currentSlide).find("iframe").attr("id"),c)}})})),b(c)},after:function(d){if(jQuery(d.slides.eq(d.currentSlide)).find(".slide-content-container").show(),Modernizr.mq("only screen and (max-width: 640px)")){var e=jQuery(a).find(".slide-content-container");jQuery(e).each(function(){var a="-"+jQuery(this).find(".slide-content").height()/2+"px",b="0px";jQuery(this).css("margin-top",a),jQuery(this).css("padding-top",b)})}else if(Modernizr.mq("only screen and (max-width: 800px)")){var e=jQuery(a).find(".slide-content-container");jQuery(e).each(function(){var a="-"+jQuery(this).find(".slide-content").height()/2+"px",b="0px";jQuery(this).css("margin-top",a),jQuery(this).css("padding-top",b)})}else{var e=jQuery(a).find(".slide-content-container");jQuery(e).each(function(){jQuery(this).css("-webkit-transform",""),jQuery(this).css("-ms-transform",""),jQuery(this).css("-o-transform",""),jQuery(this).css("-moz-transform",""),jQuery(this).css("transform","");var b="-"+jQuery(this).find(".slide-content").height()/2+"px";if("1"==jQuery(a).data("parallax")&&0===jQuery(a).parents(".post-content").length)var d=c/2;jQuery(this).css("margin-top",b),jQuery(this).css("padding-top",d)})}fusion_reanimate_slider(e),0!==d.slides.eq(d.currentSlide).find("iframe").length&&(Number(js_local_vars.status_yt)||window.yt_vid_exists!==!0||YT_ready(function(){new YT.Player(d.slides.eq(d.currentSlide).find("iframe").attr("id"),{events:{onReady:onPlayerReady(d.slides.eq(d.currentSlide)),onStateChange:onPlayerStateChange(d.slides.eq(d.currentSlide).find("iframe").attr("id"),d)}})}),Number(js_local_vars.status_vimeo)||(jQuery(a).find("iframe").each(function(){$f(jQuery(this)[0]).api("pause")}),"yes"==jQuery(d.slides.eq(d.currentSlide)).data("autoplay")&&$f(d.slides.eq(d.currentSlide).find("iframe")[0]).api("play"),"yes"==jQuery(d.slides.eq(d.currentSlide)).data("mute")&&$f(d.slides.eq(d.currentSlide).find("iframe")[0]).api("setVolume",0))),jQuery(a).find(".overlay-link").hide(),jQuery(d.slides.eq(d.currentSlide)).find(".overlay-link").show(),b(d),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")})}})}),"false"===js_local_vars.page_smoothHeight?page_smoothHeight=!1:page_smoothHeight=!0,jQuery(".fusion-blog-layout-grid .flexslider").flexslider({slideshow:Boolean(Number(js_local_vars.slideshow_autoplay)),slideshowSpeed:Number(js_local_vars.slideshow_speed),video:!0,smoothHeight:page_smoothHeight,pauseOnHover:!1,useCSS:!1,prevText:"",nextText:"",start:function(a){jQuery(a).removeClass("fusion-flexslider-loading"),"undefined"!=typeof a.slides&&0!==a.slides.eq(a.currentSlide).find("iframe").length?(Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","-20px"):jQuery(a).find(".flex-control-nav").hide(),Number(js_local_vars.status_yt)||window.yt_vid_exists!==!0||YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})})):Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","0px"):jQuery(a).find(".flex-control-nav").show(),jQuery.waypoints("viewportHeight"),jQuery.waypoints("refresh")},before:function(a){0!==a.slides.eq(a.currentSlide).find("iframe").length&&(Number(js_local_vars.status_vimeo)||$f(a.slides.eq(a.currentSlide).find("iframe")[0]).api("pause"),Number(js_local_vars.status_yt)||window.yt_vid_exists!==!0||YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})}),b(a))},after:function(a){0!==a.slides.eq(a.currentSlide).find("iframe").length?(Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","-20px"):jQuery(a).find(".flex-control-nav").hide(),Number(js_local_vars.status_yt)||window.yt_vid_exists!==!0||YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})})):Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","0px"):jQuery(a).find(".flex-control-nav").show(),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")})}}),"false"===js_local_vars.flex_smoothHeight?flex_smoothHeight=!1:flex_smoothHeight=!0,jQuery(".fusion-flexslider").flexslider({slideshow:Boolean(Number(js_local_vars.slideshow_autoplay)),slideshowSpeed:js_local_vars.slideshow_speed,video:!0,smoothHeight:flex_smoothHeight,pauseOnHover:!1,useCSS:!1,prevText:"",nextText:"",start:function(a){a.removeClass("fusion-flexslider-loading"),jQuery(window).trigger("resize"),"undefined"!=typeof a.slides&&0!==a.slides.eq(a.currentSlide).find("iframe").length?(Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","-20px"):jQuery(a).find(".flex-control-nav").hide(),Number(js_local_vars.status_yt)||window.yt_vid_exists!==!0||YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})})):Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","0px"):jQuery(a).find(".flex-control-nav").show(),jQuery.waypoints("viewportHeight"),jQuery.waypoints("refresh")},before:function(a){0!==a.slides.eq(a.currentSlide).find("iframe").length&&(Number(js_local_vars.status_vimeo)||$f(a.slides.eq(a.currentSlide).find("iframe")[0]).api("pause"),Number(js_local_vars.status_yt)||window.yt_vid_exists!==!0||YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})}),b(a))},after:function(a){0!==a.slides.eq(a.currentSlide).find("iframe").length?(Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","-20px"):jQuery(a).find(".flex-control-nav").hide(),Number(js_local_vars.status_yt)||window.yt_vid_exists!==!0||YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})})):Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","0px"):jQuery(a).find(".flex-control-nav").show(),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")})}}),jQuery(".flexslider").flexslider({slideshow:Boolean(Number(js_local_vars.slideshow_autoplay)),slideshowSpeed:js_local_vars.slideshow_speed,video:!0,smoothHeight:flex_smoothHeight,pauseOnHover:!1,useCSS:!1,prevText:"",nextText:"",start:function(a){a.removeClass("fusion-flexslider-loading"),"undefined"!=typeof a.slides&&0!==a.slides.eq(a.currentSlide).find("iframe").length?(Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","-20px"):jQuery(a).find(".flex-control-nav").hide(),Number(js_local_vars.status_yt)||window.yt_vid_exists!==!0||YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})})):Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","0px"):jQuery(a).find(".flex-control-nav").show(),jQuery.waypoints("viewportHeight"),jQuery.waypoints("refresh")},before:function(a){0!==a.slides.eq(a.currentSlide).find("iframe").length&&(Number(js_local_vars.status_vimeo)||$f(a.slides.eq(a.currentSlide).find("iframe")[0]).api("pause"),Number(js_local_vars.status_yt)||window.yt_vid_exists!==!0||YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})}),b(a))},after:function(a){0!==a.slides.eq(a.currentSlide).find("iframe").length?(Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","-20px"):jQuery(a).find(".flex-control-nav").hide(),Number(js_local_vars.status_yt)||window.yt_vid_exists!==!0||YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})})):Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","0px"):jQuery(a).find(".flex-control-nav").show(),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")})}}),jQuery(".flex-next, .flex-prev").click(function(){})}jQuery().isotope&&jQuery(".fusion-blog-layout-grid").each(function(){var a=2;for(i=1;i<7;i++)jQuery(this).hasClass("fusion-blog-layout-grid-"+i)&&(a=i);var b=Math.floor(100/a*100)/100+"%";if(jQuery(this).find(".fusion-post-grid").css("width",b),jQuery(this).isotope({layoutMode:"masonry",itemSelector:".fusion-post-grid",transformsEnabled:!1,isOriginLeft:jQuery("body.rtl").length?!1:!0,resizable:!0}),(jQuery(this).hasClass("fusion-blog-layout-grid-4")||jQuery(this).hasClass("fusion-blog-layout-grid-5")||jQuery(this).hasClass("fusion-blog-layout-grid-6"))&&Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait)")){var b=Math.floor(100/3*100)/100+"%";jQuery(this).find(".fusion-post-grid").css("width",b),jQuery(this).isotope({layoutMode:"masonry",itemSelector:".fusion-post-grid",transformsEnabled:!1,isOriginLeft:jQuery("body.rtl").length?!1:!0,resizable:!0})}setTimeout(function(){jQuery(window).trigger("resize")},250)}),Boolean(Number(js_local_vars.avada_rev_styles))&&jQuery(".rev_slider_wrapper").each(function(){var a=jQuery(this);if(jQuery(this).length>=1&&0===jQuery(this).find(".tp-bannershadow").length&&(jQuery('').appendTo(this),jQuery('
').appendTo(this),jQuery(this).addClass("avada-skin-rev")),!(jQuery(this).find(".tp-leftarrow").hasClass("preview1")||jQuery(this).find(".tp-leftarrow").hasClass("preview2")||jQuery(this).find(".tp-leftarrow").hasClass("preview3")||jQuery(this).find(".tp-leftarrow").hasClass("preview4"))){if(jQuery(this).addClass("avada-skin-rev-nav"),a.find(".tp-leftarrow").height()>a.height()/4&&a.find(".tp-leftarrow").height()
#'+b+" .tp-leftarrow, #"+b+" .tp-rightarrow{margin-top:-"+c/2+"px !important;width:"+c+"px !important;height:"+c+"px !important;}#"+b+" .tp-leftarrow:before, #"+b+" .tp-rightarrow:before{line-height:"+c+"px;font-size:"+c/2+"px;}")):a.prepend('
")}jQuery(window).on("resize",function(){if(a.find(".tp-leftarrow").height()>a.height()/4&&a.find(".tp-leftarrow").height()#'+b+" .tp-leftarrow, #"+b+" .tp-rightarrow{margin-top:-"+c/2+"px !important;width:"+c+"px !important;height:"+c+"px !important;}#"+b+" .tp-leftarrow:before, #"+b+" .tp-rightarrow:before{line-height:"+c+"px;font-size:"+c/2+"px;}")):a.prepend('
")}else a.children(".avada-rev-arrows").remove()})}})}),jQuery(document).ready(function(){if(jQuery().flexslider&&jQuery(".woocommerce .images #carousel").length>=1){jQuery("body.woocommerce .sidebar").is(":visible")?wooThumbWidth=100:wooThumbWidth=118,"undefined"!=typeof jQuery(".woocommerce .images #carousel").data("flexslider")&&(jQuery(".woocommerce .images #carousel").flexslider("destroy"),jQuery(".woocommerce .images #slider").flexslider("destroy")),jQuery(".woocommerce .images #carousel").flexslider({animation:"slide",controlNav:!1,directionNav:!1,animationLoop:!1,slideshow:!1,itemWidth:wooThumbWidth,itemMargin:9,touch:!1,useCSS:!1,asNavFor:".woocommerce .images #slider",smoothHeight:!1,prevText:"",nextText:"",start:function(a){jQuery(a).removeClass("fusion-flexslider-loading")}}),jQuery(".woocommerce .images #slider").flexslider({animation:"slide",controlNav:!1,animationLoop:!1,slideshow:!1,smoothHeight:!0,touch:!0,useCSS:!1,sync:".woocommerce .images #carousel",prevText:"",nextText:"",start:function(a){jQuery(a).removeClass("fusion-flexslider-loading")}})}jQuery().flexslider&&jQuery(".flexslider-attachments").length>=1&&("undefined"!=typeof jQuery(".flexslider-attachments").data("flexslider")&&jQuery(".flexslider-attachments").flexslider("destroy"),jQuery(".flexslider-attachments").flexslider({slideshow:Boolean(Number(js_local_vars.slideshow_autoplay)),slideshowSpeed:js_local_vars.slideshow_speed,video:!1,smoothHeight:!1,pauseOnHover:!1,useCSS:!1,prevText:"",nextText:"",controlNav:"thumbnails",start:function(a){jQuery(a).find(".fusion-slider-loading").remove(),a.removeClass("fusion-flexslider-loading")}}))}),jQuery(window).load(function(){if(jQuery(".fusion-secondary-menu .fusion-secondary-menu-cart").width()>176&&setTimeout(function(){var a=jQuery(".fusion-secondary-menu .fusion-secondary-menu-cart").outerWidth(),b=jQuery(".fusion-secondary-menu-cart .fusion-menu-cart-items a"),c=b.width(),d=b.outerWidth()-c,e=a-d,f=jQuery(".fusion-secondary-menu-cart .fusion-menu-cart-items a > img"),g=f.width();img_margin=f.outerWidth(!0)-g,jQuery(".fusion-secondary-menu-cart .fusion-menu-cart-items").width(a),jQuery(".fusion-secondary-menu-cart .fusion-menu-cart-items a").width(e),jQuery(".fusion-secondary-menu-cart .fusion-menu-cart-items a").find(".fusion-menu-cart-item-details").each(function(){jQuery(this).width(jQuery(this).parent().width()-g-img_margin)})},750),"Click"==js_local_vars.sidenav_behavior?jQuery(".side-nav li a").on("click",function(a){return jQuery(this).parent(".page_item_has_children").length&&(jQuery(this).parent().find("> .children").length&&!jQuery(this).parent().find("> .children").is(":visible")?jQuery(this).parent().find("> .children").stop(!0,!0).slideDown("slow"):jQuery(this).parent().find("> .children").stop(!0,!0).slideUp("slow")),jQuery(this).parent(".page_item_has_children.current_page_item").length?!1:void 0}):jQuery(".side-nav li").hoverIntent({over:function(){jQuery(this).find("> .children").length&&jQuery(this).find("> .children").stop(!0,!0).slideDown("slow")},out:function(){0===jQuery(this).find(".current_page_item").length&&jQuery(this).hasClass("current_page_item")===!1&&jQuery(this).find(".children").stop(!0,!0).slideUp("slow")},timeout:500}),jQuery().eislideshow){var a={autoplay:Boolean(Number(js_local_vars.tfes_autoplay))};js_local_vars.tfes_animation&&(a.animation=js_local_vars.tfes_animation),js_local_vars.tfes_interval&&(a.slideshow_interval=js_local_vars.tfes_interval),js_local_vars.tfes_speed&&(a.speed=js_local_vars.tfes_speed),js_local_vars.tfes_width&&(a.thumbMaxWidth=js_local_vars.tfes_width),jQuery("#ei-slider").eislideshow(a)}var b=window.devicePixelRatio>1?!0:!1;js_local_vars.custom_icon_image_retina&&b&&jQuery(".fusion-social-networks a.custom").each(function(){jQuery(this).find("img").attr("src",js_local_vars.custom_icon_image_retina),jQuery(this).find("img").attr("width",js_local_vars.retina_icon_width),jQuery(this).find("img").attr("height",js_local_vars.retina_icon_height)});var c=jQuery("ul#navigation > li > a > .iclflag"),d=c.height();c.css("margin-top",+d/-2+"px");var c=jQuery(".top-menu > ul > li > a > .iclflag"),d=c.height();c.css("margin-top",+d/-2+"px");var e=jQuery(".blog-layout-timeline").find(".timeline-date").last().text(),f=!0;jQuery(".fusion-blog-layout-timeline").find(".fusion-timeline-date").click(function(){jQuery(this).next(".collapse-month").slideToggle()}),jQuery(".fusion-timeline-icon").find(".fusion-icon-bubbles").click(function(){f?(jQuery(this).parent().next(".fusion-blog-layout-timeline").find(".fusion-collapse-month").slideUp(),f=!1):(jQuery(this).parent().next(".fusion-blog-layout-timeline").find(".fusion-collapse-month").slideDown(),f=!0)}),jQuery(".fusion-posts-container-infinite").each(function(){var a=jQuery(this);jQuery(this).find(".fusion-blog-layout-timeline").length&&(a=jQuery(this).find(".fusion-blog-layout-timeline")),jQuery(a).infinitescroll({navSelector:"div.pagination",nextSelector:"a.pagination-next",itemSelector:"div.pagination .current, div.post:not( .fusion-archive-description ), .fusion-collapse-month, .fusion-timeline-date",loading:{finishedMsg:js_local_vars.infinite_finished_msg,msg:jQuery(''+js_local_vars.infinite_blog_text+"
")},errorCallback:function(){jQuery(a).hasClass("isotope")&&jQuery(a).isotope()}},function(b){if(jQuery(a).hasClass("fusion-blog-layout-timeline")&&(jQuery(b).first(".fusion-timeline-date").text()==e&&jQuery(b).first(".fusion-timeline-date").remove(),e=jQuery(a).find(".fusion-timeline-date").last().text(),jQuery(a).find(".fusion-timeline-date").each(function(){jQuery(this).next(".fusion-collapse-month").append(jQuery(this).nextUntil(".fusion-timeline-date",".fusion-post-timeline"))}),f||setTimeout(function(){jQuery(a).find(".fusion-collapse-month").hide()},200),setTimeout(function(){jQuery(a).find(".fusion-collapse-month").each(function(){jQuery(this).children().length||jQuery(this).remove()})},10),jQuery(a).find(".fusion-timeline-date").unbind("click"),jQuery(a).find(".fusion-timeline-date").click(function(){jQuery(this).next(".fusion-collapse-month").slideToggle()})),jQuery(a).hasClass("fusion-blog-layout-grid")&&jQuery().isotope){jQuery(b).hide();var c=2;for(i=1;i<7;i++)jQuery(a).hasClass("fusion-blog-layout-grid-"+i)&&(c=i);var d=Math.floor(100/c*100)/100+"%";jQuery(a).find(".post").css("width",d),imagesLoaded(b,function(){jQuery(b).fadeIn(),jQuery(a).hasClass("isotope")&&(jQuery(a).isotope("appended",jQuery(b)),jQuery(a).isotope()),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")})})}jQuery(a).find(".flexslider").flexslider({slideshow:Boolean(Number(js_local_vars.slideshow_autoplay)),slideshowSpeed:js_local_vars.slideshow_speed,video:!0,pauseOnHover:!1,useCSS:!1,prevText:"",nextText:"",start:function(a){a.removeClass("fusion-flexslider-loading"),"undefined"!=typeof a.slides&&0!==a.slides.eq(a.currentSlide).find("iframe").length?(Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","-20px"):jQuery(a).find(".flex-control-nav").hide(),Number(js_local_vars.status_yt)||window.yt_vid_exists!==!0||YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})})):Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","0px"):jQuery(a).find(".flex-control-nav").show(),jQuery.waypoints("viewportHeight"),jQuery.waypoints("refresh")},before:function(a){0!==a.slides.eq(a.currentSlide).find("iframe").length&&(Number(js_local_vars.status_vimeo)||$f(a.slides.eq(a.currentSlide).find("iframe")[0]).api("pause"),Number(js_local_vars.status_yt)||window.yt_vid_exists!==!0||YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)
}})}))},after:function(a){0!==a.slides.eq(a.currentSlide).find("iframe").length?(Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","-20px"):jQuery(a).find(".flex-control-nav").hide(),Number(js_local_vars.status_yt)||window.yt_vid_exists!==!0||YT_ready(function(){new YT.Player(a.slides.eq(a.currentSlide).find("iframe").attr("id"),{events:{onStateChange:onPlayerStateChange(a.slides.eq(a.currentSlide).find("iframe").attr("id"),a)}})})):Number(js_local_vars.pagination_video_slide)?jQuery(a).find(".flex-control-nav").css("bottom","0px"):jQuery(a).find(".flex-control-nav").show(),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")})}}),jQuery(b).each(function(){jQuery(this).find(".full-video, .video-shortcode, .wooslider .slide-content").fitVids()}),$fusion_posts_container=a,jQuery(a).hasClass("fusion-blog-layout-timeline")&&($fusion_posts_container=jQuery(a).parents(".fusion-posts-container-infinite")),$current_page=$fusion_posts_container.find(".current").html(),$fusion_posts_container.find(".current").remove(),$fusion_posts_container.data("pages")==$current_page&&($fusion_posts_container.parent().find(".fusion-loading-container").hide(),$fusion_posts_container.parent().find(".fusion-load-more-button").hide())}),(jQuery(a).hasClass("fusion-blog-archive")&&"load_more_button"==js_local_vars.blog_pagination_type||jQuery(a).hasClass("fusion-posts-container-load-more")||jQuery(a).hasClass("fusion-blog-layout-timeline")&&jQuery(a).parent().hasClass("fusion-posts-container-load-more"))&&(jQuery(a).infinitescroll("unbind"),jQuery(a).hasClass("fusion-blog-archive")?$load_more_button=jQuery(a).parent().find(".fusion-load-more-button"):$load_more_button=jQuery(a).parents(".fusion-blog-archive").find(".fusion-load-more-button"),$load_more_button.on("click",function(b){b.preventDefault(),jQuery(a).infinitescroll("retrieve"),jQuery(a).hasClass("fusion-blog-layout-grid")&&jQuery(a).isotope()})),$fusion_posts_container=a,jQuery(a).hasClass("fusion-blog-layout-timeline")&&($fusion_posts_container=jQuery(a).parents(".fusion-posts-container-infinite")),"1"==$fusion_posts_container.data("pages")&&($fusion_posts_container.parent().find(".fusion-loading-container").hide(),$fusion_posts_container.parent().find(".fusion-load-more-button").hide())}),("Infinite Scroll"==js_local_vars.portfolio_pagination_type||"load_more_button"==js_local_vars.portfolio_pagination_type)&&($infinte_scroll_container=jQuery(".fusion-portfolio:not(.fusion-recent-works) .fusion-portfolio-wrapper"),$infinte_scroll_container.infinitescroll({navSelector:".pagination",nextSelector:".pagination-next",itemSelector:"div.pagination .current, .fusion-portfolio-post",loading:{finishedMsg:js_local_vars.infinite_finished_msg,msg:jQuery('
'+js_local_vars.infinite_blog_text+"
")},errorCallback:function(){jQuery(".fusion-portfolio .fusion-portfolio-wrapper").isotope()}},function(a){if(jQuery().isotope){var b=jQuery(".fusion-filters ").find(".fusion-filter"),a=jQuery(a);a.hide(),imagesLoaded(a,function(){var c=jQuery(a).find(".fusion-placeholder-image");c.parents(".fusion-portfolio-content-wrapper, .fusion-image-wrapper").animate({opacity:1});var d=jQuery(a).find(".fusion-video");if(d.each(function(){jQuery(this).animate({opacity:1}),jQuery(this).parents(".fusion-portfolio-content-wrapper").animate({opacity:1})}),d.fitVids(),window.$portfolio_images_index=0,jQuery(a).imagesLoaded().progress(function(a,b){jQuery(b.img).parents(".fusion-portfolio-content-wrapper").length>=1?jQuery(b.img,c).parents(".fusion-portfolio-content-wrapper").delay(100*window.$portfolio_images_index).animate({opacity:1}):jQuery(b.img,c).parents(".fusion-image-wrapper").delay(100*window.$portfolio_images_index).animate({opacity:1}),window.$portfolio_images_index++}),b&&b.each(function(){var b=jQuery(this),c=b.children("a").data("filter");a&&a.each(function(){if($post=jQuery(this),$post.hasClass(c.substr(1))&&b.hasClass("fusion-hidden"))if(Modernizr.mq("only screen and (max-width: 800px)"))b.fadeIn(400,function(){b.removeClass("fusion-hidden")});else{var a=b.css("width"),d=b.css("margin-right");b.css("width",0),b.css("margin-right",0),b.removeClass("fusion-hidden"),b.animate({width:a,"margin-right":d},400,function(){b.removeAttr("style")})}})}),jQuery(".fusion-filters").length){var e=jQuery(".fusion-portfolio .fusion-filters").find(".fusion-filter.fusion-active a"),f=e.attr("data-filter").substr(1);f.length?(a.each(function(){var a=jQuery(this),b=a.find(".fusion-rollover-gallery").data("rel");a.hasClass(f)&&(a.fadeIn(),b&&a.find(".fusion-rollover-gallery").attr("data-rel",b.replace("gallery",f)))}),"created"!=e.data("lightbox")&&($il_instances.push(jQuery('[data-rel^="iLightbox['+f+']"]').iLightBox($avada_lightbox.prepare_options("iLightbox["+f+"]"))),e.data("lightbox","created")),$avada_lightbox.refresh_lightbox()):a.fadeIn()}else a.fadeIn();$infinte_scroll_container.isotope("appended",a),a.each(function(){jQuery(this).find(".full-video, .video-shortcode, .wooslider .slide-content").fitVids()}),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")}),$current_page=$infinte_scroll_container.find(".current").html(),$infinte_scroll_container.find(".current").remove(),$infinte_scroll_container.data("pages")==$current_page&&($infinte_scroll_container.parent().find(".fusion-loading-container").hide(),$infinte_scroll_container.parent().find(".fusion-load-more-button").hide())})}}),"1"==$infinte_scroll_container.data("pages")&&($infinte_scroll_container.parent().find(".fusion-loading-container").hide(),$infinte_scroll_container.parent().find(".fusion-load-more-button").hide()),"load_more_button"==js_local_vars.portfolio_pagination_type&&($infinte_scroll_container.infinitescroll("unbind"),jQuery(".fusion-portfolio").find(".fusion-load-more-button").on("click",function(a){a.preventDefault(),$infinte_scroll_container.infinitescroll("retrieve"),$infinte_scroll_container.isotope()})))}),location.hash){window.scrollTo(0,0),setTimeout(function(){window.scrollTo(0,0)},1);var $one_page_link=jQuery('
');jQuery("body").append($one_page_link),jQuery(window).load(function(){setTimeout(function(){$one_page_link.trigger("click")},100)})}
;/*! WPMU Dev code library - v2.0.3
* http://premium.wpmudev.org/
* Copyright (c) 2016; * Licensed GPLv2+ */
(function(e){function t(){null===r&&(o=jQuery(document),r=jQuery("html"),s=jQuery("body"),n(),i(),s.hasClass("no-auto-init")||window.setTimeout(function(){e.upgrade_multiselect(),e.upgrade_tooltips()},20),e.binary=new e.WpmUiBinary)}function n(){var e=function e(e){var t=jQuery(this).closest(".wpmui-box");return e.preventDefault(),t.hasClass("static")?!1:(t.toggleClass("closed"),!1)};s.on("click",".wpmui-box > h3",e),s.on("click",".wpmui-box > h3 > .toggle",e)}function i(){var e=function e(e){var t=jQuery(this),n=t.closest(".wpmui-tabs"),i=n.next(".wpmui-tab-contents"),o=n.find(".active.tab"),r=t.attr("href"),s=o.attr("href"),a=i.find(r),l=i.find(s);return t.hasClass("active")||(o.removeClass("active"),l.removeClass("active")),t.addClass("active"),a.addClass("active"),e.preventDefault(),!1};s.on("click",".wpmui-tabs .tab",e)}var o=null,r=null,s=null,a=null;e.popup=function(n,i){return t(),new e.WpmUiWindow(n,i)},e.progressbar=function(){return t(),new e.WpmUiProgress},e.ajax=function(n,i){return t(),new e.WpmUiAjaxData(n,i)},e.upgrade_multiselect=function(e){t(),e=jQuery(e||s);var n=e.find("select[multiple]"),i=e.find("input[data-select-ajax]"),o=function o(e){var t=e.attr("id"),n="#s2id_"+t,i=e.parent().find(n);i.remove()},r=function r(){var t=jQuery(this),n={closeOnSelect:!1,width:"100%"};"object"!=typeof t.data("select2")&&"object"!=typeof t.data("chosen")&&(t.filter("[class*=acf-]").length||"1"!==t.data("wpmui-select")&&(t.closest(".no-auto-init",e[0]).length||(t.data("wpmui-select","1"),o(t),window.setTimeout(function(){t.wpmuiSelect(n)},1))))},a=function a(){var t=function t(e){return e.val},n=function n(e){return e.key},i=function i(e,t){var n=e.val(),i=[],o=[];jQuery(n.split(",")).each(function(){var e=this.split("::");o.push(e[0]),i.push({key:e[0],val:e[1]})}),e.val(o.join(",")),t(i)},r=jQuery(this),s={closeOnSelect:!1,width:"100%",multiple:!0,minimumInputLength:1,ajax:{url:r.attr("data-select-ajax"),dataType:"json",quietMillis:100,cache:!0,data:function(e){return{q:e}},results:function(e){return{results:e.items}}},id:n,formatResult:t,formatSelection:t,initSelection:i};"object"!=typeof r.data("select2")&&"object"!=typeof r.data("chosen")&&(r.filter("[class*=acf-]").length||"1"!==r.data("wpmui-select")&&(r.closest(".no-auto-init",e[0]).length||(r.data("wpmui-select","1"),o(r),window.setTimeout(function(){r.wpmuiSelect(s)},1))))};"function"==typeof jQuery.fn.each2?(n.each2(r),i.each2(a)):(n.each(r),i.each(a))},e.message=function(e){var n,i,o,r;t();var s=function s(e){return e.preventDefault(),i.remove(),!1},a=function a(){var e=jQuery(this).closest(".wpmui-msg");e.find(".debug").toggle()};return e===void 0?!1:(("string"==typeof e||e instanceof Array)&&(e={message:e}),e.message instanceof Array&&(e.message=e.message.join("
")),e.message?(e.type=void 0===e.type?"ok":(""+e.type).toLowerCase(),e.close=void 0===e.close?!0:e.close,e.parent=void 0===e.parent?".wrap":e.parent,e.insert_after=void 0===e.insert_after?"h2":e.insert_after,e.id=void 0===e.id?"":(""+e.id).toLowerCase(),e["class"]=void 0===e["class"]?"":(""+e["class"]).toLowerCase(),e.details=void 0===e.details?!1:e.details,("error"===e.type||"red"===e.type)&&(e.type="err"),("success"===e.type||"green"===e.type)&&(e.type="ok"),n=jQuery(e.parent).first(),n.length?(e.id&&jQuery('.wpmui-msg[data-id="'+e.id+'"]').length?(i=jQuery('.wpmui-msg[data-id="'+e.id+'"]').first(),r=!1):(i=jQuery("
"),e.id&&i.attr("data-id",e.id),r=!0),i.find("p").html(e.message),"err"===e.type&&e.details&&window.JSON&&(jQuery('
').appendTo(i).text(JSON.stringify(e.details)),jQuery('
').prependTo(i.find("p:first")).click(a).after(" ")),i.removeClass().addClass("updated wpmui-msg "+e["class"]),"err"===e.type&&i.addClass("error"),r&&(e.close&&(o=jQuery('
'),o.prependTo(i),o.click(s)),e.insert_after&&n.find(e.insert_after).length?(n=n.find(e.insert_after).first(),n.after(i)):n.prepend(i)),!0):!1):!1)},e.confirm=function(t){function n(){var n=jQuery(this),i=parseInt(n.data("key"));t.modal&&("fixed"===t.layout?e._close_modal():o.remove()),r.remove(),"function"==typeof t.callback&&t.callback(i)}var i,o,r,a,l,c,u,d;if(!t instanceof Object)return!1;if(void 0===t.message)return!1;for(t.modal=void 0===t.modal?!0:t.modal,t.layout=void 0===t.layout?"fixed":t.layout,t.parent=void 0===t.parent?s:t.parent,t.buttons=void 0===t.buttons?["OK"]:t.buttons,t.callback=void 0===t.callback?!1:t.callback,i=jQuery(t.parent),t.modal&&("fixed"===t.layout?e._make_modal("wpmui-confirm-modal"):o=jQuery('
').css({position:t.layout}).appendTo(i)),r=jQuery('
').css({position:t.layout}).appendTo(i),a=jQuery('
').html(t.message),l=jQuery('
'),d=!0,c=0;t.buttons.length>c;c+=1)u=jQuery("
").html(t.buttons[c]).addClass(d?"button-primary":"button-secondary").data("key",c).click(n).prependTo(l),d=!1;return a.appendTo(r),l.appendTo(r).find(".button-primary").focus(),!0},e.tooltip=function(e,n){var i,o;t();var r=function r(t){var i=t.outerWidth(),o=t.outerHeight(),r=5,s=e.outerWidth(),a=e.outerHeight(),l={};switch(l.left=(s-i)/2,l.top=(a-o)/2,l[n.pos]="auto",n.pos){case"top":l.bottom=a+r;break;case"bottom":l.top=a+r;break;case"left":l.right=s+r;break;case"right":l.left=s+r}t.css(l)},s=function s(){var e=jQuery(this).closest(".wpmui-tip-box").find(".wpmui-tip");e.addClass("wpmui-visible"),e.show(),r(e),window.setTimeout(function(){r(e)},35)},a=function a(){var e=jQuery(this).closest(".wpmui-tip-box").find(".wpmui-tip");e.removeClass("wpmui-visible"),e.hide()},l=function l(e){i.hasClass("wpmui-visible")?a.call(this,e):s.call(this,e)};return"string"==typeof n&&(n={content:n}),void 0===n.content?!1:(e=jQuery(e),e.length?(n.trigger=void 0===n.trigger?"hover":(""+n.trigger).toLowerCase(),n.pos=void 0===n.pos?"top":(""+n.pos).toLowerCase(),n["class"]=void 0===n["class"]?"":(""+n["class"]).toLowerCase(),o=e.parent(),o.hasClass("wpmui-tip-box")||(o=e.wrap('
').parent().addClass(n["class"]+"-box")),i=o.find("> .wpmui-tip"),e.off(),i.length||(i=jQuery('
'),i.addClass(n["class"]).addClass(n.pos).appendTo(e.parent()).hide(),isNaN(n.width)||i.width(n.width)),"hover"===n.trigger?e.on("mouseenter",s).on("mouseleave",a):"click"===n.trigger&&e.on("click",l),i.html(n.content),!0):!1)},e.upgrade_tooltips=function(){var t=jQuery("[data-wpmui-tooltip]");t.each(function(){var t=jQuery(this),n={content:t.attr("data-wpmui-tooltip"),pos:t.attr("data-pos"),trigger:t.attr("data-trigger"),"class":t.attr("data-class"),width:t.attr("data-width")};e.tooltip(t,n)})},e.obj=function(e){var t={};if(e instanceof Object)t=e;else if(e instanceof Array)if("function"==typeof e.reduce)t=e.reduce(function(e,t,n){return e[n]=t,e},{});else for(var n=e.length-1;n>0;n-=1)void 0!==e[n]&&(t[n]=e[n]);else"string"==typeof e?t.scalar=e:"number"==typeof e?t.scalar=e:"boolean"==typeof e&&(t.scalar=e);return t},e._modal_overlay=function(){return null===a&&(a=jQuery("
").addClass("wpmui-overlay").appendTo(s)),a},e._make_modal=function(t,n){var i=e._modal_overlay();return i.removeClass().addClass("wpmui-overlay"),t&&i.addClass(t),s.addClass("wpmui-has-overlay"),r.addClass("wpmui-no-scroll"),n&&r.addClass(n),i},e._close_modal=function(e){s.removeClass("wpmui-has-overlay"),r.removeClass("wpmui-no-scroll"),e&&r.removeClass(e)},jQuery(function(){t()})})(window.wpmUi=window.wpmUi||{}),function(e){var t=1,n={};e.popups=function(){return n},e.WpmUiWindow=function(i,o){function r(){w.id=t,t+=1,n[w.id]=w,i||(i=''),z=jQuery(i),o&&jQuery("").prependTo(z),z.filter(".popup").length||z.find(".popup").length||z.addClass("popup"),M=z.hasClass("popup")?z:z.find(".popup").first(),M.find(".popup-title").length||(w.title=function(){return w}),M.find(".popup-content").length||(w.content=function(){return w}),M.find(".slidein-toggle").length||(M.find(".popup-title .popup-close").length?M.find(".popup-title .popup-close").addClass("slidein-toggle"):M.find(".popup-title").length?M.find(".popup-title").addClass("slidein-toggle"):M.prepend('
')),b=!1}function s(){M&&!M.data("hooked")&&(M.data("hooked",!0),M.on("click",".popup-close",d),M.on("click",".popup-title",p),M.on("click",".close",w.hide),M.on("click",".destroy",w.destroy),M.on("click","thead .check-column :checkbox",v),M.on("click","tfoot .check-column :checkbox",v),M.on("click","tbody .check-column :checkbox",y),jQuery(window).on("resize",f),void 0!==jQuery().draggable&&M.draggable({containment:jQuery("body"),scroll:!1,handle:".popup-title"}))}function a(){M&&M.data("hooked")&&(M.data("hooked",!1),M.off("click",".popup-close",d),M.off("click",".popup-title",p),M.off("click",".close",w.hide),M.off("click",".check-column :checkbox",v),jQuery(window).off("resize",f))}function l(){if(!z)return!1;if(!M)return!1;var t=e._modal_overlay(),o=M.find(".popup-title"),r=M.find(".popup-content"),s=o.find(".the-title");if(i&&!s.length&&(s=o),s.html(A),C?M.removeClass("no-close"):M.addClass("no-close"),E){z.find(".buttons").remove(),M.addClass("no-buttons"),k instanceof jQuery?r.empty().append(k):r.html(k);var a=r.find(".buttons");a.length&&(a.appendTo(M),M.removeClass("no-buttons")),M.addClass(S),E=!1}if(t instanceof jQuery&&t.off("click",h),b)c(),_&&e._make_modal("","has-popup"),$&&t.on("click",h),D&&(D=!1,f()),window.setTimeout(function(){"down"===Q?r.css({bottom:o.height()+1}):r.css({top:o.height()+1}),j||window.setTimeout(f,5)},5);else{u();var l,d=!0;for(l in n)if(n[l]!==w&&n[l].is_visible()&&n[l].is_modal()){d=!1;break}d&&e._close_modal("has-popup no-scroll can-scroll")}var p=M.find(".popup-close .dashicons");p.length&&("none"===Q?p.removeClass().addClass("dashicons dashicons-no-alt"):"collapsed"===R?p.removeClass().addClass("dashicons").addClass(N):"expanded"===R&&p.removeClass().addClass("dashicons").addClass(W)),M[0].className=M[0].className.replace(/\sslidein-.+?\b/g,""),"none"===Q?(M.removeClass("slidein"),M.removeClass("wdev-slidein"),M.addClass("wdev-window")):(M.addClass("slidein"),M.addClass("slidein-"+Q),M.addClass("slidein-"+R),M.addClass("wdev-slidein"),M.removeClass("wdev-window")),q.top&&M.addClass("snap-top"),q.left&&M.addClass("snap-left"),q.right&&M.addClass("snap-right"),q.bottom&&M.addClass("snap-bottom")}function c(){M.show();var e="none"!==Q,t="collapsed"===R;if(e){if(!t&&"none"===R){var n={};R="collapsed",n=m(n),n=g(n),M.css(n),t=!0}t&&(R="expanding",f(B),D=!1,window.setTimeout(function(){R="expanded",l(),window.setTimeout(f,10)},B))}}function u(){switch(Q){case"up":case"down":var e="expanded"===R;if(e){var t=jQuery(window),n=(t.innerHeight(),M.position()),i={};i["margin-top"]=0,i["margin-bottom"]=0,i.bottom="auto",i.top=n.top,M.css(i),R="collapsing",i=g(),M.animate(i,B,function(){R="collapsed",l(),window.setTimeout(f,10)})}break;default:M.hide()}}function d(e){"none"===Q?w.hide():b?w.hide():w.show(),e.stopPropagation()}function p(e){"none"!==Q&&(b?w.hide():w.show(),e.stopPropagation())}function h(){var t=e._modal_overlay();return z?!t instanceof jQuery?!1:(t.off("click",h),w.hide(),void 0):!1}function f(e){if(!M)return!1;if("function"==typeof U)U.apply(w,[w.$()]);else{var t={};t=m(t),t=g(t),!isNaN(e)&&e>0?M.animate(t,e):M.css(t)}}function m(e){var t=jQuery(window),n=t.innerWidth(),i=t.innerHeight(),o=parseInt(M.css("border-left-width"))+parseInt(M.css("border-right-width")),r=parseInt(M.css("border-top-width"))+parseInt(M.css("border-bottom-width")),s=x+o,a=j+r;if("object"!=typeof e&&(e={}),!j||!x){var l=!x,c=!j,u=0,d=0;M.find("*").each(function(){var e=jQuery(this),t=e.position(),n=e.outerWidth()+t.left,i=e.outerHeight()+t.top;l&&n>u&&(u=n),c&&i>d&&(d=i)}),l&&(s=u+o),c&&(a=d+r)}return q.left&&q.right?e.width=n-o:(s>n&&(s=n),e.width=s-o),q.top&&q.bottom?e.height=i-r:(a>i&&(a=i),e.height=a-r),e}function g(e){var t=jQuery(window),n=M.find(".slidein-toggle"),i=t.innerWidth(),o=t.innerHeight(),r=parseInt(M.css("border-left-width"))+parseInt(M.css("border-right-width")),s=parseInt(M.css("border-top-width"))+parseInt(M.css("border-bottom-width"));return"object"!=typeof e&&(e={}),(void 0===e.width||void 0===e.height)&&(e=m(e)),q.left||q.right?q.left&&q.right?e.left=0:(q.left&&(e.left=0),q.right&&(e.left=i-e.width-r)):e.left=(i-e.width)/2,"none"===Q||"collapsed"!==R&&"collapsing"!==R?q.top||q.bottom?q.top&&q.bottom?e.top=0:(q.top&&(e.top=0),q.bottom&&(e.top=o-e.height-s)):e.top=(o-e.height)/2:e.top="down"===Q?n.outerHeight()-e.height:o-n.outerHeight(),e["margin-top"]=0,e["margin-bottom"]=0,e.bottom="auto",e.right="auto",void 0===e.top&&(e.top="auto"),void 0===e.left&&(e.left="auto"),e}function v(e){var t=jQuery(this),n=t.prop("checked");e.shiftKey,t.closest("table").children("tbody, thead, tfoot").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",n)}function y(){var e=jQuery(this),t=e.closest("tbody").find(":checkbox").filter(":visible").not(":checked");return e.closest("table").children("thead, tfoot").find(":checkbox").prop("checked",0===t.length),!0}var w=this,b=!1,_=!1,C=!0,$=!0,x=740,j=400,A="Window",k="",S="",O="",T="",E=!1,D=!1,q={top:!1,left:!1,right:!1,bottom:!1},Q="none",L=null,P=null,I=null,U=null,z=null,M=null,H="hidden",R="none",N="",W="",B=400;this.id=0,this.is_modal=function(){return _},this.is_visible=function(){return b},this.is_slidein=function(){return Q},this.get_snap=function(){return q},this.modal=function(e,t){return void 0===t&&(t=!0),_=e?!0:!1,$=t?!0:!1,l(),w},this.size=function(e,t){var n=parseFloat(e),i=parseFloat(t);return isNaN(n)&&(n=0),isNaN(i)&&(i=0),n>=0&&(x=n),i>=0&&(j=i),D=!0,l(),w},this.snap=function(){var e=!1;q={top:!1,left:!1,right:!1,bottom:!1};for(var t=0;arguments.length>t&&!e;t+=1){var n=arguments[t].toLowerCase();switch(n){case"top":case"left":case"right":case"bottom":q[n]=!0;break;case"none":case"center":e=!0}}return e&&(q={top:!1,left:!1,right:!1,bottom:!1}),D=!0,l(),w},this.slidein=function(e,t){switch(e=e.toLowerCase(),Q="none",e){case"down":Q="down",N="dashicons-arrow-down-alt2",W="dashicons-arrow-up-alt2";break;case"up":Q="up",N="dashicons-arrow-up-alt2",W="dashicons-arrow-down-alt2"}return!isNaN(t)&&t>=0&&(B=t),D=!0,l(),w},this.animate=function(e,t){var n=!1,i="Webkit Moz O ms Khtml".split(" ");if(void 0!==M[0].style.animationName&&(n=!0),n===!1)for(var o=0;i.length>o;o++)if(void 0!==M[0].style[i[o]+"AnimationName"]){n=!0;break}return n||(e="",t=""),O=e,T=t,w},this.set_class=function(e){return S=e,E=!0,l(),w},this.onresize=function(e){return U=e,w},this.onshow=function(e){return L=e,w},this.onhide=function(e){return P=e,w},this.onclose=function(e){return I=e,w},this.loading=function(e){return e?M.addClass("wpmui-loading"):M.removeClass("wpmui-loading"),w},this.confirm=function(t){return"visible"!==H?w:!t instanceof Object?w:(t.layout="absolute",t.parent=M,e.confirm(t),w)},this.title=function(e,t){return void 0===t&&(t=!0),A=e,C=t?!0:!1,l(),w},this.content=function(e,t){return k=e instanceof jQuery?t?e:e.html():e,D=!0,E=!0,l(),w},this.show=function(){return z.appendTo(jQuery("body")),M.hide(),s(),b=!0,D=!0,H="visible",l(),M.hide(),window.setTimeout(function(){M.show()},2),"none"===Q&&O&&(M.addClass(O+" animated"),M.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){M.removeClass("animated"),M.removeClass(O)})),"function"==typeof L&&L.apply(w,[w.$()]),w},this.hide=function(){function e(){"none"===Q&&(z.detach(),a()),b=!1,H="hidden",l(),"function"==typeof P&&P.apply(w,[w.$()])}return"none"===Q&&T?(M.addClass(T+" animated"),M.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){M.removeClass("animated"),M.removeClass(T),e()})):e(),w},this.destroy=function(){var e=P;"closing"!==H&&(P=function(){"function"==typeof e&&e.apply(w,[w.$()]),H="closing","function"==typeof I&&I.apply(w,[w.$()]),z.remove(),z=null,M=null,delete n[w.id],w=null},w.hide())},this.on=function(e,t,n){return z.on(e,t,n),z.filter(t).length&&z.on(e,n),w},this.off=function(e,t,n){return z.off(e,t,n),z.filter(t).length&&z.off(e,n),w},this.$=function(e){return e?z.find(e):z},w=this,r()}}(window.wpmUi=window.wpmUi||{}),function(e){e.WpmUiProgress=function(){function e(){o=100,i=0,s=jQuery('
'),l=jQuery('
'),a=jQuery('
'),c=jQuery('
'),u=jQuery('
'),a.appendTo(l),u.appendTo(l),l.appendTo(s),c.appendTo(s),t()}function t(){var e=100*(i/o);0>e&&(e=0),e>100&&(e=100),a.width(e+"%"),u.text(parseInt(e)+" %"),r&&r.length?(c.html(r),c.show()):c.hide()}var n=this,i=0,o=100,r="",s=null,a=null,l=null,c=null,u=null;this.value=function(e){return isNaN(e)||(i=parseInt(e),t()),n},this.max=function(e){return isNaN(e)||(o=parseInt(e),t()),n},this.label=function(e){return r=e,t(),n},this.on=function(e,t,i){return s.on(e,t,i),n},this.off=function(e,t,i){return s.off(e,t,i),n},this.$=function(){return s},n=this,e()}}(window.wpmUi=window.wpmUi||{}),function(e){e.add_action||(e.filters=e.filters||{},e.add_action=function(t,n,i){e.add_filter(t,n,i)},e.add_filter=function(t,n,i){void 0!==n&&(void 0===i&&(i=10),e.filters[t]=e.filters[t]||[],e.filters[t].push({priority:i,callback:n}))},e.remove_action=function(t,n){e.remove_filter(t,n)},e.remove_filter=function(t,n){e.filters[t]=e.filters[t]||[],e.filters[t].forEach(function(i,o){i.callback===n&&e.filters[t].splice(o,1)})},e.remove_all_actions=function(t,n){e.remove_all_filters(t,n)},e.remove_all_filters=function(t,n){e.filters[t]=e.filters[t]||[],void 0===n?e.filters[t]=[]:e.filters[t].forEach(function(i,o){i.priority===n&&e.filters[t].splice(o,1)})},e.do_action=function(t,n){var i=[];void 0!==e.filters[t]&&e.filters[t].length>0&&(e.filters[t].forEach(function(e){i[e.priority]=i[e.priority]||[],i[e.priority].push(e.callback)}),i.forEach(function(e){e.forEach(function(e){e(n)})}))},e.apply_filters=function(t,n,i){var o=[];return void 0!==e.filters[t]&&e.filters[t].length>0&&(e.filters[t].forEach(function(e){o[e.priority]=o[e.priority]||[],o[e.priority].push(e.callback)}),o.forEach(function(e){e.forEach(function(e){n=e(n,i)})})),n})}(window.wpmUi=window.wpmUi||{}),function(e){e.WpmUiAjaxData=function(e,t){function n(){e||"string"!=typeof window.ajaxurl||(e=window.ajaxurl),d=jQuery("body").find("#wpmui_void"),d.length||(d=jQuery("
").attr("name","wpmui_void").attr("id","wpmui_void").css({width:1,height:1,display:"none",visibility:"hidden",position:"absolute",left:-1e3,top:-1e3}).hide().appendTo(jQuery("body"))),i(),u.reset()}function i(){var e=document.createElement("INPUT"),t=new XMLHttpRequest;e.type="file",g="files"in e,m=!!(t&&"upload"in t&&"onprogress"in t.upload),v=!!window.FormData}function o(){var e=new window.XMLHttpRequest;return m&&(e.upload.addEventListener("progress",function(e){if(e.lengthComputable){var t=e.loaded/e.total;r(t)}else r(-1)},!1),e.addEventListener("progress",function(e){if(e.lengthComputable){var t=e.loaded/e.total;r(t)}else r(-1)},!1)),e}function r(e){m&&"function"==typeof h&&h(e)}function s(e,t,n){r(100),"function"==typeof f&&f(e,t,n)}function a(e,t){var n={};if(t=t&&v,p instanceof jQuery)if(p.find(".wp-editor-area").each(function(){var e=jQuery(this).attr("id"),t="#wp-"+e+"-wrap",n=jQuery(t),i=window.tinyMCE.get(e);i&&n.hasClass("tmce-active")&&i.save()}),t)n=new window.FormData(p[0]);else{n={};var i={},o={validate:/^[a-zA-Z_][a-zA-Z0-9_-]*(?:\[(?:\d*|[a-zA-Z0-9_]+)\])*$/,key:/[a-zA-Z0-9_-]+|(?=\[\])/g,push:/^$/,fixed:/^\d+$/,named:/^[a-zA-Z0-9_-]+$/},r=function(e,t,n){return e[t]=n,e},s=function(e){return void 0===i[e]&&(i[e]=0),i[e]++};jQuery.each(p.serializeArray(),function(){if(o.validate.test(this.name)){for(var e,t=this.name.match(o.key),i=this.value,a=this.name;void 0!==(e=t.pop());)a=a.replace(RegExp("\\["+e+"\\]$"),""),e.match(o.push)?i=r([],s(a),i):e.match(o.fixed)?i=r([],e,i):e.match(o.named)&&(i=r({},e,i));n=jQuery.extend(!0,n,i)}}),p.find("input[type=file]").each(function(){var e=jQuery(this),t=e.attr("name"),i=e.clone(!0)[0];n[":files"]=n[":files"]||{},n[":files"][t]=i})}else if("string"==typeof p){var a=p.split("&").map(function(e){return e.split("=",2)});n=t?new window.FormData:{};for(var l in a){var c=decodeURI(a[l][0]),u=decodeURI(a[l][1]);t?n.append(c,u):void 0!==n[c]?("object"!=typeof n[c]&&(n[c]=[n[c]]),n[c].push(u)):n[c]=u}}else if("object"==typeof p)if(t){n=new window.FormData;for(var d in p)p.hasOwnProperty(d)&&n.append(d,p[d])}else n=jQuery.extend({},p);return void 0!==e&&(n instanceof window.FormData?n.append("action",e):n.action=e),n}function l(t,n){var i=a(t,!0),l={},c=null,u=!1;"json"!==n&&(n="text"),r(-1),l={url:e,type:"POST",dataType:"html",data:i,xhr:o,success:function(e){if(u=!0,c=e,"json"===n)try{c=jQuery.parseJSON(e)}catch(t){c={status:"ERR",data:e}}},error:function(e,t,n){u=!1,c=n},complete:function(e){c instanceof Object&&"ERR"===c.status&&(u=!1),s(c,u,e)}},i instanceof window.FormData&&(l.processData=!1,l.contentType=!1),jQuery.ajax(l)}function c(t,n){var i=a(t,!1),o=jQuery("
"),r="";for(var s in i)if(i.hasOwnProperty(s))if(":files"===s)for(var l in i[s]){var c=i[s][l];o.append(c)}else"action"===s?r=s+"="+(""+i[s]):jQuery('
').attr("name",s).attr("value",i[s]).appendTo(o);r=-1===e.indexOf("?")?"?"+r:"&"+r,o.attr("action",e+r).attr("method","POST").attr("enctype","multipart/form-data").attr("target",n).hide().appendTo(jQuery("body")),o.submit()}var u=this,d=null,p={},h=null,f=null,m=!1,g=!1,v=!1;this.data=function(e){return p=e,u},this.extract_data=function(e){return p=e,a(void 0,!1)},this.onprogress=function(e){return h=e,u},this.ondone=function(e){return f=e,u},this.reset=function(){return p={},h=null,f=null,u},this.load_text=function(e){return e=e||t,l(e,"text"),u},this.load_json=function(e){return e=e||t,l(e,"json"),u},this.load_http=function(e,n){return e=e||"wpmui_void",n=n||t,c(n,e),u},u=this,n()}}(window.wpmUi=window.wpmUi||{}),function(e){e.WpmUiBinary=function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.WpmUiBinary.utf8_encode=function(e){if("string"!=typeof e)return e;e=e.replace(/\r\n/g,"\n");var t,n="",i=0;for(i;e.length>i;i++)t=e.charCodeAt(i),128>t?n+=String.fromCharCode(t):t>127&&2048>t?(n+=String.fromCharCode(192|t>>6),n+=String.fromCharCode(128|63&t)):(n+=String.fromCharCode(224|t>>12),n+=String.fromCharCode(128|63&t>>6),n+=String.fromCharCode(128|63&t));return n},e.WpmUiBinary.utf8_decode=function(e){if("string"!=typeof e)return e;for(var t="",n=0,i=0;e.length>n;)i=e.charCodeAt(n),128>i?(t+=String.fromCharCode(i),n+=1):i>191&&224>i?(t+=String.fromCharCode((31&i)<<6|63&e.charCodeAt(n+1)),n+=2):(t+=String.fromCharCode((15&i)<<12|(63&e.charCodeAt(n+1))<<6|63&e.charCodeAt(n+2)),n+=3);return t},e.WpmUiBinary.base64_encode=function(n){if("string"!=typeof n)return n;n=e.WpmUiBinary.utf8_encode(n);for(var i,o,r,s,a,l,c,u="",d=0;n.length>d;)i=n.charCodeAt(d++),o=n.charCodeAt(d++),r=n.charCodeAt(d++),s=i>>2,a=(3&i)<<4|o>>4,l=(15&o)<<2|r>>6,c=63&r,isNaN(o)?l=c=64:isNaN(r)&&(c=64),u+=t.charAt(s)+t.charAt(a)+t.charAt(l)+t.charAt(c);return u},e.WpmUiBinary.base64_decode=function(n){if("string"!=typeof n)return n;n.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var i,o,r,s,a,l,c,u="",d=0;n.length>d;)s=t.indexOf(n.charAt(d++)),a=t.indexOf(n.charAt(d++)),l=t.indexOf(n.charAt(d++)),c=t.indexOf(n.charAt(d++)),i=s<<2|a>>4,o=(15&a)<<4|l>>2,r=(3&l)<<6|c,u+=String.fromCharCode(i),64!==l&&(u+=String.fromCharCode(o)),64!==c&&(u+=String.fromCharCode(r));return e.WpmUiBinary.utf8_decode(u)}}}(window.wpmUi=window.wpmUi||{});
;/*! PopUp - v4.8.0
* http://premium.wpmudev.org/project/the-pop-over-plugin/
* Copyright (c) 2016; * Licensed GPLv2+ */
(function(){window.IncPopup=function e(t){var i=this;i.data=t.popup,i.have_popup=!1,i.ajax_data={},i.opened=0,i.popup=null,i.close_popup=function(){if(jQuery("html").removeClass("can-scroll no-scroll"),i.data.display_data.click_multi?i.popup.hide():(i.popup.destroy(),i.have_popup=!1),jQuery(document).trigger("popup-closed",[i,i.data]),jQuery(document).trigger("popover-closed",[i,i.data]),i.data.close_hide){var e=i.data.expiry||365;if(t.preview)return!1;i.set_cookie("po_h",1,e)}return!1},i.close_popup_forever=function(){i.data.close_hide=!0,i.close_popup()},i.background_clicked=function(e){var t=jQuery(e.target);if(t.hasClass("wdpu-background")){if(!i.data.overlay_close)return;i.close_popup()}},i.move_popup=function(e){var t,n,s=0,o=0,r=null,a=e.find(".resize"),l=e.find(".move"),c=e.find(".wdpu-image img"),h=e.find(".popup");i.data.custom_size&&a.length&&(i.data.height&&!isNaN(i.data.height)&&(a.data("reduce-height")&&(r=jQuery(a.data("reduce-height")),o=r.outerHeight()),n=i.data.height-o,100>n&&(n=100),a.height(n)),i.data.width&&!isNaN(i.data.width)&&(a.data("reduce-width")&&(r=jQuery(a.data("reduce-width")),s=r.outerWidth()),t=i.data.width-s,100>t&&(t=100),a.width(t)));var u=function u(){if(!l.hasClass("no-move-x")){var e=jQuery(window).width(),t=h.outerWidth(),i=(e-t)/2;0>i&&(i=0),l.css({left:i})}if(!l.hasClass("no-move-y")){var n=jQuery(window).height(),s=h.outerHeight(),o=(n-s)/2;0>o&&(o=0),l.css({top:o})}if(c.length){var r,a,u=c.width(),d=c.height(),g=c.parent().width(),f=c.parent().height();u>g?(r=(g-u)/2,c.css({"margin-left":r})):c.css({"margin-left":0}),d>f?(a=(f-d)/2,c.css({"margin-top":a})):c.css({"margin-top":0})}};window.setTimeout(u,20),u()},i.reject=function(){i.have_popup=!1,i.data={}},i.prepare=function(){if(jQuery(document).trigger("popup-init",[i,i.data]),i.have_popup)switch(i.data.display){case"scroll":jQuery(window).on("scroll",i.show_at_position);break;case"anchor":jQuery(window).on("scroll",i.show_at_element);break;case"delay":var e=1e3*i.data.display_data.delay;"m"===i.data.display_data.delay_type&&(e*=60),window.setTimeout(i.show_popup,e);break;default:window.setTimeout(function(){"function"==typeof i.custom_handler&&i.custom_handler(i)},20)}},i.show_at_position=function(){var e,t,n=jQuery(this),s=n.scrollTop();"px"===i.data.display_data.scroll_type?s>=i.data.display_data.scroll&&(jQuery(window).off("scroll",i.show_at_position),i.show_popup()):(e=jQuery(document).height()-jQuery(window).height(),t=100*s/e,t>=i.data.display_data.scroll&&(jQuery(window).off("scroll",i.show_at_position),i.show_popup()))},i.show_at_element=function(){var e=jQuery(i.data.display_data.anchor),t=jQuery(window).scrollTop(),n=t+jQuery(window).height(),s=e.offset().top,o=n-s;o>10&&(jQuery(window).off("scroll",i.show_at_element),i.show_popup())},i.show_popup=function(){return jQuery(document).trigger("popup-open",[i]),!1},i._show=function(){var e,n="auto",s="auto";return e=parseInt(i.get_cookie("po_c"),10),isNaN(e)&&(e=0),i.set_cookie("po_c",e+1,365),i.data.custom_size&&(n=i.data.width,s=i.data.height),i.opened+=1,i.popup=wpmUi.popup(t.popup.html,t.popup.styles).size(n,s).animate(i.data.animation_in,i.data.animation_out).onresize(i.move_popup).on("click",".wdpu-background",i.background_clicked).on("click",".wdpu-hide-forever",i.close_popup_forever).on("click",".wdpu-close",i.close_popup).on("click",".close",i.close_popup).show(),i.data.scroll_body?jQuery("html").addClass("can-scroll"):jQuery("html").addClass("no-scroll"),!0},i.load_popup=function(e,n){void 0===e&&t.preview||(i.have_popup=!1,jQuery(document).trigger("popups-load",[t,e,n]))},i.cta_click=function(){return!0},i.form_submit=function(){function t(){var t=!1;"complete"!==a[0].contentDocument.readyState||e.doing_ajax?(l+=1,l>200&&(jQuery(document).trigger("popup-submit-timeout",[i,i.data]),t=!0)):t=!0,t&&(window.clearInterval(r),o())}function n(t){return void 0!==t&&(i.data.close_popup=t),e.recent_ajax_calls?(i.data.ajax_history=e.recent_ajax_calls,e.recent_ajax_calls.length&&(i.data.last_ajax=e.recent_ajax_calls[0])):(i.data.ajax_history=[],i.data.last_ajax={}),jQuery(document).trigger("popup-submit-done",[i,i.data]),i.data.close_popup?(i.close_popup(),!0):!1}function s(e,t,n){var s=e,o=h.find(".wdpu-msg-inner"),r=h.find(".wdpu-title"),a=h.find(".wdpu-subtitle");s instanceof jQuery||(s=jQuery("
").html(e)),s instanceof jQuery&&(s.hasClass("wdpu-msg-inner")?o.replaceWith(s):o.find(".wdpu-content").empty().append(s)),void 0!==t&&r.html(t),void 0!==n&&a.html(n),jQuery(document).trigger("popup-init",[i,i.data])}function o(){var e,t,o,r,l;if(jQuery(document).trigger("popup-submit-process",[a,i,i.data]),!i.data.form_submit)return!1;l="ignore"===i.data.form_submit?!1:!0;try{o=jQuery(g,a[0].contentDocument),r=i.data.did_ajax}catch(c){o=jQuery(""),r=!0}i.data.close_popup=!1,u.removeClass("wdpu-loading"),e=o.find(".wdpu-msg-inner"),t=h.find(".wdpu-msg-inner"),jQuery("#wdpu-frame").remove(),i.data.last_ajax=void 0,"close"===i.data.form_submit?n(!0):i.data.new_content?s(i.data.new_content,i.data.new_title,i.data.new_subtitle):r?n(l):o.length&&o.html().length?t.length&&e.length&&e.text().length?s(e):n(l):n(!0)}var r,a,l,c=jQuery(this),h=c.parents(".wdpu-container").first(),u=h.find(".wdpu-msg"),d=jQuery('
'),g=".wdpu-"+i.data.popup_id;return h.length?("redirect"!==i.data.form_submit&&(a=jQuery('
').hide().appendTo("body"),c.attr("target","wdpu-frame"),d.appendTo(c).val("raw")),u.addClass("wdpu-loading"),"redirect"===i.data.form_submit?window.setTimeout(function(){i.close_popup()},10):e.doing_ajax?(i.data.did_ajax=!0,l=0,r=window.setInterval(t,50)):(i.data.did_ajax=!1,a.load(o)),!0):!0},i.init=function(){t.popup?(i.have_popup=!0,i.data=t.popup,i.exec_scripts(),i.prepare()):i.load_popup()},i.exec_scripts=function(){var e;void 0!==i.data.script&&(e=Function("me",i.data.script),e(i))},i.close=function(){return i.close_popup()},i.open=function(){return i.show_popup()},i.status=function(){return{state:e.po_status,queue:e.po_queue,current:e.po_current}},i.get_cookie=function(e){var t,n,s,o=document.cookie.split(";");for(s=i.data&&i.data.popup_id?e+"-"+i.data.popup_id+"=":e+"=",t=0;o.length>t;t+=1){for(n=o[t];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(s))return n.substring(s.length,n.length)}return null},i.set_cookie=function(e,n,s){var o,r,a;t.preview||(isNaN(s)?r="":(o=new Date,o.setTime(o.getTime()+1e3*60*60*24*s),r="; expires="+o.toGMTString()),a=i.data&&i.data.popup_id?e+"-"+i.data.popup_id:e,document.cookie=a+"="+n+r+"; path=/")};var n={};return n.extend=i,i.data&&i.data.preview?(n.init=i.init,n.load=i.load_popup):t.dynamic?(i.init(),n.open=i.show_popup,n.close=i.close_popup,n.status=i.status):(n.init=i.init,n.load=i.load_popup),n}})(),function(){function e(e,i){"closed"===IncPopup.po_status?i._show()?(IncPopup.po_current=i,IncPopup.po_status="open"):t(null,i):IncPopup.po_queue[IncPopup.po_queue.length]=i}function t(){if(IncPopup.po_status="closed",IncPopup.po_current=null,IncPopup.po_queue.length>0){var t=IncPopup.po_queue.shift();e(null,t)}}function i(e,t,i,o){var r,a,l=0,c=s(""+window.location),h=s(""+document.referrer),u=null,d=function d(e){u=jQuery.extend({},t),u.popup=e,n(u)};return window.force_popover&&(l=""+window.force_popover),void 0!==i&&(l=""+i),t.ajax_data=t.ajax_data||{},a=jQuery.extend({},t.ajax_data),a.action="inc_popup",a["do"]=t["do"],a.thefrom=c,a.thereferrer=h,l&&(a.po_id=l),o&&(a.data=o),t.preview&&(a.preview=!0),r={url:t.ajaxurl,dataType:"jsonp",jsonpCallback:"po_data",data:a,success:function(e){d(e)},complete:function(){jQuery(document).trigger("popup-load-done",[u])}},jQuery.ajax(r)}function n(e){if(e){var t=function t(e){e&&(e.popup&&e.popup.html&&jQuery('").appendTo("head"),window.inc_popup=new IncPopup(e),window.inc_popups[window.inc_popups.length]=window.inc_popup,jQuery(document).trigger("popup-initialized",[window.inc_popup]),e.noinit||e.preview||window.inc_popup.init())};if(e.popup instanceof Array)for(var i=0;e.popup.length>i;i+=1){var n=jQuery.extend({},e);n.popup=e.popup[i],t(n)}else e instanceof Object&&t(e)}}function s(e){for(var t=[],i=0;e.length>i;i++){if(e.length>i+1){var n=e.charCodeAt(i),s=e.charCodeAt(i+1);if(n>=55296&&56319>=n&&56320===(64512&s)||s>=768&&879>=s){t.unshift(e.substring(i,i+2)),i++;continue}}t.unshift(e[i])}return t.join("")}IncPopup.po_status="closed",IncPopup.po_queue=[],IncPopup.po_current=null,IncPopup.recent_ajax_calls=[],IncPopup.doing_ajax=!1,jQuery(document).on("popup-open",e),jQuery(document).on("popup-closed",t),jQuery(document).on("popups-load",i),jQuery(document).ajaxStart(function(){IncPopup.doing_ajax=!0}),jQuery(document).ajaxComplete(function(e,t){IncPopup.doing_ajax=!1,IncPopup.recent_ajax_calls.unshift(t)}),jQuery(function(){window.inc_popups=[],window._popup_data&&n(window._popup_data)})}();
;!function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c
1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document);
;/*!
DataTables 1.10.8
©2008-2014 SpryMedia Ltd - datatables.net/license
*/
(function(Fa,T,k){var S=function(g){function X(a){var b,c,d={};g.each(a,function(e){if((b=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(b[1]+" "))c=e.replace(b[0],b[2].toLowerCase()),d[c]=e,"o"===b[1]&&X(a[e])});a._hungarianMap=d}function I(a,b,c){a._hungarianMap||X(a);var d;g.each(b,function(e){d=a._hungarianMap[e];if(d!==k&&(c||b[d]===k))"o"===d.charAt(0)?(b[d]||(b[d]={}),g.extend(!0,b[d],b[e]),I(a[d],b[d],c)):b[d]=b[e]})}function S(a){var b=m.defaults.oLanguage,c=a.sZeroRecords;
!a.sEmptyTable&&(c&&"No data available in table"===b.sEmptyTable)&&F(a,a,"sZeroRecords","sEmptyTable");!a.sLoadingRecords&&(c&&"Loading..."===b.sLoadingRecords)&&F(a,a,"sZeroRecords","sLoadingRecords");a.sInfoThousands&&(a.sThousands=a.sInfoThousands);(a=a.sDecimal)&&db(a)}function eb(a){B(a,"ordering","bSort");B(a,"orderMulti","bSortMulti");B(a,"orderClasses","bSortClasses");B(a,"orderCellsTop","bSortCellsTop");B(a,"order","aaSorting");B(a,"orderFixed","aaSortingFixed");B(a,"paging","bPaginate");
B(a,"pagingType","sPaginationType");B(a,"pageLength","iDisplayLength");B(a,"searching","bFilter");"boolean"===typeof a.sScrollX&&(a.sScrollX=a.sScrollX?"100%":"");if(a=a.aoSearchCols)for(var b=0,c=a.length;b").css({position:"fixed",
top:0,left:0,height:1,width:1,overflow:"hidden"}).append(g("
").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(g('
').css({width:"100%",height:10}))).appendTo("body"),c=b.find(".test");a.bScrollOversize=100===c[0].offsetWidth;a.bScrollbarLeft=1!==Math.round(c.offset().left);a.bBounding=b[0].getBoundingClientRect().width?!0:!1;b.remove()}function hb(a,b,c,d,e,f){var h,i=!1;c!==k&&(h=c,i=!0);for(;d!==e;)a.hasOwnProperty(d)&&(h=i?b(h,a[d],d,a):a[d],
i=!0,d+=f);return h}function Ga(a,b){var c=m.defaults.column,d=a.aoColumns.length,c=g.extend({},m.models.oColumn,c,{nTh:b?b:T.createElement("th"),sTitle:c.sTitle?c.sTitle:b?b.innerHTML:"",aDataSort:c.aDataSort?c.aDataSort:[d],mData:c.mData?c.mData:d,idx:d});a.aoColumns.push(c);c=a.aoPreSearchCols;c[d]=g.extend({},m.models.oSearch,c[d]);ka(a,d,g(b).data())}function ka(a,b,c){var b=a.aoColumns[b],d=a.oClasses,e=g(b.nTh);if(!b.sWidthOrig){b.sWidthOrig=e.attr("width")||null;var f=(e.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);
f&&(b.sWidthOrig=f[1])}c!==k&&null!==c&&(fb(c),I(m.defaults.column,c),c.mDataProp!==k&&!c.mData&&(c.mData=c.mDataProp),c.sType&&(b._sManualType=c.sType),c.className&&!c.sClass&&(c.sClass=c.className),g.extend(b,c),F(b,c,"sWidth","sWidthOrig"),c.iDataSort!==k&&(b.aDataSort=[c.iDataSort]),F(b,c,"aDataSort"));var h=b.mData,i=P(h),j=b.mRender?P(b.mRender):null,c=function(a){return"string"===typeof a&&-1!==a.indexOf("@")};b._bAttrSrc=g.isPlainObject(h)&&(c(h.sort)||c(h.type)||c(h.filter));b.fnGetData=
function(a,b,c){var d=i(a,b,k,c);return j&&b?j(d,b,a,c):d};b.fnSetData=function(a,b,c){return Q(h)(a,b,c)};"number"!==typeof h&&(a._rowReadObject=!0);a.oFeatures.bSort||(b.bSortable=!1,e.addClass(d.sSortableNone));a=-1!==g.inArray("asc",b.asSorting);c=-1!==g.inArray("desc",b.asSorting);!b.bSortable||!a&&!c?(b.sSortingClass=d.sSortableNone,b.sSortingClassJUI=""):a&&!c?(b.sSortingClass=d.sSortableAsc,b.sSortingClassJUI=d.sSortJUIAscAllowed):!a&&c?(b.sSortingClass=d.sSortableDesc,b.sSortingClassJUI=
d.sSortJUIDescAllowed):(b.sSortingClass=d.sSortable,b.sSortingClassJUI=d.sSortJUI)}function Y(a){if(!1!==a.oFeatures.bAutoWidth){var b=a.aoColumns;Ha(a);for(var c=0,d=b.length;cr[f])d(l.length+r[f],n);else if("string"===typeof r[f]){i=0;for(j=l.length;ib&&a[e]--; -1!=d&&c===k&&a.splice(d,1)}function da(a,b,c,d){var e=a.aoData[b],f,h=function(c,f){for(;c.childNodes.length;)c.removeChild(c.firstChild);c.innerHTML=y(a,b,f,"display")};if("dom"===c||(!c||"auto"===c)&&"dom"===e.src)e._aData=na(a,e,d,d===k?k:e._aData).data;else{var i=e.anCells;if(i)if(d!==
k)h(i[d],d);else{c=0;for(f=i.length;c ").appendTo(h));b=0;for(c=l.length;btr").attr("role","row");g(h).find(">tr>th, >tr>td").addClass(n.sHeaderTH);g(i).find(">tr>th, >tr>td").addClass(n.sFooterTH);if(null!==i){a=a.aoFooter[0];b=0;for(c=a.length;b=a.fnRecordsDisplay()?0:h,a.iInitDisplayStart=-1);var h=a._iDisplayStart,n=a.fnDisplayEnd();if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++,C(a,!1);else if(i){if(!a.bDestroying&&!lb(a))return}else a.iDraw++;if(0!==j.length){f=i?a.aoData.length:n;for(i=i?0:h;i",{"class":e?d[0]:""}).append(g(" ",{valign:"top",colSpan:ba(a),"class":a.oClasses.sRowEmpty}).html(c))[0];w(a,"aoHeaderCallback","header",[g(a.nTHead).children("tr")[0],
Ma(a),h,n,j]);w(a,"aoFooterCallback","footer",[g(a.nTFoot).children("tr")[0],Ma(a),h,n,j]);d=g(a.nTBody);d.children().detach();d.append(g(b));w(a,"aoDrawCallback","draw",[a]);a.bSorted=!1;a.bFiltered=!1;a.bDrawing=!1}}function R(a,b){var c=a.oFeatures,d=c.bFilter;c.bSort&&mb(a);d?ga(a,a.oPreviousSearch):a.aiDisplay=a.aiDisplayMaster.slice();!0!==b&&(a._iDisplayStart=0);a._drawHold=b;M(a);a._drawHold=!1}function nb(a){var b=a.oClasses,c=g(a.nTable),c=g("
").insertBefore(c),d=a.oFeatures,e=g("
",
{id:a.sTableId+"_wrapper","class":b.sWrapper+(a.nTFoot?"":" "+b.sNoFooter)});a.nHolding=c[0];a.nTableWrapper=e[0];a.nTableReinsertBefore=a.nTable.nextSibling;for(var f=a.sDom.split(""),h,i,j,n,l,r,q=0;q ")[0];n=f[q+1];if("'"==n||'"'==n){l="";for(r=2;f[q+r]!=n;)l+=f[q+r],r++;"H"==l?l=b.sJUIHeader:"F"==l&&(l=b.sJUIFooter);-1!=l.indexOf(".")?(n=l.split("."),j.id=n[0].substr(1,n[0].length-1),j.className=n[1]):"#"==l.charAt(0)?j.id=l.substr(1,l.length-
1):j.className=l;q+=r}e.append(j);e=g(j)}else if(">"==i)e=e.parent();else if("l"==i&&d.bPaginate&&d.bLengthChange)h=ob(a);else if("f"==i&&d.bFilter)h=pb(a);else if("r"==i&&d.bProcessing)h=qb(a);else if("t"==i)h=rb(a);else if("i"==i&&d.bInfo)h=sb(a);else if("p"==i&&d.bPaginate)h=tb(a);else if(0!==m.ext.feature.length){j=m.ext.feature;r=0;for(n=j.length;r ',i=d.sSearch,i=i.match(/_INPUT_/)?i.replace("_INPUT_",h):i+h,b=g("
",{id:!f.f?c+"_filter":null,"class":b.sFilter}).append(g(" ").append(i)),f=function(){var b=!this.value?"":this.value;b!=e.sSearch&&(ga(a,{sSearch:b,bRegex:e.bRegex,bSmart:e.bSmart,bCaseInsensitive:e.bCaseInsensitive}),a._iDisplayStart=0,M(a))},h=null!==a.searchDelay?a.searchDelay:"ssp"===z(a)?400:0,j=g("input",b).val(e.sSearch).attr("placeholder",
d.sSearchPlaceholder).bind("keyup.DT search.DT input.DT paste.DT cut.DT",h?ua(f,h):f).bind("keypress.DT",function(a){if(13==a.keyCode)return!1}).attr("aria-controls",c);g(a.nTable).on("search.dt.DT",function(b,c){if(a===c)try{j[0]!==T.activeElement&&j.val(e.sSearch)}catch(f){}});return b[0]}function ga(a,b,c){var d=a.oPreviousSearch,e=a.aoPreSearchCols,f=function(a){d.sSearch=a.sSearch;d.bRegex=a.bRegex;d.bSmart=a.bSmart;d.bCaseInsensitive=a.bCaseInsensitive};Ia(a);if("ssp"!=z(a)){wb(a,b.sSearch,
c,b.bEscapeRegex!==k?!b.bEscapeRegex:b.bRegex,b.bSmart,b.bCaseInsensitive);f(b);for(b=0;b=b.length)a.aiDisplay=f.slice();else{if(h||c||e.length>b.length||0!==b.indexOf(e)||a.bSorted)a.aiDisplay=f.slice();b=a.aiDisplay;for(c=b.length-1;0<=c;c--)d.test(a.aoData[b[c]]._sFilterRow)||b.splice(c,1)}}function Ra(a,b,c,d){a=b?a:va(a);
c&&(a="^(?=.*?"+g.map(a.match(/"[^"]+"|[^ ]+/g)||[""],function(a){if('"'===a.charAt(0))var b=a.match(/^"(.*)"$/),a=b?b[1]:a;return a.replace('"',"")}).join(")(?=.*?")+").*$");return RegExp(a,d?"i":"")}function va(a){return a.replace(Zb,"\\$1")}function zb(a){var b=a.aoColumns,c,d,e,f,h,i,j,g,l=m.ext.type.search;c=!1;d=0;for(f=a.aoData.length;d",{"class":a.oClasses.sInfo,id:!c?b+"_info":null});c||(a.aoDrawCallback.push({fn:Cb,sName:"information"}),d.attr("role","status").attr("aria-live","polite"),g(a.nTable).attr("aria-describedby",b+"_info"));return d[0]}function Cb(a){var b=a.aanFeatures.i;if(0!==b.length){var c=a.oLanguage,d=a._iDisplayStart+1,e=a.fnDisplayEnd(),f=a.fnRecordsTotal(),h=a.fnRecordsDisplay(),i=h?c.sInfo:c.sInfoEmpty;h!==f&&(i+=" "+c.sInfoFiltered);i+=c.sInfoPostFix;i=Db(a,i);c=c.fnInfoCallback;null!==c&&(i=
c.call(a.oInstance,a,d,e,f,h,i));g(b).html(i)}}function Db(a,b){var c=a.fnFormatNumber,d=a._iDisplayStart+1,e=a._iDisplayLength,f=a.fnRecordsDisplay(),h=-1===e;return b.replace(/_START_/g,c.call(a,d)).replace(/_END_/g,c.call(a,a.fnDisplayEnd())).replace(/_MAX_/g,c.call(a,a.fnRecordsTotal())).replace(/_TOTAL_/g,c.call(a,f)).replace(/_PAGE_/g,c.call(a,h?1:Math.ceil(d/e))).replace(/_PAGES_/g,c.call(a,h?1:Math.ceil(f/e)))}function ha(a){var b,c,d=a.iInitDisplayStart,e=a.aoColumns,f;c=a.oFeatures;var h=
a.bDeferLoading;if(a.bInitialised){nb(a);kb(a);fa(a,a.aoHeader);fa(a,a.aoFooter);C(a,!0);c.bAutoWidth&&Ha(a);b=0;for(c=e.length;b",{name:c+"_length","aria-controls":c,"class":b.sLengthSelect}),h=0,i=f.length;h ").addClass(b.sLength);a.aanFeatures.l||(j[0].id=c+"_length");j.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",e[0].outerHTML));g("select",
j).val(a._iDisplayLength).bind("change.DT",function(){Sa(a,g(this).val());M(a)});g(a.nTable).bind("length.dt.DT",function(b,c,f){a===c&&g("select",j).val(f)});return j[0]}function tb(a){var b=a.sPaginationType,c=m.ext.pager[b],d="function"===typeof c,e=function(a){M(a)},b=g("
").addClass(a.oClasses.sPaging+b)[0],f=a.aanFeatures;d||c.fnInit(a,b,e);f.p||(b.id=a.sTableId+"_paginate",a.aoDrawCallback.push({fn:function(a){if(d){var b=a._iDisplayStart,g=a._iDisplayLength,n=a.fnRecordsDisplay(),l=-1===
g,b=l?0:Math.ceil(b/g),g=l?1:Math.ceil(n/g),n=c(b,g),k,l=0;for(k=f.p.length;l
f&&(d=0)):"first"==b?d=0:"previous"==b?(d=0<=e?d-e:0,0>d&&(d=0)):"next"==b?d+e ",{id:!a.aanFeatures.r?a.sTableId+"_processing":null,"class":a.oClasses.sProcessing}).html(a.oLanguage.sProcessing).insertBefore(a.nTable)[0]}function C(a,b){a.oFeatures.bProcessing&&g(a.aanFeatures.r).css("display",b?"block":"none");w(a,null,"processing",[a,b])}function rb(a){var b=g(a.nTable);b.attr("role","grid");var c=a.oScroll;if(""===c.sX&&""===c.sY)return a.nTable;var d=c.sX,e=c.sY,f=a.oClasses,h=b.children("caption"),
i=h.length?h[0]._captionSide:null,j=g(b[0].cloneNode(!1)),n=g(b[0].cloneNode(!1)),l=b.children("tfoot");c.sX&&"100%"===b.attr("width")&&b.removeAttr("width");l.length||(l=null);j=g("
",{"class":f.sScrollWrapper}).append(g("
",{"class":f.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:d?!d?null:u(d):"100%"}).append(g("
",{"class":f.sScrollHeadInner}).css({"box-sizing":"content-box",width:c.sXInner||"100%"}).append(j.removeAttr("id").css("margin-left",0).append("top"===
i?h:null).append(b.children("thead"))))).append(g("
",{"class":f.sScrollBody}).css({position:"relative",overflow:"auto",width:!d?null:u(d)}).append(b));l&&j.append(g("
",{"class":f.sScrollFoot}).css({overflow:"hidden",border:0,width:d?!d?null:u(d):"100%"}).append(g("
",{"class":f.sScrollFootInner}).append(n.removeAttr("id").css("margin-left",0).append("bottom"===i?h:null).append(b.children("tfoot")))));var b=j.children(),k=b[0],f=b[1],q=l?b[2]:null;if(d)g(f).on("scroll.DT",function(){var a=
this.scrollLeft;k.scrollLeft=a;l&&(q.scrollLeft=a)});g(f).css(e&&c.bCollapse?"max-height":"height",e);a.nScrollHead=k;a.nScrollBody=f;a.nScrollFoot=q;a.aoDrawCallback.push({fn:Z,sName:"scrolling"});return j[0]}function Z(a){var b=a.oScroll,c=b.sX,d=b.sXInner,e=b.sY,b=b.iBarWidth,f=g(a.nScrollHead),h=f[0].style,i=f.children("div"),j=i[0].style,n=i.children("table"),i=a.nScrollBody,l=g(i),k=i.style,q=g(a.nScrollFoot).children("div"),m=q.children("table"),o=g(a.nTHead),E=g(a.nTable),p=E[0],t=p.style,
N=a.nTFoot?g(a.nTFoot):null,Eb=a.oBrowser,w=Eb.bScrollOversize,s,v,O,x,y=[],z=[],A=[],B,C=function(a){a=a.style;a.paddingTop="0";a.paddingBottom="0";a.borderTopWidth="0";a.borderBottomWidth="0";a.height=0};E.children("thead, tfoot").remove();x=o.clone().prependTo(E);o=o.find("tr");v=x.find("tr");x.find("th, td").removeAttr("tabindex");N&&(O=N.clone().prependTo(E),s=N.find("tr"),O=O.find("tr"));c||(k.width="100%",f[0].style.width="100%");g.each(qa(a,x),function(b,c){B=la(a,b);c.style.width=a.aoColumns[B].sWidth});
N&&H(function(a){a.style.width=""},O);f=E.outerWidth();if(""===c){t.width="100%";if(w&&(E.find("tbody").height()>i.offsetHeight||"scroll"==l.css("overflow-y")))t.width=u(E.outerWidth()-b);f=E.outerWidth()}else""!==d&&(t.width=u(d),f=E.outerWidth());H(C,v);H(function(a){A.push(a.innerHTML);y.push(u(g(a).css("width")))},v);H(function(a,b){a.style.width=y[b]},o);g(v).height(0);N&&(H(C,O),H(function(a){z.push(u(g(a).css("width")))},O),H(function(a,b){a.style.width=z[b]},s),g(O).height(0));H(function(a,
b){a.innerHTML=''+A[b]+"
";a.style.width=y[b]},v);N&&H(function(a,b){a.innerHTML="";a.style.width=z[b]},O);if(E.outerWidth()i.offsetHeight||"scroll"==l.css("overflow-y")?f+b:f;if(w&&(i.scrollHeight>i.offsetHeight||"scroll"==l.css("overflow-y")))t.width=u(s-b);(""===c||""!==d)&&J(a,1,"Possible column misalignment",6)}else s="100%";k.width=u(s);h.width=u(s);N&&(a.nScrollFoot.style.width=u(s));!e&&w&&(k.height=
u(p.offsetHeight+b));c=E.outerWidth();n[0].style.width=u(c);j.width=u(c);d=E.height()>i.clientHeight||"scroll"==l.css("overflow-y");e="padding"+(Eb.bScrollbarLeft?"Left":"Right");j[e]=d?b+"px":"0px";N&&(m[0].style.width=u(c),q[0].style.width=u(c),q[0].style[e]=d?b+"px":"0px");l.scroll();if((a.bSorted||a.bFiltered)&&!a._drawHold)i.scrollTop=0}function H(a,b,c){for(var d=0,e=0,f=b.length,h,i;e").appendTo(i.find("tbody"));i.find("thead, tfoot").remove();i.append(g(a.nTHead).clone()).append(g(a.nTFoot).clone());i.find("tfoot th, tfoot td").css("width","");n=qa(a,i.find("thead")[0]);for(m=0;m ").css(f||e?{position:"absolute",top:0,
left:0,height:1,right:0,overflow:"hidden"}:{}).append(i).appendTo(k);f&&h?i.width(h):f?(i.css("width","auto"),i.width()").css("width",u(a)).appendTo(b||T.body),d=c[0].offsetWidth;c.remove();return d}function Gb(a,b){var c=
Hb(a,b);if(0>c)return null;var d=a.aoData[c];return!d.nTr?g(" ").html(y(a,c,b,"display"))[0]:d.anCells[b]}function Hb(a,b){for(var c,d=-1,e=-1,f=0,h=a.aoData.length;fd&&(d=c.length,e=f);return e}function u(a){return null===a?"0px":"number"==typeof a?0>a?"0px":a+"px":a.match(/\d$/)?a+"px":a}function Ib(){var a=m.__scrollbarWidth;if(a===k){var b=g("
").css({position:"absolute",top:0,left:0,width:"100%",height:150,padding:0,overflow:"scroll",
visibility:"hidden"}).appendTo("body"),a=b[0].offsetWidth-b[0].clientWidth;m.__scrollbarWidth=a;b.remove()}return a}function V(a){var b,c,d=[],e=a.aoColumns,f,h,i,j;b=a.aaSortingFixed;c=g.isPlainObject(b);var n=[];f=function(a){a.length&&!g.isArray(a[0])?n.push(a):n.push.apply(n,a)};g.isArray(b)&&f(b);c&&b.pre&&f(b.pre);f(a.aaSorting);c&&b.post&&f(b.post);for(a=0;a
e?1:0,0!==c)return"asc"===i.dir?c:-c;c=d[a];e=d[b];return ce?1:0}):g.sort(function(a,b){var c,h,i,g,j=n.length,k=f[a]._aSortData,m=f[b]._aSortData;for(i=0;ih?1:0})}a.bSorted=!0}function Kb(a){for(var b,c,d=a.aoColumns,e=V(a),a=a.oLanguage.oAria,f=0,h=d.length;f/g,"");var g=c.nTh;g.removeAttribute("aria-sort");
c.bSortable&&(0e?e+1:3));e=0;for(f=d.length;ee?e+1:3))}a.aLastSort=d}function Jb(a,b){var c=a.aoColumns[b],d=m.ext.order[c.sSortDataType],e;d&&(e=d.call(a.oInstance,a,b,aa(a,b)));for(var f,h=m.ext.type.order[c.sType+"-pre"],i=0,g=a.aoData.length;i=d.length?[0,c[1]]:
c)}));e.search!==k&&g.extend(a.oPreviousSearch,Bb(e.search));b=0;for(c=e.columns.length;b=c&&(b=c-d);b-=b%d;if(-1===d||0>b)b=0;a._iDisplayStart=b}function Qa(a,b){var c=a.renderer,d=m.ext.renderer[b];return g.isPlainObject(c)&&c[b]?d[c[b]]||d._:"string"===typeof c?d[c]||d._:d._}function z(a){return a.oFeatures.bServerSide?"ssp":a.ajax||a.sAjaxSource?"ajax":"dom"}function Aa(a,b){var c=[],c=Nb.numbers_length,d=Math.floor(c/2);b<=c?c=W(0,b):a<=d?(c=W(0,c-2),c.push("ellipsis"),c.push(b-1)):(a>=b-1-d?c=W(b-(c-2),b):(c=W(a-d+2,a+d-1),c.push("ellipsis"),
c.push(b-1)),c.splice(0,0,"ellipsis"),c.splice(0,0,0));c.DT_el="span";return c}function db(a){g.each({num:function(b){return Ba(b,a)},"num-fmt":function(b){return Ba(b,a,Xa)},"html-num":function(b){return Ba(b,a,Ca)},"html-num-fmt":function(b){return Ba(b,a,Ca,Xa)}},function(b,c){v.type.order[b+a+"-pre"]=c;b.match(/^html\-/)&&(v.type.search[b+a]=v.type.search.html)})}function Ob(a){return function(){var b=[za(this[m.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return m.ext.internal[a].apply(this,
b)}}var m,v,t,p,s,Ya={},Pb=/[\r\n]/g,Ca=/<.*?>/g,bc=/^[\w\+\-]/,cc=/[\w\+\-]$/,Zb=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Xa=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfk]/gi,K=function(a){return!a||!0===a||"-"===a?!0:!1},Qb=function(a){var b=parseInt(a,10);return!isNaN(b)&&isFinite(a)?b:null},Rb=function(a,b){Ya[b]||(Ya[b]=RegExp(va(b),"g"));return"string"===typeof a&&"."!==b?a.replace(/\./g,"").replace(Ya[b],"."):a},Za=function(a,b,c){var d="string"===typeof a;
if(K(a))return!0;b&&d&&(a=Rb(a,b));c&&d&&(a=a.replace(Xa,""));return!isNaN(parseFloat(a))&&isFinite(a)},Sb=function(a,b,c){return K(a)?!0:!(K(a)||"string"===typeof a)?null:Za(a.replace(Ca,""),b,c)?!0:null},D=function(a,b,c){var d=[],e=0,f=a.length;if(c!==k)for(;e")[0],$b=wa.textContent!==k,ac=/<.*?>/g;m=function(a){this.$=function(a,b){return this.api(!0).$(a,b)};this._=function(a,
b){return this.api(!0).rows(a,b).data()};this.api=function(a){return a?new t(za(this[v.iApiIndex])):new t(this)};this.fnAddData=function(a,b){var c=this.api(!0),d=g.isArray(a)&&(g.isArray(a[0])||g.isPlainObject(a[0]))?c.rows.add(a):c.row.add(a);(b===k||b)&&c.draw();return d.flatten().toArray()};this.fnAdjustColumnSizing=function(a){var b=this.api(!0).columns.adjust(),c=b.settings()[0],d=c.oScroll;a===k||a?b.draw(!1):(""!==d.sX||""!==d.sY)&&Z(c)};this.fnClearTable=function(a){var b=this.api(!0).clear();
(a===k||a)&&b.draw()};this.fnClose=function(a){this.api(!0).row(a).child.hide()};this.fnDeleteRow=function(a,b,c){var d=this.api(!0),a=d.rows(a),e=a.settings()[0],g=e.aoData[a[0][0]];a.remove();b&&b.call(this,e,g);(c===k||c)&&d.draw();return g};this.fnDestroy=function(a){this.api(!0).destroy(a)};this.fnDraw=function(a){this.api(!0).draw(a)};this.fnFilter=function(a,b,c,d,e,g){e=this.api(!0);null===b||b===k?e.search(a,c,d,g):e.column(b).search(a,c,d,g);e.draw()};this.fnGetData=function(a,b){var c=
this.api(!0);if(a!==k){var d=a.nodeName?a.nodeName.toLowerCase():"";return b!==k||"td"==d||"th"==d?c.cell(a,b).data():c.row(a).data()||null}return c.data().toArray()};this.fnGetNodes=function(a){var b=this.api(!0);return a!==k?b.row(a).node():b.rows().nodes().flatten().toArray()};this.fnGetPosition=function(a){var b=this.api(!0),c=a.nodeName.toUpperCase();return"TR"==c?b.row(a).index():"TD"==c||"TH"==c?(a=b.cell(a).index(),[a.row,a.columnVisible,a.column]):null};this.fnIsOpen=function(a){return this.api(!0).row(a).child.isShown()};
this.fnOpen=function(a,b,c){return this.api(!0).row(a).child(b,c).show().child()[0]};this.fnPageChange=function(a,b){var c=this.api(!0).page(a);(b===k||b)&&c.draw(!1)};this.fnSetColumnVis=function(a,b,c){a=this.api(!0).column(a).visible(b);(c===k||c)&&a.columns.adjust().draw()};this.fnSettings=function(){return za(this[v.iApiIndex])};this.fnSort=function(a){this.api(!0).order(a).draw()};this.fnSortListener=function(a,b,c){this.api(!0).order.listener(a,b,c)};this.fnUpdate=function(a,b,c,d,e){var g=
this.api(!0);c===k||null===c?g.row(b).data(a):g.cell(b,c).data(a);(e===k||e)&&g.columns.adjust();(d===k||d)&&g.draw();return 0};this.fnVersionCheck=v.fnVersionCheck;var b=this,c=a===k,d=this.length;c&&(a={});this.oApi=this.internal=v.internal;for(var e in m.ext.internal)e&&(this[e]=Ob(e));this.each(function(){var f={},f=1t<"F"ip>'),o.renderer)?g.isPlainObject(o.renderer)&&!o.renderer.header&&(o.renderer.header="jqueryui"):o.renderer="jqueryui":g.extend(j,m.ext.classes,f.oClasses);r.addClass(j.sTable);if(""!==o.oScroll.sX||""!==o.oScroll.sY)o.oScroll.iBarWidth=
Ib();o.iInitDisplayStart===k&&(o.iInitDisplayStart=f.iDisplayStart,o._iDisplayStart=f.iDisplayStart);null!==f.iDeferLoading&&(o.bDeferLoading=!0,e=g.isArray(f.iDeferLoading),o._iRecordsDisplay=e?f.iDeferLoading[0]:f.iDeferLoading,o._iRecordsTotal=e?f.iDeferLoading[1]:f.iDeferLoading);var t=o.oLanguage;g.extend(!0,t,f.oLanguage);""!==t.sUrl&&(g.ajax({dataType:"json",url:t.sUrl,success:function(a){S(a);I(l.oLanguage,a);g.extend(true,t,a);ha(o)},error:function(){ha(o)}}),n=!0);null===f.asStripeClasses&&
(o.asStripeClasses=[j.sStripeOdd,j.sStripeEven]);var e=o.asStripeClasses,s=r.children("tbody").find("tr").eq(0);-1!==g.inArray(!0,g.map(e,function(a){return s.hasClass(a)}))&&(g("tbody tr",this).removeClass(e.join(" ")),o.asDestroyStripes=e.slice());q=[];e=this.getElementsByTagName("thead");0!==e.length&&(ea(o.aoHeader,e[0]),q=qa(o));if(null===f.aoColumns){p=[];e=0;for(i=q.length;e").appendTo(this));o.nTHead=i[0];i=r.children("tbody");
0===i.length&&(i=g(" ").appendTo(this));o.nTBody=i[0];i=r.children("tfoot");if(0===i.length&&0 ").appendTo(this);0===i.length||0===i.children().length?r.addClass(j.sNoFooter):0a?new t(b[a],this[a]):null},filter:function(a){var b=[];if(x.filter)b=x.filter.call(this,a,this);else for(var c=0,d=this.length;c ").addClass(b),g("td",c).addClass(b).html(a)[0].colSpan=ba(d),e.push(c[0]))};f(a,b);c._details&&c._details.remove();c._details=g(e);c._detailsShow&&c._details.insertAfter(c.nTr)}return this});p(["row().child.show()",
"row().child().show()"],function(){Wb(this,!0);return this});p(["row().child.hide()","row().child().hide()"],function(){Wb(this,!1);return this});p(["row().child.remove()","row().child().remove()"],function(){cb(this);return this});p("row().child.isShown()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]]._detailsShow||!1:!1});var ec=/^(.+):(name|visIdx|visible)$/,Xb=function(a,b,c,d,e){for(var c=[],d=0,f=e.length;d=0?b:h.length+b];if(typeof a==="function"){var e=Da(c,f);return g.map(h,function(b,f){return a(f,Xb(c,f,0,0,e),j[f])?f:null})}var k=typeof a==="string"?a.match(ec):"";if(k)switch(k[2]){case "visIdx":case "visible":b=parseInt(k[1],10);if(b<0){var m=
g.map(h,function(a,b){return a.bVisible?b:null});return[m[m.length+b]]}return[la(c,b)];case "name":return g.map(i,function(a,b){return a===k[1]?b:null})}else return g(j).filter(a).map(function(){return g.inArray(this,j)}).toArray()},c,f)},1);c.selector.cols=a;c.selector.opts=b;return c});s("columns().header()","column().header()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTh},1)});s("columns().footer()","column().footer()",function(){return this.iterator("column",
function(a,b){return a.aoColumns[b].nTf},1)});s("columns().data()","column().data()",function(){return this.iterator("column-rows",Xb,1)});s("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].mData},1)});s("columns().cache()","column().cache()",function(a){return this.iterator("column-rows",function(b,c,d,e,f){return ia(b.aoData,f,"search"===a?"_aFilterData":"_aSortData",c)},1)});s("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",
function(a,b,c,d,e){return ia(a.aoData,e,"anCells",b)},1)});s("columns().visible()","column().visible()",function(a,b){return this.iterator("column",function(c,d){if(a===k)return c.aoColumns[d].bVisible;var e=c.aoColumns,f=e[d],h=c.aoData,i,j,n;if(a!==k&&f.bVisible!==a){if(a){var l=g.inArray(!0,D(e,"bVisible"),d+1);i=0;for(j=h.length;id;return!0};m.isDataTable=m.fnIsDataTable=function(a){var b=g(a).get(0),c=!1;g.each(m.settings,function(a,e){var f=e.nScrollHead?g("table",e.nScrollHead)[0]:null,h=e.nScrollFoot?g("table",e.nScrollFoot)[0]:null;if(e.nTable===b||f===b||h===b)c=!0});return c};m.tables=m.fnTables=function(a){var b=!1;g.isPlainObject(a)&&(b=
a.api,a=a.visible);var c=g.map(m.settings,function(b){if(!a||a&&g(b.nTable).is(":visible"))return b.nTable});return b?new t(c):c};m.util={throttle:ua,escapeRegex:va};m.camelToHungarian=I;p("$()",function(a,b){var c=this.rows(b).nodes(),c=g(c);return g([].concat(c.filter(a).toArray(),c.find(a).toArray()))});g.each(["on","one","off"],function(a,b){p(b+"()",function(){var a=Array.prototype.slice.call(arguments);a[0].match(/\.dt\b/)||(a[0]+=".dt");var d=g(this.tables().nodes());d[b].apply(d,a);return this})});
p("clear()",function(){return this.iterator("table",function(a){oa(a)})});p("settings()",function(){return new t(this.context,this.context)});p("init()",function(){var a=this.context;return a.length?a[0].oInit:null});p("data()",function(){return this.iterator("table",function(a){return D(a.aoData,"_aData")}).flatten()});p("destroy()",function(a){a=a||!1;return this.iterator("table",function(b){var c=b.nTableWrapper.parentNode,d=b.oClasses,e=b.nTable,f=b.nTBody,h=b.nTHead,i=b.nTFoot,j=g(e),f=g(f),
k=g(b.nTableWrapper),l=g.map(b.aoData,function(a){return a.nTr}),p;b.bDestroying=!0;w(b,"aoDestroyCallback","destroy",[b]);a||(new t(b)).columns().visible(!0);k.unbind(".DT").find(":not(tbody *)").unbind(".DT");g(Fa).unbind(".DT-"+b.sInstance);e!=h.parentNode&&(j.children("thead").detach(),j.append(h));i&&e!=i.parentNode&&(j.children("tfoot").detach(),j.append(i));b.aaSorting=[];b.aaSortingFixed=[];xa(b);g(l).removeClass(b.asStripeClasses.join(" "));g("th, td",h).removeClass(d.sSortable+" "+d.sSortableAsc+
" "+d.sSortableDesc+" "+d.sSortableNone);b.bJUI&&(g("th span."+d.sSortIcon+", td span."+d.sSortIcon,h).detach(),g("th, td",h).each(function(){var a=g("div."+d.sSortJUIWrapper,this);g(this).append(a.contents());a.detach()}));f.children().detach();f.append(l);h=a?"remove":"detach";j[h]();k[h]();!a&&c&&(c.insertBefore(e,b.nTableReinsertBefore),j.css("width",b.sDestroyWidth).removeClass(d.sTable),(p=b.asDestroyStripes.length)&&f.children().each(function(a){g(this).addClass(b.asDestroyStripes[a%p])}));
c=g.inArray(b,m.settings);-1!==c&&m.settings.splice(c,1)})});g.each(["column","row","cell"],function(a,b){p(b+"s().every()",function(a){return this.iterator(b,function(d,e,f,g,i){a.call((new t(d))[b](e,"cell"===b?f:k),e,f,g,i)})})});p("i18n()",function(a,b,c){var d=this.context[0],a=P(a)(d.oLanguage);a===k&&(a=b);c!==k&&g.isPlainObject(a)&&(a=a[c]!==k?a[c]:a._);return a.replace("%d",c)});m.version="1.10.8";m.settings=[];m.models={};m.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0};
m.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1};m.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,
sWidth:null,sWidthOrig:null};m.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(a){return a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,
this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(a){try{return JSON.parse((-1===a.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+a.sInstance+"_"+location.pathname))}catch(b){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(a,b){try{(-1===a.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+a.sInstance+
"_"+location.pathname,JSON.stringify(b))}catch(c){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",
sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:g.extend({},m.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"};
X(m.defaults);m.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};X(m.defaults.column);m.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,
bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],
aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:k,oAjaxData:k,fnServerData:null,aoServerParams:[],
sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==z(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==z(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var a=this._iDisplayLength,
b=this._iDisplayStart,c=b+a,d=this.aiDisplay.length,e=this.oFeatures,f=e.bPaginate;return e.bServerSide?!1===f||-1===a?b+d:Math.min(b+a,this._iRecordsDisplay):!f||c>d||-1===a?d:c},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null};m.ext=v={buttons:{},classes:{},errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],
search:{},order:{}},_unique:0,fnVersionCheck:m.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:m.version};g.extend(v,{afnFiltering:v.search,aTypes:v.type.detect,ofnSearch:v.type.search,oSort:v.type.order,afnSortData:v.order,aoFeatures:v.feature,oApi:v.internal,oStdClasses:v.classes,oPagination:v.pager});g.extend(m.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",
sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",
sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Ea="",Ea="",G=Ea+"ui-state-default",ja=Ea+"css_right ui-icon ui-icon-",Yb=Ea+"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix";g.extend(m.ext.oJUIClasses,m.ext.classes,{sPageButton:"fg-button ui-button "+
G,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:G+" sorting_asc",sSortDesc:G+" sorting_desc",sSortable:G+" sorting",sSortableAsc:G+" sorting_asc_disabled",sSortableDesc:G+" sorting_desc_disabled",sSortableNone:G+" sorting_disabled",sSortJUIAsc:ja+"triangle-1-n",sSortJUIDesc:ja+"triangle-1-s",sSortJUI:ja+"carat-2-n-s",sSortJUIAscAllowed:ja+"carat-1-n",sSortJUIDescAllowed:ja+
"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+G,sScrollFoot:"dataTables_scrollFoot "+G,sHeaderTH:G,sFooterTH:G,sJUIHeader:Yb+" ui-corner-tl ui-corner-tr",sJUIFooter:Yb+" ui-corner-bl ui-corner-br"});var Nb=m.ext.pager;g.extend(Nb,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(a,b){return[Aa(a,b)]},simple_numbers:function(a,b){return["previous",Aa(a,
b),"next"]},full_numbers:function(a,b){return["first","previous",Aa(a,b),"next","last"]},_numbers:Aa,numbers_length:7});g.extend(!0,m.ext.renderer,{pageButton:{_:function(a,b,c,d,e,f){var h=a.oClasses,i=a.oLanguage.oPaginate,j,k,l=0,m=function(b,d){var p,q,t,s,u=function(b){Ua(a,b.data.action,true)};p=0;for(q=d.length;p ").appendTo(b);m(t,s)}else{j=null;k="";switch(s){case "ellipsis":b.append('… ');break;
case "first":j=i.sFirst;k=s+(e>0?"":" "+h.sPageButtonDisabled);break;case "previous":j=i.sPrevious;k=s+(e>0?"":" "+h.sPageButtonDisabled);break;case "next":j=i.sNext;k=s+(e",{"class":h.sPageButton+" "+k,"aria-controls":a.sTableId,"data-dt-idx":l,tabindex:a.iTabIndex,id:c===0&&typeof s==="string"?a.sTableId+"_"+s:null}).html(j).appendTo(b);
Wa(t,{action:s},u);l++}}}},p;try{p=g(b).find(T.activeElement).data("dt-idx")}catch(t){}m(g(b).empty(),d);p&&g(b).find("[data-dt-idx="+p+"]").focus()}}});g.extend(m.ext.type.detect,[function(a,b){var c=b.oLanguage.sDecimal;return Za(a,c)?"num"+c:null},function(a){if(a&&!(a instanceof Date)&&(!bc.test(a)||!cc.test(a)))return null;var b=Date.parse(a);return null!==b&&!isNaN(b)||K(a)?"date":null},function(a,b){var c=b.oLanguage.sDecimal;return Za(a,c,!0)?"num-fmt"+c:null},function(a,b){var c=b.oLanguage.sDecimal;
return Sb(a,c)?"html-num"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Sb(a,c,!0)?"html-num-fmt"+c:null},function(a){return K(a)||"string"===typeof a&&-1!==a.indexOf("<")?"html":null}]);g.extend(m.ext.type.search,{html:function(a){return K(a)?a:"string"===typeof a?a.replace(Pb," ").replace(Ca,""):""},string:function(a){return K(a)?a:"string"===typeof a?a.replace(Pb," "):a}});var Ba=function(a,b,c,d){if(0!==a&&(!a||"-"===a))return-Infinity;b&&(a=Rb(a,b));a.replace&&(c&&(a=a.replace(c,"")),
d&&(a=a.replace(d,"")));return 1*a};g.extend(v.type.order,{"date-pre":function(a){return Date.parse(a)||0},"html-pre":function(a){return K(a)?"":a.replace?a.replace(/<.*?>/g,"").toLowerCase():a+""},"string-pre":function(a){return K(a)?"":"string"===typeof a?a.toLowerCase():!a.toString?"":a.toString()},"string-asc":function(a,b){return ab?1:0},"string-desc":function(a,b){return ab?-1:0}});db("");g.extend(!0,m.ext.renderer,{header:{_:function(a,b,c,d){g(a.nTable).on("order.dt.DT",function(e,
f,g,i){if(a===f){e=c.idx;b.removeClass(c.sSortingClass+" "+d.sSortAsc+" "+d.sSortDesc).addClass(i[e]=="asc"?d.sSortAsc:i[e]=="desc"?d.sSortDesc:c.sSortingClass)}})},jqueryui:function(a,b,c,d){g("
").addClass(d.sSortJUIWrapper).append(b.contents()).append(g(" ").addClass(d.sSortIcon+" "+c.sSortingClassJUI)).appendTo(b);g(a.nTable).on("order.dt.DT",function(e,f,g,i){if(a===f){e=c.idx;b.removeClass(d.sSortAsc+" "+d.sSortDesc).addClass(i[e]=="asc"?d.sSortAsc:i[e]=="desc"?d.sSortDesc:c.sSortingClass);
b.find("span."+d.sSortIcon).removeClass(d.sSortJUIAsc+" "+d.sSortJUIDesc+" "+d.sSortJUI+" "+d.sSortJUIAscAllowed+" "+d.sSortJUIDescAllowed).addClass(i[e]=="asc"?d.sSortJUIAsc:i[e]=="desc"?d.sSortJUIDesc:c.sSortingClassJUI)}})}}});m.render={number:function(a,b,c,d,e){return{display:function(f){if("number"!==typeof f&&"string"!==typeof f)return f;var g=0>f?"-":"",f=Math.abs(parseFloat(f)),i=parseInt(f,10),f=c?b+(f-i).toFixed(c).substring(2):"";return g+(d||"")+i.toString().replace(/\B(?=(\d{3})+(?!\d))/g,
a)+f+(e||"")}}}};g.extend(m.ext.internal,{_fnExternApiFunc:Ob,_fnBuildAjax:ra,_fnAjaxUpdate:lb,_fnAjaxParameters:ub,_fnAjaxUpdateDraw:vb,_fnAjaxDataSrc:sa,_fnAddColumn:Ga,_fnColumnOptions:ka,_fnAdjustColumnSizing:Y,_fnVisibleToColumnIndex:la,_fnColumnIndexToVisible:aa,_fnVisbleColumns:ba,_fnGetColumns:$,_fnColumnTypes:Ia,_fnApplyColumnDefs:ib,_fnHungarianMap:X,_fnCamelToHungarian:I,_fnLanguageCompat:S,_fnBrowserDetect:gb,_fnAddData:L,_fnAddTr:ma,_fnNodeToDataIndex:function(a,b){return b._DT_RowIndex!==
k?b._DT_RowIndex:null},_fnNodeToColumnIndex:function(a,b,c){return g.inArray(c,a.aoData[b].anCells)},_fnGetCellData:y,_fnSetCellData:Ja,_fnSplitObjNotation:La,_fnGetObjectDataFn:P,_fnSetObjectDataFn:Q,_fnGetDataMaster:Ma,_fnClearTable:oa,_fnDeleteIndex:pa,_fnInvalidate:da,_fnGetRowElements:na,_fnCreateTr:Ka,_fnBuildHead:kb,_fnDrawHead:fa,_fnDraw:M,_fnReDraw:R,_fnAddOptionsHtml:nb,_fnDetectHeader:ea,_fnGetUniqueThs:qa,_fnFeatureHtmlFilter:pb,_fnFilterComplete:ga,_fnFilterCustom:yb,_fnFilterColumn:xb,
_fnFilter:wb,_fnFilterCreateSearch:Ra,_fnEscapeRegex:va,_fnFilterData:zb,_fnFeatureHtmlInfo:sb,_fnUpdateInfo:Cb,_fnInfoMacros:Db,_fnInitialise:ha,_fnInitComplete:ta,_fnLengthChange:Sa,_fnFeatureHtmlLength:ob,_fnFeatureHtmlPaginate:tb,_fnPageChange:Ua,_fnFeatureHtmlProcessing:qb,_fnProcessingDisplay:C,_fnFeatureHtmlTable:rb,_fnScrollDraw:Z,_fnApplyToChildren:H,_fnCalculateColumnWidths:Ha,_fnThrottle:ua,_fnConvertToWidth:Fb,_fnGetWidestNode:Gb,_fnGetMaxLenString:Hb,_fnStringToCss:u,_fnScrollBarWidth:Ib,
_fnSortFlatten:V,_fnSort:mb,_fnSortAria:Kb,_fnSortListener:Va,_fnSortAttachListener:Pa,_fnSortingClasses:xa,_fnSortData:Jb,_fnSaveState:ya,_fnLoadState:Lb,_fnSettingsFromNode:za,_fnLog:J,_fnMap:F,_fnBindAction:Wa,_fnCallbackReg:A,_fnCallbackFire:w,_fnLengthOverflow:Ta,_fnRenderer:Qa,_fnDataSource:z,_fnRowAttributes:Na,_fnCalculateEnd:function(){}});g.fn.dataTable=m;g.fn.dataTableSettings=m.settings;g.fn.dataTableExt=m.ext;g.fn.DataTable=function(a){return g(this).dataTable(a).api()};g.each(m,function(a,
b){g.fn.DataTable[a]=b});return g.fn.dataTable};"function"===typeof define&&define.amd?define("datatables",["jquery"],S):"object"===typeof exports?module.exports=S(require("jquery")):jQuery&&!jQuery.fn.dataTable&&S(jQuery)})(window,document);
;/*!
Responsive 1.0.7
2014-2015 SpryMedia Ltd - datatables.net/license
*/
(function(n,p){var o=function(e,k){var h=function(d,a){if(!k.versionCheck||!k.versionCheck("1.10.1"))throw"DataTables Responsive requires DataTables 1.10.1 or newer";this.s={dt:new k.Api(d),columns:[]};this.s.dt.settings()[0].responsive||(a&&"string"===typeof a.details&&(a.details={type:a.details}),this.c=e.extend(!0,{},h.defaults,k.defaults.responsive,a),d.responsive=this,this._constructor())};h.prototype={_constructor:function(){var d=this,a=this.s.dt;a.settings()[0]._responsive=this;e(n).on("resize.dtr orientationchange.dtr",a.settings()[0].oApi._fnThrottle(function(){d._resize()}));a.on("destroy.dtr",function(){e(n).off("resize.dtr orientationchange.dtr draw.dtr")});this.c.breakpoints.sort(function(a,c){return a.widthc.width?-1:0});this._classLogic();this._resizeAuto();var c=this.c.details;c.type&&(d._detailsInit(),this._detailsVis(),a.on("column-visibility.dtr",function(){d._detailsVis()}),a.on("draw.dtr",function(){a.rows({page:"current"}).iterator("row",function(b,c){var f=a.row(c);if(f.child.isShown()){var i=d.c.details.renderer(a,c);f.child(i,"child").show()}})}),e(a.table().node()).addClass("dtr-"+c.type));this._resize()},_columnsVisiblity:function(d){var a=this.s.dt,c=this.s.columns,b,g,f=e.map(c,function(a){return a.auto&&null===a.minWidth?!1:!0===a.auto?"-":-1!==e.inArray(d,a.includeIn)}),i=0;b=0;for(g=f.length;ba-c[b].minWidth?(i=!0,f[b]=!1):f[b]=!0,a-=c[b].minWidth);a=!1;b=0;for(g=c.length;b=j&&b(f,a[g].name)}else{if("not-"===e){g=0;for(e=a.length;g").append(f).appendTo(b);"inline"===this.c.details.type&&e(c).addClass("dtr-inline collapsed");c=e("
").css({width:1,height:1,overflow:"hidden"}).append(c);c.find("th.never, td.never").remove();c.insertBefore(d.table().node());d.columns().eq(0).each(function(b){a[b].minWidth=f[b].offsetWidth||0});c.remove()}}};h.breakpoints=[{name:"desktop",width:Infinity},{name:"tablet-l",width:1024},{name:"tablet-p",width:768},{name:"mobile-l",width:480},{name:"mobile-p",width:320}];h.defaults={breakpoints:h.breakpoints,auto:!0,details:{renderer:function(d,a){var c=d.cells(a,":hidden").eq(0).map(function(a){var c=e(d.column(a.column).header()),a=d.cell(a).index();if(c.hasClass("control")||c.hasClass("never"))return"";var f=d.settings()[0],f=f.oApi._fnGetCellData(f,a.row,a.column,"display");(c=c.text())&&(c+=":");return''+c+' '+f+" "}).toArray().join("");return c?e('').append(c):!1},target:0,type:"inline"}};var m=e.fn.dataTable.Api;m.register("responsive()",function(){return this});m.register("responsive.index()",function(d){d=e(d);return{column:d.data("dtr-index"),row:d.parent().data("dtr-index")}});m.register("responsive.rebuild()",function(){return this.iterator("table",function(d){d._responsive&&d._responsive._classLogic()})});m.register("responsive.recalc()",function(){return this.iterator("table",function(d){d._responsive&&(d._responsive._resizeAuto(),d._responsive._resize())})});h.version="1.0.7";e.fn.dataTable.Responsive=h;e.fn.DataTable.Responsive=h;e(p).on("init.dt.dtr",function(d,a){if("dt"===d.namespace&&(e(a.nTable).hasClass("responsive")||e(a.nTable).hasClass("dt-responsive")||a.oInit.responsive||k.defaults.responsive)){var c=a.oInit.responsive;!1!==c&&new h(a,e.isPlainObject(c)?c:{})}});return h};"function"===typeof define&&define.amd?define(["jquery","datatables"],o):"object"===typeof exports?o(require("jquery"),require("datatables")):jQuery&&!jQuery.fn.dataTable.Responsive&&o(jQuery,jQuery.fn.dataTable)})(window,document);;var MYMAP=new Array();var wpgmzaTable=new Array();var directionsDisplay=new Array();var directionsService=new Array();var infoWindow=new Array();var store_locator_marker=new Array();var cityCircle=new Array();var infoWindow_poly=new Array();var polygon_center=new Array();var WPGM_Path_Polygon=new Array();var WPGM_Path=new Array();var marker_array=new Array();var marker_array2=new Array();var marker_sl_array=new Array();var wpgmza_controls_active=new Array();var wpgmza_adv_styling_json=new Array();var lazyload;var autoplay;var items;var default_items;var pagination;var navigation;var modern_iw_open=new Array();var markerClusterer=new Array();var original_iw;var wpgmza_iw_Div=new Array();var autocomplete=new Array();var retina=window.devicePixelRatio>1;var click_from_list=false;var wpgmza_user_marker=null;autoheight=true;autoplay=6000;lazyload=true;pagination=false;navigation=true;items=6;if(typeof Array.prototype.forEach!='function'){Array.prototype.forEach=function(callback){for(var i=0;ijQuery troubleshooting section of our site for more information.';},5000);}}
var wpgmza_retina_width;var wpgmza_retina_height;if("undefined"!==typeof wpgmaps_localize_global_settings['wpgmza_settings_retina_width']){wpgmza_retina_width=parseInt(wpgmaps_localize_global_settings['wpgmza_settings_retina_width']);}else{wpgmza_retina_width=31;}
if("undefined"!==typeof wpgmaps_localize_global_settings['wpgmza_settings_retina_height']){wpgmza_retina_height=parseInt(wpgmaps_localize_global_settings['wpgmza_settings_retina_height']);}else{wpgmza_retina_height=45;}
var user_location;function InitMap(map_id,cat_id,reinit){modern_iw_open[map_id]=false
if('undefined'!==typeof wpgmaps_localize_shortcode_data){if(wpgmaps_localize_shortcode_data[map_id]['lat']!==false&&wpgmaps_localize_shortcode_data[map_id]['lng']!==false){wpgmaps_localize[map_id]['map_start_lat']=wpgmaps_localize_shortcode_data[map_id]['lat'];wpgmaps_localize[map_id]['map_start_lng']=wpgmaps_localize_shortcode_data[map_id]['lng'];}}
if('undefined'===cat_id||cat_id===''||!cat_id||cat_id===0||cat_id==="0"){cat_id='all';}
var myLatLng=new window.google.maps.LatLng(wpgmaps_localize[map_id]['map_start_lat'],wpgmaps_localize[map_id]['map_start_lng']);google=window.google;if(reinit===false){MYMAP[map_id].init("#wpgmza_map_"+map_id,myLatLng,parseInt(wpgmaps_localize[map_id]['map_start_zoom']),wpgmaps_localize[map_id]['type'],map_id);}
UniqueCode=Math.round(Math.random()*10000);if('undefined'!==typeof wpgmaps_localize_shortcode_data){if(wpgmaps_localize_shortcode_data[map_id]['lat']!==false&&wpgmaps_localize_shortcode_data[map_id]['lng']!==false){var point=new google.maps.LatLng(parseFloat(wpgmaps_localize_shortcode_data[map_id]['lat']),parseFloat(wpgmaps_localize_shortcode_data[map_id]['lng']));var marker=new google.maps.Marker({position:point,map:MYMAP[map_id].map});}}else{if(typeof wpgmaps_map_mashup[map_id]!=="undefined"&&wpgmaps_map_mashup[map_id]===true){wpgmaps_localize_mashup_ids[map_id].forEach(function(entry_mashup){if(typeof wpgmaps_localize[map_id]['other_settings']['store_locator_hide_before_search']!=="undefined"&&wpgmaps_localize[map_id]['other_settings']['store_locator_hide_before_search']===1){MYMAP[map_id].placeMarkers(wpgmaps_markerurl+entry_mashup+'markers.xml?u='+UniqueCode,map_id,cat_id,null,null,null,null,false);}else if(typeof wpgmaps_localize[map_id]['other_settings']['store_locator_hide_before_search']!=="undefined"&&wpgmaps_localize[map_id]['other_settings']['store_locator_hide_before_search']===2){MYMAP[map_id].placeMarkers(wpgmaps_markerurl+entry_mashup+'markers.xml?u='+UniqueCode,map_id,cat_id,null,null,null,null,true);}else if(typeof wpgmaps_localize[map_id]['other_settings']['store_locator_hide_before_search']==="undefined"){MYMAP[map_id].placeMarkers(wpgmaps_markerurl+entry_mashup+'markers.xml?u='+UniqueCode,map_id,cat_id,null,null,null,null,true);}else{MYMAP[map_id].placeMarkers(wpgmaps_markerurl+entry_mashup+'markers.xml?u='+UniqueCode,map_id,cat_id,null,null,null,null,true);}});}else{if(typeof wpgmaps_localize[map_id]['other_settings']['store_locator_hide_before_search']!=="undefined"&&wpgmaps_localize[map_id]['other_settings']['store_locator_hide_before_search']===1){MYMAP[map_id].placeMarkers(wpgmaps_markerurl+map_id+'markers.xml?u='+UniqueCode,map_id,cat_id,null,null,null,null,false);}else if(typeof wpgmaps_localize[map_id]['other_settings']['store_locator_hide_before_search']!=="undefined"&&wpgmaps_localize[map_id]['other_settings']['store_locator_hide_before_search']===2){MYMAP[map_id].placeMarkers(wpgmaps_markerurl+map_id+'markers.xml?u='+UniqueCode,map_id,cat_id,null,null,null,null,true);}else if(typeof wpgmaps_localize[map_id]['other_settings']['store_locator_hide_before_search']==="undefined"){MYMAP[map_id].placeMarkers(wpgmaps_markerurl+map_id+'markers.xml?u='+UniqueCode,map_id,cat_id,null,null,null,null,true);}else{MYMAP[map_id].placeMarkers(wpgmaps_markerurl+map_id+'markers.xml?u='+UniqueCode,map_id,cat_id,null,null,null,null,true);}}}};function resetLocations(map_id){if(typeof jQuery("#addressInput_"+map_id)==="object"){jQuery("#addressInput_"+map_id).val('');}
if(typeof jQuery("#nameInput_"+map_id)==="object"){jQuery("#nameInput_"+map_id).val('');}
reset_marker_lists(map_id);InitMap(map_id,'all',true);MYMAP[map_id].map.setZoom(parseInt(wpgmaps_localize[map_id]['map_start_zoom']));}
function fillInAddress(mid){var place=autocomplete[mid].getPlace();}
for(var entry in wpgmaps_localize){var curmid=wpgmaps_localize[entry]['id'];var elementExists=document.getElementById('addressInput_'+curmid);var wpgmza_input_to_exists=document.getElementById('wpgmza_input_to_'+curmid);var wpgmza_input_from_exists=document.getElementById('wpgmza_input_from_'+curmid);if(typeof google==='object'&&typeof google.maps==='object'&&typeof google.maps.places==='object'&&typeof google.maps.places.Autocomplete==='function'){if(elementExists!==null){if(typeof wpgmaps_localize[curmid]['other_settings']['wpgmza_store_locator_restrict']!=="undefined"&&wpgmaps_localize[curmid]['other_settings']['wpgmza_store_locator_restrict']!=""){autocomplete[curmid]=new google.maps.places.Autocomplete((document.getElementById('addressInput_'+curmid)),{types:['geocode'],componentRestrictions:{country:wpgmaps_localize[curmid]['other_settings']['wpgmza_store_locator_restrict']}});google.maps.event.addListener(autocomplete[curmid],'place_changed',function(){fillInAddress(curmid);});}else{autocomplete[curmid]=new google.maps.places.Autocomplete((document.getElementById('addressInput_'+curmid)),{types:['geocode']});google.maps.event.addListener(autocomplete[curmid],'place_changed',function(){fillInAddress(curmid);});}}
if(wpgmza_input_to_exists!==null){autocomplete[curmid]=new google.maps.places.Autocomplete((document.getElementById('wpgmza_input_to_'+curmid)),{types:['geocode']});google.maps.event.addListener(autocomplete[curmid],'place_changed',function(){fillInAddress(curmid);});}
if(wpgmza_input_from_exists!==null){autocomplete[curmid]=new google.maps.places.Autocomplete((document.getElementById('wpgmza_input_from_'+curmid)),{types:['geocode']});google.maps.event.addListener(autocomplete[curmid],'place_changed',function(){fillInAddress(curmid);});}}
document.getElementById('wpgmza_map_'+wpgmaps_localize[entry]['id']).innerHTML='Error: In order for WP Google Maps to work, jQuery must be installed. A check was done and jQuery was not present. Please see the jQuery troubleshooting section of our site for more information.';}
function searchLocations(map_id){if(document.getElementById("addressInput_"+map_id)===null){var address=null;}else{var address=document.getElementById("addressInput_"+map_id).value;}
if(document.getElementById("nameInput_"+map_id)===null){var search_title=null;}else{var search_title=document.getElementById("nameInput_"+map_id).value;}
var checkedCatValues=jQuery('.wpgmza_checkbox:checked').map(function(){return this.value;}).get();if(checkedCatValues===""||checkedCatValues.length<1||checkedCatValues===0||checkedCatValues==="0"){checkedCatValues='all';}
if(address===null||address===""){var map_center=MYMAP[map_id].map.getCenter();searchLocationsNear(map_id,checkedCatValues,map_center,search_title);}else{checker=address.split(",");var wpgm_lat="";var wpgm_lng="";wpgm_lat=checker[0];wpgm_lng=checker[1];checker1=parseFloat(checker[0]);checker2=parseFloat(checker[1]);var geocoder=new google.maps.Geocoder();if(typeof wpgmaps_localize[map_id]['other_settings']['wpgmza_store_locator_restrict']!=="undefined"&&wpgmaps_localize[map_id]['other_settings']['wpgmza_store_locator_restrict']!=""){if((wpgm_lat.match(/[a-zA-Z]/g)===null&&wpgm_lng.match(/[a-zA-Z]/g)===null)&&checker.length===2&&(checker1!=NaN&&(checker1<=90||checker1>=-90))&&(checker2!=NaN&&(checker2<=90||checker2>=-90))){var point=new google.maps.LatLng(parseFloat(wpgm_lat),parseFloat(wpgm_lng));searchLocationsNear(map_id,checkedCatValues,point,search_title);}
else{geocoder.geocode({address:address,componentRestrictions:{country:wpgmaps_localize[map_id]['other_settings']['wpgmza_store_locator_restrict']}},function(results,status){if(status==google.maps.GeocoderStatus.OK){searchLocationsNear(map_id,checkedCatValues,results[0].geometry.location,search_title);}else{alert(address+' not found');}});}}else{if((typeof wpgm_lng!=="undefined"&&wpgm_lat.match(/[a-zA-Z]/g)===null&&wpgm_lng.match(/[a-zA-Z]/g)===null)&&checker.length===2&&(checker1!=NaN&&(checker1<=90||checker1>=-90))&&(checker2!=NaN&&(checker2<=90||checker2>=-90))){var point=new google.maps.LatLng(parseFloat(wpgm_lat),parseFloat(wpgm_lng));searchLocationsNear(map_id,checkedCatValues,point,search_title);}
else{geocoder.geocode({address:address},function(results,status){if(status==google.maps.GeocoderStatus.OK){searchLocationsNear(map_id,checkedCatValues,results[0].geometry.location,search_title);}else{alert(address+' not found');}});}}}}
function clearLocations(){infoWindow.forEach(function(entry,index){infoWindow[index].close();});}
function searchLocationsNear(mapid,category,center_searched,search_title){clearLocations();var distance_type=document.getElementById("wpgmza_distance_type_"+mapid).value;var radius=document.getElementById('radiusSelect_'+mapid).value;if(parseInt(category)===0){category='all';}
if(category==="0"){category='all';}
if(category==="Not found"){category='all';}
if(category===null){category='all';}
if(category.length<1){category='all';}
if(distance_type==="1"){if(radius==="1"){zoomie=14;}
else if(radius==="5"){zoomie=12;}
else if(radius==="10"){zoomie=11;}
else if(radius==="25"){zoomie=9;}
else if(radius==="50"){zoomie=8;}
else if(radius==="75"){zoomie=8;}
else if(radius==="100"){zoomie=7;}
else if(radius==="150"){zoomie=7;}
else if(radius==="200"){zoomie=6;}
else if(radius==="300"){zoomie=6;}
else{zoomie=14;}}else{if(radius==="1"){zoomie=14;}
else if(radius==="5"){zoomie=12;}
else if(radius==="10"){zoomie=11;}
else if(radius==="25"){zoomie=10;}
else if(radius==="50"){zoomie=9;}
else if(radius==="75"){zoomie=9;}
else if(radius==="100"){zoomie=8;}
else if(radius==="150"){zoomie=8;}
else if(radius==="200"){zoomie=7;}
else if(radius==="300"){zoomie=7;}
else{zoomie=14;}}
MYMAP[mapid].map.setCenter(center_searched);MYMAP[mapid].map.setZoom(zoomie);if(typeof wpgmaps_map_mashup[mapid]!=="undefined"&&wpgmaps_map_mashup[mapid]===true){wpgmaps_localize_mashup_ids[mapid].forEach(function(entry_mashup){MYMAP[mapid].placeMarkers(wpgmaps_markerurl+entry_mashup+'markers.xml?u='+UniqueCode,mapid,category,radius,center_searched,distance_type,search_title,true);});}else{MYMAP[mapid].placeMarkers(wpgmaps_markerurl+mapid+'markers.xml?u='+UniqueCode,mapid,category,radius,center_searched,distance_type,search_title,true);}
if(jQuery("#wpgmza_marker_holder_"+mapid).length>0){jQuery("#wpgmza_marker_holder_"+mapid).show();}
if(jQuery('#wpgmza_marker_list_container_'+wpgmaps_localize[entry]['id']).length>0){jQuery('#wpgmza_marker_list_container_'+wpgmaps_localize[entry]['id']).show();}}
function toRad(Value){return Value*Math.PI/180;}
function wpgmza_getUrlVars(){var vars={};var parts=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(m,key,value){vars[key]=value;});return vars;}
var wpgmza_open_marker=wpgmza_getUrlVars()["markerid"];var wpgmza_open_marker_zoom=wpgmza_getUrlVars()["mzoom"];function wpgmza_reinitialisetbl(map_id){jQuery('#wpgmza_marker_holder_'+map_id).show();if(wpgmaps_localize[map_id]['order_markers_by']==="1"){wpgmaps_order_by=parseInt(0);}
else if(wpgmaps_localize[map_id]['order_markers_by']==="2"){wpgmaps_order_by=parseInt(2);}
else if(wpgmaps_localize[map_id]['order_markers_by']==="3"){wpgmaps_order_by=parseInt(4);}
else if(wpgmaps_localize[map_id]['order_markers_by']==="4"){wpgmaps_order_by=parseInt(5);}
else if(wpgmaps_localize[map_id]['order_markers_by']==="5"){wpgmaps_order_by=parseInt(3);}
else{wpgmaps_order_by=0;}
if(wpgmaps_localize[map_id]['order_markers_choice']==="1"){wpgmaps_order_by_choice="asc";}
else{wpgmaps_order_by_choice="desc";}
wpgmzaTable[map_id].fnClearTable(0);wpgmzaTable[map_id]=jQuery('#wpgmza_table_'+map_id).DataTable({"bProcessing":true,"aaSorting":[],responsive:true,"iDisplayLength":wpgmza_settings_default_items,"oLanguage":{"sLengthMenu":wpgm_dt_sLengthMenu,"sZeroRecords":wpgm_dt_sZeroRecords,"sInfo":wpgm_dt_sInfo,"sInfoEmpty":wpgm_dt_sInfoEmpty,"sInfoFiltered":wpgm_dt_sInfoFiltered,"sSearch":wpgm_dt_sSearch,"oPaginate":{"sFirst":wpgm_dt_sFirst,"sLast":wpgm_dt_sLast,"sNext":wpgm_dt_sNext,"sPrevious":wpgm_dt_sPrevious,"sSearch":wpgm_dt_sSearch}}});}
function wpgmza_filter_marker_lists_by_array(map_id,marker_sl_array){if(typeof jQuery("#wpgmza_table_"+map_id)==="object"){var data={action:'wpgmza_datatables_sl',security:wpgmaps_pro_nonce,map_id:map_id,marker_array:marker_sl_array};jQuery.post(ajaxurl,data,function(response){jQuery("#wpgmza_marker_holder_"+map_id+"").html(response);wpgmzaTable[map_id]=jQuery('#wpgmza_table_'+map_id).DataTable({"bDestroy":true,responsive:true,"iDisplayLength":wpgmza_settings_default_items,"bProcessing":true,"aaSorting":[],"oLanguage":{"sLengthMenu":wpgm_dt_sLengthMenu,"sZeroRecords":wpgm_dt_sZeroRecords,"sInfo":wpgm_dt_sInfo,"sInfoEmpty":wpgm_dt_sInfoEmpty,"sInfoFiltered":wpgm_dt_sInfoFiltered,"sSearch":wpgm_dt_sSearch,"oPaginate":{"sFirst":wpgm_dt_sFirst,"sLast":wpgm_dt_sLast,"sNext":wpgm_dt_sNext,"sPrevious":wpgm_dt_sPrevious,"sSearch":wpgm_dt_sSearch}}});});}
if(typeof jQuery("#wpgmza_marker_list_container_"+map_id)==="object"&&jQuery("#wpgmza_marker_list_container_"+map_id).length>0){if(jQuery("#wpgmza_marker_list_container_"+map_id).hasClass('wpgmza_marker_carousel')){var data={action:'wpgmza_sl_carousel',security:wpgmaps_pro_nonce,map_id:map_id,marker_array:marker_sl_array};jQuery.post(ajaxurl,data,function(response){items=default_items;jQuery("#wpgmza_marker_list_container_"+map_id+"").html(response);if(marker_sl_array.length0){if(jQuery("#wpgmza_marker_list_"+wpgmza_map_id).hasClass('wpgmza_marker_carousel')){if(selectedValue===0||selectedValue==="All"||selectedValue==="0"){var data={action:'wpgmza_carousel_update',security:wpgmaps_pro_nonce,map_id:wpgmza_map_id,category_data:'all'};}else{var data={action:'wpgmza_carousel_update',security:wpgmaps_pro_nonce,map_id:wpgmza_map_id,category_data:selectedValue};}
jQuery.post(ajaxurl,data,function(response){jQuery("#wpgmza_marker_list_container_"+wpgmza_map_id+"").html(response);jQuery("#wpgmza_marker_list_"+wpgmza_map_id+"").owlCarousel({autoPlay:autoplay,lazyLoad:lazyload,autoHeight:autoheight,pagination:pagination,navigation:navigation,items:items});});}else if(jQuery("#wpgmza_marker_list_"+wpgmza_map_id).hasClass('wpgmza_basic_list')){if(selectedValue===0||selectedValue==="All"||selectedValue==="0"){var data={action:'wpgmza_basiclist_update',security:wpgmaps_pro_nonce,map_id:wpgmza_map_id,category_data:'all'};}else{var data={action:'wpgmza_basiclist_update',security:wpgmaps_pro_nonce,map_id:wpgmza_map_id,category_data:selectedValue};}
jQuery.post(ajaxurl,data,function(response){jQuery("#wpgmza_marker_list_"+wpgmza_map_id+"").html(response);});}else{if(selectedValue===0||selectedValue==="All"||selectedValue==="0"){var data={action:'wpgmza_basictable_update',security:wpgmaps_pro_nonce,map_id:wpgmza_map_id,category_data:'all'};}else{var data={action:'wpgmza_basictable_update',security:wpgmaps_pro_nonce,map_id:wpgmza_map_id,category_data:selectedValue};}
jQuery.post(ajaxurl,data,function(response){jQuery("#wpgmza_marker_list_"+wpgmza_map_id+"").html(response);});}}}
function reset_marker_lists(wpgmza_map_id){if(typeof jQuery("#wpgmza_table_"+wpgmza_map_id)==="object"&&jQuery("#wpgmza_table_"+wpgmza_map_id).length>0){var data={action:'wpgmza_datatables',security:wpgmaps_pro_nonce,map_id:wpgmza_map_id,category_data:'all'};jQuery.post(ajaxurl,data,function(response){jQuery("#wpgmza_table_"+wpgmza_map_id+"").html(response);wpgmzaTable[wpgmza_map_id]=jQuery('#wpgmza_table_'+wpgmza_map_id).DataTable({"bDestroy":true,responsive:true,"iDisplayLength":wpgmza_settings_default_items,"bProcessing":true,"aaSorting":[],"oLanguage":{"sLengthMenu":wpgm_dt_sLengthMenu,"sZeroRecords":wpgm_dt_sZeroRecords,"sInfo":wpgm_dt_sInfo,"sInfoEmpty":wpgm_dt_sInfoEmpty,"sInfoFiltered":wpgm_dt_sInfoFiltered,"sSearch":wpgm_dt_sSearch,"oPaginate":{"sFirst":wpgm_dt_sFirst,"sLast":wpgm_dt_sLast,"sNext":wpgm_dt_sNext,"sPrevious":wpgm_dt_sPrevious,"sSearch":wpgm_dt_sSearch}}});});}
if(jQuery("#wpgmza_marker_list_"+wpgmza_map_id).length>0){if(jQuery("#wpgmza_marker_list_"+wpgmza_map_id).hasClass('wpgmza_marker_carousel')){var data={action:'wpgmza_carousel_update',security:wpgmaps_pro_nonce,map_id:wpgmza_map_id,category_data:'all'};jQuery.post(ajaxurl,data,function(response){jQuery("#wpgmza_marker_list_container_"+wpgmza_map_id+"").html(response);jQuery("#wpgmza_marker_list_"+wpgmza_map_id+"").owlCarousel({autoPlay:autoplay,lazyLoad:lazyload,autoHeight:autoheight,pagination:pagination,navigation:navigation,items:default_items});});}else if(jQuery("#wpgmza_marker_list_"+wpgmza_map_id).hasClass('wpgmza_basic_list')){var data={action:'wpgmza_basiclist_update',security:wpgmaps_pro_nonce,map_id:wpgmza_map_id,category_data:'all'};jQuery.post(ajaxurl,data,function(response){jQuery("#wpgmza_marker_list_"+wpgmza_map_id+"").html(response);});}else{var data={action:'wpgmza_basictable_update',security:wpgmaps_pro_nonce,map_id:wpgmza_map_id,category_data:'all'};jQuery.post(ajaxurl,data,function(response){jQuery("#wpgmza_marker_list_"+wpgmza_map_id+"").html(response);});}}}
jQuery(function(){jQuery(document).ready(function(){for(var entry in wpgmaps_localize){if("undefined"!==typeof wpgmaps_localize[entry]['other_settings']&&"undefined"!==typeof wpgmaps_localize[entry]['other_settings']['list_markers_by']&&wpgmaps_localize[entry]['other_settings']['list_markers_by']==="3"){if("undefined"!==typeof wpgmaps_localize_global_settings['carousel_lazyload']&&wpgmaps_localize_global_settings['carousel_lazyload']==="yes"){lazyload=true;}else{lazyload=false;}
if("undefined"===typeof wpgmaps_localize_global_settings['carousel_lazyload']){lazyload=true;}
if("undefined"!==typeof wpgmaps_localize_global_settings['carousel_autoplay']){autoplay=parseInt(wpgmaps_localize_global_settings['carousel_autoplay']);}else{autoplay=false;}
if("undefined"===typeof wpgmaps_localize_global_settings['carousel_autoplay']){autoplay=6000;}
if("undefined"!==typeof wpgmaps_localize_global_settings['carousel_autoheight']&&wpgmaps_localize_global_settings['carousel_autoheight']==="yes"){autoheight=true;}else{autoheight=false;}
if("undefined"===typeof wpgmaps_localize_global_settings['carousel_autoheight']){autoheight=true;}
if("undefined"!==typeof wpgmaps_localize_global_settings['carousel_pagination']&&wpgmaps_localize_global_settings['carousel_pagination']==="yes"){pagination=true;}else{pagination=false;}
if("undefined"===typeof wpgmaps_localize_global_settings['carousel_pagination']){pagination=false;}
if("undefined"!==typeof wpgmaps_localize_global_settings['carousel_navigation']&&wpgmaps_localize_global_settings['carousel_navigation']==="yes"){navigation=true;}else{navigation=false;}
if("undefined"===typeof wpgmaps_localize_global_settings['carousel_navigation']){navigation=true;}
if("undefined"!==typeof wpgmaps_localize_global_settings['carousel_items']){items=parseInt(wpgmaps_localize_global_settings['carousel_items']);}else{items=5;}
if("undefined"===typeof wpgmaps_localize_global_settings['carousel_items']){items=6;}
default_items=items;if(wpgmaps_localize[entry]['total_markers']Settings and check the box that allows you to over-ride your current jQuery to try eliminate this problem.';}}else{jQuery("body").on("click",".wpgmaps_mlist_row",function(){var wpgmza_markerid=jQuery(this).attr("mid");var wpgmza_mapid=jQuery(this).attr("mapid");openInfoWindow(wpgmza_markerid,wpgmza_mapid,true);location.hash="#marker"+wpgmza_markerid;});jQuery("body").on("click",".wpgmaps_blist_row",function(){var wpgmza_markerid=jQuery(this).attr("mid");var wpgmza_mapid=jQuery(this).attr("mapid");openInfoWindow(wpgmza_markerid,wpgmza_mapid,true);});jQuery("body").on("change","#wpgmza_filter_select",function(){var selectedValue=jQuery(this).find(":selected").val();var wpgmza_map_id=jQuery(this).attr("mid");InitMap(wpgmza_map_id,selectedValue);wpgmza_filter_marker_lists(wpgmza_map_id,selectedValue);});jQuery("body").on("click",".wpgmza_checkbox",function(){var wpgmza_map_id=jQuery(this).attr("mid");if(jQuery("#addressInput_"+wpgmza_map_id).length>0){}else{var checkedCatValues=jQuery('.wpgmza_checkbox:checked').map(function(){return this.value;}).get();if(checkedCatValues[0]==="0"||typeof checkedCatValues==='undefined'||checkedCatValues.length<1){InitMap(wpgmza_map_id,'all');wpgmza_filter_marker_lists(wpgmza_map_id,'all');}else{InitMap(wpgmza_map_id,checkedCatValues);wpgmza_filter_marker_lists(wpgmza_map_id,checkedCatValues);}}});jQuery("body").on("click",".sl_use_loc",function(){var wpgmza_map_id=jQuery(this).attr("mid");jQuery('#addressInput_'+wpgmza_map_id).val(wpgmaps_lang_getting_location);var geocoder=new google.maps.Geocoder();geocoder.geocode({'latLng':user_location},function(results,status){if(status===google.maps.GeocoderStatus.OK){if(results[0]){jQuery('#addressInput_'+wpgmza_map_id).val(results[0].formatted_address);}}});});jQuery("body").on("click","#wpgmza_use_my_location_from",function(){var wpgmza_map_id=jQuery(this).attr("mid");jQuery('#wpgmza_input_from_'+wpgmza_map_id).val(wpgmaps_lang_getting_location);var geocoder=new google.maps.Geocoder();geocoder.geocode({'latLng':user_location},function(results,status){if(status===google.maps.GeocoderStatus.OK){if(results[0]){jQuery('#wpgmza_input_from_'+wpgmza_map_id).val(results[0].formatted_address);}}});});jQuery("body").on("click","#wpgmza_use_my_location_to",function(){var wpgmza_map_id=jQuery(this).attr("mid");jQuery('#wpgmza_input_to_'+wpgmza_map_id).val(wpgmaps_lang_getting_location);var geocoder=new google.maps.Geocoder();geocoder.geocode({'latLng':user_location},function(results,status){if(status===google.maps.GeocoderStatus.OK){if(results[0]){jQuery('#wpgmza_input_to_'+wpgmza_map_id).val(results[0].formatted_address);}}});});jQuery('body').on('tabsactivate',function(event,ui){for(var entry in wpgmaps_localize){InitMap(wpgmaps_localize[entry]['id'],'all',false);}});jQuery('body').on('tabsshow',function(event,ui){for(var entry in wpgmaps_localize){InitMap(wpgmaps_localize[entry]['id'],'all',false);}});jQuery('body').on('accordionactivate',function(event,ui){for(var entry in wpgmaps_localize){InitMap(wpgmaps_localize[entry]['id'],'all',false);}});jQuery('body').on('click','.wpb_tabs_nav li',function(event,ui){for(var entry in wpgmaps_localize){InitMap(wpgmaps_localize[entry]['id'],'all',false);}});jQuery('body').on('click','.ui-tabs-nav li',function(event,ui){for(var entry in wpgmaps_localize){InitMap(wpgmaps_localize[entry]['id'],'all',false);}});jQuery('body').on('click','.tp-tabs li a',function(event,ui){for(var entry in wpgmaps_localize){InitMap(wpgmaps_localize[entry]['id'],'all',false);}});jQuery('body').on('click','.nav-tabs li a',function(event,ui){for(var entry in wpgmaps_localize){InitMap(wpgmaps_localize[entry]['id'],'all',false);}});jQuery('body').on('click','.x-accordion-heading',function(){setTimeout(function(){for(var entry in wpgmaps_localize){InitMap(wpgmaps_localize[entry]['id'],'all',false);jQuery(jQuery.fn.dataTable.tables(true)).DataTable().responsive.recalc();}},100);});jQuery('body').on('click','.x-nav-tabs li',function(event,ui){setTimeout(function(){for(var entry in wpgmaps_localize){InitMap(wpgmaps_localize[entry]['id'],'all',false);}},200);});jQuery('body').on('click','.tab-title',function(event,ui){setTimeout(function(){for(var entry in wpgmaps_localize){InitMap(wpgmaps_localize[entry]['id'],'all',false);}},200);});jQuery('body').on('click','.tab-link',function(event,ui){setTimeout(function(){for(var entry in wpgmaps_localize){InitMap(wpgmaps_localize[entry]['id'],'all',false);}},200);});jQuery('body').on('click','.et_pb_tabs_controls li',function(event,ui){setTimeout(function(){for(var entry in wpgmaps_localize){InitMap(wpgmaps_localize[entry]['id'],'all',false);}},200);});jQuery('body').on('click','.fusion-tab-heading',function(event,ui){setTimeout(function(){for(var entry in wpgmaps_localize){InitMap(wpgmaps_localize[entry]['id'],'all',false);}},200);});jQuery('body').on('click','.et_pb_tab',function(event,ui){setTimeout(function(){for(var entry in wpgmaps_localize){InitMap(wpgmaps_localize[entry]['id'],'all',false);}},200);});jQuery('body').on('click','.gdl-tabs li',function(event,ui){for(var entry in wpgmaps_localize){InitMap(wpgmaps_localize[entry]['id'],'all',false);}});jQuery('body').on('click','#tabnav li',function(event,ui){for(var entry in wpgmaps_localize){InitMap(wpgmaps_localize[entry]['id'],'all',false);}});for(var entry in wpgmaps_localize){jQuery("#wpgmza_map_"+wpgmaps_localize[entry]['id']).css({height:wpgmaps_localize[entry]['map_height']+''+wpgmaps_localize[entry]['map_height_type'],width:wpgmaps_localize[entry]['map_width']+''+wpgmaps_localize[entry]['map_width_type']});}
for(var entry in wpgmaps_localize){InitMap(wpgmaps_localize[entry]['id'],wpgmaps_localize_cat_ids[wpgmaps_localize[entry]['id']],false);}
for(var entry in wpgmaps_localize){if(wpgmaps_localize_global_settings['wpgmza_default_items']===""||'undefined'===typeof wpgmaps_localize_global_settings['wpgmza_default_items']){wpgmza_settings_default_items=10;}else{wpgmza_settings_default_items=parseInt(wpgmaps_localize_global_settings['wpgmza_default_items']);}
if(jQuery('#wpgmza_table_'+wpgmaps_localize[entry]['id']).length===0){}else{wpgmzaTable[wpgmaps_localize[entry]['id']]=jQuery('#wpgmza_table_'+wpgmaps_localize[entry]['id']).DataTable({"bProcessing":true,"aaSorting":[],"iDisplayLength":wpgmza_settings_default_items,responsive:true,"oLanguage":{"sLengthMenu":wpgm_dt_sLengthMenu,"sZeroRecords":wpgm_dt_sZeroRecords,"sInfo":wpgm_dt_sInfo,"sInfoEmpty":wpgm_dt_sInfoEmpty,"sInfoFiltered":wpgm_dt_sInfoFiltered,"sSearch":wpgm_dt_sSearch,"oPaginate":{"sFirst":wpgm_dt_sFirst,"sLast":wpgm_dt_sLast,"sNext":wpgm_dt_sNext,"sPrevious":wpgm_dt_sPrevious,"sSearch":wpgm_dt_sSearch}}});if(typeof wpgmza_controls_active[entry]!=='undefined'&&wpgmza_controls_active[entry]){jQuery("#wpgmza_table_"+[entry]+"_length").hide();}
if(typeof wpgmaps_localize[entry]['other_settings']['store_locator_hide_before_search']!=="undefined"&&wpgmaps_localize[entry]['other_settings']['store_locator_hide_before_search']===1){jQuery('#wpgmza_marker_holder_'+wpgmaps_localize[entry]['id']).hide();}}
if(typeof wpgmaps_localize[entry]['other_settings']['store_locator_hide_before_search']!=="undefined"&&wpgmaps_localize[entry]['other_settings']['store_locator_hide_before_search']===1){if(jQuery('#wpgmza_marker_list_container_'+wpgmaps_localize[entry]['id']).length>0){jQuery('#wpgmza_marker_list_container_'+wpgmaps_localize[entry]['id']).hide();}}}}});for(var entry in wpgmaps_localize){directionsDisplay[wpgmaps_localize[entry]['id']];directionsService[wpgmaps_localize[entry]['id']]=new google.maps.DirectionsService();var currentDirections=null;var oldDirections=[];var new_gps;if(wpgmaps_localize[entry]['styling_json']!==''&&wpgmaps_localize[entry]['styling_enabled']==="1"){wpgmza_adv_styling_json[wpgmaps_localize[entry]['id']]=jQuery.parseJSON(wpgmaps_localize[entry]['styling_json']);}else{wpgmza_adv_styling_json[wpgmaps_localize[entry]['id']]="";}
MYMAP[wpgmaps_localize[entry]['id']]={map:null,bounds:null,mc:null};if(wpgmaps_localize_global_settings['wpgmza_settings_map_draggable']===""||'undefined'===typeof wpgmaps_localize_global_settings['wpgmza_settings_map_draggable']){wpgmza_settings_map_draggable=true;}else{wpgmza_settings_map_draggable=false;}
if(wpgmaps_localize_global_settings['wpgmza_settings_map_clickzoom']===""||'undefined'===typeof wpgmaps_localize_global_settings['wpgmza_settings_map_clickzoom']){wpgmza_settings_map_clickzoom=false;}else{wpgmza_settings_map_clickzoom=true;}
if(wpgmaps_localize_global_settings['wpgmza_settings_map_scroll']===""||'undefined'===typeof wpgmaps_localize_global_settings['wpgmza_settings_map_scroll']){wpgmza_settings_map_scroll=true;}else{wpgmza_settings_map_scroll=false;}
if(wpgmaps_localize_global_settings['wpgmza_settings_map_zoom']===""||'undefined'===typeof wpgmaps_localize_global_settings['wpgmza_settings_map_zoom']){wpgmza_settings_map_zoom=true;}else{wpgmza_settings_map_zoom=false;}
if(wpgmaps_localize_global_settings['wpgmza_settings_map_pan']===""||'undefined'===typeof wpgmaps_localize_global_settings['wpgmza_settings_map_pan']){wpgmza_settings_map_pan=true;}else{wpgmza_settings_map_pan=false;}
if(wpgmaps_localize_global_settings['wpgmza_settings_map_type']===""||'undefined'===typeof wpgmaps_localize_global_settings['wpgmza_settings_map_type']){wpgmza_settings_map_type=true;}else{wpgmza_settings_map_type=false;}
if(wpgmaps_localize_global_settings['wpgmza_settings_map_streetview']===""||'undefined'===typeof wpgmaps_localize_global_settings['wpgmza_settings_map_streetview']){wpgmza_settings_map_streetview=true;}else{wpgmza_settings_map_streetview=false;}
if('undefined'===typeof wpgmaps_localize[entry]['other_settings']['map_max_zoom']||wpgmaps_localize[entry]['other_settings']['map_max_zoom']===""){wpgmza_max_zoom=0;}else{wpgmza_max_zoom=parseInt(wpgmaps_localize[entry]['other_settings']['map_max_zoom']);}
if('undefined'===typeof wpgmaps_localize[entry]['other_settings']['map_min_zoom']||wpgmaps_localize[entry]['other_settings']['map_min_zoom']===""){wpgmza_min_zoom=21;}else{wpgmza_min_zoom=parseInt(wpgmaps_localize[entry]['other_settings']['map_min_zoom']);}
MYMAP[wpgmaps_localize[entry]['id']].init=function(selector,latLng,zoom,maptype,mapid){if(typeof wpgmaps_localize_map_types!=="undefined"){var override_type=wpgmaps_localize_map_types[mapid];}else{var override_type="";}
if(override_type!==""){if(override_type==="ROADMAP"){var myOptions={zoom:zoom,minZoom:wpgmza_max_zoom,maxZoom:wpgmza_min_zoom,center:latLng,draggable:wpgmza_settings_map_draggable,disableDoubleClickZoom:wpgmza_settings_map_clickzoom,scrollwheel:wpgmza_settings_map_scroll,zoomControl:wpgmza_settings_map_zoom,panControl:wpgmza_settings_map_pan,mapTypeControl:wpgmza_settings_map_type,streetViewControl:wpgmza_settings_map_streetview,mapTypeId:google.maps.MapTypeId.ROADMAP};}
if(override_type==="SATELLITE"){var myOptions={zoom:zoom,minZoom:wpgmza_max_zoom,maxZoom:wpgmza_min_zoom,center:latLng,draggable:wpgmza_settings_map_draggable,disableDoubleClickZoom:wpgmza_settings_map_clickzoom,scrollwheel:wpgmza_settings_map_scroll,zoomControl:wpgmza_settings_map_zoom,panControl:wpgmza_settings_map_pan,mapTypeControl:wpgmza_settings_map_type,streetViewControl:wpgmza_settings_map_streetview,mapTypeId:google.maps.MapTypeId.SATELLITE};}
if(override_type==="HYBRID"){var myOptions={zoom:zoom,minZoom:wpgmza_max_zoom,maxZoom:wpgmza_min_zoom,center:latLng,draggable:wpgmza_settings_map_draggable,disableDoubleClickZoom:wpgmza_settings_map_clickzoom,scrollwheel:wpgmza_settings_map_scroll,zoomControl:wpgmza_settings_map_zoom,panControl:wpgmza_settings_map_pan,mapTypeControl:wpgmza_settings_map_type,streetViewControl:wpgmza_settings_map_streetview,mapTypeId:google.maps.MapTypeId.HYBRID};}
if(override_type==="TERRAIN"){var myOptions={zoom:zoom,minZoom:wpgmza_max_zoom,maxZoom:wpgmza_min_zoom,center:latLng,draggable:wpgmza_settings_map_draggable,disableDoubleClickZoom:wpgmza_settings_map_clickzoom,scrollwheel:wpgmza_settings_map_scroll,zoomControl:wpgmza_settings_map_zoom,panControl:wpgmza_settings_map_pan,mapTypeControl:wpgmza_settings_map_type,streetViewControl:wpgmza_settings_map_streetview,mapTypeId:google.maps.MapTypeId.TERRAIN};}else{if(override_type==="ROADMAP"){var myOptions={zoom:zoom,minZoom:wpgmza_max_zoom,maxZoom:wpgmza_min_zoom,center:latLng,draggable:wpgmza_settings_map_draggable,disableDoubleClickZoom:wpgmza_settings_map_clickzoom,scrollwheel:wpgmza_settings_map_scroll,zoomControl:wpgmza_settings_map_zoom,panControl:wpgmza_settings_map_pan,mapTypeControl:wpgmza_settings_map_type,streetViewControl:wpgmza_settings_map_streetview,mapTypeId:google.maps.MapTypeId.ROADMAP};}}}else{if(maptype==="1"){var myOptions={zoom:zoom,minZoom:wpgmza_max_zoom,maxZoom:wpgmza_min_zoom,center:latLng,draggable:wpgmza_settings_map_draggable,disableDoubleClickZoom:wpgmza_settings_map_clickzoom,scrollwheel:wpgmza_settings_map_scroll,zoomControl:wpgmza_settings_map_zoom,panControl:wpgmza_settings_map_pan,mapTypeControl:wpgmza_settings_map_type,streetViewControl:wpgmza_settings_map_streetview,mapTypeId:google.maps.MapTypeId.ROADMAP};}
else if(maptype==="2"){var myOptions={zoom:zoom,minZoom:wpgmza_max_zoom,maxZoom:wpgmza_min_zoom,center:latLng,draggable:wpgmza_settings_map_draggable,disableDoubleClickZoom:wpgmza_settings_map_clickzoom,scrollwheel:wpgmza_settings_map_scroll,zoomControl:wpgmza_settings_map_zoom,panControl:wpgmza_settings_map_pan,mapTypeControl:wpgmza_settings_map_type,streetViewControl:wpgmza_settings_map_streetview,mapTypeId:google.maps.MapTypeId.SATELLITE};}
else if(maptype==="3"){var myOptions={zoom:zoom,minZoom:wpgmza_max_zoom,maxZoom:wpgmza_min_zoom,center:latLng,draggable:wpgmza_settings_map_draggable,disableDoubleClickZoom:wpgmza_settings_map_clickzoom,scrollwheel:wpgmza_settings_map_scroll,zoomControl:wpgmza_settings_map_zoom,panControl:wpgmza_settings_map_pan,mapTypeControl:wpgmza_settings_map_type,streetViewControl:wpgmza_settings_map_streetview,mapTypeId:google.maps.MapTypeId.HYBRID};}
else if(maptype==="4"){var myOptions={zoom:zoom,minZoom:wpgmza_max_zoom,maxZoom:wpgmza_min_zoom,center:latLng,draggable:wpgmza_settings_map_draggable,disableDoubleClickZoom:wpgmza_settings_map_clickzoom,scrollwheel:wpgmza_settings_map_scroll,zoomControl:wpgmza_settings_map_zoom,panControl:wpgmza_settings_map_pan,mapTypeControl:wpgmza_settings_map_type,streetViewControl:wpgmza_settings_map_streetview,mapTypeId:google.maps.MapTypeId.TERRAIN};}
else{var myOptions={zoom:zoom,minZoom:wpgmza_max_zoom,maxZoom:wpgmza_min_zoom,center:latLng,draggable:wpgmza_settings_map_draggable,disableDoubleClickZoom:wpgmza_settings_map_clickzoom,scrollwheel:wpgmza_settings_map_scroll,zoomControl:wpgmza_settings_map_zoom,panControl:wpgmza_settings_map_pan,mapTypeControl:wpgmza_settings_map_type,streetViewControl:wpgmza_settings_map_streetview,mapTypeId:google.maps.MapTypeId.ROADMAP};}}
this.map=new google.maps.Map(jQuery(selector)[0],myOptions);if("undefined"!==typeof wpgmaps_localize[mapid]['other_settings']['wpgmza_theme_data']&&wpgmaps_localize[mapid]['other_settings']['wpgmza_theme_data']!==false&&wpgmaps_localize[mapid]['other_settings']['wpgmza_theme_data']!==''){wpgmza_theme_data=jQuery.parseJSON(wpgmaps_localize[mapid]['other_settings']['wpgmza_theme_data']);this.map.setOptions({styles:jQuery.parseJSON(wpgmaps_localize[mapid]['other_settings']['wpgmza_theme_data'])});}
if(override_type==="STREETVIEW"){var panoramaOptions={position:latLng};var panorama=new google.maps.StreetViewPanorama(jQuery(selector)[0],panoramaOptions);this.map.setStreetView(panorama);}
this.bounds=new google.maps.LatLngBounds();jQuery("#wpgmza_map_"+mapid).trigger('wpgooglemaps_loaded');if(wpgmaps_localize_heatmap_settings!==null){if(typeof wpgmaps_localize_heatmap_settings[mapid]!=="undefined"){for(var poly_entry in wpgmaps_localize_heatmap_settings[mapid]){add_heatmap(mapid,poly_entry);}}}
if(wpgmaps_localize_polygon_settings!==null){if(typeof wpgmaps_localize_polygon_settings[mapid]!=="undefined"){for(var poly_entry in wpgmaps_localize_polygon_settings[mapid]){add_polygon(mapid,poly_entry);}}}
if(wpgmaps_localize_polyline_settings!==null){if(typeof wpgmaps_localize_polyline_settings[mapid]!=="undefined"){for(var poly_entry in wpgmaps_localize_polyline_settings[mapid]){add_polyline(mapid,poly_entry);}}}
if(wpgmaps_localize[entry]['bicycle']==="1"){var bikeLayer=new google.maps.BicyclingLayer();bikeLayer.setMap(MYMAP[mapid].map);}
if(wpgmaps_localize[entry]['traffic']==="1"){var trafficLayer=new google.maps.TrafficLayer();trafficLayer.setMap(MYMAP[mapid].map);}
if("undefined"!==typeof wpgmaps_localize[mapid]['other_settings']['weather_layer']&&wpgmaps_localize[mapid]['other_settings']['weather_layer']===1){if("undefined"===typeof google.maps.weather){}else{if("undefined"!==typeof wpgmaps_localize[mapid]['other_settings']['weather_layer_temp_type']&&wpgmaps_localize[mapid]['other_settings']['weather_layer_temp_type']===2){var weatherLayer=new google.maps.weather.WeatherLayer({temperatureUnits:google.maps.weather.TemperatureUnit.FAHRENHEIT});weatherLayer.setMap(MYMAP[mapid].map);}else{var weatherLayer=new google.maps.weather.WeatherLayer({temperatureUnits:google.maps.weather.TemperatureUnit.CELSIUS});weatherLayer.setMap(MYMAP[mapid].map);}}}
if("undefined"!==typeof wpgmaps_localize[mapid]['other_settings']['cloud_layer']&&wpgmaps_localize[mapid]['other_settings']['cloud_layer']===1){if("undefined"===typeof google.maps.weather){}else{var cloudLayer=new google.maps.weather.CloudLayer();cloudLayer.setMap(MYMAP[mapid].map);}}
if("undefined"!==typeof wpgmaps_localize[mapid]['other_settings']['transport_layer']&&wpgmaps_localize[mapid]['other_settings']['transport_layer']===1){var transitLayer=new google.maps.TransitLayer();transitLayer.setMap(MYMAP[mapid].map);}
if(wpgmaps_localize[entry]['kml']!==""){var wpgmaps_d=new Date();var wpgmaps_ms=wpgmaps_d.getTime();arr=wpgmaps_localize[mapid]['kml'].split(',');arr.forEach(function(entry){var georssLayer=new google.maps.KmlLayer(entry+'?tstamp='+wpgmaps_ms,{preserveViewport:true});georssLayer.setMap(MYMAP[mapid].map);});}
if(wpgmaps_localize[mapid]['fusion']!==""){var fusionlayer=new google.maps.FusionTablesLayer(wpgmaps_localize[mapid]['fusion'],{suppressInfoWindows:false});fusionlayer.setMap(MYMAP[mapid].map);}
if(typeof wpgmaps_localize[mapid]['other_settings']['push_in_map']!=='undefined'&&wpgmaps_localize[mapid]['other_settings']['push_in_map']==="1"){if(typeof wpgmaps_localize[mapid]['other_settings']['wpgmza_push_in_map_width']!=='undefined'){var wpgmza_con_width=wpgmaps_localize[mapid]['other_settings']['wpgmza_push_in_map_width'];}else{var wpgmza_con_width="30%";}
if(typeof wpgmaps_localize[mapid]['other_settings']['wpgmza_push_in_map_height']!=='undefined'){var wpgmza_con_height=wpgmaps_localize[mapid]['other_settings']['wpgmza_push_in_map_height'];}else{var wpgmza_con_height="50%";}
if(jQuery('#wpgmza_marker_holder_'+mapid).length){var legend=document.getElementById('wpgmza_marker_holder_'+mapid);jQuery(legend).width(wpgmza_con_width);jQuery(legend).css('margin','15px');jQuery(legend).addClass('wpgmza_innermap_holder');jQuery(legend).addClass('wpgmza-shadow');jQuery('#wpgmza_table_'+mapid).addClass('');wpgmza_controls_active[mapid]=true;}else if(jQuery('#wpgmza_marker_list_container_'+mapid).length){var legend_tmp=document.getElementById('wpgmza_marker_list_container_'+mapid);jQuery('#wpgmza_marker_list_container_'+mapid).wrap("
");var legend=document.getElementById('wpgmza_marker_list_parent_'+mapid);jQuery(legend).width(wpgmza_con_width);jQuery(legend).height(wpgmza_con_height);jQuery(legend).css('margin','15px');jQuery(legend).css('overflow','auto');if(jQuery(legend_tmp).hasClass("wpgmza_marker_carousel")){}else{jQuery(legend).addClass('wpgmza_innermap_holder');jQuery(legend).addClass('wpgmza-shadow');}
jQuery('#wpgmza_marker_list_'+mapid).addClass('');wpgmza_controls_active[mapid]=true;}else if(jQuery('#wpgmza_marker_list_'+mapid).length){var legend_tmp=document.getElementById('wpgmza_marker_list_'+mapid);jQuery('#wpgmza_marker_list_'+mapid).wrap("
");var legend=document.getElementById('wpgmza_marker_list_parent_'+mapid);jQuery(legend).width(wpgmza_con_width);jQuery(legend).height(wpgmza_con_height);jQuery(legend).css('margin','15px');jQuery(legend).css('overflow','auto');if(jQuery(legend_tmp).hasClass("wpgmza_marker_carousel")){}else{jQuery(legend).addClass('wpgmza_innermap_holder');jQuery(legend).addClass('wpgmza-shadow');}
jQuery('#wpgmza_marker_list_'+mapid).addClass('');wpgmza_controls_active[mapid]=true;}
if(typeof legend!=='undefined'){if(typeof wpgmaps_localize[mapid]['other_settings']['push_in_map_placement']!=='undefined'){if(wpgmaps_localize[mapid]['other_settings']['push_in_map_placement']==="1"){MYMAP[mapid].map.controls[google.maps.ControlPosition.TOP_CENTER].push(legend);}
else if(wpgmaps_localize[mapid]['other_settings']['push_in_map_placement']==="2"){MYMAP[mapid].map.controls[google.maps.ControlPosition.TOP_LEFT].push(legend);}
else if(wpgmaps_localize[mapid]['other_settings']['push_in_map_placement']==="3"){MYMAP[mapid].map.controls[google.maps.ControlPosition.TOP_RIGHT].push(legend);}
else if(wpgmaps_localize[mapid]['other_settings']['push_in_map_placement']==="4"){MYMAP[mapid].map.controls[google.maps.ControlPosition.LEFT_TOP].push(legend);}
else if(wpgmaps_localize[mapid]['other_settings']['push_in_map_placement']==="5"){MYMAP[mapid].map.controls[google.maps.ControlPosition.RIGHT_TOP].push(legend);}
else if(wpgmaps_localize[mapid]['other_settings']['push_in_map_placement']==="6"){MYMAP[mapid].map.controls[google.maps.ControlPosition.LEFT_CENTER].push(legend);}
else if(wpgmaps_localize[mapid]['other_settings']['push_in_map_placement']==="7"){MYMAP[mapid].map.controls[google.maps.ControlPosition.RIGHT_CENTER].push(legend);}
else if(wpgmaps_localize[mapid]['other_settings']['push_in_map_placement']==="8"){MYMAP[mapid].map.controls[google.maps.ControlPosition.LEFT_BOTTOM].push(legend);}
else if(wpgmaps_localize[mapid]['other_settings']['push_in_map_placement']==="9"){MYMAP[mapid].map.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(legend);}
else if(wpgmaps_localize[mapid]['other_settings']['push_in_map_placement']==="10"){MYMAP[mapid].map.controls[google.maps.ControlPosition.BOTTOM_CENTER].push(legend);}
else if(wpgmaps_localize[mapid]['other_settings']['push_in_map_placement']==="11"){MYMAP[mapid].map.controls[google.maps.ControlPosition.BOTTOM_LEFT].push(legend);}
else if(wpgmaps_localize[mapid]['other_settings']['push_in_map_placement']==="12"){MYMAP[mapid].map.controls[google.maps.ControlPosition.BOTTOM_RIGHT].push(legend);}
else{MYMAP[mapid].map.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(legend);}}else{MYMAP[mapid].map.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(legend);}}}};google.maps.event.addDomListener(window,'resize',function(){var myLatLng=MYMAP[wpgmaps_localize[entry]['id']].map.getCenter();if('undefined'!==typeof MYMAP[wpgmaps_localize[entry]['id']].map){MYMAP[wpgmaps_localize[entry]['id']].map.setCenter(myLatLng);}});MYMAP[wpgmaps_localize[entry]['id']].placeMarkers=function(filename,map_id,cat_id,radius,searched_center,distance_type,search_title,show_markers){if(typeof marker_array[map_id]!=="undefined"){for(var i=0;i';}
var wpmgza_address=jQuery(this).find('address').text();if(wpmgza_address!==""){var wpmgza_show_address=''+wpmgza_address+'
';}else{var wpmgza_show_address='';}
var wpmgza_mapicon=jQuery(this).find('icon').text();var wpmgza_image=jQuery(this).find('pic').text();var wpmgza_desc=jQuery(this).find('desc').text();var wpgmza_orig_desc=wpmgza_desc;if(wpmgza_desc!==""){var wpmgza_desc=''+jQuery(this).find('desc').text()+'
';}
var wpmgza_linkd=jQuery(this).find('linkd').text();var wpmgza_linkd_orig=wpmgza_linkd;var wpmgza_anim=jQuery(this).find('anim').text();var wpmgza_retina=jQuery(this).find('retina').text();var wpmgza_category=jQuery(this).find('category').text();var current_lat=jQuery(this).find('lat').text();var current_lng=jQuery(this).find('lng').text();var show_marker_radius=true;var show_marker_title_string=true;if(radius!==null){if(check1>0){}else{var sl_stroke_color=wpgmaps_localize[map_id]['other_settings']['sl_stroke_color'];if(sl_stroke_color!==""||sl_stroke_color!==null){}else{sl_stroke_color='FF0000';}
var sl_stroke_opacity=wpgmaps_localize[map_id]['other_settings']['sl_stroke_opacity'];if(sl_stroke_opacity!==""||sl_stroke_opacity!==null){}else{sl_stroke_opacity='0.25';}
var sl_fill_opacity=wpgmaps_localize[map_id]['other_settings']['sl_fill_opacity'];if(sl_fill_opacity!==""||sl_fill_opacity!==null){}else{sl_fill_opacity='0.15';}
var sl_fill_color=wpgmaps_localize[map_id]['other_settings']['sl_fill_color'];if(sl_fill_color!==""||sl_fill_color!==null){}else{sl_fill_color='FF0000';}
var point=new google.maps.LatLng(parseFloat(searched_center.lat()),parseFloat(searched_center.lng()));MYMAP[map_id].bounds.extend(point);if(wpgmaps_localize[map_id]['other_settings']['store_locator_bounce']===1){if("undefined"!==typeof wpgmaps_localize[map_id]['other_settings']['upload_default_sl_marker']){store_locator_marker[map_id]=new google.maps.Marker({position:point,map:MYMAP[map_id].map,icon:wpgmaps_localize[map_id]['other_settings']['upload_default_sl_marker'],animation:google.maps.Animation.BOUNCE});}else{store_locator_marker[map_id]=new google.maps.Marker({position:point,map:MYMAP[map_id].map,animation:google.maps.Animation.BOUNCE});}}else{}
if(distance_type==="1"){var populationOptions={strokeColor:'#'+sl_stroke_color,strokeOpacity:sl_stroke_opacity,strokeWeight:2,fillColor:'#'+sl_fill_color,fillOpacity:sl_fill_opacity,map:MYMAP[map_id].map,center:point,radius:parseInt(radius/0.000621371)};}else{var populationOptions={strokeColor:'#'+sl_stroke_color,strokeOpacity:sl_stroke_opacity,strokeWeight:2,fillColor:'#'+sl_fill_color,fillOpacity:sl_fill_opacity,map:MYMAP[map_id].map,center:point,radius:parseInt(radius/0.001)};}
cityCircle[map_id]=new google.maps.Circle(populationOptions);check1=check1+1;}
if(distance_type==="1"){R=3958.7558657440545;}else{R=6378.16;}
var dLat=toRad(searched_center.lat()-current_lat);var dLon=toRad(searched_center.lng()-current_lng);var a=Math.sin(dLat/2)*Math.sin(dLat/2)+Math.cos(toRad(current_lat))*Math.cos(toRad(searched_center.lat()))*Math.sin(dLon/2)*Math.sin(dLon/2);var c=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));var d=R*c;if(d=0||y>=0){show_marker_title_string=true;}else{show_marker_title_string=false;}}}
var cat_is_cat;cat_is_cat=false;if(Object.prototype.toString.call(cat_id)==='[object Array]'){if(cat_id[0]==='0'){cat_id==="all";}
for(var tmp_val in cat_id){if(wpmgza_category.indexOf(',')===-1){if(cat_id[tmp_val]===wpmgza_category){cat_is_cat=true;}}else{var array=JSON.parse("["+wpmgza_category+"]");array.forEach(function(entry){if(parseInt(cat_id[tmp_val])===parseInt(entry)){cat_is_cat=true;}});}}}else{if(wpmgza_category.indexOf(',')===-1){if(cat_id===wpmgza_category){cat_is_cat=true;}}else{var array=JSON.parse("["+wpmgza_category+"]");array.forEach(function(entry){if(parseInt(cat_id)===parseInt(entry)){cat_is_cat=true;}});}}
if(cat_id==='all'||cat_is_cat){var wpmgza_infoopen=jQuery(this).find('infoopen').text();if(wpmgza_image!==""){if('undefined'===typeof wpgmaps_localize_global_settings['wpgmza_settings_image_resizing']||wpgmaps_localize_global_settings['wpgmza_settings_image_resizing']==="yes"){wpmgza_image=" ";}else{wpmgza_image=" ";}}else{wpmgza_image="";}
if(wpmgza_linkd!==""){if(wpgmaps_localize_global_settings['wpgmza_settings_infowindow_links']==="yes"){wpgmza_iw_links_target="target='_BLANK'";}
else{wpgmza_iw_links_target='';}
wpmgza_linkd=""+wpgmaps_lang_more_details+"
";}else{wpgmza_iw_links_target="";}
if(wpmgza_mapicon===""||!wpmgza_mapicon){if(wpgmza_def_icon!==""){wpmgza_mapicon=wpgmaps_localize[map_id]['default_marker'];}}
var wpgmza_optimized=true;if(wpmgza_retina==="1"&&wpmgza_mapicon!=="0"){wpmgza_mapicon=new google.maps.MarkerImage(wpmgza_mapicon,null,null,null,new google.maps.Size(wpgmza_retina_width,wpgmza_retina_height));wpgmza_optimized=false;}
var lat=jQuery(this).find('lat').text();var lng=jQuery(this).find('lng').text();var point=new google.maps.LatLng(parseFloat(lat),parseFloat(lng));MYMAP[map_id].bounds.extend(point);if(show_marker_radius===true&&show_marker_title_string===true){if(wpmgza_anim==="1"){if(wpmgza_mapicon===null||wpmgza_mapicon===""||wpmgza_mapicon===0||wpmgza_mapicon==="0"){var marker=new google.maps.Marker({position:point,map:MYMAP[map_id].map,animation:google.maps.Animation.BOUNCE});}else{var marker=new google.maps.Marker({position:point,map:MYMAP[map_id].map,icon:wpmgza_mapicon,animation:google.maps.Animation.BOUNCE,optimized:wpgmza_optimized});}}
else if(wpmgza_anim==="2"){if(wpmgza_mapicon===null||wpmgza_mapicon===""||wpmgza_mapicon===0||wpmgza_mapicon==="0"){var marker=new google.maps.Marker({position:point,map:MYMAP[map_id].map,animation:google.maps.Animation.DROP});}else{var marker=new google.maps.Marker({position:point,map:MYMAP[map_id].map,icon:wpmgza_mapicon,animation:google.maps.Animation.DROP,optimized:wpgmza_optimized});}}
else{if(wpmgza_mapicon===null||wpmgza_mapicon===""||wpmgza_mapicon===0||wpmgza_mapicon==="0"){var marker=new google.maps.Marker({position:point,map:MYMAP[map_id].map,optimized:wpgmza_optimized});}else{var marker=new google.maps.Marker({position:point,map:MYMAP[map_id].map,icon:wpmgza_mapicon,optimized:wpgmza_optimized});}}
if(wpgmaps_localize_global_settings['wpgmza_settings_infowindow_address']==="yes"){wpmgza_show_address="";}
if(wpgmaps_localize[map_id]['directions_enabled']==="1"){wpmgza_dir_enabled=''+wpgmaps_lang_get_dir+'
';}else{wpmgza_dir_enabled='';}
if(radius!==null){if(distance_type==="1"){d_string=""+Math.round(d,2)+' '+wpgmaps_lang_m_away+"
";}else{d_string=""+Math.round(d,2)+' '+wpgmaps_lang_km_away+"
";}}else{d_string='';}
if(wpmgza_image!==""){var html=''+
wpmgza_image+
wpmgza_title+
wpmgza_show_address+
wpmgza_desc+
wpmgza_linkd+
d_string+
wpmgza_dir_enabled+'
';}else{var html=''+
wpmgza_image+
wpmgza_title+
wpmgza_show_address+
wpmgza_desc+
wpmgza_linkd+
d_string+
wpmgza_dir_enabled+'
';}
var marker_data_object={title:wpgmza_orig_title,address:wpmgza_address,image:jQuery(this).find('pic').text(),link:wpmgza_linkd_orig,directions:wpmgza_dir_enabled,distance:d_string,desc:wpgmza_orig_desc,gps:parseFloat(lat)+','+parseFloat(lng),link_target:wpgmza_iw_links_target};infoWindow[wpmgza_marker_id]=new google.maps.InfoWindow();if(wpgmaps_localize_global_settings['wpgmza_settings_infowindow_width']===""||'undefined'===typeof wpgmaps_localize_global_settings['wpgmza_settings_infowindow_width']){wpgmaps_localize_global_settings['wpgmza_settings_infowindow_width']=false;}
if(wpmgza_infoopen==="1"){wpgmza_open_marker_func(map_id,marker,html,click_from_list,marker_data_object,wpmgza_marker_id);}
if(typeof wpgmza_open_marker!=="underfined"){if(wpgmza_open_marker===wpmgza_marker_id){if(wpgmaps_localize_global_settings['wpgmza_settings_infowindow_width']){infoWindow[wpmgza_marker_id].setOptions({maxWidth:wpgmaps_localize_global_settings['wpgmza_settings_infowindow_width']});}
infoWindow[wpmgza_marker_id].setContent(html);infoWindow[wpmgza_marker_id].open(MYMAP[map_id].map,marker);MYMAP[map_id].map.setCenter(point);if(typeof wpgmza_open_marker_zoom!=="undefined"){MYMAP[map_id].map.setZoom(parseInt(wpgmza_open_marker_zoom));}}}
if(typeof wpgmaps_localize[map_id]['other_settings']['click_open_link']!=="undefined"&&wpgmaps_localize[map_id]['other_settings']['click_open_link']===1&&typeof wpmgza_linkd_orig!=="undefined"&&wpmgza_linkd_orig!==""){google.maps.event.addListener(marker,'click',function(evt){location=wpmgza_linkd_orig;});}
if(wpgmaps_localize_global_settings['wpgmza_settings_map_open_marker_by']===""||'undefined'===typeof wpgmaps_localize_global_settings['wpgmza_settings_map_open_marker_by']||wpgmaps_localize_global_settings['wpgmza_settings_map_open_marker_by']==='1'){google.maps.event.addListener(marker,'click',function(evt){wpgmza_open_marker_func(map_id,marker,html,click_from_list,marker_data_object,wpmgza_marker_id);});}else{google.maps.event.addListener(marker,'mouseover',function(evt){wpgmza_open_marker_func(map_id,marker,html,click_from_list,marker_data_object,wpmgza_marker_id);});}
marker_array[map_id][wpmgza_marker_id]=marker;marker_array2[map_id].push(marker);marker_sl_array[map_id].push(wpmgza_marker_id);}}});if(typeof wpgm_g_e!=="undefined"&&wpgm_g_e===true){if(wpgmaps_localize[map_id]['mass_marker_support']==="1"||wpgmaps_localize[map_id]['mass_marker_support']===null){if(typeof markerClusterer[map_id]!=="undefined"){markerClusterer[map_id].addMarkers(marker_array2[map_id]);}}}
if(radius!==null){wpgmza_filter_marker_lists_by_array(map_id,marker_sl_array[map_id]);}});}else{jQuery.each(wpgmaps_localize_marker_data[map_id],function(i,val){var wpgmza_def_icon=wpgmaps_localize[map_id]['default_marker'];var wpmgza_map_id=map_id;var wpmgza_marker_id=val.marker_id;var wpmgza_title=val.title;var wpgmza_orig_title=wpmgza_title;if(wpmgza_title!==""){var wpmgza_title=''+val.title+'
';}
var wpmgza_address=val.address;if(wpmgza_address!==""){var wpmgza_show_address=''+wpmgza_address+'
';}else{var wpmgza_show_address='';}
var wpmgza_mapicon=val.icon;var wpmgza_image=val.pic;var wpmgza_desc=val.desc;var wpgmza_orig_desc=wpmgza_desc;if(wpmgza_desc!==""){var wpmgza_desc=''+val.desc;+'
';}
var wpmgza_linkd=val.linkd;var wpmgza_linkd_orig=wpmgza_linkd;var wpmgza_anim=val.anim;var wpmgza_retina=val.retina;var wpmgza_category=val.category;var current_lat=val.lat;var current_lng=val.lng;var show_marker_radius=true;var show_marker_title_string=true;if(radius!==null){if(check1>0){}else{var sl_stroke_color=wpgmaps_localize[map_id]['other_settings']['sl_stroke_color'];if(sl_stroke_color!==""||sl_stroke_color!==null){}else{sl_stroke_color='FF0000';}
var sl_stroke_opacity=wpgmaps_localize[map_id]['other_settings']['sl_stroke_opacity'];if(sl_stroke_opacity!==""||sl_stroke_opacity!==null){}else{sl_stroke_opacity='0.25';}
var sl_fill_opacity=wpgmaps_localize[map_id]['other_settings']['sl_fill_opacity'];if(sl_fill_opacity!==""||sl_fill_opacity!==null){}else{sl_fill_opacity='0.15';}
var sl_fill_color=wpgmaps_localize[map_id]['other_settings']['sl_fill_color'];if(sl_fill_color!==""||sl_fill_color!==null){}else{sl_fill_color='FF0000';}
var point=new google.maps.LatLng(parseFloat(searched_center.lat()),parseFloat(searched_center.lng()));MYMAP[map_id].bounds.extend(point);if(wpgmaps_localize[map_id]['other_settings']['store_locator_bounce']===1){if("undefined"!==typeof wpgmaps_localize[map_id]['other_settings']['upload_default_sl_marker']){store_locator_marker[map_id]=new google.maps.Marker({position:point,map:MYMAP[map_id].map,icon:wpgmaps_localize[map_id]['other_settings']['upload_default_sl_marker'],animation:google.maps.Animation.BOUNCE});}else{store_locator_marker[map_id]=new google.maps.Marker({position:point,map:MYMAP[map_id].map,animation:google.maps.Animation.BOUNCE});}}else{}
if(distance_type==="1"){var populationOptions={strokeColor:'#'+sl_stroke_color,strokeOpacity:sl_stroke_opacity,strokeWeight:2,fillColor:'#'+sl_fill_color,fillOpacity:sl_fill_opacity,map:MYMAP[map_id].map,center:point,radius:parseInt(radius/0.000621371)};}else{var populationOptions={strokeColor:'#'+sl_stroke_color,strokeOpacity:sl_stroke_opacity,strokeWeight:2,fillColor:'#'+sl_fill_color,fillOpacity:sl_fill_opacity,map:MYMAP[map_id].map,center:point,radius:parseInt(radius/0.001)};}
cityCircle[map_id]=new google.maps.Circle(populationOptions);check1=check1+1;}
if(distance_type==="1"){R=3958.7558657440545;}else{R=6378.16;}
var dLat=toRad(searched_center.lat()-current_lat);var dLon=toRad(searched_center.lng()-current_lng);var a=Math.sin(dLat/2)*Math.sin(dLat/2)+Math.cos(toRad(current_lat))*Math.cos(toRad(searched_center.lat()))*Math.sin(dLon/2)*Math.sin(dLon/2);var c=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));var d=R*c;if(d=0||y>=0){show_marker_title_string=true;}else{show_marker_title_string=false;}}}
var cat_is_cat;cat_is_cat=false;if(Object.prototype.toString.call(cat_id)==='[object Array]'){if(cat_id[0]==='0'){cat_id==="all";}
for(var tmp_val in cat_id){if(wpmgza_category.indexOf(',')===-1){if(cat_id[tmp_val]===wpmgza_category){cat_is_cat=true;}}else{var array=JSON.parse("["+wpmgza_category+"]");array.forEach(function(entry){if(parseInt(cat_id[tmp_val])===parseInt(entry)){cat_is_cat=true;}});}}}else{if(typeof wpmgza_category!=='undefined'){if(wpmgza_category.indexOf(',')===-1){if(cat_id===wpmgza_category){cat_is_cat=true;}}else{var array=JSON.parse("["+wpmgza_category+"]");array.forEach(function(entry){if(parseInt(cat_id)===parseInt(entry)){cat_is_cat=true;}});}}else{}}
if(cat_id==='all'||cat_is_cat){var wpmgza_infoopen=val.infoopen;if(wpmgza_image!==""){if('undefined'===typeof wpgmaps_localize_global_settings['wpgmza_settings_image_resizing']||wpgmaps_localize_global_settings['wpgmza_settings_image_resizing']==="yes"){wpmgza_image=" ";}else{wpmgza_image=" ";}}
if(wpmgza_linkd!==""){if(wpgmaps_localize_global_settings['wpgmza_settings_infowindow_links']==="yes"){wpgmza_iw_links_target="target='_BLANK'";}
else{wpgmza_iw_links_target='';}
wpmgza_linkd=""+wpgmaps_lang_more_details+"
";}else{wpgmza_iw_links_target="";}
if(wpmgza_mapicon===""||!wpmgza_mapicon){if(wpgmza_def_icon!==""){wpmgza_mapicon=wpgmaps_localize[map_id]['default_marker'];}}
var wpgmza_optimized=true;if(wpmgza_retina==="1"&&wpmgza_mapicon!=="0"){wpmgza_mapicon=new google.maps.MarkerImage(wpmgza_mapicon,null,null,null,new google.maps.Size(wpgmza_retina_width,wpgmza_retina_height));wpgmza_optimized=false;}
var lat=val.lat;var lng=val.lng;var point=new google.maps.LatLng(parseFloat(lat),parseFloat(lng));MYMAP[map_id].bounds.extend(point);if(show_marker_radius===true&&show_marker_title_string===true){if(wpmgza_anim==="1"){if(wpmgza_mapicon===null||wpmgza_mapicon===""||wpmgza_mapicon===0||wpmgza_mapicon==="0"){var marker=new google.maps.Marker({position:point,map:MYMAP[map_id].map,animation:google.maps.Animation.BOUNCE});}else{var marker=new google.maps.Marker({position:point,map:MYMAP[map_id].map,icon:wpmgza_mapicon,animation:google.maps.Animation.BOUNCE,optimized:wpgmza_optimized});}}
else if(wpmgza_anim==="2"){if(wpmgza_mapicon===null||wpmgza_mapicon===""||wpmgza_mapicon===0||wpmgza_mapicon==="0"){var marker=new google.maps.Marker({position:point,map:MYMAP[map_id].map,animation:google.maps.Animation.DROP});}else{var marker=new google.maps.Marker({position:point,map:MYMAP[map_id].map,icon:wpmgza_mapicon,animation:google.maps.Animation.DROP,optimized:wpgmza_optimized});}}
else{if(wpmgza_mapicon===null||wpmgza_mapicon===""||wpmgza_mapicon===0||wpmgza_mapicon==="0"){var marker=new google.maps.Marker({position:point,map:MYMAP[map_id].map,optimized:wpgmza_optimized});}else{var marker=new google.maps.Marker({position:point,map:MYMAP[map_id].map,icon:wpmgza_mapicon,optimized:wpgmza_optimized});}}
if(wpgmaps_localize_global_settings['wpgmza_settings_infowindow_address']==="yes"){wpmgza_show_address="";}
if(wpgmaps_localize[entry]['directions_enabled']==="1"){wpmgza_dir_enabled=''+wpgmaps_lang_get_dir+'
';}else{wpmgza_dir_enabled='';}
if(radius!==null){if(distance_type==="1"){d_string=""+Math.round(d,2)+' '+wpgmaps_lang_m_away+"
";}else{d_string=""+Math.round(d,2)+' '+wpgmaps_lang_km_away+"
";}}else{d_string='';}
if(wpmgza_image!==""){var html=''+
wpmgza_image+
wpmgza_title+
wpmgza_show_address+
wpmgza_desc+
wpmgza_linkd+
d_string+
wpmgza_dir_enabled+'
';}else{var html=''+
wpmgza_image+
wpmgza_title+
wpmgza_show_address+
wpmgza_desc+
wpmgza_linkd+
d_string+
wpmgza_dir_enabled+'
';}
var marker_data_object={title:wpgmza_orig_title,address:wpmgza_address,image:val.pic,link:wpmgza_linkd_orig,directions:wpmgza_dir_enabled,distance:d_string,desc:wpgmza_orig_desc,gps:parseFloat(lat)+','+parseFloat(lng),link_target:wpgmza_iw_links_target};infoWindow[wpmgza_marker_id]=new google.maps.InfoWindow();if(wpgmaps_localize_global_settings['wpgmza_settings_infowindow_width']===""||'undefined'===typeof wpgmaps_localize_global_settings['wpgmza_settings_infowindow_width']){wpgmaps_localize_global_settings['wpgmza_settings_infowindow_width']=false;}
if(wpmgza_infoopen==="1"){infoWindow[wpmgza_marker_id].setContent(html);infoWindow[wpmgza_marker_id].open(MYMAP[map_id].map,marker);}
if(typeof wpgmza_open_marker!=="underfined"){if(wpgmza_open_marker===wpmgza_marker_id){infoWindow[wpmgza_marker_id].setOptions({maxWidth:wpgmaps_localize_global_settings['wpgmza_settings_infowindow_width']});infoWindow[wpmgza_marker_id].setContent(html);infoWindow[wpmgza_marker_id].open(MYMAP[map_id].map,marker);MYMAP[map_id].map.setCenter(point);if(typeof wpgmza_open_marker_zoom!=="undefined"){MYMAP[map_id].map.setZoom(parseInt(wpgmza_open_marker_zoom));}}}
if(typeof wpgmaps_localize[map_id]['other_settings']['click_open_link']!=="undefined"&&wpgmaps_localize[map_id]['other_settings']['click_open_link']===1&&typeof wpmgza_linkd_orig!=="undefined"&&wpmgza_linkd_orig!==""){google.maps.event.addListener(marker,'click',function(evt){location=wpmgza_linkd_orig;});}
if(wpgmaps_localize_global_settings['wpgmza_settings_map_open_marker_by']===""||'undefined'===typeof wpgmaps_localize_global_settings['wpgmza_settings_map_open_marker_by']||wpgmaps_localize_global_settings['wpgmza_settings_map_open_marker_by']==='1'){google.maps.event.addListener(marker,'click',function(evt){wpgmza_open_marker_func(map_id,marker,html,click_from_list,marker_data_object,wpmgza_marker_id);});}else{google.maps.event.addListener(marker,'mouseover',function(evt){wpgmza_open_marker_func(map_id,marker,html,click_from_list,marker_data_object,wpmgza_marker_id);});}
marker_array[map_id][wpmgza_marker_id]=marker;marker_array2[map_id].push(marker);marker_sl_array[map_id].push(wpmgza_marker_id);}}});if(typeof wpgm_g_e!=="undefined"&&wpgm_g_e===true){if(wpgmaps_localize[map_id]['mass_marker_support']==="1"||wpgmaps_localize[map_id]['mass_marker_support']===null){if(typeof markerClusterer[map_id]!=="undefined"){markerClusterer[map_id].addMarkers(marker_array2[map_id]);}}}
if(radius!==null){wpgmza_filter_marker_lists_by_array(map_id,marker_sl_array[map_id]);}}}
if(wpgmaps_localize[entry]['show_user_location']==="1"){if(navigator.geolocation){navigator.geolocation.getCurrentPosition(function(position){user_location=new google.maps.LatLng(position.coords.latitude,position.coords.longitude);if("undefined"!==typeof wpgmaps_localize[map_id]['other_settings']['upload_default_ul_marker']){var marker=new google.maps.Marker({position:user_location,map:MYMAP[map_id].map,icon:wpgmaps_localize[map_id]['other_settings']['upload_default_ul_marker'],animation:google.maps.Animation.DROP});}else{var marker=new google.maps.Marker({position:user_location,map:MYMAP[map_id].map,animation:google.maps.Animation.DROP});}
var wpmgza_marker_id=marker_array[map_id].length+1;infoWindow[wpmgza_marker_id]=new google.maps.InfoWindow();google.maps.event.addListener(marker,'click',function(evt){clearLocations();infoWindow[wpmgza_marker_id].setContent(wpgmaps_lang_my_location);infoWindow[wpmgza_marker_id].open(MYMAP[wpgmaps_localize[entry]['id']].map,marker);});marker_array[map_id][wpmgza_marker_id]=marker;});}else{}}};function wpgmza_open_marker_func(map_id,marker,html,click_from_list,marker_data,wpmgza_marker_id){jQuery('.wpgmza_modern_infowindow').show();jQuery('.wpgmza_modern_infowindow').css('display','block');if((typeof wpgmaps_localize_global_settings['wpgmza_iw_type']!=='undefined'&&parseInt(wpgmaps_localize_global_settings['wpgmza_iw_type'])>=1)||(typeof wpgmaps_localize[map_id]['other_settings']['wpgmza_iw_type']!=="undefined"&&parseInt(wpgmaps_localize[map_id]['other_settings']['wpgmza_iw_type'])>=1)){wpgmza_create_new_iw_window(map_id);modern_iw_open[map_id]=true;if(modern_iw_open[map_id]){}else{}
jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_iw_marker_image").attr("src","");jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_iw_title").html("");jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_iw_description").html("");jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_iw_address_p").html("");jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_more_info_button").attr("href","#");jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_more_info_button").attr("target","");jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_directions_button").attr("gps","");jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_directions_button").attr("href","#");jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_directions_button").attr("id","");jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_directions_button").attr("wpgm_addr_field","");if(marker_data.image===""&&marker_data.title===""){jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_iw_image").css("display","none");}else{jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_iw_image").css("display","block");}
if(marker_data.image!==""){jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_iw_marker_image").css("display","block");jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_iw_marker_image").attr("src",marker_data.image);jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_iw_title").attr("style","position: absolute !important");if(marker_data.title!==""){jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_iw_title").html(marker_data.title);}}else{jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_iw_marker_image").css("display","none");jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_iw_title").attr("style","position: relative !important");if(marker_data.title!==""){jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_iw_title").html(marker_data.title);}}
if(marker_data.desc!==""){jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_iw_description").css("display","block");if(typeof marker_data.desc!=="undefined"&&marker_data.desc!==""){jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_iw_description").html(marker_data.desc);}}else{jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_iw_description").css("display","none");}
if(typeof wpgmaps_localize_global_settings['wpgmza_settings_infowindow_address']!=='undefined'&&wpgmaps_localize_global_settings['wpgmza_settings_infowindow_address']==="yes"){}else{if(typeof marker_data.address!=="undefined"&&marker_data.address!==""){jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_iw_address_p").html(marker_data.address);}}
if(typeof marker_data.link!=="undefined"&&marker_data.link!==""){jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_more_info_button").show();jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_more_info_button").attr("href",marker_data.link);if(marker_data.link_target!==""){jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_more_info_button").attr("target","_BLANK");}}else{jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_more_info_button").hide();}
if(typeof marker_data.directions!=="undefined"&&marker_data.directions!==""){jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_directions_button").show();jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_directions_button").attr("href","javascript:void(0);");jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_directions_button").attr("gps",marker_data.gps);jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_directions_button").attr("wpgm_addr_field",marker_data.address);jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_directions_button").attr("id",map_id);jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_directions_button").addClass("wpgmza_gd");}else{jQuery("#wpgmza_iw_holder_"+map_id+" .wpgmza_directions_button").hide();}
if(click_from_list){MYMAP[map_id].map.panTo(marker.position);MYMAP[map_id].map.setZoom(13);}
click_from_list=false;}else{clearLocations();if(wpgmaps_localize_global_settings['wpgmza_settings_infowindow_width']){infoWindow[wpmgza_marker_id].setOptions({maxWidth:wpgmaps_localize_global_settings['wpgmza_settings_infowindow_width']});}
infoWindow[wpmgza_marker_id].setContent(html);if(click_from_list){MYMAP[map_id].map.panTo(marker.position);MYMAP[map_id].map.setZoom(13);}
click_from_list=false;infoWindow[wpmgza_marker_id].open(MYMAP[map_id].map,marker);}}
function wpgmza_create_new_iw_window(mapid){if((typeof wpgmaps_localize_global_settings['wpgmza_iw_type']!=='undefined'&&parseInt(wpgmaps_localize_global_settings['wpgmza_iw_type'])>=1)||(typeof wpgmaps_localize[mapid]['other_settings']['wpgmza_iw_type']!=="undefined"&&parseInt(wpgmaps_localize[mapid]['other_settings']['wpgmza_iw_type'])>=1)){if(typeof document.getElementById('wpgmza_iw_holder_'+mapid)!=="undefined"){if(wpgmaps_localize_global_settings['wpgmza_settings_infowindow_width']===""||'undefined'===typeof wpgmaps_localize_global_settings['wpgmza_settings_infowindow_width']){wpgmaps_localize_global_settings['wpgmza_settings_infowindow_width']=false;}
var legend=document.getElementById('wpgmza_iw_holder_'+mapid);if(legend!==null){jQuery(legend).remove();}
wpgmza_iw_Div[mapid]=document.createElement('div');wpgmza_iw_Div[mapid].id='wpgmza_iw_holder_'+mapid;wpgmza_iw_Div[mapid].style='display:block;';document.getElementsByTagName('body')[0].appendChild(wpgmza_iw_Div[mapid]);wpgmza_iw_Div_inner=document.createElement('div');wpgmza_iw_Div_inner.className='wpgmza_modern_infowindow_inner wpgmza_modern_infowindow_inner_'+mapid;wpgmza_iw_Div[mapid].appendChild(wpgmza_iw_Div_inner);wpgmza_iw_Div_close=document.createElement('div');wpgmza_iw_Div_close.className='wpgmza_modern_infowindow_close';wpgmza_iw_Div_close.setAttribute('mid',mapid);var t=document.createTextNode("x");wpgmza_iw_Div_close.appendChild(t);wpgmza_iw_Div_inner.appendChild(wpgmza_iw_Div_close);wpgmza_iw_Div_img=document.createElement('div');wpgmza_iw_Div_img.className='wpgmza_iw_image';wpgmza_iw_Div_inner.appendChild(wpgmza_iw_Div_img);wpgmza_iw_img=document.createElement('img');wpgmza_iw_img.className='wpgmza_iw_marker_image';wpgmza_iw_img.src='';wpgmza_iw_img.style='max-width:100%;';wpgmza_iw_Div_img.appendChild(wpgmza_iw_img);wpgmza_iw_img_div=document.createElement('div');wpgmza_iw_img_div.className='wpgmza_iw_title';wpgmza_iw_Div_inner.appendChild(wpgmza_iw_img_div);wpgmza_iw_img_div_p=document.createElement('p');wpgmza_iw_img_div_p.className='wpgmza_iw_title_p';wpgmza_iw_img_div.appendChild(wpgmza_iw_img_div_p);wpgmza_iw_address_div=document.createElement('div');wpgmza_iw_address_div.className='wpgmza_iw_address';wpgmza_iw_Div_inner.appendChild(wpgmza_iw_address_div);wpgmza_iw_address_p=document.createElement('p');wpgmza_iw_address_p.className='wpgmza_iw_address_p';wpgmza_iw_address_div.appendChild(wpgmza_iw_address_p);wpgmza_iw_description=document.createElement('div');wpgmza_iw_description.className='wpgmza_iw_description';wpgmza_iw_Div_inner.appendChild(wpgmza_iw_description);wpgmza_iw_description_p=document.createElement('p');wpgmza_iw_description_p.className='wpgmza_iw_description_p';wpgmza_iw_description.appendChild(wpgmza_iw_description_p);wpgmza_iw_buttons=document.createElement('div');wpgmza_iw_buttons.className='wpgmza_iw_buttons';wpgmza_iw_Div_inner.appendChild(wpgmza_iw_buttons);wpgmza_directions_button=document.createElement('a');wpgmza_directions_button.className='wpgmza_button wpgmza_left wpgmza_directions_button';wpgmza_directions_button.src='#';var t=document.createTextNode(wpgmaps_lang_directions);wpgmza_directions_button.appendChild(t);wpgmza_iw_buttons.appendChild(wpgmza_directions_button);wpgmza_more_info_button=document.createElement('a');wpgmza_more_info_button.className='wpgmza_button wpgmza_right wpgmza_more_info_button';wpgmza_more_info_button.src='#';var t=document.createTextNode(wpgmaps_lang_more_info);wpgmza_more_info_button.appendChild(t);wpgmza_iw_buttons.appendChild(wpgmza_more_info_button);var legend=document.getElementById('wpgmza_iw_holder_'+mapid);jQuery(legend).css('display','block');jQuery(legend).addClass('wpgmza_modern_infowindow');jQuery(legend).addClass('wpgmza-shadow');MYMAP[mapid].map.controls[google.maps.ControlPosition.RIGHT_TOP].push(legend);}}}
function add_heatmap(mapid,datasetid){var tmp_data=wpgmaps_localize_heatmap_settings[mapid][datasetid];var current_poly_id=datasetid;var tmp_polydata=tmp_data['polydata'];var WPGM_PathData=new Array();for(tmp_entry2 in tmp_polydata){if(typeof tmp_polydata[tmp_entry2][0]!=="undefined"){WPGM_PathData.push(new google.maps.LatLng(tmp_polydata[tmp_entry2][0],tmp_polydata[tmp_entry2][1]));}}
if(tmp_data['radius']===null||tmp_data['radius']===""){tmp_data['radius']=20;}
if(tmp_data['gradient']===null||tmp_data['gradient']===""){tmp_data['gradient']=null;}
if(tmp_data['opacity']===null||tmp_data['opacity']===""){tmp_data['opacity']=0.6;}
var bounds=new google.maps.LatLngBounds();for(i=0;i"+tmp_data['title']+"";}else{var content=tmp_data['title'];}
infoWindow_poly[polygonid].setContent(content);infoWindow_poly[polygonid].open(MYMAP[mapid].map,this.position);});}
google.maps.event.addListener(WPGM_Path_Polygon[polygonid],"mouseover",function(event){this.setOptions({fillColor:"#"+tmp_data['ohfillcolor']});this.setOptions({fillOpacity:tmp_data['ohopacity']});this.setOptions({strokeColor:"#"+tmp_data['ohlinecolor']});this.setOptions({strokeWeight:2});this.setOptions({strokeOpacity:0.9});});google.maps.event.addListener(WPGM_Path_Polygon[polygonid],"click",function(event){this.setOptions({fillColor:"#"+tmp_data['ohfillcolor']});this.setOptions({fillOpacity:tmp_data['ohopacity']});this.setOptions({strokeColor:"#"+tmp_data['ohlinecolor']});this.setOptions({strokeWeight:2});this.setOptions({strokeOpacity:0.9});});google.maps.event.addListener(WPGM_Path_Polygon[polygonid],"mouseout",function(event){this.setOptions({fillColor:"#"+tmp_data['fillcolor']});this.setOptions({fillOpacity:tmp_data['opacity']});this.setOptions({strokeColor:"#"+tmp_data['linecolor']});this.setOptions({strokeWeight:2});this.setOptions({strokeOpacity:tmp_data['lineopacity']});});}
function add_polyline(mapid,polyline){var tmp_data=wpgmaps_localize_polyline_settings[mapid][polyline];var current_poly_id=polyline;var tmp_polydata=tmp_data['polydata'];var WPGM_Polyline_PathData=new Array();for(tmp_entry2 in tmp_polydata){if(typeof tmp_polydata[tmp_entry2][0]!=="undefined"&&typeof tmp_polydata[tmp_entry2][1]!=="undefined"){var lat=tmp_polydata[tmp_entry2][0].replace(')','');lat=lat.replace('(','');var lng=tmp_polydata[tmp_entry2][1].replace(')','');lng=lng.replace('(','');WPGM_Polyline_PathData.push(new google.maps.LatLng(lat,lng));}}
if(tmp_data['lineopacity']===null||tmp_data['lineopacity']===""){tmp_data['lineopacity']=1;}
WPGM_Path[polyline]=new google.maps.Polyline({path:WPGM_Polyline_PathData,strokeColor:"#"+tmp_data['linecolor'],strokeOpacity:tmp_data['opacity'],strokeWeight:tmp_data['linethickness'],map:MYMAP[mapid].map});WPGM_Path[polyline].setMap(MYMAP[mapid].map);}}});function openInfoWindow(marker_id,map_id,by_list){if(by_list){click_from_list=true;}else{click_from_list=false;}
if(wpgmaps_localize_global_settings['wpgmza_settings_map_open_marker_by']===""||'undefined'===typeof wpgmaps_localize_global_settings['wpgmza_settings_map_open_marker_by']||wpgmaps_localize_global_settings['wpgmza_settings_map_open_marker_by']==='1'){google.maps.event.trigger(marker_array[map_id][marker_id],'click');}else{google.maps.event.trigger(marker_array[map_id][marker_id],'mouseover');}
click_from_list=false;}
function calcRoute(start,end,mapid,travelmode,avoidtolls,avoidhighways){var request={origin:start,destination:end,travelMode:google.maps.DirectionsTravelMode[travelmode],avoidHighways:avoidhighways,avoidTolls:avoidtolls};dirflg="c";if(travelmode==="DRIVING"){dirflg="d";}
else if(travelmode==="WALKING"){dirflg="w";}
else if(travelmode==="BICYCLING"){dirflg="b";}
else{dirflg="c";}
directionsDisplay[mapid];directionsService[mapid]=new google.maps.DirectionsService();var currentDirections=null;var oldDirections=[];directionsDisplay[mapid]=new google.maps.DirectionsRenderer({'map':MYMAP[mapid].map,'preserveViewport':true,'draggable':true});directionsDisplay[mapid].setPanel(document.getElementById("directions_panel_"+mapid));google.maps.event.addListener(directionsDisplay[mapid],'directions_changed',function(){if(currentDirections){oldDirections.push(currentDirections);}
currentDirections=directionsDisplay[mapid].getDirections();jQuery("#directions_panel_"+mapid).show();jQuery("#wpgmaps_directions_notification_"+mapid).hide();jQuery("#wpgmaps_directions_reset_"+mapid).show();});directionsService[mapid].route(request,function(response,status){if(status===google.maps.DirectionsStatus.OK){directionsDisplay[mapid].setDirections(response);}});jQuery("#wpgmaps_print_directions_"+mapid).attr('href','https://maps.google.com/maps?saddr='+encodeURIComponent(start)+'&daddr='+encodeURIComponent(end)+'&dirflg='+dirflg+'&om=1');}
function wpgmza_show_options(wpgmzamid){jQuery("#wpgmza_options_box_"+wpgmzamid).show();jQuery("#wpgmza_show_options_"+wpgmzamid).hide();jQuery("#wpgmza_hide_options_"+wpgmzamid).show();}
function wpgmza_hide_options(wpgmzamid){jQuery("#wpgmza_options_box_"+wpgmzamid).hide();jQuery("#wpgmza_show_options_"+wpgmzamid).show();jQuery("#wpgmza_hide_options_"+wpgmzamid).hide();}
function wpgmza_reset_directions(wpgmzamid){jQuery("#wpgmaps_directions_editbox_"+wpgmzamid).show();jQuery("#directions_panel_"+wpgmzamid).hide();jQuery("#wpgmaps_directions_notification_"+wpgmzamid).hide();jQuery("#wpgmaps_directions_reset_"+wpgmzamid).hide();}
jQuery("body").on("click",".wpgmza_gd",function(){var wpgmzamid=jQuery(this).attr("id");var end=jQuery(this).attr("wpgm_addr_field");var latLong=jQuery(this).attr("gps");if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){if((navigator.platform.indexOf("iPhone")!=-1)||(navigator.platform.indexOf("iPod")!=-1)||(navigator.platform.indexOf("iPad")!=-1))
window.open("maps://maps.google.com/maps?daddr="+latLong+"&ll=");else
window.open("http://maps.google.com/maps?daddr="+latLong+"&ll=");}else{jQuery("#wpgmaps_directions_edit_"+wpgmzamid).show();jQuery("#wpgmaps_directions_editbox_"+wpgmzamid).show();jQuery("#wpgmza_input_to_"+wpgmzamid).val(end.length>0?end:latLong);jQuery("#wpgmza_input_from_"+wpgmzamid).focus().select();}});jQuery("body").on("click",".wpgmaps_get_directions",function(){var wpgmzamid=jQuery(this).attr("id");var avoidtolls=jQuery('#wpgmza_tolls_'+wpgmzamid).is(':checked');var avoidhighways=jQuery('#wpgmza_highways_'+wpgmzamid).is(':checked');var wpgmza_dir_type=jQuery("#wpgmza_dir_type_"+wpgmzamid).val();var wpgmaps_from=jQuery("#wpgmza_input_from_"+wpgmzamid).val();var wpgmaps_to=jQuery("#wpgmza_input_to_"+wpgmzamid).val();if(wpgmaps_from===""||wpgmaps_to===""){alert(wpgmaps_lang_error1);}
else{calcRoute(wpgmaps_from,wpgmaps_to,wpgmzamid,wpgmza_dir_type,avoidtolls,avoidhighways);jQuery("#wpgmaps_directions_editbox_"+wpgmzamid).hide("slow");jQuery("#wpgmaps_directions_notification_"+wpgmzamid).show("slow");}});jQuery("body").on("keypress",".addressInput",function(event){if(event.which==13){var mid=jQuery(this).attr("mid");jQuery('.wpgmza_sl_search_button_'+mid).trigger('click');}});jQuery('body').on('click','.wpgmza_modern_infowindow_close',function(){var mid=jQuery(this).attr('mid');jQuery("#wpgmza_iw_holder_"+mid).remove();});