/*DX-Info: signal.1 */ /******************* Package: Analytics Events Version: 1.0 *******************/ //****************************************************************************/ // DynamiX Standard Analytics Events // Version 1.0 // March 17, 2014 //****************************************************************************/ (function($){ $(document).ready(function() { /* Track those spending a long time on a page */ window.elapsed_time = 0; setInterval(function(){ window.elapsed_time += 1; var page_title = document.title; if (window.elapsed_time == 180) { /* _gaq.push(['_trackEvent', 'Reading Article', '3 minutes', page_title]); */ trackThis('Reading Article', '3 Minutes', page_title); } else if (window.elapsed_time == 300) { /* _gaq.push(['_trackEvent', 'Reading Article', '5 minutes', page_title]); */ trackThis('Reading Article', '5 Minutes', page_title); } else if (window.elapsed_time == 420) { /* _gaq.push(['_trackEvent', 'Reading Article', '7 minutes', page_title]); */ trackThis('Reading Article', '7 Minutes', page_title); } else if (window.elapsed_time == 540) { /* _gaq.push(['_trackEvent', 'Reading Article', '9 minutes', page_title]); */ trackThis('Reading Article', '9 Minutes', page_title); } else if (window.elapsed_time == 660) { /* _gaq.push(['_trackEvent', 'Reading Article', '11 minutes', page_title]); */ trackThis('Reading Article', '11 Minutes', page_title); } }, 1000); /* Track external links */ $('a').on('click', function() { try { href = $(this).attr('href'); if (href.match(/https?\:\/\//).length === 0) { return false; } /* Track telephone links */ if (href.match(/^tel\:/).length > 0) { // _gaq.push(['_trackEvent', 'Click to call', $(this).text(), href]); trackThis('Click to Call', $(this).text(), href); return true; } if (href.indexOf(window.location['host']) < 0) { // _gaq.push(['_trackEvent', 'External link', $(this).text(), href]); trackThis('External link', $(this).text(), href); // console.log("External link"); } } catch(err) {} }); /* Track any time the .phone class is clicked */ $('.phone').on('click', function(e) { // _gaq.push(['_trackEvent', 'Clicked phone number', $(this).text()]); trackThis('Clicked phone number', $(this).text()); }); $('.tel').on('click', function(e) { // _gaq.push(['_trackEvent', 'Clicked phone number', $(this).text()]); trackThis('Clicked phone number', $(this).text()); }); /* Track form submission */ $('.sendit').on('click', function(e) { // _gaq.push(['_trackEvent', 'Form Submission', $(this).val()]); trackThis('Form Submission', $(this).val()); }); /* Track any outbound links */ $('a[href^="http://"]') .not('[href*="' + document.domain + '"]') .attr('target','_blank') .on('click', function(e) { var $this = $(this) ,url = $this.attr('href') ,newtab = ($this.attr('target') === '_blank' || e.metaKey || e.ctrlKey); window._gaq = window._gaq || []; try { if (!newtab) { e.preventDefault(); setTimeout(function(){ document.location = url; }, 100); } } catch (err){} }); }); })(jQuery); //****************************************************************************/ // trackThis() | Helper function which tracks events // for both anatlyics.js (new )and ga.js (old) //****************************************************************************/ var googleAnalyticsVersion = 0; // 0 = err, 1 = Universal (analytics.js), 2 = Classic (ga.js) (function($){ $(document).ready(function() { /* Universal | 1 */ if (typeof ga === 'function') { googleAnalyticsVersion = 1; /*console.info('dx-ga: universal');*/ } /* Classic | 2 9*/ if (typeof _gaq !== 'undefined' && typeof _gaq.push === 'function') { googleAnalyticsVersion = 2; /*console.info('dx-ga: classic');*/ } }); })(jQuery); function trackThis(category, action, label, value) { // Catch any undefined values if (label === undefined) { label = ''; } // If the value is undefined, don't send it if (value === undefined) { if (googleAnalyticsVersion == 1) { ga('send', 'event', category, action, label); } else if (googleAnalyticsVersion == 2) { _gaq.push(['_trackEvent', category, action, label]); } else { console.log('Google Analytics event error.'); } } else { if (googleAnalyticsVersion == 1) { ga('send', 'event', category, action, label, value); } else if (googleAnalyticsVersion == 2) { _gaq.push(['_trackEvent', category, action, label, value]); } else { console.log('Google Analytics event error.'); } } } /******************* Package: MSG Sent Version: 2.0 *******************/ (function(e){jQuery.fn.msgSent=function(t){var i={variable:"sent",message:"Thank you for contacting us! We look forward to helping you with your needs.

We will contact you soon to discuss how we can help!",bgColor:"rgb(61, 80, 102)",bgColorAlpha:"rgba(61, 80, 102,.9)",borderRadius:"50%"},t=e.extend(i,t);return this.each(function(){function i(){var e={};return window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(t,i,n){e[i]=n}),e}function n(){var i=' ",n=i.replace(/(\r\n|\n|\r|\t)/gm,"");e("head").append(n)}function o(e){var i='

'+t.message+'

✖ close
';e.prepend(i)}var a=e(this),s=i().msg;return s==t.variable&&(n(),o(a),e(".msgsent."+t.variable).length>0&&(e(".msgsent."+t.variable+" .close-icon").click(function(){e(".msgsent."+t.variable).stop().animate({top:"-350px"},600),e(".dyn-page-mask."+t.variable).stop().fadeOut(600)}),e(".msgsent."+t.variable).delay(600).animate({top:"75px"},600).delay(8e3).animate({top:"-350px"},600),e(".dyn-page-mask."+t.variable).delay(600).fadeIn(600).delay(8e3).fadeOut(600))),!0})}})(jQuery); /******************* Package: Placeholder Version: 3.0.0 *******************/ /* Placeholders.js v3.0.0 */ (function(t){"use strict";function e(t,e,r){return t.addEventListener?t.addEventListener(e,r,!1):t.attachEvent?t.attachEvent("on"+e,r):void 0}function r(t,e){var r,n;for(r=0,n=t.length;n>r;r++)if(t[r]===e)return!0;return!1}function n(t,e){var r;t.createTextRange?(r=t.createTextRange(),r.move("character",e),r.select()):t.selectionStart&&(t.focus(),t.setSelectionRange(e,e))}function a(t,e){try{return t.type=e,!0}catch(r){return!1}}t.Placeholders={Utils:{addEventListener:e,inArray:r,moveCaret:n,changeType:a}}})(this),function(t){"use strict";function e(){}function r(t,e){var r,n,a=!!e&&t.value!==e,u=t.value===t.getAttribute(V);return(a||u)&&"true"===t.getAttribute(P)?(t.removeAttribute(P),t.value=t.value.replace(t.getAttribute(V),""),t.className=t.className.replace(R,""),n=t.getAttribute(Q),n&&(t.setAttribute("maxLength",n),t.removeAttribute(Q)),r=t.getAttribute(D),r&&(t.type=r),!0):!1}function n(t){var e,r,n=t.getAttribute(V);return""===t.value&&n?(t.setAttribute(P,"true"),t.value=n,t.className+=" "+k,r=t.getAttribute(Q),r||(t.setAttribute(Q,t.maxLength),t.removeAttribute("maxLength")),e=t.getAttribute(D),e?t.type="text":"password"===t.type&&J.changeType(t,"text")&&t.setAttribute(D,"password"),!0):!1}function a(t,e){var r,n,a,u,i;if(t&&t.getAttribute(V))e(t);else for(r=t?t.getElementsByTagName("input"):p,n=t?t.getElementsByTagName("textarea"):h,i=0,u=r.length+n.length;u>i;i++)a=r.length>i?r[i]:n[i-r.length],e(a)}function u(t){a(t,r)}function i(t){a(t,n)}function l(t){return function(){m&&t.value===t.getAttribute(V)&&"true"===t.getAttribute(P)?J.moveCaret(t,0):r(t)}}function o(t){return function(){n(t)}}function c(t){return function(e){return b=t.value,"true"===t.getAttribute(P)&&b===t.getAttribute(V)&&J.inArray(C,e.keyCode)?(e.preventDefault&&e.preventDefault(),!1):void 0}}function s(t){return function(){r(t,b),""===t.value&&(t.blur(),J.moveCaret(t,0))}}function d(t){return function(){t===document.activeElement&&t.value===t.getAttribute(V)&&"true"===t.getAttribute(P)&&J.moveCaret(t,0)}}function g(t){return function(){u(t)}}function v(t){t.form&&(L=t.form,L.getAttribute(I)||(J.addEventListener(L,"submit",g(L)),L.setAttribute(I,"true"))),J.addEventListener(t,"focus",l(t)),J.addEventListener(t,"blur",o(t)),m&&(J.addEventListener(t,"keydown",c(t)),J.addEventListener(t,"keyup",s(t)),J.addEventListener(t,"click",d(t))),t.setAttribute(U,"true"),t.setAttribute(V,E),(m||t!==document.activeElement)&&n(t)}var p,h,m,f,b,A,y,E,x,L,T,S,N,w=["text","search","url","tel","email","password","number","textarea"],C=[27,33,34,35,36,37,38,39,40,8,46],B="#ccc",k="placeholdersjs",R=RegExp("(?:^|\\s)"+k+"(?!\\S)"),V="data-placeholder-value",P="data-placeholder-active",D="data-placeholder-type",I="data-placeholder-submit",U="data-placeholder-bound",j="data-placeholder-focus",q="data-placeholder-live",Q="data-placeholder-maxlength",z=document.createElement("input"),F=document.getElementsByTagName("head")[0],G=document.documentElement,H=t.Placeholders,J=H.Utils;if(H.nativeSupport=void 0!==z.placeholder,!H.nativeSupport){for(p=document.getElementsByTagName("input"),h=document.getElementsByTagName("textarea"),m="false"===G.getAttribute(j),f="false"!==G.getAttribute(q),A=document.createElement("style"),A.type="text/css",y=document.createTextNode("."+k+" { color:"+B+"; }"),A.styleSheet?A.styleSheet.cssText=y.nodeValue:A.appendChild(y),F.insertBefore(A,F.firstChild),N=0,S=p.length+h.length;S>N;N++)T=p.length>N?p[N]:h[N-p.length],E=T.attributes.placeholder,E&&(E=E.nodeValue,E&&J.inArray(w,T.type)&&v(T));x=setInterval(function(){for(N=0,S=p.length+h.length;S>N;N++)T=p.length>N?p[N]:h[N-p.length],E=T.attributes.placeholder,E?(E=E.nodeValue,E&&J.inArray(w,T.type)&&(T.getAttribute(U)||v(T),(E!==T.getAttribute(V)||"password"===T.type&&!T.getAttribute(D))&&("password"===T.type&&!T.getAttribute(D)&&J.changeType(T,"text")&&T.setAttribute(D,"password"),T.value===T.getAttribute(V)&&(T.value=E),T.setAttribute(V,E)))):T.getAttribute(P)&&(r(T),T.removeAttribute(V));f||clearInterval(x)},100)}H.disable=H.nativeSupport?e:u,H.enable=H.nativeSupport?e:i}(this),function(t){"use strict";var e=t.fn.val,r=t.fn.prop;Placeholders.nativeSupport||(t.fn.val=function(t){return void 0===t&&this.eq(0).data("placeholder-active")?"":e.apply(this,arguments)},t.fn.prop=function(t,e){return void 0===e&&this.eq(0).data("placeholder-active")&&"value"===t?"":r.apply(this,arguments)})}(jQuery); /******************* Package: equalHeightColumns - Dynamix Version: 1.3 *******************/ (function(e){jQuery.fn.equalHeightColumns=function(t,i){function n(n){newCount=i(t);var o,a=0;n.length,n.css({height:"auto"});var s=0;n.each(function(t){if(e(this).outerHeight()>a&&(o=e(this),a=e(this).outerHeight()),++s,s>=newCount||t==n.length-1){var i=t-(s-1);e(n).slice(i,t+1).css({height:a+"px"}),a=0,s=0}})}var o=this;return t=t?t:o.length,void 0==i&&(i=function(){return t}),n(this),e(window).on("resize.equalHeightColumns",function(){n(o)}),this.each(function(){return!0})}})(jQuery); /******************* Package: inView.js Version: 1.0 *******************/ (function(d){var p={},e,a,h=document,i=window,f=h.documentElement,j=d.expando;d.event.special.inview={add:function(a){p[a.guid+"-"+this[j]]={data:a,$element:d(this)}},remove:function(a){try{delete p[a.guid+"-"+this[j]]}catch(d){}}};d(i).bind("scroll resize",function(){e=a=null});!f.addEventListener&&f.attachEvent&&f.attachEvent("onfocusin",function(){a=null});setInterval(function(){var k=d(),j,n=0;d.each(p,function(a,b){var c=b.data.selector,d=b.$element;k=k.add(c?d.find(c):d)});if(j=k.length){var b; if(!(b=e)){var g={height:i.innerHeight,width:i.innerWidth};if(!g.height&&((b=h.compatMode)||!d.support.boxModel))b="CSS1Compat"===b?f:h.body,g={height:b.clientHeight,width:b.clientWidth};b=g}e=b;for(a=a||{top:i.pageYOffset||f.scrollTop||h.body.scrollTop,left:i.pageXOffset||f.scrollLeft||h.body.scrollLeft};na.top&&c.topa.left&&c.leftc.left?"right":a.left+e.widthc.top?"bottom":a.top+e.height0&&(o=e.extend(o,t(o.region))),o.regex=n(o),this.each(function(){$this=e(this);var t="0";if(t=$this[$this.is("input, select, textarea")?"val":"html"](),t.search("\\(")>=0&&(t="-"+t),""!==t&&("-"!==t||-1!==o.roundToDecimalPlace)){if(isNaN(t)){if(t=t.replace(o.regex,""),""===t||"-"===t&&-1===o.roundToDecimalPlace)return;"."!=o.decimalSymbol&&(t=t.replace(o.decimalSymbol,".")),isNaN(t)&&(t="0")}var n=(t+"").split("."),a=t==Math.abs(t),s=n.length>1,r=s?""+n[1]:"0",l=r;if(t=Math.abs(n[0]),t=isNaN(t)?0:t,o.roundToDecimalPlace>=0&&(r=parseFloat("1."+r),r=r.toFixed(o.roundToDecimalPlace),"2"==r.substring(0,1)&&(t=Number(t)+1),r=r.substring(2)),t+="",o.groupDigits)for(var d=0;Math.floor((t.length-(1+d))/3)>d;d++)t=t.substring(0,t.length-(4*d+3))+o.digitGroupSymbol+t.substring(t.length-(4*d+3));(s&&-1==o.roundToDecimalPlace||o.roundToDecimalPlace>0)&&(t+=o.decimalSymbol+r);var c=a?o.positiveFormat:o.negativeFormat,u=c.replace(/%s/g,o.symbol);u=u.replace(/%n/g,t);var h=e([]);h=i?e(i):$this,h[h.is("input, select, textarea")?"val":"html"](u),s&&o.eventOnDecimalsEntered&&l.length>o.roundToDecimalPlace&&h.trigger("decimalsEntered",l),o.colorize&&h.css("color",a?"black":"red")}})},e.fn.toNumber=function(i){var o=e.extend({name:"toNumber",region:"",global:!0},e.formatCurrency.regions[""]);return i=jQuery.extend(o,i),i.region.length>0&&(i=e.extend(i,t(i.region))),i.regex=n(i),this.each(function(){var t=e(this).is("input, select, textarea")?"val":"html";e(this)[t](e(this)[t]().replace("(","(-").replace(i.regex,""))})},e.fn.asNumber=function(o){var a=e.extend({name:"asNumber",region:"",parse:!0,parseType:"Float",global:!0},e.formatCurrency.regions[""]);o=jQuery.extend(a,o),o.region.length>0&&(o=e.extend(o,t(o.region))),o.regex=n(o),o.parseType=i(o.parseType);var s=e(this).is("input, select, textarea")?"val":"html",r=e(this)[s]();return r=r?r:"",r=r.replace("(","(-"),r=r.replace(o.regex,""),o.parse?(0==r.length&&(r="0"),"."!=o.decimalSymbol&&(r=r.replace(o.decimalSymbol,".")),window["parse"+o.parseType](r)):r}})(jQuery); /******************* Package: MobileNav Version: 4.5 *******************/ (function(e){jQuery.fn.mobileNav=function(t){function i(i){i.find("#menu").prepend('

'+t.navText+"

"),i.find("#menu-icon").click(function(){i.find("#nav").toggle(),e(this).toggleClass("active"),e(i).toggleClass("active")}),i.find("#nav > li ul, .submenu-wrapper").parents("li").addClass("parent-menu"),i.find("#nav > li ul").parents("li").addClass("parent").find("a:eq(0)").append('').find(".toggle").click(function(t){t.preventDefault(),e(this).parents("li").find("ul").toggleClass("open")})}function n(i){var n="#"+i.attr("id"),o=e("#nav").css("display"),a=t.breakPoint+1,s=' ";s.replace(/(\r\n|\n|\r|\t)/gm,""),e("head").append(s)}var o={breakPoint:740,navText:"Navigation",navIcon:"/images/mobile-menu-icon@2x.png",navBgColor:"rgb(185, 6, 0)",navBgHover:"rgb(1, 40, 124)",navTextColor:"white",navTextColorHover:"#ffffff",menuDividerColor:"rgb(221, 221, 221)",menuBgColor:"rgb(194, 124, 0)",menuBgHover:"rgb(71, 132, 193)",menuTextColor:"#ffffff",menuTextColorHover:"#ffffff",subMenuBgColor:"rgb(206, 230, 255)",subMenuTextColor:"#333333",addStyles:!0},t=e.extend(o,t);return this.each(function(){var o=e(this);return i(o),1==t.addStyles&&n(o),!0})}})(jQuery); /******************* Package: FitText Version: v1.1 *******************/ (function(e){e.fn.fitText=function(t,i){var n=t||1,o=e.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY},i);return this.each(function(){var t=e(this),i=function(){t.css("font-size",Math.max(Math.min(t.width()/(10*n),parseFloat(o.maxFontSize)),parseFloat(o.minFontSize)))};i(),e(window).on("resize.fittext orientationchange.fittext",i)})}})(jQuery); /******************* Package: Garlic.js Version: 1.2.0 *******************/ /* Garlicjs dist/garlic.min.js build version 1.2.0 http://garlicjs.org */ !function(b){var h=function(){this.defined="undefined"!==typeof localStorage};h.prototype={constructor:h,get:function(a,b){return localStorage.getItem(a)?localStorage.getItem(a):"undefined"!==typeof b?b:null},has:function(a){return localStorage.getItem(a)?!0:!1},set:function(a,b,d){"string"===typeof b&&(""===b?this.destroy(a):localStorage.setItem(a,b));return"function"===typeof d?d():!0},destroy:function(a,b){localStorage.removeItem(a);return"function"===typeof b?b():!0},clean:function(a){for(var b= localStorage.length-1;0<=b;b--)"undefined"===typeof Array.indexOf&&-1!==localStorage.key(b).indexOf("garlic:")&&localStorage.removeItem(localStorage.key(b));return"function"===typeof a?a():!0},clear:function(a){localStorage.clear();return"function"===typeof a?a():!0}};var j=function(a,b,d){this.init("garlic",a,b,d)};j.prototype={constructor:j,init:function(a,c,d,f){this.type=a;this.$element=b(c);this.options=this.getOptions(f);this.storage=d;this.path=this.options.getPath(this.$element)||this.getPath(); this.parentForm=this.$element.closest("form");this.$element.addClass("garlic-auto-save");this.expiresFlag=!this.options.expires?!1:(this.$element.data("expires")?this.path:this.getPath(this.parentForm))+"_flag";this.$element.on(this.options.events.join("."+this.type+" "),!1,b.proxy(this.persist,this));if(this.options.destroy)b(this.parentForm).on("submit reset",!1,b.proxy(this.destroy,this));this.retrieve()},getOptions:function(a){return b.extend({},b.fn[this.type].defaults,a,this.$element.data())}, persist:function(){if(this.val!==this.$element.val()){this.val=this.$element.val();this.options.expires&&this.storage.set(this.expiresFlag,((new Date).getTime()+1E3*this.options.expires).toString());if(this.$element.is("input[type=checkbox]"))return this.storage.set(this.path,this.$element.attr("checked")?"checked":"unchecked");this.storage.set(this.path,this.$element.val())}},retrieve:function(){if(this.storage.has(this.path)){if(this.options.expires){var a=(new Date).getTime();if(this.storage.get(this.expiresFlag)< a.toString()){this.storage.destroy(this.path);return}this.$element.attr("expires-in",Math.floor((parseInt(this.storage.get(this.expiresFlag))-a)/1E3))}a=this.storage.get(this.path);if(this.options.conflictManager.enabled&&this.detectConflict())return this.conflictManager();if(this.$element.is("input[type=radio], input[type=checkbox]")){if("checked"===a||this.$element.val()===a)return this.$element.attr("checked",!0);"unchecked"===a&&this.$element.attr("checked",!1)}else this.$element.val(a),this.options.onRetrieve(this.$element, a)}},detectConflict:function(){var a=this;if(this.$element.is("input[type=checkbox], input[type=radio]"))return!1;if(this.$element.val()&&this.storage.get(this.path)!==this.$element.val()){if(this.$element.is("select")){var c=!1;this.$element.find("option").each(function(){0!==b(this).index()&&(b(this).attr("selected")&&b(this).val()!==a.storage.get(this.path))&&(c=!0)});return c}return!0}return!1},conflictManager:function(){if("function"===typeof this.options.conflictManager.onConflictDetected&& !this.options.conflictManager.onConflictDetected(this.$element,this.storage.get(this.path)))return!1;this.options.conflictManager.garlicPriority?(this.$element.data("swap-data",this.$element.val()),this.$element.data("swap-state","garlic"),this.$element.val(this.storage.get(this.path))):(this.$element.data("swap-data",this.storage.get(this.path)),this.$element.data("swap-state","default"));this.swapHandler();this.$element.addClass("garlic-conflict-detected");this.$element.closest("input[type=submit]").attr("disabled", !0)},swapHandler:function(){var a=b(this.options.conflictManager.template);this.$element.after(a.text(this.options.conflictManager.message));a.on("click",!1,b.proxy(this.swap,this))},swap:function(){var a=this.$element.data("swap-data");this.$element.data("swap-state","garlic"===this.$element.data("swap-state")?"default":"garlic");this.$element.data("swap-data",this.$element.val());b(this.$element).val(a)},destroy:function(){this.storage.destroy(this.path)},remove:function(){this.remove();this.$element.is("input[type=radio], input[type=checkbox]")? b(this.$element).attr("checked",!1):this.$element.val("")},getPath:function(a){"undefined"===typeof a&&(a=this.$element);if(this.options.getPath(a))return this.options.getPath(a);if(1!=a.length)return!1;for(var c="",d=a.is("input[type=checkbox]"),f=a;f.length;){a=f[0];var e=a.nodeName;if(!e)break;var e=e.toLowerCase(),f=f.parent(),g=f.children(e);if(b(a).is("form, input, select, textarea")||d)if(e+=b(a).attr("name")?"."+b(a).attr("name"):"",1"+c:""),"form"==a.nodeName.toLowerCase())break}return"garlic:"+document.domain+(this.options.domain?"*":window.location.pathname)+">"+c},getStorage:function(){return this.storage}};b.fn.garlic=function(a,c){function d(c){var d=b(c),g=d.data("garlic"),h=b.extend({},f,d.data());if(("undefined"===typeof h.storage||h.storage)&&"password"!==b(c).attr("type"))if(g||d.data("garlic",g=new j(c,e,h)),"string"===typeof a&&"function"===typeof g[a])return g[a]()}var f=b.extend(!0,{},b.fn.garlic.defaults, a,this.data()),e=new h,g=!1;if(!e.defined)return!1;this.each(function(){b(this).is("form")?b(this).find(f.inputs).each(function(){g=d(b(this))}):b(this).is(f.inputs)&&(g=d(b(this)))});return"function"===typeof c?c():g};b.fn.garlic.Constructor=j;b.fn.garlic.defaults={destroy:!0,inputs:"input, textarea, select",events:"DOMAttrModified textInput input change keypress paste focus".split(" "),domain:!1,expires:!1,conflictManager:{enabled:!0,garlicPriority:!0,template:'', message:"This is your saved data. Click here to see default one",onConflictDetected:function(){return!0}},getPath:function(){},onRetrieve:function(){}};b(window).on("load",function(){b('[data-persist="garlic"]').each(function(){b(this).garlic()})})}(window.jQuery||window.Zepto); /******************* Package: SplitIntoColumns Version: 2.0 *******************/ (function(e){jQuery.fn.splitIntoColumns=function(t){var i={elementsToSplit:null,count:2,minItems:0,remainder:"start",onFinish:function(){}},t=e.extend(i,t);return this.each(function(){var i=e(this),n=t.elementsToSplit?i.find(t.elementsToSplit):i.children(),o=n.length;if(o>=t.minItems){if(i.addClass("dyn-split-into-columns"),"start"==t.remainder)var a=Math.ceil(o/t.count);else var a=Math.floor(o/t.count);n.wrapAll('
');for(var s=1;t.count>=s;++s)s==t.count?e(".dyn-columns-wrap").children().not(e(".dyn-col")).wrapAll('
'):e(".dyn-columns-wrap").children().not(e(".dyn-col")).slice(0,a).wrapAll('
');t.onFinish()}return!0})}})(jQuery); /******************* Package: scrollTo Version: 1.4.6 *******************/ /** * Copyright (c) 2007-2013 Ariel Flesler - afleslergmailcom | http://flesler.blogspot.com * Dual licensed under MIT and GPL. * @author Ariel Flesler * @version 1.4.6 */ ;(function($){var h=$.scrollTo=function(a,b,c){$(window).scrollTo(a,b,c)};h.defaults={axis:'xy',duration:parseFloat($.fn.jquery)>=1.3?0:1,limit:true};h.window=function(a){return $(window)._scrollable()};$.fn._scrollable=function(){return this.map(function(){var a=this,isWin=!a.nodeName||$.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!isWin)return a;var b=(a.contentWindow||a).document||a.ownerDocument||a;return/webkit/i.test(navigator.userAgent)||b.compatMode=='BackCompat'?b.body:b.documentElement})};$.fn.scrollTo=function(e,f,g){if(typeof f=='object'){g=f;f=0}if(typeof g=='function')g={onAfter:g};if(e=='max')e=9e9;g=$.extend({},h.defaults,g);f=f||g.duration;g.queue=g.queue&&g.axis.length>1;if(g.queue)f/=2;g.offset=both(g.offset);g.over=both(g.over);return this._scrollable().each(function(){if(e==null)return;var d=this,$elem=$(d),targ=e,toff,attr={},win=$elem.is('html,body');switch(typeof targ){case'number':case'string':if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(targ)){targ=both(targ);break}targ=$(targ,this);if(!targ.length)return;case'object':if(targ.is||targ.style)toff=(targ=$(targ)).offset()}$.each(g.axis.split(''),function(i,a){var b=a=='x'?'Left':'Top',pos=b.toLowerCase(),key='scroll'+b,old=d[key],max=h.max(d,a);if(toff){attr[key]=toff[pos]+(win?0:old-$elem.offset()[pos]);if(g.margin){attr[key]-=parseInt(targ.css('margin'+b))||0;attr[key]-=parseInt(targ.css('border'+b+'Width'))||0}attr[key]+=g.offset[pos]||0;if(g.over[pos])attr[key]+=targ[a=='x'?'width':'height']()*g.over[pos]}else{var c=targ[pos];attr[key]=c.slice&&c.slice(-1)=='%'?parseFloat(c)/100*max:c}if(g.limit&&/^\d+$/.test(attr[key]))attr[key]=attr[key]<=0?0:Math.min(attr[key],max);if(!i&&g.queue){if(old!=attr[key])animate(g.onAfterFirst);delete attr[key]}});animate(g.onAfter);function animate(a){$elem.animate(attr,f,g.easing,a&&function(){a.call(this,targ,g)})}}).end()};h.max=function(a,b){var c=b=='x'?'Width':'Height',scroll='scroll'+c;if(!$(a).is('html,body'))return a[scroll]-$(a)[c.toLowerCase()]();var d='client'+c,html=a.ownerDocument.documentElement,body=a.ownerDocument.body;return Math.max(html[scroll],body[scroll])-Math.min(html[d],body[d])};function both(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery); /******************* Package: gaEvent Version: 1.0.5 *******************/ /********************************* * jQuery.gaEvent * Description: gaEvent makes it easy to write one-liner Google Event custom events. * Author: Mike Zarandona * Version: 1.0.5 * Added support for passing in an event type * * Variables: eventType [REQUIRED] [string] the Javascript event(s) on which to fire * category [REQUIRED] [string] the name supplied for the group of objects to track * action [REQUIRED] [string] a unique user-action paired with each category, and commonly used to define the type of user interaction for the web object (this will usually be the same as the 'action') * label [OPTIONAL] [string] optional field to provide additional dimension to the event data * pageURL | label = the current page's URL * pageTitle | label = the current page's title * linkDest | label = the referenced link's destination (reference an a tag) * linkTitle | label = the referenced link's title (reference an a tag) * value [OPTIONAL] [int] integer that can be used to provide numerical data about the user event * * Usage: $('#logo img').gaEvent('click', 'Logo', 'Click', 'Home'); * $('a#atag').gaEvent('click', 'Header Link', 'Click', 'pageTitle'); * $('.some-thing').gaEvent('hover', 'Some Thing', 'Hover', 'pageURL'); * * Note: I STRONGLY recommend using the Google Analytics Debugger extension for Chrome (http://tinyurl.com/knv6kos) when implementing this plugin *********************************/ !function($){jQuery.fn.gaEvent=function(eventType,category,action,label,value){return this.each(function(){var pageURL=window.location;"pageURL"==label&&(label=pageURL);var pageTitle=document.title;"pageTitle"==label&&(label=pageTitle);var linkDest=$(this).attr("href");"linkDest"==label&&(label=linkDest);var linkTitle=$(this).attr("title");"linkTitle"==label&&(label=linkTitle),void 0===label&&(label=""),"function"==typeof ga&&$(this).on(eventType,function(){ga("send","event",category,action,label,value)}),"undefined"!=typeof _gaq&&"function"==typeof _gaq.push&&$(this).on(eventType,function(){_gaq.push(["_trackEvent",category,action,label,value])})})}}(jQuery); /******************* Package: Colorbox Version: 1.4.3 *******************/ /*! jQuery ColorBox v1.4.3 - 2013-02-18 (c) 2013 Jack Moore - jacklmoore.com/colorbox license: http://www.opensource.org/licenses/mit-license.php */ (function(e,t,i){function o(i,o,n){var r=t.createElement(i);return o&&(r.id=Y+o),n&&(r.style.cssText=n),e(r)}function n(e){var t=T.length,i=(A+e)%t;return 0>i?t+i:i}function r(e,t){return Math.round((/%/.test(e)?("x"===t?k.width():k.height())/100:1)*parseInt(e,10))}function h(e,t){return e.photo||e.photoRegex.test(t)}function l(e,t){return e.retinaUrl&&i.devicePixelRatio>1?t.replace(e.photoRegex,e.retinaSuffix):t}function s(e){"contains"in w[0]&&!w[0].contains(e.target)&&(e.stopPropagation(),w.focus())}function a(){var t,i=e.data(N,V);null==i?(K=e.extend({},J),console&&console.log&&console.log("Error: cboxElement missing settings object")):K=e.extend({},i);for(t in K)e.isFunction(K[t])&&"on"!==t.slice(0,2)&&(K[t]=K[t].call(N));K.rel=K.rel||N.rel||e(N).data("rel")||"nofollow",K.href=K.href||e(N).attr("href"),K.title=K.title||N.title,"string"==typeof K.href&&(K.href=e.trim(K.href))}function d(i,o){e(t).trigger(i),at.trigger(i),e.isFunction(o)&&o.call(N)}function c(){var e,t,i,o,n,r=Y+"Slideshow_",h="click."+Y;K.slideshow&&T[1]?(t=function(){clearTimeout(e)},i=function(){(K.loop||T[A+1])&&(e=setTimeout(G.next,K.slideshowSpeed))},o=function(){M.html(K.slideshowStop).unbind(h).one(h,n),at.bind(it,i).bind(tt,t).bind(ot,n),w.removeClass(r+"off").addClass(r+"on")},n=function(){t(),at.unbind(it,i).unbind(tt,t).unbind(ot,n),M.html(K.slideshowStart).unbind(h).one(h,function(){G.next(),o()}),w.removeClass(r+"on").addClass(r+"off")},K.slideshowAuto?o():n()):w.removeClass(r+"off "+r+"on")}function u(i){U||(N=i,a(),T=e(N),A=0,"nofollow"!==K.rel&&(T=e("."+Z).filter(function(){var t,i=e.data(this,V);return i&&(t=e(this).data("rel")||i.rel||this.rel),t===K.rel}),A=T.index(N),-1===A&&(T=T.add(N),A=T.length-1)),m.css({opacity:parseFloat(K.opacity),cursor:K.overlayClose?"pointer":"auto",visibility:"visible"}).show(),j||(j=q=!0,w.css({visibility:"hidden",display:"block"}),E=o(dt,"LoadedContent","width:0; height:0; overflow:hidden").appendTo(v),_=x.height()+C.height()+v.outerHeight(!0)-v.height(),z=y.width()+b.width()+v.outerWidth(!0)-v.width(),D=E.outerHeight(!0),B=E.outerWidth(!0),K.w=r(K.initialWidth,"x"),K.h=r(K.initialHeight,"y"),G.position(),lt&&k.bind("resize."+st+" scroll."+st,function(){m.css({width:k.width(),height:k.height(),top:k.scrollTop(),left:k.scrollLeft()})}).trigger("resize."+st),c(),d(et,K.onOpen),P.add(W).hide(),R.html(K.close).show(),w.focus(),t.addEventListener&&(t.addEventListener("focus",s,!0),at.one(nt,function(){t.removeEventListener("focus",s,!0)})),K.returnFocus&&at.one(nt,function(){e(N).focus()})),G.load(!0))}function f(){!w&&t.body&&(X=!1,k=e(i),w=o(dt).attr({id:V,"class":ht?Y+(lt?"IE6":"IE"):"",role:"dialog",tabindex:"-1"}).hide(),m=o(dt,"Overlay",lt?"position:absolute":"").hide(),L=o(dt,"LoadingOverlay").add(o(dt,"LoadingGraphic")),g=o(dt,"Wrapper"),v=o(dt,"Content").append(W=o(dt,"Title"),H=o(dt,"Current"),F=o("button","Previous"),S=o("button","Next"),M=o("button","Slideshow"),L,R=o("button","Close")),g.append(o(dt).append(o(dt,"TopLeft"),x=o(dt,"TopCenter"),o(dt,"TopRight")),o(dt,!1,"clear:left").append(y=o(dt,"MiddleLeft"),v,b=o(dt,"MiddleRight")),o(dt,!1,"clear:left").append(o(dt,"BottomLeft"),C=o(dt,"BottomCenter"),o(dt,"BottomRight"))).find("div div").css({"float":"left"}),I=o(dt,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),P=S.add(F).add(H).add(M),e(t.body).append(m,w.append(g,I)))}function p(){function i(e){e.which>1||e.shiftKey||e.altKey||e.metaKey||(e.preventDefault(),u(this))}return w?(X||(X=!0,S.click(function(){G.next()}),F.click(function(){G.prev()}),R.click(function(){G.close()}),m.click(function(){K.overlayClose&&G.close()}),e(t).bind("keydown."+Y,function(e){var t=e.keyCode;j&&K.escKey&&27===t&&(e.preventDefault(),G.close()),j&&K.arrowKey&&T[1]&&!e.altKey&&(37===t?(e.preventDefault(),F.click()):39===t&&(e.preventDefault(),S.click()))}),e.isFunction(e.fn.on)?e(t).on("click."+Y,"."+Z,i):e("."+Z).live("click."+Y,i)),!0):!1}var m,w,g,v,x,y,b,C,T,k,E,I,L,W,H,M,S,F,R,P,K,_,z,D,B,N,A,O,j,q,U,$,G,Q,X,J={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,className:!1,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",open:!1,returnFocus:!0,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico)((#|\?).*)?$/i,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0},V="colorbox",Y="cbox",Z=Y+"Element",et=Y+"_open",tt=Y+"_load",it=Y+"_complete",ot=Y+"_cleanup",nt=Y+"_closed",rt=Y+"_purge",ht=!e.support.leadingWhitespace,lt=ht&&!i.XMLHttpRequest,st=Y+"_IE6",at=e({}),dt="div";e.colorbox||(e(f),G=e.fn[V]=e[V]=function(t,i){var o=this;if(t=t||{},f(),p()){if(e.isFunction(o))o=e(""),t.open=!0;else if(!o[0])return o;i&&(t.onComplete=i),o.each(function(){e.data(this,V,e.extend({},e.data(this,V)||J,t))}).addClass(Z),(e.isFunction(t.open)&&t.open.call(o)||t.open)&&u(o[0])}return o},G.position=function(e,t){function i(e){x[0].style.width=C[0].style.width=v[0].style.width=parseInt(e.style.width,10)-z+"px",v[0].style.height=y[0].style.height=b[0].style.height=parseInt(e.style.height,10)-_+"px"}var o,n,h,l=0,s=0,a=w.offset();k.unbind("resize."+Y),w.css({top:-9e4,left:-9e4}),n=k.scrollTop(),h=k.scrollLeft(),K.fixed&&!lt?(a.top-=n,a.left-=h,w.css({position:"fixed"})):(l=n,s=h,w.css({position:"absolute"})),s+=K.right!==!1?Math.max(k.width()-K.w-B-z-r(K.right,"x"),0):K.left!==!1?r(K.left,"x"):Math.round(Math.max(k.width()-K.w-B-z,0)/2),l+=K.bottom!==!1?Math.max(k.height()-K.h-D-_-r(K.bottom,"y"),0):K.top!==!1?r(K.top,"y"):Math.round(Math.max(k.height()-K.h-D-_,0)/2),w.css({top:a.top,left:a.left,visibility:"visible"}),e=w.width()===K.w+B&&w.height()===K.h+D?0:e||0,g[0].style.width=g[0].style.height="9999px",o={width:K.w+B+z,height:K.h+D+_,top:l,left:s},0===e&&w.css(o),w.dequeue().animate(o,{duration:e,complete:function(){i(this),q=!1,g[0].style.width=K.w+B+z+"px",g[0].style.height=K.h+D+_+"px",K.reposition&&setTimeout(function(){k.bind("resize."+Y,G.position)},1),t&&t()},step:function(){i(this)}})},G.resize=function(e){j&&(e=e||{},e.width&&(K.w=r(e.width,"x")-B-z),e.innerWidth&&(K.w=r(e.innerWidth,"x")),E.css({width:K.w}),e.height&&(K.h=r(e.height,"y")-D-_),e.innerHeight&&(K.h=r(e.innerHeight,"y")),e.innerHeight||e.height||(E.css({height:"auto"}),K.h=E.height()),E.css({height:K.h}),G.position("none"===K.transition?0:K.speed))},G.prep=function(t){function i(){return K.w=K.w||E.width(),K.w=K.mw&&K.mw1?("string"==typeof K.current&&H.html(K.current.replace("{current}",A+1).replace("{total}",s)).show(),S[K.loop||s-1>A?"show":"hide"]().html(K.next),F[K.loop||A?"show":"hide"]().html(K.previous),K.slideshow&&M.show(),K.preloading&&e.each([n(-1),n(1)],function(){var t,i,o=T[this],n=e.data(o,V);n&&n.href?(t=n.href,e.isFunction(t)&&(t=t.call(o))):t=e(o).attr("href"),t&&h(n,t)&&(t=l(n,t),i=new Image,i.src=t)})):P.hide(),K.iframe?(i=o("iframe")[0],c in i&&(i[c]=0),u in i&&(i[u]="true"),K.scrolling||(i.scrolling="no"),e(i).attr({src:K.href,name:(new Date).getTime(),"class":Y+"Iframe",allowFullScreen:!0,webkitAllowFullScreen:!0,mozallowfullscreen:!0}).one("load",r).appendTo(E),at.one(rt,function(){i.src="//about:blank"}),K.fastIframe&&e(i).trigger("load")):r(),"fade"===K.transition?w.fadeTo(a,1,t):t())},"fade"===K.transition?w.fadeTo(a,0,function(){G.position(0,s)}):G.position(a,s)}},G.load=function(t){var n,s,c,u=G.prep;q=!0,O=!1,N=T[A],t||a(),Q&&w.add(m).removeClass(Q),K.className&&w.add(m).addClass(K.className),Q=K.className,d(rt),d(tt,K.onLoad),K.h=K.height?r(K.height,"y")-D-_:K.innerHeight&&r(K.innerHeight,"y"),K.w=K.width?r(K.width,"x")-B-z:K.innerWidth&&r(K.innerWidth,"x"),K.mw=K.w,K.mh=K.h,K.maxWidth&&(K.mw=r(K.maxWidth,"x")-B-z,K.mw=K.w&&K.w1&&(O.height=O.height/i.devicePixelRatio,O.width=O.width/i.devicePixelRatio),K.scalePhotos&&(s=function(){O.height-=O.height*e,O.width-=O.width*e},K.mw&&O.width>K.mw&&(e=(O.width-K.mw)/O.width,s()),K.mh&&O.height>K.mh&&(e=(O.height-K.mh)/O.height,s())),K.h&&(O.style.marginTop=Math.max(K.mh-O.height,0)/2+"px"),T[1]&&(K.loop||T[A+1])&&(O.style.cursor="pointer",O.onclick=function(){G.next()}),ht&&(O.style.msInterpolationMode="bicubic"),setTimeout(function(){u(O)},1)}),setTimeout(function(){O.src=n},1)):n&&I.load(n,K.data,function(t,i){u("error"===i?o(dt,"Error").html(K.xhrError):e(this).contents())})},G.next=function(){!q&&T[1]&&(K.loop||T[A+1])&&(A=n(1),G.load())},G.prev=function(){!q&&T[1]&&(K.loop||A)&&(A=n(-1),G.load())},G.close=function(){j&&!U&&(U=!0,j=!1,d(ot,K.onCleanup),k.unbind("."+Y+" ."+st),m.fadeTo(200,0),w.stop().fadeTo(300,0,function(){w.add(m).css({opacity:1,cursor:"auto"}).hide(),d(rt),E.empty().remove(),setTimeout(function(){U=!1,d(nt,K.onClosed)},1)}))},G.remove=function(){e([]).add(w).add(m).remove(),w=null,e("."+Z).removeData(V).removeClass(Z),e(t).unbind("click."+Y)},G.element=function(){return e(N)},G.settings=J)})(jQuery,document,window);