text: function hexc(a){var b=a.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);delete b[0];for(var c=1;3>=c;++c)b[c]=parseInt(b[c]).toString(16),1==b[c].length&&(b[c]="0"+b[c]);color="#"+b.join("")}function loadPopup(a,b){$("#modal"+b).css({display:"none"}),$("#modal"+a).css({"margin-top":-$("#modal"+a).height()/2,display:"block"}),$(".modal-next").attr("next",a-1+2),$(".modal-prev").attr("prev",a-1),$("#modal"+a).fadeIn(320),$(".modal-overlay").fadeIn("normal")}function disablePopup(){$(".modal-container").fadeOut("normal"),$(".modal-overlay").fadeOut("normal")}function adjustContent(){$(window).width()<mediumBreakPoint?$("[class*=onState_] .tabs ul").find("li.js-active").next("div").show():($(".cloned").hide(),$("[class*=onState_]").each(function(){var a=$(this).attr("class"),b=a.split(" "),c=b.pop(),d=$("."+c+" .js-active a").attr("data-ref");$("."+c+" .tab-content-container").find(d).show()}))}function buildAccordion(){$(".tab-component .tabs ul li").each(function(){id=$(this).find("a").attr("data-ref"),$(id).clone().removeAttr("id").addClass("cloned").insertAfter($(this)).hide(),$(window).width()<mediumBreakPoint&&$(this).hasClass("js-active")&&$(id).clone().removeAttr("id").addClass("cloned").insertAfter($(this)).show()})}$("a").each(function(){var a=new RegExp("/"+window.location.host+"/");a.test(this.href)||$(this).click(function(a){a.preventDefault(),a.stopPropagation(),window.open(this.href,"_blank")})});var smallBreakPoint=640,mediumBreakPoint=768,color="";$(".swatch").each(function(){var a=$(this).children(".swatch-color").attr("class").split(" ");for(i=0;i<=a.length-1;i++)if(a[i].match(/color-/g)){$(this).children(".swatch-info").prepend("<p>$"+a[i]+"</p>");break}var b=$(this).children(".swatch-color").css("backgroundColor");hexc(b),$(this).children(".swatch-info").append("<p>"+color+"</p>"),$(this).children(".swatch-info").append("<p>"+b+"</p>")}),function(a){a.fn.vs=function(){a(".vs").click(function(){return a(this).parent().next().find(".prettyprint").toggle(),a(this).not(".disabled").toggleClass("js-active"),!1})}}(jQuery),$(".vs").vs(),$(".fonts").each(function(){var a=$(this).css("font-family");$(this).prepend(a)}),$(".accordion ul li").each(function(){$(this).addClass($(this).has("ul").length?"js-expandable":"js-notexpandable")}),$(".accordion h6").click(function(){$(this).text();$(this).parent().addClass("js-active").find("ul").slideToggle(function(){$(this).is(":hidden")&&$(this).parent().removeClass("js-active")})}),function(a){a.fn.jumpTo=function(){a('<option value="">Jump to…</option>').appendTo("#anchor"),a(".jumpTo-anchor").each(function(){a('<option value="'+a(this).attr("id")+'">'+a(this).text()+"</option>").appendTo("#anchor")}),a("#anchor").change(function(){var b=a("#"+a(this).val()).offset();a("html, body").animate({scrollTop:b.top},"slow")})}}(jQuery),$(".jumpTo").jumpTo(),$(function(){$(".modal").index();$(".modal").each(function(a){var b=$(".modal").size()-1;a!=b&&(next=a+2,$(this).find(".modal-footer").append("<a href='#' class='btn btn-primary right modal-next' rel='"+next+"'>Next</a>")),0!=a&&(prev=a,$(this).find(".modal-footer").append("<a href='#' class='btn btn-primary left modal-prev' rel='"+prev+"'>Previous</a>"))}),$(".modal-button").click(function(){var a=$(this).attr("id");return loadPopup(a),!1}),$(".modal-next").click(function(){var a=$(this).attr("next"),b=a-1;return loadPopup(a,b),!1}),$(".modal-prev").click(function(){var a=$(this).attr("prev"),b=a-1+2;return loadPopup(a,b),!1}),$(".modal-close").click(function(){return disablePopup(),!1}),$(this).keyup(function(a){27===a.which&&disablePopup()}),$(".modal-overlay").click(function(){return disablePopup(),!1})}),headerHeight=$("header[role=banner]").outerHeight(),navHeight=$("nav[role=navigation]").outerHeight(),$(function(){$(".open-panel").click(function(){$("html").hasClass("open-nav")?$("html").removeClass("open-nav"):($("html").addClass("open-nav"),$(".wrap").css("margin-top",0)),$(this).toggleClass("active")})}),$(window).on("resize",function(){$(window).width()>mediumBreakPoint?$(".banner").css("margin-top",headerHeight):$(".banner").css("margin-top",headerHeight)}).resize(),function(a){a.fn.selectLink=function(){a(".selectLink").change(function(){"null"!=a(this).val()&&(window.location.href=a(this).val())})}}(jQuery),$(".selectLink").selectLink(),$(function(){tabCount=1,$(".tab-component").each(function(){$(this).addClass("onState_"+tabCount),tabCount++}),buildAccordion(),$(window).bind("load",function(){adjustContent()}),$("[class*=onState_] .tabs li").click(function(){var a=$(this).find("a").attr("data-ref"),b=$(this).parent().parent().parent().attr("class"),c=b.split(" "),d=c.pop();return $("."+d+" .tabs li").removeClass("js-active"),$(this).addClass("js-active"),$(window).width()>mediumBreakPoint?($("."+d+" .tab-content").hide(),$("."+d+" "+a).show()):($("."+d+" .tab-content").slideUp(),$(this).next().slideDown()),!1}),$(window).resize(function(){adjustContent()})});