rem: var searchMode = 0; try { if (pref)	searchMode = pref.GetIntPref("browser.search.mode");  var categoryBox = document.getElementById("categoryBox"); if (categoryBox) { if (searchMode == 0) { categoryBox.setAttribute("collapsed", "true"); switchTab(0); } else { categoryBox.removeAttribute("collapsed"); switchTab(1); } } } catch(ex) { } return(searchMode); 
add: var searchMode = nsPreferences.getIntPref("browser.search.mode", 0); var categoryBox = document.getElementById("categoryBox"); if (!searchMode) { categoryBox.setAttribute("collapsed", "true"); switchTab(0); } else { categoryBox.removeAttribute("collapsed"); switchTab(1); } return searchMode; 
context: function updateSearchMode(){	var searchMode = 0;	try	{		if (pref)	searchMode = pref.GetIntPref("browser.search.mode");		var categoryBox = document.getElementById("categoryBox");		if (categoryBox)		{			if (searchMode == 0)			{				categoryBox.setAttribute("collapsed", "true");				switchTab(0);			}			else			{				categoryBox.removeAttribute("collapsed");				switchTab(1);			}		}	}	catch(ex)	{	}	return(searchMode);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ec63bd921bfae2b5ca79b2176595155886096ea8/search-panel.js/buggy/suite/common/search/search-panel.js