function Redirect(n){var i=navigator.userAgent.toLowerCase(),r=i.indexOf("msie")!==-1,u=parseInt(i.substr(4,2),10),t;r&&u<9?(t=document.createElement("a"),t.href=n,t.hide(),document.body.appendChild(t),t.click()):window.location.href=n}function setFilter(n,t){$("#"+n).val(t);BlogMenuFilters()}function BlogMenuFilters(){var t=getParameterValue($("#txtLocationmenu").val(),LOCATION_CONSTANT),i=getParameterValue($("#txtCategorymenu").val(),CATEGORY_CONSTANT),r=getParameterValue($("#txtFromDate").val(),FROMDATE_CONSTANT),u=getParameterValue($("#txtToDate").val(),TODATE_CONSTANT),f=window.location.href,n;n=updateQueryStringParameter(f,LOCATION_CONSTANT,t);n=updateQueryStringParameter(n,CATEGORY_CONSTANT,i);n=updateQueryStringParameter(n,FROMDATE_CONSTANT,r);n=updateQueryStringParameter(n,TODATE_CONSTANT,u);window.location=n}function getParameterValue(n,t){if(n.length>0)return n;var i=getQueryStringParameter(t);return i.length>0?i:""}function getQueryStringParameter(n){for(var u=window.location.search.substring(1),r=u.split("&"),i,t=0;t<r.length;t++)if(i=r[t].split("="),decodeURIComponent(i[0])==n)return decodeURIComponent(i[1]);return""}function updateQueryStringParameter(n,t,i){var r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),u=n.indexOf("?")!==-1?"&":"?";return n.match(r)?n.replace(r,"$1"+t+"="+i+"$2"):n+u+t+"="+i}function createCookie(n,t,i){var r,u;sessionStorage_flag?sessionStorage.setItem(n,t):(i?(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString()):u="",document.cookie=n+"="+t+u+"; path=/")}function readCookie(n){var r,u,i,t;if(sessionStorage_flag)return sessionStorage.getItem(n);for(r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return null}function eraseCookie(n){sessionStorage_flag?sessionStorage.removeItem(n):readCookie(n)!=null&&(document.cookie=n+"="+(path?";path="+path:"")+(domain?";domain="+domain:"")+";expires=Thu, 01 Jan 1970 00:00:01 GMT")}function skipSteps(n){var i,t,r;if($("#txtSkipStep").length>0)if(i=$("#txtSkipStep").val(),i.length>0)for(i=i-1,t=0;t<n.length;t++)$('.grid-steps [data-step="'+i+'"]').length>0&&skipHideSkip(i);else for(t=0,r=0;r<n.length;r++)n[r].step!=t+1&&skipHideSkip(t+1),t=parseInt(n[r].step)}function skipHideSkip(n){$('.grid-steps [data-step="'+n+'"]')!=null&&$('.grid-steps [data-step="'+n+'"]').parent().remove();for(var t=n;t<20;t++)$('.grid-steps [data-step="'+t+'"]').html(t-1)}function hideSteps(){var i=$(".steps li").length,n,t;i>0&&(n=1,t=6,$("#txtStep").val()>6&&(n=parseInt($("#txtStep").val())-5,t=parseInt($("#txtStep").val())),$(".steps li").slice(n-1,t).removeClass("hide"))}function closest(n,t){for(var u=t[0],f=Math.abs(n-u.step),r,i=0;i<t.length;i++)r=Math.abs(n-t[i].step),parseInt(r)<parseInt(f)&&r>0&&(f=r,u=t[i]);return u}function DecisionPoint(n){if(collect(),n.length>0){Redirect(n);return}if(validate())RedirectToItem(Next(),null);else return $(".error").length==1&&($(".error").removeClass("successful"),$(".error").text("You must make a selection")),!1}function Next(){var n=$("input:radio.required"),t="#";return n.length>0&&(t=$("input[name='"+$(n[0]).attr("name")+"']:checked").attr("data-next")),t}function validate(){var n=$("input:radio.required"),t=$("input:checkbox.required"),i=$("input:text.required");return n.length>0&&!$("input[name='"+$(n[0]).attr("name")+"']:checked").val()?!1:t.length>0&&!$("input[name='"+$(t[0]).attr("name")+"']:checked").val()?!1:(i.length>0&&i.each(function(){if(!$.trim($(this).val()))return!1}),!0)}function collect(){var n={step:$("#txtStep").val(),itemId:$("#txtItemId").val(),header1:$(".instructions .col-sm-3 h2").text(),inputs:[]},t=$(".instructions input:radio, input:checkbox, input:text");t.each(function(){var r=$(this).attr("type"),u=$(this).attr("id"),i,t;r=="checkbox"||r=="radio"?$(this).is(":visible")&&$(this).is(":checked")&&(i=$(this).attr("data-label"),t={id:u,label:i},n.inputs.push(t)):$(this).is(":visible")&&$.trim($(this).val())!=""&&(t={id:u,label:i,value:$(this).val()},n.inputs.push(t))});collection.push(n);createCookie(startID,JSON.stringify(collection),0)}function RedirectToItem(n,t){$.ajax({url:window.location.href,type:"POST",data:{scController:"Wizard",scAction:"GetItem",itemId:n},context:this,success:function(n){t==null?Redirect(n.url):$(t).attr("href",n.url);console.log("success",n)},error:function(n){console.log("error",n)}})}function Summary(){for(var i=!1,r=$("#summarysidecontent"),u,t,f,n=0;n<collection.length;n++)if(collection[n].inputs.length>0)for(i=!0,r.append('<div style="font-weight:bold">'+collection[n].header1+"<\/div>"),u=r.append("<div><\/div>").find("div").last(),t=0;t<collection[n].inputs.length;t++)f=collection[n].inputs[t].label,u.append("<p>"+f+"<\/p>");i||$(".summarysidebar").hide()}function Back(){var n=$("#Referrer");n!=null&&typeof n!="undefined"&&typeof n.val()!="undefined"?location.href=n.val():history.go(-1)}function today(n){n=n+"?findservice=today";Redirect(n)}function RedirectToServiceDetails(n,t){t!=""&&(n=n+"?id="+t);var i=window.open(n,"_blank");i&&i.focus()}function AddParameter(n,t,i){var r=$("<input />").attr("type","hidden").attr("name",t).attr("value",i);n.append(r)}function getAbsolutePath(){return location.protocol+"//"+location.host}function save(n,t){n="download";t=encodeURI(t);$.redirectPost("/api/sitecore/General/SaveFile",{name:n,htmlbody:t})}function email(n,t){try{$.ajax({url:window.location.href,type:"POST",data:{scController:"General",scAction:"SendEmail",to:"",subject:n,body:t},context:this,success:function(n){n.length==0?(console.log("email sent successfully"),$(".error").text("Your message was sent successfully."),$(".error").addClass("successful")):$(".error").length==1&&($(".error").removeClass("successful"),$(".error").text("An error occurred trying to send your message. Please try again later."),console.log("email failed to send :"+n))},error:function(n){console.log("email failed to send :"+n.responseText);$(".error").removeClass("successful");$(".error").text("An error occurred trying to send your message. Please try again later.")}})}catch(i){alert(i.message)}}var EXTERNAL_CONSTANT,sessionStorage_flag,collection,startID,locations_LatLang,markers,map;if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){"use strict";var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher");}(jQuery);+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(void 0!==i.style[n])return{end:t[n]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t();n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery);+function(n){"use strict";function u(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));"string"==typeof i&&u[i].call(r)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.3.2";t.TRANSITION_DURATION=150;t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;u||(u=f.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,""));r=n(u);i&&i.preventDefault();r.length||(r=f.closest(".alert"));r.trigger(i=n.Event("close.bs.alert"));i.isDefaultPrevented()||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())};r=n.fn.alert;n.fn.alert=u;n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f="object"==typeof i&&i;r||u.data("bs.button",r=new t(this,f));"toggle"==i?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},r;t.VERSION="3.3.2";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var r="disabled",i=this.$element,f=i.is("input")?"val":"html",u=i.data();t+="Text";null==u.resetText&&i.data("resetText",i[f]());setTimeout(n.proxy(function(){i[f](null==u[t]?this.options[t]:u[t]);"loadingText"==t?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),"radio"==n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:i.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")):this.$element.attr("aria-pressed",!this.$element.hasClass("active"));t&&this.$element.toggleClass("active")};r=n.fn.button;n.fn.button=i;n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target);r.hasClass("btn")||(r=r.closest(".btn"));i.call(r,"toggle");t.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i),e="string"==typeof i?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));"number"==typeof i?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=this.sliding=this.interval=this.$active=this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this));"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,r;t.VERSION="3.3.2";t.TRANSITION_DURATION=600;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0};t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};t.prototype.getItemForDirection=function(n,t){var i=this.getItemIndex(t),f="prev"==n&&0===i||"next"==n&&i==this.$items.length-1,r,u;return f&&!this.options.wrap?t:(r="prev"==n?-1:1,u=(i+r)%this.$items.length,this.$items.eq(u))};t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1)&&!(0>n))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f="next"==i?"left":"right",a=this,o,s,h,c;return u.hasClass("active")?this.sliding=!1:(o=u[0],s=n.Event("slide.bs.carousel",{relatedTarget:o,direction:f}),(this.$element.trigger(s),!s.isDefaultPrevented())?((this.sliding=!0,l&&this.pause(),this.$indicators.length)&&(this.$indicators.find(".active").removeClass("active"),h=n(this.$indicators.children()[this.getItemIndex(u)]),h&&h.addClass("active")),c=n.Event("slid.bs.carousel",{relatedTarget:o,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active");e.removeClass(["active",f].join(" "));a.sliding=!1;setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(c)),l&&this.cycle(),this):void 0)};u=n.fn.carousel;n.fn.carousel=i;n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this};r=function(t){var o,r=n(this),u=n(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,f;u.hasClass("carousel")&&(e=n.extend({},u.data(),r.data()),f=r.attr("data-slide-to"),f&&(e.interval=!1),i.call(u,e),f&&u.data("bs.carousel").to(f),t.preventDefault())};n(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r);n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i);!r&&f.toggle&&"show"==i&&(f.toggle=!1);r||u.data("bs.collapse",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.$trigger=n(this.options.trigger).filter('[href="#'+i.id+'"], [data-target="#'+i.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()},u;t.VERSION="3.3.2";t.TRANSITION_DURATION=350;t.DEFAULTS={toggle:!0,trigger:'[data-toggle="collapse"]'};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var f,r,e,u,o,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"),!(r&&r.length&&(f=r.data("bs.collapse"),f&&f.transitioning))&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented()))){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return o.call(this);s=n.camelCase(["scroll",u].join("-"));this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}};t.prototype.hide=function(){var r,i,u;if(!this.transitioning&&this.$element.hasClass("in")&&(r=n.Event("hide.bs.collapse"),this.$element.trigger(r),!r.isDefaultPrevented()))return i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,u=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},n.support.transition?void this.$element[i](0).one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION):u.call(this)};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var u=n(i);this.addAriaAndCollapsedClass(r(u),u)},this)).end()};t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i);t.toggleClass("collapsed",!i).attr("aria-expanded",i)};u=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();var f=r(u),e=f.data("bs.collapse"),o=e?"toggle":n.extend({},u.data(),{trigger:this});i.call(f,o)})}(jQuery);+function(n){"use strict";function r(t){t&&3===t.which||(n(o).remove(),n(i).each(function(){var r=n(this),i=u(r),f={relatedTarget:this};i.hasClass("open")&&(i.trigger(t=n.Event("hide.bs.dropdown",f)),t.isDefaultPrevented()||(r.attr("aria-expanded","false"),i.removeClass("open").trigger("hidden.bs.dropdown",f)))}))}function u(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function e(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));"string"==typeof i&&u[i].call(r)})}var o=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.3.2";t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=u(f),o=i.hasClass("open"),r(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n('<div class="dropdown-backdrop"/>').insertAfter(n(this)).on("click",r),e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus").attr("aria-expanded","true");i.toggleClass("open").trigger("shown.bs.dropdown",e)}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,r;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=u(e),s=o.hasClass("open"),!s&&27!=t.which||s&&27==t.which)return 27==t.which&&o.find(i).trigger("focus"),e.trigger("click");h=" li:not(.divider):visible a";f=o.find('[role="menu"]'+h+', [role="listbox"]'+h);f.length&&(r=f.index(t.target),38==t.which&&r>0&&r--,40==t.which&&r<f.length-1&&r++,~r||(r=0),f.eq(r).trigger("focus"))}};f=n.fn.dropdown;n.fn.dropdown=e;n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i,t.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',t.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',t.prototype.keydown)}(jQuery);+function(n){"use strict";function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),"object"==typeof i&&i);u||f.data("bs.modal",u=new t(this,e));"string"==typeof i?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i;this.$body=n(document.body);this.$element=n(t);this.$backdrop=this.isShown=null;this.scrollbarWidth=0;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.3.2";t.TRANSITION_DURATION=300;t.BACKDROP_TRANSITION_DURATION=150;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(u);this.isShown||u.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this)),this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body);r.$element.show().scrollTop(0);r.options.backdrop&&r.adjustBackdrop();r.adjustDialog();f&&r.$element[0].offsetWidth;r.$element.addClass("in").attr("aria-hidden",!1);r.enforceFocus();u=n.Event("shown.bs.modal",{relatedTarget:i});f?r.$element.find(".modal-dialog").one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)}))};t.prototype.hide=function(i){i&&i.preventDefault();i=n.Event("hide.bs.modal");this.$element.trigger(i);this.isShown&&!i.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))};t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){27==n.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")};t.prototype.resize=function(){this.isShown?n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this)):n(window).off("resize.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.$body.removeClass("modal-open");n.resetAdjustments();n.resetScrollbar();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(i){var e=this,f=this.$element.hasClass("fade")?"fade":"",r,u;if(this.isShown&&this.options.backdrop){if(r=n.support.transition&&f,this.$backdrop=n('<div class="modal-backdrop '+f+'" />').prependTo(this.$element).on("click.dismiss.bs.modal",n.proxy(function(n){n.target===n.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop();i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()};t.prototype.handleUpdate=function(){this.options.backdrop&&this.adjustBackdrop();this.adjustDialog()};t.prototype.adjustBackdrop=function(){this.$backdrop.css("height",0).css("height",this.$element[0].scrollHeight)};t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})};t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};t.prototype.checkScrollbar=function(){this.bodyIsOverflowing=document.body.scrollHeight>document.documentElement.clientHeight;this.scrollbarWidth=this.measureScrollbar()};t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.bodyIsOverflowing&&this.$body.css("padding-right",n+this.scrollbarWidth)};t.prototype.resetScrollbar=function(){this.$body.css("padding-right","")};t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t};r=n.fn.modal;n.fn.modal=i;n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),u=n(r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){n.isDefaultPrevented()||u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,e,this)})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f="object"==typeof i&&i;(r||"destroy"!=i)&&(r||u.data("bs.tooltip",r=new t(this,f)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null;this.init("tooltip",n,t)},i;t.VERSION="3.3.2";t.TRANSITION_DURATION=150;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}};t.prototype.init=function(t,i,r){var f,e,u,o,s;for(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(this.options.viewport.selector||this.options.viewport),f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],"click"==u)this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else"manual"!=u&&(o="hover"==u?"mouseenter":"focusin",s="hover"==u?"mouseleave":"focusout",this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this)));this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i&&i.$tip&&i.$tip.is(":visible")?void(i.hoverState="in"):(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()};t.prototype.show=function(){var c=n.Event("show.bs."+this.type),l,p,h;if(this.hasContent()&&this.enabled){if(this.$element.trigger(c),l=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!l)return;var u=this,r=this.tip(),a=this.getUID(this.type);this.setContent();r.attr("id",a);this.$element.attr("aria-describedby",a);this.options.animation&&r.addClass("fade");var i="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,y=v.test(i);y&&(i=i.replace(v,"")||"top");r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this);this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);var f=this.getPosition(),o=r[0].offsetWidth,s=r[0].offsetHeight;if(y){var w=i,b=this.options.container?n(this.options.container):this.$element.parent(),e=this.getPosition(b);i="bottom"==i&&f.bottom+s>e.bottom?"top":"top"==i&&f.top-s<e.top?"bottom":"right"==i&&f.right+o>e.width?"left":"left"==i&&f.left-o<e.left?"right":i;r.removeClass(w).addClass(i)}p=this.getCalculatedOffset(i,f,o,s);this.applyPlacement(p,i);h=function(){var n=u.hoverState;u.$element.trigger("shown.bs."+u.type);u.hoverState=null;"out"==n&&u.leave(u)};n.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",h).emulateTransitionEnd(t.TRANSITION_DURATION):h()}};t.prototype.applyPlacement=function(t,i){var r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top=t.top+o;t.left=t.left+s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");h=r[0].offsetWidth;f=r[0].offsetHeight;"top"==i&&f!=e&&(t.top=t.top+e-f);u=this.getViewportAdjustedDelta(i,t,h,f);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(i),a=c?2*u.left-l+h:2*u.top-e+f,v=c?"offsetWidth":"offsetHeight";r.offset(t);this.replaceArrow(a,r[0][v],c)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(i){function f(){"in"!=r.hoverState&&u.detach();r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type);i&&i()}var r=this,u=this.tip(),e=n.Event("hide.bs."+this.type);return this.$element.trigger(e),e.isDefaultPrevented()?void 0:(u.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?u.one("bsTransitionEnd",f).emulateTransitionEnd(t.TRANSITION_DURATION):f(),this.hoverState=null,this)};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||"string"!=typeof n.attr("data-original-title"))&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(t){t=t||this.$element;var u=t[0],r="BODY"==u.tagName,i=u.getBoundingClientRect();null==i.width&&(i=n.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var f=r?{top:0,left:0}:t.offset(),e={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},o=r?{width:n(window).width(),height:n(window).height()}:null;return n.extend({},i,e,o,f)};t.prototype.getCalculatedOffset=function(n,t,i,r){return"bottom"==n?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==n?{top:t.top-r,left:t.left+t.width/2-i/2}:"left"==n?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.width&&(f.left=u.left+u.width-c)),f):f};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)};t.prototype.getUID=function(n){do n+=~~(1e6*Math.random());while(document.getElementById(n));return n};t.prototype.tip=function(){return this.$tip=this.$tip||n(this.options.template)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)));i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout);this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type)})};i=n.fn.tooltip;n.fn.tooltip=r;n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f="object"==typeof i&&i;(r||"destroy"!=i)&&(r||u.data("bs.popover",r=new t(this,f)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.2";t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof t?"html":"append":"text"](t);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||("function"==typeof n.content?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};t.prototype.tip=function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip};i=n.fn.popover;n.fn.popover=r;n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function t(i,r){var u=n.proxy(this.process,this);this.$body=n("body");this.$scrollElement=n(n(i).is("body")?window:i);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",u);this.refresh();this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f="object"==typeof i&&i;r||u.data("bs.scrollspy",r=new t(this,f));"string"==typeof i&&r[i]()})}t.VERSION="3.3.2";t.DEFAULTS={offset:10};t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};t.prototype.refresh=function(){var i="offset",r=0,t;n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop());this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();t=this;this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var n,i=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(!t[n+1]||i<=t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;this.clear();var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};t.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=n.fn.scrollspy;n.fn.scrollspy=i;n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this};n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));"string"==typeof i&&r[i]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.3.2";t.TRANSITION_DURATION=150;t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),e=n.Event("hide.bs.tab",{relatedTarget:t[0]}),o=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(e),t.trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(u=n(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]});t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}};t.prototype.activate=function(i,r,u){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0);o?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade");i.parent(".dropdown-menu")&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);u&&u()}var f=r.find("> .active"),o=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&o?f.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e();f.removeClass("in")};u=n.fn.tab;n.fn.tab=r;n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=u,this};i=function(t){t.preventDefault();r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f="object"==typeof i&&i;r||u.data("bs.affix",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=this.unpin=this.pinnedOffset=null;this.checkPosition()},r;t.VERSION="3.3.2";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(null!=i&&"top"==this.affixed)return i>u?"top":!1;if("bottom"==this.affixed)return null!=i?u+this.unpin<=f.top?!1:"bottom":n-r>=u+e?!1:"bottom";var o=null==this.affixed,s=o?u:f.top,h=o?e:t;return null!=i&&i>=u?"top":null!=r&&s+h>=n-r?"bottom":!1};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,f=r.top,u=r.bottom,h=n("body").height();if("object"!=typeof r&&(u=f=r),"function"==typeof f&&(f=r.top(this.$element)),"function"==typeof u&&(u=r.bottom(this.$element)),i=this.getState(h,s,f,u),this.affixed!=i){if(null!=this.unpin&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i;this.unpin="bottom"==i?this.getPinnedOffset():null;this.$element.removeClass(t.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}"bottom"==i&&this.$element.offset({top:h-s-u})}};r=n.fn.affix;n.fn.affix=i;n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{};null!=t.offsetBottom&&(t.offset.bottom=t.offsetBottom);null!=t.offsetTop&&(t.offset.top=t.offsetTop);i.call(r,t)})})}(jQuery);$(document).on("ready",function(){$("#daterange").length&&$("#daterange").daterangepicker({open:"center"});$(".grid-gallery .thumbnail img").on("click",function(){$(".main-gal-img img").fadeOut(100).attr("src",$(this).data("image-url")).fadeIn(600)});$(".main-gal-img").on("click",function(){var i=$(this).find("img").attr("src"),n=$('.grid-gallery .thumbnail img[data-image-url="'+i+'"]').parents(".thumbnail"),t;console.log(n);t=n.is(":last-child")?n.siblings().first():n.next();$(".main-gal-img img").fadeOut(100).attr("src",t.find("img").data("image-url")).fadeIn(600)});$("#ifrmExternal").length>0&&$("#ifrmExternal").load(function(){$("html,body").animate({scrollTop:0},"fast");iFrameResize({log:!1})});$("#lnkwitnessingRequestAnAppointment").click(function(){ga("send","event","Appointment Requests","Click on Request and Appointment button (submit)","submit_witnessing_appointment_request",null,{NonInteraction:1})})});var LOCATION_CONSTANT="location",CATEGORY_CONSTANT="category",FROMDATE_CONSTANT="fromdate",TODATE_CONSTANT="todate";$(document).ready(function(){$(".daterangepicker .btn-success").click(function(){$("#txtFromDate").val($(".daterangepicker [name='daterangepicker_start']").val());$("#txtToDate").val($(".daterangepicker [name='daterangepicker_end']").val());BlogMenuFilters()});$("#search.form-control").keypress(function(n){n.which==13&&$(this).closest("form").submit()})});EXTERNAL_CONSTANT="Flower Shop";collection=[];$(document).ready(function(){var n=$("ul[data-external='"+EXTERNAL_CONSTANT+"']");n.length>0&&$.get("../../../Templates/Grid/Item.tmpl.html",function(n){var v=$($("#external_html").val()),i=v.find("#Table4 .prodDiv"),t,u,r,l,a,e;for(i.length>0&&$(".norecords").hide(),t=0;t<i.length;t++){u=$(i[t]).find(".prodName, .prodname");u.length==0&&(u=$(i[t]).find("div.prodPriceName .underline"));var h=$(i[t]).find("div.thumbnail img.prodimage"),c=/\[(.*?)\]/g.exec($(i[t]).text()),f="";if(c.length>0&&(f=c[0]),r=$(i[t]).find("div.prodPriceName .prodPriceText"),u.length>0||h.length>0||f.length>0||r.length>0){var e=$(u[0]).text(),y=$(h[0]).attr("src"),o="",s="";r.length>1?(o=$(r[0]).text(),s=$(r[1]).text()):(s=$(r[0]).text(),arr_currency=$(i[t]).find("strong"),arr_currency.length==1&&(o=$(arr_currency[0]).text()));l=$($(i[t]).find("div.prodPriceName a")[0]).attr("href");a={Title:e,Src:y,Description:f,Currency:o,Price:s,Url:l};collection.push(a)}}$.tmpl(n,collection).appendTo("ul[data-external='"+EXTERNAL_CONSTANT+"']");e=$("#external_title").val()})}),function(n){function o(i,r,f,o){var s={data:o||o===0||o===!1?o:r?r.data:{},_wrap:r?r._wrap:null,tmpl:null,parent:r||null,nodes:[],calls:d,nest:g,wrap:nt,html:tt,update:it};return i&&n.extend(s,i,{nodes:[],parent:r}),f&&(s.tmpl=f,s._ctnt=s._ctnt||s.tmpl(n,s),s.key=++e,(c.length?u:t)[e]=s),s}function s(t,i,u){var f,e=u?n.map(u,function(n){return typeof n=="string"?t.key?n.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+r+'="'+t.key+'" $2'):n:s(n,t,n._ctnt)}):t;return i?e:(e=e.join(""),e.replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(t,i,r,u){f=n(r).get();b(f);i&&(f=l(i).concat(f));u&&(f=f.concat(l(u)))}),f?f:l(e))}function l(t){var i=document.createElement("div");return i.innerHTML=t,n.makeArray(i.childNodes)}function p(t){return new Function("jQuery","$item","var $=jQuery,call,__=[],$data=$item.data;with($data){__.push('"+n.trim(t).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,function(t,i,r,u,f,e,o){var c=n.tmpl.tag[r],l,s,a;if(!c)throw"Unknown template tag: "+r;return l=c._default||[],e&&!/\w$/.test(f)&&(f+=e,e=""),f?(f=h(f),o=o?","+h(o)+")":e?")":"",s=e?f.indexOf(".")>-1?f+h(e):"("+f+").call($item"+o:f,a=e?s:"(typeof("+f+")==='function'?("+f+").call($item):("+f+"))"):a=s=l.$1||"null",u=h(u),"');"+c[i?"close":"open"].split("$notnull_1").join(f?"typeof("+f+")!=='undefined' && ("+f+")!=null":"true").split("$1a").join(a).split("$1").join(s).split("$2").join(u||l.$2||"")+"__.push('"})+"');}return __;")}function w(t,i){t._wrap=s(t,!0,n.isArray(i)?i:[v.test(i)?i:n(i).html()]).join("")}function h(n){return n?n.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function k(n){var t=document.createElement("div");return t.appendChild(n.cloneNode(!0)),t.innerHTML}function b(f){function p(f){function p(n){n=n+a;s=v[n]=v[n]||o(s,t[s.parent.key+a]||s.parent)}var y,h=f,c,s,l;if(l=f.getAttribute(r)){while(h.parentNode&&(h=h.parentNode).nodeType===1&&!(y=h.getAttribute(r)));y!==l&&(h=h.parentNode?h.nodeType===11?0:h.getAttribute(r)||0:0,(s=t[l])||(s=u[l],s=o(s,t[h]||u[h]),s.key=++e,t[e]=s),i&&p(l));f.removeAttribute(r)}else i&&(s=n.data(f,"tmplItem"))&&(p(s.key),t[s.key]=s,h=n.data(f.parentNode,"tmplItem"),h=h?h.key:0);if(s){for(c=s;c&&c.key!=h;)c.nodes.push(f),c=c.parent;delete s._ctnt;delete s._wrap;n.data(f,"tmplItem",s)}}for(var a="_"+i,c,l,v={},h,s=0,y=f.length;s<y;s++)if((c=f[s]).nodeType===1){for(l=c.getElementsByTagName("*"),h=l.length-1;h>=0;h--)p(l[h]);p(c)}}function d(n,t,i,r){if(!n)return c.pop();c.push({_:n,tmpl:t,item:this,data:i,options:r})}function g(t,i,r){return n.tmpl(n.template(t),i,r,this)}function nt(t,i){var r=t.options||{};return r.wrapped=i,n.tmpl(n.template(t.tmpl),t.data,r,t.item)}function tt(t,i){var r=this._wrap;return n.map(n(n.isArray(r)?r.join(""):r).filter(t||"*"),function(n){return i?n.innerText||n.textContent:n.outerHTML||k(n)})}function it(){var t=this.nodes;n.tmpl(null,null,null,this).insertBefore(t[0]);n(t).remove()}var a=n.fn.domManip,r="_tmplitem",v=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,t={},u={},f,y={key:0,data:{}},e=0,i=0,c=[];n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(r,u){n.fn[r]=function(e){var o=[],h=n(e),c,s,a,v,l=this.length===1&&this[0].parentNode;if(f=t||{},l&&l.nodeType===11&&l.childNodes.length===1&&h.length===1)h[u](this[0]),o=this;else{for(s=0,a=h.length;s<a;s++)i=s,c=(s>0?this.clone(!0):this).get(),n(h[s])[u](c),o=o.concat(c);i=0;o=this.pushStack(o,r,h.selector)}return v=f,f=null,n.tmpl.complete(v),o}});n.fn.extend({tmpl:function(t,i,r){return n.tmpl(this[0],t,i,r)},tmplItem:function(){return n.tmplItem(this[0])},template:function(t){return n.template(t,this[0])},domManip:function(r,u,e){if(r[0]&&n.isArray(r[0])){for(var o=n.makeArray(arguments),s=r[0],l=s.length,h=0,c;h<l&&!(c=n.data(s[h++],"tmplItem")););c&&i&&(o[2]=function(t){n.tmpl.afterManip(this,t,e)});a.apply(this,o)}else a.apply(this,arguments);return i=0,f||n.tmpl.complete(t),this}});n.extend({tmpl:function(i,r,f,e){var h,c=!e;if(c)e=y,i=n.template[i]||n.template(null,i),u={};else if(!i)return i=e.tmpl,t[e.key]=e,e.nodes=[],e.wrapped&&w(e,e.wrapped),n(s(e,null,e.tmpl(n,e)));return i?(typeof r=="function"&&(r=r.call(e||{})),f&&f.wrapped&&w(f,f.wrapped),h=n.isArray(r)?n.map(r,function(n){return n?o(f,e,i,n):null}):[o(f,e,i,r)],c?n(s(e,null,h)):h):[]},tmplItem:function(t){var i;for(t instanceof n&&(t=t[0]);t&&t.nodeType===1&&!(i=n.data(t,"tmplItem"))&&(t=t.parentNode););return i||y},template:function(t,i){return i?(typeof i=="string"?i=p(i):i instanceof n&&(i=i[0]||{}),i.nodeType&&(i=n.data(i,"tmpl")||n.data(i,"tmpl",p(i.innerHTML))),typeof t=="string"?n.template[t]=i:i):t?typeof t!="string"?n.template(null,t):n.template[t]||n.template(null,v.test(t)?t:n(t)):null},encode:function(n){return(""+n).split("<").join("&lt;").split(">").join("&gt;").split('"').join("&#34;").split("'").join("&#39;")}});n.extend(n.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){__=__.concat($item.nest($1,$2));}"},wrap:{_default:{$2:"null"},open:"$item.calls(__,$1,$2);__=[];",close:"call=$item.calls();__=call._.concat($item.wrap(call,__));"},each:{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},"if":{open:"if(($notnull_1) && $1a){",close:"}"},"else":{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},html:{open:"if($notnull_1){__.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){__.push($.encode($1a));}"},"!":{open:""}},complete:function(){t={}},afterManip:function(t,r,u){var f=r.nodeType===11?n.makeArray(r.childNodes):r.nodeType===1?[r]:[];u.call(t,r);b(f);i++}})}(jQuery);$(function(){$(".tree li:has(ul)").addClass("parent_li").find(" > span").attr("title","Collapse this branch");$(".tree li.parent_li > span").on("click",function(n){var t=$(this).parent("li.parent_li").find(" > ul > li");t.is(":visible")?(t.hide("fast"),$(this).attr("title","Expand this branch").find(" > i").addClass("glyphicon-plus-sign").removeClass("glyphicon-minus-sign")):(t.show("fast"),$(this).attr("title","Collapse this branch").find(" > i").addClass("glyphicon-minus-sign").removeClass("glyphicon-plus-sign"));n.stopPropagation()})});sessionStorage_flag=window.sessionStorage?!0:!1;collection=[];$(document).ready(function(){var t,i,u,n,r;if(startID=$("#txtStartItemId").val(),document.referrer.length==0&&eraseCookie(startID),$("#txtStep").val()==1&&eraseCookie(startID),t=readCookie(startID),t!=null)for(collection=jQuery.parseJSON(t),i=$("#txtStep").val(),u=closest(parseInt(i),collection),n=collection.length-1;n>=0;n--)parseInt(collection[n].step)>=parseInt(i)?collection.splice(n,1):(r=$('a[data-step="'+collection[n].step+'"]'),r.length>0&&RedirectToItem(collection[n].itemId,r[0]));Summary();skipSteps(collection);hideSteps()});$(document).ready(function(){$("button").each(function(){var n=$(this);$(this).find("span.print").length>0&&$(this).click(function(){var i=getAbsolutePath(),n=$("<div><\/div>"),r=$(this).attr("data-title"),u=$(".printcontent").html(),t=$("<div/>").html(u);return t.find(".error").remove(),$.get(i+"/Templates/Tutorial/Save/Tutorial.Save.tmpl.html",function(i){var e={Title:r,Text:t.html()},s;$.tmpl(i,e).appendTo($(n));try{var f=document.getElementById("ifrmPrint"),o=$(n).html(),u=f.contentWindow||f.contentDocument;u.document&&(u=u.document);s=window.location.hostname;u.write("<html><head><link href='/Content/css/Custom/css-save2file.css' rel='stylesheet' type='text/css' />");u.write("<\/head><body onload='this.focus(); this.print();'>");u.write(o+"<\/body><\/html>");u.close()}catch(h){alert(h.message);self.print()}}),!1});$(this).find("span.email").length>0&&$(this).click(function(){var r=$(this).attr("data-link"),u=$(".printcontent").html(),t,i,n;return createCookie("pagehtml",u,0),t="MyWindow",i=window.open("",t),i&&i.focus(),n=document.getElementById("navigateToEmail"),n.target=t,n.href=r,n.click(),!1});$(this).find("span.save").length>0&&$(this).click(function(){var i=getAbsolutePath(),n=$("<div><\/div>"),r=$(this).attr("data-title"),u=$(".printcontent").html(),t=$("<div/>").html(u);return t.find(".error").remove(),$.get(i+"/Templates/Tutorial/Save/Tutorial.Save.tmpl.html",function(i){var u={Title:r,Text:t.html()};$.tmpl(i,u).appendTo($(n));save(u.Title,$(n).html())}),!1});$(this).find("span.back").length>0&&$(this).click(function(){return parent.history.back(),!1})})});jQuery.fn.print=function(){var i,r,t,n;if(this.size()>1){this.eq(0).print();return}this.size()&&(i="printer-"+(new Date).getTime(),r=$("<iframe name='"+i+"'>"),r.css("width","1px").css("height","1px").css("position","absolute").css("left","-9999px").appendTo($("body:first")),t=window.frames[i],n=t.document,n.open(),n.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'),n.write("<html>"),n.write("<body>"),n.write("<head>"),n.write("<title>"),n.write(document.title),n.write("<\/title>"),n.write("<link rel='stylesheet' href='../../content/css/styles.css'>"),n.write("<\/head>"),n.write(this.html()),n.write("<\/body>"),n.write("<\/html>"),n.close(),t.focus(),t.print(),setTimeout(function(){r.remove()},6e4))};locations_LatLang=[];markers=[];$(function(){function i(n){for(var t=(new Date).getTime();t+n>=(new Date).getTime(););}function r(){var h=document.getElementById("map-canvas"),c=new google.maps.Geocoder,f=$(".location"),s,i,o,e,r;if(u(h),f.length>0)for(s=!1,i=0;i<f.length;i++)i==f.length-1&&(s=!0),o=$(f[i]).attr("data-address"),e=$(f[i]).attr("data-latlng"),typeof e=="undefined"&&typeof o!="undefined"!=null?c.geocode({address:o},function(i,r){if(r==google.maps.GeocoderStatus.OK){var u=[i[0].geometry.location.lat(),i[0].geometry.location.lng()];n(u);markers.length>1?t():map.setCenter(new google.maps.LatLng(u[0],u[1]))}}):typeof e!="undefined"&&(r=e.split(","),$.isNumeric(r[0])&&$.isNumeric(r[1])&&(n(r),markers.length>1?t():map.setCenter(new google.maps.LatLng(r[0],r[1]))));google.maps.event.trigger(map,"resize")}function u(n){var t=[43.67023,-79.38676],i={center:new google.maps.LatLng(t[0],t[1]),zoom:14,mapTypeId:google.maps.MapTypeId.ROADMAP};map=new google.maps.Map(n,i);map.setOptions({styles:[{featureType:"landscape",stylers:[{saturation:-100},{lightness:65},{visibility:"on"}]},{featureType:"poi",stylers:[{saturation:-100},{lightness:51},{visibility:"simplified"}]},{featureType:"road.highway",stylers:[{saturation:-100},{visibility:"simplified"}]},{featureType:"road.arterial",stylers:[{saturation:-100},{lightness:30},{visibility:"on"}]},{featureType:"road.local",stylers:[{saturation:-100},{lightness:40},{visibility:"on"}]},{featureType:"transit",stylers:[{saturation:-100},{visibility:"simplified"}]},{featureType:"administrative.province",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"labels",stylers:[{visibility:"on"},{lightness:-25},{saturation:-100}]},{featureType:"water",elementType:"geometry",stylers:[{hue:"#ffff00"},{lightness:-25},{saturation:-97}]}]})}function n(n){var r=$(".item-title").text(),i=$("#txtLocation").attr("data-address"),u='<div id="content" style=" width: 160px; height: 120px; overflow: hidden; text-overflow: ellipsis "><div id="siteNotice"><\/div><h5 id="firstHeading" class="firstHeading">'+r+'<\/h5><div id="bodyContent"><p>'+i+'<\/p><p style="border-top: 1px; border-top-color: lightgray; border-top-style: solid; padding-top: 5px;"><a href="https://www.google.com/maps?saddr='+i+'" title="Get Driving Directions" target="_blank">Get Directions<\/a><\/strong><br><\/div><\/div>',f=new google.maps.InfoWindow({content:u}),t=new google.maps.Marker({position:new google.maps.LatLng(n[0],n[1]),map:map});t.addListener("click",function(){f.open(map,t)});markers.push(t)}function t(){for(var t=new google.maps.LatLngBounds,n=0;n<markers.length;n++)markers[n].getVisible()&&t.extend(markers[n].getPosition());map.fitBounds(t)}$("#map-canvas").length==1&&(i(1e3),google.maps.event.addDomListener(window,"load",r))});$(document).on("click",".daterangepicker .btn-success",function(){$(".daterangepicker [name='daterangepicker_start']").length&&$("#txtFromDate").val($(".daterangepicker [name='daterangepicker_start']").val());$(".daterangepicker [name='daterangepicker_end']").length&&$("#txtToDate").val($(".daterangepicker [name='daterangepicker_end']").val());$("#findservices").length&&$("#findservices").submit()});$.extend({redirectPost:function(n,t){var i="";$.each(t,function(n,t){t=t.split('"').join('"');i+='<input type="hidden" name="'+n+'" value="'+t+'">'});$('<form action="'+n+'" method="POST">'+i+"<\/form>").appendTo($(document.body)).submit()}});!function(n){"use strict";function f(t,i,r){"addEventListener"in n?t.addEventListener(i,r,!1):"attachEvent"in n&&t.attachEvent("on"+i,r)}function ht(){for(var r=["moz","webkit","o","ms"],t=0;t<r.length&&!o;t+=1)o=n[r[t]+"RequestAnimationFrame"];o||i("setup","RequestAnimationFrame not supported")}function ct(t){var i="Host page: "+t;return n.top!==n.self&&(i=n.parentIFrame&&n.parentIFrame.getId?n.parentIFrame.getId()+": "+t:"Nested host page: "+t),i}function lt(n){return s+"["+ct(n)+"]"}function w(n){return t[n]?t[n].log:ot}function i(n,t){c("log",n,t,w(n))}function b(n,t){c("info",n,t,w(n))}function e(n,t){c("warn",n,t,!0)}function c(t,i,r,u){!0===u&&"object"==typeof n.console&&console[t](lt(i),r)}function at(f){function a(){function n(){rt(h);nt(o)}y("Height");y("Width");ut(n,h,"resetPage")}function ht(){var n=c.substr(v).split(":");return{iframe:t[n[0]].iframe,id:n[0],height:n[1],width:n[2],type:n[3]}}function y(n){var f=Number(t[o]["max"+n]),e=Number(t[o]["min"+n]),r=n.toLowerCase(),u=Number(h[r]);i(o,"Checking "+r+" is in range "+e+"-"+f);e>u&&(u=e,i(o,"Set "+r+" to min value"));u>f&&(u=f,i(o,"Set "+r+" to max value"));h[r]=""+u}function ct(){function u(){function u(){var t=0,u=!1;for(i(o,"Checking connection is from allowed list of origins: "+n);t<n.length;t++)if(n[t]===r){u=!0;break}return u}function f(){var n=t[o].remoteHost;return i(o,"Checking connection is from: "+n),r===n}return n.constructor===Array?u():f()}var r=f.origin,n=t[o].checkOrigin;if(n&&""+r!="null"&&!u())throw new Error("Unexpected message received from: "+r+" for "+h.iframe.id+". Message was: "+f.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}function lt(){return s===(""+c).substr(0,v)&&c.substr(v).split(":")[0]in t}function at(){var n=h.type in{"true":1,"false":1,undefined:1};return n&&i(o,"Ignoring init message from meta parent page"),n}function w(n){return c.substr(c.indexOf(":")+kt+n)}function vt(n){i(o,"MessageCallback passed: {iframe: "+h.iframe.id+", message: "+n+"}");l("messageCallback",{iframe:h.iframe,message:JSON.parse(n)});i(o,"--")}function yt(){var n=!0;return null===h.iframe&&(e(o,"IFrame ("+h.id+") not found"),n=!1),n}function et(n){var t=n.getBoundingClientRect();return g(o),{x:Math.floor(Number(t.left)+Number(r.x)),y:Math.floor(Number(t.top)+Number(r.y))}}function ot(t){function s(){r=f;st();i(o,"--")}function c(){return{x:Number(h.width)+u.x,y:Number(h.height)+u.y}}function l(){n.parentIFrame?n.parentIFrame["scrollTo"+(t?"Offset":"")](f.x,f.y):e(o,"Unable to scroll to requested position, window.parentIFrame not found")}var u=t?et(h.iframe):{x:0,y:0},f=c();i(o,"Reposition requested from iFrame (offset x:"+u.x+" y:"+u.y+")");n.top!==n.self?l():s()}function st(){!1!==l("scrollCallback",r)?nt(o):tt()}function pt(t){function s(){var n=et(e);i(o,"Moving to in page link (#"+u+") at x: "+n.x+" y: "+n.y);r={x:n.x,y:n.y};st();i(o,"--")}function h(){n.parentIFrame?n.parentIFrame.moveToAnchor(u):console.log(o,"In page link #"+u+" not found and window.parentIFrame not found")}var u=t.split("#")[1]||"",f=decodeURIComponent(u),e=document.getElementById(f)||document.getElementsByName(f)[0];e?s():n.top!==n.self?h():consolelog(o,"In page link #"+u+" not found")}function l(n,t){return k(o,n,t)}function wt(){switch(t[o].firstRun&&gt(),h.type){case"close":d(h.iframe);break;case"message":vt(w(6));break;case"scrollTo":ot(!1);break;case"scrollToOffset":ot(!0);break;case"inPageLink":pt(w(9));break;case"reset":it(h);break;case"init":a();l("initCallback",h.iframe);l("resizedCallback",h);break;default:a();l("resizedCallback",h)}}function bt(n){var i=!0;return t[n]||(i=!1,e(h.type+" No settings for "+n+". Message was: "+c)),i}function dt(){for(var n in t)u("iFrame requested init",ft(n),document.getElementById(n),n)}function gt(){t[o].firstRun=!1}var c=f.data,h={},o=null;"[iFrameResizerChild]Ready"===c?dt():lt()?(h=ht(),o=p=h.id,!at()&&bt(o)&&(i(o,"Received: "+c),yt()&&ct()&&wt())):b(o,"Ignored: "+c)}function k(n,i,r){var u=null,f=null;if(t[n]){if(u=t[n][i],"function"!=typeof u)throw new TypeError(i+" on iFrame["+n+"] is not a function");f=u(r)}return f}function d(n){var r=n.id;i(r,"Removing iFrame: "+r);n.parentNode.removeChild(n);k(r,"closedCallback",r);i(r,"--");delete t[r]}function g(t){null===r&&(r={x:void 0!==n.pageXOffset?n.pageXOffset:document.documentElement.scrollLeft,y:void 0!==n.pageYOffset?n.pageYOffset:document.documentElement.scrollTop},i(t,"Get page position: "+r.x+","+r.y))}function nt(t){null!==r&&(n.scrollTo(r.x,r.y),i(t,"Set page position: "+r.x+","+r.y),tt())}function tt(){r=null}function it(n){function t(){rt(n);u("reset","reset",n.iframe,n.id)}i(n.id,"Size reset requested by "+("init"===n.type?"host page":"iFrame"));g(n.id);ut(t,n,"reset")}function rt(n){function f(t){n.iframe.style[t]=n[t]+"px";i(n.id,"IFrame ("+r+") "+t+" set to "+n[t]+"px")}function e(t){st||"0"!==n[t]||(st=!0,i(r,"Hidden iFrame detected, creating visibility listener"),yt())}function u(n){f(n);e(n)}var r=n.iframe.id;t[r]&&(t[r].sizeHeight&&u("height"),t[r].sizeWidth&&u("width"))}function ut(n,t,r){r!==t.type&&o?(i(t.id,"Requesting animation frame"),o(n)):n()}function u(n,r,u,f){function e(){i(f,"["+n+"] Sending msg to iframe["+f+"] ("+r+")");u.contentWindow.postMessage(s+r,h)}function o(){b(f,"["+n+"] IFrame("+f+") not found");t[f]&&delete t[f]}f=f||u.id;var h=t[f].targetOrigin;u&&"contentWindow"in u?e():o()}function ft(n){return n+":"+t[n].bodyMarginV1+":"+t[n].sizeWidth+":"+t[n].log+":"+t[n].interval+":"+t[n].enablePublicMethods+":"+t[n].autoResize+":"+t[n].bodyMargin+":"+t[n].heightCalculationMethod+":"+t[n].bodyBackground+":"+t[n].bodyPadding+":"+t[n].tolerance+":"+t[n].inPageLinks+":"+t[n].resizeFrom+":"+t[n].widthCalculationMethod}function et(n,r){function s(){function r(r){1/0!==t[o][r]&&0!==t[o][r]&&(n.style[r]=t[o][r]+"px",i(o,"Set "+r+" = "+t[o][r]+"px"))}function u(n){if(t[o]["min"+n]>t[o]["max"+n])throw new Error("Value for min"+n+" can not be greater than max"+n);}u("Height");u("Width");r("maxHeight");r("minHeight");r("maxWidth");r("minWidth")}function c(t){return p=t,""===t&&(n.id=t=(r.id||h.id)+bt++,ot=(r||{}).log,p=t,i(t,"Added missing iframe ID: "+t+" ("+n.src+")")),t}function l(){i(o,"IFrame scrolling "+(t[o].scrolling?"enabled":"disabled")+" for "+o);n.style.overflow=!1===t[o].scrolling?"hidden":"auto";n.scrolling=!1===t[o].scrolling?"no":"yes"}function a(){("number"==typeof t[o].bodyMargin||"0"===t[o].bodyMargin)&&(t[o].bodyMarginV1=t[o].bodyMargin,t[o].bodyMargin=""+t[o].bodyMargin+"px")}function v(){var i=t[o].firstRun,r=t[o].heightCalculationMethod in dt;!i&&r&&it({iframe:n,height:0,width:0,type:"init"})}function y(){Function.prototype.bind&&(t[o].iframe.iFrameResizer={close:d.bind(null,t[o].iframe),resize:u.bind(null,"Window resize","resize",t[o].iframe),moveToAnchor:function(n){u("Move to anchor","inPageLink:"+n,t[o].iframe,o)},sendMessage:function(n){n=JSON.stringify(n);u("Send Message","message:"+n,t[o].iframe,o)}})}function w(t){function i(){u("iFrame.onload",t,n);v()}f(n,"load",i);u("init",t,n)}function b(n){if("object"!=typeof n)throw new TypeError("Options is not an object");}function k(n){for(var i in h)h.hasOwnProperty(i)&&(t[o][i]=n.hasOwnProperty(i)?n[i]:h[i])}function g(n){return""===n||"file://"===n?"*":n}function nt(i){i=i||{};t[o]={firstRun:!0,iframe:n,remoteHost:n.src.split("/").slice(0,3).join("/")};b(i);k(i);t[o].targetOrigin=!0===t[o].checkOrigin?g(t[o].remoteHost):"*"}function tt(){return o in t&&"iFrameResizer"in n}var o=c(n.id);tt()?e(o,"Ignored iFrame, already setup."):(nt(r),l(),s(),a(),w(ft(o)),y())}function l(n,t){null===y&&(y=setTimeout(function(){y=null;n()},t))}function vt(n){return null!==n.offsetParent}function yt(){function f(){function n(n){function i(i){return"0px"===t[n].iframe.style[i]}vt(t[n].iframe)&&(i("height")||i("width"))&&u("Visibility change","resize",t[n].iframe,n)}for(var i in t)n(i)}function e(n){i("window","Mutation observed: "+n[0].target+" "+n[0].type);l(f,16)}function o(){var n=document.querySelector("body"),t=new r(e);t.observe(n,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0})}var r=n.MutationObserver||n.WebKitMutationObserver;r&&o()}function pt(){function r(n){function t(){o("Window "+n,"resize")}i("window","Trigger event: "+n);l(t,16)}function e(){function n(){o("Tab Visable","resize")}"hidden"!==document.visibilityState&&(i("document","Trigger event: Visiblity change"),l(n,16))}function o(n,i){function f(n){return"parent"===t[n].resizeFrom&&t[n].autoResize&&!t[n].firstRun}for(var r in t)f(r)&&u(n,i,document.getElementById(r),r)}f(n,"message",at);f(n,"resize",function(){r("resize")});f(document,"visibilitychange",e);f(document,"-webkit-visibilitychange",e);f(n,"focusin",function(){r("focus")});f(n,"focus",function(){r("focus")})}function a(){function t(t,i){if(!i.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==i.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+i.tagName+">");et(i,t);n.push(i)}var n;return ht(),pt(),function(i,r){switch(n=[],typeof r){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(r||"iframe"),t.bind(void 0,i));break;case"object":t(i,r);break;default:throw new TypeError("Unexpected data type ("+typeof r+")");}return n}}function wt(n){n.fn.iFrameResize=function(n){return this.filter("iframe").each(function(t,i){et(i,n)}).end()}}var bt=0,ot=!1,st=!1,kt=7,s="[iFrameSizer]",v=s.length,r=null,o=n.requestAnimationFrame,dt={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},t={},y=null,p="Host Page",h={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,tolerance:0,widthCalculationMethod:"scroll",closedCallback:function(){},initCallback:function(){},messageCallback:function(){e("MessageCallback function not defined")},resizedCallback:function(){},scrollCallback:function(){return!0}};n.jQuery&&wt(jQuery);"function"==typeof define&&define.amd?define([],a):"object"==typeof module&&"object"==typeof module.exports?module.exports=a():n.iFrameResize=n.iFrameResize||a()}(window||{});$(document).ready(function(){$($('a[href*="media/Files/"]')).each(function(){var n=$(this).attr("href");if(n!="")$(this).on("click",function(){var t=$(this).innerText(),i=n;return _gaq.push(["_trackEvent","Download","Click-"+t,i]),$(this).attr("target")!=undefined&&$(this).attr("target").toLowerCase()!="_blank"?(setTimeout(function(){location.href=baseHref+n},200),!1):void 0})})})