function rhc_calendar_metabox($post_type = 'rhcevents')
 {
     if (!class_exists('post_meta_boxes')) {
         require_once 'class.post_meta_boxes.php';
     }
     $this->post_type = $post_type;
     $this->metabox_meta_fields = array("fc_allday", "fc_start", "fc_start_time", "fc_end", "fc_end_time", "fc_interval", "fc_end_interval", "fc_dow_except", "fc_color", "fc_text_color", "fc_click_link", "fc_click_target");
     $this->fc_intervals = plugin_righthere_calendar::get_intervals();
     $this->post_meta_boxes = new post_meta_boxes(array('post_type' => $post_type, 'options' => $this->metaboxes(), 'styles' => array('post-meta-boxes', 'rhc-admin', 'rhc-jquery-ui', 'calendarize-metabox', 'farbtastic'), 'scripts' => array('rhc-admin', 'fechahora', 'calendarize-metabox', 'farbtastic'), 'metabox_meta_fields' => 'calendar_metabox_meta_fields', 'pluginpath' => RHC_PATH));
     $this->post_meta_boxes->save_fields = $this->metabox_meta_fields;
     add_action('wp_ajax_calendarize_' . $post_type, array(&$this, 'ajax_calendarize'));
     //----
     add_action('save_post', array(&$this, 'save_post'));
 }
 function calendarize_form()
 {
     $this->fc_intervals = plugin_righthere_calendar::get_intervals();
     global $rhc_plugin;
     include $rhc_plugin->get_template_path('calendarize_form.php');
 }