public int addSidebarItem(SidebarItem e)
	{
		if(((heightFilled + e.getHeight() + Sidebar.VERTICAL_SPACING) > Sidebar.windowHeight_) ||
				(((2 * Sidebar.HORIZONTAL_SPACING) + e.getWidth()) > Sidebar.WIDTH))
		{
			return -1;
		}
		for(int i = 0; i < Sidebar.MAX_ELEMS; i++)
		{
			if(elements[i] == null)
			{
				elements[i] = e;
				elementPos[i] = (Sidebar.windowHeight_ - heightFilled) - e.getHeight();
				heightFilled += (e.getHeight() + Sidebar.VERTICAL_SPACING);
				return i;
			}
		}
		return -1;
	}