/*
 * Please visit http://jwchat.sourceforge.net for more information!
 */

var SITENAME = "openheads.net"
var DEFAULTRESOURCE = "JWChat";

/* BACKENDS
 * Array of objects each describing a backend.
 *
 * Required object fields:
 * name      - human readable short identifier for this backend
 * httpbase  - base address of http service [see README for details]
 * type      - type of backend, must be 'polling' or 'binding'
 *
 * Optional object fields:
 * description     - a human readable description for this backend
 * servers_allowed - array of jabber server addresses users can connect to 
 *                   using this backend
 *
 * If BACKENDS contains more than one entry users may choose from a
 * select box which one to use when logging in.
 *
 * If 'servers_allowed' is empty or omitted user is presented an input
 * field to enter the jabber server to connect to by hand.
 * If 'servers_allowed' contains more than one element user is
 * presented a select box to choose a jabber server to connect to.
 * If 'servers_allowed' contains one single element no option is
 * presented to user.
 * 
 * ATTENTION: These are examples below. You will have to EDIT THIS! 
 *
 * In most cases you'll only have one entry not allowing your users to 
 * choose between backends.
 */
var BACKENDS = 
[
                {
                        name:"Native Binding",
                        description:"Ejabberd's native HTTP Binding backend",
                        httpbase:"/http-bind/",
                        type:"binding",
                        servers_allowed:[SITENAME]
                },
	/*
                {
                        name:"Native Polling",
                        description:"Ejabberd's native HTTP Polling backend",
                        httpbase:"/http-poll/",
                        type:"polling",
                        servers_allowed:[SITENAME]
                },
	*/
];

var timerval = 2000; // poll frequency in msec

var stylesheet = "jwchat.css";
var THEMESDIR = "themes";

/* DEFAULTCONFERENCEGROUP + DEFAULTCONFERENCESERVER
 * default values for joingroupchat form
 */
var DEFAULTCONFERENCEROOM = "pokec";
var DEFAULTCONFERENCESERVER = "conf.openheads.net";

/* debugging options */
var DEBUG = false; // turn debugging on
var DEBUG_LVL = 2; // debug-level 0..4 (4 = very noisy)

var USE_DEBUGJID = true; // if true only DEBUGJID gets the debugger
var DEBUGJID = "duxford@openheads.net"; // which user get's debug messages
