document.observe("dom:loaded", function() {
	eval("initBrowser(" + $('tx_pmtree_pi1_browser_init').value + ");");
    });

function initBrowser(id, primaryAccession, taxonomy, taxonomyName, db, dbName) {
    setDB(db, dbName);
    setTaxonomy( taxonomy, taxonomyName);
    gCurrentOffset = 0;
    gCurrentPrimaryAccession = primaryAccession;
    gAccessionNrBoxNr = 1;
    gCurrentPath = id;
    
    createEmptyListBoxes(gTotalMaxBoxes);
    seekViaAjax(gCurrentPath, gCurrentPrimaryAccession, gTaxonomy,
		gTaxonomyName, gDatabase, gDatabaseName, true);
    
    getCartViaAjax();
}
