rem: else 
add: } else { 
context: function tabbedprefs() {	var prefform = document.getElementById('preferences');	if (!prefform || !document.createElement)		return;	if (prefform.nodeName.toLowerCase() == 'a')		return; // Occasional IE problem	prefform.className = prefform.className + 'jsprefs';	var sections = new Array();	var children = prefform.childNodes;	var seci = 0;	for (var i = 0; i < children.length; i++) {		if (children[i].nodeName.toLowerCase() == 'fieldset') {			children[i].id = 'prefsection-' + seci;			children[i].className = 'prefsection';			if (is_opera || is_khtml)				children[i].className = 'prefsection operaprefsection';			var legends = children[i].getElementsByTagName('legend');			sections[seci] = new Object();			legends[0].className = 'mainLegend';			if (legends[0] && legends[0].firstChild.nodeValue)				sections[seci].text = legends[0].firstChild.nodeValue;			else				sections[seci].text = '# ' + seci;			sections[seci].secid = children[i].id;			seci++;			if (sections.length != 1)				children[i].style.display = 'none';			else				var selectedid = children[i].id;		}	}	var toc = document.createElement('ul');	toc.id = 'preftoc';	toc.selectedid = selectedid;	for (i = 0; i < sections.length; i++) {		var li = document.createElement('li');		if (i == 0)			li.className = 'selected';		var a = document.createElement('a');		a.href = '#' + sections[i].secid;		a.onmousedown = a.onclick = uncoversection;		a.appendChild(document.createTextNode(sections[i].text));		a.secid = sections[i].secid;		li.appendChild(a);		toc.appendChild(li);	}	prefform.parentNode.insertBefore(toc, prefform.parentNode.childNodes[0]);	document.getElementById('prefsubmit').id = 'prefcontrol';}
meta: 7966	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7966/845a064a5667ce4442c1b90f1eb1e013673ae589/wikibits.js/buggy/skins/common/wikibits.js