rem: GUIObjectUnhide("session_gui"); 
add: GUIObjectUnhide("SESSION_GUI"); 
context: function FlipGUI(NewGUIType){	// Sets the GUI coordinates and graphics so that the panel is either at the top or bottom of the screen.	switch (NewGUIType)	{		// Set which GUI to use.		case "top":		case "bottom":		case "none":			GUIType=NewGUIType;		break;		default:			// If no type specified, toggle.			if (GUIType == "top")				GUIType = "bottom";			else			if (GUIType == "bottom")				GUIType = "none";			else				GUIType = "top";		break;	}	if (GUIType != "none")	{		GUIObjectUnhide("session_gui");		GUIObjectUnhide("always_on");		// Seek through all sizes created.		for (FlipGUILoop = 0; FlipGUILoop <= SizeCoord.last-1; FlipGUILoop++)		{			// Set each object to the other size.			switch (GUIType)			{				case "top":					setSize(SizeCoord[FlipGUILoop].name, SizeCoord[FlipGUILoop].size1);					switch (SizeCoord[FlipGUILoop].name){						case "session_panel_minimap_segbottom1":							getGUIObjectByName(SizeCoord[FlipGUILoop].name).sprite = SizeCoord[FlipGUILoop].name;							getGUIObjectByName(SizeCoord[FlipGUILoop].name).sprite_over = SizeCoord[FlipGUILoop].name + "_lit";						break;						case "session_panel_minimap_segbottom2":							getGUIObjectByName(SizeCoord[FlipGUILoop].name).sprite = SizeCoord[FlipGUILoop].name;							getGUIObjectByName(SizeCoord[FlipGUILoop].name).sprite_over = SizeCoord[FlipGUILoop].name + "_lit";						break;						case "session_panel_minimap_segbottom3":							getGUIObjectByName(SizeCoord[FlipGUILoop].name).sprite = SizeCoord[FlipGUILoop].name;							getGUIObjectByName(SizeCoord[FlipGUILoop].name).sprite_over = SizeCoord[FlipGUILoop].name + "_lit";						break;						case "session_panel_minimap_segbottom4":							getGUIObjectByName(SizeCoord[FlipGUILoop].name).sprite = SizeCoord[FlipGUILoop].name;							getGUIObjectByName(SizeCoord[FlipGUILoop].name).sprite_over = SizeCoord[FlipGUILoop].name + "_lit";						break;						case "session_panel_status_bg":							getGUIObjectByName(SizeCoord[FlipGUILoop].name).sprite = "session_panel_status_bg_top";						break;						default:						break;					}				break;				case "bottom":					setSize(SizeCoord[FlipGUILoop].name, SizeCoord[FlipGUILoop].size2);					switch (SizeCoord[FlipGUILoop].name){						case "session_panel_minimap_segbottom1":							getGUIObjectByName(SizeCoord[FlipGUILoop].name).sprite = "session_panel_minimap_segtop1";							getGUIObjectByName(SizeCoord[FlipGUILoop].name).sprite_over = "session_panel_minimap_segtop1_lit";						break;						case "session_panel_minimap_segbottom2":							getGUIObjectByName(SizeCoord[FlipGUILoop].name).sprite = "session_panel_minimap_segtop2";							getGUIObjectByName(SizeCoord[FlipGUILoop].name).sprite_over = "session_panel_minimap_segtop2_lit";						break;						case "session_panel_minimap_segbottom3":							getGUIObjectByName(SizeCoord[FlipGUILoop].name).sprite = "session_panel_minimap_segtop3";							getGUIObjectByName(SizeCoord[FlipGUILoop].name).sprite_over = "session_panel_minimap_segtop3_lit";						break;						case "session_panel_minimap_segbottom4":							getGUIObjectByName(SizeCoord[FlipGUILoop].name).sprite = "session_panel_minimap_segtop4";							getGUIObjectByName(SizeCoord[FlipGUILoop].name).sprite_over = "session_panel_minimap_segtop4_lit";						break;						case "session_panel_status_bg":							getGUIObjectByName(SizeCoord[FlipGUILoop].name).sprite = "session_panel_status_bg_bottom";						break;						default:						break;					}				break;			}					}		UpdateGroupPane();	}	else	{		GUIObjectHide("session_gui");		GUIObjectHide("always_on");	}	writeConsole("GUI flipped to " + GUIType + ".");}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/79e56cf113523b71f02d6891bece166f364742e7/functions_utility_coord.js/clean/binaries/data/mods/official/gui/test/functions_utility_coord.js