var browser=navigator.appName;var bVersion=parseInt(navigator.appVersion);var IE=document.all?true:false;var NS4=(document.layers)?true:false;var Mac=(navigator.appVersion.indexOf("Mac")!=-1);var Safari=(navigator.userAgent.indexOf("Safari")!=-1);var Explorer=(navigator.userAgent.indexOf("MSIE")!=-1);var javaScriptPopUpInclude="/shared-static/scripts/jquery.thickbox.js";var COUNTRYSELECT;var userCountry=null;var displayCart=true;var jqueryIncludeUrl=null;if(Safari){jqueryIncludeUrl="/shared-static/scripts/jquery.plugins.safari.js"}else{jqueryIncludeUrl="/shared-static/scripts/jquery.plugins.js"}var globalJS=document.getElementById("domainFinder");var includesDomain="";if(globalJS){includesDomain=globalJS.src;if(includesDomain){includesDomain=includesDomain.substring(0,includesDomain.indexOf("shared-static")-1)}}document.write('<script type="text/javascript" src="'+includesDomain+jqueryIncludeUrl+'"><\/script>');function log(){if(window.console){console.debug.apply(console,arguments)}else{alert([].join.apply(arguments,[" "]))}}function setSelect(C,B){for(var A=0;A<C.options.length;A++){if(C.options[A].value==B){C.options[A].selected=true}else{C.options[A].selected=false}}}function unicodeToAscii(B){var A=B;A=A.replace(/\u00E1|\u00E4|\u00E2|\u00E3|\u00E5/g,"a");A=A.replace(/\u00E6/g,"ae");A=A.replace(/\u00E7/g,"c");A=A.replace(/\u00E9|\u00EB|\u00EA/g,"e");A=A.replace(/\u00ED|\u00EF|\u00EE/g,"i");A=A.replace(/\u00F3|\u00F6|\u00F4|\u00F5/g,"o");A=A.replace(/\u0153/g,"oe");A=A.replace(/\u00FA|\u00FC|\u00FB/g,"u");A=A.replace(/\u00F1/g,"n");A=A.replace(/\u00C1|\u00C4|\u00C2|\u00C3|\u00C5/g,"A");A=A.replace(/\u00C6/g,"Ae");A=A.replace(/\u00C7/g,"C");A=A.replace(/\u00C9|\u00CB|\u00CA/g,"E");A=A.replace(/\u00CD|\u00CF|\u00CE/g,"I");A=A.replace(/\u00D3|\u00D6|\u00D4|\u00D5/g,"O");A=A.replace(/\u0152/g,"Oe");A=A.replace(/\u00DA|\u00DC|\u00DB/g,"U");A=A.replace(/\u00D1/g,"N");for(var C=0;C<A.length;C++){if(A.charCodeAt(C)>127){A=A.substring(0,C)+"?"+A.substring(C+1)}}return A}function validateAsciiFields(){for(var A=0;A<arguments.length;A++){var B=unicodeToAscii(arguments[A].value);if(B!=arguments[A].value){alert("Unsupported character(s) were found in field '"+arguments[A].name+"' and will be replaced with plain text equivalents (where available). Please review the changes and try again.");arguments[A].value=B;arguments[A].focus();arguments[A].select();return false}}return true}function validateEmail(C){var A=trim(C.value);if(A.length==0){return true}var D=/(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/;var B=/^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/;if(!D.test(A)&&B.test(A)){return true}alert("'"+A+"' is not a valid e-mail address.");C.focus();C.select();return false}function validateNonempty(C,B){var A=trim(C.value);if(A.length>0){return true}alert("Please fill in the '"+B+"' field.");C.focus();C.select();return false}function trim(A){return A.replace(/^\s*/,"").replace(/\s*$/,"")}function validateCheckPair(A,C,B){if(A.checked||C.checked){return true}alert("Please choose one or both of the options for '"+B+"'");return false}function validateNonnegativeInteger(B){for(var A=0;A<B.value.length;A++){var C=B.value.charAt(A);if(C<"0"||C>"9"){alert("Quantities must be whole numbers greater than or equal to zero.");B.focus();B.select();return false}}return true}function getAddressFieldArray(A){return(new Array(A.nametitle,A.firstname,A.lastname,A.department,A.institution,A.address1,A.address2,A.city,A.state,A.zip,A.region))}function validateInteger(B,A){B=trim(B);if((isNaN(B)||B<1)&&B!=null&&B!=""){A.value="";alert(""+B+", is either not a number or a number less than zero, please provide a numerical quantity")}}function formContainsDelimiter(B){for(var A=0;A<B.length;A++){if(B[A].type=="select-one"){continue}if(B[A].value.indexOf("|")!=-1){alert("Reserved character | not allowed. Please remove and try again.");B[A].focus();B[A].select();return true}}return false}function formSave(D,C){if(formContainsDelimiter(D)){return false}var B="";for(var A=0;A<D.length;A++){if(D[A].type=="select-one"){B+=D[A].options[D[A].selectedIndex].value}else{B+=D[A].value}B+="|"}setCookie(C,B);return true}function formRecall(E,D){var C=getCookie(D);if(C.length==0){return }for(var B=0;B<E.length;B++){var A=C.substring(0,(j=C.indexOf("|")));C=C.substring(j+1);if(E[B].type=="select-one"){setSelect(E[B],A)}else{E[B].value=A}}}function setCookie(B,C){var A=new Date();A.setTime(A.getTime()+(1000*60*60*24*31));document.cookie=B+"="+escape(C)+"; path=/; expires="+A.toGMTString()+"; domain=.invitrogen.com;"}function setCookieSessionExpire(A,B){document.cookie=A+"="+escape(B)+"; path=/; domain=.invitrogen.com;"}function getCookie(D){var C=D+"=";var B=document.cookie;if(B==null){return""}if(B.length>0){var E=B.indexOf(C);if(E!=-1){E+=C.length;var A=B.indexOf(";",E);if(A==-1){A=B.length}return unescape(B.substring(E,A))}}return""}function getValueFromCookie(E,A){var C="";if(E!=null){var B=E.split(";");if(A<B.length&&B[A]!=undefined){var D=B[A].split(":");return C=D[1]}}return C}function getCustomerName(A){return getValueFromCookie(A,0)}function getUserLogin(A){return getValueFromCookie(A,1)}function getCustomerCompany(A){return getValueFromCookie(A,2)}function getCustomerType(A){return getValueFromCookie(A,3)}function getAccountType(A){return getValueFromCookie(A,4)}function getCountryCurrency(A){return getValueFromCookie(A,5)}function getCustomerCGID(A){return getValueFromCookie(A,6)}function getShipToNumber(A){return getValueFromCookie(A,7)}function getCountryName(A){return getValueFromCookie(A,8)}function getRegionName(A){return getValueFromCookie(A,9)}function getOrderId(A){return getValueFromCookie(A,0)}function getCartItems(A){return getValueFromCookie(A,1)}function getUserCountryCode(){if(userCountry==null){userCountry=getCookie("CK_ISO_CODE")}return userCountry}function triggerCountrySelect(A){COUNTRYSELECT=A}function isCountrySelectRequired(){return COUNTRYSELECT}function setUserCountryCode(A){userCountry=A;setCookie("CK_ISO_CODE",A)}function submitCountrySelectForm(){var A=$(".countrySelect select").val();setCookie("CK_ISO_CODE",A);window.location.reload()}function getJSInclude(D,B){var A=document.createElement("script");A.type="text/javascript";A.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded"){tb_show(null,B,null)}};if(/Safari/i.test(navigator.userAgent)){var C=setInterval(function(){if(/loaded|complete/.test(document.readyState)){clearInterval(C);tb_show(null,B,null)}},10)}A.onload=function(){tb_show(null,B,null)};A.src=D;document.getElementsByTagName("body")[0].appendChild(A)}function rollOn(img,isForm,formObject){newImg=eval(img+"On.src");if(isForm==1){orig=formObject}else{orig=eval("document."+img)}orig.src=newImg}function rollOff(img,isForm,formObject){newImg=eval(img+"Off.src");if(isForm==1){orig=formObject}else{orig=eval("document."+img)}orig.src=newImg}function setOminitureUserValues(A){var G="";var F="";var I="";var B="";var D="";var C="";var H="";var J="";var E="";if(A.length>1){G=getCountryCurrency(A);F=getUserCountryCode();B=getUserLogin(A);D=getAccountType(A);C=getCustomerCGID(A);H=getCustomerType(A);J=getRegionName(A);E=getCountryName(A)}s.currencyCode=""+G+"";s.prop1=""+E+"";s.eVar1=""+E+"";s.prop2=""+J+"";s.eVar2=""+J+"";s.prop25=""+B+"";s.eVar25=""+B+"";s.prop26=""+D+"";s.eVar26=""+D+"";s.prop28=""+C+"";s.eVar28=""+C+"";s.prop29=""+H+"";s.eVar29=""+H+""}function performCountrySelect(D,E,A,C,B){D=D.toLowerCase();if(D.indexOf("invitrogen.com")!=-1){if((getUserCountryCode()==null)||(getUserCountryCode()=="")){if(isCountrySelectRequired()==true){getJSInclude(E,A)}else{if(C=="yes"||B=="yes"){getJSInclude(E,A)}}}}}function getRegionalizedHandle(A,B){return A+masterHandle+".regionalized.html"}function getAjaxPage(B,C){var A;if(window.ActiveXObject){A=new ActiveXObject("Microsoft.XMLHTTP")}else{A=new XMLHttpRequest()}A.onreadystatechange=function(){loadpage(A,C)};A.open("GET",B,true);A.send(null)}function loadpage(A,B){if(A.readyState==4&&(A.status==200||window.location.href.indexOf("http")==-1)){document.getElementById(""+B+"").innerHTML=A.responseText}}function createProductCatalog(){log("global createProductCatalog");$(".productCatalog").tabs({fxFade:false,fxSpeed:"fast"});var C=$("div.productCatalog ul.tabs-nav").height();var A=$("#firsttab").height();if(C>=A){var B=C}else{var B=A}$("div.productCatalog").height(B);$(".productCatalog ul.tabs-nav li a").click(function(){var D=$(this).attr("href");var F=$(D).height();if(C>=F){var E=C}else{var E=F}$("div.productCatalog").height(E)})}function showPopupMessage(C,A,B){C+="&amp;keepThis=true&amp;&amp;TB_iframe=true&amp;";C+="height="+A+"&amp;";C+="width="+B;getJSInclude(javaScriptPopUpInclude,C)}function sanitizeSkuNumber(B){var A=new String(B);A=A.replace(/[^a-zA-Z0-9]/g,"");A=A.toUpperCase();return A}function getLanguageOptions(D){var C="";if(D!=null&&D!=""){var G=D.split(",");for(var E=0;E<G.length;E++){var B=G[E].split("|");if(B.length==2){var A=B[0];var F=B[1];C+='<option value="'+F+'">'+A+"</option>"}}}return C}function setUserLanguageCode(E){var A="";if(getCookie("CK_LANG_CODE")!=""){A=getCookie("CK_LANG_CODE");var B=new Date();B.setTime(B.getTime()-1);document.cookie="CK_LANG_CODE=; path=/; expires="+B.toGMTString()+"; domain=.invitrogen.com;"}if(E!=""||E!=undefined){var B=new Date();B.setTime(B.getTime()+(1000*60*60*24*31));document.cookie="CK_LANG_CODE="+escape(E)+"; path=/; expires="+B.toGMTString()+"; domain=.invitrogen.com;";var D=window.location.href.toString();if(E=="default"){}else{if(E!="en"){D=D.replace(/http:\/\/..\./,"http://"+E+".");D=D.replace(/https:\/\/..\./,"https://"+E+".");D=D.replace(/http:\/\/www\./,"http://"+E+".");D=D.replace(/https:\/\/www\./,"https://"+E+".");D=D.replace(/http:\/\/products\./,"http://products"+E+".");D=D.replace(/https:\/\/products\./,"https://products"+E+".");D=D.replace(/http:\/\/products..\./,"http://products"+E+".");D=D.replace(/https:\/\/products..\./,"https://products"+E+".");D=D.replace(/http:\/\/tools\./,"http://tools"+E+".");D=D.replace(/https:\/\/tools\./,"https://tools"+E+".");D=D.replace(/http:\/\/tools..\./,"http://tools"+E+".");D=D.replace(/https:\/\/tools..\./,"https://tools"+E+".");D=D.replace(/http:\/\/commerce\./,"http://commerce"+E+".");D=D.replace(/https:\/\/commerce\./,"https://commerce"+E+".");D=D.replace(/http:\/\/commerce..\./,"http://commerce"+E+".");D=D.replace(/https:\/\/commerce..\./,"https://commerce"+E+".");if(E=="ja"){D=D.replace(/\/site\/..\/..\//,"/site/jp/ja/");D=D.replace(/\/ivgn\/..\/..\//,"/ivgn/jp/ja/")}}else{if(E=="en"){D=D.replace(/http:\/\/..\./,"http://www.");D=D.replace(/https:\/\/..\./,"https://www.");D=D.replace(/http:\/\/products..\./,"http://products.");D=D.replace(/https:\/\/products..\./,"https://products.");D=D.replace(/http:\/\/commerce..\./,"http://commerce.");D=D.replace(/https:\/\/commerce..\./,"https://commerce.");D=D.replace(/http:\/\/tools..\./,"http://tools.");D=D.replace(/https:\/\/tools..\./,"https://tools.");D=D.replace(/\/site\/..\/..\//,"/site/us/en/");D=D.replace(/\/ivgn\/..\/..\//,"/ivgn/en/US/")}}}try{top.location.href=D}catch(C){top.location.reload(true)}}}function isDayPageUrl(A){if(A.indexOf("www.")!=-1&&A.indexOf(".invitrogen.com")!=-1){return true}else{if((A.search(/\/\/..\.invitrogen\.com/)!=-1||A.search(/\/\/..\..*\.invitrogen\.com/)!=-1)&&A.indexOf(".invitrogen.com")!=-1){return true}else{return false}}}function isComergentPageUrl(A){if(A.indexOf("products.")!=-1&&A.indexOf(".invitrogen.com")!=-1){return true}else{if(A.search(/products..\./)!=-1&&A.indexOf(".invitrogen.com")!=-1){return true}else{return false}}};