$(document).ready(function(){var t=/^https?:\/\/[^\/]+\//i;$("a.dllink").click(function(e){if("undefined"!=typeof _gaq){var i=$(e.target).attr("href");i&&(i=i.replace(t,"/downloads/"),_gaq.push(["_trackEvent","Downloads","Download",i]))}});var e=$(".rotator");if(e.length>1){var i=0,n=function(){$(e[i]).fadeOut(150,function(){++i>=e.length&&(i=0),$(e[i]).fadeIn(150)})},r=window.setInterval(n,1e4);e.bind("click",function(){r&&(window.clearInterval(r),r=0),n()})}var a=$(".sampletab"),o=$(".sampletabheader"),s=function(t,e){a.addClass("inactivetab"),e.removeClass("inactivetab"),o.addClass("inactive"),t.removeClass("inactive"),o.removeClass("active"),t.addClass("active")},l=function(t,e){t.css("cursor","pointer"),t.click(function(){s(t,e)})};if(a.length>1&&o.length==a.length){for(var d=0;d0){var h=[],c=[],u=null,p=$(".tocsection, .tocentry");for(d=0;d0&&h.push({title:u,entries:c}),c=[],u=f.text()):f.attr("id")&&c.push({id:f.attr("id"),text:f.text()})}if(c&&u&&c.length>0&&h.push({title:u,entries:c}),h.length>0){var g=$("#toc");if(g&&g.length>0){var m=$('
');for(d=0;d').text(b);$("
").append(v).appendTo(m);for(var w=0;w');$("").text(y.text).attr("href","#"+y.id).appendTo(x);$("
").append(x).appendTo(m)}}g.append(m).show()}}}}),function(t){"use strict";t.fn.fitVids=function(e){var i={customSelector:null};if(!document.getElementById("fit-vids-style")){var n=document.head||document.getElementsByTagName("head")[0],r=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}",a=document.createElement("div");a.innerHTML='

x

",n.appendChild(a.childNodes[1])}return e&&t.extend(i,e),this.each(function(){var e=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"];i.customSelector&&e.push(i.customSelector);var n=t(this).find(e.join(","));(n=n.not("object object")).each(function(){var e=t(this);if(!("embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){var i=("object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height())/(isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10));if(!e.attr("id")){var n="fitvid"+Math.floor(999999*Math.random());e.attr("id",n)}e.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",100*i+"%"),e.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto),function(){var t,e,i;t=jQuery,i=function(){function t(){this.fadeDuration=500,this.fitImagesInViewport=!0,this.resizeDuration=700,this.showImageNumberLabel=!0,this.wrapAround=!1}return t.prototype.albumLabel=function(t,e){return"Image "+t+" of "+e},t}(),e=function(){function e(t){this.options=t,this.album=[],this.currentImageIndex=void 0,this.init()}return e.prototype.init=function(){return this.enable(),this.build()},e.prototype.enable=function(){var e=this;return t("body").on("click","a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]",function(i){return e.start(t(i.currentTarget)),!1})},e.prototype.build=function(){var e=this;return t("
").appendTo(t("body")),this.$lightbox=t("#lightbox"),this.$overlay=t("#lightboxOverlay"),this.$outerContainer=this.$lightbox.find(".lb-outerContainer"),this.$container=this.$lightbox.find(".lb-container"),this.containerTopPadding=parseInt(this.$container.css("padding-top"),10),this.containerRightPadding=parseInt(this.$container.css("padding-right"),10),this.containerBottomPadding=parseInt(this.$container.css("padding-bottom"),10),this.containerLeftPadding=parseInt(this.$container.css("padding-left"),10),this.$overlay.hide().on("click",function(){return e.end(),!1}),this.$lightbox.hide().on("click",function(i){return"lightbox"===t(i.target).attr("id")&&e.end(),!1}),this.$outerContainer.on("click",function(i){return"lightbox"===t(i.target).attr("id")&&e.end(),!1}),this.$lightbox.find(".lb-prev").on("click",function(){return 0===e.currentImageIndex?e.changeImage(e.album.length-1):e.changeImage(e.currentImageIndex-1),!1}),this.$lightbox.find(".lb-next").on("click",function(){return e.currentImageIndex===e.album.length-1?e.changeImage(0):e.changeImage(e.currentImageIndex+1),!1}),this.$lightbox.find(".lb-loader, .lb-close").on("click",function(){return e.end(),!1})},e.prototype.start=function(e){var i,n,r,a,o,s,l,d,h,c,u,p,f;if(t(window).on("resize",this.sizeOverlay),t("select, object, embed").css({visibility:"hidden"}),this.$overlay.width(t(document).width()).height(t(document).height()).fadeIn(this.options.fadeDuration),this.album=[],o=0,r=e.attr("data-lightbox"))for(a=d=0,c=(p=t(e.prop("tagName")+'[data-lightbox="'+r+'"]')).length;dl||n.height>s)&&(n.width/l>n.height/s?(o=l,a=parseInt(n.height/(n.width/o),10),i.width(o),i.height(a)):(a=s,o=parseInt(n.width/(n.height/a),10),i.width(o),i.height(a)))),r.sizeContainer(i.width(),i.height())},n.src=this.album[e].link,this.currentImageIndex=e},e.prototype.sizeOverlay=function(){return t("#lightboxOverlay").width(t(document).width()).height(t(document).height())},e.prototype.sizeContainer=function(t,e){var i,n,r=this;this.$outerContainer.outerWidth(),this.$outerContainer.outerHeight(),n=t+this.containerLeftPadding+this.containerRightPadding,i=e+this.containerTopPadding+this.containerBottomPadding,this.$outerContainer.animate({width:n,height:i},this.options.resizeDuration,"swing"),setTimeout(function(){r.$lightbox.find(".lb-dataContainer").width(n),r.$lightbox.find(".lb-prevLink").height(i),r.$lightbox.find(".lb-nextLink").height(i),r.showImage()},this.options.resizeDuration)},e.prototype.showImage=function(){this.$lightbox.find(".lb-loader").hide(),this.$lightbox.find(".lb-image").fadeIn("slow"),this.updateNav(),this.updateDetails(),this.preloadNeighboringImages(),this.enableKeyboardNav()},e.prototype.updateNav=function(){this.$lightbox.find(".lb-nav").show(),this.album.length>1&&(this.options.wrapAround?this.$lightbox.find(".lb-prev, .lb-next").show():(this.currentImageIndex>0&&this.$lightbox.find(".lb-prev").show(),this.currentImageIndex1&&this.options.showImageNumberLabel?this.$lightbox.find(".lb-number").text(this.options.albumLabel(this.currentImageIndex+1,this.album.length)).fadeIn("fast"):this.$lightbox.find(".lb-number").hide(),this.$outerContainer.removeClass("animating"),this.$lightbox.find(".lb-dataContainer").fadeIn(this.resizeDuration,function(){return t.sizeOverlay()})},e.prototype.preloadNeighboringImages=function(){this.album.length>this.currentImageIndex+1&&((new Image).src=this.album[this.currentImageIndex+1].link),this.currentImageIndex>0&&((new Image).src=this.album[this.currentImageIndex-1].link)},e.prototype.enableKeyboardNav=function(){t(document).on("keyup.keyboard",t.proxy(this.keyboardAction,this))},e.prototype.disableKeyboardNav=function(){t(document).off(".keyboard")},e.prototype.keyboardAction=function(t){var e,i,n,r,a;e=27,i=37,n=39,a=t.keyCode,r=String.fromCharCode(a).toLowerCase(),a===e||r.match(/x|o|c/)?this.end():"p"===r||a===i?0!==this.currentImageIndex&&this.changeImage(this.currentImageIndex-1):"n"!==r&&a!==n||this.currentImageIndex!==this.album.length-1&&this.changeImage(this.currentImageIndex+1)},e.prototype.end=function(){return this.disableKeyboardNav(),t(window).off("resize",this.sizeOverlay),this.$lightbox.fadeOut(this.options.fadeDuration),this.$overlay.fadeOut(this.options.fadeDuration),t("select, object, embed").css({visibility:"visible"})},e}(),t(function(){var t;return t=new i,new e(t)})}.call(this),$(document).ready(function(){var t=function(){var t=$(this),e=t.find("a"),i=e.attr("href");e.on("click tap touch touchstart",function(e){return e.stopPropagation(),e.preventDefault(),$.ajax({url:i,dataType:"html",success:function(e){var i=$(e).find("article").html();t.html(i),t.find("h2").each(function(){var t=$(this),e=$("

").text(t.text());t.replaceWith(e)})},error:function(){document.location.href=i}}),!1})};$(".customer").each(t)}),window.matchMedia||(window.matchMedia=function(){"use strict";var t=window.styleMedia||window.media;if(!t){var e=document.createElement("style"),i=document.getElementsByTagName("script")[0],n=null;e.type="text/css",e.id="matchmediajs-test",i.parentNode.insertBefore(e,i),n="getComputedStyle"in window&&window.getComputedStyle(e,null)||e.currentStyle,t={matchMedium:function(t){var i="@media "+t+"{ #matchmediajs-test { width: 1px; } }";return e.styleSheet?e.styleSheet.cssText=i:e.textContent=i,"1px"===n.width}}}return function(e){return{matches:t.matchMedium(e||"all"),media:e||"all"}}}()),function(t,e,i){"use strict";function n(t){for(var e,i,n,r,o,s=t||{},l=0,d=(e=s.elements||a.getAllElements()).length;l-1)&&a.dodgeSrcset(i),r?(o=a.processSourceSet(r),a.applyBestCandidate(o,i)):(o=a.processSourceSet(i),(i.srcset===undefined||i[a.ns].srcset)&&a.applyBestCandidate(o,i)),i[a.ns].evaluated=!0}}function r(){function i(){var e;t._picturefillWorking||(t._picturefillWorking=!0,t.clearTimeout(e),e=t.setTimeout(function(){n({reevaluate:!0}),t._picturefillWorking=!1},60))}n();var r=setInterval(function(){n(),/^loaded|^i|^c/.test(e.readyState)&&clearInterval(r)},250);t.addEventListener?t.addEventListener("resize",i,!1):t.attachEvent&&t.attachEvent("onresize",i)}if(t.HTMLPictureElement)t.picturefill=function(){};else{e.createElement("picture");var a={ns:"picturefill"};a.srcsetSupported="srcset"in i,a.sizesSupported="sizes"in i,a.trim=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},a.endsWith=function(t,e){return t.endsWith?t.endsWith(e):-1!==t.indexOf(e,t.length-e.length)},a.restrictsMixedContent=function(){return"https:"===t.location.protocol},a.matchesMedia=function(e){return t.matchMedia&&t.matchMedia(e).matches},a.getDpr=function(){return t.devicePixelRatio||1},a.getWidthFromLength=function(t){t=(t=t&&t.indexOf("%")>-1==!1&&(parseFloat(t)>0||t.indexOf("calc(")>-1)?t:"100vw").replace("vw","%"),a.lengthEl||(a.lengthEl=e.createElement("div"),a.lengthEl.style.cssText="border:0;display:block;font-size:1em;left:0;margin:0;padding:0;position:absolute;visibility:hidden"),a.lengthEl.style.width=t,e.body.appendChild(a.lengthEl),a.lengthEl.className="helper-from-picturefill-js",a.lengthEl.offsetWidth<=0&&(a.lengthEl.style.width=e.documentElement.offsetWidth+"px");var i=a.lengthEl.offsetWidth;return e.body.removeChild(a.lengthEl),i},a.types={},a.types["image/jpeg"]=!0,a.types["image/gif"]=!0,a.types["image/png"]=!0,a.types["image/svg+xml"]=e.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"),a.types["image/webp"]=function(){var t="image/webp";i.onerror=function(){a.types[t]=!1,n()},i.onload=function(){a.types[t]=1===i.width,n()},i.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="},a.verifyTypeSupport=function(t){var e=t.getAttribute("type");return null===e||""===e||("function"==typeof a.types[e]?(a.types[e](),"pending"):a.types[e])},a.parseSize=function(t){var e=/(\([^)]+\))?\s*(.+)/g.exec(t);return{media:e&&e[1],length:e&&e[2]}},a.findWidthFromSourceSize=function(t){for(var e,i=a.trim(t).split(/\s*,\s*/),n=0,r=i.length;n=0;l--){var d=s[l],h=d&&d.slice(d.length-1);if("h"!==h&&"w"!==h||a.sizesSupported){if("x"===h){var c=d&&parseFloat(d,10);i=c&&!isNaN(c)?c:1}}else i=parseFloat(parseInt(d,10)/o)}return i||1},a.getCandidatesFromSourceSet=function(t,e){for(var i=a.parseSrcset(t),n=[],r=0,o=i.length;r=a.getDpr()){r=i;break}if(r&&!a.endsWith(e.src,r.url))if(a.restrictsMixedContent()&&"http:"===r.url.substr(0,"http:".length).toLowerCase())typeof console!==undefined&&console.warn("Blocked mixed content image "+r.url);else{e.src=r.url,e.currentSrc=e.src;var s=e.style||{},l="webkitBackfaceVisibility"in s,d=s.zoom;l&&(s.zoom=".999",l=e.offsetWidth,s.zoom=d)}},a.ascendingSort=function(t,e){return t.resolution-e.resolution},a.removeVideoShim=function(t){var e=t.getElementsByTagName("video");if(e.length){for(var i=e[0],n=i.getElementsByTagName("source");n.length;)t.insertBefore(n[0],i);i.parentNode.removeChild(i)}},a.getAllElements=function(){for(var t=[],i=e.getElementsByTagName("img"),n=0,r=i.length;n