rem: setPortraitGUIObject.sprite = "ui_portrait_" + portraitString + "_" + portraitSuffix; 
add: setPortraitGUIObject.sprite = "sn" + portraitString + portraitSuffix; 
context: function setPortrait(objectName, portraitString, portraitSuffix, portraitCell) {        // Use this function as a shortcut to change a portrait object to a different portrait image.         // Accepts an object and specifies its default, rollover (lit) and disabled (gray) sprites.        // Sprite Format: "ui_portrait_"portraitString"_"portraitSuffix        // Sprite Format: "ui_portrait_"portraitString"_"portraitSuffix"_lit"        // Sprite Format: "ui_portrait_"portraitString"_"portraitSuffix"_gray"        // Note: Make sure the file follows this naming convention or bad things could happen.        // Get GUI object        setPortraitGUIObject = getGUIObjectByName(objectName);	// Report error if object not found.	if (!setPortraitGUIObject)	{		console.write ("setPortrait(): Failed to find object " + objectName + ".");		return 1;	}        // Set the three portraits.	if (portraitSuffix && portraitSuffix != "")	        setPortraitGUIObject.sprite = "ui_portrait_" + portraitString + "_" + portraitSuffix;	else	        setPortraitGUIObject.sprite = "ui_portrait_" + portraitString;        setPortraitGUIObject.sprite_over = setPortraitGUIObject.sprite + "_lit";        setPortraitGUIObject.sprite_disabled = setPortraitGUIObject.sprite + "_gray";        // If the source texture is a multi-frame image (icon sheet), specify correct cell.        if (portraitCell && portraitCell != "")                setPortraitGUIObject.cell_id = portraitCell;	else		setPortraitGUIObject.cell_id = "";	return 0;}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/b73622196e03cfe48613fb7047cf6c61ceaf24b0/functions_page_session.js/clean/binaries/data/mods/official/gui/test/functions_page_session.js