function addOrReplaceQueryStringParameter(n,t,i){var r=n.toString(),u=null,o=null,f=r.indexOf("?"+t+"="),e;return f<=0&&(f=r.indexOf("&"+t+"=")),f>=0?(e=r.indexOf("&",f+1),u=r.substring(0,f),e>=0&&r.length>e+1&&(o=r.substring(e))):u=r,u+=u.indexOf("?")>=0?"&":"?",u+=t+"="+i,o!==null&&(u+=o),u}function getParameterByName(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i="[\\?&]"+n+"=([^&#]*)",r=new RegExp(i),t=r.exec(window.location.href);return t==null?"":decodeURIComponent(t[1].replace(/\+/g," "))}function sanitizeSearchSuggestionsResponse(n){var t=n.replace(/'/g,'"');return t=t.replace(/query/g,'"query"'),t.replace(/suggestions/g,'"suggestions"')}function addOrReplaceQueryStringParameter(n,t,i){var r=n.toString(),u=null,o=null,f=r.indexOf("?"+t+"="),e;return(0>=f&&(f=r.indexOf("&"+t+"=")),f>=0)?(e=r.indexOf("&",f+1),u=r.substring(0,f),e>=0&&r.length>e+1&&(o=r.substring(e))):u=r,u+=u.indexOf("?")>=0?"&":"?",u+=t+"="+i,null!==o&&(u+=o),u}function getParameterByName(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i="[\\?&]"+n+"=([^&#]*)",r=new RegExp(i),t=r.exec(window.location.href);return null==t?"":decodeURIComponent(t[1].replace(/\+/g," "))}function validateEmail(n){var t=n,i=new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i);return i.test(t)}function openPopup(n){var t=window.open(n,"Contact","SCROLLBARS=NO,RESIZABLE=YES");return window.focus&&t.focus(),!1}var mobileMenu=function(){function t(t){if(document.documentElement.className.indexOf("no-cssanimations")>=0)n(".mobile-nav--active").removeClass("mobile-nav--active"),n(".mobile-menu--active").removeClass("mobile-menu--active"),t&&n(".mobile-nav-clickeater").hasClass("mobile-nav-clickeater--active")&&n(".mobile-nav-clickeater").removeClass("mobile-nav-clickeater--active");else{n(".mobile-nav--active").removeClass("mobile-nav--active");n(".mobile-menu--active").removeClass("mobile-menu--active").addClass("mobile-menu--exiting").on("webkitAnimationEnd animationend",u);if(t&&n(".mobile-nav-clickeater").hasClass("mobile-nav-clickeater--active"))n(".mobile-nav-clickeater").removeClass("mobile-nav-clickeater--active").addClass("mobile-nav-clickeater--exiting").on("webkitAnimationEnd animationend",f)}}function u(t){n(t.currentTarget).removeClass("mobile-menu--exiting").off("webkitAnimationEnd animationend")}function i(t){n(t.currentTarget).removeClass("mobile-menu--entering").off("webkitAnimationEnd animationend")}function r(t){n(t.currentTarget).removeClass("mobile-nav-clickeater--entering").off("webkitAnimationEnd animationend")}function f(t){n(t.currentTarget).removeClass("mobile-nav-clickeater--exiting").off("webkitAnimationEnd animationend")}function e(u){var e=n(".mobile-nav--active"),f=n(u.currentTarget);if(e!=null&&f!=null&&e.attr("class")!=f.attr("class")){t(!1);n(n(u.currentTarget).data("mobile-nav")).addClass("mobile-menu--active mobile-menu--entering").on("webkitAnimationEnd animationend",i);if(n(f).addClass("mobile-nav--active"),!n(".mobile-nav-clickeater").hasClass("mobile-nav-clickeater--active"))n(".mobile-nav-clickeater").addClass("mobile-nav-clickeater--active mobile-nav-clickeater--entering").on("webkitAnimationEnd animationend",r);f.hasClass("mobile-nav-link--search")&&n(".site-search__input").focus();-1!=document.documentElement.className.indexOf("no-cssanimations")&&(i(n(n(u.currentTarget).data("mobile-nav"))),r(n(".mobile-nav-clickeater")))}else t(!0);return u.preventDefault(),!1}var n=jQuery,o=n(".mobile-nav");n(".mobile-nav-link").click(e);n(".mobile-nav-clickeater").click(t)},countrySelect=function(){function u(){n=jQuery("#country-header");t=jQuery("body");i();f()}function f(){n.on("mouseover",function(){e()});n.on("mouseout",function(){i()})}function i(){r=setTimeout(function(){jQuery("html").hasClass("lt-ie8")?t.attr("style",""):t.animate({"margin-top":"","padding-top":"","background-position-y":""});n.slideUp()},o)}function e(){window.clearTimeout(r)}var r,n,t,o=7e3;return u}(jQuery),promegaSearch2015;jQuery.fn.ready(function(){countrySelect()});var getFlagUrl=function(n){return-1!=="ALB|AND|AUS|AUT|BEL|BGR|BIH|BLR|BRA|CHE|CHN|CYP|CZE|DEU|DNK|ESP|EST|FIN|FRA|FRO|GBR|GEO|GIB|GRC|HRV|HUN|IRL|ISL|ITA|JPN|KOR|LIE|LUX|LVA|MAR|MDA|MKD|MLT|NLD|NOR|POL|PRT|ROU|RUS|SGP|SJM|SMR|SVK|SVN|SWE|TUR|UKR|USA|ABW|AGO|AIA|ANT|ARE|ARG|ARM|ASM|ATA|ATF|ATG|AZE|BDI|BEN|BFA|BGD|BHR|BHS|BLZ|BMU|BOL|BRB|BRN|BTN|BVT|BWA|CAF|CAN|CCK|CHL|CIV|CMR|COG|COK|COL|COM|CPV|CRI|CUB|CXR|CYM|DJI|DMA|DOM|DZA|ECU|EGY|ERI|ESH|ETH|FJI|FLK|FSM|GAB|GHA|GIN|GLP|GMB|GNB|GNQ|GRD|GRL|GTM|GUF|GUM|GUY|HKG|HMD|HND|HTI|IDN|IND|IOT|IRN|IRQ|ISR|JAM|JOR|KAZ|KEN|KGZ|KHM|KIR|KNA|KWT|LAO|LBN|LBR|LBY|LCA|LKA|LOS|LTU|MAC|MCO|MDG|MDV|MEX|MHL|MLI|MMR|MNG|MNP|MOZ|MRT|MSR|MTQ|MUS|MWI|MYS|MYT|NAM|NCL|NER|NFK|NGA|NIC|NIU|NPL|NRU|NZL|OMN|PAK|PAN|PCN|PER|PHL|PLW|PNG|PRI|PRK|PRY|PYF|QAT|REU|RWA|SAU|SCG|SDN|SEN|SGS|SHN|SLB|SLE|SLV|SOM|SPM|STP|SUR|SWZ|SYC|SYR|TCA|TCD|TGO|THA|TJK|TKL|TKM|TMP|TON|TTO|TUN|TUV|TWN|TZA|UGA|UMI|URY|UZB|VAT|VCT|VEN|VGB|VIR|VNM|VUT|WLF|WSM|YEM|YUG|ZAF|ZAR|ZMB|ZWE".indexOf(n)?n+".png":"globe.gif"},setFooterFlag=function(){var t=document.getElementById("footer-flag"),n=jQuery.cookie("PromegaCountry");n=n?n.toUpperCase():null;c=getFlagUrl(n);t.src="/AssetsResponsive/Images/flags/small/"+c;t.srcset="/AssetsResponsive/Images/flags/small/"+c+" 1x, /AssetsResponsive/Images/flags/small2x/"+c+" 2x"},toggleLanguageSelect=function(){function n(){var n=jQuery("#footer-language"),t=n.offset().top,i=n.height();jQuery("html,body").animate({scrollTop:t+i+15});jQuery("#footer-language").slideToggle()}var t=jQuery("#change-language-link");t&&(t.on("click",function(t){t.preventDefault();n()}),$("#SelectLanguage").on("click",function(t){t.preventDefault();changeLanguage("#LanguageList",n)}))},isTestEnvironment=function(n){for(var i=["test","content","testcontent","dev","commerce","stage"],u=n,r=!1,t=0,f=i.length;f>t;t+=1)if(u.toLowerCase()===i[t]){r=!0;break}return r},changeLanguage=function(n,t){var i=jQuery(n).val();if(!i)return void(t&&"function"==typeof t&&t());var u=jQuery.cookie("PreferredLanguage"),e=encodeURIComponent(document.location),r="/~/changelanguage/changelanguage.ashx",f=document.location.host.split(".")[0];return r=isTestEnvironment(f)?"http://"+f+".worldwide.promega.com"+r:"http://worldwide.promega.com"+r,u===i||"en"===i&&"en-US"===u?void(t&&"function"==typeof t&&t()):void(document.location.href=r+"?url="+e+"&lang="+u+"&newLang="+i)},tabSlider=function(n){function c(){t=n("#SliderDiv");u=n("#tab-slider-toggle");i=u.find("span");f=l();s=i.text();h=i.attr("data-slider-alt");a();u.click(function(n){n.preventDefault();n.stopPropagation();v()})}function l(){var u=document.body||document.documentElement,i=u.style,n="transition",r=["Moz","Webkit","Khtml","O",""],t=0,f=r.length;if("string"==typeof i[n])return!0;for(n=n.charAt(0).toUpperCase()+n.substr(1);f>t;t+=1)if("string"==typeof i[r[t]+n])return!0;return!1}function a(){t.height()<270&&t.find(".tab-slider-content").height("180px")}function v(){r?e():y(function(){r===!0&&n("body").bind("click.bodyClose",function(i){t.has(n(i.target)).length<=0&&e()})})}function y(n){p();f?t.addClass("slider-visible"):t.animate({"margin-right":"0px"},1e3);r=!0;n&&"function"==typeof n&&n();o("Open")}function e(){w();t.removeClass("slider-visible");f||t.animate({"margin-right":"-665px"},1e3);r=!1;n("body").unbind("click.bodyClose");o("Close")}function p(){i.text(h)}function w(){i.text(s)}function o(n){trackEvent("Slider Widget","click",n)}var t,u,i,f,s,h,r=!1;return{init:c}}(jQuery),commerceNav=function(n){"use strict";function v(f){var e=n.cookie("PromegaCountry");return e&&(e=e.toUpperCase()),"JPN"===e&&n(".find-my-gene-link").hide(),t=f,u=n("#commerce-nav"),i=t.eCommerceHostName,a=p(),r(n.cookie("CanCheckOut"),!0)?h()===!0?void w():(b(),l(),d(),s(),nt(),void u.show()):void y()}function y(){n(".return-to-punchout").hide();n(".partner-admin").hide();n(".return-to-helix,.my-helix").hide();n(".shopping-cart,.checkout-item").hide();n(".quick-order-item").hide();n(".my-orders-link").hide();n(".my-account,.login-link").hide();s();u.show()}function p(){return"sap"===t.environment?"https://":"http://"}function h(){var i=n.cookie("OrganizationId"),r=typeof(void 0!==i)&&null!==i&&void 0!==i;return r||t.punchout}function w(){l();c();s();u.show()}function c(){var i=n.cookie("BasketQuantity"),r=n(".cart-link"),u=n(".checkout-item");i=i?parseInt(i,10):0;i>0?(r.addClass("cart-filled"),u.show()):u.hide();r.text(t.itemsText+": "+i)}function s(){n(".find-my-gene-link").on("click",function(){trackEvent("Commerce Nave","click","Find My Gene")})}function r(n,t){return n?"true"===n.toLowerCase():t}function b(){var o=n.cookie("UserLoginStatus"),e=n.cookie("RememberMe"),u=n(".login-link");e=r(e,!1);f="1"===o||e;f?(u.text(t.logOutLinkText),u.attr("href",a+i+t.logOutLink)):(u.text(t.logInLinkText),u.attr("href",k()),u.on("click",function(){trackEvent("Commerce Nav","click","Log In")}))}function k(){var n=encodeURIComponent(window.location).toLowerCase(),r=encodeURIComponent("https://"+i+window.location.pathname).toLowerCase();return n.indexOf("login")>=0||n.indexOf("logoff")>=0?"https://"+i+t.logInLink:"https://"+i+t.logInLink+"?returnurl="+r}function d(){var t=n.cookie("PromegaCountry");t&&(t=t.toUpperCase());"JPN"===t?n(".return-to-japan").show():"CHN"===t&&n(".return-to-china").show()}function l(){var tt=r(n.cookie("PppIsAdministering"),!1),a=r(n.cookie("CanCheckOut"),!0),it=r(n.cookie("PppRestricToHelix"),!1),v=(r(n.cookie("IsHelix"),!1),n(".my-account")),rt=n(".my-orders"),s=n(".my-orders-link"),y=n(".quick-order-item"),p=n(".partner-admin"),b=n(".checkout-item"),k=n(".shopping-cart"),w=n(".return-to-punchout"),d,nt,l,u;(e=n(".my-helix"),o=n(".return-to-helix"),tt)?(p.show(),e.hide(),s.hide(),y.hide(),b.hide(),k.hide(),o.hide(),v.hide(),w.hide()):h()===!0?(d=n(".checkout-link"),nt=n(".login-link"),d.attr("href","https://"+i+t.punchoutCheckoutLink),y.show(),b.show(),k.show(),w.show(),nt.hide(),p.hide(),e.hide(),s.hide(),o.hide(),v.hide()):(l=n(".register-link"),u=n(".my-account-link"),v.show(),l.toggle(!f),l.attr("href","https://"+i+t.registerLink),l.on("click",function(){trackEvent("Commerce Nav","click","Register")}),u.toggle(f),"commerceServer"===t.environment?a?u.attr("href","https://"+i+t.myAccountLink+"?returnurl="+encodeURIComponent(window.location)):u.attr("href","https://"+location.hostname+t.myAccountNoCheckout+"?returnurl="+encodeURIComponent(window.location)):u.attr("href","https://"+i+t.myAccountLink),s.toggle(a),s.attr("href","https://"+i+t.myOrdersLink),y.toggle(!it&&a),p.hide(),w.hide(),c(),g())}function g(){e.toggle(it);var n=document.referrer,t="undefined"!=typeof n&&null!==n&&-1!==n.toLowerCase().indexOf("passes.aspx");o.toggle(t)}function nt(){"KOR"===tt()&&n(".register-link").hide()}function tt(){var n=$.cookie("PromegaCountry");return n&&(n=n.toUpperCase()),n}var t,u,i,f,a,e,it,o;return{init:v}}(jQuery);jQuery(document).ready(function(){function i(){jQuery(".main-nav").addClass("main-nav--no-hover-delay")}function r(){n=setTimeout(i,t)}function u(){clearTimeout(n);jQuery(".main-nav").removeClass("main-nav--no-hover-delay")}var t=250,n=null;jQuery(".main-nav").on("mouseenter",r).on("mouseleave",u)});promegaSearch2015=null;jQuery(document).ready(function(){promegaSearch2015={search:function(n,t,i,r,u,f,e,o,s,h,c,l){var a=n?"&q="+encodeURIComponent(n):"",v=t?"&ps="+t:"",y=i?"&f="+i:"",p=r?"&s="+r:"",w=u?"&p="+u:"",b=f&&f.length>0?"&cbf="+encodeURIComponent(f):"",k=e&&e.length>0?"&sfci="+encodeURIComponent(e):"",d=o&&o.length>0?"&cf="+o:"",g=s+h+a+b+k+y+d+v+w+p;jQuery.ajax({url:g,dataType:"jsonp",jsonpCallback:"search"}).done(c).fail(l)}}});window.matchMedia||(window.matchMedia=function(){"use strict";var t=window.styleMedia||window.media;if(!t){var n=document.createElement("style"),i=document.getElementsByTagName("script")[0],r=null;n.type="text/css";n.id="matchmediajs-test";i.parentNode.insertBefore(n,i);r="getComputedStyle"in window&&window.getComputedStyle(n,null)||n.currentStyle;t={matchMedium:function(t){var i="@media "+t+"{ #matchmediajs-test { width: 1px; } }";return n.styleSheet?n.styleSheet.cssText=i:n.textContent=i,r.width==="1px"}}}return function(n){return{matches:t.matchMedium(n||"all"),media:n||"all"}}}())