// Copyright (c) 2009 NextBio.  All Rights Reserved
// Additional JavaScript subject to other copyrights

function overviewReload(segment) {
loadFromServer({target:"ov_"+segment, url:nb.root+"/search/ovReload.nb", query:fullPageArgs+"&segment="+segment, noResize: true});
}
function filterCategories(subcatid,subcat,cat,catType,fromHist) {
var hash = '#cat='+cat;
if (cat == "Genes") {
hash += "&gf="+subcatid;
} else if (cat == "Biogroups") {
hash += "&bgf="+subcatid;
} else if (cat == "SNPs") {
hash += "&snpf="+subcatid;
}else {
hash += "&subcatid="+subcatid;
}
hash += "&subcat="+encodeURIComponent(subcat);
if(catType){
hash += "&catType="+catType;
}
location = location.href.replace('/ov','/disc')+hash;
return false;
}
function showCatTab(tab,fromHist) {
var hash = '#cat='+tab;
var href = location.href.replace('/ov','/disc')+hash;
location.href = href;
return false;
}
