rem: selection[0].traits.id.civ_code, selection[0].traits.id.icon_cell); 
add: toTitleCase(selection[0].traits.id.civ_code), selection[0].traits.id.icon_cell); 
context: function refreshManual(){	if (selection.length != 0)	{		// Display portrait.		if (selection[0].traits.id.icon)		{			setPortrait ("mnPortrait", selection[0].traits.id.icon,				selection[0].traits.id.civ_code, selection[0].traits.id.icon_cell);		}				// Display rollover text.		if (selection[0].traits.id.rollover)		{			manualRollover = getGUIObjectByName("mnRollover");			manualRollover.caption = selection[0].traits.id.rollover;		}					// Display history text.		if (selection[0].traits.id.rollover)		{			manualHistory = getGUIObjectByName("mnHistory");			manualHistory.caption = selection[0].traits.id.history;		}					// Build manual text.		manualText = "";			addItemsRecursively ( selection[0], "", "trebuchet14" );		manualText += recursiveString;		/*				container = selection[0];		for( item in container )		{			switch (item)			{				case "actions":				case "traits":				break;				default:					// If it's a null value, or function reference, don't even bother.					if (item == null || container[item] == null) break;										// Store current property value.					currItem = container[item].toString();										// If it's a function reference, also don't bother.					if (currItem[0] == "\n") break;					manualText += item + ": " + currItem + "\n";				break;			}		}				if (selection[0].actions)		{			manualText += "[font=trebuchet14b][[Actions]]\n";			subContainer = selection[0].actions;			for (sub in subContainer)			{				switch (sub)				{					default:						// List attribute.						manualText += sub;						// List value if there is one.						if (subContainer[sub] && subContainer[sub] != "true" && subContainer[sub] != true)							manualText += ": " + subContainer[sub].toString() + "\n";						else							manualText += "\n"					break;				}											}		}*/						// Close the manual string.		manualText += "[/font]";				// Assign manual text to control.		getGUIObjectByName("mnText").caption = manualText;	}	else	{		// If the player has removed the selection while the manual is open, close the manual.		guiHide("mn");		guiUnHide("sn");	}}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/b73622196e03cfe48613fb7047cf6c61ceaf24b0/functions_page_session_manual.js/buggy/binaries/data/mods/official/gui/test/functions_page_session_manual.js