var openedFeatureGroupContainerID = null;
var openedFeatureGroupContainer = null;
var openedFeatureContainerID = null;
var openedFeatureContainer = null;

function showProjectManager()
{
   showManager('project');

   $("#faqmanager_tabs").tabs({
      idPrefix: 'faqmanager-',
      selected: 0,
      show: function(event, ui)
      {
         var category = ui.panel.id.replace(/faqmanager-/, '');
         actualMediacenterTab = ui.panel;
         $(ui.panel).html(getManagerContentByCategoryID('project', category));
         if(category == 1)
         {
            activateCriterionCatalog();
         }
         else if(category == 2)
         {
            activateQualifiedJob();
         }
         else if(category == 3)
         {
             activateAdvocate();
         }
      }
   });
}

function setMediaInterface(newMediaID)
{  
   var response = AjaxAPI('CoreDialog', 'doManagerAction', {
       manager:"project", action: "setMediaInterface", options: {
           newMediaID: newMediaID
       }
   });
   
   $("#interface_edit_imageid").val(newMediaID);
   $("#interface_edit_image").attr('src', response);
   
   $("#dialog-modal-mediacenter").dialog("close");
}


