var attachArrowKeyListerner=function(){var b=$(window);var a=function(d){var c=d.offset().top-b.scrollTop();
if(c<0||c>b.height()){b.scrollTop(d.offset().top-20)}};$(document).keypress(function(e){if($("#query-builder-container").is(":visible")||$("input:focus").length>0){return
}var c=$(".selected-row");if(e.keyCode==38){var g=c.prev("tr");if(g.length>0&&g.attr("id")!="selectAllStatus"){c.removeClass("selected-row");
g.addClass("selected-row");a(g)}e.preventDefault()}else{if(e.keyCode==40){var d=c.next("tr");
if(d.length>0){c.removeClass("selected-row");d.addClass("selected-row");a(d)}e.preventDefault()
}else{if(e.keyCode==10||e.keyCode==13){if(!c.hasClass("noEnter")){window.location.href=c.attr("id");
e.preventDefault()}}else{if(e.which==32){var f=c.find("input[type=checkbox]");f.click();
e.preventDefault()}}}}})};var defColumns={uniprot:"id,entry name,reviewed,protein names,genes,organism,length",uniparc:"id,organisms,kb,first-seen,last-seen,length",uniref:"id,reviewed,name,count,members,organisms,length,identity",proteomes:"id,name,organism-id,proteincount"};
var cookieNames={longColumns:"-longColumns",viewColumns:"-view-columns3",cart:"cart",basket:"basket",blastOptions:"blast-options",allSelected:"allSelected",jobNames:"jobs2",columns:"-columns3",javaScriptLoaded:"javaScriptLoaded",uploadListColumns:"-columns3",resultsDownload:"-results-download",helpBox:"-help",limit:"limit",peptideSearchOptions:"peptidesearch-options",uploadOptions:"upload-options",sectionsView:"-sections-view"};
var uniprot={};var __bind=function(a,b){return function(){return a.apply(b,arguments)
}};String.prototype.replaceAll=function(b,a){return this.replace(new RegExp(b,"g"),a)
};String.prototype.startsWith=function(a){return(this.indexOf(a)==0)};String.prototype.endsWith=function(a){return(this.indexOf(a)===(a.length-1))
};uniprot.IframeOnload=function(b){var a=function(){var d=b.contentDocument.body;
var c=d.firstChild.getBoundingClientRect();var e=d.querySelector(".interaction-tooltip").getBoundingClientRect();
b.style.height=(Math.max(c.height,e.bottom)+20)+"px";b.style.width=(Math.max(c.right,e.right)+20)+"px"
};setTimeout(a,500);b.contentDocument.addEventListener("click",function(){setTimeout(a,200)
})};uniprot.protVistaIframeLoad=function(b){var a=function(){var d=b.contentDocument.body;
var c=d.querySelector(":nth-child(2)").getBoundingClientRect();var e=d.querySelector(".up_pftv_tooltip-container");
if(e!==null){var f=e.getBoundingClientRect();b.style.height=(Math.max(c.height,f.bottom)+20)+"px";
b.style.width=(Math.max(c.right,f.right)+20)+"px"}else{b.style.height=(c.height+20)+"px";
b.style.width=(c.right+20)+"px"}};setTimeout(a,100);b.contentDocument.addEventListener("click",function(){setTimeout(a,200)
})};uniprot.namespace="";uniprot.jobid="";uniprot.resultsize=0;uniprot.appendFn=function(a){checkIE=arguments.length!==2;
var c=function(e){var d=document.createElement("script");d.setAttribute("type","text/javascript");
d.setAttribute("src","/scripts/"+e);document.querySelector("head").insertAdjacentElement("beforeend",d)
};for(var b=0;b<a.length;b++){if(checkIE&&directory=="ie"){c(a[b].split("-bundle.js")[0]+"-bundle-ie.js")
}else{c(a[b])}}};