function init()
 {
     $this->activate_db();
     $this->get_translation();
     self::$image_sizes = apply_filters('new_rs_image_sizes', self::$image_sizes);
     require_once 'NewRoyalSliderOptions.php';
     if (!is_admin()) {
         add_action('wp_enqueue_scripts', array(&$this, 'find_and_register_scripts'));
         //add_action( 'wp_print_styles', array( &$this, 'frontend_styles' ) );
         //add_action( 'init', array( &$this, 'update_jquery' ) );
         add_action('wp_footer', array(&$this, 'frontend_script'));
         add_action('wp_print_footer_scripts', array(&$this, 'custom_footer_scripts'));
     } else {
         if (isset($this->global_options['allow_authors_cap']) && $this->global_options['allow_authors_cap'] === 'yes') {
             // admins, editors, authors
             $capability = 'publish_posts';
         } else {
             // admins
             $capability = 'manage_options';
         }
         if (current_user_can($capability)) {
             require_once 'NewRoyalSliderBackend.php';
             $this->slider_backend = new NewRoyalSliderBackend();
         }
     }
 }