public static function getActive($orgId)
 {
     $model = new FM_Models_FM_VideoAlbum();
     $videoGalleryTable = new FM_Models_FM_VideoGallery();
     $s = $model->getAlbumsByKeys(array('active' => '1', 'orgId' => $orgId));
     $default = $videoGalleryTable->getVideosByKeys(array('orgId' => $orgId, 'videoAlbum' => 0));
     $sArray = array();
     $defaultAlbum = new FM_Components_Util_VideoAlbum();
     $defaultAlbum->setImages($default);
     $sArray[] = $defaultAlbum;
     foreach ($s as $key => $values) {
         $sArray[] = new FM_Components_Util_VideoAlbum(array('id' => $values['id']));
     }
     //print_r($sArray);exit;
     return $sArray;
 }
 public function ajaxdeletevideoalbumAction()
 {
     if (array_key_exists('id', $_POST)) {
         FM_Components_Util_VideoAlbum::deleteAlbum($_POST['id']);
         print Zend_Json::encode($_POST);
         exit;
     }
 }