");
+ puts("");
+
+ if (isEncode)
+ printf("Home | \n");
+ else
+ {
+ printf("Home | \n", uiState);
+ if (isGsid)
+ printf("Subject View | \n",uiState);
+ else
+ printf("Genomes | \n",uiState);
+
+ if (endsWith(scriptName, "hgTracks") || endsWith(scriptName, "hgGene") ||
+ endsWith(scriptName, "hgTables") || endsWith(scriptName, "hgTrackUi") ||
+ endsWith(scriptName, "hgSession") || endsWith(scriptName, "hgCustom") ||
+ endsWith(scriptName, "hgc") || endsWith(scriptName, "hgPal"))
+ printf("Genome Browser | \n",uiState,TRACK_SEARCH);
+
+ if (haveBlat && !endsWith(scriptName, "hgBlat"))
+ printf("Blat | \n",theCart ? "&" : "", uiState+1 );
+ }
+
+ if (!isGsid && !hIsCgbServer()) // disable TB for both GSID and CGB servers
+ {
+ char *table = (theCart == NULL ? NULL :
+ (endsWith(scriptName, "hgGene") ?
+ cartOptionalString(theCart, "hgg_type") :
+ cartOptionalString(theCart, "g")));
+ if (table && theCart &&
+ (endsWith(scriptName, "hgc") || endsWith(scriptName, "hgTrackUi") ||
+ endsWith(scriptName, "hgGene")))
+ {
+ struct trackDb *tdb = hTrackDbForTrack(db, table);
+ if (tdb != NULL)
+ printf("",
+ uiState, tdb->grp, tdb->track, tdb->table);
+ else
+ printf(" | ", uiState);
+ trackDbFree(&tdb);
+ }
+ else
+ printf(" | ",
+ uiState, theCart ? "&" : "?" );
+ printf("Tables | \n");
+ }
+
+ if (!endsWith(scriptName, "hgNear") && db != NULL && hgNearOk(db)) // possible to make this conditional: if (db != NULL && hgNearOk(db))
+ {
+ if (isGsid)
+ printf("Table View | \n",uiState);
+ else
+ printf("Gene Sorter | \n",uiState);
+ }
+ if ((!endsWith(scriptName, "hgPcr")) && (db == NULL || hgPcrOk(db)))
+ printf("PCR | \n",uiState);
+ if (endsWith(scriptName, "hgGenome"))
+ printf("PDF/PS | \n",uiState);
+ if (endsWith(scriptName, "hgHeatmap"))
+ printf("PDF/PS | \n",uiState);
+#ifndef GBROWSE
+ if (wikiLinkEnabled() && !endsWith(scriptName, "hgSession"))
+ printf("Session | \n",uiState, theCart ? "&" : "?" );
+#endif /* GBROWSE */
+ if (!isGsid)
+ printf("FAQ | ");
+ if (!isGsid)
+ {
+ if (endsWith(scriptName, "hgBlat"))
+ printf("Help | \n");
+ }
+ }
+ printf(" | \n"); // last column squeezes other columns left
+ puts(" |
\n");
+
+#else///ifdef TOO_TIMID_FOR_CURRENT_HTML_STANDARDS
puts(
"" "\n"
"