Index: trunk/src/gui/gui_element.cc
===================================================================
--- trunk/src/gui/gui_element.cc	(revision 264)
+++ trunk/src/gui/gui_element.cc	(revision 266)
@@ -81,4 +81,29 @@
 }
 
+
+bool element::move_to_top( element* child )
+{
+	list::iterator it = std::find( m_children.begin(), m_children.end(), (object*)child );
+	if ( it != m_children.end() )
+	{
+		m_children.erase( it );
+		m_children.push_back( child );
+		return true;
+	}	
+	return false;
+}
+
+bool element::move_to_bottom( element* child )
+{
+	list::iterator it = std::find( m_children.begin(), m_children.end(), (object*)child );
+	if ( it != m_children.end() )
+	{
+		m_children.erase( it );
+		m_children.push_front( child );
+		return true;
+	}	
+	return false;
+}
+
 element::~element()
 {
