window.matchMedia=window.matchMedia||function(a,d){var e,f=a.documentElement,n=f.firstElementChild||f.firstChild,h=a.createElement("body"),b=a.createElement("div");b.id="mq-test-1";b.style.cssText="position:absolute;top:-100em";h.style.background="none";h.appendChild(b);return function(a){b.innerHTML='­';f.insertBefore(h,n);e=42==b.offsetWidth;f.removeChild(h);return{matches:e,media:a}}}(document); (function(a){function d(){u(!0)}a.respond={};respond.update=function(){};respond.mediaQueriesSupported=a.matchMedia&&a.matchMedia("only all").matches;if(!respond.mediaQueriesSupported){var e=a.document,f=e.documentElement,n=[],h=[],b=[],g={},p=e.getElementsByTagName("head")[0]||f,C=e.getElementsByTagName("base")[0],q=p.getElementsByTagName("link"),k=[],z=function(){for(var D=q.length,v=0,c,b,e,f;vl- w)clearTimeout(A),A=setTimeout(u,30);else{w=l;for(var r in n){a=n[r];var l=a.minw,m=a.maxw,k=null===l,t=null===m;l&&(l=parseFloat(l)*(-1=l)||!(t||c<=m))||(d[a.media]||(d[a.media]=[]),d[a.media].push(h[a.rules]))}for(r in b)b[r]&&b[r].parentNode===p&&p.removeChild(b[r]);for(r in d)c=e.createElement("style"),a=d[r].join("\n"),c.type="text/css",c.media=r,p.insertBefore(c,g.nextSibling),c.styleSheet? c.styleSheet.cssText=a:c.appendChild(e.createTextNode(a)),b.push(c)}},E=function(a,b){var c=F();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!=c.readyState||200!=c.status&&304!=c.status||b(c.responseText)},4!=c.readyState&&c.send(null))},F=function(){var a=!1;try{a=new XMLHttpRequest}catch(b){a=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return a}}();z();respond.update=z;a.addEventListener?a.addEventListener("resize",d,!1):a.attachEvent&&a.attachEvent("onresize",d)}})(this); jQuery(document).ready(function(a){a("a[href=#scroll-top]").click(function(){a("html, body").animate({scrollTop:0},"slow");return!1})}); (function(a){a.fn.fitVids=function(d){var e={customSelector:null},f=document.createElement("div"),n=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];f.className="fit-vids-style";f.innerHTML="­";n.parentNode.insertBefore(f, n);d&&a.extend(e,d);return this.each(function(){var d=["iframe[src*='player.vimeo.com']","iframe[src*='www.youtube.com']","iframe[src*='www.youtube-nocookie.com']","iframe[src*='fast.wistia.com']","embed"];e.customSelector&&d.push(e.customSelector);a(this).find(d.join(",")).each(function(){var b=a(this);if(!("embed"===this.tagName.toLowerCase()&&b.parent("object").length||b.parent(".fluid-width-video-wrapper").length)){var d="object"===this.tagName.toLowerCase()||b.attr("height")&&!isNaN(parseInt(b.attr("height"), 10))?parseInt(b.attr("height"),10):b.height(),e=isNaN(parseInt(b.attr("width"),10))?b.width():parseInt(b.attr("width"),10),d=d/e;b.attr("id")||(e="fitvid"+Math.floor(999999*Math.random()),b.attr("id",e));b.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",100*d+"%");b.removeAttr("height").removeAttr("width")}})})}})(jQuery); (function(a){var d=a(".main-nav li.current-menu-item a").html(),d=a(".main-nav li.current_page_item a").html();if(a("span").hasClass("custom-mobile-menu-title"))d=a("span.custom-mobile-menu-title").html();else if("undefined"==typeof d||null===d)d=a("body").hasClass("home")?a("#logo span").hasClass("site-name")?a("#logo .site-name a").html():a("#logo img").attr("alt"):a("body").hasClass("woocommerce")&&a("h1").hasClass("page-title")?a("h1.page-title").html():a("body").hasClass("woocommerce")&&a("h1").hasClass("entry-title")? a("h1.entry-title").html():a("body").hasClass("archive")&&a("h6").hasClass("title-archive")?a("h6.title-archive").html():a("body").hasClass("search-results")&&a("h6").hasClass("title-search-results")?a("h6.title-search-results").html():a("body").hasClass("page-template-blog-excerpt-php")&&a("li").hasClass("current_page_item")?a("li.current_page_item").text():a("body").hasClass("page-template-blog-php")&&a("li").hasClass("current_page_item")?a("li.current_page_item").text():a("h1").hasClass("post-title")? a("h1.post-title").html():" ";a(".main-nav").append('');a(".main-nav").prepend('
'+d+"
");a("a#responsive_menu_button, #responsive_current_menu_item").click(function(){a(".js .main-nav .menu").slideToggle(function(){a(this).is(":visible")?a("a#responsive_menu_button").addClass("responsive-toggle-open"):(a("a#responsive_menu_button").removeClass("responsive-toggle-open"),a(".js .main-nav .menu").removeAttr("style"))})})})(jQuery); (function(a){a("html").click(function(){a("a#responsive_menu_button").hasClass("responsive-toggle-open")&&a(".js .main-nav .menu").slideToggle(function(){a("a#responsive_menu_button").removeClass("responsive-toggle-open");a(".js .main-nav .menu").removeAttr("style")})})})(jQuery);jQuery(".main-nav").click(function(a){"/wp-admin/customize.php"!=window.location.pathname&&a.stopPropagation()});jQuery(function(){jQuery("input[placeholder], textarea[placeholder]").placeholder()});jQuery(document).ready(function(){jQuery("#wrapper").fitVids()});