function clearText(e){e.defaultValue==e.value&&(e.value="")}function replaceText(e){""==e.value&&(e.value=e.defaultValue)}function validateFormOnSubmit(e){var t="";return t+=validateappointmentdate(e.Field1),t+=validateName(e.Field2),t+=validateEmail(e.Field4),t+=validateTel(e.Field5),""!=(t+=validateMessage(e.Field6))?(alert("Following field(s) need to be Filled:\n"+t),!1):(checkValue(e)&&insitePost(e),setTimeout(function(){e.submit()},500),!0)}function validateFormOnSubmit1(e){var t="";return""!=(t+=validateEmail(e.Field1))?(alert("Following field(s) need to be Filled:\n"+t),!1):(checkValue(e)&&insitePost(e),setTimeout(function(){e.submit()},500),!0)}function validateName(e){var t="";return""==e.value?(e.style.background="",t="- Enter your name\n"):e.style.background="",t}function validateappointmentdate(e){var t="";return""==e.value?(e.style.background="",t="- Please select the date\n"):e.style.background="",t}function trim(e){return e.replace(/^\s+|\s+$/,"")}function validateEmail(e){var t="",n=trim(e.value),i=/^[^@]+@[^@.]+\.[^@]*\w\w$/;return""==e.value?(e.style.background="",t="- Enter your email address\n"):i.test(n)?e.style.background="":(e.style.background="",t="- Please enter a valid email address.\n"),t}function isNumeric(e){return e.length>0&&!isNaN(e)&&-1==e.search(/[A-Z]|[#]/gi)}function validateTel(e){var t="";e.value.replace(/[\(\)\.\-\ ]/g,"");return""==e.value?(t="- Enter your telephone number \n",e.style.color=""):10!=e.value.length?t="- Enter valid telephone number \n":0==isNumeric(e.value)?t="- Enter only numeric values for your telephone number \n":e.style.color="",t}function validateMessage(e){var t="";return""==e.value?(e.style.background="",t="- Enter other specific requests/comments\n"):e.style.background="",t}function validateQuestion(e){var t="";return""==e.value?(e.style.background="",t="- Answer the simple question\n"):e.style.background="",t}!function(e,t){function n(){v(!0)}if(e.respond={},respond.update=function(){},respond.mediaQueriesSupported=t,!t){var i,o,s=e.document,r=s.documentElement,a=[],l=[],c=[],u={},d=s.getElementsByTagName("head")[0]||r,p=d.getElementsByTagName("link"),h=[],f=function(){for(var t,n,i,o,s=p,r=s.length,a=0;a=b.minw)&&(!b.maxw||b.maxw&&u<=b.maxw))&&(h[b.media]||(h[b.media]=[]),h[b.media].push(l[b.rules]))}for(var y in c)c[y]&&c[y].parentNode===d&&d.removeChild(c[y]);for(var y in h){var x=s.createElement("style"),w=h[y].join("\n");x.type="text/css",x.media=y,x.styleSheet?x.styleSheet.cssText=w:x.appendChild(s.createTextNode(w)),f.appendChild(x),c.push(x)}d.insertBefore(f,m.nextSibling)},y=function(e,t){var n=b();n&&(n.open("GET",e,!0),n.onreadystatechange=function(){4!=n.readyState||200!=n.status&&304!=n.status||t(n.responseText)},4!=n.readyState&&n.send(null))},b=function(){var e=!1;try{e=new XMLHttpRequest}catch(t){e=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return e}}();f(),respond.update=f,e.addEventListener?e.addEventListener("resize",n,!1):e.attachEvent&&e.attachEvent("onresize",n)}}(this,function(e){if(e.matchMedia)return!0;var t,n=document,i=n.documentElement,o=i.firstElementChild||i.firstChild,s=!n.body,r=n.body||n.createElement("body"),a=n.createElement("div");return a.id="mq-test-1",a.style.cssText="position:absolute;top:-99em",r.appendChild(a),a.innerHTML='_',s&&i.insertBefore(r,o),a.removeChild(a.firstChild),t=9==a.offsetWidth,s?i.removeChild(r):r.removeChild(a),t}(this)),function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=!!e&&"length"in e&&e.length,n=se.type(e);return"function"!==n&&!se.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t,n){if(se.isFunction(t))return se.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)return se.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(me.test(t))return se.filter(t,e,n);t=se.filter(t,e)}return se.grep(e,function(e){return K.call(t,e)>-1!==n})}function o(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function s(e){var t={};return se.each(e.match(xe)||[],function(e,n){t[n]=!0}),t}function r(){J.removeEventListener("DOMContentLoaded",r),e.removeEventListener("load",r),se.ready()}function a(){this.expando=se.expando+a.uid++}function l(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(_e,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:De.test(n)?se.parseJSON(n):n)}catch(e){}Se.set(e,t,n)}else n=void 0;return n}function c(e,t,n,i){var o,s=1,r=20,a=i?function(){return i.cur()}:function(){return se.css(e,t,"")},l=a(),c=n&&n[3]||(se.cssNumber[t]?"":"px"),u=(se.cssNumber[t]||"px"!==c&&+l)&&Ie.exec(se.css(e,t));if(u&&u[3]!==c){c=c||u[3],n=n||[],u=+l||1;do{s=s||".5",u/=s,se.style(e,t,u+c)}while(s!==(s=a()/l)&&1!==s&&--r)}return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=o)),o}function u(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&se.nodeName(e,t)?se.merge([e],n):n}function d(e,t){for(var n=0,i=e.length;i>n;n++)ke.set(e[n],"globalEval",!t||ke.get(t[n],"globalEval"))}function p(e,t,n,i,o){for(var s,r,a,l,c,p,h=t.createDocumentFragment(),f=[],m=0,g=e.length;g>m;m++)if((s=e[m])||0===s)if("object"===se.type(s))se.merge(f,s.nodeType?[s]:s);else if(Oe.test(s)){for(r=r||h.appendChild(t.createElement("div")),a=(Ne.exec(s)||["",""])[1].toLowerCase(),l=je[a]||je._default,r.innerHTML=l[1]+se.htmlPrefilter(s)+l[2],p=l[0];p--;)r=r.lastChild;se.merge(f,r.childNodes),(r=h.firstChild).textContent=""}else f.push(t.createTextNode(s));for(h.textContent="",m=0;s=f[m++];)if(i&&se.inArray(s,i)>-1)o&&o.push(s);else if(c=se.contains(s.ownerDocument,s),r=u(h.appendChild(s),"script"),c&&d(r),n)for(p=0;s=r[p++];)Ee.test(s.type||"")&&n.push(s);return h}function h(){return!0}function f(){return!1}function m(){try{return J.activeElement}catch(e){}}function g(e,t,n,i,o,s){var r,a;if("object"==typeof t){"string"!=typeof n&&(i=i||n,n=void 0);for(a in t)g(e,a,n,i,t[a],s);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=f;else if(!o)return e;return 1===s&&(r=o,o=function(e){return se().off(e),r.apply(this,arguments)},o.guid=r.guid||(r.guid=se.guid++)),e.each(function(){se.event.add(this,t,o,i,n)})}function v(e,t){return se.nodeName(e,"table")&&se.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function y(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function b(e){var t=qe.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function x(e,t){var n,i,o,s,r,a,l,c;if(1===t.nodeType){if(ke.hasData(e)&&(s=ke.access(e),r=ke.set(t,s),c=s.events)){delete r.handle,r.events={};for(o in c)for(n=0,i=c[o].length;i>n;n++)se.event.add(t,o,c[o][n])}Se.hasData(e)&&(a=Se.access(e),l=se.extend({},a),Se.set(t,l))}}function w(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function C(e,t,n,i){t=G.apply([],t);var o,s,r,a,l,c,d=0,h=e.length,f=h-1,m=t[0],g=se.isFunction(m);if(g||h>1&&"string"==typeof m&&!ie.checkClone&&ze.test(m))return e.each(function(o){var s=e.eq(o);g&&(t[0]=m.call(this,o,s.html())),C(s,t,n,i)});if(h&&(o=p(t,e[0].ownerDocument,!1,e,i),s=o.firstChild,1===o.childNodes.length&&(o=s),s||i)){for(a=(r=se.map(u(o,"script"),y)).length;h>d;d++)l=o,d!==f&&(l=se.clone(l,!0,!0),a&&se.merge(r,u(l,"script"))),n.call(e[d],l,d);if(a)for(c=r[r.length-1].ownerDocument,se.map(r,b),d=0;a>d;d++)l=r[d],Ee.test(l.type||"")&&!ke.access(l,"globalEval")&&se.contains(c,l)&&(l.src?se._evalUrl&&se._evalUrl(l.src):se.globalEval(l.textContent.replace(Be,"")))}return e}function T(e,t,n){for(var i,o=t?se.filter(t,e):e,s=0;null!=(i=o[s]);s++)n||1!==i.nodeType||se.cleanData(u(i)),i.parentNode&&(n&&se.contains(i.ownerDocument,i)&&d(u(i,"script")),i.parentNode.removeChild(i));return e}function k(e,t){var n=se(t.createElement(e)).appendTo(t.body),i=se.css(n[0],"display");return n.detach(),i}function S(e){var t=J,n=Ue[e];return n||("none"!==(n=k(e,t))&&n||(Ye=(Ye||se("",error:'

The requested content cannot be loaded.
Please try again later.

',closeBtn:'',next:'',prev:''},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeChange:n.noop,beforeClose:n.noop,afterClose:n.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(e,t){if(e&&(n.isPlainObject(t)||(t={}),!1!==a.close(!0)))return n.isArray(e)||(e=d(e)?n(e).get():[e]),n.each(e,function(o,s){var r,l,c,u,h,f,m,g={};"object"===n.type(s)&&(s.nodeType&&(s=n(s)),d(s)?(g={href:s.data("fancybox-href")||s.attr("href"),title:s.data("fancybox-title")||s.attr("title"),isDom:!0,element:s},n.metadata&&n.extend(!0,g,s.metadata())):g=s),r=t.href||g.href||(p(s)?s:null),l=t.title!==i?t.title:g.title||"",!(u=(c=t.content||g.content)?"html":t.type||g.type)&&g.isDom&&((u=s.data("fancybox-type"))||(u=(h=s.prop("class").match(/fancybox\.(\w+)/))?h[1]:null)),p(r)&&(u||(a.isImage(r)?u="image":a.isSWF(r)?u="swf":"#"===r.charAt(0)?u="inline":p(s)&&(u="html",c=s)),"ajax"===u&&(r=(f=r.split(/\s+/,2)).shift(),m=f.shift())),c||("inline"===u?r?c=n(p(r)?r.replace(/.*(?=#[^\s]+$)/,""):r):g.isDom&&(c=s):"html"===u?c=r:u||r||!g.isDom||(u="inline",c=s)),n.extend(g,{href:r,type:u,content:c,title:l,selector:m}),e[o]=g}),a.opts=n.extend(!0,{},a.defaults,t),t.keys!==i&&(a.opts.keys=!!t.keys&&n.extend({},a.defaults.keys,t.keys)),a.group=e,a._start(a.opts.index)},cancel:function(){var e=a.coming;e&&!1!==a.trigger("onCancel")&&(a.hideLoading(),a.ajaxLoad&&a.ajaxLoad.abort(),a.ajaxLoad=null,a.imgPreload&&(a.imgPreload.onload=a.imgPreload.onerror=null),e.wrap&&e.wrap.stop(!0,!0).trigger("onReset").remove(),a.coming=null,a.current||a._afterZoomOut(e))},close:function(e){a.cancel(),!1!==a.trigger("beforeClose")&&(a.unbindEvents(),a.isActive&&(a.isOpen&&!0!==e?(a.isOpen=a.isOpened=!1,a.isClosing=!0,n(".fancybox-item, .fancybox-nav").remove(),a.wrap.stop(!0,!0).removeClass("fancybox-opened"),a.transitions[a.current.closeMethod]()):(n(".fancybox-wrap").stop(!0).trigger("onReset").remove(),a._afterZoomOut())))},play:function(e){var t=function(){clearTimeout(a.player.timer)},n=function(){t(),a.current&&a.player.isActive&&(a.player.timer=setTimeout(a.next,a.current.playSpeed))},i=function(){t(),r.unbind(".player"),a.player.isActive=!1,a.trigger("onPlayEnd")};!0===e||!a.player.isActive&&!1!==e?function(){a.current&&(a.current.loop||a.current.index=o.index?"next":"prev"],a.router=n||"jumpto",o.loop&&(e<0&&(e=o.group.length+e%o.group.length),e%=o.group.length),o.group[e]!==i&&(a.cancel(),a._start(e)))},reposition:function(e,t){var i,o=a.current,s=o?o.wrap:null;s&&(i=a._getPosition(t),e&&"scroll"===e.type?(delete i.position,s.stop(!0,!0).animate(i,200)):(s.css(i),o.pos=n.extend({},o.dim,i)))},update:function(e){var t=e&&e.type,n=!t||"orientationchange"===t;n&&(clearTimeout(c),c=null),a.isOpen&&!c&&(c=setTimeout(function(){var i=a.current;i&&!a.isClosing&&(a.wrap.removeClass("fancybox-tmp"),(n||"load"===t||"resize"===t&&i.autoResize)&&a._setDimension(),"scroll"===t&&i.canShrink||a.reposition(e),a.trigger("onUpdate"),c=null)},n&&!u?0:300))},toggle:function(e){a.isOpen&&(a.current.fitToView="boolean"===n.type(e)?e:!a.current.fitToView,u&&(a.wrap.removeAttr("style").addClass("fancybox-tmp"),a.trigger("onUpdate")),a.update())},hideLoading:function(){r.unbind(".loading"),n("#fancybox-loading").remove()},showLoading:function(){var e,t;a.hideLoading(),e=n('
').click(a.cancel).appendTo("body"),r.bind("keydown.loading",function(e){27===(e.which||e.keyCode)&&(e.preventDefault(),a.cancel())}),a.defaults.fixed||(t=a.getViewport(),e.css({position:"absolute",top:.5*t.h+t.y,left:.5*t.w+t.x}))},getViewport:function(){var t=a.current&&a.current.locked||!1,n={x:s.scrollLeft(),y:s.scrollTop()};return t?(n.w=t[0].clientWidth,n.h=t[0].clientHeight):(n.w=u&&e.innerWidth?e.innerWidth:s.width(),n.h=u&&e.innerHeight?e.innerHeight:s.height()),n},unbindEvents:function(){a.wrap&&d(a.wrap)&&a.wrap.unbind(".fb"),r.unbind(".fb"),s.unbind(".fb")},bindEvents:function(){var e,t=a.current;t&&(s.bind("orientationchange.fb"+(u?"":" resize.fb")+(t.autoCenter&&!t.locked?" scroll.fb":""),a.update),(e=t.keys)&&r.bind("keydown.fb",function(o){var s=o.which||o.keyCode,r=o.target||o.srcElement;if(27===s&&a.coming)return!1;o.ctrlKey||o.altKey||o.shiftKey||o.metaKey||r&&(r.type||n(r).is("[contenteditable]"))||n.each(e,function(e,r){return t.group.length>1&&r[s]!==i?(a[e](r[s]),o.preventDefault(),!1):n.inArray(s,r)>-1?(a[e](),o.preventDefault(),!1):void 0})}),n.fn.mousewheel&&t.mouseWheel&&a.wrap.bind("mousewheel.fb",function(e,i,o,s){for(var r=e.target||null,l=n(r),c=!1;l.length&&!(c||l.is(".fancybox-skin")||l.is(".fancybox-wrap"));)c=f(l[0]),l=n(l).parent();0===i||c||a.group.length>1&&!t.canShrink&&(s>0||o>0?a.prev(s>0?"down":"left"):(s<0||o<0)&&a.next(s<0?"up":"right"),e.preventDefault())}))},trigger:function(e,t){var i,o=t||a.coming||a.current;if(o){if(n.isFunction(o[e])&&(i=o[e].apply(o,Array.prototype.slice.call(arguments,1))),!1===i)return!1;o.helpers&&n.each(o.helpers,function(t,i){i&&a.helpers[t]&&n.isFunction(a.helpers[t][e])&&a.helpers[t][e](n.extend(!0,{},a.helpers[t].defaults,i),o)}),r.trigger(e)}},isImage:function(e){return p(e)&&e.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(e){return p(e)&&e.match(/\.(swf)((\?|#).*)?$/i)},_start:function(e){var t,i,o,s,r,l={};if(e=m(e),!(t=a.group[e]||null))return!1;if(l=n.extend(!0,{},a.opts,t),s=l.margin,r=l.padding,"number"===n.type(s)&&(l.margin=[s,s,s,s]),"number"===n.type(r)&&(l.padding=[r,r,r,r]),l.modal&&n.extend(!0,l,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),l.autoSize&&(l.autoWidth=l.autoHeight=!0),"auto"===l.width&&(l.autoWidth=!0),"auto"===l.height&&(l.autoHeight=!0),l.group=a.group,l.index=e,a.coming=l,!1!==a.trigger("beforeLoad")){if(o=l.type,i=l.href,!o)return a.coming=null,!(!a.current||!a.router||"jumpto"===a.router)&&(a.current.index=e,a[a.router](a.direction));if(a.isActive=!0,"image"!==o&&"swf"!==o||(l.autoHeight=l.autoWidth=!1,l.scrolling="visible"),"image"===o&&(l.aspectRatio=!0),"iframe"===o&&u&&(l.scrolling="scroll"),l.wrap=n(l.tpl.wrap).addClass("fancybox-"+(u?"mobile":"desktop")+" fancybox-type-"+o+" fancybox-tmp "+l.wrapCSS).appendTo(l.parent||"body"),n.extend(l,{skin:n(".fancybox-skin",l.wrap),outer:n(".fancybox-outer",l.wrap),inner:n(".fancybox-inner",l.wrap)}),n.each(["Top","Right","Bottom","Left"],function(e,t){l.skin.css("padding"+t,g(l.padding[e]))}),a.trigger("onReady"),"inline"===o||"html"===o){if(!l.content||!l.content.length)return a._error("content")}else if(!i)return a._error("href");"image"===o?a._loadImage():"ajax"===o?a._loadAjax():"iframe"===o?a._loadIframe():a._afterLoad()}else a.coming=null},_error:function(e){n.extend(a.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:e,content:a.coming.tpl.error}),a._afterLoad()},_loadImage:function(){var e=a.imgPreload=new Image;e.onload=function(){this.onload=this.onerror=null,a.coming.width=this.width/a.opts.pixelRatio,a.coming.height=this.height/a.opts.pixelRatio,a._afterLoad()},e.onerror=function(){this.onload=this.onerror=null,a._error("image")},e.src=a.coming.href,!0!==e.complete&&a.showLoading()},_loadAjax:function(){var e=a.coming;a.showLoading(),a.ajaxLoad=n.ajax(n.extend({},e.ajax,{url:e.href,error:function(e,t){a.coming&&"abort"!==t?a._error("ajax",e):a.hideLoading()},success:function(t,n){"success"===n&&(e.content=t,a._afterLoad())}}))},_loadIframe:function(){var e=a.coming,t=n(e.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",u?"auto":e.iframe.scrolling).attr("src",e.href);n(e.wrap).bind("onReset",function(){try{n(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(e){}}),e.iframe.preload&&(a.showLoading(),t.one("load",function(){n(this).data("ready",1),u||n(this).bind("load.fb",a.update),n(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),a._afterLoad()})),e.content=t.appendTo(e.inner),e.iframe.preload||a._afterLoad()},_preloadImages:function(){var e,t,n=a.group,i=a.current,o=n.length,s=i.preload?Math.min(i.preload,o-1):0;for(t=1;t<=s;t+=1)"image"===(e=n[(i.index+t)%o]).type&&e.href&&((new Image).src=e.href)},_afterLoad:function(){var e,t,i,o,s,r,l=a.coming,c=a.current,u="fancybox-placeholder";if(a.hideLoading(),l&&!1!==a.isActive){if(!1===a.trigger("afterLoad",l,c))return l.wrap.stop(!0).trigger("onReset").remove(),void(a.coming=null);switch(c&&(a.trigger("beforeChange",c),c.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),a.unbindEvents(),e=l,t=l.content,i=l.type,o=l.scrolling,n.extend(a,{wrap:e.wrap,skin:e.skin,outer:e.outer,inner:e.inner,current:e,previous:c}),s=e.href,i){case"inline":case"ajax":case"html":e.selector?t=n("
").html(t).find(e.selector):d(t)&&(t.data(u)||t.data(u,n('
').insertAfter(t).hide()),t=t.show().detach(),e.wrap.bind("onReset",function(){n(this).find(t).length&&t.hide().replaceAll(t.data(u)).data(u,!1)}));break;case"image":t=e.tpl.image.replace("{href}",s);break;case"swf":t='',r="",n.each(e.swf,function(e,n){t+='',r+=" "+e+'="'+n+'"'}),t+='"}d(t)&&t.parent().is(e.inner)||e.inner.append(t),a.trigger("beforeShow"),e.inner.css("overflow","yes"===o?"scroll":"no"===o?"hidden":o),a._setDimension(),a.reposition(),a.isOpen=!1,a.coming=null,a.bindEvents(),a.isOpened?c.prevMethod&&a.transitions[c.prevMethod]():n(".fancybox-wrap").not(e.wrap).stop(!0).trigger("onReset").remove(),a.transitions[a.isOpened?e.nextMethod:e.openMethod](),a._preloadImages()}},_setDimension:function(){var e,t,i,o,s,r,l,c,u,d,p,f,v,y,b,x=a.getViewport(),w=0,C=!1,T=!1,k=a.wrap,S=a.skin,D=a.inner,_=a.current,$=_.width,I=_.height,P=_.minWidth,A=_.minHeight,M=_.maxWidth,N=_.maxHeight,E=_.scrolling,j=_.scrollOutside?_.scrollbarWidth:0,O=_.margin,H=m(O[1]+O[3]),F=m(O[0]+O[2]);if(k.add(S).add(D).width("auto").height("auto").removeClass("fancybox-tmp"),e=m(S.outerWidth(!0)-S.width()),t=m(S.outerHeight(!0)-S.height()),i=H+e,o=F+t,s=h($)?(x.w-i)*m($)/100:$,r=h(I)?(x.h-o)*m(I)/100:I,"iframe"===_.type){if(y=_.content,_.autoHeight&&1===y.data("ready"))try{y[0].contentWindow.document.location&&(D.width(s).height(9999),b=y.contents().find("body"),j&&b.css("overflow-x","hidden"),r=b.outerHeight(!0))}catch(e){}}else(_.autoWidth||_.autoHeight)&&(D.addClass("fancybox-tmp"),_.autoWidth||D.width(s),_.autoHeight||D.height(r),_.autoWidth&&(s=D.width()),_.autoHeight&&(r=D.height()),D.removeClass("fancybox-tmp"));if($=m(s),I=m(r),u=s/r,P=m(h(P)?m(P,"w")-i:P),M=m(h(M)?m(M,"w")-i:M),A=m(h(A)?m(A,"h")-o:A),N=m(h(N)?m(N,"h")-o:N),l=M,c=N,_.fitToView&&(M=Math.min(x.w-i,M),N=Math.min(x.h-o,N)),f=x.w-H,v=x.h-F,_.aspectRatio?($>M&&(I=m(($=M)/u)),I>N&&($=m((I=N)*u)),$f||p>v)&&$>P&&I>A&&!(w++>19);)I=Math.max(A,Math.min(N,I-10)),($=m(I*u))M&&(I=m(($=M)/u)),D.width($).height(I),k.width($+e),d=k.width(),p=k.height();else $=Math.max(P,Math.min($,$-(d-f))),I=Math.max(A,Math.min(I,I-(p-v)));j&&"auto"===E&&If||p>v)&&$>P&&I>A,T=_.aspectRatio?$A&&I1)&&a.inner.css("cursor","pointer").bind("click.fb",function(t){n(t.target).is("a")||n(t.target).parent().is("a")||(t.preventDefault(),a[e.closeClick?"close":"next"]())}),e.closeBtn&&n(e.tpl.closeBtn).appendTo(a.skin).bind("click.fb",function(e){e.preventDefault(),a.close()}),e.arrows&&a.group.length>1&&((e.loop||e.index>0)&&n(e.tpl.prev).appendTo(a.outer).bind("click.fb",a.prev),(e.loop||e.index
').appendTo(a.coming?a.coming.parent:e.parent),this.fixed=!1,e.fixed&&a.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(e){var t=this;e=n.extend({},this.defaults,e),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(e),this.fixed||(s.bind("resize.overlay",n.proxy(this.update,this)),this.update()),e.closeClick&&this.overlay.bind("click.overlay",function(e){if(n(e.target).hasClass("fancybox-overlay"))return a.isActive?a.close():t.close(),!1}),this.overlay.css(e.css).show()},close:function(){var e,t;s.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(n(".fancybox-margin").removeClass("fancybox-margin"),e=s.scrollTop(),t=s.scrollLeft(),this.el.removeClass("fancybox-lock"),s.scrollTop(e).scrollLeft(t)),n(".fancybox-overlay").remove().hide(),n.extend(this,{overlay:null,fixed:!1})},update:function(){var e,n="100%";this.overlay.width(n).height("100%"),l?(e=Math.max(t.documentElement.offsetWidth,t.body.offsetWidth),r.width()>e&&(n=r.width())):r.width()>s.width()&&(n=r.width()),this.overlay.width(n).height(r.height())},onReady:function(e,t){var i=this.overlay;n(".fancybox-overlay").stop(!0,!0),i||this.create(e),e.locked&&this.fixed&&t.fixed&&(i||(this.margin=r.height()>s.height()&&n("html").css("margin-right").replace("px","")),t.locked=this.overlay.append(t.wrap),t.fixed=!1),!0===e.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(e,t){var i,o;t.locked&&(!1!==this.margin&&(n("*").filter(function(){return"fixed"===n(this).css("position")&&!n(this).hasClass("fancybox-overlay")&&!n(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),i=s.scrollTop(),o=s.scrollLeft(),this.el.addClass("fancybox-lock"),s.scrollTop(i).scrollLeft(o)),this.open(e)},onUpdate:function(){this.fixed||this.update()},afterClose:function(e){this.overlay&&!a.coming&&this.overlay.fadeOut(e.speedOut,n.proxy(this.close,this))}},a.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(e){var t,i,o=a.current,s=o.title,r=e.type;if(n.isFunction(s)&&(s=s.call(o.element,o)),p(s)&&""!==n.trim(s)){switch(t=n('
'+s+"
"),r){case"inside":i=a.skin;break;case"outside":i=a.wrap;break;case"over":i=a.inner;break;default:i=a.skin,t.appendTo("body"),l&&t.width(t.width()),t.wrapInner(''),a.current.margin[2]+=Math.abs(m(t.css("margin-bottom")))}t["top"===e.position?"prependTo":"appendTo"](i)}}},n.fn.fancybox=function(e){var t,i=n(this),o=this.selector||"",s=function(s){var r,l,c=n(this).blur(),u=t;s.ctrlKey||s.altKey||s.shiftKey||s.metaKey||c.is(".fancybox-wrap")||(r=e.groupAttr||"data-fancybox-group",(l=c.attr(r))||(r="rel",l=c.get(0)[r]),l&&""!==l&&"nofollow"!==l&&(u=(c=(c=o.length?n(o):i).filter("["+r+'="'+l+'"]')).index(this)),e.index=u,!1!==a.open(c,e)&&s.preventDefault())};return e=e||{},t=e.index||0,o&&!1!==e.live?r.undelegate(o,"click.fb-start").delegate(o+":not('.fancybox-item, .fancybox-nav')","click.fb-start",s):i.unbind("click.fb-start").bind("click.fb-start",s),this.filter("[data-fancybox-start=1]").trigger("click"),this},r.ready(function(){var t,s;n.scrollbarWidth===i&&(n.scrollbarWidth=function(){var e=n('
').appendTo("body"),t=e.children(),i=t.innerWidth()-t.height(99).innerWidth();return e.remove(),i}),n.support.fixedPosition===i&&(n.support.fixedPosition=function(){var e=n('
').appendTo("body"),t=20===e[0].offsetTop||15===e[0].offsetTop;return e.remove(),t}()),n.extend(a.defaults,{scrollbarWidth:n.scrollbarWidth(),fixed:n.support.fixedPosition,parent:n("body")}),t=n(e).width(),o.addClass("fancybox-lock-test"),s=n(e).width(),o.removeClass("fancybox-lock-test"),n("").appendTo("head")})}(window,document,jQuery),$(document).ready(function(){$(".fancybox").fancybox({loop:!1})}),$("a.fancy_video").fancybox({width:576,height:324,autoScale:!1,transitionIn:"elastic",transitionOut:"elastic",type:"iframe"}),jQuery.cookie=function(e,t,n){if(void 0===t){var i=null;if(document.cookie&&""!=document.cookie)for(var o=document.cookie.split(";"),s=0;sul").hide()),this.filter(":has(>ul)")},applyClasses:function(n,i){this.filter(":has(>ul):not(:has(>a))").find(">span").click(function(t){i.apply(e(this).next())}).add(e("a",this)).hoverClass(),n.prerendered||(this.filter(":has(>ul:hidden)").addClass(t.expandable).replaceClass(t.last,t.lastExpandable),this.not(":has(>ul:hidden)").addClass(t.collapsable).replaceClass(t.last,t.lastCollapsable),this.prepend('
').find("div."+t.hitarea).each(function(){var t="";e.each(e(this).parent().attr("class").split(" "),function(){t+=this+"-hitarea "}),e(this).addClass(t)})),this.find("div."+t.hitarea).click(i)},treeview:function(n){function i(){e(this).parent().find(">.hitarea").swapClass(t.collapsableHitarea,t.expandableHitarea).swapClass(t.lastCollapsableHitarea,t.lastExpandableHitarea).end().swapClass(t.collapsable,t.expandable).swapClass(t.lastCollapsable,t.lastExpandable).find(">ul").heightToggle(n.animated,n.toggle),n.unique&&e(this).parent().siblings().find(">.hitarea").replaceClass(t.collapsableHitarea,t.expandableHitarea).replaceClass(t.lastCollapsableHitarea,t.lastExpandableHitarea).end().replaceClass(t.collapsable,t.expandable).replaceClass(t.lastCollapsable,t.lastExpandable).find(">ul").heightHide(n.animated,n.toggle)}function o(){var t=[];r.each(function(n,i){t[n]=e(i).is(":has(>ul:visible)")?1:0}),e.cookie(n.cookieId,t.join(""))}if((n=e.extend({cookieId:"treeview"},n)).add)return this.trigger("add",[n.add]);if(n.toggle){var s=n.toggle;n.toggle=function(){return s.apply(e(this).parent()[0],arguments)}}this.addClass("treeview");var r=this.find("li").prepareBranches(n);switch(n.persist){case"cookie":var a=n.toggle;n.toggle=function(){o(),a&&a.apply(this,arguments)},function(){var t=e.cookie(n.cookieId);if(t){var i=t.split("");r.each(function(t,n){e(n).find(">ul")[parseInt(i[t])?"show":"hide"]()})}}();break;case"location":var l=this.find("a").filter(function(){return this.href.toLowerCase()==location.href.toLowerCase()});l.length&&l.addClass("selected").parents("ul, li").add(l.next()).show()}return r.applyClasses(n,i),n.control&&(!function(n,o){function s(o){return function(){return i.apply(e("div."+t.hitarea,n).filter(function(){return!o||e(this).parent("."+o).length})),!1}}e("a:eq(0)",o).click(s(t.collapsable)),e("a:eq(1)",o).click(s(t.expandable)),e("a:eq(2)",o).click(s())}(this,n.control),e(n.control).show()),this.bind("add",function(o,s){e(s).prev().removeClass(t.last).removeClass(t.lastCollapsable).removeClass(t.lastExpandable).find(">.hitarea").removeClass(t.lastCollapsableHitarea).removeClass(t.lastExpandableHitarea),e(s).find("li").andSelf().prepareBranches(n).applyClasses(n,i)})}});var t=e.fn.treeview.classes={open:"open",closed:"closed",expandable:"expandable",expandableHitarea:"expandable-hitarea",lastExpandableHitarea:"lastExpandable-hitarea",collapsable:"collapsable",collapsableHitarea:"collapsable-hitarea",lastCollapsableHitarea:"lastCollapsable-hitarea",lastCollapsable:"lastCollapsable",lastExpandable:"lastExpandable",last:"last",hitarea:"hitarea"};e.fn.Treeview=e.fn.treeview}(jQuery),$(function(){$("#tree").treeview({collapsed:!0,animated:"medium",control:"#sidetreecontrol",persist:"location"})}),$(document).ready(function(){$(".input input").on("focus",function(){$(this).siblings("span").hide()}).on("blur",function(){$(this).val()||$(this).siblings("span").show()}),$(".input textarea").on("focus",function(){$(this).siblings("span").hide()}).on("blur",function(){$(this).val()||$(this).siblings("span").show()})}),function(e){"use strict";var t={i18n:{bg:{months:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],dayOfWeek:["Нд","Пн","Ð’Ñ‚","Ср","Чт","Пт","Сб"]},fa:{months:["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"],dayOfWeek:["یکشنبه","دوشنبه","سه شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"]},ru:{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],dayOfWeek:["Вск","Пн","Ð’Ñ‚","Ср","Чт","Пт","Сб"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeek:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},el:{months:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],dayOfWeek:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"]},de:{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],dayOfWeek:["So","Mo","Di","Mi","Do","Fr","Sa"]},nl:{months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],dayOfWeek:["zo","ma","di","wo","do","vr","za"]},tr:{months:["Ocak","Åžubat","Mart","Nisan","Mayıs","Haziran","Temmuz","AÄŸustos","Eylül","Ekim","Kasım","Aralık"],dayOfWeek:["Paz","Pts","Sal","Çar","Per","Cum","Cts"]},fr:{months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],dayOfWeek:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"]},es:{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],dayOfWeek:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"]},th:{months:["à ¸¡à ¸à ¸£à ¸²à ¸„à ¸¡","à ¸à ¸¸à ¸¡à ¸ à ¸²à ¸žà ¸±à ¸™à ¸˜à ¹Œ","à ¸¡à ¸µà ¸™à ¸²à ¸„à ¸¡","à ¹€à ¸¡à ¸©à ¸²à ¸¢à ¸™","à ¸žà ¸¤à ¸©à ¸ à ¸²à ¸„à ¸¡","à ¸¡à ¸´à ¸–à ¸¸à ¸™à ¸²à ¸¢à ¸™","à ¸à ¸£à ¸à ¸Žà ¸²à ¸„à ¸¡","à ¸ªà ¸´à ¸‡à ¸«à ¸²à ¸„à ¸¡","à ¸à ¸±à ¸™à ¸¢à ¸²à ¸¢à ¸™","à ¸•à ¸¸à ¸¥à ¸²à ¸„à ¸¡","à ¸žà ¸¤à ¸¨à ¸ˆà ¸´à ¸à ¸²à ¸¢à ¸™","à ¸˜à ¸±à ¸™à ¸§à ¸²à ¸„à ¸¡"],dayOfWeek:["à ¸­à ¸².","à ¸ˆ.","à ¸­.","à ¸ž.","à ¸žà ¸¤.","à ¸¨.","à ¸ª."]},pl:{months:["styczeÅ„","luty","marzec","kwiecieÅ„","maj","czerwiec","lipiec","sierpieÅ„","wrzesieÅ„","październik","listopad","grudzieÅ„"],dayOfWeek:["nd","pn","wt","Å›r","cz","pt","sb"]},pt:{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeek:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"]},ch:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeek:["æ—¥","一","二","三","å››","五","å…­"]},se:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeek:["Sön","MÃ¥n","Tis","Ons","Tor","Fre","Lör"]},kr:{months:["1ì›”","2ì›”","3ì›”","4ì›”","5ì›”","6ì›”","7ì›”","8ì›”","9ì›”","10ì›”","11ì›”","12ì›”"],dayOfWeek:["일","ì›”","í™”","수","목","금","í†"]},it:{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],dayOfWeek:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"]},da:{months:["January","Februar","Marts","April","Maj","Juni","July","August","September","Oktober","November","December"],dayOfWeek:["Søn","Man","Tir","ons","Tor","Fre","lør"]},no:{months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],dayOfWeek:["Søn","Man","Tir","Ons","Tor","Fre","Lør"]},ja:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["æ—¥","月","火","æ°´","木","金","土"]},vi:{months:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],dayOfWeek:["CN","T2","T3","T4","T5","T6","T7"]},sl:{months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],dayOfWeek:["Ned","Pon","Tor","Sre","ÄŒet","Pet","Sob"]},cs:{months:["Leden","Únor","BÅ™ezen","Duben","KvÄ›ten","ÄŒerven","ÄŒervenec","Srpen","Září","Říjen","Listopad","Prosinec"],dayOfWeek:["Ne","Po","Út","St","ÄŒt","Pá","So"]},hu:{months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],dayOfWeek:["Va","Hé","Ke","Sze","Cs","Pé","Szo"]}},value:"",lang:"en",format:"Y/m/d H:i",formatTime:"H:i",formatDate:"Y/m/d",startDate:!1,step:60,monthChangeSpinner:!0,closeOnDateSelect:!1,closeOnWithoutClick:!0,closeOnInputClick:!0,timepicker:!0,datepicker:!0,weeks:!1,defaultTime:!1,defaultDate:!1,minDate:!1,maxDate:!1,minTime:!1,maxTime:!1,allowTimes:[],opened:!1,initTime:!0,inline:!1,onSelectDate:function(){},onSelectTime:function(){},onChangeMonth:function(){},onChangeDateTime:function(){},onShow:function(){},onClose:function(){},onGenerate:function(){},withoutCopyright:!0,inverseButton:!1,hours12:!1,next:"xdsoft_next",prev:"xdsoft_prev",dayOfWeekStart:0,timeHeightInTimePicker:25,timepickerScrollbar:!0,todayButton:!0,defaultSelect:!0,scrollMonth:!0,scrollTime:!0,scrollInput:!0,lazyInit:!1,mask:!1,validateOnBlur:!0,allowBlank:!0,yearStart:1950,yearEnd:2050,style:"",id:"",fixed:!1,roundTime:"round",className:"",weekends:[],yearOffset:0,beforeShowDay:null};Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){for(var n=t||0,i=this.length;n
'),c=e('
'),u=100,d=!1;l.append(c),n.addClass("xdsoft_scroller_box").append(l),c.on("mousedown.xdsoft_scroller",function(i){r||n.trigger("resize_scroll.xdsoft_scroller",[t]);var s=i.pageY,a=parseInt(c.css("margin-top")),d=l[0].offsetHeight;e(document.body).addClass("xdsoft_noselect"),e([document.body,window]).on("mouseup.xdsoft_scroller",function t(){e([document.body,window]).off("mouseup.xdsoft_scroller",t).off("mousemove.xdsoft_scroller",o).removeClass("xdsoft_noselect")}),e(document.body).on("mousemove.xdsoft_scroller",o=function(e){var t=e.pageY-s+a;t<0&&(t=0),t+c[0].offsetHeight>d&&(t=d-c[0].offsetHeight),n.trigger("scroll_element.xdsoft_scroller",[u?t/u:0])})}),n.on("scroll_element.xdsoft_scroller",function(e,t){r||n.trigger("resize_scroll.xdsoft_scroller",[t,!0]),t=t>1?1:t<0||isNaN(t)?0:t,c.css("margin-top",u*t),s.css("marginTop",-parseInt((a-r)*t))}).on("resize_scroll.xdsoft_scroller",function(e,t,i){r=n[0].clientHeight,a=s[0].offsetHeight;var o=r/a,d=o*l[0].offsetHeight;o>1?c.hide():(c.show(),c.css("height",parseInt(d>10?d:10)),u=l[0].offsetHeight-c[0].offsetHeight,!0!==i&&n.trigger("scroll_element.xdsoft_scroller",[t||Math.abs(parseInt(s.css("marginTop")))/(a-r)]))}),n.mousewheel&&n.mousewheel(function(e,t,i,o){var l=Math.abs(parseInt(s.css("marginTop")));return n.trigger("scroll_element.xdsoft_scroller",[(l-20*t)/(a-r)]),e.stopPropagation(),!1}),n.on("touchstart",function(e){d=i(e)}),n.on("touchmove",function(e){if(d){var t=i(e),o=Math.abs(parseInt(s.css("marginTop")));n.trigger("scroll_element.xdsoft_scroller",[(o-(t.y-d.y))/(a-r)]),e.stopPropagation(),e.preventDefault(),d=i(e)}}),n.on("touchend touchcancel",function(e){d=!1})}n.trigger("resize_scroll.xdsoft_scroller",[t])})},e.fn.datetimepicker=function(n){var i=46,o=!1,s=e.isPlainObject(n)||!n?e.extend(!0,{},t,n):e.extend({},t),r=0,a=function(e){e.on("open.xdsoft focusin.xdsoft mousedown.xdsoft",function t(n){e.is(":disabled")||e.is(":hidden")||!e.is(":visible")||e.data("xdsoft_datetimepicker")||(clearTimeout(r),r=setTimeout(function(){e.data("xdsoft_datetimepicker")||l(e),e.off("open.xdsoft focusin.xdsoft mousedown.xdsoft",t).trigger("open.xdsoft")},100))})},l=function(t){function n(){var e=!1;return s.startDate?e=y.strToDateTime(s.startDate):(e=s.value?s.value:t&&t.val&&t.val()?t.val():"",e=Date.parseDate(e,s.format)),e&&y.isValidDate(e)?r.data("changed",!0):e="",e||0}var r=e("
'),a=e(''),l=e('
'),c=e('
'),u=e('
'),d=e('
'),p=d.find(".xdsoft_time_box").eq(0),h=e('
'),f=e('
'),m=(e('
'),e('
')),g=e('
');c.find(".xdsoft_month span").after(m),c.find(".xdsoft_year span").after(g),c.find(".xdsoft_month,.xdsoft_year").on("mousedown.xdsoft",function(t){c.find(".xdsoft_select").hide();var n=e(this).find(".xdsoft_select").eq(0),i=0,o=0;y.currentTime&&(i=y.currentTime[e(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),n.show();for(var s=n.find("div.xdsoft_option"),r=0;r6?s.dayOfWeekStart=0:s.dayOfWeekStart=parseInt(s.dayOfWeekStart),s.timepickerScrollbar||f.hide(),s.minDate&&/^-(.*)$/.test(s.minDate)&&(s.minDate=y.strToDateTime(s.minDate).dateFormat(s.formatDate)),s.maxDate&&/^\+(.*)$/.test(s.maxDate)&&(s.maxDate=y.strToDateTime(s.maxDate).dateFormat(s.formatDate)),c.find(".xdsoft_today_button").css("visibility",s.todayButton?"visible":"hidden"),s.mask){var a=function(e){try{if(document.selection&&document.selection.createRange)return document.selection.createRange().getBookmark().charCodeAt(2)-2;if(e.setSelectionRange)return e.selectionStart}catch(e){return 0}},u=function(e,t){if(!(e="string"==typeof e||e instanceof String?document.getElementById(e):e))return!1;if(e.createTextRange){var n=e.createTextRange();return n.collapse(!0),n.moveEnd(t),n.moveStart(t),n.select(),!0}return!!e.setSelectionRange&&(e.setSelectionRange(t,t),!0)},p=function(e,t){var n=e.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,"\\$1").replace(/_/g,"{digit+}").replace(/([0-9]{1})/g,"{digit$1}").replace(/\{digit([0-9]{1})\}/g,"[0-$1_]{1}").replace(/\{digit[\+]\}/g,"[0-9_]{1}");return RegExp(n).test(t)};switch(t.off("keydown.xdsoft"),!0){case!0===s.mask:s.mask=s.format.replace(/Y/g,"9999").replace(/F/g,"9999").replace(/m/g,"19").replace(/d/g,"39").replace(/H/g,"29").replace(/i/g,"59").replace(/s/g,"59");case"string"==e.type(s.mask):p(s.mask,t.val())||t.val(s.mask.replace(/[0-9]/g,"_")),t.on("keydown.xdsoft",function(n){var r=this.value,l=n.which;switch(!0){case l>=48&&l<=57||l>=96&&l<=105||8==l||l==i:var c=a(this),d=8!=l&&l!=i?String.fromCharCode(96<=l&&l<=105?l-48:l):"_";for(8!=l&&l!=i||!c||(c--,d="_");/[^0-9_]/.test(s.mask.substr(c,1))&&c0;)c+=8==l||l==i?-1:1;if(r=r.substr(0,c)+d+r.substr(c+1),""==e.trim(r))r=s.mask.replace(/[0-9]/g,"_");else if(c==s.mask.length)break;for(c+=8==l||l==i?0:1;/[^0-9_]/.test(s.mask.substr(c,1))&&c0;)c+=8==l||l==i?-1:1;p(s.mask,r)?(this.value=r,u(this,c)):""==e.trim(r)?this.value=s.mask.replace(/[0-9]/g,"_"):t.trigger("error_input.xdsoft");break;case!!~[65,67,86,90,89].indexOf(l)&&o:case!!~[27,38,40,37,39,116,17,9,13].indexOf(l):return!0}return n.preventDefault(),!1})}}s.validateOnBlur&&t.off("blur.xdsoft").on("blur.xdsoft",function(){s.allowBlank&&!e.trim(e(this).val()).length?(e(this).val(null),r.data("xdsoft_datetime").empty()):Date.parseDate(e(this).val(),s.format)?r.data("xdsoft_datetime").setCurrentTime(e(this).val()):(e(this).val(y.now().dateFormat(s.format)),r.data("xdsoft_datetime").setCurrentTime(e(this).val())),r.trigger("changedatetime.xdsoft")}),s.dayOfWeekStartPrev=0==s.dayOfWeekStart?6:s.dayOfWeekStart-1,r.trigger("xchange.xdsoft").trigger("afterOpen.xdsoft")},r.data("options",s).on("mousedown.xdsoft",function(e){return e.stopPropagation(),e.preventDefault(),g.hide(),m.hide(),!1});var v=d.find(".xdsoft_time_box");v.append(h),v.xdsoftScroller(),r.on("afterOpen.xdsoft",function(){v.xdsoftScroller()}),r.append(l).append(d),!0!==s.withoutCopyright&&r.append(a),l.append(c).append(u),e("body").append(r);var y=new function(){var e=this;e.now=function(t){var n=new Date;if(!t&&s.defaultDate){var i=e.strtodate(s.defaultDate);n.setFullYear(i.getFullYear()),n.setMonth(i.getMonth()),n.setDate(i.getDate())}if(s.yearOffset&&n.setFullYear(n.getFullYear()+s.yearOffset),!t&&s.defaultTime){var o=e.strtotime(s.defaultTime);n.setHours(o.getHours()),n.setMinutes(o.getMinutes())}return n},e.isValidDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())},e.setCurrentTime=function(t){e.currentTime="string"==typeof t?e.strToDateTime(t):e.isValidDate(t)?t:e.now(),r.trigger("xchange.xdsoft")},e.empty=function(){e.currentTime=null},e.getCurrentTime=function(t){return e.currentTime},e.nextMonth=function(){var t=e.currentTime.getMonth()+1;return 12==t&&(e.currentTime.setFullYear(e.currentTime.getFullYear()+1),t=0),e.currentTime.setDate(Math.min(Date.daysInMonth[t],e.currentTime.getDate())),e.currentTime.setMonth(t),s.onChangeMonth&&s.onChangeMonth.call&&s.onChangeMonth.call(r,y.currentTime,r.data("input")),r.trigger("xchange.xdsoft"),t},e.prevMonth=function(){var t=e.currentTime.getMonth()-1;return-1==t&&(e.currentTime.setFullYear(e.currentTime.getFullYear()-1),t=11),e.currentTime.setDate(Math.min(Date.daysInMonth[t],e.currentTime.getDate())),e.currentTime.setMonth(t),s.onChangeMonth&&s.onChangeMonth.call&&s.onChangeMonth.call(r,y.currentTime,r.data("input")),r.trigger("xchange.xdsoft"),t},e.strToDateTime=function(t){if(t&&t instanceof Date&&e.isValidDate(t))return t;var n,i,o=[];return(o=/^(\+|\-)(.*)$/.exec(t))&&(o[2]=Date.parseDate(o[2],s.formatDate))?(n=o[2].getTime()-6e4*o[2].getTimezoneOffset(),i=new Date(y.now().getTime()+parseInt(o[1]+"1")*n)):i=t?Date.parseDate(t,s.format):e.now(),e.isValidDate(i)||(i=e.now()),i},e.strtodate=function(t){if(t&&t instanceof Date&&e.isValidDate(t))return t;var n=t?Date.parseDate(t,s.formatDate):e.now(!0);return e.isValidDate(n)||(n=e.now(!0)),n},e.strtotime=function(t){if(t&&t instanceof Date&&e.isValidDate(t))return t;var n=t?Date.parseDate(t,s.formatTime):e.now();return e.isValidDate(n)||(n=e.now(!0)),n},e.str=function(){return e.currentTime.dateFormat(s.format)},e.currentTime=this.now()};c.find(".xdsoft_today_button").on("mousedown.xdsoft",function(){r.data("changed",!0),y.setCurrentTime(0),r.trigger("afterOpen.xdsoft")}).on("dblclick.xdsoft",function(){t.val(y.str()),r.trigger("close.xdsoft")}),c.find(".xdsoft_prev,.xdsoft_next").on("mousedown.xdsoft",function(){var t=e(this),n=0,i=!1;!function e(o){y.currentTime.getMonth();t.hasClass(s.next)?y.nextMonth():t.hasClass(s.prev)&&y.prevMonth(),s.monthChangeSpinner&&!i&&(n=setTimeout(e,o||100))}(500),e([document.body,window]).on("mouseup.xdsoft",function t(){clearTimeout(n),i=!0,e([document.body,window]).off("mouseup.xdsoft",t)})}),d.find(".xdsoft_prev,.xdsoft_next").on("mousedown.xdsoft",function(){var t=e(this),n=0,i=!1,o=110;!function e(r){var a=p[0].clientHeight,l=h[0].offsetHeight,c=Math.abs(parseInt(h.css("marginTop")));t.hasClass(s.next)&&l-a-s.timeHeightInTimePicker>=c?h.css("marginTop","-"+(c+s.timeHeightInTimePicker)+"px"):t.hasClass(s.prev)&&c-s.timeHeightInTimePicker>=0&&h.css("marginTop","-"+(c-s.timeHeightInTimePicker)+"px"),p.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(h.css("marginTop"))/(l-a))]),o=o>10?10:o-10,!i&&(n=setTimeout(e,r||o))}(500),e([document.body,window]).on("mouseup.xdsoft",function t(){clearTimeout(n),i=!0,e([document.body,window]).off("mouseup.xdsoft",t)})});var b=0;r.on("xchange.xdsoft",function(t){clearTimeout(b),b=setTimeout(function(){for(var t="",n=new Date(y.currentTime.getFullYear(),y.currentTime.getMonth(),1,12,0,0),i=0,o=y.now();n.getDay()!=s.dayOfWeekStart;)n.setDate(n.getDate()-1);t+="",s.weeks&&(t+="");for(k=0;k<7;k++)t+="";t+="",t+="";var a=!1,l=!1;!1!==s.maxDate&&(a=y.strtodate(s.maxDate),a=new Date(a.getFullYear(),a.getMonth(),a.getDate(),23,59,59,999)),!1!==s.minDate&&(l=y.strtodate(s.minDate),l=new Date(l.getFullYear(),l.getMonth(),l.getDate()));for(var d,p,f,v,b=[],x=!0;ia||!1!==l&&n"+f+"")),t+='",n.getDay()==s.dayOfWeekStartPrev&&(t+="",x=!0),n.setDate(d+1);t+="
"+s.i18n[s.lang].dayOfWeek[k+s.dayOfWeekStart>6?0:k+s.dayOfWeekStart]+"
'+d+"
",u.html(t),c.find(".xdsoft_label span").eq(0).text(s.i18n[s.lang].months[y.currentTime.getMonth()]),c.find(".xdsoft_label span").eq(1).text(y.currentTime.getFullYear());var w="",C="",T=function(e,t){var n=y.now();n.setHours(e),e=parseInt(n.getHours()),n.setMinutes(t),t=parseInt(n.getMinutes()),b=[],(!1!==s.maxTime&&y.strtotime(s.maxTime).getTime()n.getTime())&&b.push("xdsoft_disabled"),(s.initTime||s.defaultSelect||r.data("changed"))&&parseInt(y.currentTime.getHours())==parseInt(e)&&(s.step>59||Math[s.roundTime](y.currentTime.getMinutes()/s.step)*s.step==parseInt(t))&&(s.defaultSelect||r.data("changed")?b.push("xdsoft_current"):s.initTime&&b.push("xdsoft_init_time")),parseInt(o.getHours())==parseInt(e)&&parseInt(o.getMinutes())==parseInt(t)&&b.push("xdsoft_today"),w+='
'+n.dateFormat(s.formatTime)+"
"};if(s.allowTimes&&e.isArray(s.allowTimes)&&s.allowTimes.length)for(i=0;i'+i+"
";for(g.children().eq(0).html(S),i=0,S="";i<=11;i++)S+='
'+s.i18n[s.lang].months[i]+"
";m.children().eq(0).html(S),e(r).trigger("generate.xdsoft")},10),t.stopPropagation()}).on("afterOpen.xdsoft",function(){if(s.timepicker){var e;if(h.find(".xdsoft_current").length?e=".xdsoft_current":h.find(".xdsoft_init_time").length&&(e=".xdsoft_init_time"),e){var t=p[0].clientHeight,n=h[0].offsetHeight,i=h.find(e).index()*s.timeHeightInTimePicker+1;n-t1||!0===s.closeOnDateSelect||0===s.closeOnDateSelect&&!s.timepicker)&&!s.inline&&r.trigger("close.xdsoft"),s.onSelectDate&&s.onSelectDate.call&&s.onSelectDate.call(r,y.currentTime,r.data("input")),r.data("changed",!0),r.trigger("xchange.xdsoft"),r.trigger("changedatetime.xdsoft"),setTimeout(function(){x=0},200)}),h.on("click.xdsoft","div",function(t){t.stopPropagation();var n=e(this),i=y.currentTime;if(void 0!==i&&null!==i||(y.currentTime=y.now(),i=y.currentTime),n.hasClass("xdsoft_disabled"))return!1;i.setHours(n.data("hour")),i.setMinutes(n.data("minute")),r.trigger("select.xdsoft",[i]),r.data("input").val(y.str()),!s.inline&&r.trigger("close.xdsoft"),s.onSelectTime&&s.onSelectTime.call&&s.onSelectTime.call(r,y.currentTime,r.data("input")),r.data("changed",!0),r.trigger("xchange.xdsoft"),r.trigger("changedatetime.xdsoft")}),r.mousewheel&&l.mousewheel(function(e,t,n,i){return!s.scrollMonth||(t<0?y.nextMonth():y.prevMonth(),!1)}),r.mousewheel&&p.unmousewheel().mousewheel(function(e,t,n,i){if(!s.scrollTime)return!0;var o=p[0].clientHeight,r=h[0].offsetHeight,a=Math.abs(parseInt(h.css("marginTop"))),l=!0;return t<0&&r-o-s.timeHeightInTimePicker>=a?(h.css("marginTop","-"+(a+s.timeHeightInTimePicker)+"px"),l=!1):t>0&&a-s.timeHeightInTimePicker>=0&&(h.css("marginTop","-"+(a-s.timeHeightInTimePicker)+"px"),l=!1),p.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(h.css("marginTop"))/(r-o))]),e.stopPropagation(),l});var w=!1;r.on("changedatetime.xdsoft",function(){if(s.onChangeDateTime&&s.onChangeDateTime.call){var e=r.data("input");s.onChangeDateTime.call(r,y.currentTime,e),e.trigger("change")}}).on("generate.xdsoft",function(){s.onGenerate&&s.onGenerate.call&&s.onGenerate.call(r,y.currentTime,r.data("input")),w&&(r.trigger("afterOpen.xdsoft"),w=!1)}).on("click.xdsoft",function(e){e.stopPropagation()});var C=0;t.mousewheel&&t.mousewheel(function(e,n,i,o){return!s.scrollInput||(!s.datepicker&&s.timepicker?((C=h.find(".xdsoft_current").length?h.find(".xdsoft_current").eq(0).index():0)+n>=0&&C+ne(window).height()+e(window).scrollTop()&&(n=t.top-r[0].offsetHeight+1),n<0&&(n=0),i+r[0].offsetWidth>e(window).width()&&(i=t.left-r[0].offsetWidth+r.data("input")[0].offsetWidth)),r.css({left:i,top:n,position:o})};r.on("open.xdsoft",function(){var t=!0;s.onShow&&s.onShow.call&&(t=s.onShow.call(r,y.currentTime,r.data("input"))),!1!==t&&(r.show(),T(),e(window).off("resize.xdsoft",T).on("resize.xdsoft",T),s.closeOnWithoutClick&&e([document.body,window]).on("mousedown.xdsoft",function t(){r.trigger("close.xdsoft"),e([document.body,window]).off("mousedown.xdsoft",t)}))}).on("close.xdsoft",function(e){var t=!0;s.onClose&&s.onClose.call&&(t=s.onClose.call(r,y.currentTime,r.data("input"))),!1===t||s.opened||s.inline||r.hide(),e.stopPropagation()}).data("input",t);var k=0;r.data("xdsoft_datetime",y),r.setOptions(s),y.setCurrentTime(n()),t.data("xdsoft_datetimepicker",r).on("open.xdsoft focusin.xdsoft mousedown.xdsoft",function(e){t.is(":disabled")||t.is(":hidden")||!t.is(":visible")||t.data("xdsoft_datetimepicker").is(":visible")&&s.closeOnInputClick||(clearTimeout(k),k=setTimeout(function(){t.is(":disabled")||t.is(":hidden")||!t.is(":visible")||(w=!0,y.setCurrentTime(n()),r.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(t){this.value;var n=t.which;switch(!0){case!!~[13].indexOf(n):var i=e("input:visible,textarea:visible");return r.trigger("close.xdsoft"),i.eq(i.index(this)+1).focus(),!1;case!!~[9].indexOf(n):return r.trigger("close.xdsoft"),!0}})},c=function(t){var n=t.data("xdsoft_datetimepicker");n&&(n.data("xdsoft_datetime",null),n.remove(),t.data("xdsoft_datetimepicker",null).off("open.xdsoft focusin.xdsoft focusout.xdsoft mousedown.xdsoft blur.xdsoft keydown.xdsoft"),e(window).off("resize.xdsoft"),e([window,document.body]).off("mousedown.xdsoft"),t.unmousewheel&&t.unmousewheel())};return e(document).off("keydown.xdsoftctrl keyup.xdsoftctrl").on("keydown.xdsoftctrl",function(e){17==e.keyCode&&(o=!0)}).on("keyup.xdsoftctrl",function(e){17==e.keyCode&&(o=!1)}),this.each(function(){var t;if(t=e(this).data("xdsoft_datetimepicker")){if("string"===e.type(n))switch(n){case"show":e(this).select().focus(),t.trigger("open.xdsoft");break;case"hide":t.trigger("close.xdsoft");break;case"destroy":c(e(this));break;case"reset":this.value=this.defaultValue,this.value&&t.data("xdsoft_datetime").isValidDate(Date.parseDate(this.value,s.format))||t.data("changed",!1),t.data("xdsoft_datetime").setCurrentTime(this.value)}else t.setOptions(n);return 0}"string"!==e.type(n)&&(!s.lazyInit||s.open||s.inline?l(e(this)):a(e(this)))})},e.fn.datetimepicker.defaults=t}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var o,s=t||window.event,r=[].slice.call(arguments,1),a=0,l=0,c=0,u=0,d=0;return t=e.event.fix(s),t.type="mousewheel",s.wheelDelta&&(a=s.wheelDelta),s.detail&&(a=-1*s.detail),s.deltaY&&(a=c=-1*s.deltaY),s.deltaX&&(a=-1*(l=s.deltaX)),void 0!==s.wheelDeltaY&&(c=s.wheelDeltaY),void 0!==s.wheelDeltaX&&(l=-1*s.wheelDeltaX),u=Math.abs(a),(!n||u0?"floor":"ceil",a=Math[o](a/n),l=Math[o](l/i),c=Math[o](c/i),r.unshift(t,a,l,c),(e.event.dispatch||e.event.handle).apply(this,r)}var n,i,o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],s="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"];if(e.event.fixHooks)for(var r=o.length;r;)e.event.fixHooks[o[--r]]=e.event.mouseHooks;e.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var e=s.length;e;)this.addEventListener(s[--e],t,!1);else this.onmousewheel=t},teardown:function(){if(this.removeEventListener)for(var e=s.length;e;)this.removeEventListener(s[--e],t,!1);else this.onmousewheel=null}},e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),Date.parseFunctions={count:0},Date.parseRegexes=[],Date.formatFunctions={count:0},Date.prototype.dateFormat=function(e){return"unixtime"==e?parseInt(this.getTime()/1e3):(null==Date.formatFunctions[e]&&Date.createNewFormat(e),this[Date.formatFunctions[e]]())},Date.createNewFormat=function(format){var funcName="format"+Date.formatFunctions.count++;Date.formatFunctions[format]=funcName;for(var code="Date.prototype."+funcName+" = function() {return ",special=!1,ch="",i=0;i 0) {",regex="",special=!1,ch="",i=0;i 0 && z > 0){\nvar doyDate = new Date(y,0);\ndoyDate.setDate(z);\nm = doyDate.getMonth();\nd = doyDate.getDate();\n}",code+="if (y > 0 && m >= 0 && d > 0 && h >= 0 && i >= 0 && s >= 0)\n{return new Date(y, m, d, h, i, s);}\nelse if (y > 0 && m >= 0 && d > 0 && h >= 0 && i >= 0)\n{return new Date(y, m, d, h, i);}\nelse if (y > 0 && m >= 0 && d > 0 && h >= 0)\n{return new Date(y, m, d, h);}\nelse if (y > 0 && m >= 0 && d > 0)\n{return new Date(y, m, d);}\nelse if (y > 0 && m >= 0)\n{return new Date(y, m);}\nelse if (y > 0)\n{return new Date(y);}\n}return null;}",Date.parseRegexes[regexNum]=new RegExp("^"+regex+"$"),eval(code)},Date.formatCodeToRegex=function(e,t){switch(e){case"D":return{g:0,c:null,s:"(?:Sun|Mon|Tue|Wed|Thu|Fri|Sat)"};case"j":case"d":return{g:1,c:"d = parseInt(results["+t+"], 10);\n",s:"(\\d{1,2})"};case"l":return{g:0,c:null,s:"(?:"+Date.dayNames.join("|")+")"};case"S":return{g:0,c:null,s:"(?:st|nd|rd|th)"};case"w":return{g:0,c:null,s:"\\d"};case"z":return{g:1,c:"z = parseInt(results["+t+"], 10);\n",s:"(\\d{1,3})"};case"W":return{g:0,c:null,s:"(?:\\d{2})"};case"F":return{g:1,c:"m = parseInt(Date.monthNumbers[results["+t+"].substring(0, 3)], 10);\n",s:"("+Date.monthNames.join("|")+")"};case"M":return{g:1,c:"m = parseInt(Date.monthNumbers[results["+t+"]], 10);\n",s:"(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)"};case"n":case"m":return{g:1,c:"m = parseInt(results["+t+"], 10) - 1;\n",s:"(\\d{1,2})"};case"t":return{g:0,c:null,s:"\\d{1,2}"};case"L":return{g:0,c:null,s:"(?:1|0)"};case"Y":return{g:1,c:"y = parseInt(results["+t+"], 10);\n",s:"(\\d{4})"};case"y":return{g:1,c:"var ty = parseInt(results["+t+"], 10);\ny = ty > Date.y2kYear ? 1900 + ty : 2000 + ty;\n",s:"(\\d{1,2})"};case"a":return{g:1,c:"if (results["+t+"] == 'am') {\nif (h == 12) { h = 0; }\n} else { if (h < 12) { h += 12; }}",s:"(am|pm)"};case"A":return{g:1,c:"if (results["+t+"] == 'AM') {\nif (h == 12) { h = 0; }\n} else { if (h < 12) { h += 12; }}",s:"(AM|PM)"};case"g":case"G":case"h":case"H":return{g:1,c:"h = parseInt(results["+t+"], 10);\n",s:"(\\d{1,2})"};case"i":return{g:1,c:"i = parseInt(results["+t+"], 10);\n",s:"(\\d{2})"};case"s":return{g:1,c:"s = parseInt(results["+t+"], 10);\n",s:"(\\d{2})"};case"O":return{g:0,c:null,s:"[+-]\\d{4}"};case"T":return{g:0,c:null,s:"[A-Z]{3}"};case"Z":return{g:0,c:null,s:"[+-]\\d{1,5}"};default:return{g:0,c:null,s:String.escape(e)}}},Date.prototype.getTimezone=function(){return this.toString().replace(/^.*? ([A-Z]{3}) [0-9]{4}.*$/,"$1").replace(/^.*?\(([A-Z])[a-z]+ ([A-Z])[a-z]+ ([A-Z])[a-z]+\)$/,"$1$2$3")},Date.prototype.getGMTOffset=function(){return(this.getTimezoneOffset()>0?"-":"+")+String.leftPad(Math.floor(Math.abs(this.getTimezoneOffset())/60),2,"0")+String.leftPad(Math.abs(this.getTimezoneOffset())%60,2,"0")},Date.prototype.getDayOfYear=function(){var e=0;Date.daysInMonth[1]=this.isLeapYear()?29:28;for(var t=0;t3?$(".top-main-sticky").addClass("sticky"):$(".top-main-sticky").removeClass("sticky")}); // SocialProof.co popup widget $(document).ready(function(){ var spwWidgetStatus = getspwReviewBnzCloseCookie(); var spwWidgetElement = document.getElementById("spw-bouncereveiw"); if (spwWidgetStatus!="yes" && spwWidgetElement!=null) { var spwWidgetFrameURL = $('.spw-showhide-iframe').attr('data-src'); var cookieElement = document.getElementById("cookie_directive_container"); if (cookieElement!=null) { var bottomMargin = 25+cookieElement.offsetHeight; $("#spw-bouncereveiw").css('bottom', bottomMargin+"px"); }; setTimeout(function(){$('.spw-showhide-iframe').attr('src', spwWidgetFrameURL);$('#spw-bouncereveiw').addClass('spwLoading');$('#spw-bouncereveiw').show();$('.spw-showhide-iframe').hide();}, 3500); setTimeout(function(){$('.spw-showhide-iframe').show();}, 5000); setTimeout(function(){$('#spw-bouncereveiw').hide();}, 100000); }; $( "#spw-review_bounce_close" ).click(function() { //clearTimeout(bouncereveiw); $( "#spw-bouncereveiw" ).remove(); var d = new Date(); d.setTime(d.getTime() + (30*24*60*60*1000)); var expires = "expires="+ d.toUTCString(); document.cookie = "spwReviewBnzClose=yes; "+expires+"; path=/"; }); $( ".js-cookie-acc-btn" ).click(function() { $("#spw-bouncereveiw").css('bottom', "0px"); }); }); function getspwReviewBnzCloseCookie() { var name = "spwReviewBnzClose="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for(var i = 0; i 0}});else{var n=[];i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},i.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},i.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]})},i.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},i.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(r(t,"resize",this._checkForIntersections,!0),r(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},i.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(t,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},i.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),n=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(i){var r=i.element,s=h(r),c=this._rootContainsTarget(r),a=i.entry,u=e&&c&&this._computeTargetAndRootIntersection(r,n),l=i.entry=new o({time:t.performance&&performance.now&&performance.now(),target:r,boundingClientRect:s,rootBounds:n,intersectionRect:u});a?e&&c?this._hasCrossedThreshold(a,l)&&this._queuedEntries.push(l):a&&a.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},i.prototype._computeTargetAndRootIntersection=function(n,o){if("none"!=t.getComputedStyle(n).display){for(var i,r,s,c,u,l,p,d,f=h(n),g=a(n),_=!1;!_;){var v=null,m=1==g.nodeType?t.getComputedStyle(g):{};if("none"==m.display)return;if(g==this.root||g==e?(_=!0,v=o):g!=e.body&&g!=e.documentElement&&"visible"!=m.overflow&&(v=h(g)),v&&(i=v,r=f,void 0,void 0,void 0,void 0,void 0,void 0,s=Math.max(i.top,r.top),c=Math.min(i.bottom,r.bottom),u=Math.max(i.left,r.left),l=Math.min(i.right,r.right),d=c-s,!(f=(p=l-u)>=0&&d>=0&&{top:s,bottom:c,left:u,right:l,width:p,height:d})))break;g=a(g)}return f}},i.prototype._getRootRect=function(){var t;if(this.root)t=h(this.root);else{var n=e.documentElement,o=e.body;t={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(t)},i.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100}),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var i=0;i 0) { owlVideoSlide.each(function(index, el) { var $tempElm = $(el).find('.slider-container'); $tempElm.owlCarousel({ navigation: false, // Show next and prev buttons slideSpeed: 300, pagination: false, singleItem: true }); $(el).find(".js-next").click(function() { $tempElm.trigger('owl.next'); }); $(el).find(".js-prev").click(function() { $tempElm.trigger('owl.prev'); }); }); } $("#mainSlider").owlCarousel({ navigation: false, slideSpeed: 300, pagination: false, singleItem: true, autoPlay: true, transitionStyle: "fade" }); /********** video testimonials **********/ var owl = $("#owl-gal2"); owl.owlCarousel({ items : 1, navigation : false, pagination : true, itemsDesktop : [1000,1], //5 items between 1000px and 901px itemsDesktopSmall : [900,1], // betweem 900px and 601px itemsTablet: [600,1], //2 items between 600 and 0 }); // Custom Navigation Events $("#next").click(function(){ owl.trigger('owl.next'); }) $("#prev").click(function(){ owl.trigger('owl.prev'); }) }); /** Random Review **/ $(window).load(function(){ var minHomeReveiw = 1; var maxHomeReveiw = 3; // total reviews var reviewNoHome=Math.floor(Math.random()*(maxHomeReveiw-minHomeReveiw+1)+minHomeReveiw); var reviewIdHome="#reviewBlock"+reviewNoHome; $(reviewIdHome).css("display","block"); }); /** #END - Random Review **/ /************* NEW VIDEO CODE FOR VIDEOS ON CLICK PLAY ****************/ if ( $( '.player' ).length > 0 ) { var player; if ( $( '[data-provider="youtube"]' ).length > 0 ) { var tag = document.createElement('script'); tag.src = "https://www.youtube.com/iframe_api"; var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); function onYouTubeIframeAPIReady() { $(document).on('click', '.player[data-provider="youtube"]', function() { $el = $(this); $video_id = $el.data('id'); $video_pr = $el.data('provider'); $el.addClass( $video_id ); player = new YT.Player($('.player.' + $video_id)[0], { height: '390', width: '640', videoId: $video_id, events: { 'onReady': onPlayerReady, 'onStateChange': onPlayerStateChange } }); }); } function onPlayerReady(event) { event.target.playVideo(); $('.player-wrap').addClass( 'playing' ); } function onPlayerStateChange(event) { if (event.data == YT.PlayerState.PAUSED) { if ( $video_pr == 'youtube' ) $('.player.' + $video_id).parent('.player-wrap').removeClass('playing ended').addClass( 'paused' ); } if (event.data == YT.PlayerState.PLAYING) { if ( $video_pr == 'youtube' ) $('.player.' + $video_id).parent('.player-wrap').removeClass('paused ended').addClass( 'playing' ); } if (event.data == YT.PlayerState.ENDED) { if ( $video_pr == 'youtube' ) $('.player.' + $video_id).parent('.player-wrap').removeClass('playing paused').addClass( 'ended' ); } } $(document).on('click', '.player-wrap.paused', function(e) { $video_id = $(this).children('.player').data('id'); $video_pr = $(this).children('.player').data('provider'); $(this).children('.player')[0].contentWindow.postMessage('{"event":"command","func":"' + 'playVideo' + '","args":""}', '*'); }); $(document).on('click', '.player-wrap.ended', function(e) { $video_id = $(this).children('.player').data('id'); $video_pr = $(this).children('.player').data('provider'); $(this).removeClass('ended').addClass('playing'); $(this).children('.player')[0].contentWindow.postMessage('{"event":"command","func":"' + 'playVideo' + '","args":""}', '*'); }); } if ( $( '[data-provider="vimeo"]' ).length > 0 ) { $(document).on('click', '.player[data-provider="vimeo"]', function() { $el = $(this); $video_id = $el.data('id'); $video_pr = $el.data('provider'); $el.addClass( $video_id ); $x = $(this).parent('.player-wrap'); $(this).remove(); $x.html(''); }); } } $(document).on( 'click', '.trans-btn', function(e) { e.preventDefault(); $el = $(this); $video_id = $el.attr( 'href' ); $el.children('.fa').toggleClass( 'fa-angle-down fa-angle-up' ) $( $video_id ).toggleClass( 'active' ); }); //Related Articles REST API Solution $(document).ready(function(){ if(typeof CategoryID !== 'undefined'){ var settings = { "url": "https://www.dentistryforsandiego.com/blog/wp-json/wp/v2/posts?per_page=10&categories="+CategoryID, "method": "GET", "timeout": 0, "headers": { "Content-Type": "application/json" }, "data": JSON.stringify({"user_login":"sonath"}), }; $.ajax(settings).done(function (response) { // console.log(response); var output = ""; response.forEach(articles => { // console.log(articles.fimg_url); output += `
  • ${articles.title.rendered}
  • `; }); // ${articles.title.rendered} // console.log(output); $("#related_articles_wrapper").html(output); }); } }); /************* END NEW VIDEO CODE FOR VIDEOS ON CLICK PLAY ****************/ // Lazyload new plugin - lazysizes.js !function(e){var t=function(e,t,a){"use strict";var n,i;if(function(){var t,a={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in i=e.lazySizesConfig||e.lazysizesConfig||{},a)t in i||(i[t]=a[t])}(),!t||!t.getElementsByClassName)return{init:function(){},cfg:i,noSupport:!0};var r=t.documentElement,o=e.HTMLPictureElement,s="addEventListener",l="getAttribute",d=e[s].bind(e),c=e.setTimeout,u=e.requestAnimationFrame||c,f=e.requestIdleCallback,y=/^picture$/i,m=["load","error","lazyincluded","_lazyloaded"],z={},g=Array.prototype.forEach,v=function(e,t){return z[t]||(z[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),z[t].test(e[l]("class")||"")&&z[t]},p=function(e,t){v(e,t)||e.setAttribute("class",(e[l]("class")||"").trim()+" "+t)},h=function(e,t){var a;(a=v(e,t))&&e.setAttribute("class",(e[l]("class")||"").replace(a," "))},b=function(e,t,a){var n=a?s:"removeEventListener";a&&b(e,t),m.forEach(function(a){e[n](a,t)})},C=function(e,a,i,r,o){var s=t.createEvent("Event");return i||(i={}),i.instance=n,s.initEvent(a,!r,!o),s.detail=i,e.dispatchEvent(s),s},A=function(t,a){var n;!o&&(n=e.picturefill||i.pf)?(a&&a.src&&!t[l]("srcset")&&t.setAttribute("srcset",a.src),n({reevaluate:!0,elements:[t]})):a&&a.src&&(t.src=a.src)},E=function(e,t){return(getComputedStyle(e,null)||{})[t]},_=function(e,t,a){for(a=a||e.offsetWidth;a49?function(){f(s,{timeout:o}),o!==i.ricTimeout&&(o=i.ricTimeout)}:N(function(){c(s)},!0);return function(e){var i;(e=!0===e)&&(o=33),t||(t=!0,(i=r-(a.now()-n))<0&&(i=0),e||i<9?l():c(l,i))}},M=function(e){var t,n,i=function(){t=null,e()},r=function(){var e=a.now()-n;e<99?c(r,99-e):(f||i)(i)};return function(){n=a.now(),t||(t=c(r,99))}},x=function(){var o,f,m,z,_,x,B,W,T,q,F,k,R=/^img$/i,D=/^iframe$/i,O="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),P=0,H=0,$=-1,I=function(e){H--,(!e||H<0||!e.target)&&(H=0)},J=function(e){return null==k&&(k="hidden"==E(t.body,"visibility")),k||!("hidden"==E(e.parentNode,"visibility")&&"hidden"==E(e,"visibility"))},j=function(e,a){var n,i=e,o=J(e);for(W-=a,F+=a,T-=a,q+=a;o&&(i=i.offsetParent)&&i!=t.body&&i!=r;)(o=(E(i,"opacity")||1)>0)&&"visible"!=E(i,"overflow")&&(n=i.getBoundingClientRect(),o=q>n.left&&Tn.top-1&&W500&&r.clientWidth>500?500:370:i.expand,n._defEx=v,p=v*i.expFactor,h=i.hFac,k=null,P2&&z>2&&!t.hidden?(P=p,$=0):P=z>1&&$>1&&H<6?v:0),g!==u&&(x=innerWidth+u*h,B=innerHeight+u,y=-1*u,g=u),s=b[a].getBoundingClientRect(),(F=s.bottom)>=y&&(W=s.top)<=B&&(q=s.right)>=y*h&&(T=s.left)<=x&&(F||q||T||W)&&(i.loadHidden||J(b[a]))&&(f&&H<3&&!m&&(z<3||$<4)||j(b[a],u))){if(Z(b[a]),c=!0,H>9)break}else!c&&f&&!d&&H<4&&$<4&&z>2&&(o[0]||i.preloadAfterLoad)&&(o[0]||!m&&(F||q||T||W||"auto"!=b[a][l](i.sizesAttr)))&&(d=o[0]||b[a]);d&&!c&&Z(d)}},G=L(U),K=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:(I(e),p(t,i.loadedClass),h(t,i.loadingClass),b(t,V),C(t,"lazyloaded"))},Q=N(K),V=function(e){Q({target:e.target})},X=function(e){var t,a=e[l](i.srcsetAttr);(t=i.customMedia[e[l]("data-media")||e[l]("media")])&&e.setAttribute("media",t),a&&e.setAttribute("srcset",a)},Y=N(function(e,t,a,n,r){var o,s,d,u,f,z;(f=C(e,"lazybeforeunveil",t)).defaultPrevented||(n&&(a?p(e,i.autosizesClass):e.setAttribute("sizes",n)),s=e[l](i.srcsetAttr),o=e[l](i.srcAttr),r&&(u=(d=e.parentNode)&&y.test(d.nodeName||"")),z=t.firesLoad||"src"in e&&(s||o||u),f={target:e},p(e,i.loadingClass),z&&(clearTimeout(m),m=c(I,2500),b(e,V,!0)),u&&g.call(d.getElementsByTagName("source"),X),s?e.setAttribute("srcset",s):o&&!u&&(D.test(e.nodeName)?function(e,t){try{e.contentWindow.location.replace(t)}catch(a){e.src=t}}(e,o):e.src=o),r&&(s||u)&&A(e,{src:o})),e._lazyRace&&delete e._lazyRace,h(e,i.lazyClass),w(function(){var t=e.complete&&e.naturalWidth>1;z&&!t||(t&&p(e,"ls-is-cached"),K(f),e._lazyCache=!0,c(function(){"_lazyCache"in e&&delete e._lazyCache},9)),"lazy"==e.loading&&H--},!0)}),Z=function(e){if(!e._lazyRace){var t,a=R.test(e.nodeName),n=a&&(e[l](i.sizesAttr)||e[l]("sizes")),r="auto"==n;(!r&&f||!a||!e[l]("src")&&!e.srcset||e.complete||v(e,i.errorClass)||!v(e,i.lazyClass))&&(t=C(e,"lazyunveilread").detail,r&&S.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,H++,Y(e,t,r,n,a))}},ee=M(function(){i.loadMode=3,G()}),te=function(){3==i.loadMode&&(i.loadMode=2),ee()},ae=function(){f||(a.now()-_<999?c(ae,999):(f=!0,i.loadMode=3,G(),d("scroll",te,!0)))};return{_:function(){_=a.now(),n.elements=t.getElementsByClassName(i.lazyClass),o=t.getElementsByClassName(i.lazyClass+" "+i.preloadClass),d("scroll",G,!0),d("resize",G,!0),d("pageshow",function(e){if(e.persisted){var a=t.querySelectorAll("."+i.loadingClass);a.length&&a.forEach&&u(function(){a.forEach(function(e){e.complete&&Z(e)})})}}),e.MutationObserver?new MutationObserver(G).observe(r,{childList:!0,subtree:!0,attributes:!0}):(r[s]("DOMNodeInserted",G,!0),r[s]("DOMAttrModified",G,!0),setInterval(G,999)),d("hashchange",G,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(e){t[s](e,G,!0)}),/d$|^c/.test(t.readyState)?ae():(d("load",ae),t[s]("DOMContentLoaded",G),c(ae,2e4)),n.elements.length?(U(),w._lsFlush()):G()},checkElems:G,unveil:Z,_aLSL:te}}(),S=function(){var e,a=N(function(e,t,a,n){var i,r,o;if(e._lazysizesWidth=n,n+="px",e.setAttribute("sizes",n),y.test(t.nodeName||""))for(r=0,o=(i=t.getElementsByTagName("source")).length;r