/**
  * constructor; add js / css; set up listener
  *
  * @author Andy Bennett
  */
 function __construct()
 {
     //parent::__construct();
     Assets::instance()->add_css('/cache/css/forum');
     Assets::instance()->add_javascript('/cache/js/forum');
     Event::add('forum.render', array('steamforum_listeners', 'render'));
     $this->argv = Router::$arguments;
     $this->current_page = "forum";
     // Remove the first argument which is always the name of the current page
     if (is_array($this->argv)) {
         $this->current_page = array_shift($this->argv);
     } else {
         $this->argv = array();
     }
     // Work out the base url for links - TODO: This needs to be generalised as its currently itim specific
     $this->base_url = sitemap_helper::get_base() . "/" . $this->current_page;
 }