/*
 * @package AJAX_Chat
 * @author Sebastian Tschan
 * @copyright (c) 2007 Sebastian Tschan
 * @license http://creativecommons.org/licenses/by-sa/
 * @link https://blueimp.net/ajax/
 */

// Ajax Chat config parameters:
var ajaxChatConfig = {
	
	// The URL to the XML chat messages file:
	url: './?ajax=true',

	
	// The ID of the chat messages list:
	chatListID: 'chatList',
	// The ID of the online users list:
	onlineListID: 'onlineList',
	// The ID of the message text input field
	inputFieldID: 'messageText',
	// The ID of the channel selection:
	channelSelectionID: 'channelSelection',
	// The ID of the style selection:
	styleSelectionID: 'styleSelection',
	// The ID of the emoticons container:
	emoticonsContainerID: 'emoticonsContainer',
	// The ID of the color codes container:
	colorCodesContainerID: 'colorCodesContainer',

	
	// Defines if BBCode tags are replaced with the associated HTML code tags:
	bbCode: 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 null):
	maxMessages: null,

	// 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 character that is used to wrap long words:
	breakString: '&#8203;',
	
	// 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: false,

	
	// Defines a list of settings which are not to be stored in a session cookie:
	nonPersistentSettings: new Array(
		'bbCode',
		'hyperLinks',
		'lineBreaks',
		'emoticons',
		'autoFocus',
		'maxMessages',
		'wordWrap',
		'maxWordLength',
		'breakString',
		'dateFormat'
	),

	
	// The time in ms between update calls to retrieve new chat messages:
	timerRate: 3000,
	
	// The path to the emoticon images:
	emoticonPath: 'img/emoticons/',

	// Defines the list of allowed BBCodes:
	bbCodeTags: new Array(
		'b',
		'i',
		'u',
		'quote',
		'code',
		'color',
		'url'
	),
	
	// Defines the list of allowed color codes:
	colorCodes: new Array(
		'gray',
		'orange',
		'red',
		'purple',
		'navy',
		'blue',
		'teal',
		'green',
		'olive',
		'maroon',
		'black'
	),
	
	// Defines the list of allowed emoticon codes:
	emoticonCodes: new Array(
		':)',
		':(',
		';)',
		':P',
		':D',
		':|',
		':O',
		':?',
		'8)',
		'8o',
		'B)',
		':-)',
		':-(',
		':-*',
		'O:-D',
		'>:-D',
		':o)',
		':idea:',
		':important:',
		':helpp:',
		':error:',
		':warning:',
		':favorite:',
':acute:',
		':aggressive:',
		':air_kiss:',
		':angel:',
		':bad:',
		':bb:',
		':beach:',
		':beee:',
		':big_boss:',
		':biggrin:',
		':blum3:',
		':blum:',
		':blush:',
		':boast:',
		':bomb:',
		':boredom:',
		':buba:',
		':buba_phone:',
		':bye:',
		':clapping:',
		':cray:',
		':crazy:',
		':curtsey:',
		':dance2:',
		':dance3:',
		':dance4:',
		':dance:',
		':dash1:',
		':dash2:',
		':dash3:',
		':declare:',
		':diablo:',
		':dirol:',
		':don-t_mention:',
		':download:',
		':drinks:',
		':english_en:',
		':first_move:',
		':flirt:',
		':focus:',
		':fool:',
		':friends:',
		':gamer1:',
		':gamer2:',
		':gamer3:',
		':gamer4:',
		':girl_blum:',
		':girl_cray2:',
		':girl_cray3:',
		':girl_cray:',
		':girl_crazy:',
		':girl_dance:',
		':girl_devil:',
		':girl_drink1:',
		':girl_drink3:',
		':girl_drink4:',
		':girl_haha:',
		':girl_hide:',
		':girl_hospital:',
		':girl_impossible:',
		':girl_in_love:',
		':girl_mad:',
		':girl_pinkglassesf:',
		':girl_prepare_fish:',
		':girl_sad:',
		':girl_sigh:',
		':girl_smile:',
		':girl_to_take_umbrage2:',
		':girl_to_take_umbrage:',
		':girl_wacko:',
		':girl_wink:',
		':girl_witch:',
		':give_heart2:',
		':give_heart:',
		':give_rose:',
		':good:',
		':hang1:',
		':hang2:',
		':hang3:',
		':heart:',
		':heat:',
		':help:',
		':hi:',
		':hunter:',
		':hysteric:',
		':i-m_so_happy:',
		':ireful1:',
		':ireful2:',
		':ireful3:',
		':king:',
		':kiss2:',
		':kiss3:',
		':kiss:',
		':laugh1:',
		':laugh2:',
		':laugh3:',
		':laugh4:',
		':lazy:',
		':lol2:',
		':lol:',
		':mail1:',
		':mamba:',
		':man_in_love:',
		':mda:',
		':mega_shok:',
		':moil:',
		':mosking:',
		':music2:',
		':music:',
		':nea:',
		':new_russian:',
		':ok:',
		':on_the_quiet2:',
		':on_the_quiet:',
		':padonak:',
		':paint2:',
		':paint3:',
		':paratrooper:',
		':paratrooper_girl:',
		':pardon:',
		':parting:',
		':party2:',
		':party:',
		':pilot:',
		':pioneer:',
		':pioneer_smoke:',
		':pleasantry:',
		':popcorm1:',
		':popcorm2:',
		':prankster2:',
		':preved:',
		':punish:',
		':rofl:',
		':rtfm:',
		':russian_ru:',
		':sad:',
		':sarcastic:',
		':sarcastic_blum:',
		':sarcastic_hand:',
		':scare:',
		':scaut:',
		':scaut_en:',
		':scratch_one-s_head:',
		':search:',
		':secret:',
		':sensored:',
		':SHABLON_padonak_01:',
		':SHABLON_padonak_02:',
		':SHABLON_padonak_03:',
		':shok:',
		':shout:',
		':slow:',
		':smile:',
		':smoke:',
		':soldier:',
		':soldier_girl:',
		':sorry:',
		':spiteful:',
		':spruce_up:',
		':stinker:',
		':suicide2:',
		':sun_bespectacled:',
		':superstition:',
		':swoon:',
		':tease:',
		':tender:',
		':thank_you2:',
		':this:',
		':to_babruysk:',
		':to_become_senile:',
		':to_pick_ones_nose2:',
		':to_pick_ones_nose:',
		':to_take_umbrage:',
		':training1:',
		':treaten:',
		':umnik2:',
		':unknw:',
		':vampire:',
		':vava:',
		':victory:',
		':wacko2:',
		':wacko:',
		':whistle3:',
		':wink2:',
		':wink3:',
		':wink:',
		':wizard:',
		':yahoo:',
		':yes3:',
		':yes:',
		':yess:',
		':yu:',
		':spam_light:'
				
 	),
	
 	// Defines the list of emoticon files associated with the emoticon codes:
	emoticonFiles: new Array(
		'smile_mini.gif',
		'sad_mini.gif',
		'wink_mini.gif',
		'blum_mini.gif',
		'biggrin_mini2.gif',
		'plain.png',
		'surprise.png',
		'confused.png',
		'glasses.png',
		'eek.png',
		'cool.png',
		'smile-big.png',
		'crying.png',
		'kiss.png',
		'angel_mini.gif',
		'devilish.png',
		'monkey.png',
		'idea.png',
		'important.png',
		'help.png',
		'error.png',
		'warning.png',
		'favorite.png',
		'acute.gif',
		'aggressive.gif',
		'air_kiss.gif',
		'angel.gif',
		'bad.gif',
		'bb.gif',
		'beach.gif',
		'beee.gif',
		'big_boss.gif',
		'biggrin.gif',
		'blum3.gif',
		'blum.gif',
		'blush.gif',
		'boast.gif',
		'bomb.gif',
		'boredom.gif',
		'buba.gif',
		'buba_phone.gif',
		'bye.gif',
		'clapping.gif',
		'cray.gif',
		'crazy.gif',
		'curtsey.gif',
		'dance2.gif',
		'dance3.gif',
		'dance4.gif',
		'dance.gif',
		'dash1.gif',
		'dash2.gif',
		'dash3.gif',
		'declare.gif',
		'diablo.gif',
		'dirol.gif',
		'don-t_mention.gif',
		'download.gif',
		'drinks.gif',
		'english_en.gif',
		'first_move.gif',
		'flirt.gif',
		'focus.gif',
		'fool.gif',
		'friends.gif',
		'gamer1.gif',
		'gamer2.gif',
		'gamer3.gif',
		'gamer4.gif',
		'girl_blum.gif',
		'girl_cray2.gif',
		'girl_cray3.gif',
		'girl_cray.gif',
		'girl_crazy.gif',
		'girl_dance.gif',
		'girl_devil.gif',
		'girl_drink1.gif',
		'girl_drink3.gif',
		'girl_drink4.gif',
		'girl_haha.gif',
		'girl_hide.gif',
		'girl_hospital.gif',
		'girl_impossible.gif',
		'girl_in_love.gif',
		'girl_mad.gif',
		'girl_pinkglassesf.gif',
		'girl_prepare_fish.gif',
		'girl_sad.gif',
		'girl_sigh.gif',
		'girl_smile.gif',
		'girl_to_take_umbrage2.gif',
		'girl_to_take_umbrage.gif',
		'girl_wacko.gif',
		'girl_wink.gif',
		'girl_witch.gif',
		'give_heart2.gif',
		'give_heart.gif',
		'give_rose.gif',
		'good.gif',
		'hang1.gif',
		'hang2.gif',
		'hang3.gif',
		'heart.gif',
		'heat.gif',
		'help.gif',
		'hi.gif',
		'hunter.gif',
		'hysteric.gif',
		'i-m_so_happy.gif',
		'ireful1.gif',
		'ireful2.gif',
		'ireful3.gif',
		'king.gif',
		'kiss2.gif',
		'kiss3.gif',
		'kiss.gif',
		'laugh1.gif',
		'laugh2.gif',
		'laugh3.gif',
		'laugh4.gif',
		'lazy.gif',
		'lol2.gif',
		'lol.gif',
		'mail1.gif',
		'mamba.gif',
		'man_in_love.gif',
		'mda.gif',
		'mega_shok.gif',
		'moil.gif',
		'mosking.gif',
		'music2.gif',
		'music.gif',
		'nea.gif',
		'new_russian.gif',
		'ok.gif',
		'on_the_quiet2.gif',
		'on_the_quiet.gif',
		'padonak.gif',
		'paint2.gif',
		'paint3.gif',
		'paratrooper.gif',
		'paratrooper_girl.gif',
		'pardon.gif',
		'parting.gif',
		'party2.gif',
		'party.gif',
		'pilot.gif',
		'pioneer.gif',
		'pioneer_smoke.gif',
		'pleasantry.gif',
		'popcorm1.gif',
		'popcorm2.gif',
		'prankster2.gif',
		'preved.gif',
		'punish.gif',
		'rofl.gif',
		'rtfm.gif',
		'russian_ru.gif',
		'sad.gif',
		'sarcastic.gif',
		'sarcastic_blum.gif',
		'sarcastic_hand.gif',
		'scare.gif',
		'scaut.gif',
		'scaut_en.gif',
		'scratch_one-s_head.gif',
		'search.gif',
		'secret.gif',
		'sensored.gif',
		'SHABLON_padonak_01.gif',
		'SHABLON_padonak_02.gif',
		'SHABLON_padonak_03.gif',
		'shok.gif',
		'shout.gif',
		'slow.gif',
		'smile.gif',
		'smoke.gif',
		'soldier.gif',
		'soldier_girl.gif',
		'sorry.gif',
		'spiteful.gif',
		'spruce_up.gif',
		'stinker.gif',
		'suicide2.gif',
		'sun_bespectacled.gif',
		'superstition.gif',
		'swoon.gif',
		'tease.gif',
		'tender.gif',
		'thank_you2.gif',
		'this.gif',
		'to_babruysk.gif',
		'to_become_senile.gif',
		'to_pick_ones_nose2.gif',
		'to_pick_ones_nose.gif',
		'to_take_umbrage.gif',
		'training1.gif',
		'treaten.gif',
		'umnik2.gif',
		'unknw.gif',
		'vampire.gif',
		'vava.gif',
		'victory.gif',
		'wacko2.gif',
		'wacko.gif',
		'whistle3.gif',
		'wink2.gif',
		'wink3.gif',
		'wink.gif',
		'wizard.gif',
		'yahoo.gif',
		'yes3.gif',
		'yes.gif',
		'yess.gif',
		'yu.gif',
		'spam_light.gif'
	),

	
	// The following settings 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

}