/*
 * lightIRC configuration
 * www.lightIRC.com
 *
 * You can add or change these parameters to customize lightIRC.
 * Please see the full parameters list at http://redmine.lightirc.com/projects/lightirc/wiki/Customization_parameters
 *
 */

var params = {};

/* Change these parameters */
params.host                         = "irc.paradise.mu";
params.port                         = 7000;
params.policyPort                   = 843;

/* Language for the user interface. Currently available translations: bd, bg, br, cz, da, de, el, en, es, et, fr, hu, it, ja, nl, pl, ro, ru, sl, sq, sr_cyr, sr_lat, sv, th, tr, uk */
params.language                     = "en";

/* Relative or absolute URL to a lightIRC CSS file.
 * The use of styles only works when you upload lightIRC to your webspace.
 * Example: css/lightblue.css 
 */
params.styleURL                     = "css/black.css";

/* Nick to be used. A % character will be replaced by a random number */
params.nick                         = "Paradise_%";
/* Channel to be joined after connecting. Multiple channels can be added like this: #lightIRC,#test,#help */
params.autojoin                     = "#Mauritius";
/* Commands to be executed after connecting. E.g.: /mode %nick% +x */
params.perform                      = "";

/* Whether the server window (and button) should be shown */
params.showServerWindow             = false;

/* Show a popup to enter a nickname */
params.showNickSelection            = true;
/* Adds a password field to the nick selection box */
params.showIdentifySelection        = true;

/* Show button to register a nickname */
params.showRegisterNicknameButton   = true;
/* Show button to register a channel */
params.showRegisterChannelButton    = false;

/* Opens new queries in background when set to true */
params.showNewQueriesInBackground   = false;

/* Position of the navigation container (where channel and query buttons appear). Valid values: left, right, top, bottom */
params.navigationPosition           = "bottom";
params.showNavigation				= true;


/* See more parameters at http://redmine.lightirc.com/projects/lightirc/wiki/Customization_parameters */

params.rememberNickname				= true;
params.ident					= "Paradise_%";
params.realname					= "Paradise Chatter";
params.enableQueries				= true;
params.autoReconnect				= true;
params.showSecurityError			= false;
params.webcam					= true;
params.host					= "webcam.gigairc.net";
params.port                         		= 8000;
params.policyPort                   		= 843;
params.accessKey                    		= "EJ924-E13CP-BYYBH-97518-D96F4";
params.rtmfp 					= "rtmfp://p2p.rtmfp.net/08273258eaf0af9c802e8d3f-5b007c3ba4bc/";
params.identifyMessage				= "NickServ:This nickname is registered";
params.identifyCommand				= "/msg NickServ identify %pass%";
params.registerNicknameServiceName		= "NickServ";
params.registerNicknameCommand			= "/msg NickServ register %password% %mail%";
params.soundAlerts				= true;
params.showTimestamps				= true;
params.showJoinPartMessages			= true;
params.showMenuButton				= true;
params.showNickChangeButton			= true;
params.showOptionsButton			= true;
params.soundOnNewChannelMessage			= false;
params.showEmoticonsButton			= true;
params.emoticonPath				= "emoticons/";
params.showRichTextControls			= true;
params.showSubmitButton				= true;
params.showChannelHeader			= true;
params.channelHeader				= "You are now talking in %channel% with %users%. The topic is: %topic%";
params.quitMessage				= "Was using Paradise Chat @ www.chat.paradise.mu"

/* Use this method to send a command to lightIRC with JavaScript */
function sendCommand(command) {
  swfobject.getObjectById('lightIRC').sendCommand(command);
}

/* This method gets called if you click on a nick in the chat area */
function onChatAreaClick(nick) {
  //alert("onChatAreaClick: "+nick);
}

/* This method gets called if you use the parameter contextMenuExternalEvent */
function onContextMenuSelect(type, nick) {
  alert("onContextMenuSelect: "+nick+" for type "+type);
}

/* This method gets called if you use the parameter loopServerCommands */
function onServerCommand(command) {
  return command;
}

/* This loop escapes % signs in parameters. You should not change it */
for(var key in params) {
  params[key] = params[key].toString().replace(/%/g, "%25");
}
