/*
 * @package AJAX_Chat
 * @author Sebastian Tschan
 * @copyright (c) Sebastian Tschan
 * @license GNU Affero General Public License
 * @link https://blueimp.net/ajax/
 */

function Emoticon(fileName,codeList){
	
//	var self = this;
	if(arguments.length>0){
//		alert('init emo');
		this.init(fileName,codeList);
	}
//	var fileName = null;
//	var codeList = null;
//	alert('init emo:'+fileName);
}
Emoticon.prototype.init = function(fileName,codeList){
	this.fileName = fileName;
	this.codeList = codeList;
}

// Ajax Chat config parameters:
var ajaxChatConfig = {

	// The channelID of the channel to enter on login (the loginChannelName is used if set to null):
	loginChannelID: null,
	// The channelName of the channel to enter on login (the default channel is used if set to null):
	loginChannelName: null,	
	
	// The time in ms between update calls to retrieve new chat messages:
	timerRate: 2000,
	
	// The URL to retrieve the XML chat messages (must at least contain one parameter):
	ajaxURL: './?ajax=true',
	// The base URL of the chat directory, used to retrieve media files (images, sound files, etc.):
	baseURL: './',

	// A regular expression for allowed source URL's for media content (e.g. images displayed inline);
	regExpMediaUrl: '^((http)|(https)):\\/\\/',
	
	// If set to false the chat update is delayed until the event defined in ajaxChat.setStartChatHandler():
	startChatOnLoad: true,
	
	// Defines the IDs of DOM nodes accessed by the chat:
	domIDs: {
		// The ID of the chat messages list:
		chatList: 'chatList',
		// The ID of the online users list:
		onlineList: 'onlineList',
		// The ID of the message text input field:
		inputField: 'inputField',
		// The ID of the message text length counter:
		messageLengthCounter: 'messageLengthCounter',
		// The ID of the channel selection:
		channelSelection: 'channelSelection',
		// The ID of the style selection:
		styleSelection: 'styleSelection',
		// The ID of the emoticons container:
		emoticonsContainer: 'emoticonsContainer',
		// The ID of the color codes container:
		colorCodesContainer: 'colorCodesContainer',
		// The ID of the flash interface container:
		flashInterfaceContainer: 'flashInterfaceContainer'
	},

	// Defines the settings which can be modified by users:
	settings: {
		// Defines if BBCode tags are replaced with the associated HTML code tags:
		bbCode: true,
		// Defines if image BBCode is replaced with the associated image HTML code:
		bbCodeImages: true,
		// Defines if color BBCode is replaced with the associated color HTML code:
		bbCodeColors: true,
		// Defines if hyperlinks are made clickable:
		hyperLinks: true,
		// Defines if line breaks are enabled:
		lineBreaks: true,
		// Defines if emoticon codes are replaced with their associated images:
		emoticons: true,
	
		// Defines if the focus is automatically set to the input field on chat load or channel switch:
		autoFocus: true,
		// Defines if the chat list scrolls automatically to display the latest messages:
		autoScroll: true,	
		// The maximum count of messages displayed in the chat list (will be ignored if set to 0):
		maxMessages: 0,
		
		// Defines if long words are wrapped to avoid vertical scrolling:
		wordWrap: true,
		// Defines the maximum length before a word gets wrapped: 
		maxWordLength: 32,
		
		// Defines the format of the date and time displayed for each chat message:
		dateFormat: '(%H:%i:%s)',
		
		// Defines if font colors persist without the need to assign them to each message:
		persistFontColor: true,	
		// The default font color, uses the page default font color if set to null:
		fontColor: '#404040',
		
		// Defines if sounds are played:
		audio: true,
		// Defines the sound volume (0.0 = mute, 1.0 = max):
		audioVolume: 1.0,

		// Defines the sound that is played when normal messages are reveived:
		soundReceive: 'sound_1',
		// Defines the sound that is played on sending normal messages:
		soundSend: 'sound_2',
		// Defines the sound that is played on channel enter or login:
		soundEnter: 'sound_3',
		// Defines the sound that is played on channel leave or logout:
		soundLeave: 'sound_4',
		// Defines the sound that is played on chatBot messages:
		soundChatBot: 'sound_5',
		// Defines the sound that is played on error messages:
		soundError: 'sound_6',
		
		// Defines if the document title blinks on new messages:
		blink: true,
		// Defines the blink interval in ms:
		blinkInterval: 500,
		// Defines the number of blink intervals:
		blinkIntervalNumber: 10
	},
	
	// Defines a list of settings which are not to be stored in a session cookie:
	nonPersistentSettings: new Array(
	),

	// Defines the list of allowed BBCodes:
	bbCodeTags: new Array(
		's',
		'b',
		'i',
		'u',
		'quote',
		'code',
		'color',
		'url',
		'img'
	),
	
	// Defines the list of allowed color codes:
	colorCodes: new Array(
		'#000000',
		'#330000',
		'#660000',
		'#990000',
		'#cc0000',
		'#ff0000',
		'#ff6600',
		'#cc6600',
		'#996600',
		'#666600',
		'#336600',
		'#006600',
		'#00cc00',
		'#33cc00',
		'#66cc00',
		'#99cc00',
		'#cccc00',
		'#ffcc00',
		'#000033',
		'#330033',
		'#660033',
		'#990033',
		'#cc0033',
		'#ff0033',
		'#ff6633',
		'#cc6633',
		'#996633',
		'#666633',
		'#336633',
		'#006633',
		'#00cc33',
		'#33cc33',
		'#66cc33',
		'#99cc33',
		'#cccc33',
		'#ffcc33',
		'#000066',
		'#330066',
		'#660066',
		'#990066',
		'#cc0066',
		'#ff0066',
		'#ff6666',
		'#cc6666',
		'#996666',
		'#666666',
		'#336666',
		'#006666',
		'#00cc66',
		'#33cc66',
		'#66cc66',
		'#99cc66',
		'#cccc66',
		'#ffcc66',
		'#000099',
		'#330099',
		'#660099',
		'#990099',
		'#cc0099',
		'#ff0099',
		'#ff6699',
		'#cc6699',
		'#996699',
		'#666699',
		'#336699',
		'#006699',
		'#00cc99',
		'#33cc99',
		'#66cc99',
		'#99cc99',
		'#cccc99',
		'#ffcc99',
		'#0000cc',
		'#3300cc',
		'#6600cc',
		'#9900cc',
		'#cc00cc',
		'#ff00cc',
		'#ff66cc',
		'#cc66cc',
		'#9966cc',
		'#6666cc',
		'#3366cc',
		'#0066cc',
		'#00cccc',
		'#33cccc',
		'#66cccc',
		'#99cccc',
		'#cccccc',
		'#ffcccc',
		'#0000ff',
		'#3300ff',
		'#6600ff',
		'#9900ff',
		'#cc00ff',
		'#ff00ff',
		'#ff66ff',
		'#cc66ff',
		'#9966ff',
		'#6666ff',
		'#3366ff',
		'#0066ff',
		'#00ccff',
		'#33ccff',
		'#66ccff',
		'#99ccff',
		'#ccccff',
		'#ffccff',
		'#0033ff',
		'#3333ff',
		'#6633ff',
		'#9933ff',
		'#cc33ff',
		'#ff33ff',
		'#ff99ff',
		'#cc99ff',
		'#9999ff',
		'#6699ff',
		'#3399ff',
		'#0099ff',
		'#00ffff',
		'#33ffff',
		'#66ffff',
		'#99ffff',
		'#ccffff',
		'#ffffff',
		'#0033cc',
		'#3333cc',
		'#6633cc',
		'#9933cc',
		'#cc33cc',
		'#ff33cc',
		'#ff99cc',
		'#cc99cc',
		'#9999cc',
		'#6699cc',
		'#3399cc',
		'#0099cc',
		'#00ffcc',
		'#33ffcc',
		'#66ffcc',
		'#99ffcc',
		'#ccffcc',
		'#ffffcc',
		'#003399',
		'#333399',
		'#663399',
		'#993399',
		'#cc3399',
		'#ff3399',
		'#ff9999',
		'#cc9999',
		'#999999',
		'#669999',
		'#339999',
		'#009999',
		'#00ff99',
		'#33ff99',
		'#66ff99',
		'#99ff99',
		'#ccff99',
		'#ffff99',
		'#003366',
		'#333366',
		'#663366',
		'#993366',
		'#cc3366',
		'#ff3366',
		'#ff9966',
		'#cc9966',
		'#999966',
		'#669966',
		'#339966',
		'#009966',
		'#00ff66',
		'#33ff66',
		'#66ff66',
		'#99ff66',
		'#ccff66',
		'#ffff66',
		'#003333',
		'#333333',
		'#663333',
		'#993333',
		'#cc3333',
		'#ff3333',
		'#ff9933',
		'#cc9933',
		'#999933',
		'#669933',
		'#339933',
		'#009933',
		'#00ff33',
		'#33ff33',
		'#66ff33',
		'#99ff33',
		'#ccff33',
		'#ffff33',
		'#003300',
		'#333300',
		'#663300',
		'#993300',
		'#cc3300',
		'#ff3300',
		'#ff9900',
		'#cc9900',
		'#999900',
		'#669900',
		'#339900',
		'#009900',
		'#00ff00',
		'#33ff00',
		'#66ff00',
		'#99ff00',
		'#ccff00',
		'#ffff00'
	),
	// Defines the list of allowed emoticon codes:
	emoticonCodes: new Array(
	),
	
	// Defines the list of emoticon files associated with the emoticon codes:
	emoticonFiles: new Array(
		new Emoticon(
			'w00t.gif', new Array(
			':w00t:'
			)
		),
		new Emoticon(
			'Jumpy.gif', new Array(
			':w00t2:',
			':jumpy:'
			)
		),
		new Emoticon(
			'woot_jump.gif', new Array(
			':w00t3:'
			)
		),
		new Emoticon(
			'alex.gif', new Array(
			':alex:'
			)
		),
		new Emoticon(
			'cool.gif', new Array(
			':cool:'
			)
		),
		new Emoticon(
			'huh.gif', new Array(
			':huh:'
			)
		),
		new Emoticon(
			'blink.gif', new Array(
			'O_o'
			)
		),
		new Emoticon(
			'34.gif', new Array(
			':denk2:'
			)
		),
		new Emoticon(
			'bash.gif', new Array(
			':hammer:'
			)
		),
		new Emoticon(
			'biggrin.gif', new Array(
			':D',
			'D:'
			)
		),
		new Emoticon(
			'clap.gif', new Array(
			':clap:'
			)
		),
		new Emoticon(
			'clap_1.gif', new Array(
			':applaus:'
			)
		),
		new Emoticon(
			'closedeyes.gif', new Array(
			':muede:',
			':sleep:'
			)
		),
		new Emoticon(
			'cry.gif', new Array(
			';-(',
			';('
			)
		),
		new Emoticon(
			'cry_1.gif', new Array(
			':heul:'
			)
		),
		new Emoticon(
			'cupidarrow.gif', new Array(
			':love2:'
			)
		),
		new Emoticon(
			'wub.gif', new Array(
			':wub:'
			)
		),
		new Emoticon(
			'hug.gif', new Array(
			':hug:'
			)
		),
		new Emoticon(
			'in_love.gif', new Array(
			':süss:',
			':süß:'
			)
		),
		new Emoticon(
			'love.gif', new Array(
			':love:'
			)
		),
		new Emoticon(
			'throb.gif', new Array(
			':throb:'
			)
		),
		new Emoticon(
			'ermm.gif', new Array(
			':errm:'
			)
		),
		new Emoticon(
			'flowers.gif', new Array(
			':blume:',
			':flower:'
			)
		),
		new Emoticon(
			'fisch.gif', new Array(
			':fisch:'
			)
		),
		new Emoticon(
			'happy.gif', new Array(
			'^^',
			':happy:'
			)
		),
		new Emoticon(
			'helpsmilie.gif', new Array(
			':help:',
			':hilfe:'
			)
		),
		new Emoticon(
			'jump.gif', new Array(
			':jump:',
			':hüpf:'
			)
		),
		new Emoticon(
			'laola.gif', new Array(
			':laola:'
			)
		),
		new Emoticon(
			'laugh.gif', new Array(
			':lol:',
			':l:',
			':L:'
			)
		),
		new Emoticon(
			'mad.gif', new Array(
			'>:('
			)
		),
		new Emoticon(
			'music_whistling.gif', new Array(
			':pfeif:'
			)
		),
		new Emoticon(
			'noexpression.gif', new Array(
			':-|'
			)
		),
		new Emoticon(
			'nordlicht.gif', new Array(
			':nordlicht:'
			)
		),
		new Emoticon(
			'nugget.gif', new Array(
			':nugget:',
			'><'
			)
		),
		new Emoticon(
			'nrw.gif', new Array(
			':nrw:'
			)
		),
		new Emoticon(
			'ohmy.gif', new Array(
			':o'
			)
		),
		new Emoticon(
			'oink.gif', new Array(
			':oink:',
			':krys:'
			)
		),
		new Emoticon(
			'puke3.gif', new Array(
			':x',
			':pukeface:'
			)
		),
		new Emoticon(
			'rolleyes.gif', new Array(
			':rolleyes:'
			)
		),
		new Emoticon(
			'cowboy.gif', new Array(
			':cowboy:'
			)
		),
		new Emoticon(
			'sad.gif', new Array(
			':(',
			':-('
			)
		),
		new Emoticon(
			'schlaf.gif', new Array(
			':schlaf:'
			)
		),
		new Emoticon(
			'shifty.gif', new Array(
			':shifty:'
			)
		),
		new Emoticon(
			'smartass.gif', new Array(
			':smartass:',
			':physikus:',
			':tim:'
			)
		),
		new Emoticon(
			'smile.gif', new Array(
			':)',
			':-)'
			)
		),
		new Emoticon(
			'surrender.gif', new Array(
			':surrender:'
			)
		),
		new Emoticon(
			'thumbup.gif', new Array(
			':super:'
			)
		),
		new Emoticon(
			'tongue.gif', new Array(
			':p',
			':P'
			)
		),
		new Emoticon(
			'wacko.gif', new Array(
			'8{'
			)
		),
		new Emoticon(
			'wink.gif', new Array(
			';)',
			';-)'
			)
		),
		new Emoticon(
			'wolke.gif', new Array(
			':wolke:'
			)
		),
		new Emoticon(
			'no.gif', new Array(
			':no:'
			)
		),
		new Emoticon(
			'yes.gif', new Array(
			':yes:'
			)
		),
		new Emoticon(
			'shakin.gif', new Array(
			':shakin:'
			)
		),
		new Emoticon(
			'poppen.gif', new Array(
			':poppen:'
			)
		),
		new Emoticon(
			'wavey.gif', new Array(
			':wink:'
			)
		),
		new Emoticon(
			'bussi.gif', new Array(
			':bussi:'
			)
		),
		new Emoticon(
			'knuddel.gif', new Array(
			':knuddel:',
			':knuddl:'
			)
		),
		new Emoticon(
			'question.gif', new Array(
			'???'
			)
		),
		new Emoticon(
			'excl.gif', new Array(
			'!!!'
			)
		),
		new Emoticon(
			'wallbash.gif', new Array(
			':wand:',
			':w:'
			)
		),
		new Emoticon(
			'rofl.gif', new Array(
			':rofl:',
			':r:'
			)
		),
		new Emoticon(
			'beerchug.gif', new Array(
			':bier:',
			':beer:'
			)
		),
		new Emoticon(
			'irre.gif', new Array(
			':irre:'
			)
		),
		new Emoticon(
			'plemplem.gif', new Array(
			':plemplem:'
			)
		),
		new Emoticon(
			'Schild.gif', new Array(
			':stupid:'
			)
		),
		new Emoticon(
			'dito.gif', new Array(
			':dito:'
			)
		),
		new Emoticon(
			'85.gif', new Array(
			':friends:'
			)
		),
		new Emoticon(
			'ph34r.gif', new Array(
			':ph34r:'
			)
		),
		new Emoticon(
			'angel2.gif', new Array(
			':angel:'
			)
		),
		new Emoticon(
			'heart.gif', new Array(
			':heart:'
			)
		),
		new Emoticon(
			'p2.gif', new Array(
			':p2'
			)
		),
		new Emoticon(
			'tsts.gif', new Array(
			':tsts:'
			)
		),
		new Emoticon(
			'sekt.gif', new Array(
			':sekt:',
			'/hidden/'
			)
		),
		new Emoticon(
			'jippie.gif', new Array(
			':jippie:'
			)
		),
		new Emoticon(
			'bye.gif', new Array(
			':bye2:'
			)
		),
		new Emoticon(
			'kiss.gif', new Array(
			':kiss:'
			)
		),
		new Emoticon(
			'bahnhof.gif', new Array(
			':bahnhof:'
			)
		),
		new Emoticon(
			'bye2.gif', new Array(
			':cu:'
			)
		),
		new Emoticon(
			'cheers.gif', new Array(
			':cheers:'
			)
		),
		new Emoticon(
			'danke.gif', new Array(
			':danke:'
			)
		),
		new Emoticon(
			'flatto-moin.gif', new Array(
			':moin:'
			)
		),
		new Emoticon(
			'flatto-nabend.gif', new Array(
			':nabend:'
			)
		),
		new Emoticon(
			'flower2.gif', new Array(
			':flower2:'
			)
		),
		new Emoticon(
			'frieden.gif', new Array(
			':frieden:'
			)
		),
		new Emoticon(
			'icon_telefonieren.gif', new Array(
			':telefonieren:'
			)
		),
		new Emoticon(
			'in_love_wink.gif', new Array(
			':bye:'
			)
		),
		new Emoticon(
			'knutsch.gif', new Array(
			':knutsch:'
			)
		),
		new Emoticon(
			'loala.gif', new Array(
			':loala:'
			)
		),
		new Emoticon(
			'laugh2.gif', new Array(
			':lol2:'
			)
		),
		new Emoticon(
			'meld.gif', new Array(
			':meld:'
			)
		),
		new Emoticon(
			'meldjump.gif', new Array(
			':meldjump:'
			)
		),
		new Emoticon(
			'nee.gif', new Array(
			':nee:'
			)
		),
		new Emoticon(
			'notworthy.gif', new Array(
			':anbet:'
			)
		),
		new Emoticon(
			'ok.gif', new Array(
			':ok:'
			)
		),
		new Emoticon(
			'pc.gif', new Array(
			':pc:'
			)
		),
		new Emoticon(
			'ranting.gif', new Array(
			':ranting:'
			)
		),
		new Emoticon(
			'rolf.gif', new Array(
			':rolf:'
			)
		),
		new Emoticon(
			'think.gif', new Array(
			':denk:'
			)
		),
		new Emoticon(
			'thumbup2.gif', new Array(
			':thumbup:'
			)
		),
		new Emoticon(
			'wow.gif', new Array(
			':wow:'
			)
		),
		new Emoticon(
			'wub2.gif', new Array(
			':wub2:'
			)
		),
		new Emoticon(
			'zunge.gif', new Array(
			':p3:',
			':zunge:'
			)
		),
		new Emoticon(
			'404.gif', new Array(
			':404:'
			)
		),
		new Emoticon(
			'PicCube_a0d7a0fec5.gif', new Array(
			':sabber:'
			)
		),
		new Emoticon(
			'banane_yea.gif', new Array(
			':banane:'
			)
		),
		new Emoticon(
			'enifweb_timido.gif', new Array(
			':verlegen:',
			':-['
			)
		),
		new Emoticon(
			'dance.gif', new Array(
			':dance:'
			)
		),
		new Emoticon(
			'gelbe-karte.gif', new Array(
			':gelbekarte:'
			)
		),
		new Emoticon(
			'give_heart.gif', new Array(
			':giveheart:'
			)
		),
		new Emoticon(
			'provocando.gif', new Array(
			':provozieren:'
			)
		),
		new Emoticon(
			'rotekarte.gif', new Array(
			':rotekarte:'
			)
		),
		new Emoticon(
			'rotfl.gif', new Array(
			':rotfl:'
			)
		),
		new Emoticon(
			'a060.gif', new Array(
			':heul2:'
			)
		),
		new Emoticon(
			'jaa.gif', new Array(
			':jaa:',
			':anfeuer:'
			)
		),
		new Emoticon(
			'yes4.gif', new Array(
			':nick:'
			)
		),
		new Emoticon(
			'alt.gif', new Array(
			':alt:'
			)
		),
		new Emoticon(
			'umfall.gif', new Array(
			':umfall:'
			)
		),
		new Emoticon(
			'tired.gif', new Array(
			':tired:'
			)
		),
		new Emoticon(
			'spiderpig.gif', new Array(
			':spiderpig:'
			)
		),
		new Emoticon(
			'pinguin.gif', new Array(
			':pinguin:'
			)
		),
		new Emoticon(
			'karneval.gif', new Array(
			':karneval:'
			)
		),
		new Emoticon(
			'87.gif', new Array(
			'87'
			)
		),
		new Emoticon(
			'essen.gif', new Array(
			':essen:',
			':hunger:'
			)
		),
		new Emoticon(
			'krank.gif', new Array(
			':krank:'
			)
		),
		new Emoticon(
			'mlui.gif', new Array(
			':mlui:'
			)
		),
		new Emoticon(
			'tv.gif', new Array(
			':tv:'
			)
		),
		new Emoticon(
			'robbe.gif', new Array(
			':robbe:'
			)
		),
		new Emoticon(
			'aetsch.gif', new Array(
			':aetsch:'
			)
		),
		new Emoticon(
			'music.gif', new Array(
			':music:',
			':musik:'
			)
		),
		new Emoticon(
			'jippie2.gif', new Array(
			':jippie2:'
			)
		),
		new Emoticon(
			'rolleyes2.gif', new Array(
			':rolleyes2:'
			)
		),
		new Emoticon(
			'rose.gif', new Array(
			':rose:'
			)
		),
		new Emoticon(
			'claudia.gif', new Array(
			':claudia:'
			)
		),
		new Emoticon(
			'devil.gif', new Array(
			':devil:',
			':teufel:'
			)
		),
		new Emoticon(
			'puempel.gif', new Array(
			':knutsch2:'
			)
		),
		new Emoticon(
			'anke.gif', new Array(
			':anke:'
			)
		),
		new Emoticon(
			'basti.gif', new Array(
			':basti:'
			)
		),
		new Emoticon(
			'hendrik.gif', new Array(
			':hendrik:'
			)
		),
		new Emoticon(
			'niko.gif', new Array(
			':niko:'
			)
		),
		new Emoticon(
			'carsten.gif', new Array(
			':carsten:'
			)
		),
		new Emoticon(
			'daniel.gif', new Array(
			':daniel:'
			)
		),
		new Emoticon(
			'hund.gif', new Array(
			':hund:'
			)
		),
		new Emoticon(
			'kai.gif', new Array(
			':kai:'
			)
		),
		new Emoticon(
			'sabine.gif', new Array(
			':sabine:'
			)
		),
		new Emoticon(
			'haemisch2.gif', new Array(
			':auslach:',
			':auslachen:'
			)
		),
		new Emoticon(
			'alex_xmas.gif', new Array(
			':xmas:'
			)
		),
		new Emoticon(
			'girl_in_love.gif', new Array(
			':girl:',
			':meneater:'
			)
		),
		new Emoticon(
			'idiot-0011.gif', new Array(
			':idiot:'
			)
		),
		new Emoticon(
			'maffay_smile.jpg', new Array(
			':maffay:'
			)
		),
		new Emoticon(
			'einauge.png', new Array(
			':einauge:',
		    ':pfadi:'
			)
		),
		new Emoticon(
			'rechtschreib.gif', new Array(
			':rechtschreib:'
			)
		),
		new Emoticon(
			'ertrinken.gif', new Array(
			':ertrinken:'
			)
		),
		new Emoticon(
			'bayern.gif', new Array(
			':bayern:'
			)
		),
		new Emoticon(
			'jol.gif', new Array(
			':jol:'
			)
		),
		new Emoticon(
			'kamera.gif', new Array(
			':kamera:',
			':camera:',
			':cam:',
			':foto:'
			)
		)
	),

	// Defines the available sounds loaded on chat start:
	soundFiles: {
		sound_1: 'sound_1.mp3',
		sound_2: 'sound_2.mp3',
		sound_3: 'sound_3.mp3',
		sound_4: 'sound_4.mp3',
		sound_5: 'sound_5.mp3',
		sound_6: 'sound_6.mp3'
	},
	
	
	// The following configuration options are usually overwritten by server-side values:
	
	// Session identification, used for style and setting cookies:
	sessionName: 'ajax_chat',

	// The time in days until the style and setting cookies expire:
	cookieExpiration: 365,
	// The path of the cookies, '/' allows to read the cookies from all directories:
	cookiePath: '/',
	// The domain of the cookies, defaults to the hostname of the server if set to null:
	cookieDomain: null,
	// If enabled, cookies must be sent over secure (SSL/TLS encrypted) connections:
	cookieSecure: null,
	
	// The name of the chat bot:
	chatBotName: 'ChatBot',
	// The userID of the chat bot:
	chatBotID: 2147483647,

	// Allow/Disallow registered users to delete their own messages:
	allowUserMessageDelete: false,
	
	// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
	inactiveTimeout: 2,

	// UserID plus this value are private channels (this is also the max userID and max channelID):
	privateChannelDiff: 500000000,
	// UserID plus this value are used for private messages:
	privateMessageDiff: 1000000000,

	// Defines if login/logout and channel enter/leave are displayed:
	showChannelMessages: true,

	// Max messageText length:
	messageTextMaxLength: 1040,
	
	// Defines if the socket server is enabled:
	socketServerEnabled: false,
	// Defines the hostname of the socket server used to connect from client side:
	socketServerHost: 'localhost',
	// Defines the port of the socket server:
	socketServerPort: 1935,
	// This ID can be used to distinguish between different chat installations using the same socket server:
	socketServerChatID: 0

}
