private function _EmotifySetup($Sender) {
		$Sender->AddJsFile('emotify.js', 'plugins/Emotify');  
		// Deliver the emoticons to the page.
      $Emoticons = array();
      foreach ($this->GetEmoticons() as $i => $gif) {
         if (!isset($Emoticons[$gif]))
            $Emoticons[$gif] = $i;
      }
      $Emoticons = array_flip($Emoticons);
      
		$Sender->AddDefinition('Emoticons', base64_encode(json_encode($Emoticons)));
	}