function selectPicGroup(group)
{
  for(i = 0; i < pic_groups.length; i++)
  {
    if(pic_groups[i] == group)
    {
      document.getElementById('link_object_' + i).style.textDecoration  = 'none';
      document.getElementById('link_object_' + i).style.fontWeight      = 'bold';
      document.getElementById('page_select_' + i).style.display         = '';
    }
    else
    {
      document.getElementById('link_object_' + i).style.textDecoration  = 'underline';
      document.getElementById('link_object_' + i).style.fontWeight      = 'normal';
      document.getElementById('page_select_' + i).style.display         = 'none';
    }
  }
  
  selectPicPage(group, 1);
}

function selectPicPage(group, page)
{
  for(i = 0; i < pic_groups_pages[group].length; i++)
  {
    if(pic_groups_pages[group][i] == page)
    {
      document.getElementById('page_link_object_' + pic_groups_positions[group] + '_' + pic_groups_pages[group][i]).style.textDecoration  = 'none';
      document.getElementById('page_link_object_' + pic_groups_positions[group] + '_' + pic_groups_pages[group][i]).style.fontWeight      = 'bold';
    }
    else
    {
      document.getElementById('page_link_object_' + pic_groups_positions[group] + '_' + pic_groups_pages[group][i]).style.textDecoration  = 'underline';
      document.getElementById('page_link_object_' + pic_groups_positions[group] + '_' + pic_groups_pages[group][i]).style.fontWeight      = 'normal';
    }
  }
}

