Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/strophe.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/strophe.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/strophe.js	(revision 2397)
@@ -0,0 +1,3543 @@
+// This code was written by Tyler Akins and has been placed in the
+// public domain.  It would be nice if you left this header intact.
+// Base64 code from Tyler Akins -- http://rumkin.com
+
+var Base64 = (function () {
+    var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
+
+    var obj = {
+        /**
+         * Encodes a string in base64
+         * @param {String} input The string to encode in base64.
+         */
+        encode: function (input) {
+            var output = "";
+            var chr1, chr2, chr3;
+            var enc1, enc2, enc3, enc4;
+            var i = 0;
+        
+            do {
+                chr1 = input.charCodeAt(i++);
+                chr2 = input.charCodeAt(i++);
+                chr3 = input.charCodeAt(i++);
+                
+                enc1 = chr1 >> 2;
+                enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
+                enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
+                enc4 = chr3 & 63;
+
+                if (isNaN(chr2)) {
+                    enc3 = enc4 = 64;
+                } else if (isNaN(chr3)) {
+                    enc4 = 64;
+                }
+                
+                output = output + keyStr.charAt(enc1) + keyStr.charAt(enc2) +
+                    keyStr.charAt(enc3) + keyStr.charAt(enc4);
+            } while (i < input.length);
+            
+            return output;
+        },
+        
+        /**
+         * Decodes a base64 string.
+         * @param {String} input The string to decode.
+         */
+        decode: function (input) {
+            var output = "";
+            var chr1, chr2, chr3;
+            var enc1, enc2, enc3, enc4;
+            var i = 0;
+            
+            // remove all characters that are not A-Z, a-z, 0-9, +, /, or =
+            input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
+            
+            do {
+                enc1 = keyStr.indexOf(input.charAt(i++));
+                enc2 = keyStr.indexOf(input.charAt(i++));
+                enc3 = keyStr.indexOf(input.charAt(i++));
+                enc4 = keyStr.indexOf(input.charAt(i++));
+                
+                chr1 = (enc1 << 2) | (enc2 >> 4);
+                chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
+                chr3 = ((enc3 & 3) << 6) | enc4;
+                
+                output = output + String.fromCharCode(chr1);
+                
+                if (enc3 != 64) {
+                    output = output + String.fromCharCode(chr2);
+                }
+                if (enc4 != 64) {
+                    output = output + String.fromCharCode(chr3);
+                }
+            } while (i < input.length);
+            
+            return output;
+        }
+    };
+
+    return obj;
+})();
+/*
+ * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
+ * Digest Algorithm, as defined in RFC 1321.
+ * Version 2.1 Copyright (C) Paul Johnston 1999 - 2002.
+ * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
+ * Distributed under the BSD License
+ * See http://pajhome.org.uk/crypt/md5 for more info.
+ */
+
+var MD5 = (function () {
+    /*
+     * Configurable variables. You may need to tweak these to be compatible with
+     * the server-side, but the defaults work in most cases.
+     */
+    var hexcase = 0;  /* hex output format. 0 - lowercase; 1 - uppercase */
+    var b64pad  = ""; /* base-64 pad character. "=" for strict RFC compliance */
+    var chrsz   = 8;  /* bits per input character. 8 - ASCII; 16 - Unicode */
+
+    /*
+     * Add integers, wrapping at 2^32. This uses 16-bit operations internally
+     * to work around bugs in some JS interpreters.
+     */
+    var safe_add = function (x, y) {
+        var lsw = (x & 0xFFFF) + (y & 0xFFFF);
+        var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
+        return (msw << 16) | (lsw & 0xFFFF);
+    };
+
+    /*
+     * Bitwise rotate a 32-bit number to the left.
+     */
+    var bit_rol = function (num, cnt) {
+        return (num << cnt) | (num >>> (32 - cnt));
+    };
+
+    /*
+     * Convert a string to an array of little-endian words
+     * If chrsz is ASCII, characters >255 have their hi-byte silently ignored.
+     */
+    var str2binl = function (str) {
+        var bin = [];
+        var mask = (1 << chrsz) - 1;
+        for(var i = 0; i < str.length * chrsz; i += chrsz)
+        {
+            bin[i>>5] |= (str.charCodeAt(i / chrsz) & mask) << (i%32);
+        }
+        return bin;
+    };
+
+    /*
+     * Convert an array of little-endian words to a string
+     */
+    var binl2str = function (bin) {
+        var str = "";
+        var mask = (1 << chrsz) - 1;
+        for(var i = 0; i < bin.length * 32; i += chrsz)
+        {
+            str += String.fromCharCode((bin[i>>5] >>> (i % 32)) & mask);
+        }
+        return str;
+    };
+
+    /*
+     * Convert an array of little-endian words to a hex string.
+     */
+    var binl2hex = function (binarray) {
+        var hex_tab = hexcase ? "0123456789ABCDEF" : "0123456789abcdef";
+        var str = "";
+        for(var i = 0; i < binarray.length * 4; i++)
+        {
+            str += hex_tab.charAt((binarray[i>>2] >> ((i%4)*8+4)) & 0xF) +
+                hex_tab.charAt((binarray[i>>2] >> ((i%4)*8  )) & 0xF);
+        }
+        return str;
+    };
+
+    /*
+     * Convert an array of little-endian words to a base-64 string
+     */
+    var binl2b64 = function (binarray) {
+        var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
+        var str = "";
+        var triplet, j;
+        for(var i = 0; i < binarray.length * 4; i += 3)
+        {
+            triplet = (((binarray[i   >> 2] >> 8 * ( i   %4)) & 0xFF) << 16) |
+                (((binarray[i+1 >> 2] >> 8 * ((i+1)%4)) & 0xFF) << 8 ) |
+                ((binarray[i+2 >> 2] >> 8 * ((i+2)%4)) & 0xFF);
+            for(j = 0; j < 4; j++)
+            {
+                if(i * 8 + j * 6 > binarray.length * 32) { str += b64pad; }
+                else { str += tab.charAt((triplet >> 6*(3-j)) & 0x3F); }
+            }
+        }
+        return str;
+    };
+
+    /*
+     * These functions implement the four basic operations the algorithm uses.
+     */
+    var md5_cmn = function (q, a, b, x, s, t) {
+        return safe_add(bit_rol(safe_add(safe_add(a, q),safe_add(x, t)), s),b);
+    };
+
+    var md5_ff = function (a, b, c, d, x, s, t) {
+        return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t);
+    };
+
+    var md5_gg = function (a, b, c, d, x, s, t) {
+        return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t);
+    };
+
+    var md5_hh = function (a, b, c, d, x, s, t) {
+        return md5_cmn(b ^ c ^ d, a, b, x, s, t);
+    };
+
+    var md5_ii = function (a, b, c, d, x, s, t) {
+        return md5_cmn(c ^ (b | (~d)), a, b, x, s, t);
+    };
+    
+    /*
+     * Calculate the MD5 of an array of little-endian words, and a bit length
+     */
+    var core_md5 = function (x, len) {
+        /* append padding */
+        x[len >> 5] |= 0x80 << ((len) % 32);
+        x[(((len + 64) >>> 9) << 4) + 14] = len;
+
+        var a =  1732584193;
+        var b = -271733879;
+        var c = -1732584194;
+        var d =  271733878;
+
+        var olda, oldb, oldc, oldd;
+        for (var i = 0; i < x.length; i += 16)
+        {
+            olda = a;
+            oldb = b;
+            oldc = c;
+            oldd = d;
+            
+            a = md5_ff(a, b, c, d, x[i+ 0], 7 , -680876936);
+            d = md5_ff(d, a, b, c, x[i+ 1], 12, -389564586);
+            c = md5_ff(c, d, a, b, x[i+ 2], 17,  606105819);
+            b = md5_ff(b, c, d, a, x[i+ 3], 22, -1044525330);
+            a = md5_ff(a, b, c, d, x[i+ 4], 7 , -176418897);
+            d = md5_ff(d, a, b, c, x[i+ 5], 12,  1200080426);
+            c = md5_ff(c, d, a, b, x[i+ 6], 17, -1473231341);
+            b = md5_ff(b, c, d, a, x[i+ 7], 22, -45705983);
+            a = md5_ff(a, b, c, d, x[i+ 8], 7 ,  1770035416);
+            d = md5_ff(d, a, b, c, x[i+ 9], 12, -1958414417);
+            c = md5_ff(c, d, a, b, x[i+10], 17, -42063);
+            b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162);
+            a = md5_ff(a, b, c, d, x[i+12], 7 ,  1804603682);
+            d = md5_ff(d, a, b, c, x[i+13], 12, -40341101);
+            c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290);
+            b = md5_ff(b, c, d, a, x[i+15], 22,  1236535329);
+            
+            a = md5_gg(a, b, c, d, x[i+ 1], 5 , -165796510);
+            d = md5_gg(d, a, b, c, x[i+ 6], 9 , -1069501632);
+            c = md5_gg(c, d, a, b, x[i+11], 14,  643717713);
+            b = md5_gg(b, c, d, a, x[i+ 0], 20, -373897302);
+            a = md5_gg(a, b, c, d, x[i+ 5], 5 , -701558691);
+            d = md5_gg(d, a, b, c, x[i+10], 9 ,  38016083);
+            c = md5_gg(c, d, a, b, x[i+15], 14, -660478335);
+            b = md5_gg(b, c, d, a, x[i+ 4], 20, -405537848);
+            a = md5_gg(a, b, c, d, x[i+ 9], 5 ,  568446438);
+            d = md5_gg(d, a, b, c, x[i+14], 9 , -1019803690);
+            c = md5_gg(c, d, a, b, x[i+ 3], 14, -187363961);
+            b = md5_gg(b, c, d, a, x[i+ 8], 20,  1163531501);
+            a = md5_gg(a, b, c, d, x[i+13], 5 , -1444681467);
+            d = md5_gg(d, a, b, c, x[i+ 2], 9 , -51403784);
+            c = md5_gg(c, d, a, b, x[i+ 7], 14,  1735328473);
+            b = md5_gg(b, c, d, a, x[i+12], 20, -1926607734);
+            
+            a = md5_hh(a, b, c, d, x[i+ 5], 4 , -378558);
+            d = md5_hh(d, a, b, c, x[i+ 8], 11, -2022574463);
+            c = md5_hh(c, d, a, b, x[i+11], 16,  1839030562);
+            b = md5_hh(b, c, d, a, x[i+14], 23, -35309556);
+            a = md5_hh(a, b, c, d, x[i+ 1], 4 , -1530992060);
+            d = md5_hh(d, a, b, c, x[i+ 4], 11,  1272893353);
+            c = md5_hh(c, d, a, b, x[i+ 7], 16, -155497632);
+            b = md5_hh(b, c, d, a, x[i+10], 23, -1094730640);
+            a = md5_hh(a, b, c, d, x[i+13], 4 ,  681279174);
+            d = md5_hh(d, a, b, c, x[i+ 0], 11, -358537222);
+            c = md5_hh(c, d, a, b, x[i+ 3], 16, -722521979);
+            b = md5_hh(b, c, d, a, x[i+ 6], 23,  76029189);
+            a = md5_hh(a, b, c, d, x[i+ 9], 4 , -640364487);
+            d = md5_hh(d, a, b, c, x[i+12], 11, -421815835);
+            c = md5_hh(c, d, a, b, x[i+15], 16,  530742520);
+            b = md5_hh(b, c, d, a, x[i+ 2], 23, -995338651);
+            
+            a = md5_ii(a, b, c, d, x[i+ 0], 6 , -198630844);
+            d = md5_ii(d, a, b, c, x[i+ 7], 10,  1126891415);
+            c = md5_ii(c, d, a, b, x[i+14], 15, -1416354905);
+            b = md5_ii(b, c, d, a, x[i+ 5], 21, -57434055);
+            a = md5_ii(a, b, c, d, x[i+12], 6 ,  1700485571);
+            d = md5_ii(d, a, b, c, x[i+ 3], 10, -1894986606);
+            c = md5_ii(c, d, a, b, x[i+10], 15, -1051523);
+            b = md5_ii(b, c, d, a, x[i+ 1], 21, -2054922799);
+            a = md5_ii(a, b, c, d, x[i+ 8], 6 ,  1873313359);
+            d = md5_ii(d, a, b, c, x[i+15], 10, -30611744);
+            c = md5_ii(c, d, a, b, x[i+ 6], 15, -1560198380);
+            b = md5_ii(b, c, d, a, x[i+13], 21,  1309151649);
+            a = md5_ii(a, b, c, d, x[i+ 4], 6 , -145523070);
+            d = md5_ii(d, a, b, c, x[i+11], 10, -1120210379);
+            c = md5_ii(c, d, a, b, x[i+ 2], 15,  718787259);
+            b = md5_ii(b, c, d, a, x[i+ 9], 21, -343485551);
+            
+            a = safe_add(a, olda);
+            b = safe_add(b, oldb);
+            c = safe_add(c, oldc);
+            d = safe_add(d, oldd);
+        }
+        return [a, b, c, d];
+    };
+
+
+    /*
+     * Calculate the HMAC-MD5, of a key and some data
+     */
+    var core_hmac_md5 = function (key, data) {
+        var bkey = str2binl(key);
+        if(bkey.length > 16) { bkey = core_md5(bkey, key.length * chrsz); }
+        
+        var ipad = new Array(16), opad = new Array(16);
+        for(var i = 0; i < 16; i++)
+        {
+            ipad[i] = bkey[i] ^ 0x36363636;
+            opad[i] = bkey[i] ^ 0x5C5C5C5C;
+        }
+        
+        var hash = core_md5(ipad.concat(str2binl(data)), 512 + data.length * chrsz);
+        return core_md5(opad.concat(hash), 512 + 128);
+    };
+
+    var obj = {
+        /*
+         * These are the functions you'll usually want to call.
+         * They take string arguments and return either hex or base-64 encoded
+         * strings.
+         */
+        hexdigest: function (s) {
+            return binl2hex(core_md5(str2binl(s), s.length * chrsz));
+        },
+
+        b64digest: function (s) {
+            return binl2b64(core_md5(str2binl(s), s.length * chrsz));
+        },
+
+        hash: function (s) {
+            return binl2str(core_md5(str2binl(s), s.length * chrsz));
+        },
+
+        hmac_hexdigest: function (key, data) {
+            return binl2hex(core_hmac_md5(key, data));
+        },
+
+        hmac_b64digest: function (key, data) {
+            return binl2b64(core_hmac_md5(key, data));
+        },
+
+        hmac_hash: function (key, data) {
+            return binl2str(core_hmac_md5(key, data));
+        },
+
+        /*
+         * Perform a simple self-test to see if the VM is working
+         */
+        test: function () {
+            return MD5.hexdigest("abc") === "900150983cd24fb0d6963f7d28e17f72";
+        }
+    };
+
+    return obj;
+})();
+
+/*
+    This program is distributed under the terms of the MIT license.
+    Please see the LICENSE file for details.
+
+    Copyright 2006-2008, OGG, LLC
+*/
+
+/* jslint configuration: */
+/*global document, window, setTimeout, clearTimeout, console,
+    XMLHttpRequest, ActiveXObject,
+    Base64, MD5,
+    Strophe, $build, $msg, $iq, $pres */
+
+/** File: strophe.js
+ *  A JavaScript library for XMPP BOSH.
+ *
+ *  This is the JavaScript version of the Strophe library.  Since JavaScript
+ *  has no facilities for persistent TCP connections, this library uses
+ *  Bidirectional-streams Over Synchronous HTTP (BOSH) to emulate
+ *  a persistent, stateful, two-way connection to an XMPP server.  More
+ *  information on BOSH can be found in XEP 124.
+ */
+
+/** PrivateFunction: Function.prototype.bind
+ *  Bind a function to an instance.
+ *
+ *  This Function object extension method creates a bound method similar
+ *  to those in Python.  This means that the 'this' object will point
+ *  to the instance you want.  See
+ *  <a href='http://benjamin.smedbergs.us/blog/2007-01-03/bound-functions-and-function-imports-in-javascript/'>Bound Functions and Function Imports in JavaScript</a>
+ *  for a complete explanation.
+ *
+ *  This extension already exists in some browsers (namely, Firefox 3), but
+ *  we provide it to support those that don't.
+ *
+ *  Parameters:
+ *    (Object) obj - The object that will become 'this' in the bound function.
+ *
+ *  Returns:
+ *    The bound function.
+ */
+if (!Function.prototype.bind) {
+    Function.prototype.bind = function (obj)
+    {
+        var func = this;
+        return function () { return func.apply(obj, arguments); };
+    };
+}
+
+/** PrivateFunction: Function.prototype.prependArg
+ *  Prepend an argument to a function.
+ *
+ *  This Function object extension method returns a Function that will
+ *  invoke the original function with an argument prepended.  This is useful
+ *  when some object has a callback that needs to get that same object as
+ *  an argument.  The following fragment illustrates a simple case of this
+ *  > var obj = new Foo(this.someMethod);</code></blockquote>
+ *
+ *  Foo's constructor can now use func.prependArg(this) to ensure the
+ *  passed in callback function gets the instance of Foo as an argument.
+ *  Doing this without prependArg would mean not setting the callback
+ *  from the constructor.
+ *
+ *  This is used inside Strophe for passing the Strophe.Request object to
+ *  the onreadystatechange handler of XMLHttpRequests.
+ *
+ *  Parameters:
+ *    arg - The argument to pass as the first parameter to the function.
+ *
+ *  Returns:
+ *    A new Function which calls the original with the prepended argument.
+ */
+if (!Function.prototype.prependArg) {
+    Function.prototype.prependArg = function (arg)
+    {
+        var func = this;
+
+        return function () {
+            var newargs = [arg];
+            for (var i = 0; i < arguments.length; i++) {
+                newargs.push(arguments[i]);
+            }
+            return func.apply(this, newargs);
+        };
+    };
+}
+
+/** PrivateFunction: Array.prototype.indexOf
+ *  Return the index of an object in an array.
+ *
+ *  This function is not supplied by some JavaScript implementations, so
+ *  we provide it if it is missing.  This code is from:
+ *  http://developer.mozilla.org/En/Core_JavaScript_1.5_Reference:Objects:Array:indexOf
+ *
+ *  Parameters:
+ *    (Object) elt - The object to look for.
+ *    (Integer) from - The index from which to start looking. (optional).
+ *
+ *  Returns:
+ *    The index of elt in the array or -1 if not found.
+ */
+if (!Array.prototype.indexOf)
+{
+    Array.prototype.indexOf = function(elt /*, from*/)
+    {
+        var len = this.length;
+
+        var from = Number(arguments[1]) || 0;
+        from = (from < 0) ? Math.ceil(from) : Math.floor(from);
+        if (from < 0) {
+            from += len;
+        }
+
+        for (; from < len; from++) {
+            if (from in this && this[from] === elt) {
+                return from;
+            }
+        }
+
+        return -1;
+    };
+}
+
+/* All of the Strophe globals are defined in this special function below so
+ * that references to the globals become closures.  This will ensure that
+ * on page reload, these references will still be available to callbacks
+ * that are still executing.
+ */
+
+(function (callback) {
+var Strophe;
+
+/** Function: $build
+ *  Create a Strophe.Builder.
+ *  This is an alias for 'new Strophe.Builder(name, attrs)'.
+ *
+ *  Parameters:
+ *    (String) name - The root element name.
+ *    (Object) attrs - The attributes for the root element in object notation.
+ *
+ *  Returns:
+ *    A new Strophe.Builder object.
+ */
+function $build(name, attrs) { return new Strophe.Builder(name, attrs); }
+/** Function: $msg
+ *  Create a Strophe.Builder with a <message/> element as the root.
+ *
+ *  Parmaeters:
+ *    (Object) attrs - The <message/> element attributes in object notation.
+ *
+ *  Returns:
+ *    A new Strophe.Builder object.
+ */
+function $msg(attrs) { return new Strophe.Builder("message", attrs); }
+/** Function: $iq
+ *  Create a Strophe.Builder with an <iq/> element as the root.
+ *
+ *  Parameters:
+ *    (Object) attrs - The <iq/> element attributes in object notation.
+ *
+ *  Returns:
+ *    A new Strophe.Builder object.
+ */
+function $iq(attrs) { return new Strophe.Builder("iq", attrs); }
+/** Function: $pres
+ *  Create a Strophe.Builder with a <presence/> element as the root.
+ *
+ *  Parameters:
+ *    (Object) attrs - The <presence/> element attributes in object notation.
+ *
+ *  Returns:
+ *    A new Strophe.Builder object.
+ */
+function $pres(attrs) { return new Strophe.Builder("presence", attrs); }
+
+/** Class: Strophe
+ *  An object container for all Strophe library functions.
+ *
+ *  This class is just a container for all the objects and constants
+ *  used in the library.  It is not meant to be instantiated, but to
+ *  provide a namespace for library objects, constants, and functions.
+ */
+Strophe = {
+    /** Constant: VERSION
+     *  The version of the Strophe library. Unreleased builds will have
+     *  a version of head-HASH where HASH is a partial revision.
+     */
+    VERSION: "1.0.1",
+
+    /** Constants: XMPP Namespace Constants
+     *  Common namespace constants from the XMPP RFCs and XEPs.
+     *
+     *  NS.HTTPBIND - HTTP BIND namespace from XEP 124.
+     *  NS.BOSH - BOSH namespace from XEP 206.
+     *  NS.CLIENT - Main XMPP client namespace.
+     *  NS.AUTH - Legacy authentication namespace.
+     *  NS.ROSTER - Roster operations namespace.
+     *  NS.PROFILE - Profile namespace.
+     *  NS.DISCO_INFO - Service discovery info namespace from XEP 30.
+     *  NS.DISCO_ITEMS - Service discovery items namespace from XEP 30.
+     *  NS.MUC - Multi-User Chat namespace from XEP 45.
+     *  NS.SASL - XMPP SASL namespace from RFC 3920.
+     *  NS.STREAM - XMPP Streams namespace from RFC 3920.
+     *  NS.BIND - XMPP Binding namespace from RFC 3920.
+     *  NS.SESSION - XMPP Session namespace from RFC 3920.
+     */
+    NS: {
+        HTTPBIND: "http://jabber.org/protocol/httpbind",
+        BOSH: "urn:xmpp:xbosh",
+        CLIENT: "jabber:client",
+        AUTH: "jabber:iq:auth",
+        ROSTER: "jabber:iq:roster",
+        PROFILE: "jabber:iq:profile",
+        DISCO_INFO: "http://jabber.org/protocol/disco#info",
+        DISCO_ITEMS: "http://jabber.org/protocol/disco#items",
+        MUC: "http://jabber.org/protocol/muc",
+        SASL: "urn:ietf:params:xml:ns:xmpp-sasl",
+        STREAM: "http://etherx.jabber.org/streams",
+        BIND: "urn:ietf:params:xml:ns:xmpp-bind",
+        SESSION: "urn:ietf:params:xml:ns:xmpp-session",
+        VERSION: "jabber:iq:version",
+        STANZAS: "urn:ietf:params:xml:ns:xmpp-stanzas"
+    },
+
+    /** Function: addNamespace 
+     *  This function is used to extend the current namespaces in
+     *	Strophe.NS.  It takes a key and a value with the key being the
+     *	name of the new namespace, with its actual value.
+     *	For example:
+     *	Strophe.addNamespace('PUBSUB', "http://jabber.org/protocol/pubsub");
+     *
+     *  Parameters:
+     *    (String) name - The name under which the namespace will be
+     *      referenced under Strophe.NS
+     *    (String) value - The actual namespace.	
+     */
+    addNamespace: function (name, value)
+    {
+	Strophe.NS[name] = value;
+    },
+
+    /** Constants: Connection Status Constants
+     *  Connection status constants for use by the connection handler
+     *  callback.
+     *
+     *  Status.ERROR - An error has occurred
+     *  Status.CONNECTING - The connection is currently being made
+     *  Status.CONNFAIL - The connection attempt failed
+     *  Status.AUTHENTICATING - The connection is authenticating
+     *  Status.AUTHFAIL - The authentication attempt failed
+     *  Status.CONNECTED - The connection has succeeded
+     *  Status.DISCONNECTED - The connection has been terminated
+     *  Status.DISCONNECTING - The connection is currently being terminated
+     *  Status.ATTACHED - The connection has been attached
+     */
+    Status: {
+        ERROR: 0,
+        CONNECTING: 1,
+        CONNFAIL: 2,
+        AUTHENTICATING: 3,
+        AUTHFAIL: 4,
+        CONNECTED: 5,
+        DISCONNECTED: 6,
+        DISCONNECTING: 7,
+        ATTACHED: 8
+    },
+
+    /** Constants: Log Level Constants
+     *  Logging level indicators.
+     *
+     *  LogLevel.DEBUG - Debug output
+     *  LogLevel.INFO - Informational output
+     *  LogLevel.WARN - Warnings
+     *  LogLevel.ERROR - Errors
+     *  LogLevel.FATAL - Fatal errors
+     */
+    LogLevel: {
+        DEBUG: 0,
+        INFO: 1,
+        WARN: 2,
+        ERROR: 3,
+        FATAL: 4
+    },
+
+    /** PrivateConstants: DOM Element Type Constants
+     *  DOM element types.
+     *
+     *  ElementType.NORMAL - Normal element.
+     *  ElementType.TEXT - Text data element.
+     */
+    ElementType: {
+        NORMAL: 1,
+        TEXT: 3
+    },
+
+    /** PrivateConstants: Timeout Values
+     *  Timeout values for error states.  These values are in seconds.
+     *  These should not be changed unless you know exactly what you are
+     *  doing.
+     *
+     *  TIMEOUT - Timeout multiplier. A waiting request will be considered
+     *      failed after Math.floor(TIMEOUT * wait) seconds have elapsed.
+     *      This defaults to 1.1, and with default wait, 66 seconds.
+     *  SECONDARY_TIMEOUT - Secondary timeout multiplier. In cases where
+     *      Strophe can detect early failure, it will consider the request
+     *      failed if it doesn't return after
+     *      Math.floor(SECONDARY_TIMEOUT * wait) seconds have elapsed.
+     *      This defaults to 0.1, and with default wait, 6 seconds.
+     */
+    TIMEOUT: 1.1,
+    SECONDARY_TIMEOUT: 0.1,
+
+    /** Function: forEachChild
+     *  Map a function over some or all child elements of a given element.
+     *
+     *  This is a small convenience function for mapping a function over
+     *  some or all of the children of an element.  If elemName is null, all
+     *  children will be passed to the function, otherwise only children
+     *  whose tag names match elemName will be passed.
+     *
+     *  Parameters:
+     *    (XMLElement) elem - The element to operate on.
+     *    (String) elemName - The child element tag name filter.
+     *    (Function) func - The function to apply to each child.  This
+     *      function should take a single argument, a DOM element.
+     */
+    forEachChild: function (elem, elemName, func)
+    {
+        var i, childNode;
+
+        for (i = 0; i < elem.childNodes.length; i++) {
+            childNode = elem.childNodes[i];
+            if (childNode.nodeType == Strophe.ElementType.NORMAL &&
+                (!elemName || this.isTagEqual(childNode, elemName))) {
+                func(childNode);
+            }
+        }
+    },
+
+    /** Function: isTagEqual
+     *  Compare an element's tag name with a string.
+     *
+     *  This function is case insensitive.
+     *
+     *  Parameters:
+     *    (XMLElement) el - A DOM element.
+     *    (String) name - The element name.
+     *
+     *  Returns:
+     *    true if the element's tag name matches _el_, and false
+     *    otherwise.
+     */
+    isTagEqual: function (el, name)
+    {
+        return el.tagName.toLowerCase() == name.toLowerCase();
+    },
+
+    /** PrivateVariable: _xmlGenerator
+     *  _Private_ variable that caches a DOM document to
+     *  generate elements.
+     */
+    _xmlGenerator: null,
+
+    /** PrivateFunction: _makeGenerator
+     *  _Private_ function that creates a dummy XML DOM document to serve as
+     *  an element and text node generator.
+     */
+    _makeGenerator: function () {
+        var doc;
+
+        if (window.ActiveXObject) {
+            doc = new ActiveXObject("Microsoft.XMLDOM");
+            doc.appendChild(doc.createElement('strophe'));
+        } else {
+            doc = document.implementation
+                .createDocument('jabber:client', 'strophe', null);
+        }
+
+        return doc;
+    },
+
+    /** Function: xmlElement
+     *  Create an XML DOM element.
+     *
+     *  This function creates an XML DOM element correctly across all
+     *  implementations. Specifically the Microsoft implementation of
+     *  document.createElement makes DOM elements with 43+ default attributes
+     *  unless elements are created with the ActiveX object Microsoft.XMLDOM.
+     *
+     *  Most DOMs force element names to lowercase, so we use the
+     *  _realname attribute on the created element to store the case
+     *  sensitive name.  This is required to generate proper XML for
+     *  things like vCard avatars (XEP 153).  This attribute is stripped
+     *  out before being sent over the wire or serialized, but you may
+     *  notice it during debugging.
+     *
+     *  Parameters:
+     *    (String) name - The name for the element.
+     *    (Array) attrs - An optional array of key/value pairs to use as
+     *      element attributes in the following format [['key1', 'value1'],
+     *      ['key2', 'value2']]
+     *    (String) text - The text child data for the element.
+     *
+     *  Returns:
+     *    A new XML DOM element.
+     */
+    xmlElement: function (name)
+    {
+        if (!name) { return null; }
+
+        var node = null;
+        if (!Strophe._xmlGenerator) {
+            Strophe._xmlGenerator = Strophe._makeGenerator();
+        }
+        node = Strophe._xmlGenerator.createElement(name);
+
+        // FIXME: this should throw errors if args are the wrong type or
+        // there are more than two optional args
+        var a, i, k;
+        for (a = 1; a < arguments.length; a++) {
+            if (!arguments[a]) { continue; }
+            if (typeof(arguments[a]) == "string" ||
+                typeof(arguments[a]) == "number") {
+                node.appendChild(Strophe.xmlTextNode(arguments[a]));
+            } else if (typeof(arguments[a]) == "object" &&
+                       typeof(arguments[a].sort) == "function") {
+                for (i = 0; i < arguments[a].length; i++) {
+                    if (typeof(arguments[a][i]) == "object" &&
+                        typeof(arguments[a][i].sort) == "function") {
+                        node.setAttribute(arguments[a][i][0],
+                                          arguments[a][i][1]);
+                    }
+                }
+            } else if (typeof(arguments[a]) == "object") {
+                for (k in arguments[a]) {
+                    if (arguments[a].hasOwnProperty(k)) {
+                        node.setAttribute(k, arguments[a][k]);
+                    }
+                } 
+            }
+        }
+
+        return node;
+    },
+
+    /*  Function: xmlescape
+     *  Excapes invalid xml characters.
+     *
+     *  Parameters:
+     *     (String) text - text to escape.
+     *
+     *	Returns:
+     *      Escaped text.
+     */
+    xmlescape: function(text) 
+    {
+	text = text.replace(/\&/g, "&amp;");
+        text = text.replace(/</g,  "&lt;");
+        text = text.replace(/>/g,  "&gt;");
+        return text;    
+    },
+
+    /** Function: xmlTextNode
+     *  Creates an XML DOM text node.
+     *
+     *  Provides a cross implementation version of document.createTextNode.
+     *
+     *  Parameters:
+     *    (String) text - The content of the text node.
+     *
+     *  Returns:
+     *    A new XML DOM text node.
+     */
+    xmlTextNode: function (text)
+    {
+	//ensure text is escaped
+	text = Strophe.xmlescape(text);
+
+        if (!Strophe._xmlGenerator) {
+            Strophe._xmlGenerator = Strophe._makeGenerator();
+        }
+        return Strophe._xmlGenerator.createTextNode(text);
+    },
+
+    /** Function: getText
+     *  Get the concatenation of all text children of an element.
+     *
+     *  Parameters:
+     *    (XMLElement) elem - A DOM element.
+     *
+     *  Returns:
+     *    A String with the concatenated text of all text element children.
+     */
+    getText: function (elem)
+    {
+        if (!elem) { return null; }
+
+        var str = "";
+        if (elem.childNodes.length === 0 && elem.nodeType ==
+            Strophe.ElementType.TEXT) {
+            str += elem.nodeValue;
+        }
+
+        for (var i = 0; i < elem.childNodes.length; i++) {
+            if (elem.childNodes[i].nodeType == Strophe.ElementType.TEXT) {
+                str += elem.childNodes[i].nodeValue;
+            }
+        }
+
+        return str;
+    },
+
+    /** Function: copyElement
+     *  Copy an XML DOM element.
+     *
+     *  This function copies a DOM element and all its descendants and returns
+     *  the new copy.
+     *
+     *  Parameters:
+     *    (XMLElement) elem - A DOM element.
+     *
+     *  Returns:
+     *    A new, copied DOM element tree.
+     */
+    copyElement: function (elem)
+    {
+        var i, el;
+        if (elem.nodeType == Strophe.ElementType.NORMAL) {
+            el = Strophe.xmlElement(elem.tagName);
+
+            for (i = 0; i < elem.attributes.length; i++) {
+                el.setAttribute(elem.attributes[i].nodeName.toLowerCase(),
+                                elem.attributes[i].value);
+            }
+
+            for (i = 0; i < elem.childNodes.length; i++) {
+                el.appendChild(Strophe.copyElement(elem.childNodes[i]));
+            }
+        } else if (elem.nodeType == Strophe.ElementType.TEXT) {
+            el = Strophe.xmlTextNode(elem.nodeValue);
+        }
+
+        return el;
+    },
+
+    /** Function: escapeNode
+     *  Escape the node part (also called local part) of a JID.
+     *
+     *  Parameters:
+     *    (String) node - A node (or local part).
+     *
+     *  Returns:
+     *    An escaped node (or local part).
+     */
+    escapeNode: function (node)
+    {
+        return node.replace(/^\s+|\s+$/g, '')
+            .replace(/\\/g,  "\\5c")
+            .replace(/ /g,   "\\20")
+            .replace(/\"/g,  "\\22")
+            .replace(/\&/g,  "\\26")
+            .replace(/\'/g,  "\\27")
+            .replace(/\//g,  "\\2f")
+            .replace(/:/g,   "\\3a")
+            .replace(/</g,   "\\3c")
+            .replace(/>/g,   "\\3e")
+            .replace(/@/g,   "\\40");
+    },
+
+    /** Function: unescapeNode
+     *  Unescape a node part (also called local part) of a JID.
+     *
+     *  Parameters:
+     *    (String) node - A node (or local part).
+     *
+     *  Returns:
+     *    An unescaped node (or local part).
+     */
+    unescapeNode: function (node)
+    {
+        return node.replace(/\\20/g, " ")
+            .replace(/\\22/g, '"')
+            .replace(/\\26/g, "&")
+            .replace(/\\27/g, "'")
+            .replace(/\\2f/g, "/")
+            .replace(/\\3a/g, ":")
+            .replace(/\\3c/g, "<")
+            .replace(/\\3e/g, ">")
+            .replace(/\\40/g, "@")
+            .replace(/\\5c/g, "\\");
+    },
+
+    /** Function: getNodeFromJid
+     *  Get the node portion of a JID String.
+     *
+     *  Parameters:
+     *    (String) jid - A JID.
+     *
+     *  Returns:
+     *    A String containing the node.
+     */
+    getNodeFromJid: function (jid)
+    {
+        if (jid.indexOf("@") < 0) { return null; }
+        return jid.split("@")[0];
+    },
+
+    /** Function: getDomainFromJid
+     *  Get the domain portion of a JID String.
+     *
+     *  Parameters:
+     *    (String) jid - A JID.
+     *
+     *  Returns:
+     *    A String containing the domain.
+     */
+    getDomainFromJid: function (jid)
+    {
+        var bare = Strophe.getBareJidFromJid(jid);
+        if (bare.indexOf("@") < 0) {
+            return bare;
+        } else {
+            var parts = bare.split("@");
+            parts.splice(0, 1);
+            return parts.join('@');
+        }
+    },
+
+    /** Function: getResourceFromJid
+     *  Get the resource portion of a JID String.
+     *
+     *  Parameters:
+     *    (String) jid - A JID.
+     *
+     *  Returns:
+     *    A String containing the resource.
+     */
+    getResourceFromJid: function (jid)
+    {
+        var s = jid.split("/");
+        if (s.length < 2) { return null; }
+        s.splice(0, 1);
+        return s.join('/');
+    },
+
+    /** Function: getBareJidFromJid
+     *  Get the bare JID from a JID String.
+     *
+     *  Parameters:
+     *    (String) jid - A JID.
+     *
+     *  Returns:
+     *    A String containing the bare JID.
+     */
+    getBareJidFromJid: function (jid)
+    {
+        return jid.split("/")[0];
+    },
+
+    /** Function: log
+     *  User overrideable logging function.
+     *
+     *  This function is called whenever the Strophe library calls any
+     *  of the logging functions.  The default implementation of this
+     *  function does nothing.  If client code wishes to handle the logging
+     *  messages, it should override this with
+     *  > Strophe.log = function (level, msg) {
+     *  >   (user code here)
+     *  > };
+     *
+     *  Please note that data sent and received over the wire is logged
+     *  via Strophe.Connection.rawInput() and Strophe.Connection.rawOutput().
+     *
+     *  The different levels and their meanings are
+     *
+     *    DEBUG - Messages useful for debugging purposes.
+     *    INFO - Informational messages.  This is mostly information like
+     *      'disconnect was called' or 'SASL auth succeeded'.
+     *    WARN - Warnings about potential problems.  This is mostly used
+     *      to report transient connection errors like request timeouts.
+     *    ERROR - Some error occurred.
+     *    FATAL - A non-recoverable fatal error occurred.
+     *
+     *  Parameters:
+     *    (Integer) level - The log level of the log message.  This will
+     *      be one of the values in Strophe.LogLevel.
+     *    (String) msg - The log message.
+     */
+    log: function (level, msg)
+    {
+        return;
+    },
+
+    /** Function: debug
+     *  Log a message at the Strophe.LogLevel.DEBUG level.
+     *
+     *  Parameters:
+     *    (String) msg - The log message.
+     */
+    debug: function(msg)
+    {
+        this.log(this.LogLevel.DEBUG, msg);
+    },
+
+    /** Function: info
+     *  Log a message at the Strophe.LogLevel.INFO level.
+     *
+     *  Parameters:
+     *    (String) msg - The log message.
+     */
+    info: function (msg)
+    {
+        this.log(this.LogLevel.INFO, msg);
+    },
+
+    /** Function: warn
+     *  Log a message at the Strophe.LogLevel.WARN level.
+     *
+     *  Parameters:
+     *    (String) msg - The log message.
+     */
+    warn: function (msg)
+    {
+        this.log(this.LogLevel.WARN, msg);
+    },
+
+    /** Function: error
+     *  Log a message at the Strophe.LogLevel.ERROR level.
+     *
+     *  Parameters:
+     *    (String) msg - The log message.
+     */
+    error: function (msg)
+    {
+        this.log(this.LogLevel.ERROR, msg);
+    },
+
+    /** Function: fatal
+     *  Log a message at the Strophe.LogLevel.FATAL level.
+     *
+     *  Parameters:
+     *    (String) msg - The log message.
+     */
+    fatal: function (msg)
+    {
+        this.log(this.LogLevel.FATAL, msg);
+    },
+
+    /** Function: serialize
+     *  Render a DOM element and all descendants to a String.
+     *
+     *  Parameters:
+     *    (XMLElement) elem - A DOM element.
+     *
+     *  Returns:
+     *    The serialized element tree as a String.
+     */
+    serialize: function (elem)
+    {
+        var result;
+
+        if (!elem) { return null; }
+
+        if (typeof(elem.tree) === "function") {
+            elem = elem.tree();
+        }
+
+        var nodeName = elem.nodeName;
+        var i, child;
+
+        if (elem.getAttribute("_realname")) {
+            nodeName = elem.getAttribute("_realname");
+        }
+
+        result = "<" + nodeName;
+        for (i = 0; i < elem.attributes.length; i++) {
+               if(elem.attributes[i].nodeName != "_realname") {
+                 result += " " + elem.attributes[i].nodeName.toLowerCase() +
+                "='" + elem.attributes[i].value
+                    .replace("&", "&amp;")
+                       .replace("'", "&apos;")
+                       .replace("<", "&lt;") + "'";
+               }
+        }
+
+        if (elem.childNodes.length > 0) {
+            result += ">";
+            for (i = 0; i < elem.childNodes.length; i++) {
+                child = elem.childNodes[i];
+                if (child.nodeType == Strophe.ElementType.NORMAL) {
+                    // normal element, so recurse
+                    result += Strophe.serialize(child);
+                } else if (child.nodeType == Strophe.ElementType.TEXT) {
+                    // text element
+                    result += child.nodeValue;
+                }
+            }
+            result += "</" + nodeName + ">";
+        } else {
+            result += "/>";
+        }
+
+        return result;
+    },
+
+    /** PrivateVariable: _requestId
+     *  _Private_ variable that keeps track of the request ids for
+     *  connections.
+     */
+    _requestId: 0,
+
+    /** PrivateVariable: Strophe.connectionPlugins
+     *  _Private_ variable Used to store plugin names that need
+     *  initialization on Strophe.Connection construction.
+     */
+    _connectionPlugins: {},
+
+    /** Function: addConnectionPlugin
+     *  Extends the Strophe.Connection object with the given plugin.
+     *
+     *  Paramaters:
+     *    (String) name - The name of the extension.
+     *    (Object) ptype - The plugin's prototype.
+     */
+    addConnectionPlugin: function (name, ptype)
+    {
+        Strophe._connectionPlugins[name] = ptype;
+    }
+};
+
+/** Class: Strophe.Builder
+ *  XML DOM builder.
+ *
+ *  This object provides an interface similar to JQuery but for building
+ *  DOM element easily and rapidly.  All the functions except for toString()
+ *  and tree() return the object, so calls can be chained.  Here's an
+ *  example using the $iq() builder helper.
+ *  > $iq({to: 'you': from: 'me': type: 'get', id: '1'})
+ *  >     .c('query', {xmlns: 'strophe:example'})
+ *  >     .c('example')
+ *  >     .toString()
+ *  The above generates this XML fragment
+ *  > <iq to='you' from='me' type='get' id='1'>
+ *  >   <query xmlns='strophe:example'>
+ *  >     <example/>
+ *  >   </query>
+ *  > </iq>
+ *  The corresponding DOM manipulations to get a similar fragment would be
+ *  a lot more tedious and probably involve several helper variables.
+ *
+ *  Since adding children makes new operations operate on the child, up()
+ *  is provided to traverse up the tree.  To add two children, do
+ *  > builder.c('child1', ...).up().c('child2', ...)
+ *  The next operation on the Builder will be relative to the second child.
+ */
+
+/** Constructor: Strophe.Builder
+ *  Create a Strophe.Builder object.
+ *
+ *  The attributes should be passed in object notation.  For example
+ *  > var b = new Builder('message', {to: 'you', from: 'me'});
+ *  or
+ *  > var b = new Builder('messsage', {'xml:lang': 'en'});
+ *
+ *  Parameters:
+ *    (String) name - The name of the root element.
+ *    (Object) attrs - The attributes for the root element in object notation.
+ *
+ *  Returns:
+ *    A new Strophe.Builder.
+ */
+Strophe.Builder = function (name, attrs)
+{
+    // Set correct namespace for jabber:client elements
+    if (name == "presence" || name == "message" || name == "iq") {
+        if (attrs && !attrs.xmlns) {
+            attrs.xmlns = Strophe.NS.CLIENT;
+        } else if (!attrs) {
+            attrs = {xmlns: Strophe.NS.CLIENT};
+        }
+    }
+
+    // Holds the tree being built.
+    this.nodeTree = Strophe.xmlElement(name, attrs);
+
+    // Points to the current operation node.
+    this.node = this.nodeTree;
+};
+
+Strophe.Builder.prototype = {
+    /** Function: tree
+     *  Return the DOM tree.
+     *
+     *  This function returns the current DOM tree as an element object.  This
+     *  is suitable for passing to functions like Strophe.Connection.send().
+     *
+     *  Returns:
+     *    The DOM tree as a element object.
+     */
+    tree: function ()
+    {
+        return this.nodeTree;
+    },
+
+    /** Function: toString
+     *  Serialize the DOM tree to a String.
+     *
+     *  This function returns a string serialization of the current DOM
+     *  tree.  It is often used internally to pass data to a
+     *  Strophe.Request object.
+     *
+     *  Returns:
+     *    The serialized DOM tree in a String.
+     */
+    toString: function ()
+    {
+        return Strophe.serialize(this.nodeTree);
+    },
+
+    /** Function: up
+     *  Make the current parent element the new current element.
+     *
+     *  This function is often used after c() to traverse back up the tree.
+     *  For example, to add two children to the same element
+     *  > builder.c('child1', {}).up().c('child2', {});
+     *
+     *  Returns:
+     *    The Stophe.Builder object.
+     */
+    up: function ()
+    {
+        this.node = this.node.parentNode;
+        return this;
+    },
+
+    /** Function: attrs
+     *  Add or modify attributes of the current element.
+     *
+     *  The attributes should be passed in object notation.  This function
+     *  does not move the current element pointer.
+     *
+     *  Parameters:
+     *    (Object) moreattrs - The attributes to add/modify in object notation.
+     *
+     *  Returns:
+     *    The Strophe.Builder object.
+     */
+    attrs: function (moreattrs)
+    {
+        for (var k in moreattrs) {
+            if (moreattrs.hasOwnProperty(k)) {
+                this.node.setAttribute(k, moreattrs[k]);
+            }
+        }
+        return this;
+    },
+
+    /** Function: c
+     *  Add a child to the current element and make it the new current
+     *  element.
+     *
+     *  This function moves the current element pointer to the child.  If you
+     *  need to add another child, it is necessary to use up() to go back
+     *  to the parent in the tree.
+     *
+     *  Parameters:
+     *    (String) name - The name of the child.
+     *    (Object) attrs - The attributes of the child in object notation.
+     *
+     *  Returns:
+     *    The Strophe.Builder object.
+     */
+    c: function (name, attrs)
+    {
+        var child = Strophe.xmlElement(name, attrs);
+        this.node.appendChild(child);
+        this.node = child;
+        return this;
+    },
+
+    /** Function: cnode
+     *  Add a child to the current element and make it the new current
+     *  element.
+     *
+     *  This function is the same as c() except that instead of using a
+     *  name and an attributes object to create the child it uses an
+     *  existing DOM element object.
+     *
+     *  Parameters:
+     *    (XMLElement) elem - A DOM element.
+     *
+     *  Returns:
+     *    The Strophe.Builder object.
+     */
+    cnode: function (elem)
+    {
+        this.node.appendChild(elem);
+        this.node = elem;
+        return this;
+    },
+
+    /** Function: t
+     *  Add a child text element.
+     *
+     *  This *does not* make the child the new current element since there
+     *  are no children of text elements.
+     *
+     *  Parameters:
+     *    (String) text - The text data to append to the current element.
+     *
+     *  Returns:
+     *    The Strophe.Builder object.
+     */
+    t: function (text)
+    {
+        var child = Strophe.xmlTextNode(text);
+        this.node.appendChild(child);
+        return this;
+    }
+};
+
+
+/** PrivateClass: Strophe.Handler
+ *  _Private_ helper class for managing stanza handlers.
+ *
+ *  A Strophe.Handler encapsulates a user provided callback function to be
+ *  executed when matching stanzas are received by the connection.
+ *  Handlers can be either one-off or persistant depending on their
+ *  return value. Returning true will cause a Handler to remain active, and
+ *  returning false will remove the Handler.
+ *
+ *  Users will not use Strophe.Handler objects directly, but instead they
+ *  will use Strophe.Connection.addHandler() and
+ *  Strophe.Connection.deleteHandler().
+ */
+
+/** PrivateConstructor: Strophe.Handler
+ *  Create and initialize a new Strophe.Handler.
+ *
+ *  Parameters:
+ *    (Function) handler - A function to be executed when the handler is run.
+ *    (String) ns - The namespace to match.
+ *    (String) name - The element name to match.
+ *    (String) type - The element type to match.
+ *    (String) id - The element id attribute to match.
+ *    (String) from - The element from attribute to match.
+ *    (Object) options - Handler options
+ *
+ *  Returns:
+ *    A new Strophe.Handler object.
+ */
+Strophe.Handler = function (handler, ns, name, type, id, from, options)
+{
+    this.handler = handler;
+    this.ns = ns;
+    this.name = name;
+    this.type = type;
+    this.id = id;
+    this.options = options || {matchbare: false};
+    
+    // default matchBare to false if undefined
+    if (!this.options.matchBare) {
+        this.options.matchBare = false;
+    }
+
+    if (this.options.matchBare) {
+        this.from = Strophe.getBareJidFromJid(from);
+    } else {
+        this.from = from;
+    }
+
+    // whether the handler is a user handler or a system handler
+    this.user = true;
+};
+
+Strophe.Handler.prototype = {
+    /** PrivateFunction: isMatch
+     *  Tests if a stanza matches the Strophe.Handler.
+     *
+     *  Parameters:
+     *    (XMLElement) elem - The XML element to test.
+     *
+     *  Returns:
+     *    true if the stanza matches and false otherwise.
+     */
+    isMatch: function (elem)
+    {
+        var nsMatch;
+        var from = null;
+        
+        if (this.options.matchBare) {
+            from = Strophe.getBareJidFromJid(elem.getAttribute('from'));
+        } else {
+            from = elem.getAttribute('from');
+        }
+
+        nsMatch = false;
+        if (!this.ns) {
+            nsMatch = true;
+        } else {
+            var self = this;
+            Strophe.forEachChild(elem, null, function (elem) {
+                if (elem.getAttribute("xmlns") == self.ns) {
+                    nsMatch = true;
+                }
+            });
+
+            nsMatch = nsMatch || elem.getAttribute("xmlns") == this.ns;
+        }
+
+        if (nsMatch &&
+            (!this.name || Strophe.isTagEqual(elem, this.name)) &&
+            (!this.type || elem.getAttribute("type") === this.type) &&
+            (!this.id || elem.getAttribute("id") === this.id) &&
+            (!this.from || from === this.from)) {
+                return true;
+        }
+
+        return false;
+    },
+
+    /** PrivateFunction: run
+     *  Run the callback on a matching stanza.
+     *
+     *  Parameters:
+     *    (XMLElement) elem - The DOM element that triggered the
+     *      Strophe.Handler.
+     *
+     *  Returns:
+     *    A boolean indicating if the handler should remain active.
+     */
+    run: function (elem)
+    {
+        var result = null;
+        try {
+            result = this.handler(elem);
+        } catch (e) {
+            if (e.sourceURL) {
+                Strophe.fatal("error: " + this.handler +
+                              " " + e.sourceURL + ":" +
+                              e.line + " - " + e.name + ": " + e.message);
+            } else if (e.fileName) {
+                if (typeof(console) != "undefined") {
+                    console.trace();
+                    console.error(this.handler, " - error - ", e, e.message);
+                }
+                Strophe.fatal("error: " + this.handler + " " +
+                              e.fileName + ":" + e.lineNumber + " - " +
+                              e.name + ": " + e.message);
+            } else {
+                Strophe.fatal("error: " + this.handler);
+            }
+
+            throw e;
+        }
+
+        return result;
+    },
+
+    /** PrivateFunction: toString
+     *  Get a String representation of the Strophe.Handler object.
+     *
+     *  Returns:
+     *    A String.
+     */
+    toString: function ()
+    {
+        return "{Handler: " + this.handler + "(" + this.name + "," +
+            this.id + "," + this.ns + ")}";
+    }
+};
+
+/** PrivateClass: Strophe.TimedHandler
+ *  _Private_ helper class for managing timed handlers.
+ *
+ *  A Strophe.TimedHandler encapsulates a user provided callback that
+ *  should be called after a certain period of time or at regular
+ *  intervals.  The return value of the callback determines whether the
+ *  Strophe.TimedHandler will continue to fire.
+ *
+ *  Users will not use Strophe.TimedHandler objects directly, but instead
+ *  they will use Strophe.Connection.addTimedHandler() and
+ *  Strophe.Connection.deleteTimedHandler().
+ */
+
+/** PrivateConstructor: Strophe.TimedHandler
+ *  Create and initialize a new Strophe.TimedHandler object.
+ *
+ *  Parameters:
+ *    (Integer) period - The number of milliseconds to wait before the
+ *      handler is called.
+ *    (Function) handler - The callback to run when the handler fires.  This
+ *      function should take no arguments.
+ *
+ *  Returns:
+ *    A new Strophe.TimedHandler object.
+ */
+Strophe.TimedHandler = function (period, handler)
+{
+    this.period = period;
+    this.handler = handler;
+
+    this.lastCalled = new Date().getTime();
+    this.user = true;
+};
+
+Strophe.TimedHandler.prototype = {
+    /** PrivateFunction: run
+     *  Run the callback for the Strophe.TimedHandler.
+     *
+     *  Returns:
+     *    true if the Strophe.TimedHandler should be called again, and false
+     *      otherwise.
+     */
+    run: function ()
+    {
+        this.lastCalled = new Date().getTime();
+        return this.handler();
+    },
+
+    /** PrivateFunction: reset
+     *  Reset the last called time for the Strophe.TimedHandler.
+     */
+    reset: function ()
+    {
+        this.lastCalled = new Date().getTime();
+    },
+
+    /** PrivateFunction: toString
+     *  Get a string representation of the Strophe.TimedHandler object.
+     *
+     *  Returns:
+     *    The string representation.
+     */
+    toString: function ()
+    {
+        return "{TimedHandler: " + this.handler + "(" + this.period +")}";
+    }
+};
+
+/** PrivateClass: Strophe.Request
+ *  _Private_ helper class that provides a cross implementation abstraction
+ *  for a BOSH related XMLHttpRequest.
+ *
+ *  The Strophe.Request class is used internally to encapsulate BOSH request
+ *  information.  It is not meant to be used from user's code.
+ */
+
+/** PrivateConstructor: Strophe.Request
+ *  Create and initialize a new Strophe.Request object.
+ *
+ *  Parameters:
+ *    (XMLElement) elem - The XML data to be sent in the request.
+ *    (Function) func - The function that will be called when the
+ *      XMLHttpRequest readyState changes.
+ *    (Integer) rid - The BOSH rid attribute associated with this request.
+ *    (Integer) sends - The number of times this same request has been
+ *      sent.
+ */
+Strophe.Request = function (elem, func, rid, sends)
+{
+    this.id = ++Strophe._requestId;
+    this.xmlData = elem;
+    this.data = Strophe.serialize(elem);
+    // save original function in case we need to make a new request
+    // from this one.
+    this.origFunc = func;
+    this.func = func;
+    this.rid = rid;
+    this.date = NaN;
+    this.sends = sends || 0;
+    this.abort = false;
+    this.dead = null;
+    this.age = function () {
+        if (!this.date) { return 0; }
+        var now = new Date();
+        return (now - this.date) / 1000;
+    };
+    this.timeDead = function () {
+        if (!this.dead) { return 0; }
+        var now = new Date();
+        return (now - this.dead) / 1000;
+    };
+    this.xhr = this._newXHR();
+};
+
+Strophe.Request.prototype = {
+    /** PrivateFunction: getResponse
+     *  Get a response from the underlying XMLHttpRequest.
+     *
+     *  This function attempts to get a response from the request and checks
+     *  for errors.
+     *
+     *  Throws:
+     *    "parsererror" - A parser error occured.
+     *
+     *  Returns:
+     *    The DOM element tree of the response.
+     */
+    getResponse: function ()
+    {
+        var node = null;
+        if (this.xhr.responseXML && this.xhr.responseXML.documentElement) {
+            node = this.xhr.responseXML.documentElement;
+            if (node.tagName == "parsererror") {
+                Strophe.error("invalid response received");
+                Strophe.error("responseText: " + this.xhr.responseText);
+                Strophe.error("responseXML: " +
+                              Strophe.serialize(this.xhr.responseXML));
+                throw "parsererror";
+            }
+        } else if (this.xhr.responseText) {
+            Strophe.error("invalid response received");
+            Strophe.error("responseText: " + this.xhr.responseText);
+            Strophe.error("responseXML: " +
+                          Strophe.serialize(this.xhr.responseXML));
+        }
+
+        return node;
+    },
+
+    /** PrivateFunction: _newXHR
+     *  _Private_ helper function to create XMLHttpRequests.
+     *
+     *  This function creates XMLHttpRequests across all implementations.
+     *
+     *  Returns:
+     *    A new XMLHttpRequest.
+     */
+    _newXHR: function ()
+    {
+        var xhr = null;
+        if (window.XMLHttpRequest) {
+            xhr = new XMLHttpRequest();
+            if (xhr.overrideMimeType) {
+                xhr.overrideMimeType("text/xml");
+            }
+        } else if (window.ActiveXObject) {
+            xhr = new ActiveXObject("Microsoft.XMLHTTP");
+        }
+
+        xhr.onreadystatechange = this.func.prependArg(this);
+
+        return xhr;
+    }
+};
+
+/** Class: Strophe.Connection
+ *  XMPP Connection manager.
+ *
+ *  Thie class is the main part of Strophe.  It manages a BOSH connection
+ *  to an XMPP server and dispatches events to the user callbacks as
+ *  data arrives.  It supports SASL PLAIN, SASL DIGEST-MD5, and legacy
+ *  authentication.
+ *
+ *  After creating a Strophe.Connection object, the user will typically
+ *  call connect() with a user supplied callback to handle connection level
+ *  events like authentication failure, disconnection, or connection
+ *  complete.
+ *
+ *  The user will also have several event handlers defined by using
+ *  addHandler() and addTimedHandler().  These will allow the user code to
+ *  respond to interesting stanzas or do something periodically with the
+ *  connection.  These handlers will be active once authentication is
+ *  finished.
+ *
+ *  To send data to the connection, use send().
+ */
+
+/** Constructor: Strophe.Connection
+ *  Create and initialize a Strophe.Connection object.
+ *
+ *  Parameters:
+ *    (String) service - The BOSH service URL.
+ *
+ *  Returns:
+ *    A new Strophe.Connection object.
+ */
+Strophe.Connection = function (service)
+{
+    /* The path to the httpbind service. */
+    this.service = service;
+    /* The connected JID. */
+    this.jid = "";
+    /* request id for body tags */
+    this.rid = Math.floor(Math.random() * 4294967295);
+    /* The current session ID. */
+    this.sid = null;
+    this.streamId = null;
+
+    // SASL
+    this.do_session = false;
+    this.do_bind = false;
+
+    // handler lists
+    this.timedHandlers = [];
+    this.handlers = [];
+    this.removeTimeds = [];
+    this.removeHandlers = [];
+    this.addTimeds = [];
+    this.addHandlers = [];
+
+    this._idleTimeout = null;
+    this._disconnectTimeout = null;
+
+    this.authenticated = false;
+    this.disconnecting = false;
+    this.connected = false;
+
+    this.errors = 0;
+
+    this.paused = false;
+
+    // default BOSH values
+    this.hold = 1;
+    this.wait = 60;
+    this.window = 5;
+
+    this._data = [];
+    this._requests = [];
+    this._uniqueId = Math.round(Math.random() * 10000);
+
+    this._sasl_success_handler = null;
+    this._sasl_failure_handler = null;
+    this._sasl_challenge_handler = null;
+
+    // setup onIdle callback every 1/10th of a second
+    this._idleTimeout = setTimeout(this._onIdle.bind(this), 100);
+
+    // initialize plugins
+    for (var k in Strophe._connectionPlugins) {
+        if (Strophe._connectionPlugins.hasOwnProperty(k)) {
+	    var ptype = Strophe._connectionPlugins[k];
+            // jslint complaints about the below line, but this is fine
+            var F = function () {};
+            F.prototype = ptype;
+            this[k] = new F();
+	    this[k].init(this);
+        }
+    }
+};
+
+Strophe.Connection.prototype = {
+    /** Function: reset
+     *  Reset the connection.
+     *
+     *  This function should be called after a connection is disconnected
+     *  before that connection is reused.
+     */
+    reset: function ()
+    {
+        this.rid = Math.floor(Math.random() * 4294967295);
+
+        this.sid = null;
+        this.streamId = null;
+
+        // SASL
+        this.do_session = false;
+        this.do_bind = false;
+
+        // handler lists
+        this.timedHandlers = [];
+        this.handlers = [];
+        this.removeTimeds = [];
+        this.removeHandlers = [];
+        this.addTimeds = [];
+        this.addHandlers = [];
+
+        this.authenticated = false;
+        this.disconnecting = false;
+        this.connected = false;
+
+        this.errors = 0;
+
+        this._requests = [];
+        this._uniqueId = Math.round(Math.random()*10000);
+    },
+
+    /** Function: pause
+     *  Pause the request manager.
+     *
+     *  This will prevent Strophe from sending any more requests to the
+     *  server.  This is very useful for temporarily pausing while a lot
+     *  of send() calls are happening quickly.  This causes Strophe to
+     *  send the data in a single request, saving many request trips.
+     */
+    pause: function ()
+    {
+        this.paused = true;
+    },
+
+    /** Function: resume
+     *  Resume the request manager.
+     *
+     *  This resumes after pause() has been called.
+     */
+    resume: function ()
+    {
+        this.paused = false;
+    },
+
+    /** Function: getUniqueId
+     *  Generate a unique ID for use in <iq/> elements.
+     *
+     *  All <iq/> stanzas are required to have unique id attributes.  This
+     *  function makes creating these easy.  Each connection instance has
+     *  a counter which starts from zero, and the value of this counter
+     *  plus a colon followed by the suffix becomes the unique id. If no
+     *  suffix is supplied, the counter is used as the unique id.
+     *
+     *  Suffixes are used to make debugging easier when reading the stream
+     *  data, and their use is recommended.  The counter resets to 0 for
+     *  every new connection for the same reason.  For connections to the
+     *  same server that authenticate the same way, all the ids should be
+     *  the same, which makes it easy to see changes.  This is useful for
+     *  automated testing as well.
+     *
+     *  Parameters:
+     *    (String) suffix - A optional suffix to append to the id.
+     *
+     *  Returns:
+     *    A unique string to be used for the id attribute.
+     */
+    getUniqueId: function (suffix)
+    {
+        if (typeof(suffix) == "string" || typeof(suffix) == "number") {
+            return ++this._uniqueId + ":" + suffix;
+        } else {
+            return ++this._uniqueId + "";
+        }
+    },
+
+    /** Function: connect
+     *  Starts the connection process.
+     *
+     *  As the connection process proceeds, the user supplied callback will
+     *  be triggered multiple times with status updates.  The callback
+     *  should take two arguments - the status code and the error condition.
+     *
+     *  The status code will be one of the values in the Strophe.Status
+     *  constants.  The error condition will be one of the conditions
+     *  defined in RFC 3920 or the condition 'strophe-parsererror'.
+     *
+     *  Please see XEP 124 for a more detailed explanation of the optional
+     *  parameters below.
+     *
+     *  Parameters:
+     *    (String) jid - The user's JID.  This may be a bare JID,
+     *      or a full JID.  If a node is not supplied, SASL ANONYMOUS
+     *      authentication will be attempted.
+     *    (String) pass - The user's password.
+     *    (Function) callback The connect callback function.
+     *    (Integer) wait - The optional HTTPBIND wait value.  This is the
+     *      time the server will wait before returning an empty result for
+     *      a request.  The default setting of 60 seconds is recommended.
+     *      Other settings will require tweaks to the Strophe.TIMEOUT value.
+     *    (Integer) hold - The optional HTTPBIND hold value.  This is the
+     *      number of connections the server will hold at one time.  This
+     *      should almost always be set to 1 (the default).
+     */
+    connect: function (jid, pass, callback, wait, hold)
+    {
+        this.jid = jid;
+        this.pass = pass;
+        this.connect_callback = callback;
+        this.disconnecting = false;
+        this.connected = false;
+        this.authenticated = false;
+        this.errors = 0;
+
+        this.wait = wait || this.wait;
+        this.hold = hold || this.hold;
+
+        // parse jid for domain and resource
+        this.domain = Strophe.getDomainFromJid(this.jid);
+
+        // build the body tag
+        var body = this._buildBody().attrs({
+            to: this.domain,
+            "xml:lang": "en",
+            wait: this.wait,
+            hold: this.hold,
+            content: "text/xml; charset=utf-8",
+            ver: "1.6",
+            "xmpp:version": "1.0",
+            "xmlns:xmpp": Strophe.NS.BOSH
+        });
+
+        this._changeConnectStatus(Strophe.Status.CONNECTING, null);
+
+        this._requests.push(
+            new Strophe.Request(body.tree(),
+                                this._onRequestStateChange.bind(this)
+                                    .prependArg(this._connect_cb.bind(this)),
+                                body.tree().getAttribute("rid")));
+        this._throttledRequestHandler();
+    },
+
+    /** Function: attach
+     *  Attach to an already created and authenticated BOSH session.
+     *
+     *  This function is provided to allow Strophe to attach to BOSH
+     *  sessions which have been created externally, perhaps by a Web
+     *  application.  This is often used to support auto-login type features
+     *  without putting user credentials into the page.
+     *
+     *  Parameters:
+     *    (String) jid - The full JID that is bound by the session.
+     *    (String) sid - The SID of the BOSH session.
+     *    (String) rid - The current RID of the BOSH session.  This RID
+     *      will be used by the next request.
+     *    (Function) callback The connect callback function.
+     *    (Integer) wait - The optional HTTPBIND wait value.  This is the
+     *      time the server will wait before returning an empty result for
+     *      a request.  The default setting of 60 seconds is recommended.
+     *      Other settings will require tweaks to the Strophe.TIMEOUT value.
+     *    (Integer) hold - The optional HTTPBIND hold value.  This is the
+     *      number of connections the server will hold at one time.  This
+     *      should almost always be set to 1 (the default).
+     *    (Integer) wind - The optional HTTBIND window value.  This is the
+     *      allowed range of request ids that are valid.  The default is 5.
+     */
+    attach: function (jid, sid, rid, callback, wait, hold, wind)
+    {
+        this.jid = jid;
+        this.sid = sid;
+        this.rid = rid;
+        this.connect_callback = callback;
+
+        this.domain = Strophe.getDomainFromJid(this.jid);
+
+        this.authenticated = true;
+        this.connected = true;
+
+        this.wait = wait || this.wait;
+        this.hold = hold || this.hold;
+        this.window = wind || this.window;
+
+        this._changeConnectStatus(Strophe.Status.ATTACHED, null);
+    },
+
+    /** Function: xmlInput
+     *  User overrideable function that receives XML data coming into the
+     *  connection.
+     *
+     *  The default function does nothing.  User code can override this with
+     *  > Strophe.Connection.xmlInput = function (elem) {
+     *  >   (user code)
+     *  > };
+     *
+     *  Parameters:
+     *    (XMLElement) elem - The XML data received by the connection.
+     */
+    xmlInput: function (elem)
+    {
+        return;
+    },
+
+    /** Function: xmlOutput
+     *  User overrideable function that receives XML data sent to the
+     *  connection.
+     *
+     *  The default function does nothing.  User code can override this with
+     *  > Strophe.Connection.xmlOutput = function (elem) {
+     *  >   (user code)
+     *  > };
+     *
+     *  Parameters:
+     *    (XMLElement) elem - The XMLdata sent by the connection.
+     */
+    xmlOutput: function (elem)
+    {
+        return;
+    },
+
+    /** Function: rawInput
+     *  User overrideable function that receives raw data coming into the
+     *  connection.
+     *
+     *  The default function does nothing.  User code can override this with
+     *  > Strophe.Connection.rawInput = function (data) {
+     *  >   (user code)
+     *  > };
+     *
+     *  Parameters:
+     *    (String) data - The data received by the connection.
+     */
+    rawInput: function (data)
+    {
+        return;
+    },
+
+    /** Function: rawOutput
+     *  User overrideable function that receives raw data sent to the
+     *  connection.
+     *
+     *  The default function does nothing.  User code can override this with
+     *  > Strophe.Connection.rawOutput = function (data) {
+     *  >   (user code)
+     *  > };
+     *
+     *  Parameters:
+     *    (String) data - The data sent by the connection.
+     */
+    rawOutput: function (data)
+    {
+        return;
+    },
+
+    /** Function: send
+     *  Send a stanza.
+     *
+     *  This function is called to push data onto the send queue to
+     *  go out over the wire.  Whenever a request is sent to the BOSH
+     *  server, all pending data is sent and the queue is flushed.
+     *
+     *  Parameters:
+     *    (XMLElement |
+     *     [XMLElement] |
+     *     Strophe.Builder) elem - The stanza to send.
+     */
+    send: function (elem)
+    {
+        if (elem === null) { return ; }
+        if (typeof(elem.sort) === "function") {
+            for (var i = 0; i < elem.length; i++) {
+                this._queueData(elem[i]);
+            }
+        } else if (typeof(elem.tree) === "function") {
+            this._queueData(elem.tree());
+        } else {
+            this._queueData(elem);
+        }
+
+        this._throttledRequestHandler();
+        clearTimeout(this._idleTimeout);
+        this._idleTimeout = setTimeout(this._onIdle.bind(this), 100);
+    },
+
+    /** Function: flush
+     *  Immediately send any pending outgoing data.
+     *  
+     *  Normally send() queues outgoing data until the next idle period
+     *  (100ms), which optimizes network use in the common cases when
+     *  several send()s are called in succession. flush() can be used to 
+     *  immediately send all pending data.
+     */
+    flush: function ()
+    {
+        // cancel the pending idle period and run the idle function
+        // immediately
+        clearTimeout(this._idleTimeout);
+        this._onIdle();
+    },
+
+    /** Function: sendIQ
+     *  Helper function to send IQ stanzas.
+     *
+     *  Parameters:
+     *    (XMLElement) elem - The stanza to send.
+     *    (Function) callback - The callback function for a successful request.
+     *    (Function) errback - The callback function for a failed or timed 
+     *      out request.  On timeout, the stanza will be null.
+     *    (Integer) timeout - The time specified in milliseconds for a 
+     *      timeout to occur.
+     *
+     *  Returns:
+     *    The id used to send the IQ.
+    */
+    sendIQ: function(elem, callback, errback, timeout) {
+        var timeoutHandler = null;
+        var that = this;
+
+        if (typeof(elem.tree) === "function") {
+            elem = elem.tree();
+        }
+	var id = elem.getAttribute('id');
+
+	// inject id if not found
+	if (!id) {
+	    id = this.getUniqueId("sendIQ");
+	    elem.setAttribute("id", id);
+	}
+
+	var handler = this.addHandler(function (stanza) {
+	    // remove timeout handler if there is one
+            if (timeoutHandler) {
+                that.deleteTimedHandler(timeoutHandler);
+            }
+
+            var iqtype = stanza.getAttribute('type');
+	    if (iqtype === 'result') {
+		if (callback) {
+                    callback(stanza);
+                }
+	    } else if (iqtype === 'error') {
+		if (errback) {
+                    errback(stanza);
+                }
+	    } else {
+                throw {
+                    name: "StropheError",
+                    message: "Got bad IQ type of " + iqtype
+                };
+            }
+	}, null, 'iq', null, id);
+
+	// if timeout specified, setup timeout handler.
+	if (timeout) {
+	    timeoutHandler = this.addTimedHandler(timeout, function () {
+                // get rid of normal handler
+                that.deleteHandler(handler);
+
+	        // call errback on timeout with null stanza
+                if (errback) {
+		    errback(null);
+                }
+		return false;
+	    });
+	}
+
+	this.send(elem);
+
+	return id;
+    },
+
+    /** PrivateFunction: _queueData
+     *  Queue outgoing data for later sending.  Also ensures that the data
+     *  is a DOMElement.
+     */
+    _queueData: function (element) {
+        if (element === null ||
+            !element.tagName ||
+            !element.childNodes) {
+            throw {
+                name: "StropheError",
+                message: "Cannot queue non-DOMElement."
+            };
+        }
+        
+        this._data.push(element);
+    },
+
+    /** PrivateFunction: _sendRestart
+     *  Send an xmpp:restart stanza.
+     */
+    _sendRestart: function ()
+    {
+        this._data.push("restart");
+
+        this._throttledRequestHandler();
+        clearTimeout(this._idleTimeout);
+        this._idleTimeout = setTimeout(this._onIdle.bind(this), 100);
+    },
+
+    /** Function: addTimedHandler
+     *  Add a timed handler to the connection.
+     *
+     *  This function adds a timed handler.  The provided handler will
+     *  be called every period milliseconds until it returns false,
+     *  the connection is terminated, or the handler is removed.  Handlers
+     *  that wish to continue being invoked should return true.
+     *
+     *  Because of method binding it is necessary to save the result of
+     *  this function if you wish to remove a handler with
+     *  deleteTimedHandler().
+     *
+     *  Note that user handlers are not active until authentication is
+     *  successful.
+     *
+     *  Parameters:
+     *    (Integer) period - The period of the handler.
+     *    (Function) handler - The callback function.
+     *
+     *  Returns:
+     *    A reference to the handler that can be used to remove it.
+     */
+    addTimedHandler: function (period, handler)
+    {
+        var thand = new Strophe.TimedHandler(period, handler);
+        this.addTimeds.push(thand);
+        return thand;
+    },
+
+    /** Function: deleteTimedHandler
+     *  Delete a timed handler for a connection.
+     *
+     *  This function removes a timed handler from the connection.  The
+     *  handRef parameter is *not* the function passed to addTimedHandler(),
+     *  but is the reference returned from addTimedHandler().
+     *
+     *  Parameters:
+     *    (Strophe.TimedHandler) handRef - The handler reference.
+     */
+    deleteTimedHandler: function (handRef)
+    {
+        // this must be done in the Idle loop so that we don't change
+        // the handlers during iteration
+        this.removeTimeds.push(handRef);
+    },
+
+    /** Function: addHandler
+     *  Add a stanza handler for the connection.
+     *
+     *  This function adds a stanza handler to the connection.  The
+     *  handler callback will be called for any stanza that matches
+     *  the parameters.  Note that if multiple parameters are supplied,
+     *  they must all match for the handler to be invoked.
+     *
+     *  The handler will receive the stanza that triggered it as its argument.
+     *  The handler should return true if it is to be invoked again;
+     *  returning false will remove the handler after it returns.
+     *
+     *  As a convenience, the ns parameters applies to the top level element
+     *  and also any of its immediate children.  This is primarily to make
+     *  matching /iq/query elements easy.
+     *
+     *  The options argument contains handler matching flags that affect how
+     *  matches are determined. Currently the only flag is matchBare (a
+     *  boolean). When matchBare is true, the from parameter and the from
+     *  attribute on the stanza will be matched as bare JIDs instead of
+     *  full JIDs. To use this, pass {matchBare: true} as the value of
+     *  options. The default value for matchBare is false. 
+     *
+     *  The return value should be saved if you wish to remove the handler
+     *  with deleteHandler().
+     *
+     *  Parameters:
+     *    (Function) handler - The user callback.
+     *    (String) ns - The namespace to match.
+     *    (String) name - The stanza name to match.
+     *    (String) type - The stanza type attribute to match.
+     *    (String) id - The stanza id attribute to match.
+     *    (String) from - The stanza from attribute to match.
+     *    (String) options - The handler options
+     *
+     *  Returns:
+     *    A reference to the handler that can be used to remove it.
+     */
+    addHandler: function (handler, ns, name, type, id, from, options)
+    {
+        var hand = new Strophe.Handler(handler, ns, name, type, id, from, options);
+        this.addHandlers.push(hand);
+        return hand;
+    },
+
+    /** Function: deleteHandler
+     *  Delete a stanza handler for a connection.
+     *
+     *  This function removes a stanza handler from the connection.  The
+     *  handRef parameter is *not* the function passed to addHandler(),
+     *  but is the reference returned from addHandler().
+     *
+     *  Parameters:
+     *    (Strophe.Handler) handRef - The handler reference.
+     */
+    deleteHandler: function (handRef)
+    {
+        // this must be done in the Idle loop so that we don't change
+        // the handlers during iteration
+        this.removeHandlers.push(handRef);
+    },
+
+    /** Function: disconnect
+     *  Start the graceful disconnection process.
+     *
+     *  This function starts the disconnection process.  This process starts
+     *  by sending unavailable presence and sending BOSH body of type
+     *  terminate.  A timeout handler makes sure that disconnection happens
+     *  even if the BOSH server does not respond.
+     *
+     *  The user supplied connection callback will be notified of the
+     *  progress as this process happens.
+     *
+     *  Parameters:
+     *    (String) reason - The reason the disconnect is occuring.
+     */
+    disconnect: function (reason)
+    {
+        this._changeConnectStatus(Strophe.Status.DISCONNECTING, reason);
+
+        Strophe.info("Disconnect was called because: " + reason);
+        if (this.connected) {
+            // setup timeout handler
+            this._disconnectTimeout = this._addSysTimedHandler(
+                3000, this._onDisconnectTimeout.bind(this));
+            this._sendTerminate();
+        }
+    },
+
+    /** PrivateFunction: _changeConnectStatus
+     *  _Private_ helper function that makes sure plugins and the user's
+     *  callback are notified of connection status changes.
+     *
+     *  Parameters:
+     *    (Integer) status - the new connection status, one of the values
+     *      in Strophe.Status
+     *    (String) condition - the error condition or null
+     */
+    _changeConnectStatus: function (status, condition)
+    {
+        // notify all plugins listening for status changes
+        for (var k in Strophe._connectionPlugins) {
+            if (Strophe._connectionPlugins.hasOwnProperty(k)) {
+                var plugin = this[k];
+                if (plugin.statusChanged) {
+                    try {
+                        plugin.statusChanged(status, condition);
+                    } catch (err) {
+                        Strophe.error("" + k + " plugin caused an exception " +
+                                      "changing status: " + err);
+                    }
+                }
+            }
+        }
+
+        // notify the user's callback
+        if (this.connect_callback) {
+            try {
+                this.connect_callback(status, condition);
+            } catch (e) {
+                Strophe.error("User connection callback caused an " +
+                              "exception: " + e);
+            }
+        }
+    },
+
+    /** PrivateFunction: _buildBody
+     *  _Private_ helper function to generate the <body/> wrapper for BOSH.
+     *
+     *  Returns:
+     *    A Strophe.Builder with a <body/> element.
+     */
+    _buildBody: function ()
+    {
+        var bodyWrap = $build('body', {
+            rid: this.rid++,
+            xmlns: Strophe.NS.HTTPBIND
+        });
+
+        if (this.sid !== null) {
+            bodyWrap.attrs({sid: this.sid});
+        }
+
+        return bodyWrap;
+    },
+
+    /** PrivateFunction: _removeRequest
+     *  _Private_ function to remove a request from the queue.
+     *
+     *  Parameters:
+     *    (Strophe.Request) req - The request to remove.
+     */
+    _removeRequest: function (req)
+    {
+        Strophe.debug("removing request");
+
+        var i;
+        for (i = this._requests.length - 1; i >= 0; i--) {
+            if (req == this._requests[i]) {
+                this._requests.splice(i, 1);
+            }
+        }
+
+        // IE6 fails on setting to null, so set to empty function
+        req.xhr.onreadystatechange = function () {};
+
+        this._throttledRequestHandler();
+    },
+
+    /** PrivateFunction: _restartRequest
+     *  _Private_ function to restart a request that is presumed dead.
+     *
+     *  Parameters:
+     *    (Integer) i - The index of the request in the queue.
+     */
+    _restartRequest: function (i)
+    {
+        var req = this._requests[i];
+        if (req.dead === null) {
+            req.dead = new Date();
+        }
+
+        this._processRequest(i);
+    },
+
+    /** PrivateFunction: _processRequest
+     *  _Private_ function to process a request in the queue.
+     *
+     *  This function takes requests off the queue and sends them and
+     *  restarts dead requests.
+     *
+     *  Parameters:
+     *    (Integer) i - The index of the request in the queue.
+     */
+    _processRequest: function (i)
+    {
+        var req = this._requests[i];
+        var reqStatus = -1;
+
+        try {
+            if (req.xhr.readyState == 4) {
+                reqStatus = req.xhr.status;
+            }
+        } catch (e) {
+            Strophe.error("caught an error in _requests[" + i +
+                          "], reqStatus: " + reqStatus);
+        }
+
+        if (typeof(reqStatus) == "undefined") {
+            reqStatus = -1;
+        }
+
+        var time_elapsed = req.age();
+        var primaryTimeout = (!isNaN(time_elapsed) &&
+                              time_elapsed > Math.floor(Strophe.TIMEOUT * this.wait));
+        var secondaryTimeout = (req.dead !== null &&
+                                req.timeDead() > Math.floor(Strophe.SECONDARY_TIMEOUT * this.wait));
+        var requestCompletedWithServerError = (req.xhr.readyState == 4 &&
+                                               (reqStatus < 1 ||
+                                                reqStatus >= 500));
+        if (primaryTimeout || secondaryTimeout ||
+            requestCompletedWithServerError) {
+            if (secondaryTimeout) {
+                Strophe.error("Request " +
+                              this._requests[i].id +
+                              " timed out (secondary), restarting");
+            }
+            req.abort = true;
+            req.xhr.abort();
+            // setting to null fails on IE6, so set to empty function
+            req.xhr.onreadystatechange = function () {};
+            this._requests[i] = new Strophe.Request(req.xmlData,
+                                                    req.origFunc,
+                                                    req.rid,
+                                                    req.sends);
+            req = this._requests[i];
+        }
+
+        if (req.xhr.readyState === 0) {
+            Strophe.debug("request id " + req.id +
+                          "." + req.sends + " posting");
+
+            req.date = new Date();
+            try {
+                req.xhr.open("POST", this.service, true);
+            } catch (e2) {
+                Strophe.error("XHR open failed.");
+                if (!this.connected) {
+                    this._changeConnectStatus(Strophe.Status.CONNFAIL,
+                                              "bad-service");
+                }
+                this.disconnect();
+                return;
+            }
+
+            // Fires the XHR request -- may be invoked immediately
+            // or on a gradually expanding retry window for reconnects
+            var sendFunc = function () {
+                req.xhr.send(req.data);
+            };
+
+            // Implement progressive backoff for reconnects --
+            // First retry (send == 1) should also be instantaneous
+            if (req.sends > 1) {
+                // Using a cube of the retry number creats a nicely
+                // expanding retry window
+                var backoff = Math.pow(req.sends, 3) * 1000;
+                setTimeout(sendFunc, backoff);
+            } else {
+                sendFunc();
+            }
+
+            req.sends++;
+
+            this.xmlOutput(req.xmlData);
+            this.rawOutput(req.data);
+        } else {
+            Strophe.debug("_processRequest: " +
+                          (i === 0 ? "first" : "second") +
+                          " request has readyState of " +
+                          req.xhr.readyState);
+        }
+    },
+
+    /** PrivateFunction: _throttledRequestHandler
+     *  _Private_ function to throttle requests to the connection window.
+     *
+     *  This function makes sure we don't send requests so fast that the
+     *  request ids overflow the connection window in the case that one
+     *  request died.
+     */
+    _throttledRequestHandler: function ()
+    {
+        if (!this._requests) {
+            Strophe.debug("_throttledRequestHandler called with " +
+                          "undefined requests");
+        } else {
+            Strophe.debug("_throttledRequestHandler called with " +
+                          this._requests.length + " requests");
+        }
+
+        if (!this._requests || this._requests.length === 0) {
+            return;
+        }
+
+        if (this._requests.length > 0) {
+            this._processRequest(0);
+        }
+
+        if (this._requests.length > 1 &&
+            Math.abs(this._requests[0].rid -
+                     this._requests[1].rid) < this.window - 1) {
+            this._processRequest(1);
+        }
+    },
+
+    /** PrivateFunction: _onRequestStateChange
+     *  _Private_ handler for Strophe.Request state changes.
+     *
+     *  This function is called when the XMLHttpRequest readyState changes.
+     *  It contains a lot of error handling logic for the many ways that
+     *  requests can fail, and calls the request callback when requests
+     *  succeed.
+     *
+     *  Parameters:
+     *    (Function) func - The handler for the request.
+     *    (Strophe.Request) req - The request that is changing readyState.
+     */
+    _onRequestStateChange: function (func, req)
+    {
+        Strophe.debug("request id " + req.id +
+                      "." + req.sends + " state changed to " +
+                      req.xhr.readyState);
+
+        if (req.abort) {
+            req.abort = false;
+            return;
+        }
+
+        // request complete
+        var reqStatus;
+        if (req.xhr.readyState == 4) {
+            reqStatus = 0;
+            try {
+                reqStatus = req.xhr.status;
+            } catch (e) {
+                // ignore errors from undefined status attribute.  works
+                // around a browser bug
+            }
+
+            if (typeof(reqStatus) == "undefined") {
+                reqStatus = 0;
+            }
+
+            if (this.disconnecting) {
+                if (reqStatus >= 400) {
+                    this._hitError(reqStatus);
+                    return;
+                }
+            }
+
+            var reqIs0 = (this._requests[0] == req);
+            var reqIs1 = (this._requests[1] == req);
+
+            if ((reqStatus > 0 && reqStatus < 500) || req.sends > 5) {
+                // remove from internal queue
+                this._removeRequest(req);
+                Strophe.debug("request id " +
+                              req.id +
+                              " should now be removed");
+            }
+
+            // request succeeded
+            if (reqStatus == 200) {
+                // if request 1 finished, or request 0 finished and request
+                // 1 is over Strophe.SECONDARY_TIMEOUT seconds old, we need to
+                // restart the other - both will be in the first spot, as the
+                // completed request has been removed from the queue already
+                if (reqIs1 ||
+                    (reqIs0 && this._requests.length > 0 &&
+                     this._requests[0].age() > Math.floor(Strophe.SECONDARY_TIMEOUT * this.wait))) {
+                    this._restartRequest(0);
+                }
+                // call handler
+                Strophe.debug("request id " +
+                              req.id + "." +
+                              req.sends + " got 200");
+                func(req);
+                this.errors = 0;
+            } else {
+                Strophe.error("request id " +
+                              req.id + "." +
+                              req.sends + " error " + reqStatus +
+                              " happened");
+                if (reqStatus === 0 ||
+                    (reqStatus >= 400 && reqStatus < 600) ||
+                    reqStatus >= 12000) {
+                    this._hitError(reqStatus);
+                    if (reqStatus >= 400 && reqStatus < 500) {
+                        this._changeConnectStatus(Strophe.Status.DISCONNECTING,
+                                                  null);
+                        this._doDisconnect();
+                    }
+                }
+            }
+
+            if (!((reqStatus > 0 && reqStatus < 10000) ||
+                  req.sends > 5)) {
+                this._throttledRequestHandler();
+            }
+        }
+    },
+
+    /** PrivateFunction: _hitError
+     *  _Private_ function to handle the error count.
+     *
+     *  Requests are resent automatically until their error count reaches
+     *  5.  Each time an error is encountered, this function is called to
+     *  increment the count and disconnect if the count is too high.
+     *
+     *  Parameters:
+     *    (Integer) reqStatus - The request status.
+     */
+    _hitError: function (reqStatus)
+    {
+        this.errors++;
+        Strophe.warn("request errored, status: " + reqStatus +
+                     ", number of errors: " + this.errors);
+        if (this.errors > 4) {
+            this._onDisconnectTimeout();
+        }
+    },
+
+    /** PrivateFunction: _doDisconnect
+     *  _Private_ function to disconnect.
+     *
+     *  This is the last piece of the disconnection logic.  This resets the
+     *  connection and alerts the user's connection callback.
+     */
+    _doDisconnect: function ()
+    {
+        Strophe.info("_doDisconnect was called");
+        this.authenticated = false;
+        this.disconnecting = false;
+        this.sid = null;
+        this.streamId = null;
+        this.rid = Math.floor(Math.random() * 4294967295);
+
+        // tell the parent we disconnected
+        if (this.connected) {
+            this._changeConnectStatus(Strophe.Status.DISCONNECTED, null);
+            this.connected = false;
+        }
+
+        // delete handlers
+        this.handlers = [];
+        this.timedHandlers = [];
+        this.removeTimeds = [];
+        this.removeHandlers = [];
+        this.addTimeds = [];
+        this.addHandlers = [];
+    },
+
+    /** PrivateFunction: _dataRecv
+     *  _Private_ handler to processes incoming data from the the connection.
+     *
+     *  Except for _connect_cb handling the initial connection request,
+     *  this function handles the incoming data for all requests.  This
+     *  function also fires stanza handlers that match each incoming
+     *  stanza.
+     *
+     *  Parameters:
+     *    (Strophe.Request) req - The request that has data ready.
+     */
+    _dataRecv: function (req)
+    {
+        try {
+            var elem = req.getResponse();
+        } catch (e) {
+            if (e != "parsererror") { throw e; }
+            this.disconnect("strophe-parsererror");
+        }
+        if (elem === null) { return; }
+
+        this.xmlInput(elem);
+        this.rawInput(Strophe.serialize(elem));
+
+        // remove handlers scheduled for deletion
+        var i, hand;
+        while (this.removeHandlers.length > 0) {
+            hand = this.removeHandlers.pop();
+            i = this.handlers.indexOf(hand);
+            if (i >= 0) {
+                this.handlers.splice(i, 1);
+            }
+        }
+
+        // add handlers scheduled for addition
+        while (this.addHandlers.length > 0) {
+            this.handlers.push(this.addHandlers.pop());
+        }
+
+        // handle graceful disconnect
+        if (this.disconnecting && this._requests.length === 0) {
+            this.deleteTimedHandler(this._disconnectTimeout);
+            this._disconnectTimeout = null;
+            this._doDisconnect();
+            return;
+        }
+
+        var typ = elem.getAttribute("type");
+        var cond, conflict;
+        if (typ !== null && typ == "terminate") {
+            // an error occurred
+            cond = elem.getAttribute("condition");
+            conflict = elem.getElementsByTagName("conflict");
+            if (cond !== null) {
+                if (cond == "remote-stream-error" && conflict.length > 0) {
+                    cond = "conflict";
+                }
+                this._changeConnectStatus(Strophe.Status.CONNFAIL, cond);
+            } else {
+                this._changeConnectStatus(Strophe.Status.CONNFAIL, "unknown");
+            }
+            this.disconnect();
+            return;
+        }
+
+        // send each incoming stanza through the handler chain
+        var self = this;
+        Strophe.forEachChild(elem, null, function (child) {
+            var i, newList;
+            // process handlers
+            newList = self.handlers;
+            self.handlers = [];
+            for (i = 0; i < newList.length; i++) {
+                var hand = newList[i];
+                if (hand.isMatch(child) &&
+                    (self.authenticated || !hand.user)) {
+                    if (hand.run(child)) {
+                        self.handlers.push(hand);
+                    }
+                } else {
+                    self.handlers.push(hand);
+                }
+            }
+        });
+    },
+
+    /** PrivateFunction: _sendTerminate
+     *  _Private_ function to send initial disconnect sequence.
+     *
+     *  This is the first step in a graceful disconnect.  It sends
+     *  the BOSH server a terminate body and includes an unavailable
+     *  presence if authentication has completed.
+     */
+    _sendTerminate: function ()
+    {
+        Strophe.info("_sendTerminate was called");
+        var body = this._buildBody().attrs({type: "terminate"});
+
+        if (this.authenticated) {
+            body.c('presence', {
+                xmlns: Strophe.NS.CLIENT,
+                type: 'unavailable'
+            });
+        }
+
+        this.disconnecting = true;
+
+        var req = new Strophe.Request(body.tree(),
+                                      this._onRequestStateChange.bind(this)
+                                          .prependArg(this._dataRecv.bind(this)),
+                                      body.tree().getAttribute("rid"));
+
+        this._requests.push(req);
+        this._throttledRequestHandler();
+    },
+
+    /** PrivateFunction: _connect_cb
+     *  _Private_ handler for initial connection request.
+     *
+     *  This handler is used to process the initial connection request
+     *  response from the BOSH server. It is used to set up authentication
+     *  handlers and start the authentication process.
+     *
+     *  SASL authentication will be attempted if available, otherwise
+     *  the code will fall back to legacy authentication.
+     *
+     *  Parameters:
+     *    (Strophe.Request) req - The current request.
+     */
+    _connect_cb: function (req)
+    {
+        Strophe.info("_connect_cb was called");
+
+        this.connected = true;
+        var bodyWrap = req.getResponse();
+        if (!bodyWrap) { return; }
+
+        this.xmlInput(bodyWrap);
+        this.rawInput(Strophe.serialize(bodyWrap));
+
+        var typ = bodyWrap.getAttribute("type");
+        var cond, conflict;
+        if (typ !== null && typ == "terminate") {
+            // an error occurred
+            cond = bodyWrap.getAttribute("condition");
+            conflict = bodyWrap.getElementsByTagName("conflict");
+            if (cond !== null) {
+                if (cond == "remote-stream-error" && conflict.length > 0) {
+                    cond = "conflict";
+                }
+                this._changeConnectStatus(Strophe.Status.CONNFAIL, cond);
+            } else {
+                this._changeConnectStatus(Strophe.Status.CONNFAIL, "unknown");
+            }
+            return;
+        }
+
+        // check to make sure we don't overwrite these if _connect_cb is
+        // called multiple times in the case of missing stream:features
+        if (!this.sid) {
+            this.sid = bodyWrap.getAttribute("sid");
+        }
+        if (!this.stream_id) {
+            this.stream_id = bodyWrap.getAttribute("authid");
+        }
+        var wind = bodyWrap.getAttribute('requests');
+        if (wind) { this.window = parseInt(wind, 10); }
+        var hold = bodyWrap.getAttribute('hold');
+        if (hold) { this.hold = parseInt(hold, 10); }
+        var wait = bodyWrap.getAttribute('wait');
+        if (wait) { this.wait = parseInt(wait, 10); }
+        
+
+        var do_sasl_plain = false;
+        var do_sasl_digest_md5 = false;
+        var do_sasl_anonymous = false;
+
+        var mechanisms = bodyWrap.getElementsByTagName("mechanism");
+        var i, mech, auth_str, hashed_auth_str;
+        if (mechanisms.length > 0) {
+            for (i = 0; i < mechanisms.length; i++) {
+                mech = Strophe.getText(mechanisms[i]);
+                if (mech == 'DIGEST-MD5') {
+                    do_sasl_digest_md5 = true;
+                } else if (mech == 'PLAIN') {
+                    do_sasl_plain = true;
+                } else if (mech == 'ANONYMOUS') {
+                    do_sasl_anonymous = true;
+                }
+            }
+        } else {
+            // we didn't get stream:features yet, so we need wait for it
+            // by sending a blank poll request
+            var body = this._buildBody();
+            this._requests.push(
+                new Strophe.Request(body.tree(),
+                                    this._onRequestStateChange.bind(this)
+                                      .prependArg(this._connect_cb.bind(this)),
+                                    body.tree().getAttribute("rid")));
+            this._throttledRequestHandler();
+            return;
+        }
+
+        if (Strophe.getNodeFromJid(this.jid) === null &&
+            do_sasl_anonymous) {
+            this._changeConnectStatus(Strophe.Status.AUTHENTICATING, null);
+            this._sasl_success_handler = this._addSysHandler(
+                this._sasl_success_cb.bind(this), null,
+                "success", null, null);
+            this._sasl_failure_handler = this._addSysHandler(
+                this._sasl_failure_cb.bind(this), null,
+                "failure", null, null);
+
+            this.send($build("auth", {
+                xmlns: Strophe.NS.SASL,
+                mechanism: "ANONYMOUS"
+            }).tree());
+        } else if (Strophe.getNodeFromJid(this.jid) === null) {
+            // we don't have a node, which is required for non-anonymous
+            // client connections
+            this._changeConnectStatus(Strophe.Status.CONNFAIL,
+                                      'x-strophe-bad-non-anon-jid');
+            this.disconnect();
+        } else if (do_sasl_digest_md5) {
+            this._changeConnectStatus(Strophe.Status.AUTHENTICATING, null);
+            this._sasl_challenge_handler = this._addSysHandler(
+                this._sasl_challenge1_cb.bind(this), null,
+                "challenge", null, null);
+            this._sasl_failure_handler = this._addSysHandler(
+                this._sasl_failure_cb.bind(this), null,
+                "failure", null, null);
+
+            this.send($build("auth", {
+                xmlns: Strophe.NS.SASL,
+                mechanism: "DIGEST-MD5"
+            }).tree());
+        } else if (do_sasl_plain) {
+            // Build the plain auth string (barejid null
+            // username null password) and base 64 encoded.
+            auth_str = Strophe.getBareJidFromJid(this.jid);
+            auth_str = auth_str + "\u0000";
+            auth_str = auth_str + Strophe.getNodeFromJid(this.jid);
+            auth_str = auth_str + "\u0000";
+            auth_str = auth_str + this.pass;
+
+            this._changeConnectStatus(Strophe.Status.AUTHENTICATING, null);
+            this._sasl_success_handler = this._addSysHandler(
+                this._sasl_success_cb.bind(this), null,
+                "success", null, null);
+            this._sasl_failure_handler = this._addSysHandler(
+                this._sasl_failure_cb.bind(this), null,
+                "failure", null, null);
+
+            hashed_auth_str = Base64.encode(auth_str);
+            this.send($build("auth", {
+                xmlns: Strophe.NS.SASL,
+                mechanism: "PLAIN"
+            }).t(hashed_auth_str).tree());
+        } else {
+            this._changeConnectStatus(Strophe.Status.AUTHENTICATING, null);
+            this._addSysHandler(this._auth1_cb.bind(this), null, null,
+                                null, "_auth_1");
+
+            this.send($iq({
+                type: "get",
+                to: this.domain,
+                id: "_auth_1"
+            }).c("query", {
+                xmlns: Strophe.NS.AUTH
+            }).c("username", {}).t(Strophe.getNodeFromJid(this.jid)).tree());
+        }
+    },
+
+    /** PrivateFunction: _sasl_challenge1_cb
+     *  _Private_ handler for DIGEST-MD5 SASL authentication.
+     *
+     *  Parameters:
+     *    (XMLElement) elem - The challenge stanza.
+     *
+     *  Returns:
+     *    false to remove the handler.
+     */
+    _sasl_challenge1_cb: function (elem)
+    {
+        var attribMatch = /([a-z]+)=("[^"]+"|[^,"]+)(?:,|$)/;
+
+        var challenge = Base64.decode(Strophe.getText(elem));
+        var cnonce = MD5.hexdigest(Math.random() * 1234567890);
+        var realm = "";
+        var host = null;
+        var nonce = "";
+        var qop = "";
+        var matches;
+
+        // remove unneeded handlers
+        this.deleteHandler(this._sasl_failure_handler);
+
+        while (challenge.match(attribMatch)) {
+            matches = challenge.match(attribMatch);
+            challenge = challenge.replace(matches[0], "");
+            matches[2] = matches[2].replace(/^"(.+)"$/, "$1");
+            switch (matches[1]) {
+            case "realm":
+                realm = matches[2];
+                break;
+            case "nonce":
+                nonce = matches[2];
+                break;
+            case "qop":
+                qop = matches[2];
+                break;
+            case "host":
+                host = matches[2];
+                break;
+            }
+        }
+
+        var digest_uri = "xmpp/" + this.domain;
+        if (host !== null) {
+            digest_uri = digest_uri + "/" + host;
+        }
+
+        var A1 = MD5.hash(Strophe.getNodeFromJid(this.jid) +
+                          ":" + realm + ":" + this.pass) +
+            ":" + nonce + ":" + cnonce;
+        var A2 = 'AUTHENTICATE:' + digest_uri;
+
+        var responseText = "";
+        responseText += 'username=' +
+            this._quote(Strophe.getNodeFromJid(this.jid)) + ',';
+        responseText += 'realm=' + this._quote(realm) + ',';
+        responseText += 'nonce=' + this._quote(nonce) + ',';
+        responseText += 'cnonce=' + this._quote(cnonce) + ',';
+        responseText += 'nc="00000001",';
+        responseText += 'qop="auth",';
+        responseText += 'digest-uri=' + this._quote(digest_uri) + ',';
+        responseText += 'response=' + this._quote(
+            MD5.hexdigest(MD5.hexdigest(A1) + ":" +
+                          nonce + ":00000001:" +
+                          cnonce + ":auth:" +
+                          MD5.hexdigest(A2))) + ',';
+        responseText += 'charset="utf-8"';
+
+        this._sasl_challenge_handler = this._addSysHandler(
+            this._sasl_challenge2_cb.bind(this), null,
+            "challenge", null, null);
+        this._sasl_success_handler = this._addSysHandler(
+            this._sasl_success_cb.bind(this), null,
+            "success", null, null);
+        this._sasl_failure_handler = this._addSysHandler(
+            this._sasl_failure_cb.bind(this), null,
+            "failure", null, null);
+
+        this.send($build('response', {
+            xmlns: Strophe.NS.SASL
+        }).t(Base64.encode(responseText)).tree());
+
+        return false;
+    },
+
+    /** PrivateFunction: _quote
+     *  _Private_ utility function to backslash escape and quote strings.
+     *
+     *  Parameters:
+     *    (String) str - The string to be quoted.
+     *
+     *  Returns:
+     *    quoted string
+     */
+    _quote: function (str)
+    {
+        return '"' + str.replace(/\\/g, "\\\\").replace(/"/g, '\\"') + '"'; 
+        //" end string workaround for emacs
+    },
+
+
+    /** PrivateFunction: _sasl_challenge2_cb
+     *  _Private_ handler for second step of DIGEST-MD5 SASL authentication.
+     *
+     *  Parameters:
+     *    (XMLElement) elem - The challenge stanza.
+     *
+     *  Returns:
+     *    false to remove the handler.
+     */
+    _sasl_challenge2_cb: function (elem)
+    {
+        // remove unneeded handlers
+        this.deleteHandler(this._sasl_success_handler);
+        this.deleteHandler(this._sasl_failure_handler);
+
+        this._sasl_success_handler = this._addSysHandler(
+            this._sasl_success_cb.bind(this), null,
+            "success", null, null);
+        this._sasl_failure_handler = this._addSysHandler(
+            this._sasl_failure_cb.bind(this), null,
+            "failure", null, null);
+        this.send($build('response', {xmlns: Strophe.NS.SASL}).tree());
+        return false;
+    },
+
+    /** PrivateFunction: _auth1_cb
+     *  _Private_ handler for legacy authentication.
+     *
+     *  This handler is called in response to the initial <iq type='get'/>
+     *  for legacy authentication.  It builds an authentication <iq/> and
+     *  sends it, creating a handler (calling back to _auth2_cb()) to
+     *  handle the result
+     *
+     *  Parameters:
+     *    (XMLElement) elem - The stanza that triggered the callback.
+     *
+     *  Returns:
+     *    false to remove the handler.
+     */
+    _auth1_cb: function (elem)
+    {
+        // build plaintext auth iq
+        var iq = $iq({type: "set", id: "_auth_2"})
+            .c('query', {xmlns: Strophe.NS.AUTH})
+            .c('username', {}).t(Strophe.getNodeFromJid(this.jid))
+            .up()
+            .c('password').t(this.pass);
+
+        if (!Strophe.getResourceFromJid(this.jid)) {
+            // since the user has not supplied a resource, we pick
+            // a default one here.  unlike other auth methods, the server
+            // cannot do this for us.
+            this.jid = Strophe.getBareJidFromJid(this.jid) + '/strophe';
+        }
+        iq.up().c('resource', {}).t(Strophe.getResourceFromJid(this.jid));
+
+        this._addSysHandler(this._auth2_cb.bind(this), null,
+                            null, null, "_auth_2");
+
+        this.send(iq.tree());
+
+        return false;
+    },
+
+    /** PrivateFunction: _sasl_success_cb
+     *  _Private_ handler for succesful SASL authentication.
+     *
+     *  Parameters:
+     *    (XMLElement) elem - The matching stanza.
+     *
+     *  Returns:
+     *    false to remove the handler.
+     */
+    _sasl_success_cb: function (elem)
+    {
+        Strophe.info("SASL authentication succeeded.");
+
+        // remove old handlers
+        this.deleteHandler(this._sasl_failure_handler);
+        this._sasl_failure_handler = null;
+        if (this._sasl_challenge_handler) {
+            this.deleteHandler(this._sasl_challenge_handler);
+            this._sasl_challenge_handler = null;
+        }
+
+        this._addSysHandler(this._sasl_auth1_cb.bind(this), null,
+                            "stream:features", null, null);
+
+        // we must send an xmpp:restart now
+        this._sendRestart();
+
+        return false;
+    },
+
+    /** PrivateFunction: _sasl_auth1_cb
+     *  _Private_ handler to start stream binding.
+     *
+     *  Parameters:
+     *    (XMLElement) elem - The matching stanza.
+     *
+     *  Returns:
+     *    false to remove the handler.
+     */
+    _sasl_auth1_cb: function (elem)
+    {
+        var i, child;
+
+        for (i = 0; i < elem.childNodes.length; i++) {
+            child = elem.childNodes[i];
+            if (child.nodeName == 'bind') {
+                this.do_bind = true;
+            }
+
+            if (child.nodeName == 'session') {
+                this.do_session = true;
+            }
+        }
+
+        if (!this.do_bind) {
+            this._changeConnectStatus(Strophe.Status.AUTHFAIL, null);
+            return false;
+        } else {
+            this._addSysHandler(this._sasl_bind_cb.bind(this), null, null,
+                                null, "_bind_auth_2");
+
+            var resource = Strophe.getResourceFromJid(this.jid);
+            if (resource) {
+                this.send($iq({type: "set", id: "_bind_auth_2"})
+                          .c('bind', {xmlns: Strophe.NS.BIND})
+                          .c('resource', {}).t(resource).tree());
+            } else {
+                this.send($iq({type: "set", id: "_bind_auth_2"})
+                          .c('bind', {xmlns: Strophe.NS.BIND})
+                          .tree());
+            }
+        }
+
+        return false;
+    },
+
+    /** PrivateFunction: _sasl_bind_cb
+     *  _Private_ handler for binding result and session start.
+     *
+     *  Parameters:
+     *    (XMLElement) elem - The matching stanza.
+     *
+     *  Returns:
+     *    false to remove the handler.
+     */
+    _sasl_bind_cb: function (elem)
+    {
+        if (elem.getAttribute("type") == "error") {
+            Strophe.info("SASL binding failed.");
+            this._changeConnectStatus(Strophe.Status.AUTHFAIL, null);
+            return false;
+        }
+
+        // TODO - need to grab errors
+        var bind = elem.getElementsByTagName("bind");
+        var jidNode;
+        if (bind.length > 0) {
+            // Grab jid
+            jidNode = bind[0].getElementsByTagName("jid");
+            if (jidNode.length > 0) {
+                this.jid = Strophe.getText(jidNode[0]);
+
+                if (this.do_session) {
+                    this._addSysHandler(this._sasl_session_cb.bind(this),
+                                        null, null, null, "_session_auth_2");
+
+                    this.send($iq({type: "set", id: "_session_auth_2"})
+                                  .c('session', {xmlns: Strophe.NS.SESSION})
+                                  .tree());
+                } else {
+                    this.authenticated = true;
+                    this._changeConnectStatus(Strophe.Status.CONNECTED, null);
+                }
+            }
+        } else {
+            Strophe.info("SASL binding failed.");
+            this._changeConnectStatus(Strophe.Status.AUTHFAIL, null);
+            return false;
+        }
+    },
+
+    /** PrivateFunction: _sasl_session_cb
+     *  _Private_ handler to finish successful SASL connection.
+     *
+     *  This sets Connection.authenticated to true on success, which
+     *  starts the processing of user handlers.
+     *
+     *  Parameters:
+     *    (XMLElement) elem - The matching stanza.
+     *
+     *  Returns:
+     *    false to remove the handler.
+     */
+    _sasl_session_cb: function (elem)
+    {
+        if (elem.getAttribute("type") == "result") {
+            this.authenticated = true;
+            this._changeConnectStatus(Strophe.Status.CONNECTED, null);
+        } else if (elem.getAttribute("type") == "error") {
+            Strophe.info("Session creation failed.");
+            this._changeConnectStatus(Strophe.Status.AUTHFAIL, null);
+            return false;
+        }
+
+        return false;
+    },
+
+    /** PrivateFunction: _sasl_failure_cb
+     *  _Private_ handler for SASL authentication failure.
+     *
+     *  Parameters:
+     *    (XMLElement) elem - The matching stanza.
+     *
+     *  Returns:
+     *    false to remove the handler.
+     */
+    _sasl_failure_cb: function (elem)
+    {
+        // delete unneeded handlers
+        if (this._sasl_success_handler) {
+            this.deleteHandler(this._sasl_success_handler);
+            this._sasl_success_handler = null;
+        }
+        if (this._sasl_challenge_handler) {
+            this.deleteHandler(this._sasl_challenge_handler);
+            this._sasl_challenge_handler = null;
+        }
+
+        this._changeConnectStatus(Strophe.Status.AUTHFAIL, null);
+        return false;
+    },
+
+    /** PrivateFunction: _auth2_cb
+     *  _Private_ handler to finish legacy authentication.
+     *
+     *  This handler is called when the result from the jabber:iq:auth
+     *  <iq/> stanza is returned.
+     *
+     *  Parameters:
+     *    (XMLElement) elem - The stanza that triggered the callback.
+     *
+     *  Returns:
+     *    false to remove the handler.
+     */
+    _auth2_cb: function (elem)
+    {
+        if (elem.getAttribute("type") == "result") {
+            this.authenticated = true;
+            this._changeConnectStatus(Strophe.Status.CONNECTED, null);
+        } else if (elem.getAttribute("type") == "error") {
+            this._changeConnectStatus(Strophe.Status.AUTHFAIL, null);
+            this.disconnect();
+        }
+
+        return false;
+    },
+
+    /** PrivateFunction: _addSysTimedHandler
+     *  _Private_ function to add a system level timed handler.
+     *
+     *  This function is used to add a Strophe.TimedHandler for the
+     *  library code.  System timed handlers are allowed to run before
+     *  authentication is complete.
+     *
+     *  Parameters:
+     *    (Integer) period - The period of the handler.
+     *    (Function) handler - The callback function.
+     */
+    _addSysTimedHandler: function (period, handler)
+    {
+        var thand = new Strophe.TimedHandler(period, handler);
+        thand.user = false;
+        this.addTimeds.push(thand);
+        return thand;
+    },
+
+    /** PrivateFunction: _addSysHandler
+     *  _Private_ function to add a system level stanza handler.
+     *
+     *  This function is used to add a Strophe.Handler for the
+     *  library code.  System stanza handlers are allowed to run before
+     *  authentication is complete.
+     *
+     *  Parameters:
+     *    (Function) handler - The callback function.
+     *    (String) ns - The namespace to match.
+     *    (String) name - The stanza name to match.
+     *    (String) type - The stanza type attribute to match.
+     *    (String) id - The stanza id attribute to match.
+     */
+    _addSysHandler: function (handler, ns, name, type, id)
+    {
+        var hand = new Strophe.Handler(handler, ns, name, type, id);
+        hand.user = false;
+        this.addHandlers.push(hand);
+        return hand;
+    },
+
+    /** PrivateFunction: _onDisconnectTimeout
+     *  _Private_ timeout handler for handling non-graceful disconnection.
+     *
+     *  If the graceful disconnect process does not complete within the
+     *  time allotted, this handler finishes the disconnect anyway.
+     *
+     *  Returns:
+     *    false to remove the handler.
+     */
+    _onDisconnectTimeout: function ()
+    {
+        Strophe.info("_onDisconnectTimeout was called");
+
+        // cancel all remaining requests and clear the queue
+        var req;
+        while (this._requests.length > 0) {
+            req = this._requests.pop();
+            req.abort = true;
+            req.xhr.abort();
+            // jslint complains, but this is fine. setting to empty func
+            // is necessary for IE6
+            req.xhr.onreadystatechange = function () {};
+        }
+
+        // actually disconnect
+        this._doDisconnect();
+
+        return false;
+    },
+
+    /** PrivateFunction: _onIdle
+     *  _Private_ handler to process events during idle cycle.
+     *
+     *  This handler is called every 100ms to fire timed handlers that
+     *  are ready and keep poll requests going.
+     */
+    _onIdle: function ()
+    {
+        var i, thand, since, newList;
+
+        // remove timed handlers that have been scheduled for deletion
+        while (this.removeTimeds.length > 0) {
+            thand = this.removeTimeds.pop();
+            i = this.timedHandlers.indexOf(thand);
+            if (i >= 0) {
+                this.timedHandlers.splice(i, 1);
+            }
+        }
+
+        // add timed handlers scheduled for addition
+        while (this.addTimeds.length > 0) {
+            this.timedHandlers.push(this.addTimeds.pop());
+        }
+
+        // call ready timed handlers
+        var now = new Date().getTime();
+        newList = [];
+        for (i = 0; i < this.timedHandlers.length; i++) {
+            thand = this.timedHandlers[i];
+            if (this.authenticated || !thand.user) {
+                since = thand.lastCalled + thand.period;
+                if (since - now <= 0) {
+                    if (thand.run()) {
+                        newList.push(thand);
+                    }
+                } else {
+                    newList.push(thand);
+                }
+            }
+        }
+        this.timedHandlers = newList;
+
+        var body, time_elapsed;
+
+        // if no requests are in progress, poll
+        if (this.authenticated && this._requests.length === 0 &&
+            this._data.length === 0 && !this.disconnecting) {
+            Strophe.info("no requests during idle cycle, sending " +
+                         "blank request");
+            this._data.push(null);
+        }
+
+        if (this._requests.length < 2 && this._data.length > 0 &&
+            !this.paused) {
+            body = this._buildBody();
+            for (i = 0; i < this._data.length; i++) {
+                if (this._data[i] !== null) {
+                    if (this._data[i] === "restart") {
+                        body.attrs({
+                            to: this.domain,
+                            "xml:lang": "en",
+                            "xmpp:restart": "true",
+                            "xmlns:xmpp": Strophe.NS.BOSH
+                        });
+                    } else {
+                        body.cnode(this._data[i]).up();
+                    }
+                }
+            }
+            delete this._data;
+            this._data = [];
+            this._requests.push(
+                new Strophe.Request(body.tree(),
+                                    this._onRequestStateChange.bind(this)
+                                    .prependArg(this._dataRecv.bind(this)),
+                                    body.tree().getAttribute("rid")));
+            this._processRequest(this._requests.length - 1);
+        }
+
+        if (this._requests.length > 0) {
+            time_elapsed = this._requests[0].age();
+            if (this._requests[0].dead !== null) {
+                if (this._requests[0].timeDead() >
+                    Math.floor(Strophe.SECONDARY_TIMEOUT * this.wait)) {
+                    this._throttledRequestHandler();
+                }
+            }
+
+            if (time_elapsed > Math.floor(Strophe.TIMEOUT * this.wait)) {
+                Strophe.warn("Request " +
+                             this._requests[0].id +
+                             " timed out, over " + Math.floor(Strophe.TIMEOUT * this.wait) +
+                             " seconds since last activity");
+                this._throttledRequestHandler();
+            }
+        }
+
+        // reactivate the timer
+        clearTimeout(this._idleTimeout);
+        this._idleTimeout = setTimeout(this._onIdle.bind(this), 100);
+    }
+};
+
+if (callback) {
+    callback(Strophe, $build, $msg, $iq, $pres);
+}
+
+})(function () {
+    window.Strophe = arguments[0];
+    window.$build = arguments[1];
+    window.$msg = arguments[2];
+    window.$iq = arguments[3];
+    window.$pres = arguments[4];
+});
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/LICENSE.txt
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/LICENSE.txt	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/LICENSE.txt	(revision 2397)
@@ -0,0 +1,19 @@
+Copyright (c) 2006-2009 Collecta, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/contrib/discojs/punjab.tac
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/contrib/discojs/punjab.tac	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/contrib/discojs/punjab.tac	(revision 2397)
@@ -0,0 +1,18 @@
+# punjab tac file
+from twisted.web import server, resource, static
+from twisted.application import service, internet
+
+from punjab.httpb  import Httpb, HttpbService
+
+root = static.File("./") # This needs to be the directory 
+                         # where you will have your html 
+                         # and javascript.
+
+b = resource.IResource(HttpbService(1)) # turn on debug with 1
+root.putChild('bosh', b)
+
+
+site  = server.Site(root)
+
+application = service.Application("punjab")
+internet.TCPServer(5280, site).setServiceParent(application)
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/contrib/discojs/scripts/basic.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/contrib/discojs/scripts/basic.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/contrib/discojs/scripts/basic.js	(revision 2397)
@@ -0,0 +1,102 @@
+var BOSH_SERVICE = 'http://localhost:5280/bosh';
+
+var connection   = null;
+var browser      = null;
+var show_log     = true;
+
+function log(msg) 
+{
+    $('#log').append('<div></div>').append(document.createTextNode(msg));
+}
+
+
+function rawInput(data)
+{
+    log('RECV: ' + data);
+}
+
+function rawOutput(data)
+{
+    log('SENT: ' + data);
+}
+
+function onConnect(status)
+{
+    if (status == Strophe.Status.CONNECTING) {
+	log('Strophe is connecting.');
+
+    } else if (status == Strophe.Status.CONNFAIL) {
+	log('Strophe failed to connect.');
+	showConnect();
+    } else if (status == Strophe.Status.DISCONNECTING) {
+	log('Strophe is disconnecting.');
+    } else if (status == Strophe.Status.DISCONNECTED) {
+	log('Strophe is disconnected.');
+	showConnect();
+
+    } else if (status == Strophe.Status.CONNECTED) {
+	log('Strophe is connected.');
+	// Start up disco browser
+	browser.showBrowser();
+    }
+}
+
+function showConnect()
+{
+    var jid = $('#jid');
+    var pass = $('#pass');
+    var button = $('#connect').get(0);	
+
+    browser.closeBrowser();
+
+    $('label').show();
+    jid.show();
+    pass.show();
+    $('#anon').show();
+    button.value = 'connect';
+    return false;
+}
+
+function showDisconnect()
+{
+    var jid = $('#jid');
+    var pass = $('#pass');
+    var button = $('#connect').get(0);	
+
+    button.value = 'disconnect';
+    pass.hide();
+    jid.hide();
+    $('label').hide();
+    $('#anon').hide();
+    return false;
+}
+
+$(document).ready(function () {
+    connection = new Strophe.Connection(BOSH_SERVICE);
+    connection.rawInput = rawInput;
+    connection.rawOutput = rawOutput;
+
+    browser = new Disco();
+
+    $("#log_container").bind('click', function () {
+	$("#log").toggle();	
+      } 
+      );
+
+    $('#cred').bind('submit', function () {
+	var button = $('#connect').get(0);
+	var jid = $('#jid');
+	var pass = $('#pass');	
+	
+	if (button.value == 'connect') {
+ 	    showDisconnect();
+	    connection.connect(jid.get(0).value,
+			       pass.get(0).value,
+			       onConnect);
+	} else {
+	    connection.disconnect();
+	    showConnect();
+	}
+	return false;
+    });
+});
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/contrib/discojs/scripts/disco.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/contrib/discojs/scripts/disco.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/contrib/discojs/scripts/disco.js	(revision 2397)
@@ -0,0 +1,60 @@
+
+var NS_DISCO_INFO = 'http://jabber.org/protocol/disco#info';
+var NS_DISCO_ITEM = 'http://jabber.org/protocol/disco#items';
+
+
+// Disco stuff
+Disco = function () {
+  // Class that does nothing
+};
+
+Disco.prototype = {
+ showBrowser: function() {
+    // Browser Display
+    var disco = $('#disco');
+    var jid = $('#jid');
+    var server = connection.jid.split('@')[1];
+
+    // display input box
+    disco.append("<div id='server'><form id='browse' name='browse'>Server : <input type='text' name='server' id='server' value='"+server+"' /><input type='submit' value='browse'/></form></div>");
+    
+    // add handler for search form 
+    $("#browse").bind('submit', function () {
+	this.startBrowse($("#server").get(0).value);
+	return false;
+      });
+    
+    this.startBrowse(server);
+  },
+
+ closeBrowser: function() {
+    var disco = $('#disco');
+    
+    disco.empty();
+  },
+
+ startBrowse: function(server) {
+    // build iq request
+    var id = 'startBrowse';
+    
+    var discoiq = $iq({'from':connection.jid+"/"+connection.resource,
+		       'to':server,
+		       'id':id,
+		       'type':'get'}
+      )
+    .c('query', {'xmlns': NS_DISCO_INFO});
+    
+    connection.addHandler(this._cbBrowse, null, 'iq', 'result', id);
+    connection.send(discoiq.tree());
+    
+  },
+
+ _cbBrowse: function(e) {
+    var elem = $(e); // make this Element a JQuery Element
+    alert(e);
+    
+    return false; // return false to remove the handler
+  },
+
+};
+ 
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/contrib/discojs/css/disco.css
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/contrib/discojs/css/disco.css	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/contrib/discojs/css/disco.css	(revision 2397)
@@ -0,0 +1,16 @@
+#login .leftinput
+{
+  margin-bottom: .5em;
+}
+
+#login input
+{
+  margin-bottom: 10px;
+}
+
+#log { 
+   width: 100%;
+   height: 200px;
+   overflow: auto;
+
+ }
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/contrib/discojs/index.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/contrib/discojs/index.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/contrib/discojs/index.html	(revision 2397)
@@ -0,0 +1,47 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+  <title>XMPP Disco Dancing</title>
+  <script language='javascript' 
+	  type='text/javascript'
+	  src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js'></script>
+  <script language='javascript'
+	  type='text/javascript'
+	  src='strophejs/b64.js'></script>
+  <script language='javascript'
+	  type='text/javascript'
+	  src='strophejs/md5.js'></script>
+  <script language='javascript'
+	  type='text/javascript'
+	  src='strophejs/sha1.js'></script>
+  <script language='javascript'
+	  type='text/javascript'
+	  src='strophejs/strophe.js'></script>
+<script language='javascript'
+	  type='text/javascript'
+	  src='scripts/basic.js'></script>
+  <script language='javascript'
+	  type='text/javascript'
+	  src='scripts/disco.js'></script>
+  <link rel="stylesheet" href="css/disco.css" type="text/css" />
+</head>
+<body>
+  <div id='login' style='text-align: center'>
+    <form id='cred' name='cred'>
+      <label for='jid'>JID:</label>
+      <input type='text' class='leftinput' id='jid' />
+      <label for='pass'>Password:</label>
+      <input type='password' class='leftinput' id='pass' />
+      <input type='submit' id='connect' value='connect' />
+    </form>
+ <br/>
+  </div>
+  <hr />
+  <div id='disco'>
+</div>
+  <hr />
+  <div id='log_container'>
+<a href='#'>Status Log :</a>
+<div id='log'></div></div>
+</body>
+</html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/contrib/discojs/README.txt
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/contrib/discojs/README.txt	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/contrib/discojs/README.txt	(revision 2397)
@@ -0,0 +1,42 @@
+Disco Dancing with XMPP
+
+      There are many things one can do via XMPP. The list is
+  endlist. But one thing that some forget about is discovering
+  services a XMPP entity or server provides. In most cases a human or
+  user does not care about this information and should not care. But
+  you may have a website or web application that needs this
+  information in order to decide what options to show to your
+  users. You can do this very easily with JQuery, Strophe, and
+  Punjab. 
+
+  	  We start with Punjab or a BOSH connection manager. This is
+  needed so we can connect to a XMPP server. First, lets download
+  punjab.
+ 
+  svn co https://code.stanziq.com/svn/punjab/trunk punjab
+
+  After we have punjab go into the directory and install punjab.
+
+  cd punjab
+  python setup.py install
+
+  Then create a .tac file to configure Punjab.
+
+  See punjab.tac 
+
+  Next, we will need Strophe. Lets download thelatest version from
+  svn too. 
+
+  cd /directory/where/you/configured/punjab/html
+
+  svn co https://code.stanziq.com/svn/strophe/trunk/strophejs
+
+  In your html directory you will then begin to create your disco browser.  
+
+  Version 1 we take the basic example and modify it to do disco.
+
+  Version 2 we add anonymous login
+
+  Version 3 we make it pretty 
+
+  Version 4 we add handlers for different services
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/plugins/strophe.pubsub.min.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/plugins/strophe.pubsub.min.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/plugins/strophe.pubsub.min.js	(revision 2397)
@@ -0,0 +1,1 @@
+Strophe.addConnectionPlugin("pubsub",{_connection:null,init:function(conn){this._connection=conn;Strophe.addNamespace("PUBSUB","http://jabber.org/protocol/pubsub");Strophe.addNamespace("PUBSUB_SUBSCRIBE_OPTIONS",Strophe.NS.PUBSUB+"#subscribe_options");Strophe.addNamespace("PUBSUB_ERRORS",Strophe.NS.PUBSUB+"#errors");Strophe.addNamespace("PUBSUB_EVENT",Strophe.NS.PUBSUB+"#event");Strophe.addNamespace("PUBSUB_OWNER",Strophe.NS.PUBSUB+"#owner");Strophe.addNamespace("PUBSUB_AUTO_CREATE",Strophe.NS.PUBSUB+"#auto-create");Strophe.addNamespace("PUBSUB_PUBLISH_OPTIONS",Strophe.NS.PUBSUB+"#publish-options");Strophe.addNamespace("PUBSUB_NODE_CONFIG",Strophe.NS.PUBSUB+"#node_config");Strophe.addNamespace("PUBSUB_CREATE_AND_CONFIGURE",Strophe.NS.PUBSUB+"#create-and-configure");Strophe.addNamespace("PUBSUB_SUBSCRIBE_AUTHORIZATION",Strophe.NS.PUBSUB+"#subscribe_authorization");Strophe.addNamespace("PUBSUB_GET_PENDING",Strophe.NS.PUBSUB+"#get-pending");Strophe.addNamespace("PUBSUB_MANAGE_SUBSCRIPTIONS",Strophe.NS.PUBSUB+"#manage-subscriptions");Strophe.addNamespace("PUBSUB_META_DATA",Strophe.NS.PUBSUB+"#meta-data")},createNode:function(jid,service,node,options,call_back){var iqid=this._connection.getUniqueId("pubsubcreatenode");var iq=$iq({from:jid,to:service,type:"set",id:iqid});var c_options=Strophe.xmlElement("configure",[]);var x=Strophe.xmlElement("x",[["xmlns","jabber:x:data"]]);var form_field=Strophe.xmlElement("field",[["var","FORM_TYPE"],["type","hidden"]]);var value=Strophe.xmlElement("value",[]);var text=Strophe.xmlTextNode(Strophe.NS.PUBSUB+"#node_config");value.appendChild(text);form_field.appendChild(value);x.appendChild(form_field);for(var i in options){var val=options[i];x.appendChild(val)}if(options.length&&options.length!=0){c_options.appendChild(x)}iq.c("pubsub",{xmlns:Strophe.NS.PUBSUB}).c("create",{node:node}).up().cnode(c_options);this._connection.addHandler(call_back,null,"iq",null,iqid,null);this._connection.send(iq.tree());return iqid},subscribe:function(jid,service,node,options,event_cb,call_back){var subid=this._connection.getUniqueId("subscribenode");var sub_options=Strophe.xmlElement("options",[]);var x=Strophe.xmlElement("x",[["xmlns","jabber:x:data"]]);var form_field=Strophe.xmlElement("field",[["var","FORM_TYPE"],["type","hidden"]]);var value=Strophe.xmlElement("value",[]);var text=Strophe.xmlTextNode(Strophe.NS.PUBSUB_SUBSCRIBE_OPTIONS);value.appendChild(text);form_field.appendChild(value);x.appendChild(form_field);var sub=$iq({from:jid,to:service,type:"set",id:subid});if(options&&options.length&&options.length!==0){for(var i=0;i<options.length;i++){var val=options[i];x.appendChild(val)}sub_options.appendChild(x);sub.c("pubsub",{xmlns:Strophe.NS.PUBSUB}).c("subscribe",{node:node,jid:jid}).up().cnode(sub_options)}else{sub.c("pubsub",{xmlns:Strophe.NS.PUBSUB}).c("subscribe",{node:node,jid:jid})}this._connection.addHandler(call_back,null,"iq",null,subid,null);this._connection.addHandler(event_cb,null,"message",null,null,null);this._connection.send(sub.tree());return subid},unsubscribe:function(jid,service,node,call_back){var subid=this._connection.getUniqueId("unsubscribenode");var sub=$iq({from:jid,to:service,type:"set",id:subid});sub.c("pubsub",{xmlns:Strophe.NS.PUBSUB}).c("unsubscribe",{node:node,jid:jid});this._connection.addHandler(call_back,null,"iq",null,subid,null);this._connection.send(sub.tree());return subid},publish:function(jid,service,node,items,call_back){var pubid=this._connection.getUniqueId("publishnode");var publish_elem=Strophe.xmlElement("publish",[["node",node],["jid",jid]]);for(var i in items){var item=Strophe.xmlElement("item",[]);var entry=Strophe.xmlElement("entry",[]);var t=Strophe.xmlTextNode(items[i]);entry.appendChild(t);item.appendChild(entry);publish_elem.appendChild(item)}var pub=$iq({from:jid,to:service,type:"set",id:pubid});pub.c("pubsub",{xmlns:Strophe.NS.PUBSUB}).cnode(publish_elem);this._connection.addHandler(call_back,null,"iq",null,pubid,null);this._connection.send(pub.tree());return pubid},items:function(jid,service,node,ok_callback,error_back){var pub=$iq({from:jid,to:service,type:"get"});pub.c("pubsub",{xmlns:Strophe.NS.PUBSUB}).c("items",{node:node});return this._connection.sendIQ(pub.tree(),ok_callback,error_back)}});
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/plugins/strophe.flxhr.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/plugins/strophe.flxhr.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/plugins/strophe.flxhr.js	(revision 2397)
@@ -0,0 +1,31 @@
+/* flXHR plugin
+**
+** This plugin implements cross-domain XmlHttpRequests via an invisible
+** Flash plugin.
+**
+** In order for this to work, the BOSH service *must* serve a
+** crossdomain.xml file that allows the client access.
+**
+** flXHR.js should be loaded before this plugin.
+*/
+
+Strophe.addConnectionPlugin('flxhr', {
+    init: function () {
+        // replace Strophe.Request._newXHR with new flXHR version
+        // if flXHR is detected
+        if (flensed && flensed.flXHR) {
+            Strophe.Request.prototype._newXHR = function () {
+                var xhr = new flensed.flXHR({
+                    autoUpdatePlayer: true,
+                    instancePooling: true,
+                    noCacheHeader: false});
+                xhr.onreadystatechange = this.func.prependArg(this);
+
+                return xhr;
+            };
+        } else {
+            Strophe.error("flXHR plugin loaded, but flXHR not found." +
+                          "  Falling back to native XHR implementation.");
+        }
+    }
+});
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/plugins/strophe.flxhr.min.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/plugins/strophe.flxhr.min.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/plugins/strophe.flxhr.min.js	(revision 2397)
@@ -0,0 +1,1 @@
+Strophe.addConnectionPlugin("flxhr",{init:function(){if(flensed&&flensed.flXHR){Strophe.Request.prototype._newXHR=function(){var xhr=new flensed.flXHR({autoUpdatePlayer:true,instancePooling:true,noCacheHeader:false});xhr.onreadystatechange=this.func.prependArg(this);return xhr}}else{Strophe.error("flXHR plugin loaded, but flXHR not found.  Falling back to native XHR implementation.")}}});
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/plugins/strophe.pubsub.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/plugins/strophe.pubsub.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/plugins/strophe.pubsub.js	(revision 2397)
@@ -0,0 +1,270 @@
+/*
+  Copyright 2008, Stanziq  Inc.
+*/
+
+Strophe.addConnectionPlugin('pubsub', {
+/*
+  Extend connection object to have plugin name 'pubsub'.  
+*/
+    _connection: null,
+
+	//The plugin must have the init function.
+	init: function(conn) {
+
+	    this._connection = conn;
+
+	    /*
+	      Function used to setup plugin.
+	    */
+	    
+	    /* extend name space 
+	     *  NS.PUBSUB - XMPP Publish Subscribe namespace
+	     *              from XEP 60.  
+	     *
+	     *  NS.PUBSUB_SUBSCRIBE_OPTIONS - XMPP pubsub
+	     *                                options namespace from XEP 60.
+	     */
+	    Strophe.addNamespace('PUBSUB',"http://jabber.org/protocol/pubsub");
+	    Strophe.addNamespace('PUBSUB_SUBSCRIBE_OPTIONS',
+				 Strophe.NS.PUBSUB+"#subscribe_options");
+	    Strophe.addNamespace('PUBSUB_ERRORS',Strophe.NS.PUBSUB+"#errors");
+	    Strophe.addNamespace('PUBSUB_EVENT',Strophe.NS.PUBSUB+"#event");
+	    Strophe.addNamespace('PUBSUB_OWNER',Strophe.NS.PUBSUB+"#owner");
+	    Strophe.addNamespace('PUBSUB_AUTO_CREATE',
+				 Strophe.NS.PUBSUB+"#auto-create");
+	    Strophe.addNamespace('PUBSUB_PUBLISH_OPTIONS',
+				 Strophe.NS.PUBSUB+"#publish-options");
+	    Strophe.addNamespace('PUBSUB_NODE_CONFIG',
+				 Strophe.NS.PUBSUB+"#node_config");
+	    Strophe.addNamespace('PUBSUB_CREATE_AND_CONFIGURE',
+				 Strophe.NS.PUBSUB+"#create-and-configure");
+	    Strophe.addNamespace('PUBSUB_SUBSCRIBE_AUTHORIZATION',
+				 Strophe.NS.PUBSUB+"#subscribe_authorization");
+	    Strophe.addNamespace('PUBSUB_GET_PENDING',
+				 Strophe.NS.PUBSUB+"#get-pending");
+	    Strophe.addNamespace('PUBSUB_MANAGE_SUBSCRIPTIONS',
+				 Strophe.NS.PUBSUB+"#manage-subscriptions");
+	    Strophe.addNamespace('PUBSUB_META_DATA',
+				 Strophe.NS.PUBSUB+"#meta-data");
+	    
+	},
+	/***Function
+	    
+	Create a pubsub node on the given service with the given node
+	name.
+	
+	Parameters:
+	(String) jid - The node owner's jid.
+	(String) service - The name of the pubsub service.
+	(String) node -  The name of the pubsub node.
+	(Dictionary) options -  The configuration options for the  node.
+	(Function) call_back - Used to determine if node
+	creation was sucessful.
+	
+	Returns:
+	Iq id used to send subscription.
+	*/
+	createNode: function(jid,service,node,options, call_back) {
+	    
+	    var iqid = this._connection.getUniqueId("pubsubcreatenode");
+	    
+	    var iq = $iq({from:jid, to:service, type:'set', id:iqid});
+	    
+	    var c_options = Strophe.xmlElement("configure",[]);
+	    var x = Strophe.xmlElement("x",[["xmlns","jabber:x:data"]]);
+	    var form_field = Strophe.xmlElement("field",[["var","FORM_TYPE"],
+							 ["type","hidden"]]);
+	    var value = Strophe.xmlElement("value",[]);
+	    var text = Strophe.xmlTextNode(Strophe.NS.PUBSUB+"#node_config");
+	    value.appendChild(text);
+	    form_field.appendChild(value);
+	    x.appendChild(form_field);
+	    
+	    for (var i in options)
+	    {
+		var val = options[i];
+		x.appendChild(val);
+	    }
+	    
+	    if(options.length && options.length != 0)
+	    {
+		c_options.appendChild(x);
+	    }
+	    
+	    iq.c('pubsub',
+		{xmlns:Strophe.NS.PUBSUB}).c('create',
+		    {node:node}).up().cnode(c_options);
+	    
+	    this._connection.addHandler(call_back,
+				  null,
+				  'iq',
+				  null,
+				  iqid,
+				  null);
+	    this._connection.send(iq.tree());
+	    return iqid;
+	},
+	/***Function
+	    Subscribe to a node in order to receive event items.
+	    
+	    Parameters:
+	    (String) jid - The node owner's jid.
+	    (String) service - The name of the pubsub service.
+	    (String) node -  The name of the pubsub node.
+	    (Array) options -  The configuration options for the  node.
+	    (Function) event_cb - Used to recieve subscription events.
+	    (Function) call_back - Used to determine if node
+	    creation was sucessful.
+	    
+	    Returns:
+	    Iq id used to send subscription.
+	*/
+	subscribe: function(jid,service,node,options, event_cb, call_back) {
+	    
+	    var subid = this._connection.getUniqueId("subscribenode");
+	    
+	    //create subscription options
+	    var sub_options = Strophe.xmlElement("options",[]);
+	    var x = Strophe.xmlElement("x",[["xmlns","jabber:x:data"]]);
+	    var form_field = Strophe.xmlElement("field",[["var","FORM_TYPE"],
+							 ["type","hidden"]]);
+	    var value = Strophe.xmlElement("value",[]);
+	    var text = Strophe.xmlTextNode(Strophe.NS.PUBSUB_SUBSCRIBE_OPTIONS);
+	    value.appendChild(text);
+	    form_field.appendChild(value);
+	    x.appendChild(form_field);
+	    
+	    var sub = $iq({from:jid, to:service, type:'set', id:subid})
+
+	    if(options && options.length && options.length !== 0)
+	    {
+	        for (var i = 0; i < options.length; i++)
+	        {
+		    var val = options[i];
+		    x.appendChild(val);
+	        }
+		sub_options.appendChild(x);
+		
+		sub.c('pubsub', { xmlns:Strophe.NS.PUBSUB }).c('subscribe',
+		{node:node,jid:jid}).up().cnode(sub_options);
+	    }
+	    else
+	    {
+		
+		sub.c('pubsub', { xmlns:Strophe.NS.PUBSUB }).c('subscribe',
+		    {node:node,jid:jid});
+	    }
+	    
+	    
+	    this._connection.addHandler(call_back,
+				  null,
+				  'iq',
+				  null,
+				  subid,
+				  null);
+	    
+	    //add the event handler to receive items 
+	    this._connection.addHandler(event_cb,
+				  null,
+				  'message',
+				  null,
+				  null,
+				  null);
+	    this._connection.send(sub.tree());
+	    return subid;
+	    
+	},
+	/***Function
+	    Unsubscribe from a node.
+	    
+	    Parameters:
+	    (String) jid - The node owner's jid.
+	    (String) service - The name of the pubsub service.
+	    (String) node -  The name of the pubsub node.
+	    (Function) call_back - Used to determine if node
+	    creation was sucessful.
+	    
+	*/    
+	unsubscribe: function(jid,service,node, call_back) {
+	    
+	    var subid = this._connection.getUniqueId("unsubscribenode");
+	    
+	    
+	    var sub = $iq({from:jid, to:service, type:'set', id:subid})
+	    sub.c('pubsub', { xmlns:Strophe.NS.PUBSUB }).c('unsubscribe',
+		{node:node,jid:jid});
+
+	    
+	    
+	    this._connection.addHandler(call_back,
+				  null,
+				  'iq',
+				  null,
+				  subid,
+				  null);
+	    this._connection.send(sub.tree());
+	    
+	    
+	    return subid;
+	    
+	},
+	/***Function
+	    
+	Publish and item to the given pubsub node.
+	
+	Parameters:
+	(String) jid - The node owner's jid.
+	(String) service - The name of the pubsub service.
+	(String) node -  The name of the pubsub node.
+	(Array) items -  The list of items to be published.
+	(Function) call_back - Used to determine if node
+	creation was sucessful.
+	*/    
+	publish: function(jid, service, node, items, call_back) {
+	    var pubid = this._connection.getUniqueId("publishnode");
+	    
+	    
+	    var publish_elem = Strophe.xmlElement("publish",
+						  [["node",
+						    node],
+						   ["jid",
+						    jid]]);
+	    for (var i in items)
+	    {
+		var item = Strophe.xmlElement("item",[]);
+		var entry = Strophe.xmlElement("entry",[]);
+		var t = Strophe.xmlTextNode(items[i]);
+		entry.appendChild(t);
+		item.appendChild(entry);
+		publish_elem.appendChild(item);
+	    }
+	    
+	    var pub = $iq({from:jid, to:service, type:'set', id:pubid})
+	    pub.c('pubsub', { xmlns:Strophe.NS.PUBSUB }).cnode(publish_elem);
+	    
+	    
+	    this._connection.addHandler(call_back,
+				  null,
+				  'iq',
+				  null,
+				  pubid,
+				  null);
+	    this._connection.send(pub.tree());
+	    
+	    
+	    return pubid;
+	},
+	/*Function: items
+	  Used to retrieve the persistent items from the pubsub node.
+	  
+	*/
+	items: function(jid,service,node,ok_callback,error_back) {
+	    var pub = $iq({from:jid, to:service, type:'get'})
+	    
+	    //ask for all items
+	    pub.c('pubsub', 
+		{ xmlns:Strophe.NS.PUBSUB }).c('items',{node:node});
+	    
+	    return this._connection.sendIQ(pub.tree(),ok_callback,error_back);
+	}
+});
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/strophe.min.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/strophe.min.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/strophe.min.js	(revision 2397)
@@ -0,0 +1,1 @@
+var Base64=(function(){var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var obj={encode:function(input){var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;do{chr1=input.charCodeAt(i++);chr2=input.charCodeAt(i++);chr3=input.charCodeAt(i++);enc1=chr1>>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64}else{if(isNaN(chr3)){enc4=64}}output=output+keyStr.charAt(enc1)+keyStr.charAt(enc2)+keyStr.charAt(enc3)+keyStr.charAt(enc4)}while(i<input.length);return output},decode:function(input){var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{enc1=keyStr.indexOf(input.charAt(i++));enc2=keyStr.indexOf(input.charAt(i++));enc3=keyStr.indexOf(input.charAt(i++));enc4=keyStr.indexOf(input.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;output=output+String.fromCharCode(chr1);if(enc3!=64){output=output+String.fromCharCode(chr2)}if(enc4!=64){output=output+String.fromCharCode(chr3)}}while(i<input.length);return output}};return obj})();var MD5=(function(){var hexcase=0;var b64pad="";var chrsz=8;var safe_add=function(x,y){var lsw=(x&65535)+(y&65535);var msw=(x>>16)+(y>>16)+(lsw>>16);return(msw<<16)|(lsw&65535)};var bit_rol=function(num,cnt){return(num<<cnt)|(num>>>(32-cnt))};var str2binl=function(str){var bin=[];var mask=(1<<chrsz)-1;for(var i=0;i<str.length*chrsz;i+=chrsz){bin[i>>5]|=(str.charCodeAt(i/chrsz)&mask)<<(i%32)}return bin};var binl2str=function(bin){var str="";var mask=(1<<chrsz)-1;for(var i=0;i<bin.length*32;i+=chrsz){str+=String.fromCharCode((bin[i>>5]>>>(i%32))&mask)}return str};var binl2hex=function(binarray){var hex_tab=hexcase?"0123456789ABCDEF":"0123456789abcdef";var str="";for(var i=0;i<binarray.length*4;i++){str+=hex_tab.charAt((binarray[i>>2]>>((i%4)*8+4))&15)+hex_tab.charAt((binarray[i>>2]>>((i%4)*8))&15)}return str};var binl2b64=function(binarray){var tab="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var str="";var triplet,j;for(var i=0;i<binarray.length*4;i+=3){triplet=(((binarray[i>>2]>>8*(i%4))&255)<<16)|(((binarray[i+1>>2]>>8*((i+1)%4))&255)<<8)|((binarray[i+2>>2]>>8*((i+2)%4))&255);for(j=0;j<4;j++){if(i*8+j*6>binarray.length*32){str+=b64pad}else{str+=tab.charAt((triplet>>6*(3-j))&63)}}}return str};var md5_cmn=function(q,a,b,x,s,t){return safe_add(bit_rol(safe_add(safe_add(a,q),safe_add(x,t)),s),b)};var md5_ff=function(a,b,c,d,x,s,t){return md5_cmn((b&c)|((~b)&d),a,b,x,s,t)};var md5_gg=function(a,b,c,d,x,s,t){return md5_cmn((b&d)|(c&(~d)),a,b,x,s,t)};var md5_hh=function(a,b,c,d,x,s,t){return md5_cmn(b^c^d,a,b,x,s,t)};var md5_ii=function(a,b,c,d,x,s,t){return md5_cmn(c^(b|(~d)),a,b,x,s,t)};var core_md5=function(x,len){x[len>>5]|=128<<((len)%32);x[(((len+64)>>>9)<<4)+14]=len;var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;var olda,oldb,oldc,oldd;for(var i=0;i<x.length;i+=16){olda=a;oldb=b;oldc=c;oldd=d;a=md5_ff(a,b,c,d,x[i+0],7,-680876936);d=md5_ff(d,a,b,c,x[i+1],12,-389564586);c=md5_ff(c,d,a,b,x[i+2],17,606105819);b=md5_ff(b,c,d,a,x[i+3],22,-1044525330);a=md5_ff(a,b,c,d,x[i+4],7,-176418897);d=md5_ff(d,a,b,c,x[i+5],12,1200080426);c=md5_ff(c,d,a,b,x[i+6],17,-1473231341);b=md5_ff(b,c,d,a,x[i+7],22,-45705983);a=md5_ff(a,b,c,d,x[i+8],7,1770035416);d=md5_ff(d,a,b,c,x[i+9],12,-1958414417);c=md5_ff(c,d,a,b,x[i+10],17,-42063);b=md5_ff(b,c,d,a,x[i+11],22,-1990404162);a=md5_ff(a,b,c,d,x[i+12],7,1804603682);d=md5_ff(d,a,b,c,x[i+13],12,-40341101);c=md5_ff(c,d,a,b,x[i+14],17,-1502002290);b=md5_ff(b,c,d,a,x[i+15],22,1236535329);a=md5_gg(a,b,c,d,x[i+1],5,-165796510);d=md5_gg(d,a,b,c,x[i+6],9,-1069501632);c=md5_gg(c,d,a,b,x[i+11],14,643717713);b=md5_gg(b,c,d,a,x[i+0],20,-373897302);a=md5_gg(a,b,c,d,x[i+5],5,-701558691);d=md5_gg(d,a,b,c,x[i+10],9,38016083);c=md5_gg(c,d,a,b,x[i+15],14,-660478335);b=md5_gg(b,c,d,a,x[i+4],20,-405537848);a=md5_gg(a,b,c,d,x[i+9],5,568446438);d=md5_gg(d,a,b,c,x[i+14],9,-1019803690);c=md5_gg(c,d,a,b,x[i+3],14,-187363961);b=md5_gg(b,c,d,a,x[i+8],20,1163531501);a=md5_gg(a,b,c,d,x[i+13],5,-1444681467);d=md5_gg(d,a,b,c,x[i+2],9,-51403784);c=md5_gg(c,d,a,b,x[i+7],14,1735328473);b=md5_gg(b,c,d,a,x[i+12],20,-1926607734);a=md5_hh(a,b,c,d,x[i+5],4,-378558);d=md5_hh(d,a,b,c,x[i+8],11,-2022574463);c=md5_hh(c,d,a,b,x[i+11],16,1839030562);b=md5_hh(b,c,d,a,x[i+14],23,-35309556);a=md5_hh(a,b,c,d,x[i+1],4,-1530992060);d=md5_hh(d,a,b,c,x[i+4],11,1272893353);c=md5_hh(c,d,a,b,x[i+7],16,-155497632);b=md5_hh(b,c,d,a,x[i+10],23,-1094730640);a=md5_hh(a,b,c,d,x[i+13],4,681279174);d=md5_hh(d,a,b,c,x[i+0],11,-358537222);c=md5_hh(c,d,a,b,x[i+3],16,-722521979);b=md5_hh(b,c,d,a,x[i+6],23,76029189);a=md5_hh(a,b,c,d,x[i+9],4,-640364487);d=md5_hh(d,a,b,c,x[i+12],11,-421815835);c=md5_hh(c,d,a,b,x[i+15],16,530742520);b=md5_hh(b,c,d,a,x[i+2],23,-995338651);a=md5_ii(a,b,c,d,x[i+0],6,-198630844);d=md5_ii(d,a,b,c,x[i+7],10,1126891415);c=md5_ii(c,d,a,b,x[i+14],15,-1416354905);b=md5_ii(b,c,d,a,x[i+5],21,-57434055);a=md5_ii(a,b,c,d,x[i+12],6,1700485571);d=md5_ii(d,a,b,c,x[i+3],10,-1894986606);c=md5_ii(c,d,a,b,x[i+10],15,-1051523);b=md5_ii(b,c,d,a,x[i+1],21,-2054922799);a=md5_ii(a,b,c,d,x[i+8],6,1873313359);d=md5_ii(d,a,b,c,x[i+15],10,-30611744);c=md5_ii(c,d,a,b,x[i+6],15,-1560198380);b=md5_ii(b,c,d,a,x[i+13],21,1309151649);a=md5_ii(a,b,c,d,x[i+4],6,-145523070);d=md5_ii(d,a,b,c,x[i+11],10,-1120210379);c=md5_ii(c,d,a,b,x[i+2],15,718787259);b=md5_ii(b,c,d,a,x[i+9],21,-343485551);a=safe_add(a,olda);b=safe_add(b,oldb);c=safe_add(c,oldc);d=safe_add(d,oldd)}return[a,b,c,d]};var core_hmac_md5=function(key,data){var bkey=str2binl(key);if(bkey.length>16){bkey=core_md5(bkey,key.length*chrsz)}var ipad=new Array(16),opad=new Array(16);for(var i=0;i<16;i++){ipad[i]=bkey[i]^909522486;opad[i]=bkey[i]^1549556828}var hash=core_md5(ipad.concat(str2binl(data)),512+data.length*chrsz);return core_md5(opad.concat(hash),512+128)};var obj={hexdigest:function(s){return binl2hex(core_md5(str2binl(s),s.length*chrsz))},b64digest:function(s){return binl2b64(core_md5(str2binl(s),s.length*chrsz))},hash:function(s){return binl2str(core_md5(str2binl(s),s.length*chrsz))},hmac_hexdigest:function(key,data){return binl2hex(core_hmac_md5(key,data))},hmac_b64digest:function(key,data){return binl2b64(core_hmac_md5(key,data))},hmac_hash:function(key,data){return binl2str(core_hmac_md5(key,data))},test:function(){return MD5.hexdigest("abc")==="900150983cd24fb0d6963f7d28e17f72"}};return obj})();if(!Function.prototype.bind){Function.prototype.bind=function(obj){var func=this;return function(){return func.apply(obj,arguments)}}}if(!Function.prototype.prependArg){Function.prototype.prependArg=function(arg){var func=this;return function(){var newargs=[arg];for(var i=0;i<arguments.length;i++){newargs.push(arguments[i])}return func.apply(this,newargs)}}}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(elt){var len=this.length;var from=Number(arguments[1])||0;from=(from<0)?Math.ceil(from):Math.floor(from);if(from<0){from+=len}for(;from<len;from++){if(from in this&&this[from]===elt){return from}}return -1}}(function(callback){var Strophe;function $build(name,attrs){return new Strophe.Builder(name,attrs)}function $msg(attrs){return new Strophe.Builder("message",attrs)}function $iq(attrs){return new Strophe.Builder("iq",attrs)}function $pres(attrs){return new Strophe.Builder("presence",attrs)}Strophe={VERSION:"1.0.1",NS:{HTTPBIND:"http://jabber.org/protocol/httpbind",BOSH:"urn:xmpp:xbosh",CLIENT:"jabber:client",AUTH:"jabber:iq:auth",ROSTER:"jabber:iq:roster",PROFILE:"jabber:iq:profile",DISCO_INFO:"http://jabber.org/protocol/disco#info",DISCO_ITEMS:"http://jabber.org/protocol/disco#items",MUC:"http://jabber.org/protocol/muc",SASL:"urn:ietf:params:xml:ns:xmpp-sasl",STREAM:"http://etherx.jabber.org/streams",BIND:"urn:ietf:params:xml:ns:xmpp-bind",SESSION:"urn:ietf:params:xml:ns:xmpp-session",VERSION:"jabber:iq:version",STANZAS:"urn:ietf:params:xml:ns:xmpp-stanzas"},addNamespace:function(name,value){Strophe.NS[name]=value},Status:{ERROR:0,CONNECTING:1,CONNFAIL:2,AUTHENTICATING:3,AUTHFAIL:4,CONNECTED:5,DISCONNECTED:6,DISCONNECTING:7,ATTACHED:8},LogLevel:{DEBUG:0,INFO:1,WARN:2,ERROR:3,FATAL:4},ElementType:{NORMAL:1,TEXT:3},TIMEOUT:1.1,SECONDARY_TIMEOUT:0.1,forEachChild:function(elem,elemName,func){var i,childNode;for(i=0;i<elem.childNodes.length;i++){childNode=elem.childNodes[i];if(childNode.nodeType==Strophe.ElementType.NORMAL&&(!elemName||this.isTagEqual(childNode,elemName))){func(childNode)}}},isTagEqual:function(el,name){return el.tagName.toLowerCase()==name.toLowerCase()},_xmlGenerator:null,_makeGenerator:function(){var doc;if(window.ActiveXObject){doc=new ActiveXObject("Microsoft.XMLDOM");doc.appendChild(doc.createElement("strophe"))}else{doc=document.implementation.createDocument("jabber:client","strophe",null)}return doc},xmlElement:function(name){if(!name){return null}var node=null;if(!Strophe._xmlGenerator){Strophe._xmlGenerator=Strophe._makeGenerator()}node=Strophe._xmlGenerator.createElement(name);var a,i,k;for(a=1;a<arguments.length;a++){if(!arguments[a]){continue}if(typeof(arguments[a])=="string"||typeof(arguments[a])=="number"){node.appendChild(Strophe.xmlTextNode(arguments[a]))}else{if(typeof(arguments[a])=="object"&&typeof(arguments[a].sort)=="function"){for(i=0;i<arguments[a].length;i++){if(typeof(arguments[a][i])=="object"&&typeof(arguments[a][i].sort)=="function"){node.setAttribute(arguments[a][i][0],arguments[a][i][1])}}}else{if(typeof(arguments[a])=="object"){for(k in arguments[a]){if(arguments[a].hasOwnProperty(k)){node.setAttribute(k,arguments[a][k])}}}}}}return node},xmlescape:function(text){text=text.replace(/\&/g,"&amp;");text=text.replace(/</g,"&lt;");text=text.replace(/>/g,"&gt;");return text},xmlTextNode:function(text){text=Strophe.xmlescape(text);if(!Strophe._xmlGenerator){Strophe._xmlGenerator=Strophe._makeGenerator()}return Strophe._xmlGenerator.createTextNode(text)},getText:function(elem){if(!elem){return null}var str="";if(elem.childNodes.length===0&&elem.nodeType==Strophe.ElementType.TEXT){str+=elem.nodeValue}for(var i=0;i<elem.childNodes.length;i++){if(elem.childNodes[i].nodeType==Strophe.ElementType.TEXT){str+=elem.childNodes[i].nodeValue}}return str},copyElement:function(elem){var i,el;if(elem.nodeType==Strophe.ElementType.NORMAL){el=Strophe.xmlElement(elem.tagName);for(i=0;i<elem.attributes.length;i++){el.setAttribute(elem.attributes[i].nodeName.toLowerCase(),elem.attributes[i].value)}for(i=0;i<elem.childNodes.length;i++){el.appendChild(Strophe.copyElement(elem.childNodes[i]))}}else{if(elem.nodeType==Strophe.ElementType.TEXT){el=Strophe.xmlTextNode(elem.nodeValue)}}return el},escapeNode:function(node){return node.replace(/^\s+|\s+$/g,"").replace(/\\/g,"\\5c").replace(/ /g,"\\20").replace(/\"/g,"\\22").replace(/\&/g,"\\26").replace(/\'/g,"\\27").replace(/\//g,"\\2f").replace(/:/g,"\\3a").replace(/</g,"\\3c").replace(/>/g,"\\3e").replace(/@/g,"\\40")},unescapeNode:function(node){return node.replace(/\\20/g," ").replace(/\\22/g,'"').replace(/\\26/g,"&").replace(/\\27/g,"'").replace(/\\2f/g,"/").replace(/\\3a/g,":").replace(/\\3c/g,"<").replace(/\\3e/g,">").replace(/\\40/g,"@").replace(/\\5c/g,"\\")},getNodeFromJid:function(jid){if(jid.indexOf("@")<0){return null}return jid.split("@")[0]},getDomainFromJid:function(jid){var bare=Strophe.getBareJidFromJid(jid);if(bare.indexOf("@")<0){return bare}else{var parts=bare.split("@");parts.splice(0,1);return parts.join("@")}},getResourceFromJid:function(jid){var s=jid.split("/");if(s.length<2){return null}s.splice(0,1);return s.join("/")},getBareJidFromJid:function(jid){return jid.split("/")[0]},log:function(level,msg){return},debug:function(msg){this.log(this.LogLevel.DEBUG,msg)},info:function(msg){this.log(this.LogLevel.INFO,msg)},warn:function(msg){this.log(this.LogLevel.WARN,msg)},error:function(msg){this.log(this.LogLevel.ERROR,msg)},fatal:function(msg){this.log(this.LogLevel.FATAL,msg)},serialize:function(elem){var result;if(!elem){return null}if(typeof(elem.tree)==="function"){elem=elem.tree()}var nodeName=elem.nodeName;var i,child;if(elem.getAttribute("_realname")){nodeName=elem.getAttribute("_realname")}result="<"+nodeName;for(i=0;i<elem.attributes.length;i++){if(elem.attributes[i].nodeName!="_realname"){result+=" "+elem.attributes[i].nodeName.toLowerCase()+"='"+elem.attributes[i].value.replace("&","&amp;").replace("'","&apos;").replace("<","&lt;")+"'"}}if(elem.childNodes.length>0){result+=">";for(i=0;i<elem.childNodes.length;i++){child=elem.childNodes[i];if(child.nodeType==Strophe.ElementType.NORMAL){result+=Strophe.serialize(child)}else{if(child.nodeType==Strophe.ElementType.TEXT){result+=child.nodeValue}}}result+="</"+nodeName+">"}else{result+="/>"}return result},_requestId:0,_connectionPlugins:{},addConnectionPlugin:function(name,ptype){Strophe._connectionPlugins[name]=ptype}};Strophe.Builder=function(name,attrs){if(name=="presence"||name=="message"||name=="iq"){if(attrs&&!attrs.xmlns){attrs.xmlns=Strophe.NS.CLIENT}else{if(!attrs){attrs={xmlns:Strophe.NS.CLIENT}}}}this.nodeTree=Strophe.xmlElement(name,attrs);this.node=this.nodeTree};Strophe.Builder.prototype={tree:function(){return this.nodeTree},toString:function(){return Strophe.serialize(this.nodeTree)},up:function(){this.node=this.node.parentNode;return this},attrs:function(moreattrs){for(var k in moreattrs){if(moreattrs.hasOwnProperty(k)){this.node.setAttribute(k,moreattrs[k])}}return this},c:function(name,attrs){var child=Strophe.xmlElement(name,attrs);this.node.appendChild(child);this.node=child;return this},cnode:function(elem){this.node.appendChild(elem);this.node=elem;return this},t:function(text){var child=Strophe.xmlTextNode(text);this.node.appendChild(child);return this}};Strophe.Handler=function(handler,ns,name,type,id,from,options){this.handler=handler;this.ns=ns;this.name=name;this.type=type;this.id=id;this.options=options||{matchbare:false};if(!this.options.matchBare){this.options.matchBare=false}if(this.options.matchBare){this.from=Strophe.getBareJidFromJid(from)}else{this.from=from}this.user=true};Strophe.Handler.prototype={isMatch:function(elem){var nsMatch;var from=null;if(this.options.matchBare){from=Strophe.getBareJidFromJid(elem.getAttribute("from"))}else{from=elem.getAttribute("from")}nsMatch=false;if(!this.ns){nsMatch=true}else{var self=this;Strophe.forEachChild(elem,null,function(elem){if(elem.getAttribute("xmlns")==self.ns){nsMatch=true}});nsMatch=nsMatch||elem.getAttribute("xmlns")==this.ns}if(nsMatch&&(!this.name||Strophe.isTagEqual(elem,this.name))&&(!this.type||elem.getAttribute("type")===this.type)&&(!this.id||elem.getAttribute("id")===this.id)&&(!this.from||from===this.from)){return true}return false},run:function(elem){var result=null;try{result=this.handler(elem)}catch(e){if(e.sourceURL){Strophe.fatal("error: "+this.handler+" "+e.sourceURL+":"+e.line+" - "+e.name+": "+e.message)}else{if(e.fileName){if(typeof(console)!="undefined"){console.trace();console.error(this.handler," - error - ",e,e.message)}Strophe.fatal("error: "+this.handler+" "+e.fileName+":"+e.lineNumber+" - "+e.name+": "+e.message)}else{Strophe.fatal("error: "+this.handler)}}throw e}return result},toString:function(){return"{Handler: "+this.handler+"("+this.name+","+this.id+","+this.ns+")}"}};Strophe.TimedHandler=function(period,handler){this.period=period;this.handler=handler;this.lastCalled=new Date().getTime();this.user=true};Strophe.TimedHandler.prototype={run:function(){this.lastCalled=new Date().getTime();return this.handler()},reset:function(){this.lastCalled=new Date().getTime()},toString:function(){return"{TimedHandler: "+this.handler+"("+this.period+")}"}};Strophe.Request=function(elem,func,rid,sends){this.id=++Strophe._requestId;this.xmlData=elem;this.data=Strophe.serialize(elem);this.origFunc=func;this.func=func;this.rid=rid;this.date=NaN;this.sends=sends||0;this.abort=false;this.dead=null;this.age=function(){if(!this.date){return 0}var now=new Date();return(now-this.date)/1000};this.timeDead=function(){if(!this.dead){return 0}var now=new Date();return(now-this.dead)/1000};this.xhr=this._newXHR()};Strophe.Request.prototype={getResponse:function(){var node=null;if(this.xhr.responseXML&&this.xhr.responseXML.documentElement){node=this.xhr.responseXML.documentElement;if(node.tagName=="parsererror"){Strophe.error("invalid response received");Strophe.error("responseText: "+this.xhr.responseText);Strophe.error("responseXML: "+Strophe.serialize(this.xhr.responseXML));throw"parsererror"}}else{if(this.xhr.responseText){Strophe.error("invalid response received");Strophe.error("responseText: "+this.xhr.responseText);Strophe.error("responseXML: "+Strophe.serialize(this.xhr.responseXML))}}return node},_newXHR:function(){var xhr=null;if(window.XMLHttpRequest){xhr=new XMLHttpRequest();if(xhr.overrideMimeType){xhr.overrideMimeType("text/xml")}}else{if(window.ActiveXObject){xhr=new ActiveXObject("Microsoft.XMLHTTP")}}xhr.onreadystatechange=this.func.prependArg(this);return xhr}};Strophe.Connection=function(service){this.service=service;this.jid="";this.rid=Math.floor(Math.random()*4294967295);this.sid=null;this.streamId=null;this.do_session=false;this.do_bind=false;this.timedHandlers=[];this.handlers=[];this.removeTimeds=[];this.removeHandlers=[];this.addTimeds=[];this.addHandlers=[];this._idleTimeout=null;this._disconnectTimeout=null;this.authenticated=false;this.disconnecting=false;this.connected=false;this.errors=0;this.paused=false;this.hold=1;this.wait=60;this.window=5;this._data=[];this._requests=[];this._uniqueId=Math.round(Math.random()*10000);this._sasl_success_handler=null;this._sasl_failure_handler=null;this._sasl_challenge_handler=null;this._idleTimeout=setTimeout(this._onIdle.bind(this),100);for(var k in Strophe._connectionPlugins){if(Strophe._connectionPlugins.hasOwnProperty(k)){var ptype=Strophe._connectionPlugins[k];var F=function(){};F.prototype=ptype;this[k]=new F();this[k].init(this)}}};Strophe.Connection.prototype={reset:function(){this.rid=Math.floor(Math.random()*4294967295);this.sid=null;this.streamId=null;this.do_session=false;this.do_bind=false;this.timedHandlers=[];this.handlers=[];this.removeTimeds=[];this.removeHandlers=[];this.addTimeds=[];this.addHandlers=[];this.authenticated=false;this.disconnecting=false;this.connected=false;this.errors=0;this._requests=[];this._uniqueId=Math.round(Math.random()*10000)},pause:function(){this.paused=true},resume:function(){this.paused=false},getUniqueId:function(suffix){if(typeof(suffix)=="string"||typeof(suffix)=="number"){return ++this._uniqueId+":"+suffix}else{return ++this._uniqueId+""}},connect:function(jid,pass,callback,wait,hold){this.jid=jid;this.pass=pass;this.connect_callback=callback;this.disconnecting=false;this.connected=false;this.authenticated=false;this.errors=0;this.wait=wait||this.wait;this.hold=hold||this.hold;this.domain=Strophe.getDomainFromJid(this.jid);var body=this._buildBody().attrs({to:this.domain,"xml:lang":"en",wait:this.wait,hold:this.hold,content:"text/xml; charset=utf-8",ver:"1.6","xmpp:version":"1.0","xmlns:xmpp":Strophe.NS.BOSH});this._changeConnectStatus(Strophe.Status.CONNECTING,null);this._requests.push(new Strophe.Request(body.tree(),this._onRequestStateChange.bind(this).prependArg(this._connect_cb.bind(this)),body.tree().getAttribute("rid")));this._throttledRequestHandler()},attach:function(jid,sid,rid,callback,wait,hold,wind){this.jid=jid;this.sid=sid;this.rid=rid;this.connect_callback=callback;this.domain=Strophe.getDomainFromJid(this.jid);this.authenticated=true;this.connected=true;this.wait=wait||this.wait;this.hold=hold||this.hold;this.window=wind||this.window;this._changeConnectStatus(Strophe.Status.ATTACHED,null)},xmlInput:function(elem){return},xmlOutput:function(elem){return},rawInput:function(data){return},rawOutput:function(data){return},send:function(elem){if(elem===null){return}if(typeof(elem.sort)==="function"){for(var i=0;i<elem.length;i++){this._queueData(elem[i])}}else{if(typeof(elem.tree)==="function"){this._queueData(elem.tree())}else{this._queueData(elem)}}this._throttledRequestHandler();clearTimeout(this._idleTimeout);this._idleTimeout=setTimeout(this._onIdle.bind(this),100)},flush:function(){clearTimeout(this._idleTimeout);this._onIdle()},sendIQ:function(elem,callback,errback,timeout){var timeoutHandler=null;var that=this;if(typeof(elem.tree)==="function"){elem=elem.tree()}var id=elem.getAttribute("id");if(!id){id=this.getUniqueId("sendIQ");elem.setAttribute("id",id)}var handler=this.addHandler(function(stanza){if(timeoutHandler){that.deleteTimedHandler(timeoutHandler)}var iqtype=stanza.getAttribute("type");if(iqtype==="result"){if(callback){callback(stanza)}}else{if(iqtype==="error"){if(errback){errback(stanza)}}else{throw {name:"StropheError",message:"Got bad IQ type of "+iqtype}}}},null,"iq",null,id);if(timeout){timeoutHandler=this.addTimedHandler(timeout,function(){that.deleteHandler(handler);if(errback){errback(null)}return false})}this.send(elem);return id},_queueData:function(element){if(element===null||!element.tagName||!element.childNodes){throw {name:"StropheError",message:"Cannot queue non-DOMElement."}}this._data.push(element)},_sendRestart:function(){this._data.push("restart");this._throttledRequestHandler();clearTimeout(this._idleTimeout);this._idleTimeout=setTimeout(this._onIdle.bind(this),100)},addTimedHandler:function(period,handler){var thand=new Strophe.TimedHandler(period,handler);this.addTimeds.push(thand);return thand},deleteTimedHandler:function(handRef){this.removeTimeds.push(handRef)},addHandler:function(handler,ns,name,type,id,from,options){var hand=new Strophe.Handler(handler,ns,name,type,id,from,options);this.addHandlers.push(hand);return hand},deleteHandler:function(handRef){this.removeHandlers.push(handRef)},disconnect:function(reason){this._changeConnectStatus(Strophe.Status.DISCONNECTING,reason);Strophe.info("Disconnect was called because: "+reason);if(this.connected){this._disconnectTimeout=this._addSysTimedHandler(3000,this._onDisconnectTimeout.bind(this));this._sendTerminate()}},_changeConnectStatus:function(status,condition){for(var k in Strophe._connectionPlugins){if(Strophe._connectionPlugins.hasOwnProperty(k)){var plugin=this[k];if(plugin.statusChanged){try{plugin.statusChanged(status,condition)}catch(err){Strophe.error(""+k+" plugin caused an exception changing status: "+err)}}}}if(this.connect_callback){try{this.connect_callback(status,condition)}catch(e){Strophe.error("User connection callback caused an exception: "+e)}}},_buildBody:function(){var bodyWrap=$build("body",{rid:this.rid++,xmlns:Strophe.NS.HTTPBIND});if(this.sid!==null){bodyWrap.attrs({sid:this.sid})}return bodyWrap},_removeRequest:function(req){Strophe.debug("removing request");var i;for(i=this._requests.length-1;i>=0;i--){if(req==this._requests[i]){this._requests.splice(i,1)}}req.xhr.onreadystatechange=function(){};this._throttledRequestHandler()},_restartRequest:function(i){var req=this._requests[i];if(req.dead===null){req.dead=new Date()}this._processRequest(i)},_processRequest:function(i){var req=this._requests[i];var reqStatus=-1;try{if(req.xhr.readyState==4){reqStatus=req.xhr.status}}catch(e){Strophe.error("caught an error in _requests["+i+"], reqStatus: "+reqStatus)}if(typeof(reqStatus)=="undefined"){reqStatus=-1}var time_elapsed=req.age();var primaryTimeout=(!isNaN(time_elapsed)&&time_elapsed>Math.floor(Strophe.TIMEOUT*this.wait));var secondaryTimeout=(req.dead!==null&&req.timeDead()>Math.floor(Strophe.SECONDARY_TIMEOUT*this.wait));var requestCompletedWithServerError=(req.xhr.readyState==4&&(reqStatus<1||reqStatus>=500));if(primaryTimeout||secondaryTimeout||requestCompletedWithServerError){if(secondaryTimeout){Strophe.error("Request "+this._requests[i].id+" timed out (secondary), restarting")}req.abort=true;req.xhr.abort();req.xhr.onreadystatechange=function(){};this._requests[i]=new Strophe.Request(req.xmlData,req.origFunc,req.rid,req.sends);req=this._requests[i]}if(req.xhr.readyState===0){Strophe.debug("request id "+req.id+"."+req.sends+" posting");req.date=new Date();try{req.xhr.open("POST",this.service,true)}catch(e2){Strophe.error("XHR open failed.");if(!this.connected){this._changeConnectStatus(Strophe.Status.CONNFAIL,"bad-service")}this.disconnect();return}var sendFunc=function(){req.xhr.send(req.data)};if(req.sends>1){var backoff=Math.pow(req.sends,3)*1000;setTimeout(sendFunc,backoff)}else{sendFunc()}req.sends++;this.xmlOutput(req.xmlData);this.rawOutput(req.data)}else{Strophe.debug("_processRequest: "+(i===0?"first":"second")+" request has readyState of "+req.xhr.readyState)}},_throttledRequestHandler:function(){if(!this._requests){Strophe.debug("_throttledRequestHandler called with undefined requests")}else{Strophe.debug("_throttledRequestHandler called with "+this._requests.length+" requests")}if(!this._requests||this._requests.length===0){return}if(this._requests.length>0){this._processRequest(0)}if(this._requests.length>1&&Math.abs(this._requests[0].rid-this._requests[1].rid)<this.window-1){this._processRequest(1)}},_onRequestStateChange:function(func,req){Strophe.debug("request id "+req.id+"."+req.sends+" state changed to "+req.xhr.readyState);if(req.abort){req.abort=false;return}var reqStatus;if(req.xhr.readyState==4){reqStatus=0;try{reqStatus=req.xhr.status}catch(e){}if(typeof(reqStatus)=="undefined"){reqStatus=0}if(this.disconnecting){if(reqStatus>=400){this._hitError(reqStatus);return}}var reqIs0=(this._requests[0]==req);var reqIs1=(this._requests[1]==req);if((reqStatus>0&&reqStatus<500)||req.sends>5){this._removeRequest(req);Strophe.debug("request id "+req.id+" should now be removed")}if(reqStatus==200){if(reqIs1||(reqIs0&&this._requests.length>0&&this._requests[0].age()>Math.floor(Strophe.SECONDARY_TIMEOUT*this.wait))){this._restartRequest(0)}Strophe.debug("request id "+req.id+"."+req.sends+" got 200");func(req);this.errors=0}else{Strophe.error("request id "+req.id+"."+req.sends+" error "+reqStatus+" happened");if(reqStatus===0||(reqStatus>=400&&reqStatus<600)||reqStatus>=12000){this._hitError(reqStatus);if(reqStatus>=400&&reqStatus<500){this._changeConnectStatus(Strophe.Status.DISCONNECTING,null);this._doDisconnect()}}}if(!((reqStatus>0&&reqStatus<10000)||req.sends>5)){this._throttledRequestHandler()}}},_hitError:function(reqStatus){this.errors++;Strophe.warn("request errored, status: "+reqStatus+", number of errors: "+this.errors);if(this.errors>4){this._onDisconnectTimeout()}},_doDisconnect:function(){Strophe.info("_doDisconnect was called");this.authenticated=false;this.disconnecting=false;this.sid=null;this.streamId=null;this.rid=Math.floor(Math.random()*4294967295);if(this.connected){this._changeConnectStatus(Strophe.Status.DISCONNECTED,null);this.connected=false}this.handlers=[];this.timedHandlers=[];this.removeTimeds=[];this.removeHandlers=[];this.addTimeds=[];this.addHandlers=[]},_dataRecv:function(req){try{var elem=req.getResponse()}catch(e){if(e!="parsererror"){throw e}this.disconnect("strophe-parsererror")}if(elem===null){return}this.xmlInput(elem);this.rawInput(Strophe.serialize(elem));var i,hand;while(this.removeHandlers.length>0){hand=this.removeHandlers.pop();i=this.handlers.indexOf(hand);if(i>=0){this.handlers.splice(i,1)}}while(this.addHandlers.length>0){this.handlers.push(this.addHandlers.pop())}if(this.disconnecting&&this._requests.length===0){this.deleteTimedHandler(this._disconnectTimeout);this._disconnectTimeout=null;this._doDisconnect();return}var typ=elem.getAttribute("type");var cond,conflict;if(typ!==null&&typ=="terminate"){cond=elem.getAttribute("condition");conflict=elem.getElementsByTagName("conflict");if(cond!==null){if(cond=="remote-stream-error"&&conflict.length>0){cond="conflict"}this._changeConnectStatus(Strophe.Status.CONNFAIL,cond)}else{this._changeConnectStatus(Strophe.Status.CONNFAIL,"unknown")}this.disconnect();return}var self=this;Strophe.forEachChild(elem,null,function(child){var i,newList;newList=self.handlers;self.handlers=[];for(i=0;i<newList.length;i++){var hand=newList[i];if(hand.isMatch(child)&&(self.authenticated||!hand.user)){if(hand.run(child)){self.handlers.push(hand)}}else{self.handlers.push(hand)}}})},_sendTerminate:function(){Strophe.info("_sendTerminate was called");var body=this._buildBody().attrs({type:"terminate"});if(this.authenticated){body.c("presence",{xmlns:Strophe.NS.CLIENT,type:"unavailable"})}this.disconnecting=true;var req=new Strophe.Request(body.tree(),this._onRequestStateChange.bind(this).prependArg(this._dataRecv.bind(this)),body.tree().getAttribute("rid"));this._requests.push(req);this._throttledRequestHandler()},_connect_cb:function(req){Strophe.info("_connect_cb was called");this.connected=true;var bodyWrap=req.getResponse();if(!bodyWrap){return}this.xmlInput(bodyWrap);this.rawInput(Strophe.serialize(bodyWrap));var typ=bodyWrap.getAttribute("type");var cond,conflict;if(typ!==null&&typ=="terminate"){cond=bodyWrap.getAttribute("condition");conflict=bodyWrap.getElementsByTagName("conflict");if(cond!==null){if(cond=="remote-stream-error"&&conflict.length>0){cond="conflict"}this._changeConnectStatus(Strophe.Status.CONNFAIL,cond)}else{this._changeConnectStatus(Strophe.Status.CONNFAIL,"unknown")}return}if(!this.sid){this.sid=bodyWrap.getAttribute("sid")}if(!this.stream_id){this.stream_id=bodyWrap.getAttribute("authid")}var wind=bodyWrap.getAttribute("requests");if(wind){this.window=parseInt(wind,10)}var hold=bodyWrap.getAttribute("hold");if(hold){this.hold=parseInt(hold,10)}var wait=bodyWrap.getAttribute("wait");if(wait){this.wait=parseInt(wait,10)}var do_sasl_plain=false;var do_sasl_digest_md5=false;var do_sasl_anonymous=false;var mechanisms=bodyWrap.getElementsByTagName("mechanism");var i,mech,auth_str,hashed_auth_str;if(mechanisms.length>0){for(i=0;i<mechanisms.length;i++){mech=Strophe.getText(mechanisms[i]);if(mech=="DIGEST-MD5"){do_sasl_digest_md5=true}else{if(mech=="PLAIN"){do_sasl_plain=true}else{if(mech=="ANONYMOUS"){do_sasl_anonymous=true}}}}}else{var body=this._buildBody();this._requests.push(new Strophe.Request(body.tree(),this._onRequestStateChange.bind(this).prependArg(this._connect_cb.bind(this)),body.tree().getAttribute("rid")));this._throttledRequestHandler();return}if(Strophe.getNodeFromJid(this.jid)===null&&do_sasl_anonymous){this._changeConnectStatus(Strophe.Status.AUTHENTICATING,null);this._sasl_success_handler=this._addSysHandler(this._sasl_success_cb.bind(this),null,"success",null,null);this._sasl_failure_handler=this._addSysHandler(this._sasl_failure_cb.bind(this),null,"failure",null,null);this.send($build("auth",{xmlns:Strophe.NS.SASL,mechanism:"ANONYMOUS"}).tree())}else{if(Strophe.getNodeFromJid(this.jid)===null){this._changeConnectStatus(Strophe.Status.CONNFAIL,"x-strophe-bad-non-anon-jid");this.disconnect()}else{if(do_sasl_digest_md5){this._changeConnectStatus(Strophe.Status.AUTHENTICATING,null);this._sasl_challenge_handler=this._addSysHandler(this._sasl_challenge1_cb.bind(this),null,"challenge",null,null);this._sasl_failure_handler=this._addSysHandler(this._sasl_failure_cb.bind(this),null,"failure",null,null);this.send($build("auth",{xmlns:Strophe.NS.SASL,mechanism:"DIGEST-MD5"}).tree())}else{if(do_sasl_plain){auth_str=Strophe.getBareJidFromJid(this.jid);auth_str=auth_str+"\u0000";auth_str=auth_str+Strophe.getNodeFromJid(this.jid);auth_str=auth_str+"\u0000";auth_str=auth_str+this.pass;this._changeConnectStatus(Strophe.Status.AUTHENTICATING,null);this._sasl_success_handler=this._addSysHandler(this._sasl_success_cb.bind(this),null,"success",null,null);this._sasl_failure_handler=this._addSysHandler(this._sasl_failure_cb.bind(this),null,"failure",null,null);hashed_auth_str=Base64.encode(auth_str);this.send($build("auth",{xmlns:Strophe.NS.SASL,mechanism:"PLAIN"}).t(hashed_auth_str).tree())}else{this._changeConnectStatus(Strophe.Status.AUTHENTICATING,null);this._addSysHandler(this._auth1_cb.bind(this),null,null,null,"_auth_1");this.send($iq({type:"get",to:this.domain,id:"_auth_1"}).c("query",{xmlns:Strophe.NS.AUTH}).c("username",{}).t(Strophe.getNodeFromJid(this.jid)).tree())}}}}},_sasl_challenge1_cb:function(elem){var attribMatch=/([a-z]+)=("[^"]+"|[^,"]+)(?:,|$)/;var challenge=Base64.decode(Strophe.getText(elem));var cnonce=MD5.hexdigest(Math.random()*1234567890);var realm="";var host=null;var nonce="";var qop="";var matches;this.deleteHandler(this._sasl_failure_handler);while(challenge.match(attribMatch)){matches=challenge.match(attribMatch);challenge=challenge.replace(matches[0],"");matches[2]=matches[2].replace(/^"(.+)"$/,"$1");switch(matches[1]){case"realm":realm=matches[2];break;case"nonce":nonce=matches[2];break;case"qop":qop=matches[2];break;case"host":host=matches[2];break}}var digest_uri="xmpp/"+this.domain;if(host!==null){digest_uri=digest_uri+"/"+host}var A1=MD5.hash(Strophe.getNodeFromJid(this.jid)+":"+realm+":"+this.pass)+":"+nonce+":"+cnonce;var A2="AUTHENTICATE:"+digest_uri;var responseText="";responseText+="username="+this._quote(Strophe.getNodeFromJid(this.jid))+",";responseText+="realm="+this._quote(realm)+",";responseText+="nonce="+this._quote(nonce)+",";responseText+="cnonce="+this._quote(cnonce)+",";responseText+='nc="00000001",';responseText+='qop="auth",';responseText+="digest-uri="+this._quote(digest_uri)+",";responseText+="response="+this._quote(MD5.hexdigest(MD5.hexdigest(A1)+":"+nonce+":00000001:"+cnonce+":auth:"+MD5.hexdigest(A2)))+",";responseText+='charset="utf-8"';this._sasl_challenge_handler=this._addSysHandler(this._sasl_challenge2_cb.bind(this),null,"challenge",null,null);this._sasl_success_handler=this._addSysHandler(this._sasl_success_cb.bind(this),null,"success",null,null);this._sasl_failure_handler=this._addSysHandler(this._sasl_failure_cb.bind(this),null,"failure",null,null);this.send($build("response",{xmlns:Strophe.NS.SASL}).t(Base64.encode(responseText)).tree());return false},_quote:function(str){return'"'+str.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'},_sasl_challenge2_cb:function(elem){this.deleteHandler(this._sasl_success_handler);this.deleteHandler(this._sasl_failure_handler);this._sasl_success_handler=this._addSysHandler(this._sasl_success_cb.bind(this),null,"success",null,null);this._sasl_failure_handler=this._addSysHandler(this._sasl_failure_cb.bind(this),null,"failure",null,null);this.send($build("response",{xmlns:Strophe.NS.SASL}).tree());return false},_auth1_cb:function(elem){var iq=$iq({type:"set",id:"_auth_2"}).c("query",{xmlns:Strophe.NS.AUTH}).c("username",{}).t(Strophe.getNodeFromJid(this.jid)).up().c("password").t(this.pass);if(!Strophe.getResourceFromJid(this.jid)){this.jid=Strophe.getBareJidFromJid(this.jid)+"/strophe"}iq.up().c("resource",{}).t(Strophe.getResourceFromJid(this.jid));this._addSysHandler(this._auth2_cb.bind(this),null,null,null,"_auth_2");this.send(iq.tree());return false},_sasl_success_cb:function(elem){Strophe.info("SASL authentication succeeded.");this.deleteHandler(this._sasl_failure_handler);this._sasl_failure_handler=null;if(this._sasl_challenge_handler){this.deleteHandler(this._sasl_challenge_handler);this._sasl_challenge_handler=null}this._addSysHandler(this._sasl_auth1_cb.bind(this),null,"stream:features",null,null);this._sendRestart();return false},_sasl_auth1_cb:function(elem){var i,child;for(i=0;i<elem.childNodes.length;i++){child=elem.childNodes[i];if(child.nodeName=="bind"){this.do_bind=true}if(child.nodeName=="session"){this.do_session=true}}if(!this.do_bind){this._changeConnectStatus(Strophe.Status.AUTHFAIL,null);return false}else{this._addSysHandler(this._sasl_bind_cb.bind(this),null,null,null,"_bind_auth_2");var resource=Strophe.getResourceFromJid(this.jid);if(resource){this.send($iq({type:"set",id:"_bind_auth_2"}).c("bind",{xmlns:Strophe.NS.BIND}).c("resource",{}).t(resource).tree())}else{this.send($iq({type:"set",id:"_bind_auth_2"}).c("bind",{xmlns:Strophe.NS.BIND}).tree())}}return false},_sasl_bind_cb:function(elem){if(elem.getAttribute("type")=="error"){Strophe.info("SASL binding failed.");this._changeConnectStatus(Strophe.Status.AUTHFAIL,null);return false}var bind=elem.getElementsByTagName("bind");var jidNode;if(bind.length>0){jidNode=bind[0].getElementsByTagName("jid");if(jidNode.length>0){this.jid=Strophe.getText(jidNode[0]);if(this.do_session){this._addSysHandler(this._sasl_session_cb.bind(this),null,null,null,"_session_auth_2");this.send($iq({type:"set",id:"_session_auth_2"}).c("session",{xmlns:Strophe.NS.SESSION}).tree())}else{this.authenticated=true;this._changeConnectStatus(Strophe.Status.CONNECTED,null)}}}else{Strophe.info("SASL binding failed.");this._changeConnectStatus(Strophe.Status.AUTHFAIL,null);return false}},_sasl_session_cb:function(elem){if(elem.getAttribute("type")=="result"){this.authenticated=true;this._changeConnectStatus(Strophe.Status.CONNECTED,null)}else{if(elem.getAttribute("type")=="error"){Strophe.info("Session creation failed.");this._changeConnectStatus(Strophe.Status.AUTHFAIL,null);return false}}return false},_sasl_failure_cb:function(elem){if(this._sasl_success_handler){this.deleteHandler(this._sasl_success_handler);this._sasl_success_handler=null}if(this._sasl_challenge_handler){this.deleteHandler(this._sasl_challenge_handler);this._sasl_challenge_handler=null}this._changeConnectStatus(Strophe.Status.AUTHFAIL,null);return false},_auth2_cb:function(elem){if(elem.getAttribute("type")=="result"){this.authenticated=true;this._changeConnectStatus(Strophe.Status.CONNECTED,null)}else{if(elem.getAttribute("type")=="error"){this._changeConnectStatus(Strophe.Status.AUTHFAIL,null);this.disconnect()}}return false},_addSysTimedHandler:function(period,handler){var thand=new Strophe.TimedHandler(period,handler);thand.user=false;this.addTimeds.push(thand);return thand},_addSysHandler:function(handler,ns,name,type,id){var hand=new Strophe.Handler(handler,ns,name,type,id);hand.user=false;this.addHandlers.push(hand);return hand},_onDisconnectTimeout:function(){Strophe.info("_onDisconnectTimeout was called");var req;while(this._requests.length>0){req=this._requests.pop();req.abort=true;req.xhr.abort();req.xhr.onreadystatechange=function(){}}this._doDisconnect();return false},_onIdle:function(){var i,thand,since,newList;while(this.removeTimeds.length>0){thand=this.removeTimeds.pop();i=this.timedHandlers.indexOf(thand);if(i>=0){this.timedHandlers.splice(i,1)}}while(this.addTimeds.length>0){this.timedHandlers.push(this.addTimeds.pop())}var now=new Date().getTime();newList=[];for(i=0;i<this.timedHandlers.length;i++){thand=this.timedHandlers[i];if(this.authenticated||!thand.user){since=thand.lastCalled+thand.period;if(since-now<=0){if(thand.run()){newList.push(thand)}}else{newList.push(thand)}}}this.timedHandlers=newList;var body,time_elapsed;if(this.authenticated&&this._requests.length===0&&this._data.length===0&&!this.disconnecting){Strophe.info("no requests during idle cycle, sending blank request");this._data.push(null)}if(this._requests.length<2&&this._data.length>0&&!this.paused){body=this._buildBody();for(i=0;i<this._data.length;i++){if(this._data[i]!==null){if(this._data[i]==="restart"){body.attrs({to:this.domain,"xml:lang":"en","xmpp:restart":"true","xmlns:xmpp":Strophe.NS.BOSH})}else{body.cnode(this._data[i]).up()}}}delete this._data;this._data=[];this._requests.push(new Strophe.Request(body.tree(),this._onRequestStateChange.bind(this).prependArg(this._dataRecv.bind(this)),body.tree().getAttribute("rid")));this._processRequest(this._requests.length-1)}if(this._requests.length>0){time_elapsed=this._requests[0].age();if(this._requests[0].dead!==null){if(this._requests[0].timeDead()>Math.floor(Strophe.SECONDARY_TIMEOUT*this.wait)){this._throttledRequestHandler()}}if(time_elapsed>Math.floor(Strophe.TIMEOUT*this.wait)){Strophe.warn("Request "+this._requests[0].id+" timed out, over "+Math.floor(Strophe.TIMEOUT*this.wait)+" seconds since last activity");this._throttledRequestHandler()}}clearTimeout(this._idleTimeout);this._idleTimeout=setTimeout(this._onIdle.bind(this),100)}};if(callback){callback(Strophe,$build,$msg,$iq,$pres)}})(function(){window.Strophe=arguments[0];window.$build=arguments[1];window.$msg=arguments[2];window.$iq=arguments[3];window.$pres=arguments[4]});
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/testsuite.css
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/testsuite.css	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/testsuite.css	(revision 2397)
@@ -0,0 +1,120 @@
+body, div, h1 { font-family: 'trebuchet ms', verdana, arial; margin: 0; padding: 0 }
+body {font-size: 10pt; }
+h1 { padding: 15px; font-size: large; background-color: #06b; color: white; }
+h1 a { color: white; }
+h2 { padding: 10px; background-color: #eee; color: black; margin: 0; font-size: small; font-weight: normal }
+
+.pass { color: green; } 
+.fail { color: red; } 
+p.result { margin-left: 1em; }
+
+#banner { height: 2em; border-bottom: 1px solid white; }
+h2.pass { background-color: green; }
+h2.fail { background-color: red; }
+
+div.testrunner-toolbar { background: #eee; border-top: 1px solid black; padding: 10px; }
+
+ol#tests > li > strong { cursor:pointer; }
+
+div#fx-tests h4 {
+	background: red;
+}
+
+div#fx-tests h4.pass {
+	background: green;
+}
+
+div#fx-tests div.box {
+	background: red url(data/cow.jpg) no-repeat;
+	overflow: hidden;
+	border: 2px solid #000;
+}
+
+div#fx-tests div.overflow {
+	overflow: visible;
+}
+
+div.inline {
+	display: inline;
+}
+
+div.autoheight {
+	height: auto;
+}
+
+div.autowidth {
+	width: auto;
+}
+
+div.autoopacity {
+	opacity: auto;
+}
+
+div.largewidth {
+	width: 100px;
+}
+
+div.largeheight {
+	height: 100px;
+}
+
+div.largeopacity {
+	filter: progid:DXImageTransform.Microsoft.Alpha(opacity=100);
+}
+
+div.medwidth {
+	width: 50px;
+}
+
+div.medheight {
+	height: 50px;
+}
+
+div.medopacity {
+	opacity: 0.5;
+	filter: progid:DXImageTransform.Microsoft.Alpha(opacity=50);
+}
+
+div.nowidth {
+	width: 0px;
+}
+
+div.noheight {
+	height: 0px;
+}
+
+div.noopacity {
+	opacity: 0;
+	filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0);
+}
+
+div.hidden {
+	display: none;
+}
+
+div#fx-tests div.widewidth {
+	background-repeat: repeat-x;
+}
+
+div#fx-tests div.wideheight {
+	background-repeat: repeat-y;
+}
+
+div#fx-tests div.widewidth.wideheight {
+	background-repeat: repeat;
+}
+
+div#fx-tests div.noback {
+	background-image: none;
+}
+
+div.chain, div.chain div { width: 100px; height: 20px; position: relative; float: left; }
+div.chain div { position: absolute; top: 0px; left: 0px; }
+
+div.chain.test { background: red; }
+div.chain.test div { background: green; }
+
+div.chain.out { background: green; }
+div.chain.out div { background: red; display: none; }
+
+div#show-tests * { display: none; }
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/jsyuitests.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/jsyuitests.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/jsyuitests.js	(revision 2397)
@@ -0,0 +1,31 @@
+YUI.add('strophe.test', function (Y) {
+    Y.namespace("strophe.test");
+    var R = Y.namespace("strophe.test.Runner");
+
+    R.add = function (suite) {
+        for (var i = 0; i < suite.items.length; i++) {
+            TestCase(suite.items[i].name, suite.items[i]);
+        }
+    };
+}, '1.0', {requires: ['test']});
+
+YUI().use("test", "strophe.test", function (Y) {
+    var Assert = Y.Assert;
+
+    var suite = new Y.Test.Suite("Strophe Tests");
+    suite.add(new Y.Test.Case({
+        name: "JIDs",
+
+        testNormalJid: function () {
+            var jid = "darcy@pemberley.lit/library";
+
+            Assert.areSame("darcy", Strophe.getNodeFromJid(jid));
+            Assert.areSame("pemberley.lit", Strophe.getDomainFromJid(jid));
+            Assert.areSame("library", Strophe.getResourceFromJid(jid));
+            Assert.areSame("darcy@pemberley.lit",
+                           Strophe.getBareJidFromJid(jid));
+        }
+    }));
+
+    Y.strophe.test.Runner.add(suite);
+});
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/pubsub.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/pubsub.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/pubsub.html	(revision 2397)
@@ -0,0 +1,28 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
+                    "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+  <script src="http://code.jquery.com/jquery-latest.js"></script>
+  <script type="text/javascript" src="testrunner.js"></script>
+  <script type="text/javascript" src="../strophe.js"></script>
+  <script type="text/javascript" src="../plugins/strophe.pubsub.js"></script>
+  <script type="text/javascript" src="pubsub.js"></script>
+  <link rel="stylesheet" href="testsuite.css" type="text/css" media="screen" />
+
+  <script>
+   Strophe.Test.run();
+  </script>
+  
+</head>
+<body>
+ <h1>QUnit tests for Strophe</h1>
+ <h2 id="userAgent"></h2>
+ <div><a style='display:none;' id="run_tests" href='#'>Run tests.</a>
+ <a sytle='display:none;' id="disconnect" href='#'>Disconnect.</a>
+ </div>
+ <div id="published_item">
+ </div>
+ <ol id="tests"></ol>
+ <div id='main'></div> 
+</body>
+</html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/testrunner.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/testrunner.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/testrunner.js	(revision 2397)
@@ -0,0 +1,735 @@
+/*
+ * QUnit - jQuery unit testrunner
+ * 
+ * http://docs.jquery.com/QUnit
+ *
+ * Copyright (c) 2008 John Resig, JÃ¶rn Zaefferer
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * $Id$
+ */
+
+(function($) {
+
+// Tests for equality any JavaScript type and structure without unexpected results.
+// Discussions and reference: http://philrathe.com/articles/equiv
+// Test suites: http://philrathe.com/tests/equiv
+// Author: Philippe RathÃ© <prathe@gmail.com>
+var equiv = function () {
+
+    var innerEquiv; // the real equiv function
+    var callers = []; // stack to decide between skip/abort functions
+
+    // Determine what is o.
+    function hoozit(o) {
+        if (typeof o === "string") {
+            return "string";
+
+        } else if (typeof o === "boolean") {
+            return "boolean";
+
+        } else if (typeof o === "number") {
+
+            if (isNaN(o)) {
+                return "nan";
+            } else {
+                return "number";
+            }
+
+        } else if (typeof o === "undefined") {
+            return "undefined";
+
+        // consider: typeof null === object
+        } else if (o === null) {
+            return "null";
+
+        // consider: typeof [] === object
+        } else if (o instanceof Array) {
+            return "array";
+        
+        // consider: typeof new Date() === object
+        } else if (o instanceof Date) {
+            return "date";
+
+        // consider: /./ instanceof Object;
+        //           /./ instanceof RegExp;
+        //          typeof /./ === "function"; // => false in IE and Opera,
+        //                                          true in FF and Safari
+        } else if (o instanceof RegExp) {
+            return "regexp";
+
+        } else if (typeof o === "object") {
+            return "object";
+
+        } else if (o instanceof Function) {
+            return "function";
+        }
+    }
+
+    // Call the o related callback with the given arguments.
+    function bindCallbacks(o, callbacks, args) {
+        var prop = hoozit(o);
+        if (prop) {
+            if (hoozit(callbacks[prop]) === "function") {
+                return callbacks[prop].apply(callbacks, args);
+            } else {
+                return callbacks[prop]; // or undefined
+            }
+        }
+    }
+
+    var callbacks = function () {
+
+        // for string, boolean, number and null
+        function useStrictEquality(b, a) {
+            return a === b;
+        }
+
+        return {
+            "string": useStrictEquality,
+            "boolean": useStrictEquality,
+            "number": useStrictEquality,
+            "null": useStrictEquality,
+            "undefined": useStrictEquality,
+
+            "nan": function (b) {
+                return isNaN(b);
+            },
+
+            "date": function (b, a) {
+                return hoozit(b) === "date" && a.valueOf() === b.valueOf();
+            },
+
+            "regexp": function (b, a) {
+                return hoozit(b) === "regexp" &&
+                    a.source === b.source && // the regex itself
+                    a.global === b.global && // and its modifers (gmi) ...
+                    a.ignoreCase === b.ignoreCase &&
+                    a.multiline === b.multiline;
+            },
+
+            // - skip when the property is a method of an instance (OOP)
+            // - abort otherwise,
+            //   initial === would have catch identical references anyway
+            "function": function () {
+                var caller = callers[callers.length - 1];
+                return caller !== Object &&
+                        typeof caller !== "undefined";
+            },
+
+            "array": function (b, a) {
+                var i;
+                var len;
+
+                // b could be an object literal here
+                if ( ! (hoozit(b) === "array")) {
+                    return false;
+                }
+
+                len = a.length;
+                if (len !== b.length) { // safe and faster
+                    return false;
+                }
+                for (i = 0; i < len; i++) {
+                    if( ! innerEquiv(a[i], b[i])) {
+                        return false;
+                    }
+                }
+                return true;
+            },
+
+            "object": function (b, a) {
+                var i;
+                var eq = true; // unless we can proove it
+                var aProperties = [], bProperties = []; // collection of strings
+
+                // comparing constructors is more strict than using instanceof
+                if ( a.constructor !== b.constructor) {
+                    return false;
+                }
+
+                // stack constructor before traversing properties
+                callers.push(a.constructor);
+
+                for (i in a) { // be strict: don't ensures hasOwnProperty and go deep
+
+                    aProperties.push(i); // collect a's properties
+
+                    if ( ! innerEquiv(a[i], b[i])) {
+                        eq = false;
+                    }
+                }
+
+                callers.pop(); // unstack, we are done
+
+                for (i in b) {
+                    bProperties.push(i); // collect b's properties
+                }
+
+                // Ensures identical properties name
+                return eq && innerEquiv(aProperties.sort(), bProperties.sort());
+            }
+        };
+    }();
+
+    innerEquiv = function () { // can take multiple arguments
+        var args = Array.prototype.slice.apply(arguments);
+        if (args.length < 2) {
+            return true; // end transition
+        }
+
+        return (function (a, b) {
+            if (a === b) {
+                return true; // catch the most you can
+
+            } else if (typeof a !== typeof b || a === null || b === null || typeof a === "undefined" || typeof b === "undefined") {
+                return false; // don't lose time with error prone cases
+
+            } else {
+                return bindCallbacks(a, callbacks, [b, a]);
+            }
+
+        // apply transition with (1..n) arguments
+        })(args[0], args[1]) && arguments.callee.apply(this, args.splice(1, args.length -1));
+    };
+
+    return innerEquiv;
+}(); // equiv
+	
+var config = {
+	stats: {
+		all: 0,
+		bad: 0
+	},
+	queue: [],
+	// block until document ready
+	blocking: true,
+	//restrict modules/tests by get parameters
+	filters: location.search.length > 1 && $.map( location.search.slice(1).split('&'), decodeURIComponent ),
+	isLocal: !!(window.location.protocol == 'file:')
+};
+
+// public API as global methods
+$.extend(window, {
+	test: test,
+	module: module,
+	expect: expect,
+	ok: ok,
+	equals: equals,
+	start: start,
+	stop: stop,
+	reset: reset,
+	isLocal: config.isLocal,
+	same: function(a, b, message) {
+		push(equiv(a, b), a, b, message);
+	},
+	QUnit: {
+		equiv: equiv
+	},
+	// legacy methods below
+	isSet: isSet,
+	isObj: isObj,
+	compare: function() {
+		throw "compare is deprecated - use same() instead";
+	},
+	compare2: function() {
+		throw "compare2 is deprecated - use same() instead";
+	},
+	serialArray: function() {
+		throw "serialArray is deprecated - use jsDump.parse() instead";
+	},
+	q: q,
+	t: t,
+	url: url,
+	triggerEvent: triggerEvent
+});
+
+$(window).load(function() {
+	$('#userAgent').html(navigator.userAgent);
+	var head = $('<div class="testrunner-toolbar"><label for="filter">Hide passed tests</label></div>').insertAfter("#userAgent");
+	$('<input type="checkbox" id="filter" />').attr("disabled", true).prependTo(head).click(function() {
+		$('li.pass')[this.checked ? 'hide' : 'show']();
+	});
+	runTest();	
+});
+
+function synchronize(callback) {
+	config.queue.push(callback);
+	if(!config.blocking) {
+		process();
+	}
+}
+
+function process() {
+	while(config.queue.length && !config.blocking) {
+		config.queue.shift()();
+	}
+}
+
+function stop(timeout) {
+	config.blocking = true;
+	if (timeout)
+		config.timeout = setTimeout(function() {
+			ok( false, "Test timed out" );
+			start();
+		}, timeout);
+}
+function start() {
+	// A slight delay, to avoid any current callbacks
+	setTimeout(function() {
+		if(config.timeout)
+			clearTimeout(config.timeout);
+		config.blocking = false;
+		process();
+	}, 13);
+}
+
+function validTest( name ) {
+	var filters = config.filters;
+	if( !filters )
+		return true;
+
+	var i = filters.length,
+		run = false;
+	while( i-- ){
+		var filter = filters[i],
+			not = filter.charAt(0) == '!';
+		if( not ) 
+			filter = filter.slice(1);
+		if( name.indexOf(filter) != -1 )
+			return !not;
+		if( not )
+			run = true;
+	}
+	return run;
+}
+
+function runTest() {
+	config.blocking = false;
+	var started = +new Date;
+	config.fixture = document.getElementById('main').innerHTML;
+	config.ajaxSettings = $.ajaxSettings;
+	synchronize(function() {
+		$('<p id="testresult" class="result">').html(['Tests completed in ',
+			+new Date - started, ' milliseconds.<br/>',
+			'<span class="bad">', config.stats.bad, '</span> tests of <span class="all">', config.stats.all, '</span> failed.</p>']
+			.join(''))
+			.appendTo("body");
+		$("#banner").addClass(config.stats.bad ? "fail" : "pass");
+	});
+}
+
+function test(name, callback) {
+	if(config.currentModule)
+		name = config.currentModule + " module: " + name;
+	var lifecycle = $.extend({
+		setup: function() {},
+		teardown: function() {}
+	}, config.moduleLifecycle);
+	
+	if ( !validTest(name) )
+		return;
+		
+	synchronize(function() {
+		config.assertions = [];
+		config.expected = null;
+		try {
+			lifecycle.setup();
+			callback();
+			lifecycle.teardown();
+		} catch(e) {
+			if( typeof console != "undefined" && console.error && console.warn ) {
+				console.error("Test " + name + " died, exception and test follows");
+				console.error(e);
+				console.warn(callback.toString());
+			}
+			config.assertions.push( {
+				result: false,
+				message: "Died on test #" + (config.assertions.length + 1) + ": " + e.message
+			});
+		}
+	});
+	synchronize(function() {
+		try {
+			reset();
+		} catch(e) {
+			if( typeof console != "undefined" && console.error && console.warn ) {
+				console.error("reset() failed, following Test " + name + ", exception and reset fn follows");
+				console.error(e);
+				console.warn(reset.toString());
+			}
+		}
+		
+		if(config.expected && config.expected != config.assertions.length) {
+			config.assertions.push({
+				result: false,
+				message: "Expected " + config.expected + " assertions, but " + config.assertions.length + " were run"
+			});
+		}
+		
+		var good = 0, bad = 0;
+		var ol  = $("<ol/>").hide();
+		config.stats.all += config.assertions.length;
+		for ( var i = 0; i < config.assertions.length; i++ ) {
+			var assertion = config.assertions[i];
+			$("<li/>").addClass(assertion.result ? "pass" : "fail").text(assertion.message || "(no message)").appendTo(ol);
+			assertion.result ? good++ : bad++;
+		}
+		config.stats.bad += bad;
+	
+		var b = $("<strong/>").html(name + " <b style='color:black;'>(<b class='fail'>" + bad + "</b>, <b class='pass'>" + good + "</b>, " + config.assertions.length + ")</b>")
+		.click(function(){
+			$(this).next().toggle();
+		})
+		.dblclick(function(event) {
+			var target = $(event.target).filter("strong").clone();
+			if ( target.length ) {
+				target.children().remove();
+				location.href = location.href.match(/^(.+?)(\?.*)?$/)[1] + "?" + encodeURIComponent($.trim(target.text()));
+			}
+		});
+		
+		$("<li/>").addClass(bad ? "fail" : "pass").append(b).append(ol).appendTo("#tests");
+	
+		if(bad) {
+			$("#filter").attr("disabled", null);
+		}
+	});
+}
+
+// call on start of module test to prepend name to all tests
+function module(name, lifecycle) {
+	config.currentModule = name;
+	config.moduleLifecycle = lifecycle;
+}
+
+/**
+ * Specify the number of expected assertions to gurantee that failed test (no assertions are run at all) don't slip through.
+ */
+function expect(asserts) {
+	config.expected = asserts;
+}
+
+/**
+ * Resets the test setup. Useful for tests that modify the DOM.
+ */
+function reset() {
+	$("#main").html( config.fixture );
+	$.event.global = {};
+	$.ajaxSettings = $.extend({}, config.ajaxSettings);
+}
+
+/**
+ * Asserts true.
+ * @example ok( $("a").size() > 5, "There must be at least 5 anchors" );
+ */
+function ok(a, msg) {
+	config.assertions.push({
+		result: !!a,
+		message: msg
+	});
+}
+
+/**
+ * Asserts that two arrays are the same
+ */
+function isSet(a, b, msg) {
+	function serialArray( a ) {
+		var r = [];
+		
+		if ( a && a.length )
+	        for ( var i = 0; i < a.length; i++ ) {
+	            var str = a[i].nodeName;
+	            if ( str ) {
+	                str = str.toLowerCase();
+	                if ( a[i].id )
+	                    str += "#" + a[i].id;
+	            } else
+	                str = a[i];
+	            r.push( str );
+	        }
+	
+		return "[ " + r.join(", ") + " ]";
+	}
+	var ret = true;
+	if ( a && b && a.length != undefined && a.length == b.length ) {
+		for ( var i = 0; i < a.length; i++ )
+			if ( a[i] != b[i] )
+				ret = false;
+	} else
+		ret = false;
+	config.assertions.push({
+		result: ret,
+		message: !ret ? (msg + " expected: " + serialArray(b) + " result: " + serialArray(a)) : msg
+	});
+}
+
+/**
+ * Asserts that two objects are equivalent
+ */
+function isObj(a, b, msg) {
+	var ret = true;
+	
+	if ( a && b ) {
+		for ( var i in a )
+			if ( a[i] != b[i] )
+				ret = false;
+
+		for ( i in b )
+			if ( a[i] != b[i] )
+				ret = false;
+	} else
+		ret = false;
+
+    config.assertions.push({
+		result: ret,
+		message: msg
+	});
+}
+
+/**
+ * Returns an array of elements with the given IDs, eg.
+ * @example q("main", "foo", "bar")
+ * @result [<div id="main">, <span id="foo">, <input id="bar">]
+ */
+function q() {
+	var r = [];
+	for ( var i = 0; i < arguments.length; i++ )
+		r.push( document.getElementById( arguments[i] ) );
+	return r;
+}
+
+/**
+ * Asserts that a select matches the given IDs
+ * @example t("Check for something", "//[a]", ["foo", "baar"]);
+ * @result returns true if "//[a]" return two elements with the IDs 'foo' and 'baar'
+ */
+function t(a,b,c) {
+	var f = $(b);
+	var s = "";
+	for ( var i = 0; i < f.length; i++ )
+		s += (s && ",") + '"' + f[i].id + '"';
+	isSet(f, q.apply(q,c), a + " (" + b + ")");
+}
+
+/**
+ * Add random number to url to stop IE from caching
+ *
+ * @example url("data/test.html")
+ * @result "data/test.html?10538358428943"
+ *
+ * @example url("data/test.php?foo=bar")
+ * @result "data/test.php?foo=bar&10538358345554"
+ */
+function url(value) {
+	return value + (/\?/.test(value) ? "&" : "?") + new Date().getTime() + "" + parseInt(Math.random()*100000);
+}
+
+/**
+ * Checks that the first two arguments are equal, with an optional message.
+ * Prints out both actual and expected values.
+ *
+ * Prefered to ok( actual == expected, message )
+ *
+ * @example equals( $.format("Received {0} bytes.", 2), "Received 2 bytes." );
+ *
+ * @param Object actual
+ * @param Object expected
+ * @param String message (optional)
+ */
+function equals(actual, expected, message) {
+	push(expected == actual, actual, expected, message);
+}
+
+function push(result, actual, expected, message) {
+	message = message || (result ? "okay" : "failed");
+	config.assertions.push({
+		result: result,
+		message: result ? message + ": " + expected : message + ", expected: " + jsDump.parse(expected) + " result: " + jsDump.parse(actual)
+	});
+}
+
+/**
+ * Trigger an event on an element.
+ *
+ * @example triggerEvent( document.body, "click" );
+ *
+ * @param DOMElement elem
+ * @param String type
+ */
+function triggerEvent( elem, type, event ) {
+	if ( $.browser.mozilla || $.browser.opera ) {
+		event = document.createEvent("MouseEvents");
+		event.initMouseEvent(type, true, true, elem.ownerDocument.defaultView,
+			0, 0, 0, 0, 0, false, false, false, false, 0, null);
+		elem.dispatchEvent( event );
+	} else if ( $.browser.msie ) {
+		elem.fireEvent("on"+type);
+	}
+}
+
+})(jQuery);
+
+/**
+ * jsDump
+ * Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
+ * Licensed under BSD (http://www.opensource.org/licenses/bsd-license.php)
+ * Date: 5/15/2008
+ * @projectDescription Advanced and extensible data dumping for Javascript.
+ * @version 1.0.0
+ * @author Ariel Flesler
+ * @link {http://flesler.blogspot.com/2008/05/jsdump-pretty-dump-of-any-javascript.html}
+ */
+(function(){
+	function quote( str ){
+		return '"' + str.toString().replace(/"/g, '\\"') + '"';
+	};
+	function literal( o ){
+		return o + '';	
+	};
+	function join( pre, arr, post ){
+		var s = jsDump.separator(),
+			base = jsDump.indent();
+			inner = jsDump.indent(1);
+		if( arr.join )
+			arr = arr.join( ',' + s + inner );
+		if( !arr )
+			return pre + post;
+		return [ pre, inner + arr, base + post ].join(s);
+	};
+	function array( arr ){
+		var i = arr.length,	ret = Array(i);					
+		this.up();
+		while( i-- )
+			ret[i] = this.parse( arr[i] );				
+		this.down();
+		return join( '[', ret, ']' );
+	};
+	
+	var reName = /^function (\w+)/;
+	
+	var jsDump = window.jsDump = {
+		parse:function( obj, type ){//type is used mostly internally, you can fix a (custom)type in advance
+			var	parser = this.parsers[ type || this.typeOf(obj) ];
+			type = typeof parser;			
+			
+			return type == 'function' ? parser.call( this, obj ) :
+				   type == 'string' ? parser :
+				   this.parsers.error;
+		},
+		typeOf:function( obj ){
+			var type = typeof obj,
+				f = 'function';//we'll use it 3 times, save it
+			return type != 'object' && type != f ? type :
+				!obj ? 'null' :
+				obj.exec ? 'regexp' :// some browsers (FF) consider regexps functions
+				obj.getHours ? 'date' :
+				obj.scrollBy ?  'window' :
+				obj.nodeName == '#document' ? 'document' :
+				obj.nodeName ? 'node' :
+				obj.item ? 'nodelist' : // Safari reports nodelists as functions
+				obj.callee ? 'arguments' :
+				obj.call || obj.constructor != Array && //an array would also fall on this hack
+					(obj+'').indexOf(f) != -1 ? f : //IE reports functions like alert, as objects
+				'length' in obj ? 'array' :
+				type;
+		},
+		separator:function(){
+			return this.multiline ?	this.HTML ? '<br />' : '\n' : this.HTML ? '&nbsp;' : ' ';
+		},
+		indent:function( extra ){// extra can be a number, shortcut for increasing-calling-decreasing
+			if( !this.multiline )
+				return '';
+			var chr = this.indentChar;
+			if( this.HTML )
+				chr = chr.replace(/\t/g,'   ').replace(/ /g,'&nbsp;');
+			return Array( this._depth_ + (extra||0) ).join(chr);
+		},
+		up:function( a ){
+			this._depth_ += a || 1;
+		},
+		down:function( a ){
+			this._depth_ -= a || 1;
+		},
+		setParser:function( name, parser ){
+			this.parsers[name] = parser;
+		},
+		// The next 3 are exposed so you can use them
+		quote:quote, 
+		literal:literal,
+		join:join,
+		//
+		_depth_: 1,
+		// This is the list of parsers, to modify them, use jsDump.setParser
+		parsers:{
+			window: '[Window]',
+			document: '[Document]',
+			error:'[ERROR]', //when no parser is found, shouldn't happen
+			unknown: '[Unknown]',
+			'null':'null',
+			undefined:'undefined',
+			'function':function( fn ){
+				var ret = 'function',
+					name = 'name' in fn ? fn.name : (reName.exec(fn)||[])[1];//functions never have name in IE
+				if( name )
+					ret += ' ' + name;
+				ret += '(';
+				
+				ret = [ ret, this.parse( fn, 'functionArgs' ), '){'].join('');
+				return join( ret, this.parse(fn,'functionCode'), '}' );
+			},
+			array: array,
+			nodelist: array,
+			arguments: array,
+			object:function( map ){
+				var ret = [ ];
+				this.up();
+				for( var key in map )
+					ret.push( this.parse(key,'key') + ': ' + this.parse(map[key]) );
+				this.down();
+				return join( '{', ret, '}' );
+			},
+			node:function( node ){
+				var open = this.HTML ? '&lt;' : '<',
+					close = this.HTML ? '&gt;' : '>';
+					
+				var tag = node.nodeName.toLowerCase(),
+					ret = open + tag;
+					
+				for( var a in this.DOMAttrs ){
+					var val = node[this.DOMAttrs[a]];
+					if( val )
+						ret += ' ' + a + '=' + this.parse( val, 'attribute' );
+				}
+				return ret + close + open + '/' + tag + close;
+			},
+			functionArgs:function( fn ){//function calls it internally, it's the arguments part of the function
+				var l = fn.length;
+				if( !l ) return '';				
+				
+				var args = Array(l);
+				while( l-- )
+					args[l] = String.fromCharCode(97+l);//97 is 'a'
+				return ' ' + args.join(', ') + ' ';
+			},
+			key:quote, //object calls it internally, the key part of an item in a map
+			functionCode:'[code]', //function calls it internally, it's the content of the function
+			attribute:quote, //node calls it internally, it's an html attribute value
+			string:quote,
+			date:quote,
+			regexp:literal, //regex
+			number:literal,
+			'boolean':literal
+		},
+		DOMAttrs:{//attributes to dump from nodes, name=>realName
+			id:'id',
+			name:'name',
+			'class':'className'
+		},
+		HTML:false,//if true, entities are escaped ( <, >, \t, space and \n )
+		indentChar:'   ',//indentation unit
+		multiline:true //if true, items in a collection, are separated by a \n, else just a space.
+	};
+
+})();
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/yuitests.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/yuitests.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/yuitests.js	(revision 2397)
@@ -0,0 +1,26 @@
+YUI().use("test", "console", function (Y) {
+    Y.namespace("strophe.test");
+    var Assert = Y.Assert;
+
+    Y.strophe.test.JIDTestCase = new Y.Test.Case({
+        name: "JIDs",
+
+        testNormalJid: function () {
+            var jid = "darcy@pemberley.lit/library";
+
+            Assert.areSame("darcy", Strophe.getNodeFromJid(jid));
+            Assert.areSame("pemberley.lit", Strophe.getDomainFromJid(jid));
+            Assert.areSame("library", Strophe.getResourceFromJid(jid));
+            Assert.areSame("darcy@pemberley.lit",
+                           Strophe.getBareJidFromJid(jid));
+        }
+    });
+
+    Y.strophe.test.StropheSuite = new Y.Test.Suite("Strophe Suite");
+    Y.strophe.test.StropheSuite.add(Y.strophe.test.JIDTestCase);
+
+    new Y.Console({newestOnTop: false}).render('#console');
+
+    Y.Test.Runner.add(Y.strophe.test.StropheSuite);
+    Y.Test.Runner.run();
+});
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/strophe.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/strophe.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/strophe.html	(revision 2397)
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+  <head>
+    <script src="http://code.jquery.com/jquery-latest.js"></script>
+    <link rel="stylesheet"
+          href="http://jqueryjs.googlecode.com/svn/trunk/qunit/qunit.css"
+          type="text/css">
+    <script src="http://jqueryjs.googlecode.com/svn/trunk/qunit/qunit.js"></script>
+    
+    <script src='../strophe.js'></script>
+    <script src='tests.js'></script>
+    
+    <title>Strophe.js Tests</title>
+  </head>
+  <body>
+    <h1 id="qunit-header">Strophe.js Tests</h1>
+    <h2 id="qunit-banner"></h2>
+    <h2 id="qunit-userAgent"></h2>
+    <ol id="qunit-tests"></ol>
+    <div id="main"></div>
+  </body>
+</html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/jstests.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/jstests.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/jstests.js	(revision 2397)
@@ -0,0 +1,136 @@
+TestCase("JIDs", {
+    testNormalJid: function () {
+        var jid = "darcy@pemberley.lit/library";
+        assertEquals("Node should be 'darcy'",
+                     "darcy", Strophe.getNodeFromJid(jid));
+        assertEquals("Domain should be 'pemberley.lit'",
+                     "pemberley.lit", Strophe.getDomainFromJid(jid));
+        assertEquals("Resource should be 'library'",
+                     "library", Strophe.getResourceFromJid(jid));
+        assertEquals("Bare JID should be 'darcy@pemberley.lit'",
+                     "darcy@pemberley.lit", Strophe.getBareJidFromJid(jid));
+    },
+
+    testWeirdNode: function () {
+        var jid = "darcy@netherfield.lit@pemberley.lit/library";
+        assertEquals("Node should be 'darcy'",
+                     "darcy", Strophe.getNodeFromJid(jid));
+        assertEquals("Domain should be 'netherfield.lit@pemberley.lit'",
+                     "netherfield.lit@pemberley.lit", 
+                     Strophe.getDomainFromJid(jid));
+        assertEquals("Resource should be 'library'",
+                     "library", Strophe.getResourceFromJid(jid));
+        assertEquals("Bare JID should be 'darcy@netherfield.lit@pemberley.lit",
+                     "darcy@netherfield.lit@pemberley.lit",
+                     Strophe.getBareJidFromJid(jid));
+    }
+});
+
+function foo() {
+    var $ = function () {};
+
+    test("Weird node (escaped)", function () {
+        var escapedNode = Strophe.escapeNode("darcy@netherfield.lit");
+        var jid = escapedNode + "@pemberley.lit/library";
+        equals(Strophe.getNodeFromJid(jid), "darcy\\40netherfield.lit",
+               "Node should be 'darcy\\40netherfield.lit'");
+        equals(Strophe.getDomainFromJid(jid),
+               "pemberley.lit",
+               "Domain should be 'pemberley.lit'");
+        equals(Strophe.getResourceFromJid(jid), "library",
+               "Resource should be 'library'");
+        equals(Strophe.getBareJidFromJid(jid),
+               "darcy\\40netherfield.lit@pemberley.lit",
+               "Bare JID should be 'darcy\\40netherfield.lit@pemberley.lit'");
+    });
+
+    test("Weird resource", function () {
+        var jid = "books@chat.pemberley.lit/darcy@pemberley.lit/library";
+        equals(Strophe.getNodeFromJid(jid), "books",
+               "Node should be 'books'");
+        equals(Strophe.getDomainFromJid(jid), "chat.pemberley.lit",
+               "Domain should be 'chat.pemberley.lit'");
+        equals(Strophe.getResourceFromJid(jid),
+               "darcy@pemberley.lit/library",
+               "Resource should be 'darcy@pemberley.lit/library'");
+        equals(Strophe.getBareJidFromJid(jid),
+               "books@chat.pemberley.lit",
+               "Bare JID should be 'books@chat.pemberley.lit'");
+    });
+
+    module("Builder");
+
+    test("Correct namespace (#32)", function () {
+        var stanzas = [new Strophe.Builder("message", {foo: "asdf"}).tree(),
+                       $build("iq", {}).tree(),
+                       $pres().tree()];
+        $.each(stanzas, function () {
+            equals($(this).attr('xmlns'), Strophe.NS.CLIENT,
+                  "Namespace should be '" + Strophe.NS.CLIENT + "'");
+        });
+    });
+    
+    test("send() accepts Builders (#27)", function () {
+        var stanza = $pres();
+        var conn = new Strophe.Connection("");
+        // fake connection callback to avoid errors
+        conn.connect_callback = function () {};
+        
+        ok(conn._data.length === 0, "Output queue is clean");
+        try {
+            conn.send(stanza);
+        } catch (e) {}
+        ok(conn._data.length === 1, "Output queue contains an element");
+    });
+
+    test("send() does not accept strings", function () {
+        var stanza = "<presence/>";
+        var conn = new Strophe.Connection("");
+        // fake connection callback to avoid errors
+        conn.connect_callback = function () {};
+        expect(1);
+        try {
+            conn.send(stanza);
+        } catch (e) {
+            equals(e.name, "StropheError", "send() should throw exception");
+        }
+    });
+
+    test("Builder with XML attribute escaping test", function () {
+        var text = "<b>";
+        var expected = "<presence to='&lt;b>' xmlns='jabber:client'/>";
+        var pres = $pres({to: text});
+        equals(pres.toString(), expected, "< should be escaped");
+
+        text = "foo&bar";
+        expected = "<presence to='foo&amp;bar' xmlns='jabber:client'/>";
+        pres = $pres({to: text});
+        equals(pres.toString(), expected, "& should be escaped");
+    });
+
+    module("XML");
+
+    test("XML escaping test", function () {
+        var text = "s & p";
+	var textNode = Strophe.xmlTextNode(text);
+	equals(Strophe.getText(textNode), "s &amp; p", "should be escaped");
+	var text0 = "s < & > p";
+	var textNode0 = Strophe.xmlTextNode(text0);
+	equals(Strophe.getText(textNode0), "s &lt; &amp; &gt; p", "should be escaped");
+    });
+
+    test("XML element creation", function () {
+        var elem = Strophe.xmlElement("message");
+        equals(elem.tagName, "message", "Element name should be the same");
+    });
+
+    module("Misc");
+
+    test("Quoting strings", function () {
+        var input = '"beep \\40"';
+        var conn = new Strophe.Connection();
+        var output = conn._quote(input);
+        equals(output, "\"\\\"beep \\\\40\\\"\"",
+               "string should be quoted and escaped");
+    });
+}
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/pubsub.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/pubsub.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/pubsub.js	(revision 2397)
@@ -0,0 +1,314 @@
+
+
+Strophe.Test = {
+    BOSH_URL: "/xmpp-httpbind",
+    XMPP_DOMAIN: 'localhost',
+    PUBSUB_COMPONENT: "pubsub.localhost",
+    _node_name: "", //node name created in connectCallback function
+    connection: null, //connection object created in run function
+    
+    run: function() {
+	$(document).ready(function(){
+	    //Connect strophe, uses localhost to test
+	    Strophe.Test.connection = new Strophe.Connection(Strophe.Test.BOSH_URL);
+	    
+	    //connect anonymously to run most tests
+	    Strophe.Test.connection.connect(Strophe.Test.XMPP_DOMAIN,
+                                            null,
+			                    Strophe.Test.connectCallback);
+
+	    //set up the test client UI
+	    $("#disconnect").click(function() {
+		Strophe.Test.connection.disconnect();
+	    });
+	    $("#run_tests").click(function() {      
+		test("Anonymous connection test.", function() {
+		    if(Strophe.Test.connection.connected)
+		    {
+			ok( true, "all good");
+		    }
+		    else
+		    {
+			ok( false, "not connected anonymously");
+		    }
+		});
+
+		test("Create default node test.",function(){
+		    var iqid =  Strophe.Test.connection.pubsub
+                        .createNode(Strophe.Test.connection.jid,
+				    Strophe.Test.PUBSUB_COMPONENT,
+				    Strophe.Test._node_name, {}, 
+                                    function(stanza) {
+			                test("handled create node.",
+				             function() {
+				                 var error = $(stanza).find("error");
+				                 
+				                 if(error.length == 0)
+				                 {
+					             ok(true, "returned");
+				                 }
+				                 else
+				                 {
+					             ok(false,"error creating node.");
+				                 }
+				             });
+				    });
+		    ok(true,"sent create request. "+ iqid);
+		});
+
+		test("subscribe to a node",function() {
+		    var iqid = Strophe.Test.connection.pubsub
+                        .subscribe(Strophe.Test.connection.jid,
+				   Strophe.Test.PUBSUB_COMPONENT,
+				   Strophe.Test._node_name,
+				   [],
+			           function(stanza) {
+			               test("items received", function() {
+				           console.log(stanza);
+				           if($(stanza).length > 0)
+				           {
+				               ok(true,"item received.");
+				           }
+				           else
+				           {
+				               ok(false,"no items.");
+				           }
+			               });
+			           },
+			           function(stanza) {
+			               var error = $(stanza).find("error");
+			               
+			               test("handled subscribe",
+				            function() {
+				                if(error.length == 0)
+				                {
+					            ok(true,"subscribed");
+				                }
+				                else
+				                {
+					            console.log(error.get(0));
+					            ok(false,
+					               "not subscribed");
+				                }
+				                
+			                    });
+			           });
+		    
+		    if(iqid)
+			ok(true,
+			   "subscribed to " + Strophe.Test._node_name);
+		});
+
+		test("publish to a node",function() {
+		    var iqid = Strophe.Test.connection.pubsub
+                        .publish(Strophe.Test.connection.jid,
+				 Strophe.Test.PUBSUB_COMPONENT,
+				 Strophe.Test._node_name,
+			         {test:'test'},
+				 function(stanza) {
+				     var error = $(stanza).find("error");
+				     
+				     test("handled published item",
+					  function() {
+					      if(error.length == 0)
+					      {
+						  ok(true,"got item");
+					      }
+					      else
+					      {
+						  ok(false,
+						     "no item");
+					      }
+					      
+					  });
+				 });
+		    
+		    if(iqid)
+			ok(true,
+			   "published to " + Strophe.Test._node_name);
+                    
+		});		
+
+		test("subscribe to a node with options",function() {
+		    var keyword_elem = Strophe.xmlElement("field",
+							  [["var",
+							    "http://stanziq.com/search#keyword"],
+							   ["type",
+							    'text-single'],
+							   ["label",
+							    "keyword to match"]]);
+		    var value = Strophe.xmlElement("value",[]);
+		    var text = Strophe.xmlTextNode("crazy");
+		    value.appendChild(text);
+		    keyword_elem.appendChild(value);
+		    
+		    var iqid = Strophe.Test.connection.pubsub
+                        .subscribe(Strophe.Test.connection.jid,
+				   Strophe.Test.PUBSUB_COMPONENT,
+				   Strophe.Test._node_name,
+			           [keyword_elem],
+		                   function(stanza) {console.log(stanza);},
+			           function(stanza) {
+			               
+			               var error = $(stanza).find("error");
+			               
+			               test("handled subscribe with options",
+				            function() {
+				                if(error.length == 0)
+				                {
+					            ok(true,"search subscribed");
+				                }
+				                else
+				                {
+					            console.log(error.get(0));
+					            ok(false,
+					               "search not subscribed");
+				                }
+				                
+			                    });
+			           });
+		    
+		    if(iqid)
+			ok(true,
+			   "subscribed to search");
+		});
+
+		test("unsubscribe to a node",function() {
+		    var iqid = Strophe.Test.connection.pubsub
+                        .unsubscribe(Strophe.Test.connection.jid,
+				     Strophe.Test.PUBSUB_COMPONENT,
+				     Strophe.Test._node_name,
+		                     function(stanza) {
+			                 var error = $(stanza).find("error");
+			                 
+			                 test("handled unsubscribe",
+				              function() {
+			                          if(error.length == 0)
+				                  {
+				                      ok(true,"unsubscribed");
+				                  }
+			                          else
+				                  {
+				                      console.log(error.get(0));
+				                      ok(false,
+					                 "unable to unsubscribed");
+				                  }
+			                      });
+		                     });
+		    
+		    if(iqid)
+			ok(true,
+			   "unsubscribed from search with no options.");
+		});
+
+		test("test items retrieval",function(){
+		    var itemid = Strophe.Test.connection.pubsub
+                        .items(Strophe.Test.connection.jid,
+			       Strophe.Test.PUBSUB_COMPONENT,
+			       Strophe.Test._node_name,
+			       function(stanza) {
+				   ok(true,"item request successful.");
+			       },
+			       function(stanza) {
+				   ok(false,"failed to send request.");
+			       });
+                    
+		    if(itemid)
+		    {
+			ok(true,"item request sent.");
+		    }
+		});
+
+		test("test sendIQ interface.",function(){
+		    var sendiq_good = false;
+		    //setup timeout for sendIQ for 3 seconds
+		    setTimeout(function() {
+                        test("Timeout check", function () {
+			    ok(sendiq_good, "The iq didn't timeout.");
+                        });
+		    }, 3000);
+                    
+		    //send a pubsub subscribe stanza
+                    
+		    var sub = $iq({from:Strophe.Test.connection.jid,
+			           to:Strophe.Test.PUBSUB_COMPONENT,
+			           type:'set'})
+		        .c('pubsub', { xmlns:Strophe.NS.PUBSUB })
+                        .c('subscribe',
+		           {node:Strophe.Test._node_name,
+			    jid:Strophe.Test.connection.jid});
+		    var stanza=sub.tree();
+		    //call sendIQ with several call backs
+		    Strophe.Test.connection
+                        .sendIQ(stanza, 
+                                function(stanza) {
+			            test("iq sent",function() {
+			                sendiq_good = true;
+			                ok(true,"iq sent succesfully.");
+			            });
+		                },
+		                function(stz) {
+			            test("iq fail",function() {
+                                        if (stz)
+			                    sendiq_good = true;
+			                console.log(stanza);
+			                ok(true,"failed to send iq.");
+			            });
+		                });
+		});
+
+		test("test sendIQ failed.",function(){
+		    var sub = $iq({from:Strophe.Test.connection.jid, 
+			           to:Strophe.Test.PUBSUB_COMPONENT, 
+			           type:'get'});
+
+		    //call sendIQ with several call backs
+		    Strophe.Test.connection
+                        .sendIQ(sub.tree(),
+		                function(stanza) {
+			            console.log(stanza);
+			            test("iq sent",function() {
+			                ok(false,
+			                   "iq sent succesfully when should have failed.");
+			            });
+		                },
+		                function(stanza) {
+			            test("iq fail",function() {
+			                ok(true,
+			                   "success on failure test: failed to send iq.");
+			            });
+		                });		    
+		});
+	    });
+	});
+    },
+
+    connectCallback: function(status,cond) {
+	var error_message = null;
+	if(status == Strophe.Status.CONNECTED)
+	{
+	    $('#run_tests').show();
+	    $('#disconnect').show();
+	    var bare_jid = Strophe.getBareJidFromJid(Strophe.Test.connection.jid).split("@")[0];
+	    Strophe.Test._node_name = "/home/"+Strophe.Test.XMPP_DOMAIN+"/"+bare_jid;
+	}
+	else if (status == Strophe.Status.DISCONNECTED || status == Strophe.Status.DICONNECTING)
+	{
+	    $('#run_tests').hide();
+	    $('#disconnect').hide();
+	}	
+	else if ((status == 0) || (status == Strophe.Status.CONNFAIL))
+	{
+	    error_message = "Failed to connect to xmpp server.";
+	}
+	else if (status == Strophe.Status.AUTHFAIL)
+	{
+	    error_message = "Failed to authenticate to xmpp server.";
+	}
+	if(error_message)
+	{
+	    $('published_item').text(error_message);
+	    
+	}
+    }
+};
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/yuitests.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/yuitests.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/yuitests.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+
+    <title>Strophe Tests</title>
+
+    <link rel="stylesheet" href="http://yui.yahooapis.com/3.0.0/build/widget/assets/skins/sam/widget.css">
+    <link rel="stylesheet" href="http://yui.yahooapis.com/3.0.0/build/console/assets/skins/sam/console.css">
+
+    <script src="http://yui.yahooapis.com/3.0.0/build/yui/yui-min.js"></script>
+
+    <script src="../strophe.js"></script>
+
+    <script src="yuitests.js"></script>
+  </head>
+  <body class='yui-skin-sam'>
+    <div id='console'></div>
+  </body>
+</html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/tests.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/tests.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/tests/tests.js	(revision 2397)
@@ -0,0 +1,163 @@
+$(document).ready(function () {
+    module("JIDs");
+
+    test("Normal JID", function () {
+        var jid = "darcy@pemberley.lit/library";
+        equals(Strophe.getNodeFromJid(jid), "darcy",
+               "Node should be 'darcy'");
+        equals(Strophe.getDomainFromJid(jid), "pemberley.lit",
+               "Domain should be 'pemberley.lit'");
+        equals(Strophe.getResourceFromJid(jid), "library",
+               "Node should be 'library'");
+        equals(Strophe.getBareJidFromJid(jid),
+               "darcy@pemberley.lit",
+               "Bare JID should be 'darcy@pemberley.lit'");
+    });
+
+    test("Weird node (unescaped)", function () {
+        var jid = "darcy@netherfield.lit@pemberley.lit/library";
+        equals(Strophe.getNodeFromJid(jid), "darcy",
+               "Node should be 'darcy'");
+        equals(Strophe.getDomainFromJid(jid),
+               "netherfield.lit@pemberley.lit",
+               "Domain should be 'netherfield.lit@pemberley.lit'");
+        equals(Strophe.getResourceFromJid(jid), "library",
+               "Resource should be 'library'");
+        equals(Strophe.getBareJidFromJid(jid),
+               "darcy@netherfield.lit@pemberley.lit",
+               "Bare JID should be 'darcy@netherfield.lit@pemberley.lit'");
+    });
+
+    test("Weird node (escaped)", function () {
+        var escapedNode = Strophe.escapeNode("darcy@netherfield.lit");
+        var jid = escapedNode + "@pemberley.lit/library";
+        equals(Strophe.getNodeFromJid(jid), "darcy\\40netherfield.lit",
+               "Node should be 'darcy\\40netherfield.lit'");
+        equals(Strophe.getDomainFromJid(jid),
+               "pemberley.lit",
+               "Domain should be 'pemberley.lit'");
+        equals(Strophe.getResourceFromJid(jid), "library",
+               "Resource should be 'library'");
+        equals(Strophe.getBareJidFromJid(jid),
+               "darcy\\40netherfield.lit@pemberley.lit",
+               "Bare JID should be 'darcy\\40netherfield.lit@pemberley.lit'");
+    });
+
+    test("Weird resource", function () {
+        var jid = "books@chat.pemberley.lit/darcy@pemberley.lit/library";
+        equals(Strophe.getNodeFromJid(jid), "books",
+               "Node should be 'books'");
+        equals(Strophe.getDomainFromJid(jid), "chat.pemberley.lit",
+               "Domain should be 'chat.pemberley.lit'");
+        equals(Strophe.getResourceFromJid(jid),
+               "darcy@pemberley.lit/library",
+               "Resource should be 'darcy@pemberley.lit/library'");
+        equals(Strophe.getBareJidFromJid(jid),
+               "books@chat.pemberley.lit",
+               "Bare JID should be 'books@chat.pemberley.lit'");
+    });
+
+    module("Builder");
+
+    test("Correct namespace (#32)", function () {
+        var stanzas = [new Strophe.Builder("message", {foo: "asdf"}).tree(),
+                       $build("iq", {}).tree(),
+                       $pres().tree()];
+        $.each(stanzas, function () {
+            equals($(this).attr('xmlns'), Strophe.NS.CLIENT,
+                  "Namespace should be '" + Strophe.NS.CLIENT + "'");
+        });
+    });
+    
+    test("send() accepts Builders (#27)", function () {
+        var stanza = $pres();
+        var conn = new Strophe.Connection("");
+        // fake connection callback to avoid errors
+        conn.connect_callback = function () {};
+        
+        ok(conn._data.length === 0, "Output queue is clean");
+        try {
+            conn.send(stanza);
+        } catch (e) {}
+        ok(conn._data.length === 1, "Output queue contains an element");
+    });
+
+    test("send() does not accept strings", function () {
+        var stanza = "<presence/>";
+        var conn = new Strophe.Connection("");
+        // fake connection callback to avoid errors
+        conn.connect_callback = function () {};
+        expect(1);
+        try {
+            conn.send(stanza);
+        } catch (e) {
+            equals(e.name, "StropheError", "send() should throw exception");
+        }
+    });
+
+    test("Builder with XML attribute escaping test", function () {
+        var text = "<b>";
+        var expected = "<presence to='&lt;b>' xmlns='jabber:client'/>";
+        var pres = $pres({to: text});
+        equals(pres.toString(), expected, "< should be escaped");
+
+        text = "foo&bar";
+        expected = "<presence to='foo&amp;bar' xmlns='jabber:client'/>";
+        pres = $pres({to: text});
+        equals(pres.toString(), expected, "& should be escaped");
+    });
+
+    module("XML");
+
+    test("XML escaping test", function () {
+        var text = "s & p";
+	var textNode = Strophe.xmlTextNode(text);
+	equals(Strophe.getText(textNode), "s &amp; p", "should be escaped");
+	var text0 = "s < & > p";
+	var textNode0 = Strophe.xmlTextNode(text0);
+	equals(Strophe.getText(textNode0), "s &lt; &amp; &gt; p", "should be escaped");
+    });
+
+    test("XML element creation", function () {
+        var elem = Strophe.xmlElement("message");
+        equals(elem.tagName, "message", "Element name should be the same");
+    });
+
+    module("Handler");
+
+    test("Full JID matching", function () {
+        var elem = $msg({from: 'darcy@pemberley.lit/library'}).tree();
+        
+        var hand = new Strophe.Handler(null, null, null, null, null,
+                                       'darcy@pemberley.lit/library');
+        equals(hand.isMatch(elem), true, "Full JID should match");
+
+        hand = new Strophe.Handler(null, null, null, null, null,
+                                       'darcy@pemberley.lit')
+        equals(hand.isMatch(elem), false, "Bare JID shouldn't match");
+    });
+
+    test("Bare JID matching", function () {
+        var elem = $msg({from: 'darcy@pemberley.lit/library'}).tree();
+
+        var hand = new Strophe.Handler(null, null, null, null, null,
+                                       'darcy@pemberley.lit/library',
+                                       {matchBare: true});
+        equals(hand.isMatch(elem), true, "Full JID should match");
+        
+        hand = new Strophe.Handler(null, null, null, null, null,
+                                   'darcy@pemberley.lit',
+                                   {matchBare: true});
+        equals(hand.isMatch(elem), true, "Bare JID should match");
+    });
+    
+    module("Misc");
+
+    test("Quoting strings", function () {
+        var input = '"beep \\40"';
+        var conn = new Strophe.Connection();
+        var output = conn._quote(input);
+        equals(output, "\"\\\"beep \\\\40\\\"\"",
+               "string should be quoted and escaped");
+    });
+});
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/files/core-js.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/files/core-js.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/files/core-js.html	(revision 2397)
@@ -0,0 +1,189 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><title>strophe.js</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/searchdata.js"></script></head><body class="ContentPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Content><div class="CFile"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="strophe.js"></a>strophe.js</h1><div class=CBody><p>A JavaScript library for XMPP BOSH.</p><p>This is the JavaScript version of the Strophe library.&nbsp;  Since JavaScript has no facilities for persistent TCP connections, this library uses Bidirectional-streams Over Synchronous HTTP (BOSH) to emulate a persistent, stateful, two-way connection to an XMPP server.&nbsp;  More information on BOSH can be found in XEP 124.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#strophe.js" >strophe.js</a></td><td class=SDescription>A JavaScript library for XMPP BOSH.</td></tr><tr class="SGroup"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#$build" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">$build</a></td><td class=SDescription>Create a Strophe.Builder. </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#$msg" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">$msg</a></td><td class=SDescription>Create a Strophe.Builder with a &lt;message/&gt; element as the root.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#$iq" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">$iq</a></td><td class=SDescription>Create a Strophe.Builder with an &lt;iq/&gt; element as the root.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#$pres" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">$pres</a></td><td class=SDescription>Create a Strophe.Builder with a &lt;presence/&gt; element as the root.</td></tr><tr class="SClass"><td class=SEntry><a href="#Strophe" >Strophe</a></td><td class=SDescription>An object container for all Strophe library functions.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Strophe.Constants" >Constants</a></td><td class=SDescription></td></tr><tr class="SConstant SIndent2 SMarked"><td class=SEntry><a href="#Strophe.VERSION" >VERSION</a></td><td class=SDescription>The version of the Strophe library. </td></tr><tr class="SConstant SIndent2"><td class=SEntry><a href="#Strophe.XMPP_Namespace_Constants" >XMPP Namespace Constants</a></td><td class=SDescription>Common namespace constants from the XMPP RFCs and XEPs.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Strophe.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.addNamespace" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">addNamespace</a></td><td class=SDescription>This function is used to extend the current namespaces in Strophe.NS. </td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Strophe.Constants" >Constants</a></td><td class=SDescription></td></tr><tr class="SConstant SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection_Status_Constants" >Connection Status Constants</a></td><td class=SDescription>Connection status constants for use by the connection handler callback.</td></tr><tr class="SConstant SIndent2"><td class=SEntry><a href="#Strophe.Log_Level_Constants" >Log Level Constants</a></td><td class=SDescription>Logging level indicators.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Strophe.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.forEachChild" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">forEachChild</a></td><td class=SDescription>Map a function over some or all child elements of a given element.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.isTagEqual" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">isTagEqual</a></td><td class=SDescription>Compare an element&rsquo;s tag name with a string.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.xmlElement" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')">xmlElement</a></td><td class=SDescription>Create an XML DOM element.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.xmlescape" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')">xmlescape</a></td><td class=SDescription>Excapes invalid xml characters.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.xmlTextNode" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')">xmlTextNode</a></td><td class=SDescription>Creates an XML DOM text node.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.getText" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')">getText</a></td><td class=SDescription>Get the concatenation of all text children of an element.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.copyElement" id=link12 onMouseOver="ShowTip(event, 'tt12', 'link12')" onMouseOut="HideTip('tt12')">copyElement</a></td><td class=SDescription>Copy an XML DOM element.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.escapeNode" id=link13 onMouseOver="ShowTip(event, 'tt13', 'link13')" onMouseOut="HideTip('tt13')">escapeNode</a></td><td class=SDescription>Escape the node part (also called local part) of a JID.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.unescapeNode" id=link14 onMouseOver="ShowTip(event, 'tt14', 'link14')" onMouseOut="HideTip('tt14')">unescapeNode</a></td><td class=SDescription>Unescape a node part (also called local part) of a JID.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.getNodeFromJid" id=link15 onMouseOver="ShowTip(event, 'tt15', 'link15')" onMouseOut="HideTip('tt15')">getNodeFromJid</a></td><td class=SDescription>Get the node portion of a JID String.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.getDomainFromJid" id=link16 onMouseOver="ShowTip(event, 'tt16', 'link16')" onMouseOut="HideTip('tt16')">getDomainFromJid</a></td><td class=SDescription>Get the domain portion of a JID String.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.getResourceFromJid" id=link17 onMouseOver="ShowTip(event, 'tt17', 'link17')" onMouseOut="HideTip('tt17')">getResourceFromJid</a></td><td class=SDescription>Get the resource portion of a JID String.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.getBareJidFromJid" id=link18 onMouseOver="ShowTip(event, 'tt18', 'link18')" onMouseOut="HideTip('tt18')">getBareJidFromJid</a></td><td class=SDescription>Get the bare JID from a JID String.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.log" id=link19 onMouseOver="ShowTip(event, 'tt19', 'link19')" onMouseOut="HideTip('tt19')">log</a></td><td class=SDescription>User overrideable logging function.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.debug" id=link20 onMouseOver="ShowTip(event, 'tt20', 'link20')" onMouseOut="HideTip('tt20')">debug</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.DEBUG level.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.info" id=link21 onMouseOver="ShowTip(event, 'tt21', 'link21')" onMouseOut="HideTip('tt21')">info</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.INFO level.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.warn" id=link22 onMouseOver="ShowTip(event, 'tt22', 'link22')" onMouseOut="HideTip('tt22')">warn</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.WARN level.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.error" id=link23 onMouseOver="ShowTip(event, 'tt23', 'link23')" onMouseOut="HideTip('tt23')">error</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.ERROR level.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.fatal" id=link24 onMouseOver="ShowTip(event, 'tt24', 'link24')" onMouseOut="HideTip('tt24')">fatal</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.FATAL level.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.serialize" id=link25 onMouseOver="ShowTip(event, 'tt25', 'link25')" onMouseOut="HideTip('tt25')">serialize</a></td><td class=SDescription>Render a DOM element and all descendants to a String.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.addConnectionPlugin" id=link26 onMouseOver="ShowTip(event, 'tt26', 'link26')" onMouseOut="HideTip('tt26')">addConnectionPlugin</a></td><td class=SDescription>Extends the Strophe.Connection object with the given plugin.</td></tr><tr class="SClass"><td class=SEntry><a href="#Strophe.Builder" >Strophe.<wbr>Builder</a></td><td class=SDescription>XML DOM builder.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Strophe.Builder.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Builder.Strophe.Builder" id=link27 onMouseOver="ShowTip(event, 'tt27', 'link27')" onMouseOut="HideTip('tt27')">Strophe.<wbr>Builder</a></td><td class=SDescription>Create a Strophe.Builder object.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Builder.tree" id=link28 onMouseOver="ShowTip(event, 'tt28', 'link28')" onMouseOut="HideTip('tt28')">tree</a></td><td class=SDescription>Return the DOM tree.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Builder.toString" id=link29 onMouseOver="ShowTip(event, 'tt29', 'link29')" onMouseOut="HideTip('tt29')">toString</a></td><td class=SDescription>Serialize the DOM tree to a String.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Builder.up" id=link30 onMouseOver="ShowTip(event, 'tt30', 'link30')" onMouseOut="HideTip('tt30')">up</a></td><td class=SDescription>Make the current parent element the new current element.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Builder.attrs" id=link31 onMouseOver="ShowTip(event, 'tt31', 'link31')" onMouseOut="HideTip('tt31')">attrs</a></td><td class=SDescription>Add or modify attributes of the current element.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Builder.c" id=link32 onMouseOver="ShowTip(event, 'tt32', 'link32')" onMouseOut="HideTip('tt32')">c</a></td><td class=SDescription>Add a child to the current element and make it the new current element.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Builder.cnode" id=link33 onMouseOver="ShowTip(event, 'tt33', 'link33')" onMouseOut="HideTip('tt33')">cnode</a></td><td class=SDescription>Add a child to the current element and make it the new current element.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Builder.t" id=link34 onMouseOver="ShowTip(event, 'tt34', 'link34')" onMouseOut="HideTip('tt34')">t</a></td><td class=SDescription>Add a child text element.</td></tr><tr class="SClass"><td class=SEntry><a href="#Strophe.Connection" >Strophe.<wbr>Connection</a></td><td class=SDescription>XMPP Connection manager.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Strophe.Connection.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.Strophe.Connection" id=link35 onMouseOver="ShowTip(event, 'tt35', 'link35')" onMouseOut="HideTip('tt35')">Strophe.<wbr>Connection</a></td><td class=SDescription>Create and initialize a Strophe.Connection object.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.reset" id=link36 onMouseOver="ShowTip(event, 'tt36', 'link36')" onMouseOut="HideTip('tt36')">reset</a></td><td class=SDescription>Reset the connection.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.pause" id=link37 onMouseOver="ShowTip(event, 'tt37', 'link37')" onMouseOut="HideTip('tt37')">pause</a></td><td class=SDescription>Pause the request manager.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.resume" id=link38 onMouseOver="ShowTip(event, 'tt38', 'link38')" onMouseOut="HideTip('tt38')">resume</a></td><td class=SDescription>Resume the request manager.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.getUniqueId" id=link39 onMouseOver="ShowTip(event, 'tt39', 'link39')" onMouseOut="HideTip('tt39')">getUniqueId</a></td><td class=SDescription>Generate a unique ID for use in &lt;iq/&gt; elements.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.connect" id=link40 onMouseOver="ShowTip(event, 'tt40', 'link40')" onMouseOut="HideTip('tt40')">connect</a></td><td class=SDescription>Starts the connection process.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.attach" id=link41 onMouseOver="ShowTip(event, 'tt41', 'link41')" onMouseOut="HideTip('tt41')">attach</a></td><td class=SDescription>Attach to an already created and authenticated BOSH session.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.xmlInput" id=link42 onMouseOver="ShowTip(event, 'tt42', 'link42')" onMouseOut="HideTip('tt42')">xmlInput</a></td><td class=SDescription>User overrideable function that receives XML data coming into the connection.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.xmlOutput" id=link43 onMouseOver="ShowTip(event, 'tt43', 'link43')" onMouseOut="HideTip('tt43')">xmlOutput</a></td><td class=SDescription>User overrideable function that receives XML data sent to the connection.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.rawInput" id=link44 onMouseOver="ShowTip(event, 'tt44', 'link44')" onMouseOut="HideTip('tt44')">rawInput</a></td><td class=SDescription>User overrideable function that receives raw data coming into the connection.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.rawOutput" id=link45 onMouseOver="ShowTip(event, 'tt45', 'link45')" onMouseOut="HideTip('tt45')">rawOutput</a></td><td class=SDescription>User overrideable function that receives raw data sent to the connection.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.send" id=link46 onMouseOver="ShowTip(event, 'tt46', 'link46')" onMouseOut="HideTip('tt46')">send</a></td><td class=SDescription>Send a stanza.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.flush" id=link47 onMouseOver="ShowTip(event, 'tt47', 'link47')" onMouseOut="HideTip('tt47')">flush</a></td><td class=SDescription>Immediately send any pending outgoing data.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.sendIQ" id=link48 onMouseOver="ShowTip(event, 'tt48', 'link48')" onMouseOut="HideTip('tt48')">sendIQ</a></td><td class=SDescription>Helper function to send IQ stanzas.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.addTimedHandler" id=link49 onMouseOver="ShowTip(event, 'tt49', 'link49')" onMouseOut="HideTip('tt49')">addTimedHandler</a></td><td class=SDescription>Add a timed handler to the connection.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.deleteTimedHandler" id=link50 onMouseOver="ShowTip(event, 'tt50', 'link50')" onMouseOut="HideTip('tt50')">deleteTimedHandler</a></td><td class=SDescription>Delete a timed handler for a connection.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.addHandler" id=link51 onMouseOver="ShowTip(event, 'tt51', 'link51')" onMouseOut="HideTip('tt51')">addHandler</a></td><td class=SDescription>Add a stanza handler for the connection.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Strophe.Connection.deleteHandler" id=link52 onMouseOver="ShowTip(event, 'tt52', 'link52')" onMouseOut="HideTip('tt52')">deleteHandler</a></td><td class=SDescription>Delete a stanza handler for a connection.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Strophe.Connection.disconnect" id=link53 onMouseOver="ShowTip(event, 'tt53', 'link53')" onMouseOut="HideTip('tt53')">disconnect</a></td><td class=SDescription>Start the graceful disconnection process.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
+
+<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Functions"></a>Functions</h3></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="$build"></a>$build</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $build(</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create a Strophe.Builder.&nbsp; This is an alias for &lsquo;new Strophe.Builder(name, attrs)&rsquo;.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The root element name.</td></tr><tr><td class=CDLEntry>(Object) attrs</td><td class=CDLDescription>The attributes for the root element in object notation.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new Strophe.Builder object.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="$msg"></a>$msg</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $msg(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create a Strophe.Builder with a &lt;message/&gt; element as the root.</p><h4 class=CHeading>Parmaeters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Object) attrs</td><td class=CDLDescription>The &lt;message/&gt; element attributes in object notation.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new Strophe.Builder object.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="$iq"></a>$iq</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $iq(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create a Strophe.Builder with an &lt;iq/&gt; element as the root.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Object) attrs</td><td class=CDLDescription>The &lt;iq/&gt; element attributes in object notation.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new Strophe.Builder object.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="$pres"></a>$pres</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $pres(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create a Strophe.Builder with a &lt;presence/&gt; element as the root.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Object) attrs</td><td class=CDLDescription>The &lt;presence/&gt; element attributes in object notation.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new Strophe.Builder object.</p></div></div></div>
+
+<div class="CClass"><div class=CTopic><h2 class=CTitle><a name="Strophe"></a>Strophe</h2><div class=CBody><p>An object container for all Strophe library functions.</p><p>This class is just a container for all the objects and constants used in the library.&nbsp;  It is not meant to be instantiated, but to provide a namespace for library objects, constants, and functions.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#Strophe.Constants" >Constants</a></td><td class=SDescription></td></tr><tr class="SConstant SIndent1 SMarked"><td class=SEntry><a href="#Strophe.VERSION" >VERSION</a></td><td class=SDescription>The version of the Strophe library. </td></tr><tr class="SConstant SIndent1"><td class=SEntry><a href="#Strophe.XMPP_Namespace_Constants" >XMPP Namespace Constants</a></td><td class=SDescription>Common namespace constants from the XMPP RFCs and XEPs.</td></tr><tr class="SGroup"><td class=SEntry><a href="#Strophe.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.addNamespace" id=link54 onMouseOver="ShowTip(event, 'tt5', 'link54')" onMouseOut="HideTip('tt5')">addNamespace</a></td><td class=SDescription>This function is used to extend the current namespaces in Strophe.NS. </td></tr><tr class="SGroup"><td class=SEntry><a href="#Strophe.Constants" >Constants</a></td><td class=SDescription></td></tr><tr class="SConstant SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection_Status_Constants" >Connection Status Constants</a></td><td class=SDescription>Connection status constants for use by the connection handler callback.</td></tr><tr class="SConstant SIndent1"><td class=SEntry><a href="#Strophe.Log_Level_Constants" >Log Level Constants</a></td><td class=SDescription>Logging level indicators.</td></tr><tr class="SGroup"><td class=SEntry><a href="#Strophe.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.forEachChild" id=link55 onMouseOver="ShowTip(event, 'tt6', 'link55')" onMouseOut="HideTip('tt6')">forEachChild</a></td><td class=SDescription>Map a function over some or all child elements of a given element.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.isTagEqual" id=link56 onMouseOver="ShowTip(event, 'tt7', 'link56')" onMouseOut="HideTip('tt7')">isTagEqual</a></td><td class=SDescription>Compare an element&rsquo;s tag name with a string.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.xmlElement" id=link57 onMouseOver="ShowTip(event, 'tt8', 'link57')" onMouseOut="HideTip('tt8')">xmlElement</a></td><td class=SDescription>Create an XML DOM element.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.xmlescape" id=link58 onMouseOver="ShowTip(event, 'tt9', 'link58')" onMouseOut="HideTip('tt9')">xmlescape</a></td><td class=SDescription>Excapes invalid xml characters.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.xmlTextNode" id=link59 onMouseOver="ShowTip(event, 'tt10', 'link59')" onMouseOut="HideTip('tt10')">xmlTextNode</a></td><td class=SDescription>Creates an XML DOM text node.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.getText" id=link60 onMouseOver="ShowTip(event, 'tt11', 'link60')" onMouseOut="HideTip('tt11')">getText</a></td><td class=SDescription>Get the concatenation of all text children of an element.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.copyElement" id=link61 onMouseOver="ShowTip(event, 'tt12', 'link61')" onMouseOut="HideTip('tt12')">copyElement</a></td><td class=SDescription>Copy an XML DOM element.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.escapeNode" id=link62 onMouseOver="ShowTip(event, 'tt13', 'link62')" onMouseOut="HideTip('tt13')">escapeNode</a></td><td class=SDescription>Escape the node part (also called local part) of a JID.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.unescapeNode" id=link63 onMouseOver="ShowTip(event, 'tt14', 'link63')" onMouseOut="HideTip('tt14')">unescapeNode</a></td><td class=SDescription>Unescape a node part (also called local part) of a JID.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.getNodeFromJid" id=link64 onMouseOver="ShowTip(event, 'tt15', 'link64')" onMouseOut="HideTip('tt15')">getNodeFromJid</a></td><td class=SDescription>Get the node portion of a JID String.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.getDomainFromJid" id=link65 onMouseOver="ShowTip(event, 'tt16', 'link65')" onMouseOut="HideTip('tt16')">getDomainFromJid</a></td><td class=SDescription>Get the domain portion of a JID String.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.getResourceFromJid" id=link66 onMouseOver="ShowTip(event, 'tt17', 'link66')" onMouseOut="HideTip('tt17')">getResourceFromJid</a></td><td class=SDescription>Get the resource portion of a JID String.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.getBareJidFromJid" id=link67 onMouseOver="ShowTip(event, 'tt18', 'link67')" onMouseOut="HideTip('tt18')">getBareJidFromJid</a></td><td class=SDescription>Get the bare JID from a JID String.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.log" id=link68 onMouseOver="ShowTip(event, 'tt19', 'link68')" onMouseOut="HideTip('tt19')">log</a></td><td class=SDescription>User overrideable logging function.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.debug" id=link69 onMouseOver="ShowTip(event, 'tt20', 'link69')" onMouseOut="HideTip('tt20')">debug</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.DEBUG level.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.info" id=link70 onMouseOver="ShowTip(event, 'tt21', 'link70')" onMouseOut="HideTip('tt21')">info</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.INFO level.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.warn" id=link71 onMouseOver="ShowTip(event, 'tt22', 'link71')" onMouseOut="HideTip('tt22')">warn</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.WARN level.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.error" id=link72 onMouseOver="ShowTip(event, 'tt23', 'link72')" onMouseOut="HideTip('tt23')">error</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.ERROR level.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.fatal" id=link73 onMouseOver="ShowTip(event, 'tt24', 'link73')" onMouseOut="HideTip('tt24')">fatal</a></td><td class=SDescription>Log a message at the Strophe.LogLevel.FATAL level.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.serialize" id=link74 onMouseOver="ShowTip(event, 'tt25', 'link74')" onMouseOut="HideTip('tt25')">serialize</a></td><td class=SDescription>Render a DOM element and all descendants to a String.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.addConnectionPlugin" id=link75 onMouseOver="ShowTip(event, 'tt26', 'link75')" onMouseOut="HideTip('tt26')">addConnectionPlugin</a></td><td class=SDescription>Extends the Strophe.Connection object with the given plugin.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
+
+<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Strophe.Constants"></a>Constants</h3></div></div>
+
+<div class="CConstant"><div class=CTopic><h3 class=CTitle><a name="Strophe.VERSION"></a>VERSION</h3><div class=CBody><p>The version of the Strophe library.&nbsp; Unreleased builds will have a version of head-HASH where HASH is a partial revision.</p></div></div></div>
+
+<div class="CConstant"><div class=CTopic><h3 class=CTitle><a name="Strophe.XMPP_Namespace_Constants"></a>XMPP Namespace Constants</h3><div class=CBody><p>Common namespace constants from the XMPP RFCs and XEPs.</p><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.HTTPBIND"></a>NS.HTTPBIND</td><td class=CDLDescription>HTTP BIND namespace from XEP 124.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.BOSH"></a>NS.BOSH</td><td class=CDLDescription>BOSH namespace from XEP 206.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.CLIENT"></a>NS.CLIENT</td><td class=CDLDescription>Main XMPP client namespace.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.AUTH"></a>NS.AUTH</td><td class=CDLDescription>Legacy authentication namespace.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.ROSTER"></a>NS.ROSTER</td><td class=CDLDescription>Roster operations namespace.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.PROFILE"></a>NS.PROFILE</td><td class=CDLDescription>Profile namespace.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.DISCO_INFO"></a>NS.DISCO_INFO</td><td class=CDLDescription>Service discovery info namespace from XEP 30.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.DISCO_ITEMS"></a>NS.DISCO_ITEMS</td><td class=CDLDescription>Service discovery items namespace from XEP 30.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.MUC"></a>NS.MUC</td><td class=CDLDescription>Multi-User Chat namespace from XEP 45.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.SASL"></a>NS.SASL</td><td class=CDLDescription>XMPP SASL namespace from RFC 3920.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.STREAM"></a>NS.STREAM</td><td class=CDLDescription>XMPP Streams namespace from RFC 3920.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.BIND"></a>NS.BIND</td><td class=CDLDescription>XMPP Binding namespace from RFC 3920.</td></tr><tr><td class=CDLEntry><a name="Strophe.XMPP_Namespace_Constants.NS.SESSION"></a>NS.SESSION</td><td class=CDLDescription>XMPP Session namespace from RFC 3920.</td></tr></table></div></div></div>
+
+<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Strophe.Functions"></a>Functions</h3></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.addNamespace"></a>addNamespace</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addNamespace: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>This function is used to extend the current namespaces in Strophe.NS.&nbsp;  It takes a key and a value with the key being the name of the new namespace, with its actual value.&nbsp; For example: Strophe.addNamespace(&lsquo;PUBSUB&rsquo;, &ldquo;<a href="http://jabber.org/protocol/pubsub" class=LURL target=_top>http://jabber.org/protocol/pubsub</a>&rdquo;);</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The name under which the namespace will be referenced under Strophe.NS</td></tr><tr><td class=CDLEntry>(String) value</td><td class=CDLDescription>The actual namespace.</td></tr></table></div></div></div>
+
+<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Strophe.Constants"></a>Constants</h3></div></div>
+
+<div class="CConstant"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection_Status_Constants"></a>Connection Status Constants</h3><div class=CBody><p>Connection status constants for use by the connection handler callback.</p><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.ERROR"></a>Status.ERROR</td><td class=CDLDescription>An error has occurred</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.CONNECTING"></a>Status.CONNECTING</td><td class=CDLDescription>The connection is currently being made</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.CONNFAIL"></a>Status.CONNFAIL</td><td class=CDLDescription>The connection attempt failed</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.AUTHENTICATING"></a>Status.AUTHENTICATING</td><td class=CDLDescription>The connection is authenticating</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.AUTHFAIL"></a>Status.AUTHFAIL</td><td class=CDLDescription>The authentication attempt failed</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.CONNECTED"></a>Status.CONNECTED</td><td class=CDLDescription>The connection has succeeded</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.DISCONNECTED"></a>Status.DISCONNECTED</td><td class=CDLDescription>The connection has been terminated</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.DISCONNECTING"></a>Status.DISCONNECTING</td><td class=CDLDescription>The connection is currently being terminated</td></tr><tr><td class=CDLEntry><a name="Strophe.Connection_Status_Constants.Status.ATTACHED"></a>Status.ATTACHED</td><td class=CDLDescription>The connection has been attached</td></tr></table></div></div></div>
+
+<div class="CConstant"><div class=CTopic><h3 class=CTitle><a name="Strophe.Log_Level_Constants"></a>Log Level Constants</h3><div class=CBody><p>Logging level indicators.</p><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry><a name="Strophe.Log_Level_Constants.LogLevel.DEBUG"></a>LogLevel.DEBUG</td><td class=CDLDescription>Debug output</td></tr><tr><td class=CDLEntry><a name="Strophe.Log_Level_Constants.LogLevel.INFO"></a>LogLevel.INFO</td><td class=CDLDescription>Informational output</td></tr><tr><td class=CDLEntry><a name="Strophe.Log_Level_Constants.LogLevel.WARN"></a>LogLevel.WARN</td><td class=CDLDescription>Warnings</td></tr><tr><td class=CDLEntry><a name="Strophe.Log_Level_Constants.LogLevel.ERROR"></a>LogLevel.ERROR</td><td class=CDLDescription>Errors</td></tr><tr><td class=CDLEntry><a name="Strophe.Log_Level_Constants.LogLevel.FATAL"></a>LogLevel.FATAL</td><td class=CDLDescription>Fatal errors</td></tr></table></div></div></div>
+
+<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Strophe.Functions"></a>Functions</h3></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.forEachChild"></a>forEachChild</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>forEachChild: function (</td><td class=PParameter nowrap>elem,</td></tr><tr><td></td><td class=PParameter nowrap>elemName,</td></tr><tr><td></td><td class=PParameter nowrap>func</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Map a function over some or all child elements of a given element.</p><p>This is a small convenience function for mapping a function over some or all of the children of an element.&nbsp;  If elemName is null, all children will be passed to the function, otherwise only children whose tag names match elemName will be passed.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>The element to operate on.</td></tr><tr><td class=CDLEntry>(String) elemName</td><td class=CDLDescription>The child element tag name filter.</td></tr><tr><td class=CDLEntry>(Function) func</td><td class=CDLDescription>The function to apply to each child.&nbsp;  This function should take a single argument, a DOM element.</td></tr></table></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.isTagEqual"></a>isTagEqual</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>isTagEqual: function (</td><td class=PParameter nowrap>el,</td></tr><tr><td></td><td class=PParameter nowrap>name</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Compare an element&rsquo;s tag name with a string.</p><p>This function is case insensitive.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) el</td><td class=CDLDescription>A DOM element.</td></tr><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The element name.</td></tr></table><h4 class=CHeading>Returns</h4><p>true if the element&rsquo;s tag name matches <u>el</u>, and false otherwise.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.xmlElement"></a>xmlElement</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlElement: function (</td><td class=PParameter nowrap>name</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create an XML DOM element.</p><p>This function creates an XML DOM element correctly across all implementations.&nbsp; Specifically the Microsoft implementation of document.createElement makes DOM elements with 43+ default attributes unless elements are created with the ActiveX object Microsoft.XMLDOM.</p><p>Most DOMs force element names to lowercase, so we use the _realname attribute on the created element to store the case sensitive name.&nbsp;  This is required to generate proper XML for things like vCard avatars (XEP 153).&nbsp;  This attribute is stripped out before being sent over the wire or serialized, but you may notice it during debugging.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The name for the element.</td></tr><tr><td class=CDLEntry>(Array) attrs</td><td class=CDLDescription>An optional array of key/value pairs to use as element attributes in the following format [[&lsquo;key1&rsquo;, &lsquo;value1&rsquo;], [&lsquo;key2&rsquo;, &lsquo;value2&rsquo;]]</td></tr><tr><td class=CDLEntry>(String) text</td><td class=CDLDescription>The text child data for the element.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new XML DOM element.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.xmlescape"></a>xmlescape</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlescape: function(</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Excapes invalid xml characters.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) text</td><td class=CDLDescription>text to escape.</td></tr></table><h4 class=CHeading>Returns</h4><p>Escaped text.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.xmlTextNode"></a>xmlTextNode</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlTextNode: function (</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Creates an XML DOM text node.</p><p>Provides a cross implementation version of document.createTextNode.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) text</td><td class=CDLDescription>The content of the text node.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new XML DOM text node.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.getText"></a>getText</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getText: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Get the concatenation of all text children of an element.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>A DOM element.</td></tr></table><h4 class=CHeading>Returns</h4><p>A String with the concatenated text of all text element children.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.copyElement"></a>copyElement</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>copyElement: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Copy an XML DOM element.</p><p>This function copies a DOM element and all its descendants and returns the new copy.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>A DOM element.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new, copied DOM element tree.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.escapeNode"></a>escapeNode</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>escapeNode: function (</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Escape the node part (also called local part) of a JID.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) node</td><td class=CDLDescription>A node (or local part).</td></tr></table><h4 class=CHeading>Returns</h4><p>An escaped node (or local part).</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.unescapeNode"></a>unescapeNode</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>unescapeNode: function (</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Unescape a node part (also called local part) of a JID.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) node</td><td class=CDLDescription>A node (or local part).</td></tr></table><h4 class=CHeading>Returns</h4><p>An unescaped node (or local part).</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.getNodeFromJid"></a>getNodeFromJid</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getNodeFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Get the node portion of a JID String.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) jid</td><td class=CDLDescription>A JID.</td></tr></table><h4 class=CHeading>Returns</h4><p>A String containing the node.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.getDomainFromJid"></a>getDomainFromJid</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getDomainFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Get the domain portion of a JID String.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) jid</td><td class=CDLDescription>A JID.</td></tr></table><h4 class=CHeading>Returns</h4><p>A String containing the domain.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.getResourceFromJid"></a>getResourceFromJid</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getResourceFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Get the resource portion of a JID String.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) jid</td><td class=CDLDescription>A JID.</td></tr></table><h4 class=CHeading>Returns</h4><p>A String containing the resource.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.getBareJidFromJid"></a>getBareJidFromJid</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getBareJidFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Get the bare JID from a JID String.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) jid</td><td class=CDLDescription>A JID.</td></tr></table><h4 class=CHeading>Returns</h4><p>A String containing the bare JID.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.log"></a>log</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>log: function (</td><td class=PParameter nowrap>level,</td></tr><tr><td></td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>User overrideable logging function.</p><p>This function is called whenever the Strophe library calls any of the logging functions.&nbsp;  The default implementation of this function does nothing.&nbsp;  If client code wishes to handle the logging messages, it should override this with</p><blockquote><pre>Strophe.log = function (level, msg) {
+  (user code here)
+};</pre></blockquote><p>Please note that data sent and received over the wire is logged via Strophe.Connection.rawInput() and Strophe.Connection.rawOutput().</p><p>The different levels and their meanings are</p><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>DEBUG</td><td class=CDLDescription>Messages useful for debugging purposes.</td></tr><tr><td class=CDLEntry>INFO</td><td class=CDLDescription>Informational messages.&nbsp;  This is mostly information like &lsquo;disconnect was called&rsquo; or &lsquo;SASL auth succeeded&rsquo;.</td></tr><tr><td class=CDLEntry>WARN</td><td class=CDLDescription>Warnings about potential problems.&nbsp;  This is mostly used to report transient connection errors like request timeouts.</td></tr><tr><td class=CDLEntry>ERROR</td><td class=CDLDescription>Some error occurred.</td></tr><tr><td class=CDLEntry>FATAL</td><td class=CDLDescription>A non-recoverable fatal error occurred.</td></tr></table><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Integer) level</td><td class=CDLDescription>The log level of the log message.&nbsp;  This will be one of the values in Strophe.LogLevel.</td></tr><tr><td class=CDLEntry>(String) msg</td><td class=CDLDescription>The log message.</td></tr></table></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.debug"></a>debug</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>debug: function(</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Log a message at the Strophe.LogLevel.DEBUG level.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) msg</td><td class=CDLDescription>The log message.</td></tr></table></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.info"></a>info</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>info: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Log a message at the Strophe.LogLevel.INFO level.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) msg</td><td class=CDLDescription>The log message.</td></tr></table></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.warn"></a>warn</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>warn: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Log a message at the Strophe.LogLevel.WARN level.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) msg</td><td class=CDLDescription>The log message.</td></tr></table></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.error"></a>error</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>error: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Log a message at the Strophe.LogLevel.ERROR level.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) msg</td><td class=CDLDescription>The log message.</td></tr></table></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.fatal"></a>fatal</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>fatal: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Log a message at the Strophe.LogLevel.FATAL level.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) msg</td><td class=CDLDescription>The log message.</td></tr></table></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.serialize"></a>serialize</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>serialize: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Render a DOM element and all descendants to a String.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>A DOM element.</td></tr></table><h4 class=CHeading>Returns</h4><p>The serialized element tree as a String.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.addConnectionPlugin"></a>addConnectionPlugin</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addConnectionPlugin: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>ptype</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Extends the Strophe.Connection object with the given plugin.</p><h4 class=CHeading>Paramaters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The name of the extension.</td></tr><tr><td class=CDLEntry>(Object) ptype</td><td class=CDLDescription>The plugin&rsquo;s prototype.</td></tr></table></div></div></div>
+
+<div class="CClass"><div class=CTopic><h2 class=CTitle><a name="Strophe.Builder"></a>Strophe.<wbr>Builder</h2><div class=CBody><p>XML DOM builder.</p><p>This object provides an interface similar to JQuery but for building DOM element easily and rapidly.&nbsp;  All the functions except for toString() and tree() return the object, so calls can be chained.&nbsp;  Here&rsquo;s an example using the $iq() builder helper.</p><blockquote><pre>$iq({to: 'you': from: 'me': type: 'get', id: '1'})
+    .c('query', {xmlns: 'strophe:example'})
+    .c('example')
+    .toString()</pre></blockquote><p>The above generates this XML fragment</p><blockquote><pre>&lt;iq to='you' from='me' type='get' id='1'&gt;
+  &lt;query xmlns='strophe:example'&gt;
+    &lt;example/&gt;
+  &lt;/query&gt;
+&lt;/iq&gt;</pre></blockquote><p>The corresponding DOM manipulations to get a similar fragment would be a lot more tedious and probably involve several helper variables.</p><p>Since adding children makes new operations operate on the child, up() is provided to traverse up the tree.&nbsp;  To add two children, do</p><blockquote><pre>builder.c('child1', ...).up().c('child2', ...)</pre></blockquote><p>The next operation on the Builder will be relative to the second child.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#Strophe.Builder.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Builder.Strophe.Builder" id=link76 onMouseOver="ShowTip(event, 'tt27', 'link76')" onMouseOut="HideTip('tt27')">Strophe.<wbr>Builder</a></td><td class=SDescription>Create a Strophe.Builder object.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Builder.tree" id=link77 onMouseOver="ShowTip(event, 'tt28', 'link77')" onMouseOut="HideTip('tt28')">tree</a></td><td class=SDescription>Return the DOM tree.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Builder.toString" id=link78 onMouseOver="ShowTip(event, 'tt29', 'link78')" onMouseOut="HideTip('tt29')">toString</a></td><td class=SDescription>Serialize the DOM tree to a String.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Builder.up" id=link79 onMouseOver="ShowTip(event, 'tt30', 'link79')" onMouseOut="HideTip('tt30')">up</a></td><td class=SDescription>Make the current parent element the new current element.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Builder.attrs" id=link80 onMouseOver="ShowTip(event, 'tt31', 'link80')" onMouseOut="HideTip('tt31')">attrs</a></td><td class=SDescription>Add or modify attributes of the current element.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Builder.c" id=link81 onMouseOver="ShowTip(event, 'tt32', 'link81')" onMouseOut="HideTip('tt32')">c</a></td><td class=SDescription>Add a child to the current element and make it the new current element.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Builder.cnode" id=link82 onMouseOver="ShowTip(event, 'tt33', 'link82')" onMouseOut="HideTip('tt33')">cnode</a></td><td class=SDescription>Add a child to the current element and make it the new current element.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Builder.t" id=link83 onMouseOver="ShowTip(event, 'tt34', 'link83')" onMouseOut="HideTip('tt34')">t</a></td><td class=SDescription>Add a child text element.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
+
+<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.Functions"></a>Functions</h3></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.Strophe.Builder"></a>Strophe.<wbr>Builder</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>Strophe.Builder = function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create a Strophe.Builder object.</p><p>The attributes should be passed in object notation.&nbsp;  For example</p><blockquote><pre>var b = new Builder('message', {to: 'you', from: 'me'});</pre></blockquote><p>or</p><blockquote><pre>var b = new Builder('messsage', {'xml:lang': 'en'});</pre></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The name of the root element.</td></tr><tr><td class=CDLEntry>(Object) attrs</td><td class=CDLDescription>The attributes for the root element in object notation.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new Strophe.Builder.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.tree"></a>tree</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>tree: function ()</td></tr></table></blockquote><p>Return the DOM tree.</p><p>This function returns the current DOM tree as an element object.&nbsp;  This is suitable for passing to functions like Strophe.Connection.send().</p><h4 class=CHeading>Returns</h4><p>The DOM tree as a element object.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.toString"></a>toString</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>toString: function ()</td></tr></table></blockquote><p>Serialize the DOM tree to a String.</p><p>This function returns a string serialization of the current DOM tree.&nbsp;  It is often used internally to pass data to a Strophe.Request object.</p><h4 class=CHeading>Returns</h4><p>The serialized DOM tree in a String.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.up"></a>up</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>up: function ()</td></tr></table></blockquote><p>Make the current parent element the new current element.</p><p>This function is often used after c() to traverse back up the tree.&nbsp; For example, to add two children to the same element</p><blockquote><pre>builder.c('child1', {}).up().c('child2', {});</pre></blockquote><h4 class=CHeading>Returns</h4><p>The Stophe.Builder object.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.attrs"></a>attrs</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>attrs: function (</td><td class=PParameter nowrap>moreattrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Add or modify attributes of the current element.</p><p>The attributes should be passed in object notation.&nbsp;  This function does not move the current element pointer.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Object) moreattrs</td><td class=CDLDescription>The attributes to add/modify in object notation.</td></tr></table><h4 class=CHeading>Returns</h4><p>The Strophe.Builder object.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.c"></a>c</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>c: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Add a child to the current element and make it the new current element.</p><p>This function moves the current element pointer to the child.&nbsp;  If you need to add another child, it is necessary to use up() to go back to the parent in the tree.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The name of the child.</td></tr><tr><td class=CDLEntry>(Object) attrs</td><td class=CDLDescription>The attributes of the child in object notation.</td></tr></table><h4 class=CHeading>Returns</h4><p>The Strophe.Builder object.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.cnode"></a>cnode</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>cnode: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Add a child to the current element and make it the new current element.</p><p>This function is the same as c() except that instead of using a name and an attributes object to create the child it uses an existing DOM element object.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>A DOM element.</td></tr></table><h4 class=CHeading>Returns</h4><p>The Strophe.Builder object.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Builder.t"></a>t</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>t: function (</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Add a child text element.</p><p>This <b>does not</b> make the child the new current element since there are no children of text elements.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) text</td><td class=CDLDescription>The text data to append to the current element.</td></tr></table><h4 class=CHeading>Returns</h4><p>The Strophe.Builder object.</p></div></div></div>
+
+<div class="CClass"><div class=CTopic><h2 class=CTitle><a name="Strophe.Connection"></a>Strophe.<wbr>Connection</h2><div class=CBody><p>XMPP Connection manager.</p><p>Thie class is the main part of Strophe.&nbsp;  It manages a BOSH connection to an XMPP server and dispatches events to the user callbacks as data arrives.&nbsp;  It supports SASL PLAIN, SASL DIGEST-MD5, and legacy authentication.</p><p>After creating a Strophe.Connection object, the user will typically call connect() with a user supplied callback to handle connection level events like authentication failure, disconnection, or connection complete.</p><p>The user will also have several event handlers defined by using addHandler() and addTimedHandler().&nbsp;  These will allow the user code to respond to interesting stanzas or do something periodically with the connection.&nbsp;  These handlers will be active once authentication is finished.</p><p>To send data to the connection, use send().</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#Strophe.Connection.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.Strophe.Connection" id=link84 onMouseOver="ShowTip(event, 'tt35', 'link84')" onMouseOut="HideTip('tt35')">Strophe.<wbr>Connection</a></td><td class=SDescription>Create and initialize a Strophe.Connection object.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.reset" id=link85 onMouseOver="ShowTip(event, 'tt36', 'link85')" onMouseOut="HideTip('tt36')">reset</a></td><td class=SDescription>Reset the connection.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.pause" id=link86 onMouseOver="ShowTip(event, 'tt37', 'link86')" onMouseOut="HideTip('tt37')">pause</a></td><td class=SDescription>Pause the request manager.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.resume" id=link87 onMouseOver="ShowTip(event, 'tt38', 'link87')" onMouseOut="HideTip('tt38')">resume</a></td><td class=SDescription>Resume the request manager.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.getUniqueId" id=link88 onMouseOver="ShowTip(event, 'tt39', 'link88')" onMouseOut="HideTip('tt39')">getUniqueId</a></td><td class=SDescription>Generate a unique ID for use in &lt;iq/&gt; elements.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.connect" id=link89 onMouseOver="ShowTip(event, 'tt40', 'link89')" onMouseOut="HideTip('tt40')">connect</a></td><td class=SDescription>Starts the connection process.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.attach" id=link90 onMouseOver="ShowTip(event, 'tt41', 'link90')" onMouseOut="HideTip('tt41')">attach</a></td><td class=SDescription>Attach to an already created and authenticated BOSH session.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.xmlInput" id=link91 onMouseOver="ShowTip(event, 'tt42', 'link91')" onMouseOut="HideTip('tt42')">xmlInput</a></td><td class=SDescription>User overrideable function that receives XML data coming into the connection.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.xmlOutput" id=link92 onMouseOver="ShowTip(event, 'tt43', 'link92')" onMouseOut="HideTip('tt43')">xmlOutput</a></td><td class=SDescription>User overrideable function that receives XML data sent to the connection.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.rawInput" id=link93 onMouseOver="ShowTip(event, 'tt44', 'link93')" onMouseOut="HideTip('tt44')">rawInput</a></td><td class=SDescription>User overrideable function that receives raw data coming into the connection.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.rawOutput" id=link94 onMouseOver="ShowTip(event, 'tt45', 'link94')" onMouseOut="HideTip('tt45')">rawOutput</a></td><td class=SDescription>User overrideable function that receives raw data sent to the connection.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.send" id=link95 onMouseOver="ShowTip(event, 'tt46', 'link95')" onMouseOut="HideTip('tt46')">send</a></td><td class=SDescription>Send a stanza.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.flush" id=link96 onMouseOver="ShowTip(event, 'tt47', 'link96')" onMouseOut="HideTip('tt47')">flush</a></td><td class=SDescription>Immediately send any pending outgoing data.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.sendIQ" id=link97 onMouseOver="ShowTip(event, 'tt48', 'link97')" onMouseOut="HideTip('tt48')">sendIQ</a></td><td class=SDescription>Helper function to send IQ stanzas.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.addTimedHandler" id=link98 onMouseOver="ShowTip(event, 'tt49', 'link98')" onMouseOut="HideTip('tt49')">addTimedHandler</a></td><td class=SDescription>Add a timed handler to the connection.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.deleteTimedHandler" id=link99 onMouseOver="ShowTip(event, 'tt50', 'link99')" onMouseOut="HideTip('tt50')">deleteTimedHandler</a></td><td class=SDescription>Delete a timed handler for a connection.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.addHandler" id=link100 onMouseOver="ShowTip(event, 'tt51', 'link100')" onMouseOut="HideTip('tt51')">addHandler</a></td><td class=SDescription>Add a stanza handler for the connection.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#Strophe.Connection.deleteHandler" id=link101 onMouseOver="ShowTip(event, 'tt52', 'link101')" onMouseOut="HideTip('tt52')">deleteHandler</a></td><td class=SDescription>Delete a stanza handler for a connection.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#Strophe.Connection.disconnect" id=link102 onMouseOver="ShowTip(event, 'tt53', 'link102')" onMouseOut="HideTip('tt53')">disconnect</a></td><td class=SDescription>Start the graceful disconnection process.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
+
+<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.Functions"></a>Functions</h3></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.Strophe.Connection"></a>Strophe.<wbr>Connection</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>Strophe.Connection = function (</td><td class=PParameter nowrap>service</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create and initialize a Strophe.Connection object.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) service</td><td class=CDLDescription>The BOSH service URL.</td></tr></table><h4 class=CHeading>Returns</h4><p>A new Strophe.Connection object.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.reset"></a>reset</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>reset: function ()</td></tr></table></blockquote><p>Reset the connection.</p><p>This function should be called after a connection is disconnected before that connection is reused.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.pause"></a>pause</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>pause: function ()</td></tr></table></blockquote><p>Pause the request manager.</p><p>This will prevent Strophe from sending any more requests to the server.&nbsp;  This is very useful for temporarily pausing while a lot of send() calls are happening quickly.&nbsp;  This causes Strophe to send the data in a single request, saving many request trips.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.resume"></a>resume</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>resume: function ()</td></tr></table></blockquote><p>Resume the request manager.</p><p>This resumes after pause() has been called.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.getUniqueId"></a>getUniqueId</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getUniqueId: function (</td><td class=PParameter nowrap>suffix</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Generate a unique ID for use in &lt;iq/&gt; elements.</p><p>All &lt;iq/&gt; stanzas are required to have unique id attributes.&nbsp;  This function makes creating these easy.&nbsp;  Each connection instance has a counter which starts from zero, and the value of this counter plus a colon followed by the suffix becomes the unique id.&nbsp; If no suffix is supplied, the counter is used as the unique id.</p><p>Suffixes are used to make debugging easier when reading the stream data, and their use is recommended.&nbsp;  The counter resets to 0 for every new connection for the same reason.&nbsp;  For connections to the same server that authenticate the same way, all the ids should be the same, which makes it easy to see changes.&nbsp;  This is useful for automated testing as well.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) suffix</td><td class=CDLDescription>A optional suffix to append to the id.</td></tr></table><h4 class=CHeading>Returns</h4><p>A unique string to be used for the id attribute.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.connect"></a>connect</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>connect: function (</td><td class=PParameter nowrap>jid,</td></tr><tr><td></td><td class=PParameter nowrap>pass,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>wait,</td></tr><tr><td></td><td class=PParameter nowrap>hold</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Starts the connection process.</p><p>As the connection process proceeds, the user supplied callback will be triggered multiple times with status updates.&nbsp;  The callback should take two arguments - the status code and the error condition.</p><p>The status code will be one of the values in the Strophe.Status constants.&nbsp;  The error condition will be one of the conditions defined in RFC 3920 or the condition &lsquo;strophe-parsererror&rsquo;.</p><p>Please see XEP 124 for a more detailed explanation of the optional parameters below.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) jid</td><td class=CDLDescription>The user&rsquo;s JID.&nbsp;  This may be a bare JID, or a full JID.&nbsp;  If a node is not supplied, SASL ANONYMOUS authentication will be attempted.</td></tr><tr><td class=CDLEntry>(String) pass</td><td class=CDLDescription>The user&rsquo;s password.&nbsp; (Function) callback The connect callback function.</td></tr><tr><td class=CDLEntry>(Integer) wait</td><td class=CDLDescription>The optional HTTPBIND wait value.&nbsp;  This is the time the server will wait before returning an empty result for a request.&nbsp;  The default setting of 60 seconds is recommended.&nbsp; Other settings will require tweaks to the Strophe.TIMEOUT value.</td></tr><tr><td class=CDLEntry>(Integer) hold</td><td class=CDLDescription>The optional HTTPBIND hold value.&nbsp;  This is the number of connections the server will hold at one time.&nbsp;  This should almost always be set to 1 (the default).</td></tr></table></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.attach"></a>attach</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>attach: function (</td><td class=PParameter nowrap>jid,</td></tr><tr><td></td><td class=PParameter nowrap>sid,</td></tr><tr><td></td><td class=PParameter nowrap>rid,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>wait,</td></tr><tr><td></td><td class=PParameter nowrap>hold,</td></tr><tr><td></td><td class=PParameter nowrap>wind</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Attach to an already created and authenticated BOSH session.</p><p>This function is provided to allow Strophe to attach to BOSH sessions which have been created externally, perhaps by a Web application.&nbsp;  This is often used to support auto-login type features without putting user credentials into the page.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) jid</td><td class=CDLDescription>The full JID that is bound by the session.</td></tr><tr><td class=CDLEntry>(String) sid</td><td class=CDLDescription>The SID of the BOSH session.</td></tr><tr><td class=CDLEntry>(String) rid</td><td class=CDLDescription>The current RID of the BOSH session.&nbsp;  This RID will be used by the next request.&nbsp; (Function) callback The connect callback function.</td></tr><tr><td class=CDLEntry>(Integer) wait</td><td class=CDLDescription>The optional HTTPBIND wait value.&nbsp;  This is the time the server will wait before returning an empty result for a request.&nbsp;  The default setting of 60 seconds is recommended.&nbsp; Other settings will require tweaks to the Strophe.TIMEOUT value.</td></tr><tr><td class=CDLEntry>(Integer) hold</td><td class=CDLDescription>The optional HTTPBIND hold value.&nbsp;  This is the number of connections the server will hold at one time.&nbsp;  This should almost always be set to 1 (the default).</td></tr><tr><td class=CDLEntry>(Integer) wind</td><td class=CDLDescription>The optional HTTBIND window value.&nbsp;  This is the allowed range of request ids that are valid.&nbsp;  The default is 5.</td></tr></table></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.xmlInput"></a>xmlInput</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlInput: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>User overrideable function that receives XML data coming into the connection.</p><p>The default function does nothing.&nbsp;  User code can override this with</p><blockquote><pre>Strophe.Connection.xmlInput = function (elem) {
+  (user code)
+};</pre></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>The XML data received by the connection.</td></tr></table></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.xmlOutput"></a>xmlOutput</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlOutput: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>User overrideable function that receives XML data sent to the connection.</p><p>The default function does nothing.&nbsp;  User code can override this with</p><blockquote><pre>Strophe.Connection.xmlOutput = function (elem) {
+  (user code)
+};</pre></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>The XMLdata sent by the connection.</td></tr></table></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.rawInput"></a>rawInput</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>rawInput: function (</td><td class=PParameter nowrap>data</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>User overrideable function that receives raw data coming into the connection.</p><p>The default function does nothing.&nbsp;  User code can override this with</p><blockquote><pre>Strophe.Connection.rawInput = function (data) {
+  (user code)
+};</pre></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) data</td><td class=CDLDescription>The data received by the connection.</td></tr></table></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.rawOutput"></a>rawOutput</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>rawOutput: function (</td><td class=PParameter nowrap>data</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>User overrideable function that receives raw data sent to the connection.</p><p>The default function does nothing.&nbsp;  User code can override this with</p><blockquote><pre>Strophe.Connection.rawOutput = function (data) {
+  (user code)
+};</pre></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) data</td><td class=CDLDescription>The data sent by the connection.</td></tr></table></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.send"></a>send</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>send: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Send a stanza.</p><p>This function is called to push data onto the send queue to go out over the wire.&nbsp;  Whenever a request is sent to the BOSH server, all pending data is sent and the queue is flushed.</p><h4 class=CHeading>Parameters</h4><p>(XMLElement | [XMLElement] | Strophe.Builder) elem - The stanza to send.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.flush"></a>flush</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>flush: function ()</td></tr></table></blockquote><p>Immediately send any pending outgoing data.</p><p>Normally send() queues outgoing data until the next idle period (100ms), which optimizes network use in the common cases when several send()s are called in succession. flush() can be used to immediately send all pending data.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.sendIQ"></a>sendIQ</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>sendIQ: function(</td><td class=PParameter nowrap>elem,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>errback,</td></tr><tr><td></td><td class=PParameter nowrap>timeout</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Helper function to send IQ stanzas.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(XMLElement) elem</td><td class=CDLDescription>The stanza to send.</td></tr><tr><td class=CDLEntry>(Function) callback</td><td class=CDLDescription>The callback function for a successful request.</td></tr><tr><td class=CDLEntry>(Function) errback</td><td class=CDLDescription>The callback function for a failed or timed out request.&nbsp;  On timeout, the stanza will be null.</td></tr><tr><td class=CDLEntry>(Integer) timeout</td><td class=CDLDescription>The time specified in milliseconds for a timeout to occur.</td></tr></table><h4 class=CHeading>Returns</h4><p>The id used to send the IQ.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.addTimedHandler"></a>addTimedHandler</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addTimedHandler: function (</td><td class=PParameter nowrap>period,</td></tr><tr><td></td><td class=PParameter nowrap>handler</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Add a timed handler to the connection.</p><p>This function adds a timed handler.&nbsp;  The provided handler will be called every period milliseconds until it returns false, the connection is terminated, or the handler is removed.&nbsp;  Handlers that wish to continue being invoked should return true.</p><p>Because of method binding it is necessary to save the result of this function if you wish to remove a handler with deleteTimedHandler().</p><p>Note that user handlers are not active until authentication is successful.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Integer) period</td><td class=CDLDescription>The period of the handler.</td></tr><tr><td class=CDLEntry>(Function) handler</td><td class=CDLDescription>The callback function.</td></tr></table><h4 class=CHeading>Returns</h4><p>A reference to the handler that can be used to remove it.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.deleteTimedHandler"></a>deleteTimedHandler</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>deleteTimedHandler: function (</td><td class=PParameter nowrap>handRef</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Delete a timed handler for a connection.</p><p>This function removes a timed handler from the connection.&nbsp;  The handRef parameter is <b>not</b> the function passed to addTimedHandler(), but is the reference returned from addTimedHandler().</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Strophe.TimedHandler) handRef</td><td class=CDLDescription>The handler reference.</td></tr></table></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.addHandler"></a>addHandler</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addHandler: function (</td><td class=PParameter nowrap>handler,</td></tr><tr><td></td><td class=PParameter nowrap>ns,</td></tr><tr><td></td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>type,</td></tr><tr><td></td><td class=PParameter nowrap>id,</td></tr><tr><td></td><td class=PParameter nowrap>from,</td></tr><tr><td></td><td class=PParameter nowrap>options</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Add a stanza handler for the connection.</p><p>This function adds a stanza handler to the connection.&nbsp;  The handler callback will be called for any stanza that matches the parameters.&nbsp;  Note that if multiple parameters are supplied, they must all match for the handler to be invoked.</p><p>The handler will receive the stanza that triggered it as its argument.&nbsp; The handler should return true if it is to be invoked again; returning false will remove the handler after it returns.</p><p>As a convenience, the ns parameters applies to the top level element and also any of its immediate children.&nbsp;  This is primarily to make matching /iq/query elements easy.</p><p>The options argument contains handler matching flags that affect how matches are determined.&nbsp; Currently the only flag is matchBare (a boolean).&nbsp; When matchBare is true, the from parameter and the from attribute on the stanza will be matched as bare JIDs instead of full JIDs.&nbsp; To use this, pass {matchBare: true} as the value of options.&nbsp; The default value for matchBare is false.</p><p>The return value should be saved if you wish to remove the handler with deleteHandler().</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Function) handler</td><td class=CDLDescription>The user callback.</td></tr><tr><td class=CDLEntry>(String) ns</td><td class=CDLDescription>The namespace to match.</td></tr><tr><td class=CDLEntry>(String) name</td><td class=CDLDescription>The stanza name to match.</td></tr><tr><td class=CDLEntry>(String) type</td><td class=CDLDescription>The stanza type attribute to match.</td></tr><tr><td class=CDLEntry>(String) id</td><td class=CDLDescription>The stanza id attribute to match.</td></tr><tr><td class=CDLEntry>(String) from</td><td class=CDLDescription>The stanza from attribute to match.</td></tr><tr><td class=CDLEntry>(String) options</td><td class=CDLDescription>The handler options</td></tr></table><h4 class=CHeading>Returns</h4><p>A reference to the handler that can be used to remove it.</p></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.deleteHandler"></a>deleteHandler</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>deleteHandler: function (</td><td class=PParameter nowrap>handRef</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Delete a stanza handler for a connection.</p><p>This function removes a stanza handler from the connection.&nbsp;  The handRef parameter is <b>not</b> the function passed to addHandler(), but is the reference returned from addHandler().</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(Strophe.Handler) handRef</td><td class=CDLDescription>The handler reference.</td></tr></table></div></div></div>
+
+<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Strophe.Connection.disconnect"></a>disconnect</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>disconnect: function (</td><td class=PParameter nowrap>reason</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Start the graceful disconnection process.</p><p>This function starts the disconnection process.&nbsp;  This process starts by sending unavailable presence and sending BOSH body of type terminate.&nbsp;  A timeout handler makes sure that disconnection happens even if the BOSH server does not respond.</p><p>The user supplied connection callback will be notified of the progress as this process happens.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>(String) reason</td><td class=CDLDescription>The reason the disconnect is occuring.</td></tr></table></div></div></div>
+
+</div><!--Content-->
+
+
+<div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
+
+
+<div id=Menu><div class=MEntry><div class=MFile id=MSelected>js</div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Index</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MIndex><a href="../index/General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Constants.html">Constants</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Files.html">Files</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Functions.html">Functions</a></div></div></div></div></div><script type="text/javascript"><!--
+var searchPanel = new SearchPanel("searchPanel", "HTML", "../search");
+--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option  id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Constants">Constants</option><option value="Files">Files</option><option value="Functions">Functions</option></select></div></div><!--Menu-->
+
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $build(</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder. </div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $msg(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder with a message/ element as the root.</div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $iq(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder with an iq/ element as the root.</div></div><div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $pres(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder with a presence/ element as the root.</div></div><div class=CToolTip id="tt5"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addNamespace: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>This function is used to extend the current namespaces in Strophe.NS. </div></div><div class=CToolTip id="tt6"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>forEachChild: function (</td><td class=PParameter nowrap>elem,</td></tr><tr><td></td><td class=PParameter nowrap>elemName,</td></tr><tr><td></td><td class=PParameter nowrap>func</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Map a function over some or all child elements of a given element.</div></div><div class=CToolTip id="tt7"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>isTagEqual: function (</td><td class=PParameter nowrap>el,</td></tr><tr><td></td><td class=PParameter nowrap>name</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Compare an element&rsquo;s tag name with a string.</div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlElement: function (</td><td class=PParameter nowrap>name</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create an XML DOM element.</div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlescape: function(</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Excapes invalid xml characters.</div></div><div class=CToolTip id="tt10"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlTextNode: function (</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Creates an XML DOM text node.</div></div><div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getText: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the concatenation of all text children of an element.</div></div><div class=CToolTip id="tt12"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>copyElement: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Copy an XML DOM element.</div></div><div class=CToolTip id="tt13"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>escapeNode: function (</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Escape the node part (also called local part) of a JID.</div></div><div class=CToolTip id="tt14"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>unescapeNode: function (</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Unescape a node part (also called local part) of a JID.</div></div><div class=CToolTip id="tt15"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getNodeFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the node portion of a JID String.</div></div><div class=CToolTip id="tt16"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getDomainFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the domain portion of a JID String.</div></div><div class=CToolTip id="tt17"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getResourceFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the resource portion of a JID String.</div></div><div class=CToolTip id="tt18"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getBareJidFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the bare JID from a JID String.</div></div><div class=CToolTip id="tt19"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>log: function (</td><td class=PParameter nowrap>level,</td></tr><tr><td></td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable logging function.</div></div><div class=CToolTip id="tt20"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>debug: function(</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.DEBUG level.</div></div><div class=CToolTip id="tt21"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>info: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.INFO level.</div></div><div class=CToolTip id="tt22"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>warn: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.WARN level.</div></div><div class=CToolTip id="tt23"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>error: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.ERROR level.</div></div><div class=CToolTip id="tt24"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>fatal: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.FATAL level.</div></div><div class=CToolTip id="tt25"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>serialize: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Render a DOM element and all descendants to a String.</div></div><div class=CToolTip id="tt26"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addConnectionPlugin: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>ptype</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Extends the Strophe.Connection object with the given plugin.</div></div><div class=CToolTip id="tt27"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>Strophe.Builder = function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder object.</div></div><div class=CToolTip id="tt28"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>tree: function ()</td></tr></table></blockquote>Return the DOM tree.</div></div><div class=CToolTip id="tt29"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>toString: function ()</td></tr></table></blockquote>Serialize the DOM tree to a String.</div></div><div class=CToolTip id="tt30"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>up: function ()</td></tr></table></blockquote>Make the current parent element the new current element.</div></div><div class=CToolTip id="tt31"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>attrs: function (</td><td class=PParameter nowrap>moreattrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add or modify attributes of the current element.</div></div><div class=CToolTip id="tt32"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>c: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a child to the current element and make it the new current element.</div></div><div class=CToolTip id="tt33"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>cnode: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a child to the current element and make it the new current element.</div></div><div class=CToolTip id="tt34"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>t: function (</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a child text element.</div></div><div class=CToolTip id="tt35"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>Strophe.Connection = function (</td><td class=PParameter nowrap>service</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create and initialize a Strophe.Connection object.</div></div><div class=CToolTip id="tt36"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>reset: function ()</td></tr></table></blockquote>Reset the connection.</div></div><div class=CToolTip id="tt37"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>pause: function ()</td></tr></table></blockquote>Pause the request manager.</div></div><div class=CToolTip id="tt38"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>resume: function ()</td></tr></table></blockquote>Resume the request manager.</div></div><div class=CToolTip id="tt39"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getUniqueId: function (</td><td class=PParameter nowrap>suffix</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Generate a unique ID for use in iq/ elements.</div></div><div class=CToolTip id="tt40"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>connect: function (</td><td class=PParameter nowrap>jid,</td></tr><tr><td></td><td class=PParameter nowrap>pass,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>wait,</td></tr><tr><td></td><td class=PParameter nowrap>hold</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Starts the connection process.</div></div><div class=CToolTip id="tt41"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>attach: function (</td><td class=PParameter nowrap>jid,</td></tr><tr><td></td><td class=PParameter nowrap>sid,</td></tr><tr><td></td><td class=PParameter nowrap>rid,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>wait,</td></tr><tr><td></td><td class=PParameter nowrap>hold,</td></tr><tr><td></td><td class=PParameter nowrap>wind</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Attach to an already created and authenticated BOSH session.</div></div><div class=CToolTip id="tt42"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlInput: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable function that receives XML data coming into the connection.</div></div><div class=CToolTip id="tt43"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlOutput: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable function that receives XML data sent to the connection.</div></div><div class=CToolTip id="tt44"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>rawInput: function (</td><td class=PParameter nowrap>data</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable function that receives raw data coming into the connection.</div></div><div class=CToolTip id="tt45"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>rawOutput: function (</td><td class=PParameter nowrap>data</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable function that receives raw data sent to the connection.</div></div><div class=CToolTip id="tt46"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>send: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Send a stanza.</div></div><div class=CToolTip id="tt47"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>flush: function ()</td></tr></table></blockquote>Immediately send any pending outgoing data.</div></div><div class=CToolTip id="tt48"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>sendIQ: function(</td><td class=PParameter nowrap>elem,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>errback,</td></tr><tr><td></td><td class=PParameter nowrap>timeout</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Helper function to send IQ stanzas.</div></div><div class=CToolTip id="tt49"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addTimedHandler: function (</td><td class=PParameter nowrap>period,</td></tr><tr><td></td><td class=PParameter nowrap>handler</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a timed handler to the connection.</div></div><div class=CToolTip id="tt50"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>deleteTimedHandler: function (</td><td class=PParameter nowrap>handRef</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Delete a timed handler for a connection.</div></div><div class=CToolTip id="tt51"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addHandler: function (</td><td class=PParameter nowrap>handler,</td></tr><tr><td></td><td class=PParameter nowrap>ns,</td></tr><tr><td></td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>type,</td></tr><tr><td></td><td class=PParameter nowrap>id,</td></tr><tr><td></td><td class=PParameter nowrap>from,</td></tr><tr><td></td><td class=PParameter nowrap>options</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a stanza handler for the connection.</div></div><div class=CToolTip id="tt52"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>deleteHandler: function (</td><td class=PParameter nowrap>handRef</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Delete a stanza handler for a connection.</div></div><div class=CToolTip id="tt53"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>disconnect: function (</td><td class=PParameter nowrap>reason</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Start the graceful disconnection process.</div></div><!--END_ND_TOOLTIPS-->
+
+
+
+
+<div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>
+
+
+<script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/styles/main.css
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/styles/main.css	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/styles/main.css	(revision 2397)
@@ -0,0 +1,767 @@
+/*
+   IMPORTANT: If you're editing this file in the output directory of one of
+   your projects, your changes will be overwritten the next time you run
+   Natural Docs.  Instead, copy this file to your project directory, make your
+   changes, and you can use it with -s.  Even better would be to make a CSS
+   file in your project directory with only your changes, which you can then
+   use with -s [original style] [your changes].
+
+   On the other hand, if you're editing this file in the Natural Docs styles
+   directory, the changes will automatically be applied to all your projects
+   that use this style the next time Natural Docs is run on them.
+
+   This file is part of Natural Docs, which is Copyright (C) 2003-2008 Greg Valure
+   Natural Docs is licensed under the GPL
+*/
+
+body {
+    font: 10pt Verdana, Arial, sans-serif;
+    color: #000000;
+    margin: 0; padding: 0;
+    }
+
+.ContentPage,
+.IndexPage,
+.FramedMenuPage {
+    background-color: #E8E8E8;
+    }
+.FramedContentPage,
+.FramedIndexPage,
+.FramedSearchResultsPage,
+.PopupSearchResultsPage {
+    background-color: #FFFFFF;
+    }
+
+
+a:link,
+a:visited { color: #900000; text-decoration: none }
+a:hover { color: #900000; text-decoration: underline }
+a:active { color: #FF0000; text-decoration: underline }
+
+td {
+    vertical-align: top }
+
+img { border: 0;  }
+
+
+/*
+    Comment out this line to use web-style paragraphs (blank line between
+    paragraphs, no indent) instead of print-style paragraphs (no blank line,
+    indented.)
+*/
+p {
+    text-indent: 5ex; margin: 0 }
+
+
+/*  Opera doesn't break with just wbr, but will if you add this.  */
+.Opera wbr:after {
+	content: "\00200B";
+	}
+
+
+/*  Blockquotes are used as containers for things that may need to scroll.  */
+blockquote {
+    padding: 0;
+    margin: 0;
+    overflow: auto;
+    }
+
+
+.Firefox1 blockquote {
+    padding-bottom: .5em;
+    }
+
+/*  Turn off scrolling when printing.  */
+@media print {
+    blockquote {
+        overflow: visible;
+        }
+    .IE blockquote {
+        width: auto;
+        }
+    }
+
+
+
+#Menu {
+    font-size: 9pt;
+    padding: 10px 0 0 0;
+    }
+.ContentPage #Menu,
+.IndexPage #Menu {
+    position: absolute;
+    top: 0;
+    left: 0;
+    width: 31ex;
+    overflow: hidden;
+    }
+.ContentPage .Firefox #Menu,
+.IndexPage .Firefox #Menu {
+    width: 27ex;
+    }
+
+
+    .MTitle {
+        font-size: 16pt; font-weight: bold; font-variant: small-caps;
+        text-align: center;
+        padding: 5px 10px 15px 10px;
+        border-bottom: 1px dotted #000000;
+        margin-bottom: 15px }
+
+    .MSubTitle {
+        font-size: 9pt; font-weight: normal; font-variant: normal;
+        margin-top: 1ex; margin-bottom: 5px }
+
+
+    .MEntry a:link,
+    .MEntry a:hover,
+    .MEntry a:visited { color: #606060; margin-right: 0 }
+    .MEntry a:active { color: #A00000; margin-right: 0 }
+
+
+    .MGroup {
+        font-variant: small-caps; font-weight: bold;
+        margin: 1em 0 1em 10px;
+        }
+
+    .MGroupContent {
+        font-variant: normal; font-weight: normal }
+
+    .MGroup a:link,
+    .MGroup a:hover,
+    .MGroup a:visited { color: #545454; margin-right: 10px }
+    .MGroup a:active { color: #A00000; margin-right: 10px }
+
+
+    .MFile,
+    .MText,
+    .MLink,
+    .MIndex {
+        padding: 1px 17px 2px 10px;
+        margin: .25em 0 .25em 0;
+        }
+
+    .MText {
+        font-size: 8pt; font-style: italic }
+
+    .MLink {
+        font-style: italic }
+
+    #MSelected {
+        color: #000000; background-color: #FFFFFF;
+        /*  Replace padding with border.  */
+        padding: 0 10px 0 10px;
+        border-width: 1px 2px 2px 0; border-style: solid; border-color: #000000;
+        margin-right: 5px;
+        }
+
+    /*  Close off the left side when its in a group.  */
+    .MGroup #MSelected {
+        padding-left: 9px; border-left-width: 1px }
+
+    /*  A treat for Mozilla users.  Blatantly non-standard.  Will be replaced with CSS 3 attributes when finalized/supported.  */
+    .Firefox #MSelected {
+        -moz-border-radius-topright: 10px;
+        -moz-border-radius-bottomright: 10px }
+    .Firefox .MGroup #MSelected {
+        -moz-border-radius-topleft: 10px;
+        -moz-border-radius-bottomleft: 10px }
+
+
+    #MSearchPanel {
+        padding: 0px 6px;
+        margin: .25em 0;
+        }
+
+
+    #MSearchField {
+        font: italic 9pt Verdana, sans-serif;
+        color: #606060;
+        background-color: #E8E8E8;
+        border: none;
+        padding: 2px 4px;
+        width: 100%;
+        }
+    /* Only Opera gets it right. */
+    .Firefox #MSearchField,
+    .IE #MSearchField,
+    .Safari #MSearchField {
+        width: 94%;
+        }
+    .Opera9 #MSearchField,
+    .Konqueror #MSearchField {
+        width: 97%;
+        }
+    .FramedMenuPage .Firefox #MSearchField,
+    .FramedMenuPage .Safari #MSearchField,
+    .FramedMenuPage .Konqueror #MSearchField {
+        width: 98%;
+        }
+
+    /* Firefox doesn't do this right in frames without #MSearchPanel added on.
+        It's presence doesn't hurt anything other browsers. */
+    #MSearchPanel.MSearchPanelInactive:hover #MSearchField {
+        background-color: #FFFFFF;
+        border: 1px solid #C0C0C0;
+        padding: 1px 3px;
+        }
+    .MSearchPanelActive #MSearchField {
+        background-color: #FFFFFF;
+        border: 1px solid #C0C0C0;
+        font-style: normal;
+        padding: 1px 3px;
+        }
+
+    #MSearchType {
+        visibility: hidden;
+        font: 8pt Verdana, sans-serif;
+        width: 98%;
+        padding: 0;
+        border: 1px solid #C0C0C0;
+        }
+    .MSearchPanelActive #MSearchType,
+    /*  As mentioned above, Firefox doesn't do this right in frames without #MSearchPanel added on. */
+    #MSearchPanel.MSearchPanelInactive:hover #MSearchType,
+    #MSearchType:focus {
+        visibility: visible;
+        color: #606060;
+        }
+    #MSearchType option#MSearchEverything {
+        font-weight: bold;
+        }
+
+    .Opera8 .MSearchPanelInactive:hover,
+    .Opera8 .MSearchPanelActive {
+        margin-left: -1px;
+        }
+
+
+    iframe#MSearchResults {
+        width: 60ex;
+        height: 15em;
+        }
+    #MSearchResultsWindow {
+        display: none;
+        position: absolute;
+        left: 0; top: 0;
+        border: 1px solid #000000;
+        background-color: #E8E8E8;
+        }
+    #MSearchResultsWindowClose {
+        font-weight: bold;
+        font-size: 8pt;
+        display: block;
+        padding: 2px 5px;
+        }
+    #MSearchResultsWindowClose:link,
+    #MSearchResultsWindowClose:visited {
+        color: #000000;
+        text-decoration: none;
+        }
+    #MSearchResultsWindowClose:active,
+    #MSearchResultsWindowClose:hover {
+        color: #800000;
+        text-decoration: none;
+        background-color: #F4F4F4;
+        }
+
+
+
+
+#Content {
+    padding-bottom: 15px;
+    }
+
+.ContentPage #Content {
+    border-width: 0 0 1px 1px;
+    border-style: solid;
+    border-color: #000000;
+    background-color: #FFFFFF;
+    font-size: 9pt;  /* To make 31ex match the menu's 31ex. */
+    margin-left: 31ex;
+    }
+.ContentPage .Firefox #Content {
+    margin-left: 27ex;
+    }
+
+
+
+    .CTopic {
+        font-size: 10pt;
+        margin-bottom: 3em;
+        }
+
+
+    .CTitle {
+        font-size: 12pt; font-weight: bold;
+        border-width: 0 0 1px 0; border-style: solid; border-color: #A0A0A0;
+        margin: 0 15px .5em 15px }
+
+    .CGroup .CTitle {
+        font-size: 16pt; font-variant: small-caps;
+        padding-left: 15px; padding-right: 15px;
+        border-width: 0 0 2px 0; border-color: #000000;
+        margin-left: 0; margin-right: 0 }
+
+    .CClass .CTitle,
+    .CInterface .CTitle,
+    .CDatabase .CTitle,
+    .CDatabaseTable .CTitle,
+    .CSection .CTitle {
+        font-size: 18pt;
+        color: #FFFFFF; background-color: #A0A0A0;
+        padding: 10px 15px 10px 15px;
+        border-width: 2px 0; border-color: #000000;
+        margin-left: 0; margin-right: 0 }
+
+    #MainTopic .CTitle {
+        font-size: 20pt;
+        color: #FFFFFF; background-color: #7070C0;
+        padding: 10px 15px 10px 15px;
+        border-width: 0 0 3px 0; border-color: #000000;
+        margin-left: 0; margin-right: 0 }
+
+    .CBody {
+        margin-left: 15px; margin-right: 15px }
+
+
+    .CToolTip {
+        position: absolute; visibility: hidden;
+        left: 0; top: 0;
+        background-color: #FFFFE0;
+        padding: 5px;
+        border-width: 1px 2px 2px 1px; border-style: solid; border-color: #000000;
+        font-size: 8pt;
+        }
+
+    .Opera .CToolTip {
+        max-width: 98%;
+        }
+
+    /*  Scrollbars would be useless.  */
+    .CToolTip blockquote {
+        overflow: hidden;
+        }
+    .IE6 .CToolTip blockquote {
+        overflow: visible;
+        }
+
+    .CHeading {
+        font-weight: bold; font-size: 10pt;
+        margin: 1.5em 0 .5em 0;
+        }
+
+    .CBody pre {
+        font: 10pt "Courier New", Courier, monospace;
+        margin: 1em 0;
+        }
+
+    .CBody ul {
+        /*  I don't know why CBody's margin doesn't apply, but it's consistent across browsers so whatever.
+             Reapply it here as padding.  */
+        padding-left: 15px; padding-right: 15px;
+        margin: .5em 5ex .5em 5ex;
+        }
+
+    .CDescriptionList {
+        margin: .5em 5ex 0 5ex }
+
+        .CDLEntry {
+            font: 10pt "Courier New", Courier, monospace; color: #808080;
+            padding-bottom: .25em;
+            white-space: nowrap }
+
+        .CDLDescription {
+            font-size: 10pt;  /*  For browsers that don't inherit correctly, like Opera 5.  */
+            padding-bottom: .5em; padding-left: 5ex }
+
+
+    .CTopic img {
+        text-align: center;
+        display: block;
+        margin: 1em auto;
+        }
+    .CImageCaption {
+        font-variant: small-caps;
+        font-size: 8pt;
+        color: #808080;
+        text-align: center;
+        position: relative;
+        top: 1em;
+        }
+
+    .CImageLink {
+        color: #808080;
+        font-style: italic;
+        }
+    a.CImageLink:link,
+    a.CImageLink:visited,
+    a.CImageLink:hover { color: #808080 }
+
+
+
+
+
+.Prototype {
+    font: 10pt "Courier New", Courier, monospace;
+    padding: 5px 3ex;
+    border-width: 1px; border-style: solid;
+    margin: 0 5ex 1.5em 5ex;
+    }
+
+    .Prototype td {
+        font-size: 10pt;
+        }
+
+    .PDefaultValue,
+    .PDefaultValuePrefix,
+    .PTypePrefix {
+        color: #8F8F8F;
+        }
+    .PTypePrefix {
+        text-align: right;
+        }
+    .PAfterParameters {
+        vertical-align: bottom;
+        }
+
+    .IE .Prototype table {
+        padding: 0;
+        }
+
+    .CFunction .Prototype {
+        background-color: #F4F4F4; border-color: #D0D0D0 }
+    .CProperty .Prototype {
+        background-color: #F4F4FF; border-color: #C0C0E8 }
+    .CVariable .Prototype {
+        background-color: #FFFFF0; border-color: #E0E0A0 }
+
+    .CClass .Prototype {
+        border-width: 1px 2px 2px 1px; border-style: solid; border-color: #A0A0A0;
+        background-color: #F4F4F4;
+        }
+    .CInterface .Prototype {
+        border-width: 1px 2px 2px 1px; border-style: solid; border-color: #A0A0D0;
+        background-color: #F4F4FF;
+        }
+
+    .CDatabaseIndex .Prototype,
+    .CConstant .Prototype {
+        background-color: #D0D0D0; border-color: #000000 }
+    .CType .Prototype,
+    .CEnumeration .Prototype {
+        background-color: #FAF0F0; border-color: #E0B0B0;
+        }
+    .CDatabaseTrigger .Prototype,
+    .CEvent .Prototype,
+    .CDelegate .Prototype {
+        background-color: #F0FCF0; border-color: #B8E4B8 }
+
+    .CToolTip .Prototype {
+        margin: 0 0 .5em 0;
+        white-space: nowrap;
+        }
+
+
+
+
+
+.Summary {
+    margin: 1.5em 5ex 0 5ex }
+
+    .STitle {
+        font-size: 12pt; font-weight: bold;
+        margin-bottom: .5em }
+
+
+    .SBorder {
+        background-color: #FFFFF0;
+        padding: 15px;
+        border: 1px solid #C0C060 }
+
+    /* In a frame IE 6 will make them too long unless you set the width to 100%.  Without frames it will be correct without a width
+        or slightly too long (but not enough to scroll) with a width.  This arbitrary weirdness simply astounds me.  IE 7 has the same
+        problem with frames, haven't tested it without.  */
+    .FramedContentPage .IE .SBorder {
+        width: 100% }
+
+    /*  A treat for Mozilla users.  Blatantly non-standard.  Will be replaced with CSS 3 attributes when finalized/supported.  */
+    .Firefox .SBorder {
+        -moz-border-radius: 20px }
+
+
+    .STable {
+        font-size: 9pt; width: 100% }
+
+    .SEntry {
+        width: 30% }
+    .SDescription {
+        width: 70% }
+
+
+    .SMarked {
+        background-color: #F8F8D8 }
+
+    .SDescription { padding-left: 2ex }
+    .SIndent1 .SEntry { padding-left: 1.5ex }   .SIndent1 .SDescription { padding-left: 3.5ex }
+    .SIndent2 .SEntry { padding-left: 3.0ex }   .SIndent2 .SDescription { padding-left: 5.0ex }
+    .SIndent3 .SEntry { padding-left: 4.5ex }   .SIndent3 .SDescription { padding-left: 6.5ex }
+    .SIndent4 .SEntry { padding-left: 6.0ex }   .SIndent4 .SDescription { padding-left: 8.0ex }
+    .SIndent5 .SEntry { padding-left: 7.5ex }   .SIndent5 .SDescription { padding-left: 9.5ex }
+
+    .SDescription a { color: #800000}
+    .SDescription a:active { color: #A00000 }
+
+    .SGroup td {
+        padding-top: .5em; padding-bottom: .25em }
+
+    .SGroup .SEntry {
+        font-weight: bold; font-variant: small-caps }
+
+    .SGroup .SEntry a { color: #800000 }
+    .SGroup .SEntry a:active { color: #F00000 }
+
+
+    .SMain td,
+    .SClass td,
+    .SDatabase td,
+    .SDatabaseTable td,
+    .SSection td {
+        font-size: 10pt;
+        padding-bottom: .25em }
+
+    .SClass td,
+    .SDatabase td,
+    .SDatabaseTable td,
+    .SSection td {
+        padding-top: 1em }
+
+    .SMain .SEntry,
+    .SClass .SEntry,
+    .SDatabase .SEntry,
+    .SDatabaseTable .SEntry,
+    .SSection .SEntry {
+        font-weight: bold;
+        }
+
+    .SMain .SEntry a,
+    .SClass .SEntry a,
+    .SDatabase .SEntry a,
+    .SDatabaseTable .SEntry a,
+    .SSection .SEntry a { color: #000000 }
+
+    .SMain .SEntry a:active,
+    .SClass .SEntry a:active,
+    .SDatabase .SEntry a:active,
+    .SDatabaseTable .SEntry a:active,
+    .SSection .SEntry a:active { color: #A00000 }
+
+
+
+
+
+.ClassHierarchy {
+    margin: 0 15px 1em 15px }
+
+    .CHEntry {
+        border-width: 1px 2px 2px 1px; border-style: solid; border-color: #A0A0A0;
+        margin-bottom: 3px;
+        padding: 2px 2ex;
+        font-size: 10pt;
+        background-color: #F4F4F4; color: #606060;
+        }
+
+    .Firefox .CHEntry {
+        -moz-border-radius: 4px;
+        }
+
+    .CHCurrent .CHEntry {
+        font-weight: bold;
+        border-color: #000000;
+        color: #000000;
+        }
+
+    .CHChildNote .CHEntry {
+        font-style: italic;
+        font-size: 8pt;
+        }
+
+    .CHIndent {
+        margin-left: 3ex;
+        }
+
+    .CHEntry a:link,
+    .CHEntry a:visited,
+    .CHEntry a:hover {
+        color: #606060;
+        }
+    .CHEntry a:active {
+        color: #800000;
+        }
+
+
+
+
+
+#Index {
+    background-color: #FFFFFF;
+    }
+
+/*  As opposed to .PopupSearchResultsPage #Index  */
+.IndexPage #Index,
+.FramedIndexPage #Index,
+.FramedSearchResultsPage #Index {
+    padding: 15px;
+    }
+
+.IndexPage #Index {
+    border-width: 0 0 1px 1px;
+    border-style: solid;
+    border-color: #000000;
+    font-size: 9pt;  /* To make 27ex match the menu's 27ex. */
+    margin-left: 27ex;
+    }
+
+
+    .IPageTitle {
+        font-size: 20pt; font-weight: bold;
+        color: #FFFFFF; background-color: #7070C0;
+        padding: 10px 15px 10px 15px;
+        border-width: 0 0 3px 0; border-color: #000000; border-style: solid;
+        margin: -15px -15px 0 -15px }
+
+    .FramedSearchResultsPage .IPageTitle {
+        margin-bottom: 15px;
+        }
+
+    .INavigationBar {
+        font-size: 10pt;
+        text-align: center;
+        background-color: #FFFFF0;
+        padding: 5px;
+        border-bottom: solid 1px black;
+        margin: 0 -15px 15px -15px;
+        }
+
+    .INavigationBar a {
+        font-weight: bold }
+
+    .IHeading {
+        font-size: 16pt; font-weight: bold;
+        padding: 2.5em 0 .5em 0;
+        text-align: center;
+        width: 3.5ex;
+        }
+    #IFirstHeading {
+        padding-top: 0;
+        }
+
+    .IEntry {
+        font-size: 10pt;
+        padding-left: 1ex;
+        }
+    .PopupSearchResultsPage .IEntry {
+        font-size: 8pt;
+        padding: 1px 5px;
+        }
+    .PopupSearchResultsPage .Opera9 .IEntry,
+    .FramedSearchResultsPage .Opera9 .IEntry {
+        text-align: left;
+        }
+    .FramedSearchResultsPage .IEntry {
+        padding: 0;
+        }
+
+    .ISubIndex {
+        padding-left: 3ex; padding-bottom: .5em }
+    .PopupSearchResultsPage .ISubIndex {
+        display: none;
+        }
+
+    /*  While it may cause some entries to look like links when they aren't, I found it's much easier to read the
+         index if everything's the same color.  */
+    .ISymbol {
+        font-weight: bold; color: #900000  }
+
+    .IndexPage .ISymbolPrefix,
+    .FramedIndexPage .ISymbolPrefix {
+        font-size: 10pt;
+        text-align: right;
+        color: #C47C7C;
+        background-color: #F8F8F8;
+        border-right: 3px solid #E0E0E0;
+        border-left: 1px solid #E0E0E0;
+        padding: 0 1px 0 2px;
+        }
+    .PopupSearchResultsPage .ISymbolPrefix,
+    .FramedSearchResultsPage .ISymbolPrefix {
+        color: #900000;
+        }
+    .PopupSearchResultsPage .ISymbolPrefix {
+        font-size: 8pt;
+        }
+
+    .IndexPage #IFirstSymbolPrefix,
+    .FramedIndexPage #IFirstSymbolPrefix {
+        border-top: 1px solid #E0E0E0;
+        }
+    .IndexPage #ILastSymbolPrefix,
+    .FramedIndexPage #ILastSymbolPrefix {
+        border-bottom: 1px solid #E0E0E0;
+        }
+    .IndexPage #IOnlySymbolPrefix,
+    .FramedIndexPage #IOnlySymbolPrefix {
+        border-top: 1px solid #E0E0E0;
+        border-bottom: 1px solid #E0E0E0;
+        }
+
+    a.IParent,
+    a.IFile {
+        display: block;
+        }
+
+    .PopupSearchResultsPage .SRStatus {
+        padding: 2px 5px;
+        font-size: 8pt;
+        font-style: italic;
+        }
+    .FramedSearchResultsPage .SRStatus {
+        font-size: 10pt;
+        font-style: italic;
+        }
+
+    .SRResult {
+        display: none;
+        }
+
+
+
+#Footer {
+    font-size: 8pt;
+    color: #989898;
+    text-align: right;
+    }
+
+#Footer p {
+    text-indent: 0;
+    margin-bottom: .5em;
+    }
+
+.ContentPage #Footer,
+.IndexPage #Footer {
+    text-align: right;
+    margin: 2px;
+    }
+
+.FramedMenuPage #Footer {
+    text-align: center;
+    margin: 5em 10px 10px 10px;
+    padding-top: 1em;
+    border-top: 1px solid #C8C8C8;
+    }
+
+    #Footer a:link,
+    #Footer a:hover,
+    #Footer a:visited { color: #989898 }
+    #Footer a:active { color: #A00000 }
+
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsE.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsE.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsE.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_error><div class=IEntry><a href="../files/core-js.html#Strophe.error" target=_parent class=ISymbol>error</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_escapeNode><div class=IEntry><a href="../files/core-js.html#Strophe.escapeNode" target=_parent class=ISymbol>escapeNode</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsA.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsA.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsA.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_ATTACHED><div class=IEntry><a href="../files/core-js.html#Strophe.Status.ATTACHED" target=_parent class=ISymbol>ATTACHED</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_AUTH><div class=IEntry><a href="../files/core-js.html#Strophe.NS.AUTH" target=_parent class=ISymbol>AUTH</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_AUTHENTICATING><div class=IEntry><a href="../files/core-js.html#Strophe.Status.AUTHENTICATING" target=_parent class=ISymbol>AUTHENTICATING</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_AUTHFAIL><div class=IEntry><a href="../files/core-js.html#Strophe.Status.AUTHFAIL" target=_parent class=ISymbol>AUTHFAIL</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralA.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralA.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralA.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_addConnectionPlugin><div class=IEntry><a href="../files/core-js.html#Strophe.addConnectionPlugin" target=_parent class=ISymbol>addConnectionPlugin</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_addHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.addHandler" target=_parent class=ISymbol>addHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_addNamespace><div class=IEntry><a href="../files/core-js.html#Strophe.addNamespace" target=_parent class=ISymbol>addNamespace</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_addTimedHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.addTimedHandler" target=_parent class=ISymbol>addTimedHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_attach><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.attach" target=_parent class=ISymbol>attach</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_ATTACHED><div class=IEntry><a href="../files/core-js.html#Strophe.Status.ATTACHED" target=_parent class=ISymbol>ATTACHED</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_attrs><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.attrs" target=_parent class=ISymbol>attrs</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_AUTH><div class=IEntry><a href="../files/core-js.html#Strophe.NS.AUTH" target=_parent class=ISymbol>AUTH</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_AUTHENTICATING><div class=IEntry><a href="../files/core-js.html#Strophe.Status.AUTHENTICATING" target=_parent class=ISymbol>AUTHENTICATING</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_AUTHFAIL><div class=IEntry><a href="../files/core-js.html#Strophe.Status.AUTHFAIL" target=_parent class=ISymbol>AUTHFAIL</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsG.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsG.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsG.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_getBareJidFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getBareJidFromJid" target=_parent class=ISymbol>getBareJidFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getDomainFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getDomainFromJid" target=_parent class=ISymbol>getDomainFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getNodeFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getNodeFromJid" target=_parent class=ISymbol>getNodeFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getResourceFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getResourceFromJid" target=_parent class=ISymbol>getResourceFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getText><div class=IEntry><a href="../files/core-js.html#Strophe.getText" target=_parent class=ISymbol>getText</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getUniqueId><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.getUniqueId" target=_parent class=ISymbol>getUniqueId</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsC.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsC.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsC.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_CLIENT><div class=IEntry><a href="../files/core-js.html#Strophe.NS.CLIENT" target=_parent class=ISymbol>CLIENT</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_CONNECTED><div class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNECTED" target=_parent class=ISymbol>CONNECTED</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_CONNECTING><div class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNECTING" target=_parent class=ISymbol>CONNECTING</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_Connection_spcStatus_spcConstants><div class=IEntry><a href="../files/core-js.html#Strophe.Connection_Status_Constants" target=_parent class=ISymbol>Connection Status Constants</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_CONNFAIL><div class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNFAIL" target=_parent class=ISymbol>CONNFAIL</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ClassesS.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ClassesS.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ClassesS.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_Strophe><div class=IEntry><a href="../files/core-js.html#Strophe" target=_parent class=ISymbol>Strophe</a></div></div><div class=SRResult id=SR_Strophe_perBuilder><div class=IEntry><a href="../files/core-js.html#Strophe.Builder" target=_parent class=ISymbol>Strophe.<wbr>Builder</a></div></div><div class=SRResult id=SR_Strophe_perConnection><div class=IEntry><a href="../files/core-js.html#Strophe.Connection" target=_parent class=ISymbol>Strophe.<wbr>Connection</a></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralC.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralC.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralC.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_c><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.c" target=_parent class=ISymbol>c</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_CLIENT><div class=IEntry><a href="../files/core-js.html#Strophe.NS.CLIENT" target=_parent class=ISymbol>CLIENT</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_cnode><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.cnode" target=_parent class=ISymbol>cnode</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_connect><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.connect" target=_parent class=ISymbol>connect</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_CONNECTED><div class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNECTED" target=_parent class=ISymbol>CONNECTED</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_CONNECTING><div class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNECTING" target=_parent class=ISymbol>CONNECTING</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_Connection><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.Strophe.Connection" target=_parent class=ISymbol>Connection</a>, <span class=IParent>Strophe.<wbr>Connection.<wbr>Strophe</span></div></div><div class=SRResult id=SR_Connection_spcStatus_spcConstants><div class=IEntry><a href="../files/core-js.html#Strophe.Connection_Status_Constants" target=_parent class=ISymbol>Connection Status Constants</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_CONNFAIL><div class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNFAIL" target=_parent class=ISymbol>CONNFAIL</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_Constants><div class=IEntry><a href="../files/core-js.html#Strophe.Constants" target=_parent class=ISymbol>Constants</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_copyElement><div class=IEntry><a href="../files/core-js.html#Strophe.copyElement" target=_parent class=ISymbol>copyElement</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsSymbols.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsSymbols.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsSymbols.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR__dolbuild><div class=IEntry><a href="../files/core-js.html#$build" target=_parent class=ISymbol>$build</a></div></div><div class=SRResult id=SR__doliq><div class=IEntry><a href="../files/core-js.html#$iq" target=_parent class=ISymbol>$iq</a></div></div><div class=SRResult id=SR__dolmsg><div class=IEntry><a href="../files/core-js.html#$msg" target=_parent class=ISymbol>$msg</a></div></div><div class=SRResult id=SR__dolpres><div class=IEntry><a href="../files/core-js.html#$pres" target=_parent class=ISymbol>$pres</a></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsI.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsI.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsI.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_info><div class=IEntry><a href="../files/core-js.html#Strophe.info" target=_parent class=ISymbol>info</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_isTagEqual><div class=IEntry><a href="../files/core-js.html#Strophe.isTagEqual" target=_parent class=ISymbol>isTagEqual</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsE.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsE.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsE.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_ERROR><div class=IEntry><a href="javascript:searchResults.Toggle('SR_ERROR')" class=ISymbol>ERROR</a><div class=ISubIndex><a href="../files/core-js.html#Strophe.LogLevel.ERROR" target=_parent class=IParent>Strophe.<wbr>LogLevel</a><a href="../files/core-js.html#Strophe.Status.ERROR" target=_parent class=IParent>Strophe.<wbr>Status</a></div></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralE.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralE.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralE.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_error><div class=IEntry><a href="../files/core-js.html#Strophe.error" target=_parent class=ISymbol>error</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR2_ERROR><div class=IEntry><a href="javascript:searchResults.Toggle('SR2_ERROR')" class=ISymbol>ERROR</a><div class=ISubIndex><a href="../files/core-js.html#Strophe.LogLevel.ERROR" target=_parent class=IParent>Strophe.<wbr>LogLevel</a><a href="../files/core-js.html#Strophe.Status.ERROR" target=_parent class=IParent>Strophe.<wbr>Status</a></div></div></div><div class=SRResult id=SR_escapeNode><div class=IEntry><a href="../files/core-js.html#Strophe.escapeNode" target=_parent class=ISymbol>escapeNode</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralG.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralG.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralG.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_getBareJidFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getBareJidFromJid" target=_parent class=ISymbol>getBareJidFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getDomainFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getDomainFromJid" target=_parent class=ISymbol>getDomainFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getNodeFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getNodeFromJid" target=_parent class=ISymbol>getNodeFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getResourceFromJid><div class=IEntry><a href="../files/core-js.html#Strophe.getResourceFromJid" target=_parent class=ISymbol>getResourceFromJid</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getText><div class=IEntry><a href="../files/core-js.html#Strophe.getText" target=_parent class=ISymbol>getText</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_getUniqueId><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.getUniqueId" target=_parent class=ISymbol>getUniqueId</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsI.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsI.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsI.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_INFO><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.INFO" target=_parent class=ISymbol>INFO</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralI.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralI.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralI.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_info><div class=IEntry><a href="../files/core-js.html#Strophe.info" target=_parent class=ISymbol>info</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR2_INFO><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.INFO" target=_parent class=ISymbol>INFO</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div><div class=SRResult id=SR_isTagEqual><div class=IEntry><a href="../files/core-js.html#Strophe.isTagEqual" target=_parent class=ISymbol>isTagEqual</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralSymbols.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralSymbols.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralSymbols.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR__dolbuild><div class=IEntry><a href="../files/core-js.html#$build" target=_parent class=ISymbol>$build</a></div></div><div class=SRResult id=SR__doliq><div class=IEntry><a href="../files/core-js.html#$iq" target=_parent class=ISymbol>$iq</a></div></div><div class=SRResult id=SR__dolmsg><div class=IEntry><a href="../files/core-js.html#$msg" target=_parent class=ISymbol>$msg</a></div></div><div class=SRResult id=SR__dolpres><div class=IEntry><a href="../files/core-js.html#$pres" target=_parent class=ISymbol>$pres</a></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsM.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsM.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsM.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_MUC><div class=IEntry><a href="../files/core-js.html#Strophe.NS.MUC" target=_parent class=ISymbol>MUC</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralM.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralM.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralM.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_MUC><div class=IEntry><a href="../files/core-js.html#Strophe.NS.MUC" target=_parent class=ISymbol>MUC</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsS.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsS.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsS.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_send><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.send" target=_parent class=ISymbol>send</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_sendIQ><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.sendIQ" target=_parent class=ISymbol>sendIQ</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_serialize><div class=IEntry><a href="../files/core-js.html#Strophe.serialize" target=_parent class=ISymbol>serialize</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsU.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsU.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsU.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_unescapeNode><div class=IEntry><a href="../files/core-js.html#Strophe.unescapeNode" target=_parent class=ISymbol>unescapeNode</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_up><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.up" target=_parent class=ISymbol>up</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsW.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsW.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsW.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_warn><div class=IEntry><a href="../files/core-js.html#Strophe.warn" target=_parent class=ISymbol>warn</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsS.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsS.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsS.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_SASL><div class=IEntry><a href="../files/core-js.html#Strophe.NS.SASL" target=_parent class=ISymbol>SASL</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_SESSION><div class=IEntry><a href="../files/core-js.html#Strophe.NS.SESSION" target=_parent class=ISymbol>SESSION</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_STREAM><div class=IEntry><a href="../files/core-js.html#Strophe.NS.STREAM" target=_parent class=ISymbol>STREAM</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralS.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralS.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralS.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_SASL><div class=IEntry><a href="../files/core-js.html#Strophe.NS.SASL" target=_parent class=ISymbol>SASL</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_send><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.send" target=_parent class=ISymbol>send</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_sendIQ><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.sendIQ" target=_parent class=ISymbol>sendIQ</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_serialize><div class=IEntry><a href="../files/core-js.html#Strophe.serialize" target=_parent class=ISymbol>serialize</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_SESSION><div class=IEntry><a href="../files/core-js.html#Strophe.NS.SESSION" target=_parent class=ISymbol>SESSION</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_STREAM><div class=IEntry><a href="../files/core-js.html#Strophe.NS.STREAM" target=_parent class=ISymbol>STREAM</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_Strophe><div class=IEntry><a href="../files/core-js.html#Strophe" target=_parent class=ISymbol>Strophe</a></div></div><div class=SRResult id=SR_Strophe_perBuilder><div class=IEntry><a href="../files/core-js.html#Strophe.Builder" target=_parent class=ISymbol>Strophe.<wbr>Builder</a></div></div><div class=SRResult id=SR_Strophe_perConnection><div class=IEntry><a href="../files/core-js.html#Strophe.Connection" target=_parent class=ISymbol>Strophe.<wbr>Connection</a></div></div><div class=SRResult id=SR_strophe_perjs><div class=IEntry><a href="../files/core-js.html#strophe.js" target=_parent class=ISymbol>strophe.js</a></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralU.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralU.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralU.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_unescapeNode><div class=IEntry><a href="../files/core-js.html#Strophe.unescapeNode" target=_parent class=ISymbol>unescapeNode</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_up><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.up" target=_parent class=ISymbol>up</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsW.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsW.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsW.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_WARN><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.WARN" target=_parent class=ISymbol>WARN</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralW.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralW.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralW.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_warn><div class=IEntry><a href="../files/core-js.html#Strophe.warn" target=_parent class=ISymbol>warn</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR2_WARN><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.WARN" target=_parent class=ISymbol>WARN</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsB.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsB.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsB.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_Builder><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.Strophe.Builder" target=_parent class=ISymbol>Builder</a>, <span class=IParent>Strophe.<wbr>Builder.<wbr>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsD.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsD.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsD.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_debug><div class=IEntry><a href="../files/core-js.html#Strophe.debug" target=_parent class=ISymbol>debug</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_deleteHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.deleteHandler" target=_parent class=ISymbol>deleteHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_deleteTimedHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.deleteTimedHandler" target=_parent class=ISymbol>deleteTimedHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_disconnect><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.disconnect" target=_parent class=ISymbol>disconnect</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsB.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsB.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsB.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_BIND><div class=IEntry><a href="../files/core-js.html#Strophe.NS.BIND" target=_parent class=ISymbol>BIND</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_BOSH><div class=IEntry><a href="../files/core-js.html#Strophe.NS.BOSH" target=_parent class=ISymbol>BOSH</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsF.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsF.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsF.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_fatal><div class=IEntry><a href="../files/core-js.html#Strophe.fatal" target=_parent class=ISymbol>fatal</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_flush><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.flush" target=_parent class=ISymbol>flush</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_forEachChild><div class=IEntry><a href="../files/core-js.html#Strophe.forEachChild" target=_parent class=ISymbol>forEachChild</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralB.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralB.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralB.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_BIND><div class=IEntry><a href="../files/core-js.html#Strophe.NS.BIND" target=_parent class=ISymbol>BIND</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_BOSH><div class=IEntry><a href="../files/core-js.html#Strophe.NS.BOSH" target=_parent class=ISymbol>BOSH</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_Builder><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.Strophe.Builder" target=_parent class=ISymbol>Builder</a>, <span class=IParent>Strophe.<wbr>Builder.<wbr>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsD.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsD.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsD.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_DEBUG><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.DEBUG" target=_parent class=ISymbol>DEBUG</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div><div class=SRResult id=SR_DISCO_undINFO><div class=IEntry><a href="../files/core-js.html#Strophe.NS.DISCO_INFO" target=_parent class=ISymbol>DISCO_INFO</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_DISCO_undITEMS><div class=IEntry><a href="../files/core-js.html#Strophe.NS.DISCO_ITEMS" target=_parent class=ISymbol>DISCO_ITEMS</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_DISCONNECTED><div class=IEntry><a href="../files/core-js.html#Strophe.Status.DISCONNECTED" target=_parent class=ISymbol>DISCONNECTED</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_DISCONNECTING><div class=IEntry><a href="../files/core-js.html#Strophe.Status.DISCONNECTING" target=_parent class=ISymbol>DISCONNECTING</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralD.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralD.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralD.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_debug><div class=IEntry><a href="../files/core-js.html#Strophe.debug" target=_parent class=ISymbol>debug</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR2_DEBUG><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.DEBUG" target=_parent class=ISymbol>DEBUG</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div><div class=SRResult id=SR_deleteHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.deleteHandler" target=_parent class=ISymbol>deleteHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_deleteTimedHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.deleteTimedHandler" target=_parent class=ISymbol>deleteTimedHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_DISCO_undINFO><div class=IEntry><a href="../files/core-js.html#Strophe.NS.DISCO_INFO" target=_parent class=ISymbol>DISCO_INFO</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_DISCO_undITEMS><div class=IEntry><a href="../files/core-js.html#Strophe.NS.DISCO_ITEMS" target=_parent class=ISymbol>DISCO_ITEMS</a>, <span class=IParent>Strophe.NS</span></div></div><div class=SRResult id=SR_disconnect><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.disconnect" target=_parent class=ISymbol>disconnect</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_DISCONNECTED><div class=IEntry><a href="../files/core-js.html#Strophe.Status.DISCONNECTED" target=_parent class=ISymbol>DISCONNECTED</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div><div class=SRResult id=SR_DISCONNECTING><div class=IEntry><a href="../files/core-js.html#Strophe.Status.DISCONNECTING" target=_parent class=ISymbol>DISCONNECTING</a>, <span class=IParent>Strophe.<wbr>Status</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsF.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsF.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsF.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_FATAL><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.FATAL" target=_parent class=ISymbol>FATAL</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralF.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralF.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralF.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_fatal><div class=IEntry><a href="../files/core-js.html#Strophe.fatal" target=_parent class=ISymbol>fatal</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR2_FATAL><div class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.FATAL" target=_parent class=ISymbol>FATAL</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></div></div><div class=SRResult id=SR_flush><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.flush" target=_parent class=ISymbol>flush</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_forEachChild><div class=IEntry><a href="../files/core-js.html#Strophe.forEachChild" target=_parent class=ISymbol>forEachChild</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_Functions><div class=IEntry><a href="javascript:searchResults.Toggle('SR_Functions')" class=ISymbol>Functions</a><div class=ISubIndex><a href="../files/core-js.html#Functions" target=_parent class=IParent>Global</a><a href="../files/core-js.html#Strophe.Functions" target=_parent class=IParent>Strophe</a><a href="../files/core-js.html#Strophe.Builder.Functions" target=_parent class=IParent>Strophe.<wbr>Builder</a><a href="../files/core-js.html#Strophe.Connection.Functions" target=_parent class=IParent>Strophe.<wbr>Connection</a></div></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsL.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsL.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsL.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_log><div class=IEntry><a href="../files/core-js.html#Strophe.log" target=_parent class=ISymbol>log</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsH.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsH.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsH.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_HTTPBIND><div class=IEntry><a href="../files/core-js.html#Strophe.NS.HTTPBIND" target=_parent class=ISymbol>HTTPBIND</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FilesS.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FilesS.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FilesS.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_strophe_perjs><div class=IEntry><a href="../files/core-js.html#strophe.js" target=_parent class=ISymbol>strophe.js</a></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralH.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralH.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralH.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_HTTPBIND><div class=IEntry><a href="../files/core-js.html#Strophe.NS.HTTPBIND" target=_parent class=ISymbol>HTTPBIND</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsP.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsP.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsP.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_pause><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.pause" target=_parent class=ISymbol>pause</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsL.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsL.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsL.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_Log_spcLevel_spcConstants><div class=IEntry><a href="../files/core-js.html#Strophe.Log_Level_Constants" target=_parent class=ISymbol>Log Level Constants</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralL.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralL.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralL.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_log><div class=IEntry><a href="../files/core-js.html#Strophe.log" target=_parent class=ISymbol>log</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_Log_spcLevel_spcConstants><div class=IEntry><a href="../files/core-js.html#Strophe.Log_Level_Constants" target=_parent class=ISymbol>Log Level Constants</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsR.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsR.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsR.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_rawInput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.rawInput" target=_parent class=ISymbol>rawInput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_rawOutput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.rawOutput" target=_parent class=ISymbol>rawOutput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_reset><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.reset" target=_parent class=ISymbol>reset</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_resume><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.resume" target=_parent class=ISymbol>resume</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsT.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsT.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsT.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_t><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.t" target=_parent class=ISymbol>t</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_toString><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.toString" target=_parent class=ISymbol>toString</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_tree><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.tree" target=_parent class=ISymbol>tree</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsP.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsP.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsP.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_PROFILE><div class=IEntry><a href="../files/core-js.html#Strophe.NS.PROFILE" target=_parent class=ISymbol>PROFILE</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralP.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralP.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralP.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_pause><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.pause" target=_parent class=ISymbol>pause</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_PROFILE><div class=IEntry><a href="../files/core-js.html#Strophe.NS.PROFILE" target=_parent class=ISymbol>PROFILE</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsR.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsR.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsR.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_ROSTER><div class=IEntry><a href="../files/core-js.html#Strophe.NS.ROSTER" target=_parent class=ISymbol>ROSTER</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/NoResults.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/NoResults.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/NoResults.html	(revision 2397)
@@ -0,0 +1,15 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=NoMatches>No Matches</div></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralR.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralR.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralR.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_rawInput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.rawInput" target=_parent class=ISymbol>rawInput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_rawOutput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.rawOutput" target=_parent class=ISymbol>rawOutput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_reset><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.reset" target=_parent class=ISymbol>reset</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_resume><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.resume" target=_parent class=ISymbol>resume</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_ROSTER><div class=IEntry><a href="../files/core-js.html#Strophe.NS.ROSTER" target=_parent class=ISymbol>ROSTER</a>, <span class=IParent>Strophe.NS</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsX.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsX.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsX.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_xmlElement><div class=IEntry><a href="../files/core-js.html#Strophe.xmlElement" target=_parent class=ISymbol>xmlElement</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_xmlescape><div class=IEntry><a href="../files/core-js.html#Strophe.xmlescape" target=_parent class=ISymbol>xmlescape</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_xmlInput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.xmlInput" target=_parent class=ISymbol>xmlInput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_xmlOutput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.xmlOutput" target=_parent class=ISymbol>xmlOutput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_xmlTextNode><div class=IEntry><a href="../files/core-js.html#Strophe.xmlTextNode" target=_parent class=ISymbol>xmlTextNode</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralT.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralT.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralT.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_t><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.t" target=_parent class=ISymbol>t</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_toString><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.toString" target=_parent class=ISymbol>toString</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_tree><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.tree" target=_parent class=ISymbol>tree</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsV.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsV.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsV.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_VERSION><div class=IEntry><a href="../files/core-js.html#Strophe.VERSION" target=_parent class=ISymbol>VERSION</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralV.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralV.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralV.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_VERSION><div class=IEntry><a href="../files/core-js.html#Strophe.VERSION" target=_parent class=ISymbol>VERSION</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsX.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsX.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/ConstantsX.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_XMPP_spcNamespace_spcConstants><div class=IEntry><a href="../files/core-js.html#Strophe.XMPP_Namespace_Constants" target=_parent class=ISymbol>XMPP Namespace Constants</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralX.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralX.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/GeneralX.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_xmlElement><div class=IEntry><a href="../files/core-js.html#Strophe.xmlElement" target=_parent class=ISymbol>xmlElement</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_xmlescape><div class=IEntry><a href="../files/core-js.html#Strophe.xmlescape" target=_parent class=ISymbol>xmlescape</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_xmlInput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.xmlInput" target=_parent class=ISymbol>xmlInput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_xmlOutput><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.xmlOutput" target=_parent class=ISymbol>xmlOutput</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_xmlTextNode><div class=IEntry><a href="../files/core-js.html#Strophe.xmlTextNode" target=_parent class=ISymbol>xmlTextNode</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_XMPP_spcNamespace_spcConstants><div class=IEntry><a href="../files/core-js.html#Strophe.XMPP_Namespace_Constants" target=_parent class=ISymbol>XMPP Namespace Constants</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsA.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsA.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsA.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_addConnectionPlugin><div class=IEntry><a href="../files/core-js.html#Strophe.addConnectionPlugin" target=_parent class=ISymbol>addConnectionPlugin</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_addHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.addHandler" target=_parent class=ISymbol>addHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_addNamespace><div class=IEntry><a href="../files/core-js.html#Strophe.addNamespace" target=_parent class=ISymbol>addNamespace</a>, <span class=IParent>Strophe</span></div></div><div class=SRResult id=SR_addTimedHandler><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.addTimedHandler" target=_parent class=ISymbol>addTimedHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_attach><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.attach" target=_parent class=ISymbol>attach</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_attrs><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.attrs" target=_parent class=ISymbol>attrs</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsC.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsC.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/search/FunctionsC.html	(revision 2397)
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_c><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.c" target=_parent class=ISymbol>c</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_cnode><div class=IEntry><a href="../files/core-js.html#Strophe.Builder.cnode" target=_parent class=ISymbol>cnode</a>, <span class=IParent>Strophe.<wbr>Builder</span></div></div><div class=SRResult id=SR_connect><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.connect" target=_parent class=ISymbol>connect</a>, <span class=IParent>Strophe.<wbr>Connection</span></div></div><div class=SRResult id=SR_Connection><div class=IEntry><a href="../files/core-js.html#Strophe.Connection.Strophe.Connection" target=_parent class=ISymbol>Connection</a>, <span class=IParent>Strophe.<wbr>Connection.<wbr>Strophe</span></div></div><div class=SRResult id=SR_copyElement><div class=IEntry><a href="../files/core-js.html#Strophe.copyElement" target=_parent class=ISymbol>copyElement</a>, <span class=IParent>Strophe</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
+document.getElementById("Loading").style.display="none";
+document.getElementById("NoMatches").style.display="none";
+var searchResults = new SearchResults("searchResults", "HTML");
+searchResults.Search();
+--></script></div><script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/javascript/main.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/javascript/main.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/javascript/main.js	(revision 2397)
@@ -0,0 +1,836 @@
+// This file is part of Natural Docs, which is Copyright (C) 2003-2008 Greg Valure
+// Natural Docs is licensed under the GPL
+
+
+//
+//  Browser Styles
+// ____________________________________________________________________________
+
+var agt=navigator.userAgent.toLowerCase();
+var browserType;
+var browserVer;
+
+if (agt.indexOf("opera") != -1)
+    {
+    browserType = "Opera";
+
+    if (agt.indexOf("opera 7") != -1 || agt.indexOf("opera/7") != -1)
+        {  browserVer = "Opera7";  }
+    else if (agt.indexOf("opera 8") != -1 || agt.indexOf("opera/8") != -1)
+        {  browserVer = "Opera8";  }
+    else if (agt.indexOf("opera 9") != -1 || agt.indexOf("opera/9") != -1)
+        {  browserVer = "Opera9";  }
+    }
+
+else if (agt.indexOf("applewebkit") != -1)
+    {
+    browserType = "Safari";
+
+    if (agt.indexOf("version/3") != -1)
+        {  browserVer = "Safari3";  }
+    else if (agt.indexOf("safari/4") != -1)
+        {  browserVer = "Safari2";  }
+    }
+
+else if (agt.indexOf("khtml") != -1)
+    {
+    browserType = "Konqueror";
+    }
+
+else if (agt.indexOf("msie") != -1)
+    {
+    browserType = "IE";
+
+    if (agt.indexOf("msie 6") != -1)
+        {  browserVer = "IE6";  }
+    else if (agt.indexOf("msie 7") != -1)
+        {  browserVer = "IE7";  }
+    }
+
+else if (agt.indexOf("gecko") != -1)
+    {
+    browserType = "Firefox";
+
+    if (agt.indexOf("rv:1.7") != -1)
+        {  browserVer = "Firefox1";  }
+    else if (agt.indexOf("rv:1.8)") != -1 || agt.indexOf("rv:1.8.0") != -1)
+        {  browserVer = "Firefox15";  }
+    else if (agt.indexOf("rv:1.8.1") != -1)
+        {  browserVer = "Firefox2";  }
+    }
+
+
+//
+//  Support Functions
+// ____________________________________________________________________________
+
+
+function GetXPosition(item)
+    {
+    var position = 0;
+
+    if (item.offsetWidth != null)
+        {
+        while (item != document.body && item != null)
+            {
+            position += item.offsetLeft;
+            item = item.offsetParent;
+            };
+        };
+
+    return position;
+    };
+
+
+function GetYPosition(item)
+    {
+    var position = 0;
+
+    if (item.offsetWidth != null)
+        {
+        while (item != document.body && item != null)
+            {
+            position += item.offsetTop;
+            item = item.offsetParent;
+            };
+        };
+
+    return position;
+    };
+
+
+function MoveToPosition(item, x, y)
+    {
+    // Opera 5 chokes on the px extension, so it can use the Microsoft one instead.
+
+    if (item.style.left != null)
+        {
+        item.style.left = x + "px";
+        item.style.top = y + "px";
+        }
+    else if (item.style.pixelLeft != null)
+        {
+        item.style.pixelLeft = x;
+        item.style.pixelTop = y;
+        };
+    };
+
+
+//
+//  Menu
+// ____________________________________________________________________________
+
+
+function ToggleMenu(id)
+    {
+    if (!window.document.getElementById)
+        {  return;  };
+
+    var display = window.document.getElementById(id).style.display;
+
+    if (display == "none")
+        {  display = "block";  }
+    else
+        {  display = "none";  }
+
+    window.document.getElementById(id).style.display = display;
+    }
+
+function HideAllBut(ids, max)
+    {
+    if (document.getElementById)
+        {
+        ids.sort( function(a,b) { return a - b; } );
+        var number = 1;
+
+        while (number < max)
+            {
+            if (ids.length > 0 && number == ids[0])
+                {  ids.shift();  }
+            else
+                {
+                document.getElementById("MGroupContent" + number).style.display = "none";
+                };
+
+            number++;
+            };
+        };
+    }
+
+
+//
+//  Tooltips
+// ____________________________________________________________________________
+
+
+var tooltipTimer = 0;
+
+function ShowTip(event, tooltipID, linkID)
+    {
+    if (tooltipTimer)
+        {  clearTimeout(tooltipTimer);  };
+
+    var docX = event.clientX + window.pageXOffset;
+    var docY = event.clientY + window.pageYOffset;
+
+    var showCommand = "ReallyShowTip('" + tooltipID + "', '" + linkID + "', " + docX + ", " + docY + ")";
+
+    tooltipTimer = setTimeout(showCommand, 1000);
+    }
+
+function ReallyShowTip(tooltipID, linkID, docX, docY)
+    {
+    tooltipTimer = 0;
+
+    var tooltip;
+    var link;
+
+    if (document.getElementById)
+        {
+        tooltip = document.getElementById(tooltipID);
+        link = document.getElementById(linkID);
+        }
+/*    else if (document.all)
+        {
+        tooltip = eval("document.all['" + tooltipID + "']");
+        link = eval("document.all['" + linkID + "']");
+        }
+*/
+    if (tooltip)
+        {
+        var left = GetXPosition(link);
+        var top = GetYPosition(link);
+        top += link.offsetHeight;
+
+
+        // The fallback method is to use the mouse X and Y relative to the document.  We use a separate if and test if its a number
+        // in case some browser snuck through the above if statement but didn't support everything.
+
+        if (!isFinite(top) || top == 0)
+            {
+            left = docX;
+            top = docY;
+            }
+
+        // Some spacing to get it out from under the cursor.
+
+        top += 10;
+
+        // Make sure the tooltip doesnt get smushed by being too close to the edge, or in some browsers, go off the edge of the
+        // page.  We do it here because Konqueror does get offsetWidth right even if it doesnt get the positioning right.
+
+        if (tooltip.offsetWidth != null)
+            {
+            var width = tooltip.offsetWidth;
+            var docWidth = document.body.clientWidth;
+
+            if (left + width > docWidth)
+                {  left = docWidth - width - 1;  }
+
+            // If there's a horizontal scroll bar we could go past zero because it's using the page width, not the window width.
+            if (left < 0)
+                {  left = 0;  };
+            }
+
+        MoveToPosition(tooltip, left, top);
+        tooltip.style.visibility = "visible";
+        }
+    }
+
+function HideTip(tooltipID)
+    {
+    if (tooltipTimer)
+        {
+        clearTimeout(tooltipTimer);
+        tooltipTimer = 0;
+        }
+
+    var tooltip;
+
+    if (document.getElementById)
+        {  tooltip = document.getElementById(tooltipID); }
+    else if (document.all)
+        {  tooltip = eval("document.all['" + tooltipID + "']");  }
+
+    if (tooltip)
+        {  tooltip.style.visibility = "hidden";  }
+    }
+
+
+//
+//  Blockquote fix for IE
+// ____________________________________________________________________________
+
+
+function NDOnLoad()
+    {
+    if (browserVer == "IE6")
+        {
+        var scrollboxes = document.getElementsByTagName('blockquote');
+
+        if (scrollboxes.item(0))
+            {
+            NDDoResize();
+            window.onresize=NDOnResize;
+            };
+        };
+    };
+
+
+var resizeTimer = 0;
+
+function NDOnResize()
+    {
+    if (resizeTimer != 0)
+        {  clearTimeout(resizeTimer);  };
+
+    resizeTimer = setTimeout(NDDoResize, 250);
+    };
+
+
+function NDDoResize()
+    {
+    var scrollboxes = document.getElementsByTagName('blockquote');
+
+    var i;
+    var item;
+
+    i = 0;
+    while (item = scrollboxes.item(i))
+        {
+        item.style.width = 100;
+        i++;
+        };
+
+    i = 0;
+    while (item = scrollboxes.item(i))
+        {
+        item.style.width = item.parentNode.offsetWidth;
+        i++;
+        };
+
+    clearTimeout(resizeTimer);
+    resizeTimer = 0;
+    }
+
+
+
+/* ________________________________________________________________________________________________________
+
+    Class: SearchPanel
+    ________________________________________________________________________________________________________
+
+    A class handling everything associated with the search panel.
+
+    Parameters:
+
+        name - The name of the global variable that will be storing this instance.  Is needed to be able to set timeouts.
+        mode - The mode the search is going to work in.  Pass <NaturalDocs::Builder::Base->CommandLineOption()>, so the
+                   value will be something like "HTML" or "FramedHTML".
+
+    ________________________________________________________________________________________________________
+*/
+
+
+function SearchPanel(name, mode, resultsPath)
+    {
+    if (!name || !mode || !resultsPath)
+        {  alert("Incorrect parameters to SearchPanel.");  };
+
+
+    // Group: Variables
+    // ________________________________________________________________________
+
+    /*
+        var: name
+        The name of the global variable that will be storing this instance of the class.
+    */
+    this.name = name;
+
+    /*
+        var: mode
+        The mode the search is going to work in, such as "HTML" or "FramedHTML".
+    */
+    this.mode = mode;
+
+    /*
+        var: resultsPath
+        The relative path from the current HTML page to the results page directory.
+    */
+    this.resultsPath = resultsPath;
+
+    /*
+        var: keyTimeout
+        The timeout used between a keystroke and when a search is performed.
+    */
+    this.keyTimeout = 0;
+
+    /*
+        var: keyTimeoutLength
+        The length of <keyTimeout> in thousandths of a second.
+    */
+    this.keyTimeoutLength = 500;
+
+    /*
+        var: lastSearchValue
+        The last search string executed, or an empty string if none.
+    */
+    this.lastSearchValue = "";
+
+    /*
+        var: lastResultsPage
+        The last results page.  The value is only relevant if <lastSearchValue> is set.
+    */
+    this.lastResultsPage = "";
+
+    /*
+        var: deactivateTimeout
+
+        The timeout used between when a control is deactivated and when the entire panel is deactivated.  Is necessary
+        because a control may be deactivated in favor of another control in the same panel, in which case it should stay
+        active.
+    */
+    this.deactivateTimout = 0;
+
+    /*
+        var: deactivateTimeoutLength
+        The length of <deactivateTimeout> in thousandths of a second.
+    */
+    this.deactivateTimeoutLength = 200;
+
+
+
+
+    // Group: DOM Elements
+    // ________________________________________________________________________
+
+
+    // Function: DOMSearchField
+    this.DOMSearchField = function()
+        {  return document.getElementById("MSearchField");  };
+
+    // Function: DOMSearchType
+    this.DOMSearchType = function()
+        {  return document.getElementById("MSearchType");  };
+
+    // Function: DOMPopupSearchResults
+    this.DOMPopupSearchResults = function()
+        {  return document.getElementById("MSearchResults");  };
+
+    // Function: DOMPopupSearchResultsWindow
+    this.DOMPopupSearchResultsWindow = function()
+        {  return document.getElementById("MSearchResultsWindow");  };
+
+    // Function: DOMSearchPanel
+    this.DOMSearchPanel = function()
+        {  return document.getElementById("MSearchPanel");  };
+
+
+
+
+    // Group: Event Handlers
+    // ________________________________________________________________________
+
+
+    /*
+        Function: OnSearchFieldFocus
+        Called when focus is added or removed from the search field.
+    */
+    this.OnSearchFieldFocus = function(isActive)
+        {
+        this.Activate(isActive);
+        };
+
+
+    /*
+        Function: OnSearchFieldChange
+        Called when the content of the search field is changed.
+    */
+    this.OnSearchFieldChange = function()
+        {
+        if (this.keyTimeout)
+            {
+            clearTimeout(this.keyTimeout);
+            this.keyTimeout = 0;
+            };
+
+        var searchValue = this.DOMSearchField().value.replace(/ +/g, "");
+
+        if (searchValue != this.lastSearchValue)
+            {
+            if (searchValue != "")
+                {
+                this.keyTimeout = setTimeout(this.name + ".Search()", this.keyTimeoutLength);
+                }
+            else
+                {
+                if (this.mode == "HTML")
+                    {  this.DOMPopupSearchResultsWindow().style.display = "none";  };
+                this.lastSearchValue = "";
+                };
+            };
+        };
+
+
+    /*
+        Function: OnSearchTypeFocus
+        Called when focus is added or removed from the search type.
+    */
+    this.OnSearchTypeFocus = function(isActive)
+        {
+        this.Activate(isActive);
+        };
+
+
+    /*
+        Function: OnSearchTypeChange
+        Called when the search type is changed.
+    */
+    this.OnSearchTypeChange = function()
+        {
+        var searchValue = this.DOMSearchField().value.replace(/ +/g, "");
+
+        if (searchValue != "")
+            {
+            this.Search();
+            };
+        };
+
+
+
+    // Group: Action Functions
+    // ________________________________________________________________________
+
+
+    /*
+        Function: CloseResultsWindow
+        Closes the results window.
+    */
+    this.CloseResultsWindow = function()
+        {
+        this.DOMPopupSearchResultsWindow().style.display = "none";
+        this.Activate(false, true);
+        };
+
+
+    /*
+        Function: Search
+        Performs a search.
+    */
+    this.Search = function()
+        {
+        this.keyTimeout = 0;
+
+        var searchValue = this.DOMSearchField().value.replace(/^ +/, "");
+        var searchTopic = this.DOMSearchType().value;
+
+        var pageExtension = searchValue.substr(0,1);
+
+        if (pageExtension.match(/^[a-z]/i))
+            {  pageExtension = pageExtension.toUpperCase();  }
+        else if (pageExtension.match(/^[0-9]/))
+            {  pageExtension = 'Numbers';  }
+        else
+            {  pageExtension = "Symbols";  };
+
+        var resultsPage;
+        var resultsPageWithSearch;
+        var hasResultsPage;
+
+        // indexSectionsWithContent is defined in searchdata.js
+        if (indexSectionsWithContent[searchTopic][pageExtension] == true)
+            {
+            resultsPage = this.resultsPath + '/' + searchTopic + pageExtension + '.html';
+            resultsPageWithSearch = resultsPage+'?'+escape(searchValue);
+            hasResultsPage = true;
+            }
+        else
+            {
+            resultsPage = this.resultsPath + '/NoResults.html';
+            resultsPageWithSearch = resultsPage;
+            hasResultsPage = false;
+            };
+
+        var resultsFrame;
+        if (this.mode == "HTML")
+            {  resultsFrame = window.frames.MSearchResults;  }
+        else if (this.mode == "FramedHTML")
+            {  resultsFrame = window.top.frames['Content'];  };
+
+
+        if (resultsPage != this.lastResultsPage ||
+
+            // Bug in IE.  If everything becomes hidden in a run, none of them will be able to be reshown in the next for some
+            // reason.  It counts the right number of results, and you can even read the display as "block" after setting it, but it
+            // just doesn't work in IE 6 or IE 7.  So if we're on the right page but the previous search had no results, reload the
+            // page anyway to get around the bug.
+            (browserType == "IE" && hasResultsPage &&
+            	(!resultsFrame.searchResults || resultsFrame.searchResults.lastMatchCount == 0)) )
+
+            {
+            resultsFrame.location.href = resultsPageWithSearch;
+            }
+
+        // So if the results page is right and there's no IE bug, reperform the search on the existing page.  We have to check if there
+        // are results because NoResults.html doesn't have any JavaScript, and it would be useless to do anything on that page even
+        // if it did.
+        else if (hasResultsPage)
+            {
+            // We need to check if this exists in case the frame is present but didn't finish loading.
+            if (resultsFrame.searchResults)
+                {  resultsFrame.searchResults.Search(searchValue);  }
+
+            // Otherwise just reload instead of waiting.
+            else
+                {  resultsFrame.location.href = resultsPageWithSearch;  };
+            };
+
+
+        var domPopupSearchResultsWindow = this.DOMPopupSearchResultsWindow();
+
+        if (this.mode == "HTML" && domPopupSearchResultsWindow.style.display != "block")
+            {
+            var domSearchType = this.DOMSearchType();
+
+            var left = GetXPosition(domSearchType);
+            var top = GetYPosition(domSearchType) + domSearchType.offsetHeight;
+
+            MoveToPosition(domPopupSearchResultsWindow, left, top);
+            domPopupSearchResultsWindow.style.display = 'block';
+            };
+
+
+        this.lastSearchValue = searchValue;
+        this.lastResultsPage = resultsPage;
+        };
+
+
+
+    // Group: Activation Functions
+    // Functions that handle whether the entire panel is active or not.
+    // ________________________________________________________________________
+
+
+    /*
+        Function: Activate
+
+        Activates or deactivates the search panel, resetting things to their default values if necessary.  You can call this on every
+        control's OnBlur() and it will handle not deactivating the entire panel when focus is just switching between them transparently.
+
+        Parameters:
+
+            isActive - Whether you're activating or deactivating the panel.
+            ignoreDeactivateDelay - Set if you're positive the action will deactivate the panel and thus want to skip the delay.
+    */
+    this.Activate = function(isActive, ignoreDeactivateDelay)
+        {
+        // We want to ignore isActive being false while the results window is open.
+        if (isActive || (this.mode == "HTML" && this.DOMPopupSearchResultsWindow().style.display == "block"))
+            {
+            if (this.inactivateTimeout)
+                {
+                clearTimeout(this.inactivateTimeout);
+                this.inactivateTimeout = 0;
+                };
+
+            this.DOMSearchPanel().className = 'MSearchPanelActive';
+
+            var searchField = this.DOMSearchField();
+
+            if (searchField.value == 'Search')
+                 {  searchField.value = "";  }
+            }
+        else if (!ignoreDeactivateDelay)
+            {
+            this.inactivateTimeout = setTimeout(this.name + ".InactivateAfterTimeout()", this.inactivateTimeoutLength);
+            }
+        else
+            {
+            this.InactivateAfterTimeout();
+            };
+        };
+
+
+    /*
+        Function: InactivateAfterTimeout
+
+        Called by <inactivateTimeout>, which is set by <Activate()>.  Inactivation occurs on a timeout because a control may
+        receive OnBlur() when focus is really transferring to another control in the search panel.  In this case we don't want to
+        actually deactivate the panel because not only would that cause a visible flicker but it could also reset the search value.
+        So by doing it on a timeout instead, there's a short period where the second control's OnFocus() can cancel the deactivation.
+    */
+    this.InactivateAfterTimeout = function()
+        {
+        this.inactivateTimeout = 0;
+
+        this.DOMSearchPanel().className = 'MSearchPanelInactive';
+        this.DOMSearchField().value = "Search";
+
+	    this.lastSearchValue = "";
+	    this.lastResultsPage = "";
+        };
+    };
+
+
+
+
+/* ________________________________________________________________________________________________________
+
+   Class: SearchResults
+   _________________________________________________________________________________________________________
+
+   The class that handles everything on the search results page.
+   _________________________________________________________________________________________________________
+*/
+
+
+function SearchResults(name, mode)
+    {
+    /*
+        var: mode
+        The mode the search is going to work in, such as "HTML" or "FramedHTML".
+    */
+    this.mode = mode;
+
+    /*
+        var: lastMatchCount
+        The number of matches from the last run of <Search()>.
+    */
+    this.lastMatchCount = 0;
+
+
+    /*
+        Function: Toggle
+        Toggles the visibility of the passed element ID.
+    */
+    this.Toggle = function(id)
+        {
+        if (this.mode == "FramedHTML")
+            {  return;  };
+
+        var parentElement = document.getElementById(id);
+
+        var element = parentElement.firstChild;
+
+        while (element && element != parentElement)
+            {
+            if (element.nodeName == 'DIV' && element.className == 'ISubIndex')
+                {
+                if (element.style.display == 'block')
+                    {  element.style.display = "none";  }
+                else
+                    {  element.style.display = 'block';  }
+                };
+
+            if (element.nodeName == 'DIV' && element.hasChildNodes())
+                {  element = element.firstChild;  }
+            else if (element.nextSibling)
+                {  element = element.nextSibling;  }
+            else
+                {
+                do
+                    {
+                    element = element.parentNode;
+                    }
+                while (element && element != parentElement && !element.nextSibling);
+
+                if (element && element != parentElement)
+                    {  element = element.nextSibling;  };
+                };
+            };
+        };
+
+
+    /*
+        Function: Search
+
+        Searches for the passed string.  If there is no parameter, it takes it from the URL query.
+
+        Always returns true, since other documents may try to call it and that may or may not be possible.
+    */
+    this.Search = function(search)
+        {
+        if (!search)
+            {
+            search = window.location.search;
+            search = search.substring(1);  // Remove the leading ?
+            search = unescape(search);
+            };
+
+        search = search.replace(/^ +/, "");
+        search = search.replace(/ +$/, "");
+        search = search.toLowerCase();
+
+        if (search.match(/[^a-z0-9]/)) // Just a little speedup so it doesn't have to go through the below unnecessarily.
+            {
+            search = search.replace(/\_/g, "_und");
+            search = search.replace(/\ +/gi, "_spc");
+            search = search.replace(/\~/g, "_til");
+            search = search.replace(/\!/g, "_exc");
+            search = search.replace(/\@/g, "_att");
+            search = search.replace(/\#/g, "_num");
+            search = search.replace(/\$/g, "_dol");
+            search = search.replace(/\%/g, "_pct");
+            search = search.replace(/\^/g, "_car");
+            search = search.replace(/\&/g, "_amp");
+            search = search.replace(/\*/g, "_ast");
+            search = search.replace(/\(/g, "_lpa");
+            search = search.replace(/\)/g, "_rpa");
+            search = search.replace(/\-/g, "_min");
+            search = search.replace(/\+/g, "_plu");
+            search = search.replace(/\=/g, "_equ");
+            search = search.replace(/\{/g, "_lbc");
+            search = search.replace(/\}/g, "_rbc");
+            search = search.replace(/\[/g, "_lbk");
+            search = search.replace(/\]/g, "_rbk");
+            search = search.replace(/\:/g, "_col");
+            search = search.replace(/\;/g, "_sco");
+            search = search.replace(/\"/g, "_quo");
+            search = search.replace(/\'/g, "_apo");
+            search = search.replace(/\</g, "_lan");
+            search = search.replace(/\>/g, "_ran");
+            search = search.replace(/\,/g, "_com");
+            search = search.replace(/\./g, "_per");
+            search = search.replace(/\?/g, "_que");
+            search = search.replace(/\//g, "_sla");
+            search = search.replace(/[^a-z0-9\_]i/gi, "_zzz");
+            };
+
+        var resultRows = document.getElementsByTagName("div");
+        var matches = 0;
+
+        var i = 0;
+        while (i < resultRows.length)
+            {
+            var row = resultRows.item(i);
+
+            if (row.className == "SRResult")
+                {
+                var rowMatchName = row.id.toLowerCase();
+                rowMatchName = rowMatchName.replace(/^sr\d*_/, '');
+
+                if (search.length <= rowMatchName.length && rowMatchName.substr(0, search.length) == search)
+                    {
+                    row.style.display = "block";
+                    matches++;
+                    }
+                else
+                    {  row.style.display = "none";  };
+                };
+
+            i++;
+            };
+
+        document.getElementById("Searching").style.display="none";
+
+        if (matches == 0)
+            {  document.getElementById("NoMatches").style.display="block";  }
+        else
+            {  document.getElementById("NoMatches").style.display="none";  }
+
+        this.lastMatchCount = matches;
+
+        return true;
+        };
+    };
+
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/javascript/searchdata.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/javascript/searchdata.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/javascript/searchdata.js	(revision 2397)
@@ -0,0 +1,152 @@
+var indexSectionsWithContent = {
+   "General": {
+      "Symbols": true,
+      "Numbers": false,
+      "A": true,
+      "B": true,
+      "C": true,
+      "D": true,
+      "E": true,
+      "F": true,
+      "G": true,
+      "H": true,
+      "I": true,
+      "J": false,
+      "K": false,
+      "L": true,
+      "M": true,
+      "N": false,
+      "O": false,
+      "P": true,
+      "Q": false,
+      "R": true,
+      "S": true,
+      "T": true,
+      "U": true,
+      "V": true,
+      "W": true,
+      "X": true,
+      "Y": false,
+      "Z": false
+      },
+   "Functions": {
+      "Symbols": true,
+      "Numbers": false,
+      "A": true,
+      "B": true,
+      "C": true,
+      "D": true,
+      "E": true,
+      "F": true,
+      "G": true,
+      "H": false,
+      "I": true,
+      "J": false,
+      "K": false,
+      "L": true,
+      "M": false,
+      "N": false,
+      "O": false,
+      "P": true,
+      "Q": false,
+      "R": true,
+      "S": true,
+      "T": true,
+      "U": true,
+      "V": false,
+      "W": true,
+      "X": true,
+      "Y": false,
+      "Z": false
+      },
+   "Files": {
+      "Symbols": false,
+      "Numbers": false,
+      "A": false,
+      "B": false,
+      "C": false,
+      "D": false,
+      "E": false,
+      "F": false,
+      "G": false,
+      "H": false,
+      "I": false,
+      "J": false,
+      "K": false,
+      "L": false,
+      "M": false,
+      "N": false,
+      "O": false,
+      "P": false,
+      "Q": false,
+      "R": false,
+      "S": true,
+      "T": false,
+      "U": false,
+      "V": false,
+      "W": false,
+      "X": false,
+      "Y": false,
+      "Z": false
+      },
+   "Constants": {
+      "Symbols": false,
+      "Numbers": false,
+      "A": true,
+      "B": true,
+      "C": true,
+      "D": true,
+      "E": true,
+      "F": true,
+      "G": false,
+      "H": true,
+      "I": true,
+      "J": false,
+      "K": false,
+      "L": true,
+      "M": true,
+      "N": false,
+      "O": false,
+      "P": true,
+      "Q": false,
+      "R": true,
+      "S": true,
+      "T": false,
+      "U": false,
+      "V": true,
+      "W": true,
+      "X": true,
+      "Y": false,
+      "Z": false
+      },
+   "Classes": {
+      "Symbols": false,
+      "Numbers": false,
+      "A": false,
+      "B": false,
+      "C": false,
+      "D": false,
+      "E": false,
+      "F": false,
+      "G": false,
+      "H": false,
+      "I": false,
+      "J": false,
+      "K": false,
+      "L": false,
+      "M": false,
+      "N": false,
+      "O": false,
+      "P": false,
+      "Q": false,
+      "R": false,
+      "S": true,
+      "T": false,
+      "U": false,
+      "V": false,
+      "W": false,
+      "X": false,
+      "Y": false,
+      "Z": false
+      }
+   }
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/index/Constants.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/index/Constants.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/index/Constants.html	(revision 2397)
@@ -0,0 +1,93 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><title>Constant Index</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/searchdata.js"></script></head><body class="IndexPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=IPageTitle>Constant Index</div><div class=INavigationBar>$#! &middot; 0-9 &middot; <a href="#A">A</a> &middot; <a href="#B">B</a> &middot; <a href="#C">C</a> &middot; <a href="#D">D</a> &middot; <a href="#E">E</a> &middot; <a href="#F">F</a> &middot; G &middot; <a href="#H">H</a> &middot; <a href="#I">I</a> &middot; J &middot; K &middot; <a href="#L">L</a> &middot; <a href="#M">M</a> &middot; N &middot; O &middot; <a href="#P">P</a> &middot; Q &middot; <a href="#R">R</a> &middot; <a href="#S">S</a> &middot; T &middot; U &middot; <a href="#V">V</a> &middot; <a href="#W">W</a> &middot; <a href="#X">X</a> &middot; Y &middot; Z</div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="A"></a>A</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Status.ATTACHED" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')" class=ISymbol>ATTACHED</a>, <span class=IParent>Strophe.<wbr>Status</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.AUTH" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')" class=ISymbol>AUTH</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Status.AUTHENTICATING" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')" class=ISymbol>AUTHENTICATING</a>, <span class=IParent>Strophe.<wbr>Status</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Status.AUTHFAIL" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')" class=ISymbol>AUTHFAIL</a>, <span class=IParent>Strophe.<wbr>Status</span></td></tr><tr><td class=IHeading><a name="B"></a>B</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.BIND" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')" class=ISymbol>BIND</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.BOSH" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')" class=ISymbol>BOSH</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=IHeading><a name="C"></a>C</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.CLIENT" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')" class=ISymbol>CLIENT</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNECTED" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')" class=ISymbol>CONNECTED</a>, <span class=IParent>Strophe.<wbr>Status</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNECTING" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')" class=ISymbol>CONNECTING</a>, <span class=IParent>Strophe.<wbr>Status</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection_Status_Constants" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')" class=ISymbol>Connection Status Constants</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNFAIL" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')" class=ISymbol>CONNFAIL</a>, <span class=IParent>Strophe.<wbr>Status</span></td></tr><tr><td class=IHeading><a name="D"></a>D</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.DEBUG" id=link12 onMouseOver="ShowTip(event, 'tt12', 'link12')" onMouseOut="HideTip('tt12')" class=ISymbol>DEBUG</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.DISCO_INFO" id=link13 onMouseOver="ShowTip(event, 'tt13', 'link13')" onMouseOut="HideTip('tt13')" class=ISymbol>DISCO_INFO</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.DISCO_ITEMS" id=link14 onMouseOver="ShowTip(event, 'tt14', 'link14')" onMouseOut="HideTip('tt14')" class=ISymbol>DISCO_ITEMS</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Status.DISCONNECTED" id=link15 onMouseOver="ShowTip(event, 'tt15', 'link15')" onMouseOut="HideTip('tt15')" class=ISymbol>DISCONNECTED</a>, <span class=IParent>Strophe.<wbr>Status</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Status.DISCONNECTING" id=link16 onMouseOver="ShowTip(event, 'tt16', 'link16')" onMouseOut="HideTip('tt16')" class=ISymbol>DISCONNECTING</a>, <span class=IParent>Strophe.<wbr>Status</span></td></tr><tr><td class=IHeading><a name="E"></a>E</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><span class=ISymbol>ERROR</span><div class=ISubIndex><a href="../files/core-js.html#Strophe.LogLevel.ERROR" id=link17 onMouseOver="ShowTip(event, 'tt17', 'link17')" onMouseOut="HideTip('tt17')" class=IParent>Strophe.<wbr>LogLevel</a><a href="../files/core-js.html#Strophe.Status.ERROR" id=link18 onMouseOver="ShowTip(event, 'tt18', 'link18')" onMouseOut="HideTip('tt18')" class=IParent>Strophe.<wbr>Status</a></div></td></tr><tr><td class=IHeading><a name="F"></a>F</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.FATAL" id=link19 onMouseOver="ShowTip(event, 'tt19', 'link19')" onMouseOut="HideTip('tt19')" class=ISymbol>FATAL</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></td></tr><tr><td class=IHeading><a name="H"></a>H</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.HTTPBIND" id=link20 onMouseOver="ShowTip(event, 'tt20', 'link20')" onMouseOut="HideTip('tt20')" class=ISymbol>HTTPBIND</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=IHeading><a name="I"></a>I</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.INFO" id=link21 onMouseOver="ShowTip(event, 'tt21', 'link21')" onMouseOut="HideTip('tt21')" class=ISymbol>INFO</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></td></tr><tr><td class=IHeading><a name="L"></a>L</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Log_Level_Constants" id=link22 onMouseOver="ShowTip(event, 'tt22', 'link22')" onMouseOut="HideTip('tt22')" class=ISymbol>Log Level Constants</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=IHeading><a name="M"></a>M</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.MUC" id=link23 onMouseOver="ShowTip(event, 'tt23', 'link23')" onMouseOut="HideTip('tt23')" class=ISymbol>MUC</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=IHeading><a name="P"></a>P</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.PROFILE" id=link24 onMouseOver="ShowTip(event, 'tt24', 'link24')" onMouseOut="HideTip('tt24')" class=ISymbol>PROFILE</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=IHeading><a name="R"></a>R</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.ROSTER" id=link25 onMouseOver="ShowTip(event, 'tt25', 'link25')" onMouseOut="HideTip('tt25')" class=ISymbol>ROSTER</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=IHeading><a name="S"></a>S</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.SASL" id=link26 onMouseOver="ShowTip(event, 'tt26', 'link26')" onMouseOut="HideTip('tt26')" class=ISymbol>SASL</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.SESSION" id=link27 onMouseOver="ShowTip(event, 'tt27', 'link27')" onMouseOut="HideTip('tt27')" class=ISymbol>SESSION</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.STREAM" id=link28 onMouseOver="ShowTip(event, 'tt28', 'link28')" onMouseOut="HideTip('tt28')" class=ISymbol>STREAM</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=IHeading><a name="V"></a>V</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.VERSION" id=link29 onMouseOver="ShowTip(event, 'tt29', 'link29')" onMouseOut="HideTip('tt29')" class=ISymbol>VERSION</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=IHeading><a name="W"></a>W</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.WARN" id=link30 onMouseOver="ShowTip(event, 'tt30', 'link30')" onMouseOut="HideTip('tt30')" class=ISymbol>WARN</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></td></tr><tr><td class=IHeading><a name="X"></a>X</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.XMPP_Namespace_Constants" id=link31 onMouseOver="ShowTip(event, 'tt31', 'link31')" onMouseOut="HideTip('tt31')" class=ISymbol>XMPP Namespace Constants</a>, <span class=IParent>Strophe</span></td></tr></table>
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt1"><div class=CConstant>The connection has been attached</div></div><div class=CToolTip id="tt2"><div class=CConstant>Legacy authentication namespace.</div></div><div class=CToolTip id="tt3"><div class=CConstant>The connection is authenticating</div></div><div class=CToolTip id="tt4"><div class=CConstant>The authentication attempt failed</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt5"><div class=CConstant>XMPP Binding namespace from RFC 3920.</div></div><div class=CToolTip id="tt6"><div class=CConstant>BOSH namespace from XEP 206.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt7"><div class=CConstant>Main XMPP client namespace.</div></div><div class=CToolTip id="tt8"><div class=CConstant>The connection has succeeded</div></div><div class=CToolTip id="tt9"><div class=CConstant>The connection is currently being made</div></div><div class=CToolTip id="tt10"><div class=CConstant>Connection status constants for use by the connection handler callback.</div></div><div class=CToolTip id="tt11"><div class=CConstant>The connection attempt failed</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt12"><div class=CConstant>Debug output</div></div><div class=CToolTip id="tt13"><div class=CConstant>Service discovery info namespace from XEP 30.</div></div><div class=CToolTip id="tt14"><div class=CConstant>Service discovery items namespace from XEP 30.</div></div><div class=CToolTip id="tt15"><div class=CConstant>The connection has been terminated</div></div><div class=CToolTip id="tt16"><div class=CConstant>The connection is currently being terminated</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt17"><div class=CConstant>Errors</div></div><div class=CToolTip id="tt18"><div class=CConstant>An error has occurred</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt19"><div class=CConstant>Fatal errors</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt20"><div class=CConstant>HTTP BIND namespace from XEP 124.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt21"><div class=CConstant>Informational output</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt22"><div class=CConstant>Logging level indicators.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt23"><div class=CConstant>Multi-User Chat namespace from XEP 45.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt24"><div class=CConstant>Profile namespace.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt25"><div class=CConstant>Roster operations namespace.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt26"><div class=CConstant>XMPP SASL namespace from RFC 3920.</div></div><div class=CToolTip id="tt27"><div class=CConstant>XMPP Session namespace from RFC 3920.</div></div><div class=CToolTip id="tt28"><div class=CConstant>XMPP Streams namespace from RFC 3920.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt29"><div class=CConstant>The version of the Strophe library. </div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt30"><div class=CConstant>Warnings</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt31"><div class=CConstant>Common namespace constants from the XMPP RFCs and XEPs.</div></div><!--END_ND_TOOLTIPS-->
+
+</div><!--Index-->
+
+
+<div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
+
+
+<div id=Menu><div class=MEntry><div class=MFile><a href="../files/core-js.html">js</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Index</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MIndex><a href="General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex id=MSelected>Constants</div></div><div class=MEntry><div class=MIndex><a href="Files.html">Files</a></div></div><div class=MEntry><div class=MIndex><a href="Functions.html">Functions</a></div></div></div></div></div><script type="text/javascript"><!--
+var searchPanel = new SearchPanel("searchPanel", "HTML", "../search");
+--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option  id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Constants">Constants</option><option value="Files">Files</option><option value="Functions">Functions</option></select></div></div><!--Menu-->
+
+
+<div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>
+
+
+<script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/index/Classes.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/index/Classes.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/index/Classes.html	(revision 2397)
@@ -0,0 +1,33 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><title>Class Index</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/searchdata.js"></script></head><body class="IndexPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=IPageTitle>Class Index</div><div class=INavigationBar>$#! &middot; 0-9 &middot; A &middot; B &middot; C &middot; D &middot; E &middot; F &middot; G &middot; H &middot; I &middot; J &middot; K &middot; L &middot; M &middot; N &middot; O &middot; P &middot; Q &middot; R &middot; <a href="#S">S</a> &middot; T &middot; U &middot; V &middot; W &middot; X &middot; Y &middot; Z</div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="S"></a>S</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')" class=ISymbol>Strophe</a></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Builder" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')" class=ISymbol>Strophe.<wbr>Builder</a></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')" class=ISymbol>Strophe.<wbr>Connection</a></td></tr></table>
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt1"><div class=CClass>An object container for all Strophe library functions.</div></div><div class=CToolTip id="tt2"><div class=CClass>XML DOM builder.</div></div><div class=CToolTip id="tt3"><div class=CClass>XMPP Connection manager.</div></div><!--END_ND_TOOLTIPS-->
+
+</div><!--Index-->
+
+
+<div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
+
+
+<div id=Menu><div class=MEntry><div class=MFile><a href="../files/core-js.html">js</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Index</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MIndex><a href="General.html">Everything</a></div></div><div class=MEntry><div class=MIndex id=MSelected>Classes</div></div><div class=MEntry><div class=MIndex><a href="Constants.html">Constants</a></div></div><div class=MEntry><div class=MIndex><a href="Files.html">Files</a></div></div><div class=MEntry><div class=MIndex><a href="Functions.html">Functions</a></div></div></div></div></div><script type="text/javascript"><!--
+var searchPanel = new SearchPanel("searchPanel", "HTML", "../search");
+--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option  id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Constants">Constants</option><option value="Files">Files</option><option value="Functions">Functions</option></select></div></div><!--Menu-->
+
+
+<div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>
+
+
+<script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/index/General.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/index/General.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/index/General.html	(revision 2397)
@@ -0,0 +1,105 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><title>Index</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/searchdata.js"></script></head><body class="IndexPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=IPageTitle>Index</div><div class=INavigationBar><a href="#Symbols">$#!</a> &middot; 0-9 &middot; <a href="#A">A</a> &middot; <a href="#B">B</a> &middot; <a href="#C">C</a> &middot; <a href="#D">D</a> &middot; <a href="#E">E</a> &middot; <a href="#F">F</a> &middot; <a href="#G">G</a> &middot; <a href="#H">H</a> &middot; <a href="#I">I</a> &middot; J &middot; K &middot; <a href="#L">L</a> &middot; <a href="#M">M</a> &middot; N &middot; O &middot; <a href="#P">P</a> &middot; Q &middot; <a href="#R">R</a> &middot; <a href="#S">S</a> &middot; <a href="#T">T</a> &middot; <a href="#U">U</a> &middot; <a href="#V">V</a> &middot; <a href="#W">W</a> &middot; <a href="General2.html#X">X</a> &middot; Y &middot; Z</div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="Symbols"></a>$#!</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#$build" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')" class=ISymbol>$build</a></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#$iq" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')" class=ISymbol>$iq</a></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#$msg" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')" class=ISymbol>$msg</a></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#$pres" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')" class=ISymbol>$pres</a></td></tr><tr><td class=IHeading><a name="A"></a>A</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.addConnectionPlugin" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')" class=ISymbol>addConnectionPlugin</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.addHandler" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')" class=ISymbol>addHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.addNamespace" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')" class=ISymbol>addNamespace</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.addTimedHandler" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')" class=ISymbol>addTimedHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.attach" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')" class=ISymbol>attach</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Status.ATTACHED" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')" class=ISymbol>ATTACHED</a>, <span class=IParent>Strophe.<wbr>Status</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Builder.attrs" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')" class=ISymbol>attrs</a>, <span class=IParent>Strophe.<wbr>Builder</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.AUTH" id=link12 onMouseOver="ShowTip(event, 'tt12', 'link12')" onMouseOut="HideTip('tt12')" class=ISymbol>AUTH</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Status.AUTHENTICATING" id=link13 onMouseOver="ShowTip(event, 'tt13', 'link13')" onMouseOut="HideTip('tt13')" class=ISymbol>AUTHENTICATING</a>, <span class=IParent>Strophe.<wbr>Status</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Status.AUTHFAIL" id=link14 onMouseOver="ShowTip(event, 'tt14', 'link14')" onMouseOut="HideTip('tt14')" class=ISymbol>AUTHFAIL</a>, <span class=IParent>Strophe.<wbr>Status</span></td></tr><tr><td class=IHeading><a name="B"></a>B</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.BIND" id=link15 onMouseOver="ShowTip(event, 'tt15', 'link15')" onMouseOut="HideTip('tt15')" class=ISymbol>BIND</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.BOSH" id=link16 onMouseOver="ShowTip(event, 'tt16', 'link16')" onMouseOut="HideTip('tt16')" class=ISymbol>BOSH</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Builder.Strophe.Builder" id=link17 onMouseOver="ShowTip(event, 'tt17', 'link17')" onMouseOut="HideTip('tt17')" class=ISymbol>Builder</a>, <span class=IParent>Strophe.<wbr>Builder.<wbr>Strophe</span></td></tr><tr><td class=IHeading><a name="C"></a>C</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Builder.c" id=link18 onMouseOver="ShowTip(event, 'tt18', 'link18')" onMouseOut="HideTip('tt18')" class=ISymbol>c</a>, <span class=IParent>Strophe.<wbr>Builder</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.CLIENT" id=link19 onMouseOver="ShowTip(event, 'tt19', 'link19')" onMouseOut="HideTip('tt19')" class=ISymbol>CLIENT</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Builder.cnode" id=link20 onMouseOver="ShowTip(event, 'tt20', 'link20')" onMouseOut="HideTip('tt20')" class=ISymbol>cnode</a>, <span class=IParent>Strophe.<wbr>Builder</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.connect" id=link21 onMouseOver="ShowTip(event, 'tt21', 'link21')" onMouseOut="HideTip('tt21')" class=ISymbol>connect</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNECTED" id=link22 onMouseOver="ShowTip(event, 'tt22', 'link22')" onMouseOut="HideTip('tt22')" class=ISymbol>CONNECTED</a>, <span class=IParent>Strophe.<wbr>Status</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNECTING" id=link23 onMouseOver="ShowTip(event, 'tt23', 'link23')" onMouseOut="HideTip('tt23')" class=ISymbol>CONNECTING</a>, <span class=IParent>Strophe.<wbr>Status</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.Strophe.Connection" id=link24 onMouseOver="ShowTip(event, 'tt24', 'link24')" onMouseOut="HideTip('tt24')" class=ISymbol>Connection</a>, <span class=IParent>Strophe.<wbr>Connection.<wbr>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection_Status_Constants" id=link25 onMouseOver="ShowTip(event, 'tt25', 'link25')" onMouseOut="HideTip('tt25')" class=ISymbol>Connection Status Constants</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Status.CONNFAIL" id=link26 onMouseOver="ShowTip(event, 'tt26', 'link26')" onMouseOut="HideTip('tt26')" class=ISymbol>CONNFAIL</a>, <span class=IParent>Strophe.<wbr>Status</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Constants"  class=ISymbol>Constants</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.copyElement" id=link27 onMouseOver="ShowTip(event, 'tt27', 'link27')" onMouseOut="HideTip('tt27')" class=ISymbol>copyElement</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=IHeading><a name="D"></a>D</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.debug" id=link28 onMouseOver="ShowTip(event, 'tt28', 'link28')" onMouseOut="HideTip('tt28')" class=ISymbol>debug</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.DEBUG" id=link29 onMouseOver="ShowTip(event, 'tt29', 'link29')" onMouseOut="HideTip('tt29')" class=ISymbol>DEBUG</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.deleteHandler" id=link30 onMouseOver="ShowTip(event, 'tt30', 'link30')" onMouseOut="HideTip('tt30')" class=ISymbol>deleteHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.deleteTimedHandler" id=link31 onMouseOver="ShowTip(event, 'tt31', 'link31')" onMouseOut="HideTip('tt31')" class=ISymbol>deleteTimedHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.DISCO_INFO" id=link32 onMouseOver="ShowTip(event, 'tt32', 'link32')" onMouseOut="HideTip('tt32')" class=ISymbol>DISCO_INFO</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.DISCO_ITEMS" id=link33 onMouseOver="ShowTip(event, 'tt33', 'link33')" onMouseOut="HideTip('tt33')" class=ISymbol>DISCO_ITEMS</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.disconnect" id=link34 onMouseOver="ShowTip(event, 'tt34', 'link34')" onMouseOut="HideTip('tt34')" class=ISymbol>disconnect</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Status.DISCONNECTED" id=link35 onMouseOver="ShowTip(event, 'tt35', 'link35')" onMouseOut="HideTip('tt35')" class=ISymbol>DISCONNECTED</a>, <span class=IParent>Strophe.<wbr>Status</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Status.DISCONNECTING" id=link36 onMouseOver="ShowTip(event, 'tt36', 'link36')" onMouseOut="HideTip('tt36')" class=ISymbol>DISCONNECTING</a>, <span class=IParent>Strophe.<wbr>Status</span></td></tr><tr><td class=IHeading><a name="E"></a>E</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.error" id=link37 onMouseOver="ShowTip(event, 'tt37', 'link37')" onMouseOut="HideTip('tt37')" class=ISymbol>error</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><span class=ISymbol>ERROR</span><div class=ISubIndex><a href="../files/core-js.html#Strophe.LogLevel.ERROR" id=link38 onMouseOver="ShowTip(event, 'tt38', 'link38')" onMouseOut="HideTip('tt38')" class=IParent>Strophe.<wbr>LogLevel</a><a href="../files/core-js.html#Strophe.Status.ERROR" id=link39 onMouseOver="ShowTip(event, 'tt39', 'link39')" onMouseOut="HideTip('tt39')" class=IParent>Strophe.<wbr>Status</a></div></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.escapeNode" id=link40 onMouseOver="ShowTip(event, 'tt40', 'link40')" onMouseOut="HideTip('tt40')" class=ISymbol>escapeNode</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=IHeading><a name="F"></a>F</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.fatal" id=link41 onMouseOver="ShowTip(event, 'tt41', 'link41')" onMouseOut="HideTip('tt41')" class=ISymbol>fatal</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.FATAL" id=link42 onMouseOver="ShowTip(event, 'tt42', 'link42')" onMouseOut="HideTip('tt42')" class=ISymbol>FATAL</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.flush" id=link43 onMouseOver="ShowTip(event, 'tt43', 'link43')" onMouseOut="HideTip('tt43')" class=ISymbol>flush</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.forEachChild" id=link44 onMouseOver="ShowTip(event, 'tt44', 'link44')" onMouseOut="HideTip('tt44')" class=ISymbol>forEachChild</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><span class=ISymbol>Functions</span><div class=ISubIndex><a href="../files/core-js.html#Functions"  class=IParent>Global</a><a href="../files/core-js.html#Strophe.Functions"  class=IParent>Strophe</a><a href="../files/core-js.html#Strophe.Builder.Functions"  class=IParent>Strophe.<wbr>Builder</a><a href="../files/core-js.html#Strophe.Connection.Functions"  class=IParent>Strophe.<wbr>Connection</a></div></td></tr><tr><td class=IHeading><a name="G"></a>G</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.getBareJidFromJid" id=link45 onMouseOver="ShowTip(event, 'tt45', 'link45')" onMouseOut="HideTip('tt45')" class=ISymbol>getBareJidFromJid</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.getDomainFromJid" id=link46 onMouseOver="ShowTip(event, 'tt46', 'link46')" onMouseOut="HideTip('tt46')" class=ISymbol>getDomainFromJid</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.getNodeFromJid" id=link47 onMouseOver="ShowTip(event, 'tt47', 'link47')" onMouseOut="HideTip('tt47')" class=ISymbol>getNodeFromJid</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.getResourceFromJid" id=link48 onMouseOver="ShowTip(event, 'tt48', 'link48')" onMouseOut="HideTip('tt48')" class=ISymbol>getResourceFromJid</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.getText" id=link49 onMouseOver="ShowTip(event, 'tt49', 'link49')" onMouseOut="HideTip('tt49')" class=ISymbol>getText</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.getUniqueId" id=link50 onMouseOver="ShowTip(event, 'tt50', 'link50')" onMouseOut="HideTip('tt50')" class=ISymbol>getUniqueId</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=IHeading><a name="H"></a>H</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.HTTPBIND" id=link51 onMouseOver="ShowTip(event, 'tt51', 'link51')" onMouseOut="HideTip('tt51')" class=ISymbol>HTTPBIND</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=IHeading><a name="I"></a>I</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.info" id=link52 onMouseOver="ShowTip(event, 'tt52', 'link52')" onMouseOut="HideTip('tt52')" class=ISymbol>info</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.INFO" id=link53 onMouseOver="ShowTip(event, 'tt53', 'link53')" onMouseOut="HideTip('tt53')" class=ISymbol>INFO</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.isTagEqual" id=link54 onMouseOver="ShowTip(event, 'tt54', 'link54')" onMouseOut="HideTip('tt54')" class=ISymbol>isTagEqual</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=IHeading><a name="L"></a>L</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.log" id=link55 onMouseOver="ShowTip(event, 'tt55', 'link55')" onMouseOut="HideTip('tt55')" class=ISymbol>log</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Log_Level_Constants" id=link56 onMouseOver="ShowTip(event, 'tt56', 'link56')" onMouseOut="HideTip('tt56')" class=ISymbol>Log Level Constants</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=IHeading><a name="M"></a>M</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.MUC" id=link57 onMouseOver="ShowTip(event, 'tt57', 'link57')" onMouseOut="HideTip('tt57')" class=ISymbol>MUC</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=IHeading><a name="P"></a>P</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.pause" id=link58 onMouseOver="ShowTip(event, 'tt58', 'link58')" onMouseOut="HideTip('tt58')" class=ISymbol>pause</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.PROFILE" id=link59 onMouseOver="ShowTip(event, 'tt59', 'link59')" onMouseOut="HideTip('tt59')" class=ISymbol>PROFILE</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=IHeading><a name="R"></a>R</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.rawInput" id=link60 onMouseOver="ShowTip(event, 'tt60', 'link60')" onMouseOut="HideTip('tt60')" class=ISymbol>rawInput</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.rawOutput" id=link61 onMouseOver="ShowTip(event, 'tt61', 'link61')" onMouseOut="HideTip('tt61')" class=ISymbol>rawOutput</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.reset" id=link62 onMouseOver="ShowTip(event, 'tt62', 'link62')" onMouseOut="HideTip('tt62')" class=ISymbol>reset</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.resume" id=link63 onMouseOver="ShowTip(event, 'tt63', 'link63')" onMouseOut="HideTip('tt63')" class=ISymbol>resume</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.ROSTER" id=link64 onMouseOver="ShowTip(event, 'tt64', 'link64')" onMouseOut="HideTip('tt64')" class=ISymbol>ROSTER</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=IHeading><a name="S"></a>S</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.SASL" id=link65 onMouseOver="ShowTip(event, 'tt65', 'link65')" onMouseOut="HideTip('tt65')" class=ISymbol>SASL</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.send" id=link66 onMouseOver="ShowTip(event, 'tt66', 'link66')" onMouseOut="HideTip('tt66')" class=ISymbol>send</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.sendIQ" id=link67 onMouseOver="ShowTip(event, 'tt67', 'link67')" onMouseOut="HideTip('tt67')" class=ISymbol>sendIQ</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.serialize" id=link68 onMouseOver="ShowTip(event, 'tt68', 'link68')" onMouseOut="HideTip('tt68')" class=ISymbol>serialize</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.SESSION" id=link69 onMouseOver="ShowTip(event, 'tt69', 'link69')" onMouseOut="HideTip('tt69')" class=ISymbol>SESSION</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.NS.STREAM" id=link70 onMouseOver="ShowTip(event, 'tt70', 'link70')" onMouseOut="HideTip('tt70')" class=ISymbol>STREAM</a>, <span class=IParent>Strophe.NS</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe" id=link71 onMouseOver="ShowTip(event, 'tt71', 'link71')" onMouseOut="HideTip('tt71')" class=ISymbol>Strophe</a></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Builder" id=link72 onMouseOver="ShowTip(event, 'tt72', 'link72')" onMouseOut="HideTip('tt72')" class=ISymbol>Strophe.<wbr>Builder</a></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection" id=link73 onMouseOver="ShowTip(event, 'tt73', 'link73')" onMouseOut="HideTip('tt73')" class=ISymbol>Strophe.<wbr>Connection</a></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#strophe.js" id=link74 onMouseOver="ShowTip(event, 'tt74', 'link74')" onMouseOut="HideTip('tt74')" class=ISymbol>strophe.js</a></td></tr><tr><td class=IHeading><a name="T"></a>T</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Builder.t" id=link75 onMouseOver="ShowTip(event, 'tt75', 'link75')" onMouseOut="HideTip('tt75')" class=ISymbol>t</a>, <span class=IParent>Strophe.<wbr>Builder</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Builder.toString" id=link76 onMouseOver="ShowTip(event, 'tt76', 'link76')" onMouseOut="HideTip('tt76')" class=ISymbol>toString</a>, <span class=IParent>Strophe.<wbr>Builder</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Builder.tree" id=link77 onMouseOver="ShowTip(event, 'tt77', 'link77')" onMouseOut="HideTip('tt77')" class=ISymbol>tree</a>, <span class=IParent>Strophe.<wbr>Builder</span></td></tr><tr><td class=IHeading><a name="U"></a>U</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.unescapeNode" id=link78 onMouseOver="ShowTip(event, 'tt78', 'link78')" onMouseOut="HideTip('tt78')" class=ISymbol>unescapeNode</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Builder.up" id=link79 onMouseOver="ShowTip(event, 'tt79', 'link79')" onMouseOut="HideTip('tt79')" class=ISymbol>up</a>, <span class=IParent>Strophe.<wbr>Builder</span></td></tr><tr><td class=IHeading><a name="V"></a>V</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.VERSION" id=link80 onMouseOver="ShowTip(event, 'tt80', 'link80')" onMouseOut="HideTip('tt80')" class=ISymbol>VERSION</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=IHeading><a name="W"></a>W</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.warn" id=link81 onMouseOver="ShowTip(event, 'tt81', 'link81')" onMouseOut="HideTip('tt81')" class=ISymbol>warn</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.LogLevel.WARN" id=link82 onMouseOver="ShowTip(event, 'tt82', 'link82')" onMouseOut="HideTip('tt82')" class=ISymbol>WARN</a>, <span class=IParent>Strophe.<wbr>LogLevel</span></td></tr></table>
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $build(</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder. </div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $iq(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder with an iq/ element as the root.</div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $msg(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder with a message/ element as the root.</div></div><div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $pres(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder with a presence/ element as the root.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt5"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addConnectionPlugin: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>ptype</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Extends the Strophe.Connection object with the given plugin.</div></div><div class=CToolTip id="tt6"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addHandler: function (</td><td class=PParameter nowrap>handler,</td></tr><tr><td></td><td class=PParameter nowrap>ns,</td></tr><tr><td></td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>type,</td></tr><tr><td></td><td class=PParameter nowrap>id,</td></tr><tr><td></td><td class=PParameter nowrap>from,</td></tr><tr><td></td><td class=PParameter nowrap>options</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a stanza handler for the connection.</div></div><div class=CToolTip id="tt7"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addNamespace: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>This function is used to extend the current namespaces in Strophe.NS. </div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addTimedHandler: function (</td><td class=PParameter nowrap>period,</td></tr><tr><td></td><td class=PParameter nowrap>handler</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a timed handler to the connection.</div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>attach: function (</td><td class=PParameter nowrap>jid,</td></tr><tr><td></td><td class=PParameter nowrap>sid,</td></tr><tr><td></td><td class=PParameter nowrap>rid,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>wait,</td></tr><tr><td></td><td class=PParameter nowrap>hold,</td></tr><tr><td></td><td class=PParameter nowrap>wind</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Attach to an already created and authenticated BOSH session.</div></div><div class=CToolTip id="tt10"><div class=CConstant>The connection has been attached</div></div><div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>attrs: function (</td><td class=PParameter nowrap>moreattrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add or modify attributes of the current element.</div></div><div class=CToolTip id="tt12"><div class=CConstant>Legacy authentication namespace.</div></div><div class=CToolTip id="tt13"><div class=CConstant>The connection is authenticating</div></div><div class=CToolTip id="tt14"><div class=CConstant>The authentication attempt failed</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt15"><div class=CConstant>XMPP Binding namespace from RFC 3920.</div></div><div class=CToolTip id="tt16"><div class=CConstant>BOSH namespace from XEP 206.</div></div><div class=CToolTip id="tt17"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>Strophe.Builder = function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder object.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt18"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>c: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a child to the current element and make it the new current element.</div></div><div class=CToolTip id="tt19"><div class=CConstant>Main XMPP client namespace.</div></div><div class=CToolTip id="tt20"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>cnode: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a child to the current element and make it the new current element.</div></div><div class=CToolTip id="tt21"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>connect: function (</td><td class=PParameter nowrap>jid,</td></tr><tr><td></td><td class=PParameter nowrap>pass,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>wait,</td></tr><tr><td></td><td class=PParameter nowrap>hold</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Starts the connection process.</div></div><div class=CToolTip id="tt22"><div class=CConstant>The connection has succeeded</div></div><div class=CToolTip id="tt23"><div class=CConstant>The connection is currently being made</div></div><div class=CToolTip id="tt24"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>Strophe.Connection = function (</td><td class=PParameter nowrap>service</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create and initialize a Strophe.Connection object.</div></div><div class=CToolTip id="tt25"><div class=CConstant>Connection status constants for use by the connection handler callback.</div></div><div class=CToolTip id="tt26"><div class=CConstant>The connection attempt failed</div></div><div class=CToolTip id="tt27"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>copyElement: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Copy an XML DOM element.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt28"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>debug: function(</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.DEBUG level.</div></div><div class=CToolTip id="tt29"><div class=CConstant>Debug output</div></div><div class=CToolTip id="tt30"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>deleteHandler: function (</td><td class=PParameter nowrap>handRef</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Delete a stanza handler for a connection.</div></div><div class=CToolTip id="tt31"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>deleteTimedHandler: function (</td><td class=PParameter nowrap>handRef</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Delete a timed handler for a connection.</div></div><div class=CToolTip id="tt32"><div class=CConstant>Service discovery info namespace from XEP 30.</div></div><div class=CToolTip id="tt33"><div class=CConstant>Service discovery items namespace from XEP 30.</div></div><div class=CToolTip id="tt34"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>disconnect: function (</td><td class=PParameter nowrap>reason</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Start the graceful disconnection process.</div></div><div class=CToolTip id="tt35"><div class=CConstant>The connection has been terminated</div></div><div class=CToolTip id="tt36"><div class=CConstant>The connection is currently being terminated</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt37"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>error: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.ERROR level.</div></div><div class=CToolTip id="tt38"><div class=CConstant>Errors</div></div><div class=CToolTip id="tt39"><div class=CConstant>An error has occurred</div></div><div class=CToolTip id="tt40"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>escapeNode: function (</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Escape the node part (also called local part) of a JID.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt41"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>fatal: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.FATAL level.</div></div><div class=CToolTip id="tt42"><div class=CConstant>Fatal errors</div></div><div class=CToolTip id="tt43"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>flush: function ()</td></tr></table></blockquote>Immediately send any pending outgoing data.</div></div><div class=CToolTip id="tt44"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>forEachChild: function (</td><td class=PParameter nowrap>elem,</td></tr><tr><td></td><td class=PParameter nowrap>elemName,</td></tr><tr><td></td><td class=PParameter nowrap>func</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Map a function over some or all child elements of a given element.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt45"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getBareJidFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the bare JID from a JID String.</div></div><div class=CToolTip id="tt46"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getDomainFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the domain portion of a JID String.</div></div><div class=CToolTip id="tt47"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getNodeFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the node portion of a JID String.</div></div><div class=CToolTip id="tt48"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getResourceFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the resource portion of a JID String.</div></div><div class=CToolTip id="tt49"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getText: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the concatenation of all text children of an element.</div></div><div class=CToolTip id="tt50"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getUniqueId: function (</td><td class=PParameter nowrap>suffix</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Generate a unique ID for use in iq/ elements.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt51"><div class=CConstant>HTTP BIND namespace from XEP 124.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt52"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>info: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.INFO level.</div></div><div class=CToolTip id="tt53"><div class=CConstant>Informational output</div></div><div class=CToolTip id="tt54"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>isTagEqual: function (</td><td class=PParameter nowrap>el,</td></tr><tr><td></td><td class=PParameter nowrap>name</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Compare an element&rsquo;s tag name with a string.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt55"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>log: function (</td><td class=PParameter nowrap>level,</td></tr><tr><td></td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable logging function.</div></div><div class=CToolTip id="tt56"><div class=CConstant>Logging level indicators.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt57"><div class=CConstant>Multi-User Chat namespace from XEP 45.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt58"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>pause: function ()</td></tr></table></blockquote>Pause the request manager.</div></div><div class=CToolTip id="tt59"><div class=CConstant>Profile namespace.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt60"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>rawInput: function (</td><td class=PParameter nowrap>data</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable function that receives raw data coming into the connection.</div></div><div class=CToolTip id="tt61"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>rawOutput: function (</td><td class=PParameter nowrap>data</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable function that receives raw data sent to the connection.</div></div><div class=CToolTip id="tt62"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>reset: function ()</td></tr></table></blockquote>Reset the connection.</div></div><div class=CToolTip id="tt63"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>resume: function ()</td></tr></table></blockquote>Resume the request manager.</div></div><div class=CToolTip id="tt64"><div class=CConstant>Roster operations namespace.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt65"><div class=CConstant>XMPP SASL namespace from RFC 3920.</div></div><div class=CToolTip id="tt66"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>send: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Send a stanza.</div></div><div class=CToolTip id="tt67"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>sendIQ: function(</td><td class=PParameter nowrap>elem,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>errback,</td></tr><tr><td></td><td class=PParameter nowrap>timeout</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Helper function to send IQ stanzas.</div></div><div class=CToolTip id="tt68"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>serialize: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Render a DOM element and all descendants to a String.</div></div><div class=CToolTip id="tt69"><div class=CConstant>XMPP Session namespace from RFC 3920.</div></div><div class=CToolTip id="tt70"><div class=CConstant>XMPP Streams namespace from RFC 3920.</div></div><div class=CToolTip id="tt71"><div class=CClass>An object container for all Strophe library functions.</div></div><div class=CToolTip id="tt72"><div class=CClass>XML DOM builder.</div></div><div class=CToolTip id="tt73"><div class=CClass>XMPP Connection manager.</div></div><div class=CToolTip id="tt74"><div class=CFile>A JavaScript library for XMPP BOSH.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt75"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>t: function (</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a child text element.</div></div><div class=CToolTip id="tt76"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>toString: function ()</td></tr></table></blockquote>Serialize the DOM tree to a String.</div></div><div class=CToolTip id="tt77"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>tree: function ()</td></tr></table></blockquote>Return the DOM tree.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt78"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>unescapeNode: function (</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Unescape a node part (also called local part) of a JID.</div></div><div class=CToolTip id="tt79"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>up: function ()</td></tr></table></blockquote>Make the current parent element the new current element.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt80"><div class=CConstant>The version of the Strophe library. </div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt81"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>warn: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.WARN level.</div></div><div class=CToolTip id="tt82"><div class=CConstant>Warnings</div></div><!--END_ND_TOOLTIPS-->
+
+</div><!--Index-->
+
+
+<div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
+
+
+<div id=Menu><div class=MEntry><div class=MFile><a href="../files/core-js.html">js</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Index</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MIndex id=MSelected>Everything</div></div><div class=MEntry><div class=MIndex><a href="Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex><a href="Constants.html">Constants</a></div></div><div class=MEntry><div class=MIndex><a href="Files.html">Files</a></div></div><div class=MEntry><div class=MIndex><a href="Functions.html">Functions</a></div></div></div></div></div><script type="text/javascript"><!--
+var searchPanel = new SearchPanel("searchPanel", "HTML", "../search");
+--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option  id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Constants">Constants</option><option value="Files">Files</option><option value="Functions">Functions</option></select></div></div><!--Menu-->
+
+
+<div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>
+
+
+<script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/index/General2.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/index/General2.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/index/General2.html	(revision 2397)
@@ -0,0 +1,33 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><title>Index</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/searchdata.js"></script></head><body class="IndexPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=IPageTitle>Index</div><div class=INavigationBar><a href="General.html#Symbols">$#!</a> &middot; 0-9 &middot; <a href="General.html#A">A</a> &middot; <a href="General.html#B">B</a> &middot; <a href="General.html#C">C</a> &middot; <a href="General.html#D">D</a> &middot; <a href="General.html#E">E</a> &middot; <a href="General.html#F">F</a> &middot; <a href="General.html#G">G</a> &middot; <a href="General.html#H">H</a> &middot; <a href="General.html#I">I</a> &middot; J &middot; K &middot; <a href="General.html#L">L</a> &middot; <a href="General.html#M">M</a> &middot; N &middot; O &middot; <a href="General.html#P">P</a> &middot; Q &middot; <a href="General.html#R">R</a> &middot; <a href="General.html#S">S</a> &middot; <a href="General.html#T">T</a> &middot; <a href="General.html#U">U</a> &middot; <a href="General.html#V">V</a> &middot; <a href="General.html#W">W</a> &middot; <a href="#X">X</a> &middot; Y &middot; Z</div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="X"></a>X</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.xmlElement" id=link83 onMouseOver="ShowTip(event, 'tt83', 'link83')" onMouseOut="HideTip('tt83')" class=ISymbol>xmlElement</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.xmlescape" id=link84 onMouseOver="ShowTip(event, 'tt84', 'link84')" onMouseOut="HideTip('tt84')" class=ISymbol>xmlescape</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.xmlInput" id=link85 onMouseOver="ShowTip(event, 'tt85', 'link85')" onMouseOut="HideTip('tt85')" class=ISymbol>xmlInput</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.xmlOutput" id=link86 onMouseOver="ShowTip(event, 'tt86', 'link86')" onMouseOut="HideTip('tt86')" class=ISymbol>xmlOutput</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.xmlTextNode" id=link87 onMouseOver="ShowTip(event, 'tt87', 'link87')" onMouseOut="HideTip('tt87')" class=ISymbol>xmlTextNode</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.XMPP_Namespace_Constants" id=link88 onMouseOver="ShowTip(event, 'tt88', 'link88')" onMouseOut="HideTip('tt88')" class=ISymbol>XMPP Namespace Constants</a>, <span class=IParent>Strophe</span></td></tr></table>
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt83"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlElement: function (</td><td class=PParameter nowrap>name</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create an XML DOM element.</div></div><div class=CToolTip id="tt84"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlescape: function(</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Excapes invalid xml characters.</div></div><div class=CToolTip id="tt85"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlInput: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable function that receives XML data coming into the connection.</div></div><div class=CToolTip id="tt86"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlOutput: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable function that receives XML data sent to the connection.</div></div><div class=CToolTip id="tt87"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlTextNode: function (</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Creates an XML DOM text node.</div></div><div class=CToolTip id="tt88"><div class=CConstant>Common namespace constants from the XMPP RFCs and XEPs.</div></div><!--END_ND_TOOLTIPS-->
+
+</div><!--Index-->
+
+
+<div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
+
+
+<div id=Menu><div class=MEntry><div class=MFile><a href="../files/core-js.html">js</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Index</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MIndex id=MSelected>Everything</div></div><div class=MEntry><div class=MIndex><a href="Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex><a href="Constants.html">Constants</a></div></div><div class=MEntry><div class=MIndex><a href="Files.html">Files</a></div></div><div class=MEntry><div class=MIndex><a href="Functions.html">Functions</a></div></div></div></div></div><script type="text/javascript"><!--
+var searchPanel = new SearchPanel("searchPanel", "HTML", "../search");
+--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option  id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Constants">Constants</option><option value="Files">Files</option><option value="Functions">Functions</option></select></div></div><!--Menu-->
+
+
+<div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>
+
+
+<script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/index/Files.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/index/Files.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/index/Files.html	(revision 2397)
@@ -0,0 +1,33 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><title>File Index</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/searchdata.js"></script></head><body class="IndexPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=IPageTitle>File Index</div><div class=INavigationBar>$#! &middot; 0-9 &middot; A &middot; B &middot; C &middot; D &middot; E &middot; F &middot; G &middot; H &middot; I &middot; J &middot; K &middot; L &middot; M &middot; N &middot; O &middot; P &middot; Q &middot; R &middot; <a href="#S">S</a> &middot; T &middot; U &middot; V &middot; W &middot; X &middot; Y &middot; Z</div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="S"></a>S</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#strophe.js" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')" class=ISymbol>strophe.js</a></td></tr></table>
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt1"><div class=CFile>A JavaScript library for XMPP BOSH.</div></div><!--END_ND_TOOLTIPS-->
+
+</div><!--Index-->
+
+
+<div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
+
+
+<div id=Menu><div class=MEntry><div class=MFile><a href="../files/core-js.html">js</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Index</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MIndex><a href="General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex><a href="Constants.html">Constants</a></div></div><div class=MEntry><div class=MIndex id=MSelected>Files</div></div><div class=MEntry><div class=MIndex><a href="Functions.html">Functions</a></div></div></div></div></div><script type="text/javascript"><!--
+var searchPanel = new SearchPanel("searchPanel", "HTML", "../search");
+--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option  id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Constants">Constants</option><option value="Files">Files</option><option value="Functions">Functions</option></select></div></div><!--Menu-->
+
+
+<div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>
+
+
+<script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/index/Functions.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/index/Functions.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/index/Functions.html	(revision 2397)
@@ -0,0 +1,97 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+
+<html><head><title>Function Index</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/searchdata.js"></script></head><body class="IndexPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
+if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
+
+<!--  Generated by Natural Docs, version 1.4 -->
+<!--  http://www.naturaldocs.org  -->
+
+<!-- saved from url=(0026)http://www.naturaldocs.org -->
+
+
+
+
+<div id=Index><div class=IPageTitle>Function Index</div><div class=INavigationBar><a href="#Symbols">$#!</a> &middot; 0-9 &middot; <a href="#A">A</a> &middot; <a href="#B">B</a> &middot; <a href="#C">C</a> &middot; <a href="#D">D</a> &middot; <a href="#E">E</a> &middot; <a href="#F">F</a> &middot; <a href="#G">G</a> &middot; H &middot; <a href="#I">I</a> &middot; J &middot; K &middot; <a href="#L">L</a> &middot; M &middot; N &middot; O &middot; <a href="#P">P</a> &middot; Q &middot; <a href="#R">R</a> &middot; <a href="#S">S</a> &middot; <a href="#T">T</a> &middot; <a href="#U">U</a> &middot; V &middot; <a href="#W">W</a> &middot; <a href="#X">X</a> &middot; Y &middot; Z</div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="Symbols"></a>$#!</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#$build" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')" class=ISymbol>$build</a></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#$iq" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')" class=ISymbol>$iq</a></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#$msg" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')" class=ISymbol>$msg</a></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#$pres" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')" class=ISymbol>$pres</a></td></tr><tr><td class=IHeading><a name="A"></a>A</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.addConnectionPlugin" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')" class=ISymbol>addConnectionPlugin</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.addHandler" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')" class=ISymbol>addHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.addNamespace" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')" class=ISymbol>addNamespace</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.addTimedHandler" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')" class=ISymbol>addTimedHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.attach" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')" class=ISymbol>attach</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Builder.attrs" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')" class=ISymbol>attrs</a>, <span class=IParent>Strophe.<wbr>Builder</span></td></tr><tr><td class=IHeading><a name="B"></a>B</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Builder.Strophe.Builder" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')" class=ISymbol>Builder</a>, <span class=IParent>Strophe.<wbr>Builder.<wbr>Strophe</span></td></tr><tr><td class=IHeading><a name="C"></a>C</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Builder.c" id=link12 onMouseOver="ShowTip(event, 'tt12', 'link12')" onMouseOut="HideTip('tt12')" class=ISymbol>c</a>, <span class=IParent>Strophe.<wbr>Builder</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Builder.cnode" id=link13 onMouseOver="ShowTip(event, 'tt13', 'link13')" onMouseOut="HideTip('tt13')" class=ISymbol>cnode</a>, <span class=IParent>Strophe.<wbr>Builder</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.connect" id=link14 onMouseOver="ShowTip(event, 'tt14', 'link14')" onMouseOut="HideTip('tt14')" class=ISymbol>connect</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.Strophe.Connection" id=link15 onMouseOver="ShowTip(event, 'tt15', 'link15')" onMouseOut="HideTip('tt15')" class=ISymbol>Connection</a>, <span class=IParent>Strophe.<wbr>Connection.<wbr>Strophe</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.copyElement" id=link16 onMouseOver="ShowTip(event, 'tt16', 'link16')" onMouseOut="HideTip('tt16')" class=ISymbol>copyElement</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=IHeading><a name="D"></a>D</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.debug" id=link17 onMouseOver="ShowTip(event, 'tt17', 'link17')" onMouseOut="HideTip('tt17')" class=ISymbol>debug</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.deleteHandler" id=link18 onMouseOver="ShowTip(event, 'tt18', 'link18')" onMouseOut="HideTip('tt18')" class=ISymbol>deleteHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.deleteTimedHandler" id=link19 onMouseOver="ShowTip(event, 'tt19', 'link19')" onMouseOut="HideTip('tt19')" class=ISymbol>deleteTimedHandler</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.disconnect" id=link20 onMouseOver="ShowTip(event, 'tt20', 'link20')" onMouseOut="HideTip('tt20')" class=ISymbol>disconnect</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=IHeading><a name="E"></a>E</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.error" id=link21 onMouseOver="ShowTip(event, 'tt21', 'link21')" onMouseOut="HideTip('tt21')" class=ISymbol>error</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.escapeNode" id=link22 onMouseOver="ShowTip(event, 'tt22', 'link22')" onMouseOut="HideTip('tt22')" class=ISymbol>escapeNode</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=IHeading><a name="F"></a>F</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.fatal" id=link23 onMouseOver="ShowTip(event, 'tt23', 'link23')" onMouseOut="HideTip('tt23')" class=ISymbol>fatal</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.flush" id=link24 onMouseOver="ShowTip(event, 'tt24', 'link24')" onMouseOut="HideTip('tt24')" class=ISymbol>flush</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.forEachChild" id=link25 onMouseOver="ShowTip(event, 'tt25', 'link25')" onMouseOut="HideTip('tt25')" class=ISymbol>forEachChild</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=IHeading><a name="G"></a>G</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.getBareJidFromJid" id=link26 onMouseOver="ShowTip(event, 'tt26', 'link26')" onMouseOut="HideTip('tt26')" class=ISymbol>getBareJidFromJid</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.getDomainFromJid" id=link27 onMouseOver="ShowTip(event, 'tt27', 'link27')" onMouseOut="HideTip('tt27')" class=ISymbol>getDomainFromJid</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.getNodeFromJid" id=link28 onMouseOver="ShowTip(event, 'tt28', 'link28')" onMouseOut="HideTip('tt28')" class=ISymbol>getNodeFromJid</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.getResourceFromJid" id=link29 onMouseOver="ShowTip(event, 'tt29', 'link29')" onMouseOut="HideTip('tt29')" class=ISymbol>getResourceFromJid</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.getText" id=link30 onMouseOver="ShowTip(event, 'tt30', 'link30')" onMouseOut="HideTip('tt30')" class=ISymbol>getText</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.getUniqueId" id=link31 onMouseOver="ShowTip(event, 'tt31', 'link31')" onMouseOut="HideTip('tt31')" class=ISymbol>getUniqueId</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=IHeading><a name="I"></a>I</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.info" id=link32 onMouseOver="ShowTip(event, 'tt32', 'link32')" onMouseOut="HideTip('tt32')" class=ISymbol>info</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.isTagEqual" id=link33 onMouseOver="ShowTip(event, 'tt33', 'link33')" onMouseOut="HideTip('tt33')" class=ISymbol>isTagEqual</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=IHeading><a name="L"></a>L</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.log" id=link34 onMouseOver="ShowTip(event, 'tt34', 'link34')" onMouseOut="HideTip('tt34')" class=ISymbol>log</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=IHeading><a name="P"></a>P</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.pause" id=link35 onMouseOver="ShowTip(event, 'tt35', 'link35')" onMouseOut="HideTip('tt35')" class=ISymbol>pause</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=IHeading><a name="R"></a>R</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.rawInput" id=link36 onMouseOver="ShowTip(event, 'tt36', 'link36')" onMouseOut="HideTip('tt36')" class=ISymbol>rawInput</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.rawOutput" id=link37 onMouseOver="ShowTip(event, 'tt37', 'link37')" onMouseOut="HideTip('tt37')" class=ISymbol>rawOutput</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.reset" id=link38 onMouseOver="ShowTip(event, 'tt38', 'link38')" onMouseOut="HideTip('tt38')" class=ISymbol>reset</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.resume" id=link39 onMouseOver="ShowTip(event, 'tt39', 'link39')" onMouseOut="HideTip('tt39')" class=ISymbol>resume</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=IHeading><a name="S"></a>S</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.send" id=link40 onMouseOver="ShowTip(event, 'tt40', 'link40')" onMouseOut="HideTip('tt40')" class=ISymbol>send</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.sendIQ" id=link41 onMouseOver="ShowTip(event, 'tt41', 'link41')" onMouseOut="HideTip('tt41')" class=ISymbol>sendIQ</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.serialize" id=link42 onMouseOver="ShowTip(event, 'tt42', 'link42')" onMouseOut="HideTip('tt42')" class=ISymbol>serialize</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=IHeading><a name="T"></a>T</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Builder.t" id=link43 onMouseOver="ShowTip(event, 'tt43', 'link43')" onMouseOut="HideTip('tt43')" class=ISymbol>t</a>, <span class=IParent>Strophe.<wbr>Builder</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Builder.toString" id=link44 onMouseOver="ShowTip(event, 'tt44', 'link44')" onMouseOut="HideTip('tt44')" class=ISymbol>toString</a>, <span class=IParent>Strophe.<wbr>Builder</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Builder.tree" id=link45 onMouseOver="ShowTip(event, 'tt45', 'link45')" onMouseOut="HideTip('tt45')" class=ISymbol>tree</a>, <span class=IParent>Strophe.<wbr>Builder</span></td></tr><tr><td class=IHeading><a name="U"></a>U</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.unescapeNode" id=link46 onMouseOver="ShowTip(event, 'tt46', 'link46')" onMouseOut="HideTip('tt46')" class=ISymbol>unescapeNode</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Builder.up" id=link47 onMouseOver="ShowTip(event, 'tt47', 'link47')" onMouseOut="HideTip('tt47')" class=ISymbol>up</a>, <span class=IParent>Strophe.<wbr>Builder</span></td></tr><tr><td class=IHeading><a name="W"></a>W</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.warn" id=link48 onMouseOver="ShowTip(event, 'tt48', 'link48')" onMouseOut="HideTip('tt48')" class=ISymbol>warn</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=IHeading><a name="X"></a>X</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.xmlElement" id=link49 onMouseOver="ShowTip(event, 'tt49', 'link49')" onMouseOut="HideTip('tt49')" class=ISymbol>xmlElement</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.xmlescape" id=link50 onMouseOver="ShowTip(event, 'tt50', 'link50')" onMouseOut="HideTip('tt50')" class=ISymbol>xmlescape</a>, <span class=IParent>Strophe</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.xmlInput" id=link51 onMouseOver="ShowTip(event, 'tt51', 'link51')" onMouseOut="HideTip('tt51')" class=ISymbol>xmlInput</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.Connection.xmlOutput" id=link52 onMouseOver="ShowTip(event, 'tt52', 'link52')" onMouseOut="HideTip('tt52')" class=ISymbol>xmlOutput</a>, <span class=IParent>Strophe.<wbr>Connection</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/core-js.html#Strophe.xmlTextNode" id=link53 onMouseOver="ShowTip(event, 'tt53', 'link53')" onMouseOut="HideTip('tt53')" class=ISymbol>xmlTextNode</a>, <span class=IParent>Strophe</span></td></tr></table>
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $build(</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder. </div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $iq(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder with an iq/ element as the root.</div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $msg(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder with a message/ element as the root.</div></div><div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function $pres(</td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder with a presence/ element as the root.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt5"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addConnectionPlugin: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>ptype</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Extends the Strophe.Connection object with the given plugin.</div></div><div class=CToolTip id="tt6"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addHandler: function (</td><td class=PParameter nowrap>handler,</td></tr><tr><td></td><td class=PParameter nowrap>ns,</td></tr><tr><td></td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>type,</td></tr><tr><td></td><td class=PParameter nowrap>id,</td></tr><tr><td></td><td class=PParameter nowrap>from,</td></tr><tr><td></td><td class=PParameter nowrap>options</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a stanza handler for the connection.</div></div><div class=CToolTip id="tt7"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addNamespace: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>This function is used to extend the current namespaces in Strophe.NS. </div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>addTimedHandler: function (</td><td class=PParameter nowrap>period,</td></tr><tr><td></td><td class=PParameter nowrap>handler</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a timed handler to the connection.</div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>attach: function (</td><td class=PParameter nowrap>jid,</td></tr><tr><td></td><td class=PParameter nowrap>sid,</td></tr><tr><td></td><td class=PParameter nowrap>rid,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>wait,</td></tr><tr><td></td><td class=PParameter nowrap>hold,</td></tr><tr><td></td><td class=PParameter nowrap>wind</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Attach to an already created and authenticated BOSH session.</div></div><div class=CToolTip id="tt10"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>attrs: function (</td><td class=PParameter nowrap>moreattrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add or modify attributes of the current element.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>Strophe.Builder = function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create a Strophe.Builder object.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt12"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>c: function (</td><td class=PParameter nowrap>name,</td></tr><tr><td></td><td class=PParameter nowrap>attrs</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a child to the current element and make it the new current element.</div></div><div class=CToolTip id="tt13"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>cnode: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a child to the current element and make it the new current element.</div></div><div class=CToolTip id="tt14"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>connect: function (</td><td class=PParameter nowrap>jid,</td></tr><tr><td></td><td class=PParameter nowrap>pass,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>wait,</td></tr><tr><td></td><td class=PParameter nowrap>hold</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Starts the connection process.</div></div><div class=CToolTip id="tt15"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>Strophe.Connection = function (</td><td class=PParameter nowrap>service</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create and initialize a Strophe.Connection object.</div></div><div class=CToolTip id="tt16"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>copyElement: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Copy an XML DOM element.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt17"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>debug: function(</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.DEBUG level.</div></div><div class=CToolTip id="tt18"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>deleteHandler: function (</td><td class=PParameter nowrap>handRef</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Delete a stanza handler for a connection.</div></div><div class=CToolTip id="tt19"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>deleteTimedHandler: function (</td><td class=PParameter nowrap>handRef</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Delete a timed handler for a connection.</div></div><div class=CToolTip id="tt20"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>disconnect: function (</td><td class=PParameter nowrap>reason</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Start the graceful disconnection process.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt21"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>error: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.ERROR level.</div></div><div class=CToolTip id="tt22"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>escapeNode: function (</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Escape the node part (also called local part) of a JID.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt23"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>fatal: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.FATAL level.</div></div><div class=CToolTip id="tt24"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>flush: function ()</td></tr></table></blockquote>Immediately send any pending outgoing data.</div></div><div class=CToolTip id="tt25"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>forEachChild: function (</td><td class=PParameter nowrap>elem,</td></tr><tr><td></td><td class=PParameter nowrap>elemName,</td></tr><tr><td></td><td class=PParameter nowrap>func</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Map a function over some or all child elements of a given element.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt26"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getBareJidFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the bare JID from a JID String.</div></div><div class=CToolTip id="tt27"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getDomainFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the domain portion of a JID String.</div></div><div class=CToolTip id="tt28"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getNodeFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the node portion of a JID String.</div></div><div class=CToolTip id="tt29"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getResourceFromJid: function (</td><td class=PParameter nowrap>jid</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the resource portion of a JID String.</div></div><div class=CToolTip id="tt30"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getText: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Get the concatenation of all text children of an element.</div></div><div class=CToolTip id="tt31"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>getUniqueId: function (</td><td class=PParameter nowrap>suffix</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Generate a unique ID for use in iq/ elements.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt32"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>info: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.INFO level.</div></div><div class=CToolTip id="tt33"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>isTagEqual: function (</td><td class=PParameter nowrap>el,</td></tr><tr><td></td><td class=PParameter nowrap>name</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Compare an element&rsquo;s tag name with a string.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt34"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>log: function (</td><td class=PParameter nowrap>level,</td></tr><tr><td></td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable logging function.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt35"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>pause: function ()</td></tr></table></blockquote>Pause the request manager.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt36"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>rawInput: function (</td><td class=PParameter nowrap>data</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable function that receives raw data coming into the connection.</div></div><div class=CToolTip id="tt37"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>rawOutput: function (</td><td class=PParameter nowrap>data</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable function that receives raw data sent to the connection.</div></div><div class=CToolTip id="tt38"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>reset: function ()</td></tr></table></blockquote>Reset the connection.</div></div><div class=CToolTip id="tt39"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>resume: function ()</td></tr></table></blockquote>Resume the request manager.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt40"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>send: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Send a stanza.</div></div><div class=CToolTip id="tt41"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>sendIQ: function(</td><td class=PParameter nowrap>elem,</td></tr><tr><td></td><td class=PParameter nowrap>callback,</td></tr><tr><td></td><td class=PParameter nowrap>errback,</td></tr><tr><td></td><td class=PParameter nowrap>timeout</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Helper function to send IQ stanzas.</div></div><div class=CToolTip id="tt42"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>serialize: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Render a DOM element and all descendants to a String.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt43"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>t: function (</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Add a child text element.</div></div><div class=CToolTip id="tt44"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>toString: function ()</td></tr></table></blockquote>Serialize the DOM tree to a String.</div></div><div class=CToolTip id="tt45"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>tree: function ()</td></tr></table></blockquote>Return the DOM tree.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt46"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>unescapeNode: function (</td><td class=PParameter nowrap>node</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Unescape a node part (also called local part) of a JID.</div></div><div class=CToolTip id="tt47"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>up: function ()</td></tr></table></blockquote>Make the current parent element the new current element.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt48"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>warn: function (</td><td class=PParameter nowrap>msg</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Log a message at the Strophe.LogLevel.WARN level.</div></div><!--END_ND_TOOLTIPS-->
+
+
+<!--START_ND_TOOLTIPS-->
+<div class=CToolTip id="tt49"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlElement: function (</td><td class=PParameter nowrap>name</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Create an XML DOM element.</div></div><div class=CToolTip id="tt50"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlescape: function(</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Excapes invalid xml characters.</div></div><div class=CToolTip id="tt51"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlInput: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable function that receives XML data coming into the connection.</div></div><div class=CToolTip id="tt52"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlOutput: function (</td><td class=PParameter nowrap>elem</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>User overrideable function that receives XML data sent to the connection.</div></div><div class=CToolTip id="tt53"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>xmlTextNode: function (</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Creates an XML DOM text node.</div></div><!--END_ND_TOOLTIPS-->
+
+</div><!--Index-->
+
+
+<div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
+
+
+<div id=Menu><div class=MEntry><div class=MFile><a href="../files/core-js.html">js</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Index</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MIndex><a href="General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex><a href="Constants.html">Constants</a></div></div><div class=MEntry><div class=MIndex><a href="Files.html">Files</a></div></div><div class=MEntry><div class=MIndex id=MSelected>Functions</div></div></div></div></div><script type="text/javascript"><!--
+var searchPanel = new SearchPanel("searchPanel", "HTML", "../search");
+--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option  id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Constants">Constants</option><option value="Files">Files</option><option value="Functions">Functions</option></select></div></div><!--Menu-->
+
+
+<div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>
+
+
+<script language=JavaScript><!--
+if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/index.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/index.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/doc/index.html	(revision 2397)
@@ -0,0 +1,1 @@
+<html><head><meta http-equiv="Refresh" CONTENT="0; URL=files/core-js.html"></head></html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/README.txt
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/README.txt	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/README.txt	(revision 2397)
@@ -0,0 +1,15 @@
+Strophe.js is a JavaScript library for speaking XMPP via BOSH (XEP 124
+and 206).  It is licensed under the MIT license, except for the files
+base64.js and md5.js, which are licensed as public domain and
+BSD (see these files for details).
+
+It has been tested on Firefox 1.5, 2.x, and 3.x, IE 6, 7, and 8, Safari, Mobile
+Safari, Chrome, and it should also work on the mobile Opera browser as
+well as the desktop Opera browser.
+
+The homepage for Strophe is http://code.stanziq.com/strophe.
+
+The book Professional XMPP Programming with JavaScript and jQuery is
+also available, which covers Strophe in detail in the context of web
+applications. You can find more information at
+http://professionalxmpp.com.
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/crossdomain.xml
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/crossdomain.xml	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/crossdomain.xml	(revision 2397)
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
+<cross-domain-policy>
+  <!-- 
+       Cross domain policy file for allow everything.  If you need more
+       information on these, please see:
+       http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html
+  -->
+  <site-control permitted-cross-domain-policies="all"/>
+  <allow-access-from domain="*" />
+  <allow-http-request-headers-from domain="*" headers="*" />
+</cross-domain-policy>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/basic.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/basic.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/basic.html	(revision 2397)
@@ -0,0 +1,25 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+  <title>Strophe.js Basic Example</title>
+  <script type='text/javascript'
+	  src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js'></script>
+  <script type='text/javascript'
+	  src='../strophe.js'></script>
+  <script type='text/javascript'
+	  src='basic.js'></script>
+</head>
+<body>
+  <div id='login' style='text-align: center'>
+    <form name='cred'>
+      <label for='jid'>JID:</label>
+      <input type='text' id='jid' />
+      <label for='pass'>Password:</label>
+      <input type='password' id='pass' />
+      <input type='button' id='connect' value='connect' />
+    </form>
+  </div>
+  <hr />
+  <div id='log'></div>
+</body>
+</html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/crossdomain.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/crossdomain.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/crossdomain.html	(revision 2397)
@@ -0,0 +1,32 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+  <title>Strophe.js Basic Cross-Domain Example</title>
+
+  <script type='text/javascript'
+	  src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js'></script>
+  <script type='text/javascript'
+          src='http://flxhr.flensed.com/code/build/flXHR.js'></script>
+
+  <script type='text/javascript'
+	  src='../strophe.js'></script>
+  <script type='text/javascript'
+          src='../plugins/strophe.flxhr.js'></script>
+
+  <script type='text/javascript'
+	  src='crossdomain.js'></script>
+</head>
+<body>
+  <div id='login' style='text-align: center'>
+    <form name='cred'>
+      <label for='jid'>JID:</label>
+      <input type='text' id='jid' />
+      <label for='pass'>Password:</label>
+      <input type='password' id='pass' />
+      <input type='button' id='connect' value='connect' />
+    </form>
+  </div>
+  <hr />
+  <div id='log'></div>
+</body>
+</html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/echobot.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/echobot.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/echobot.html	(revision 2397)
@@ -0,0 +1,25 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+  <title>Strophe.js Echobot Example</title>
+  <script type='text/javascript'
+	  src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js'></script>
+  <script type='text/javascript'
+	  src='../strophe.js'></script>
+  <script type='text/javascript'
+	  src='echobot.js'></script>
+</head>
+<body>
+  <div id='login' style='text-align: center'>
+    <form name='cred'>
+      <label for='jid'>JID:</label>
+      <input type='text' id='jid' />
+      <label for='pass'>Password:</label>
+      <input type='password' id='pass' />
+      <input type='button' id='connect' value='connect' />
+    </form>
+  </div>
+  <hr />
+  <div id='log'></div>
+</body>
+</html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/prebind.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/prebind.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/prebind.html	(revision 2397)
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+  <!--
+     http-pre-bind example
+
+     This example works with mod_http_pre_bind found here:
+     http://github.com/thepug/Mod-Http-Pre-Bind
+     
+     It expects both /xmpp-httpbind to be proxied and /http-pre-bind
+     
+     If you want to test this out without setting it up, you can use Collecta's
+     at http://www.collecta.com/xmpp-httpbind and 
+     http://www.collecta.com/http-pre-bind
+     Use a JID of 'guest.collecta.com' to test.
+    -->
+
+  <head>
+    <title>Strophe.js Pre-Bind Example</title>
+    <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'></script>
+    <script src='../strophe.js'></script>
+    <script src='prebind.js'></script>
+  </head>
+
+  <body>
+    <div id='login' style='text-align: center'>
+      <form name='cred'>
+        <label for='jid'>JID:</label>
+        <input type='text' id='jid'>
+        <label for='pass'>Password:</label>
+        <input type='password' id='pass'>
+        <input type='button' id='connect' value='connect'>
+      </form>
+    </div>
+
+    <hr>
+
+    <div id='log'></div>
+  </body>
+</html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/dojo-ping.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/dojo-ping.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/dojo-ping.html	(revision 2397)
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Strophe.js Dojo Ping Example</title>
+    <script src="http://ajax.googleapis.com/ajax/libs/dojo/1.4/dojo/dojo.xd.js"></script>
+    <script src='../strophe.js'></script>
+    <script src='dojo-ping.js'></script>
+  </head>
+
+  <body>
+    <div id='login' style='text-align: center'>
+      <form>
+        <div>
+          <label for='jid'>JID:</label>
+          <input type='text' id='jid'>
+          <label for='pass'>Password:</label>
+          <input type='password' id='pass'>
+          <input type='button' id='connect' value='connect'>
+        </div>
+      </form>
+    </div>
+
+    <hr>
+
+    <div id='log'></div>
+  </body>
+</html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/basic.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/basic.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/basic.js	(revision 2397)
@@ -0,0 +1,55 @@
+var BOSH_SERVICE = '/xmpp-httpbind'
+var connection = null;
+
+function log(msg) 
+{
+    $('#log').append('<div></div>').append(document.createTextNode(msg));
+}
+
+function rawInput(data)
+{
+    log('RECV: ' + data);
+}
+
+function rawOutput(data)
+{
+    log('SENT: ' + data);
+}
+
+function onConnect(status)
+{
+    if (status == Strophe.Status.CONNECTING) {
+	log('Strophe is connecting.');
+    } else if (status == Strophe.Status.CONNFAIL) {
+	log('Strophe failed to connect.');
+	$('#connect').get(0).value = 'connect';
+    } else if (status == Strophe.Status.DISCONNECTING) {
+	log('Strophe is disconnecting.');
+    } else if (status == Strophe.Status.DISCONNECTED) {
+	log('Strophe is disconnected.');
+	$('#connect').get(0).value = 'connect';
+    } else if (status == Strophe.Status.CONNECTED) {
+	log('Strophe is connected.');
+	connection.disconnect();
+    }
+}
+
+$(document).ready(function () {
+    connection = new Strophe.Connection(BOSH_SERVICE);
+    connection.rawInput = rawInput;
+    connection.rawOutput = rawOutput;
+
+    $('#connect').bind('click', function () {
+	var button = $('#connect').get(0);
+	if (button.value == 'connect') {
+	    button.value = 'disconnect';
+
+	    connection.connect($('#jid').get(0).value,
+			       $('#pass').get(0).value,
+			       onConnect);
+	} else {
+	    button.value = 'connect';
+	    connection.disconnect();
+	}
+    });
+});
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/crossdomain.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/crossdomain.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/crossdomain.js	(revision 2397)
@@ -0,0 +1,62 @@
+// The BOSH_SERVICE here doesn't need to be on the same domain/port, but
+// it must have a /crossdomain.xml policy file that allows access from
+// wherever crossdomain.html lives.
+//
+// Most BOSH connection managers can serve static html files, so you should
+// be able to configure them to serve a /crossdomain.xml file to allow
+// access.
+var BOSH_SERVICE = 'http://localhost:5281/xmpp-httpbind'
+var connection = null;
+
+function log(msg) 
+{
+    $('#log').append('<div></div>').append(document.createTextNode(msg));
+}
+
+function rawInput(data)
+{
+    log('RECV: ' + data);
+}
+
+function rawOutput(data)
+{
+    log('SENT: ' + data);
+}
+
+function onConnect(status)
+{
+    if (status == Strophe.Status.CONNECTING) {
+	log('Strophe is connecting.');
+    } else if (status == Strophe.Status.CONNFAIL) {
+	log('Strophe failed to connect.');
+	$('#connect').get(0).value = 'connect';
+    } else if (status == Strophe.Status.DISCONNECTING) {
+	log('Strophe is disconnecting.');
+    } else if (status == Strophe.Status.DISCONNECTED) {
+	log('Strophe is disconnected.');
+	$('#connect').get(0).value = 'connect';
+    } else if (status == Strophe.Status.CONNECTED) {
+	log('Strophe is connected.');
+	connection.disconnect();
+    }
+}
+
+$(document).ready(function () {
+    connection = new Strophe.Connection(BOSH_SERVICE);
+    connection.rawInput = rawInput;
+    connection.rawOutput = rawOutput;
+
+    $('#connect').bind('click', function () {
+	var button = $('#connect').get(0);
+	if (button.value == 'connect') {
+	    button.value = 'disconnect';
+
+	    connection.connect($('#jid').get(0).value,
+			       $('#pass').get(0).value,
+			       onConnect);
+	} else {
+	    button.value = 'connect';
+	    connection.disconnect();
+	}
+    });
+});
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/echobot.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/echobot.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/echobot.js	(revision 2397)
@@ -0,0 +1,79 @@
+var BOSH_SERVICE = '/xmpp-httpbind';
+var connection = null;
+
+function log(msg) 
+{
+    $('#log').append('<div></div>').append(document.createTextNode(msg));
+}
+
+function onConnect(status)
+{
+    if (status == Strophe.Status.CONNECTING) {
+	log('Strophe is connecting.');
+    } else if (status == Strophe.Status.CONNFAIL) {
+	log('Strophe failed to connect.');
+	$('#connect').get(0).value = 'connect';
+    } else if (status == Strophe.Status.DISCONNECTING) {
+	log('Strophe is disconnecting.');
+    } else if (status == Strophe.Status.DISCONNECTED) {
+	log('Strophe is disconnected.');
+	$('#connect').get(0).value = 'connect';
+    } else if (status == Strophe.Status.CONNECTED) {
+	log('Strophe is connected.');
+	log('ECHOBOT: Send a message to ' + connection.jid + 
+	    ' to talk to me.');
+
+	connection.addHandler(onMessage, null, 'message', null, null,  null); 
+	connection.send($pres().tree());
+    }
+}
+
+function onMessage(msg) {
+    var to = msg.getAttribute('to');
+    var from = msg.getAttribute('from');
+    var type = msg.getAttribute('type');
+    var elems = msg.getElementsByTagName('body');
+
+    if (type == "chat" && elems.length > 0) {
+	var body = elems[0];
+
+	log('ECHOBOT: I got a message from ' + from + ': ' + 
+	    Strophe.getText(body));
+    
+	var reply = $msg({to: from, from: to, type: 'chat'})
+            .cnode(Strophe.copyElement(body));
+	connection.send(reply.tree());
+
+	log('ECHOBOT: I sent ' + from + ': ' + Strophe.getText(body));
+    }
+
+    // we must return true to keep the handler alive.  
+    // returning false would remove it after it finishes.
+    return true;
+}
+
+$(document).ready(function () {
+    connection = new Strophe.Connection(BOSH_SERVICE);
+
+    // Uncomment the following lines to spy on the wire traffic.
+    //connection.rawInput = function (data) { log('RECV: ' + data); };
+    //connection.rawOutput = function (data) { log('SEND: ' + data); };
+
+    // Uncomment the following line to see all the debug output.
+    //Strophe.log = function (level, msg) { log('LOG: ' + msg); };
+
+
+    $('#connect').bind('click', function () {
+	var button = $('#connect').get(0);
+	if (button.value == 'connect') {
+	    button.value = 'disconnect';
+
+	    connection.connect($('#jid').get(0).value,
+			       $('#pass').get(0).value,
+			       onConnect);
+	} else {
+	    button.value = 'connect';
+	    connection.disconnect();
+	}
+    });
+});
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/prebind.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/prebind.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/prebind.js	(revision 2397)
@@ -0,0 +1,103 @@
+// http-pre-bind example
+// This example works with mod_http_pre_bind found here:
+// http://github.com/thepug/Mod-Http-Pre-Bind
+// 
+// It expects both /xmpp-httpbind to be proxied and /http-pre-bind
+//
+// If you want to test this out without setting it up, you can use Collecta's
+// at http://www.collecta.com/xmpp-httpbind and 
+// http://www.collecta.com/http-pre-bind
+// Use a JID of 'guest.collecta.com' to test.
+
+var BOSH_SERVICE = '/xmpp-httpbind';
+var PREBIND_SERVICE = '/http-pre-bind';
+var connection = null;
+
+function log(msg) 
+{
+    $('#log').append('<div></div>').append(document.createTextNode(msg));
+}
+
+function rawInput(data)
+{
+    log('RECV: ' + data);
+}
+
+function rawOutput(data)
+{
+    log('SENT: ' + data);
+}
+
+function onConnect(status)
+{
+    if (status === Strophe.Status.CONNECTING) {
+	log('Strophe is connecting.');
+    } else if (status === Strophe.Status.CONNFAIL) {
+	log('Strophe failed to connect.');
+	$('#connect').get(0).value = 'connect';
+    } else if (status === Strophe.Status.DISCONNECTING) {
+	log('Strophe is disconnecting.');
+    } else if (status === Strophe.Status.DISCONNECTED) {
+	log('Strophe is disconnected.');
+	$('#connect').get(0).value = 'connect';
+    } else if (status === Strophe.Status.CONNECTED) {
+	log('Strophe is connected.');
+	connection.disconnect();
+    } else if (status === Strophe.Status.ATTACHED) {
+        log('Strophe is attached.');
+        connection.disconnect();
+    }
+}
+
+function normal_connect() {
+    log('Prebind failed. Connecting normally...');
+
+    connection = new Strophe.Connection(BOSH_SERVICE);
+    connection.rawInput = rawInput;
+    connection.rawOutput = rawOutput;
+
+    connection.connect($('#jid').val(), $('#pass').val(), onConnect);
+}
+
+function attach(data) {
+    log('Prebind succeeded. Attaching...');
+
+    connection = new Strophe.Connection(BOSH_SERVICE);
+    connection.rawInput = rawInput;
+    connection.rawOutput = rawOutput;
+    
+    var $body = $(data.documentElement);
+    connection.attach($body.find('jid').text(), 
+                      $body.attr('sid'), 
+                      parseInt($body.attr('rid'), 10) + 1, 
+                      onConnect);
+}
+
+$(document).ready(function () {
+    $('#connect').bind('click', function () {
+	var button = $('#connect').get(0);
+	if (button.value == 'connect') {
+	    button.value = 'disconnect';
+
+            // attempt prebind
+            $.ajax({
+                type: 'POST',
+                url: PREBIND_SERVICE,
+                contentType: 'text/xml',
+                processData: false,
+                data: $build('body', {
+                    to: Strophe.getDomainFromJid($('#jid').val()),
+                    rid: '' + Math.floor(Math.random() * 4294967295),
+                    wait: '60',
+                    hold: '1'}).toString(),
+                dataType: 'xml',
+                error: normal_connect,
+                success: attach});
+	} else {
+	    button.value = 'connect';
+	    if (connection) {
+                connection.disconnect();
+            }
+	}
+    });
+});
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/dojo-ping.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/dojo-ping.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/dojo-ping.js	(revision 2397)
@@ -0,0 +1,56 @@
+var DojoPing = {
+    BOSH_SERVICE: '/xmpp-httpbind',
+    TARGET: 'jabber.org',
+    connection: null
+};
+
+dojo.addOnLoad(function () {
+    dojo.connect(dojo.byId('connect'), "click", function (e) {
+        var jid = dojo.attr(dojo.byId('jid'), 'value');
+        var pass_node = dojo.byId('pass');
+        var pass = dojo.attr(pass_node, 'value');
+        dojo.attr(pass_node, 'value', '');
+        
+        DojoPing.connection = new Strophe.Connection(DojoPing.BOSH_SERVICE);
+        
+        dojo.place("<p>Connecting...</p>", "log");
+
+        DojoPing.connection.connect(jid, pass, function (status) {
+            if (status === Strophe.Status.CONNECTED) {
+                dojo.publish('connected');
+            } else if (status === Strophe.Status.DISCONNECTED) {
+                dojo.publish('disconnected');
+            }
+        });
+    });
+
+    dojo.subscribe('connected', function () {
+        dojo.place("<p>Connected.</p>", "log");
+
+        var ping = $iq({to: DojoPing.TARGET, type: 'get'})
+            .c('query', {xmlns: Strophe.NS.DISCO_ITEMS});
+
+        var sent_stamp = new Date();
+        DojoPing.connection.sendIQ(ping, function (iq) {
+            var elapsed = new Date() - sent_stamp;
+
+            // use dojo.query on incoming stanza
+            var items = dojo.query('items', iq);
+            console.log(items);
+
+            dojo.place("<p>Disco#items response received after " +
+                       elapsed + "ms." + DojoPing.TARGET + " reports " +
+                       "it has " + items + " disco items.</p>", "log");
+
+            DojoPing.connection.disconnect();
+        });
+
+        DojoPing.connection.send(ping);
+        
+        dojo.place("<p>Ping sent to " + DojoPing.TARGET + ".</p>", "log");
+    });
+
+    dojo.subscribe('disconnected', function () {
+        dojo.place("<p>Disconnected.</p>", "log");        
+    });
+});
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/prototype-ping.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/prototype-ping.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/prototype-ping.html	(revision 2397)
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Strophe.js Prototype Ping Example</title>
+    <script src='http://ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js'></script>
+    <script src='../strophe.js'></script>
+    <script src='prototype-ping.js'></script>
+  </head>
+
+  <body>
+    <div id='login' style='text-align: center'>
+      <form>
+        <div>
+          <label for='jid'>JID:</label>
+          <input type='text' id='jid'>
+          <label for='pass'>Password:</label>
+          <input type='password' id='pass'>
+          <input type='button' id='connect' value='connect'>
+        </div>
+      </form>
+    </div>
+
+    <hr>
+
+    <div id='log'></div>
+  </body>
+</html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/attach/manage.py
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/attach/manage.py	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/attach/manage.py	(revision 2397)
@@ -0,0 +1,11 @@
+#!/usr/bin/env python
+from django.core.management import execute_manager
+try:
+    import settings # Assumed to be in the same directory.
+except ImportError:
+    import sys
+    sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
+    sys.exit(1)
+
+if __name__ == "__main__":
+    execute_manager(settings)
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/attach/boshclient.py
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/attach/boshclient.py	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/attach/boshclient.py	(revision 2397)
@@ -0,0 +1,152 @@
+import sys, os
+import httplib, urllib
+import random, binascii
+from urlparse import urlparse
+
+from punjab.httpb import HttpbParse
+
+from twisted.words.xish import domish
+from twisted.words.protocols.jabber import jid
+
+TLS_XMLNS = 'urn:ietf:params:xml:ns:xmpp-tls'
+SASL_XMLNS = 'urn:ietf:params:xml:ns:xmpp-sasl'
+BIND_XMLNS = 'urn:ietf:params:xml:ns:xmpp-bind'
+SESSION_XMLNS = 'urn:ietf:params:xml:ns:xmpp-session'
+
+
+class BOSHClient:
+    def __init__(self, jabberid, password, bosh_service):
+        self.rid = random.randint(0, 10000000)
+        self.jabberid = jid.internJID(jabberid)
+        self.password = password
+
+        self.authid = None
+        self.sid = None
+        self.logged_in = False
+        self.headers = {"Content-type": "text/xml",
+                        "Accept": "text/xml"}
+
+	self.bosh_service = urlparse(bosh_service)
+        
+    def buildBody(self, child=None):
+        """Build a BOSH body.
+        """
+        
+        body = domish.Element(("http://jabber.org/protocol/httpbind", "body"))
+        body['content'] = 'text/xml; charset=utf-8'
+        self.rid = self.rid + 1
+        body['rid'] = str(self.rid)
+        body['sid'] = str(self.sid)
+        body['xml:lang'] = 'en'
+     
+        if child is not None:
+            body.addChild(child)
+
+        return body
+        
+    def sendBody(self, body):
+        """Send the body.
+        """
+
+        parser = HttpbParse(True)
+
+        # start new session
+        conn = httplib.HTTPConnection(self.bosh_service.netloc)
+        conn.request("POST", self.bosh_service.path, 
+		     body.toXml(), self.headers)
+
+        response = conn.getresponse()
+	data = ''
+        if response.status == 200:
+            data = response.read()
+        conn.close()
+
+        return parser.parse(data)
+
+    def startSessionAndAuth(self, hold='1', wait='70'):
+        # Create a session
+        # create body
+        body = domish.Element(("http://jabber.org/protocol/httpbind", "body"))
+
+        body['content'] = 'text/xml; charset=utf-8'
+        body['hold'] = hold
+        body['rid'] = str(self.rid)
+        body['to'] = self.jabberid.host
+        body['wait'] = wait
+        body['window'] = '5'
+        body['xml:lang'] = 'en'
+
+
+        retb, elems = self.sendBody(body)
+        if type(retb) != str and retb.hasAttribute('authid') and \
+		retb.hasAttribute('sid'):
+            self.authid = retb['authid']
+            self.sid = retb['sid']
+
+            # go ahead and auth
+            auth = domish.Element((SASL_XMLNS, 'auth'))
+            auth['mechanism'] = 'PLAIN'
+            
+            # TODO: add authzid
+            if auth['mechanism'] == 'PLAIN':
+                auth_str = ""
+                auth_str += "\000"
+                auth_str += self.jabberid.user.encode('utf-8')
+                auth_str += "\000"
+                try:
+                    auth_str += self.password.encode('utf-8').strip()
+                except UnicodeDecodeError:
+                    auth_str += self.password.decode('latin1') \
+		        .encode('utf-8').strip()
+                        
+                auth.addContent(binascii.b2a_base64(auth_str))
+                
+                retb, elems = self.sendBody(self.buildBody(auth))
+                if len(elems) == 0:
+		    # poll for data
+                    retb, elems = self.sendBody(self.buildBody())
+
+                if len(elems) > 0:
+                    if elems[0].name == 'success':
+                        retb, elems = self.sendBody(self.buildBody())
+                        
+                        if elems[0].firstChildElement().name == 'bind':
+                            iq = domish.Element(('jabber:client', 'iq'))
+                            iq['type'] = 'set'
+                            iq.addUniqueId()
+                            iq.addElement('bind')
+                            iq.bind['xmlns'] = BIND_XMLNS
+                            if self.jabberid.resource:
+				iq.bind.addElement('resource')
+				iq.bind.resource.addContent(
+				    self.jabberid.resource)
+
+                            retb, elems = self.sendBody(self.buildBody(iq))
+                            if type(retb) != str and retb.name == 'body':
+                                # send session
+                                iq = domish.Element(('jabber:client', 'iq'))
+                                iq['type'] = 'set'
+                                iq.addUniqueId()
+                                iq.addElement('session')
+                                iq.session['xmlns'] = SESSION_XMLNS
+
+                                retb, elems = self.sendBody(self.buildBody(iq))
+
+				# did not bind, TODO - add a retry?
+                                if type(retb) != str and retb.name == 'body':
+                                    self.logged_in = True
+				    # bump up the rid, punjab already 
+				    # received self.rid
+                                    self.rid += 1
+
+
+if __name__ == '__main__':
+    USERNAME = sys.argv[1]
+    PASSWORD = sys.argv[2]
+    SERVICE = sys.argv[3]
+
+    c = BOSHClient(USERNAME, PASSWORD, SERVICE)
+    c.startSessionAndAuth()
+
+    print c.logged_in
+    
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/attach/settings.py
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/attach/settings.py	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/attach/settings.py	(revision 2397)
@@ -0,0 +1,85 @@
+# Django settings for attach project.
+
+DEBUG = True
+TEMPLATE_DEBUG = DEBUG
+
+ADMINS = (
+    ('Some Body', 'romeo@example.com'),
+)
+
+MANAGERS = ADMINS
+
+DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
+DATABASE_NAME = '/path/to/attach.db'             # Or path to database file if using sqlite3.
+DATABASE_USER = ''             # Not used with sqlite3.
+DATABASE_PASSWORD = ''         # Not used with sqlite3.
+DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
+DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
+
+# Local time zone for this installation. Choices can be found here:
+# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
+# although not all choices may be available on all operating systems.
+# If running in a Windows environment this must be set to the same as your
+# system time zone.
+TIME_ZONE = 'America/Denver'
+
+# Language code for this installation. All choices can be found here:
+# http://www.i18nguy.com/unicode/language-identifiers.html
+LANGUAGE_CODE = 'en-us'
+
+SITE_ID = 1
+
+# If you set this to False, Django will make some optimizations so as not
+# to load the internationalization machinery.
+USE_I18N = True
+
+# Absolute path to the directory that holds media.
+# Example: "/home/media/media.lawrence.com/"
+MEDIA_ROOT = ''
+
+# URL that handles the media served from MEDIA_ROOT. Make sure to use a
+# trailing slash if there is a path component (optional in other cases).
+# Examples: "http://media.lawrence.com", "http://example.com/media/"
+MEDIA_URL = ''
+
+# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
+# trailing slash.
+# Examples: "http://foo.com/media/", "/media/".
+ADMIN_MEDIA_PREFIX = '/media/'
+
+# Make this unique, and don't share it with anybody.
+SECRET_KEY = 'asdf'
+
+# List of callables that know how to import templates from various sources.
+TEMPLATE_LOADERS = (
+    'django.template.loaders.filesystem.load_template_source',
+    'django.template.loaders.app_directories.load_template_source',
+#     'django.template.loaders.eggs.load_template_source',
+)
+
+MIDDLEWARE_CLASSES = (
+    'django.middleware.common.CommonMiddleware',
+    'django.contrib.sessions.middleware.SessionMiddleware',
+    'django.contrib.auth.middleware.AuthenticationMiddleware',
+)
+
+ROOT_URLCONF = 'attach.urls'
+
+TEMPLATE_DIRS = (
+    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
+    # Always use forward slashes, even on Windows.
+    # Don't forget to use absolute paths, not relative paths.
+    '/path/to/attach/templates',
+)
+
+INSTALLED_APPS = (
+    'django.contrib.auth',
+    'django.contrib.contenttypes',
+    'django.contrib.sessions',
+    'django.contrib.sites',
+    'attach.attacher',
+)
+
+BOSH_SERVICE = 'http://example.com/xmpp-httpbind'
+JABBERID = 'romeo@example.com/bosh'
+PASSWORD = 'juliet.is.hawt'
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/attach/attacher/views.py
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/attach/attacher/views.py	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/attach/attacher/views.py	(revision 2397)
@@ -0,0 +1,18 @@
+from django.http import HttpResponse
+from django.template import Context, loader
+
+from attach.settings import BOSH_SERVICE, JABBERID, PASSWORD
+from attach.boshclient import BOSHClient
+
+def index(request):
+    bc = BOSHClient(JABBERID, PASSWORD, BOSH_SERVICE)
+    bc.startSessionAndAuth()
+
+    t = loader.get_template("attacher/index.html")
+    c = Context({
+	    'jid': bc.jabberid.full(),
+	    'sid': bc.sid,
+	    'rid': bc.rid,
+    })
+
+    return HttpResponse(t.render(c))
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/attach/urls.py
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/attach/urls.py	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/attach/urls.py	(revision 2397)
@@ -0,0 +1,19 @@
+from django.conf.urls.defaults import *
+
+# Uncomment the next two lines to enable the admin:
+# from django.contrib import admin
+# admin.autodiscover()
+
+urlpatterns = patterns('',
+    # Example:
+    # (r'^attach/', include('attach.foo.urls')),
+
+    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
+    # to INSTALLED_APPS to enable admin documentation:
+    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
+
+    # Uncomment the next line to enable the admin:
+    # (r'^admin/(.*)', admin.site.root),
+
+    (r'^$', 'attach.attacher.views.index'),
+)
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/attach/README
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/attach/README	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/attach/README	(revision 2397)
@@ -0,0 +1,37 @@
+This is an example of Strophe attaching to a pre-existing BOSH session
+that is created externally.  This example requires a bit more than
+HTML and JavaScript.  Specifically it contains a very simple Web
+application written in Django which creates a BOSH session before
+rendering the page.
+
+Requirements:
+
+* Django 1.0 (http://www.djangoproject.com)
+* Twisted 8.1.x (http://twistedmatrix.com)
+* Punjab 0.3 (http://code.stanziq.com/punjab)
+
+Note that Twisted and Punjab are only used for small functions related
+to JID and BOSH parsing.
+
+How It Works:
+
+The Django app contains one view which is tied to the root URL.  This
+view uses the BOSHClient class to start a BOSH session using the
+settings from settings.py.
+
+Once the connection is established, Django passes the JID, SID, and
+RID for the BOSH session into the template engine and renders the
+page.
+
+The template assigns the JID, SID, and RID to global vars like so:
+
+    var BOSH_JID = {{ jid }};
+    var BOSH_SID = {{ sid }};
+    var BOSH_RID = {{ rid }};
+
+The connection is attached to Strophe by calling
+Strophe.Connection.attach() with this data and a connection callback
+handler.
+
+To show that the session is attached and works, a disco info ping is
+done to jabber.org.
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/attach/templates/attacher/index.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/attach/templates/attacher/index.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/attach/templates/attacher/index.html	(revision 2397)
@@ -0,0 +1,88 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns='http://www.w3.org/1999/xhtml'>
+  <head>
+    <title>Strophe Attach Example</title>
+    <script language='javascript'
+	    type='text/javascript'
+	    src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js'></script>
+    <script language='javascript'
+	    type='text/javascript'
+	    src='http://code.stanziq.com/svn/strophe/trunk/strophejs/b64.js'></script>
+    <script language='javascript'
+	    type='text/javascript'
+	    src='http://code.stanziq.com/svn/strophe/trunk/strophejs/md5.js'></script>
+    <script language='javascript'
+	    type='text/javascript'
+	    src='http://code.stanziq.com/svn/strophe/trunk/strophejs/sha1.js'></script>
+    <script language='javascript'
+	    type='text/javascript'
+	    src='http://code.stanziq.com/svn/strophe/trunk/strophejs/strophe.js'></script>
+    <script language='javascript'
+	    type='text/javascript'>
+      <!--
+	  var ATTACH_SID = "{{ sid }}";
+	  var ATTACH_RID = "{{ rid }}";
+	  var ATTACH_JID = "{{ jid }}";
+	  var BOSH_SERVICE = '/xmpp-httpbind';
+	  var connection = null;
+	  var startTime = null;
+
+          function log(msg)
+	  {
+	      $('#log').append('<div></div>').append(
+	          document.createTextNode(msg));
+	  }
+
+	  function onConnect(status) 
+	  {
+	      if (status == Strophe.Status.DISCONNECTED)
+	          log('Disconnected.');
+	  }
+
+          function onResult(iq) {
+	      var elapsed = (new Date()) - startTime;
+	      log('Response from jabber.org took ' + elapsed + 'ms.');
+          }
+	  
+	  $(document).ready(function () {
+	      // create the connection and attach it
+	      connection = new Strophe.Connection(BOSH_SERVICE);
+	      connection.rawInput = function (data) { 
+	          log('RECV: ' + data); 
+	      };
+	      connection.rawOutput = function (data) { 
+	          log('SENT: ' + data); 
+	      };
+	      // uncomment for extra debugging
+	      // Strophe.log = function (lvl, msg) { log(msg); };
+	      connection.attach(ATTACH_JID, ATTACH_SID, ATTACH_RID,
+	                        onConnect);
+
+              // set up handler
+	      connection.addHandler(onResult, null, 'iq', 
+	                            'result', 'disco-1', null);
+
+              log('Strophe is attached.');
+				
+	      // send disco#info to jabber.org
+	      var iq = $iq({to: 'jabber.org',
+	                    type: 'get',
+			    id: 'disco-1'})
+                  .c('query', {xmlns: Strophe.NS.DISCO_INFO})
+		  .tree()
+
+              startTime = new Date();
+              connection.send(iq);
+          });
+      // -->
+    </script>
+  </head>
+  <body>
+    <h1>Strophe Attach Example</h1>
+    <p>This example shows how to attach to an existing BOSH session with
+    Strophe.</p>
+    <h2>Log</h2>
+    <div id='log'>
+    </div>
+  </body>
+</html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/yui-ping.html
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/yui-ping.html	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/yui-ping.html	(revision 2397)
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Strophe.js YUI3 Ping Example</title>
+    <script src='http://yui.yahooapis.com/3.0.0/build/yui/yui-min.js'></script>
+    <script src='../strophe.js'></script>
+    <script src='yui-ping.js'></script>
+  </head>
+  <body>
+    <div id='login' style='text-align: center'>
+      <form>
+        <div>
+          <label for='jid'>JID:</label>
+          <input type='text' id='jid'>
+          <label for='pass'>Password:</label>
+          <input type='password' id='pass'>
+          <input type='button' id='connect' value='connect'>
+        </div>
+      </form>
+    </div>
+
+    <hr>
+
+    <div id='log'></div>
+  </body>
+</html>
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/prototype-ping.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/prototype-ping.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/prototype-ping.js	(revision 2397)
@@ -0,0 +1,56 @@
+var ProtoPing = {
+    BOSH_SERVICE: '/xmpp-httpbind',
+    TARGET: 'jabber.org',
+    connection: null
+};
+
+document.observe('dom:loaded', function () {
+    var log = $('log');
+
+    $('connect').observe('click', function () {
+        var jid = $F('jid');
+        var pass = $F('pass');
+        Form.Element.setValue('pass', '');
+        
+        ProtoPing.connection = new Strophe.Connection(ProtoPing.BOSH_SERVICE);
+        
+       log.insert("<p>Connecting...</p>");
+
+        ProtoPing.connection.connect(jid, pass, function (status) {
+            if (status === Strophe.Status.CONNECTED) {
+                document.fire('strophe:connected');
+            } else if (status === Strophe.Status.DISCONNECTED) {
+                document.fire('strophe:disconnected');
+            }
+        });
+    });
+
+    document.observe('strophe:connected', function () {
+        log.insert('<p>Connected.</p>');
+
+        var ping = $iq({to: ProtoPing.TARGET, type: 'get'})
+            .c('query', {xmlns: Strophe.NS.DISCO_ITEMS});
+
+        var sent_stamp = new Date();
+        ProtoPing.connection.sendIQ(ping, function (iq) {
+            var elapsed = new Date() - sent_stamp;
+
+            // use Prototype's selectors to access XMPP stanza
+            var items = Selector.findChildElements(iq, ['item']);
+
+            log.insert("<p>Disco#items response received after " +
+                       elapsed + "ms." + ProtoPing.TARGET + " reports " +
+                       "it has " + items + " disco items.</p>");
+
+            ProtoPing.connection.disconnect();
+        });
+
+        ProtoPing.connection.send(ping);
+        
+        log.insert("<p>Ping sent to " + ProtoPing.TARGET + ".</p>");
+    });
+
+    document.observe('strophe:disconnected', function () {
+        log.insert('<p>Disconnected.</p>');
+    });
+});
Index: sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/yui-ping.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/yui-ping.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/strophejs/examples/yui-ping.js	(revision 2397)
@@ -0,0 +1,58 @@
+YUI().use('node', function (Y) {
+    var BOSH_SERVICE = '/xmpp-httpbind';
+    var connection = null;
+
+    var log = Y.one('#log');
+
+    Y.augment(Strophe.Connection, Y.EventTarget);
+
+    Y.one('#connect').on('click', function (e) {
+        var jid = Y.one('#jid').get('value');
+        var pass_node = Y.one('#pass');
+        var pass = pass_node.get('value');
+        pass_node.set('value', '');
+        
+        connection = new Strophe.Connection(BOSH_SERVICE);
+
+        log.append('<p>Connecting...</p>');
+
+        connection.connect(jid, pass, function (status) {
+            if (status === Strophe.Status.CONNECTED) {
+                connection.fire('connected');
+            } else if (status === Strophe.Status.DISCONNECTED) {
+                connection.fire('disconnected');
+            }
+        });
+
+        connection.on('connected', function () {
+            log.append('<p>Connected.</p>');
+
+            var ping = $iq({to: 'jabber.org', type: 'get'})
+                .c('query', {xmlns: Strophe.NS.DISCO_ITEMS});
+
+            var sent_stamp = new Date();
+            connection.sendIQ(ping, function (iq) {
+                var elapsed = new Date() - sent_stamp;
+
+                // convert incoming XMPP stanza to a Node
+                var stanza = Y.Selector.query('item', iq, null, true);
+                window['stanza'] = iq;
+                window['Y'] = Y;
+
+                console.log(stanza);
+
+                log.append("<p>Disco#items response received after " + 
+                           elapsed + "ms. Jabber.org reports it has " +
+                           items + " items.</p>");
+
+                connection.disconnect();
+            });
+
+            log.append('<p>Ping sent.</p>');
+        });
+
+        connection.on('disconnected', function () {
+            log.append('<p>Disconnected.</p>');
+        });
+    });
+});
Index: sandbox/jabberit_messenger/trophy_expresso/xsl/contactsList.xsl
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/xsl/contactsList.xsl	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/xsl/contactsList.xsl	(revision 2397)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+	<xsl:output method="html" omit-xml-declaration="yes"/>
+	
+	<xsl:param name="path_jabberit" />
+	<xsl:param name="full_name" />
+	
+	<xsl:template match="contacts_list">
+		
+		<fieldset style="margin:2px; border:1px dotted #000000; height: 90px;">
+			<div style="margin:0px; width:70px; height:93px; background-image:url('{$path_jabberit}/templates/default/images/photo.png');"/>
+			
+			<div style="position: absolute; margin-top: -19px; margin-left: 75px; cursor: pointer;" onclick="loadIM.setPresence(this);">
+				<div id="statusJabberImg" style="background-image: url('{$path_jabberit}/templates/default/images/available.gif'); margin-left: 13px;width:15px; height:15px;"></div>
+				<div id="statusJabberText" style="margin-top: -13px; margin-left: 30px;"> Disponível </div>
+				<div style="background-image: url('{$path_jabberit}/templates/default/images/arrow_down.gif'); margin-top: -8px; margin-left: 0px; width:15px; height:15px;"/> 
+			</div>
+			
+			<div style="position: absolute; margin-top: -50px; margin-left: 75px;">
+				<button style="width:35px;" alt="Adicionar Contatos" title="Adicionar Contatos" onclick="loadIM.addContacts();">
+					<img src="{$path_jabberit}/templates/default/images/users.png"/>
+				</button>
+			</div>	
+			<div style="positon: absolute; margin-top: -75px; margin-left: 75px;"> <xsl:value-of select="$full_name"/> </div>
+		</fieldset>
+				
+		<div id="JabberIMRoster" style="margin-top:3px; overflow-y: auto;">
+			<div id="rosterIM_without_groups" />	
+			<div id="rosterIM_with_groups" />
+		</div>
+		 
+	</xsl:template>
+	
+</xsl:stylesheet>
Index: sandbox/jabberit_messenger/trophy_expresso/xsl/groups.xsl
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/xsl/groups.xsl	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/xsl/groups.xsl	(revision 2397)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+	<xsl:output method="html" omit-xml-declaration="yes"/>
+	
+	<xsl:param name="nameGroup" />
+	<xsl:param name="path_jabberit" />
+	
+	<xsl:template match="group">
+
+			<div style="margin-bottom: 3px;">
+				<span  onclick="loadIM.groupsHidden(this);" style="background: url('{$path_jabberit}/templates/default/images/arrow_down.gif')no-repeat center left;font-weight:bold; padding-left: 16px; cursor: pointer;">
+					<xsl:value-of select="$nameGroup"/>
+				</span>
+			</div>
+			
+	</xsl:template>
+	
+</xsl:stylesheet>
Index: sandbox/jabberit_messenger/trophy_expresso/xsl/itensGroup.xsl
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/xsl/itensGroup.xsl	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/xsl/itensGroup.xsl	(revision 2397)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+	<xsl:output method="html" omit-xml-declaration="yes"/>
+	
+	<xsl:param name="nameContact" />
+	<xsl:param name="jid"/>
+	<xsl:param name="id" />
+	<xsl:param name="presence" />
+	<xsl:param name="path_jabberit" />
+	<xsl:param name="status"/>
+	<xsl:param name="statusDisplay"/>
+	
+	<xsl:template match="itens_group">
+
+			<div id="{$id}" onmousedown="loadIM.actionButton(event,'{$jid}');" style="background: url('{$path_jabberit}templates/default/images/{$presence}.gif')no-repeat center left; padding-left: 18px; margin:2px 0px 5px 10px; cursor:pointer;">
+				<xsl:value-of select="$nameContact"/><br/>
+				<span style="font-size: 8pt; font-style:italic; display:{$statusDisplay};"><xsl:value-of select="$status"/></span>
+			</div>
+			
+	</xsl:template>
+	
+</xsl:stylesheet>
Index: sandbox/jabberit_messenger/trophy_expresso/xsl/loginPage.xsl
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/xsl/loginPage.xsl	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/xsl/loginPage.xsl	(revision 2397)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+	<xsl:output method="html" omit-xml-declaration="yes"/>
+	
+	<xsl:template match="login_page">
+		
+		<div id="trophyimlogin">
+			
+			<form name="cred">
+				<table border="0">
+					<tr>
+						<td align="right">JID:</td>
+						<td><input type="text" id="trophyimjid" value="alexandrecorreia@ecelepar10612.celepar.parana"/></td>
+					</tr>
+					<tr>
+						<td align="right">Password:</td>
+						<td><input type="password" id="trophyimpass" value="dinho101276"/></td>
+					</tr>
+					<tr>
+						<td colspan="2" align="center">
+							<input type="button" id="trophyimconnect" value="connect" onclick="TrophyIM.login()"/>
+						</td>
+					</tr>
+				</table>
+			</form>
+			
+		</div>
+		 
+	</xsl:template>
+	
+</xsl:stylesheet>
Index: sandbox/jabberit_messenger/trophy_expresso/xsl/itensStatus.xsl
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/xsl/itensStatus.xsl	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/xsl/itensStatus.xsl	(revision 2397)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+	<xsl:output method="html" omit-xml-declaration="yes"/>
+
+	<xsl:param name="image_src" />
+
+	<xsl:template match="/">
+		<dl>
+			<xsl:apply-templates select="." mode="option" />
+		</dl>
+		
+	</xsl:template>
+
+	<xsl:template match="option" mode="option">
+		<dt style="cursor:pointer; padding:2px 2px 2px 15px; background: url('{$image_src}') no-repeat;" >
+			<xsl:value-of select="item" />
+		</dt>
+	</xsl:template>
+
+</xsl:stylesheet>
Index: sandbox/jabberit_messenger/trophy_expresso/xsl/addUser.xsl
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/xsl/addUser.xsl	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/xsl/addUser.xsl	(revision 2397)
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+	<xsl:output method="html" omit-xml-declaration="yes"/>
+
+	
+	<xsl:template match="userinfo">
+
+	<xsl:param name="lang1" />
+	<xsl:param name="lang2" />
+	<xsl:param name="lang3" />
+	<xsl:param name="lang4" />
+	<xsl:param name="lang5" />
+	<xsl:param name="lang6" />
+	<xsl:param name="lang7" />
+	<xsl:param name="path" />
+
+
+		
+		<div style="margin:2px">
+			<div class="search_user">
+				<span style="width:130px;"><xsl:value-of select="$lang1" /> .: </span>
+				<input type="text" size="30" onclick="this.select();" onkeypress="alert(event);" style="margin: 0 10 0 0px;"/>
+				<input type="image" src='{$path}templates/default/images/users.png' value="{$lang2}" onclick="alert(this);" />
+			</div>
+			<br/>
+			<div class="add_organization_members">
+				<span style="margin: 5px; width:auto;"><xsl:value-of select="$lang3"/> .: </span>
+				<br style="clear:both"/>
+				<div id="im_ldap_user"></div>
+			</div>
+		</div>
+
+		<span id="im_status_add" style="color:#f00;"></span>
+		<span id="__span_load_im" style="background-color:#cc4444;color:white;display:none;position:absolute;right:5px;top:26px">Carregando .....</span>
+		<input id="im_jidUser" type="hidden" />
+		<input id="im_jid" type="hidden" />
+		<input id="im_uid" type="hidden" />
+
+	</xsl:template>
+	
+	<xsl:template match="adduser">
+		
+
+		<div class="add_member_info">
+			<span><xsl:value-of select="$lang4"/> : </span>
+			<input id="im_name" type="text" size="39" maxlength="50" onclick="this.select();"/>
+			<br/><br style="line-height:4px"/>
+			<span><xsl:value-of select="$lang5"/> : </span>
+			<input id="im_group" type="text" size="40" maxlength="50" selectboxoptions="" onclick="this.select();"/>
+		</div>
+		
+		<div id="buttons_adduser" style="padding-top:30px; padding-bottom: 30px; margin-left: 83px;"/>
+	
+	</xsl:template>
+	
+</xsl:stylesheet>
Index: sandbox/jabberit_messenger/trophy_expresso/xsl/window.xsl
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/xsl/window.xsl	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/xsl/window.xsl	(revision 2397)
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+	<xsl:output method="html" omit-xml-declaration="yes"/>
+
+	<xsl:param name = "id_window" />
+	<xsl:param name = "left" />	
+	<xsl:param name = "height" />
+	<xsl:param name = "onclick" />
+	<xsl:param name = "title" />
+	<xsl:param name = "top" />
+	<xsl:param name = "width" />
+	<xsl:param name = "zindex" />
+	
+	<xsl:template match="window_main">
+			
+			<!-- Principal -->
+			<div id="{$id_window}__main" style="z-index: {($zindex)+1}; width: {$width}px;" class="x-window">
+				<div class="x-window-tl">
+					<div class="x-window-tr">
+						<div class="x-window-tc">
+							<div id="{$id_window}__draggable" style="-moz-user-select: none; width: {($width)-31}px;" class="x-window-header x-unselectable x-window-draggable">
+								<xsl:value-of select="$title"/>
+							</div>
+							<div class="x-tool x-tool-close" onclick="{$onclick}"></div>
+						</div>
+					</div>
+				</div>
+				<div class="x-window-bwrap">
+					<div class="x-window-ml">
+						<div class="x-window-mr">
+							<div class="x-window-mc">
+								<div style="width: {($width)-14}px; height: {($height)-32}px;" class="x-window-body">
+									<div style="width: {($width)-14}px;" class="x-tab-panel x-tab-panel-noborder">
+										
+										<!-- Conteudo -->
+										<div class="x-tab-panel-bwrap">
+											<div style="width: {($width)-14}px; height: {$height}px;" class="x-tab-panel-body x-tab-panel-body-noborder x-tab-panel-body-top">
+												<div style="width: {($width)-14}px;" class="x-panel x-panel-noborder">
+													<div class="x-panel-bwrap">
+														<div style="width: {($width)-14}px; height: {($height)-34}px;" class="x-panel-body x-panel-body-noheader x-panel-body-noborder">
+															<div id="{$id_window}__content">
+															</div>
+														</div>
+													</div>
+												</div>
+											</div>
+										</div>
+									</div>
+								</div>
+							</div>
+						</div>
+					</div>
+					
+					<div class="x-window-bl x-panel-nofooter">
+						<div class="x-window-br">
+							<div class="x-window-bc"></div>
+						</div>
+					</div>
+				</div>
+			</div>
+			
+	</xsl:template>
+	
+</xsl:stylesheet>
Index: sandbox/jabberit_messenger/trophy_expresso/xsl/chatBox.xsl
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/xsl/chatBox.xsl	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/xsl/chatBox.xsl	(revision 2397)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+	<xsl:output method="html" omit-xml-declaration="yes"/>
+	
+	<xsl:param name="idChatBox" />
+	<xsl:param name="jidTo" />
+	<xsl:param name="path_jabberit" />
+
+	<xsl:template match="chat_box">
+		
+			<div>
+				<div id="{$idChatBox}" style="height:190px; width:370px; overflow-y:scroll;"></div>
+				<div style="margin:2px;">
+					<textarea id="{$jidTo}__sendBox" class="trophyimchatinput" style="padding-left: 78px; height:130px; width:360px;"></textarea>
+					<div style="position:relative;margin:-126px 0 0 3px;width:70px ;height:93px ;background-image:url('{$path_jabberit}templates/default/images/photo.png');"></div>
+					
+					<div style="margin: 3px 0 0 4px;">
+						<input type="button" value="Send" onclick="TrophyIM.sendMessage('{$jidTo}')"/>
+					</div>
+				</div>
+			</div>			
+		 
+	</xsl:template>
+	
+</xsl:stylesheet>
Index: sandbox/jabberit_messenger/trophy_expresso/inc/jabberit_acl.inc.php
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/inc/jabberit_acl.inc.php	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/inc/jabberit_acl.inc.php	(revision 2397)
@@ -0,0 +1,71 @@
+<?php
+  /***************************************************************************\
+  *  Expresso - Expresso Messenger                                            *
+  *  	- Alexandre Correia / Rodrigo Souza							          *
+  *  	- JETI - http://jeti-im.org/										  *
+  * ------------------------------------------------------------------------- *
+  *  This program is free software; you can redistribute it and/or modify it  *
+  *  under the terms of the GNU General Public License as published by the    *
+  *  Free Software Foundation; either version 2 of the License, or (at your   *
+  *  option) any later version.                                               *
+  \***************************************************************************/
+
+$size_of_acl = sizeof($GLOBALS['phpgw_info']['user']['acl']);
+
+for( $i = 0; $i < $size_of_acl && $GLOBALS['phpgw_info']['user']['acl'] != "jabberit_messenger"; $i++ )
+{
+	$apps = unserialize($GLOBALS['phpgw_info']['server']['apps_jabberit']);
+	$flag = false;
+
+	if( is_array($apps) )
+	{
+		foreach($apps as $tmp)
+		{
+			$app_enabled = substr($tmp,0,strpos($tmp,";"));
+			if( $GLOBALS['phpgw_info']['flags']['currentapp'] == $app_enabled )
+				$flag = true;
+		}	
+	}
+	
+	if ( $GLOBALS['phpgw_info']['user']['acl'][$i]['appname'] == 'jabberit_messenger' && ( $flag || $GLOBALS['phpgw_info']['flags']['currentapp'] == 'jabberit_messenger' ))
+	{
+
+		$ldapManager = CreateObject('contactcenter.bo_ldap_manager');
+		$_SESSION['phpgw_info']['jabberit_messenger']['ldapManager'] = $ldapManager->srcs[1];
+		
+		$webserver_url = $GLOBALS['phpgw_info']['server']['webserver_url'];
+		$webserver_url = ( !empty($webserver_url) ) ? $webserver_url : '/';
+
+		if(strrpos($webserver_url,'/') === false || strrpos($webserver_url,'/') != (strlen($webserver_url)-1))
+			$webserver_url .= '/';
+
+		$webserver_url = $webserver_url . 'jmessenger/'; 
+		
+		require_once PHPGW_SERVER_ROOT . '/jmessenger/inc/jabberit_sessions.inc.php';
+		
+		$_SESSION['phpgw_info']['jabberit_messenger']['webserver_url'] = $webserver_url;
+		
+		// Temas Expresso
+		$theme = "window_" . $GLOBALS['phpgw_info']['user']['preferences']['common']['theme'] . ".css";
+		
+		if( !file_exists('../jmessenger/templates/default/css/'.$theme) )
+			$theme = "window_default.css";
+
+		// User
+		$fullName	= $_SESSION['phpgw_info']['jabberit_messenger']['fullname'];
+		$userJabber	= $_SESSION['phpgw_info']['jabberit_messenger']['user_jabber']."@ecelepar10612.celepar.parana";
+		$password	= $_SESSION['phpgw_info']['jabberit_messenger']['passwd'];
+
+		$js  = "var path_jabberit='".$webserver_url."';";
+		$js .= "var theme_jabberit='".$theme."';";
+
+		echo "<script type='text/javascript'>".$js."</script>";
+		echo "<script type='text/javascript' src='".$webserver_url . "js/loadIM.js'></script>";
+		echo "<script type='text/javascript'> var loadIM = new loadIM('".$fullName."','".$userJabber."','".$password."'); </script>";
+
+		break;
+	}
+	
+}
+
+?>
Index: sandbox/jabberit_messenger/trophy_expresso/inc/jabberit_sessions.inc.php
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/inc/jabberit_sessions.inc.php	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/inc/jabberit_sessions.inc.php	(revision 2397)
@@ -0,0 +1,65 @@
+<?php
+
+  /***************************************************************************\
+  *  Expresso - Expresso Messenger                                            *
+  *  	- Alexandre Correia / Rodrigo Souza							          *
+  *  	- JETI - http://jeti-im.org/										  *
+  * ------------------------------------------------------------------------- *
+  *  This program is free software; you can redistribute it and/or modify it  *
+  *  under the terms of the GNU General Public License as published by the    *
+  *  Free Software Foundation; either version 2 of the License, or (at your   *
+  *  option) any later version.                                               *
+  \***************************************************************************/
+
+		//User
+		$_SESSION['phpgw_info']['jabberit_messenger']['user_jabber']	= $GLOBALS['phpgw_info']['user']['account_lid'];
+		$_SESSION['phpgw_info']['jabberit_messenger']['user_id']		= $GLOBALS['phpgw_info']['user']['account_id'];		
+        $_SESSION['phpgw_info']['jabberit_messenger']['passwd']			= $GLOBALS['phpgw_info']['user']['passwd'];
+		$_SESSION['phpgw_info']['jabberit_messenger']['mail']			= $GLOBALS['phpgw_info']['user']['email'];
+		$_SESSION['phpgw_info']['jabberit_messenger']['fullname']		= $GLOBALS['phpgw_info']['user']['fullname'];
+		$_SESSION['phpgw_info']['jabberit_messenger']['account_dn']		= $GLOBALS['phpgw_info']['user']['account_dn'];
+
+		// User Lang 
+		$_SESSION['phpgw_info']['jabberit_messenger']['applet_lang']	= $GLOBALS['phpgw_info']['user']['preferences']['common']['lang'];
+
+		//Members Group
+		$_SESSION['phpgw_info']['jabberit_messenger']['membership']		= $GLOBALS['phpgw']->accounts->membership();
+
+		//Groups Locked
+		$_SESSION['phpgw_info']['jabberit_messenger']['groups_locked']	= $GLOBALS['phpgw_info']['server']['groups_locked_jabberit'];
+
+		//Groups Search Ldap
+		$_SESSION['phpgw_info']['jabberit_messenger']['groups_search']	= $GLOBALS['phpgw_info']['server']['groups_search_jabberit'];
+
+		//Server http or https 
+		$_SESSION['phpgw_info']['jabberit_messenger']['use_https']		= $GLOBALS['phpgw_info']['server']['use_https'];
+
+		//Organization Ldap
+		$_SESSION['phpgw_info']['jabberit_messenger']['account_dn']		= $GLOBALS['phpgw_info']['user']['account_dn'];
+
+		//Ldap
+		$_SESSION['phpgw_info']['jabberit_messenger']['server_ldap_jabberit']   = $GLOBALS['phpgw_info']['server']['server_ldap_jabberit'];
+        $_SESSION['phpgw_info']['jabberit_messenger']['context_ldap_jabberit']  = $GLOBALS['phpgw_info']['server']['context_ldap_jabberit'];
+        $_SESSION['phpgw_info']['jabberit_messenger']['user_ldap_jabberit']     = $GLOBALS['phpgw_info']['server']['user_ldap_jabberit'];
+        $_SESSION['phpgw_info']['jabberit_messenger']['password_ldap_jabberit'] = $GLOBALS['phpgw_info']['server']['password_ldap_jabberit'];
+        
+        //DB
+        $_SESSION['phpgw_info']['jabberit_messenger']['server']['db_name']	 = $GLOBALS['phpgw_info']['server']['db_name'];
+        $_SESSION['phpgw_info']['jabberit_messenger']['server']['db_host']	 = $GLOBALS['phpgw_info']['server']['db_host'];
+        $_SESSION['phpgw_info']['jabberit_messenger']['server']['db_port']	 = $GLOBALS['phpgw_info']['server']['db_port'];
+        $_SESSION['phpgw_info']['jabberit_messenger']['server']['db_user']	 = $GLOBALS['phpgw_info']['server']['db_user'];
+        $_SESSION['phpgw_info']['jabberit_messenger']['server']['db_pass']	 = $GLOBALS['phpgw_info']['server']['db_pass'];
+        $_SESSION['phpgw_info']['jabberit_messenger']['server']['db_type'] 	 = $GLOBALS['phpgw_info']['server']['db_type'];
+
+		//Jabberd
+        $_SESSION['phpgw_info']['jabberit_messenger']['name_jabberit']					= $GLOBALS['phpgw_info']['server']['name_jabberit'];
+        $_SESSION['phpgw_info']['jabberit_messenger']['ip_server_jabberit']				= $GLOBALS['phpgw_info']['server']['ip_server_jabberit'];
+        $_SESSION['phpgw_info']['jabberit_messenger']['port_1_jabberit']				= $GLOBALS['phpgw_info']['server']['port_1_jabberit'];
+        $_SESSION['phpgw_info']['jabberit_messenger']['port_2_jabberit']				= $GLOBALS['phpgw_info']['server']['port_2_jabberit'];        
+        $_SESSION['phpgw_info']['jabberit_messenger']['resource_jabberit']				= $GLOBALS['phpgw_info']['server']['resource_jabberit'];
+        $_SESSION['phpgw_info']['jabberit_messenger']['group_chat_jabberit']			= $GLOBALS['phpgw_info']['server']['group_chat_server_jabberit'];
+		$_SESSION['phpgw_info']['jabberit_messenger']['name_company']					= $GLOBALS['phpgw_info']['server']['name_company_applet_jabberit'];
+		$_SESSION['phpgw_info']['jabberit_messenger']['use_attribute_jabberit']			= $GLOBALS['phpgw_info']['server']['use_attribute_jabberit'];
+		$_SESSION['phpgw_info']['jabberit_messenger']['map_org_realm_jabberit']			= $GLOBALS['phpgw_info']['server']['map_org_realm_jabberit'];
+		
+?>
Index: sandbox/jabberit_messenger/trophy_expresso/js/makeW.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/js/makeW.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/js/makeW.js	(revision 2397)
@@ -0,0 +1,109 @@
+(function()
+{
+	var _xtools		= null;
+	var dragDrop	= null;
+	var path		= path_jabberit;
+	
+	function build(pObj)
+	{
+		var _window = getElement( pObj.id_window + '__parent');
+		_xtools = new xtools(path);		
+		
+		if( _window == null )
+		{
+			pObj.width		= ( ( pObj.width > 160 ) ? pObj.width : 160 );
+			pObj.height		= ( ( pObj.height > 80 ) ? pObj.height : 80 );
+			pObj.onclick	= "_winBuild('" + pObj.id_window + "', '" + pObj.closeAction + "')";
+			
+			_window = document.createElement("div");
+			_window.id	= pObj.id_window + "__parent";
+			_window.setAttribute("onselectstart" , "return false");
+			_window.style.width		= pObj.width + "px";
+			_window.style.height	= pObj.height + "px";
+			_window.style.top		= pObj.top + "px";
+			_window.style.left		= pObj.left + "px";
+			_window.style.position	= "absolute";
+			_window.style.zIndex	= pObj.zindex;
+			_window.innerHTML		= _xtools.parse( _xtools.xml('window_main'), 'window.xsl', pObj );
+
+			if( pObj.closeAction == "hidden" )
+				_window.setAttribute("leftOld", pObj.left + "px" );
+			
+			window.document.body.insertBefore( _window, document.body.lastChild );
+			
+			getElement(pObj.id_window + '__content').innerHTML = pObj.content; 
+			
+			if( pObj.draggable )
+			{
+				dragDrop = new _drag_drop();
+				dragDrop.set( pObj.id_window );
+			}
+		}
+		else
+		{
+			load(pObj.id_window, "display");
+		}
+	}
+
+	function getElement(pElement)
+	{
+		return document.getElementById(pElement);
+	}
+	
+	function load( pId, pVisible )
+	{
+		var _window = document.getElementById( pId + '__parent')
+		
+		if( _window != null )
+		{
+			if ( pVisible == "display" )
+			{
+				if( _window.style.left == "-1500px" )
+					_window.style.left = _window.getAttribute("leftOld");
+			}
+			
+			if ( pVisible == "hidden")
+			{
+				_window.setAttribute("leftOld" , _window.style.left );
+				_window.style.left = "-1500px";
+			}
+			
+			if( pVisible == "remove" )
+			{
+				document.body.removeChild( _window );
+			}
+		}
+	}
+	
+	function _window()
+	{
+		if( arguments.length > 0 )
+		{
+			if( arguments.length == 1 )
+			{
+				var obj = arguments[0];
+				build(obj);
+			}
+			
+			if( arguments.length == 2 )
+			{
+				load(arguments[0], arguments[1]);
+			}	
+		}
+	}
+
+	window.bWindow	= _window;
+
+})();
+
+function _winBuild()
+{
+	if( arguments.length > 0 )
+	{	
+		if( arguments.length == 1 )
+			_win = new bWindow( arguments[0] );
+		
+		if( arguments.length == 2 )
+			_win = new bWindow( arguments[0], arguments[1]);	
+	}
+}
Index: sandbox/jabberit_messenger/trophy_expresso/js/loadIM.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/js/loadIM.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/js/loadIM.js	(revision 2397)
@@ -0,0 +1,476 @@
+(function()
+{
+	var fullName		= "";
+	var path			= "";
+	var addUser			= null;
+	var showhidden 		= null;
+	var Xtools			= null;
+	var userCurrent		= null;
+	var zIndex			= 9001;
+	
+	// Images
+	var add_user = new Image();
+	add_user.src = path_jabberit + 'templates/default/images/adduser_azul.png';
+
+	var arrow_down = new Image();
+	arrow_down.src = path_jabberit + 'templates/default/images/arrow_down.gif'; 
+
+	var arrow_right	= new Image();
+	arrow_right.src = path_jabberit + 'templates/default/images/arrow_right.gif';
+	
+	function actionButton()
+	{
+		if( arguments.length > 0 )
+		{
+			var e 	= arguments[0];
+			var jid = arguments[1];
+		
+			if ( !e )
+				var e = window.event;
+			
+			( ( e.target ) ? e.target : e.srcElement ).oncontextmenu = function(e)
+			{
+				return false;
+			};
+	
+			if ( ( e.which && e.which > 1 ) || ( e.button && e.button > 1 ) )
+				optionsItensContact(e, jid);
+			else
+				TrophyIM.rosterClick(jid);
+		}
+	}
+
+	function addContacts()
+	{
+		if( addUser == null )
+		{	
+			setXTools();
+			addUser = new addUserIM(Xtools);
+		}
+		
+		addUser.show();
+	}
+	
+	function addIcon()
+	{
+		var StatusBar = getElement('divStatusBar');
+
+		/**
+		 * @quando estiver habilitada a opção fora de escritório nos filtros. 
+		 */
+		
+		if( div_write_msg = getElement('em_div_write_msg') )
+		{		
+			var StatusBarIM = getElement('JabberMessenger');
+				StatusBarIM.style.paddingLeft = '33px';
+			
+			div_write_msg.parentNode.insertBefore( StatusBarIM, div_write_msg );
+			
+			return;			
+		}
+		
+		if( StatusBar )
+		{
+			StatusBar.style.paddingLeft = '33px';
+			
+			var _div = document.createElement('div');
+				_div.appendChild(StatusBar.parentNode.removeChild(StatusBar.previousSibling));
+			
+				StatusBar.parentNode.insertBefore( _div, StatusBar);
+			
+			var divJabber = document.createElement('div');
+				divJabber.setAttribute('id', 'JabberMessenger');
+			
+			var _fastMenu = top.document.createElement('div');
+				_fastMenu.setAttribute('id', 'fast_menu_jabber_expresso');
+				_fastMenu.style.background		= 'no-repeat';
+				_fastMenu.style.backgroundImage = 'url(' + arrow_down.src + ')';
+				_fastMenu.style.float			= 'left';
+				_fastMenu.style.height			= '15px';
+				_fastMenu.style.left			= '7px';
+				_fastMenu.style.margin			= '8 0 0 10px';
+				_fastMenu.style.padding			= '0px';
+				_fastMenu.style.position		= 'absolute';
+				_fastMenu.style.width			= '15px';
+				_fastMenu.style.cursor			= 'pointer';
+
+			divJabber.insertBefore( _fastMenu, divJabber.firstChild );
+			
+			// Add event onclick element _fastMenu
+			configEvents( _fastMenu, 'onclick', function(){ fastMenu(_fastMenu); });
+
+			var _statusJabber = top.document.createElement('div');
+				_statusJabber.setAttribute('id','status_jabber_expresso');
+				_statusJabber.style.background		= 'no-repeat';
+				_statusJabber.style.backgroundImage = 'url(' + add_user.src +')';
+				_statusJabber.style.float			= 'left';
+				_statusJabber.style.height			= '18px';
+				_statusJabber.style.left			= '19px';
+				_statusJabber.style.margin			= '0 0 0 10px';
+				_statusJabber.style.padding			= '0px';
+				_statusJabber.style.position		= 'absolute';
+				_statusJabber.style.width			= '18px';
+				_statusJabber.style.cursor			= 'pointer';
+				_statusJabber.style.zindex			= '999999';
+			
+			divJabber.insertBefore( _statusJabber, divJabber.firstChild );
+			
+			StatusBar.insertBefore( divJabber, StatusBar.firstChild );
+
+			// Add event onclick element _statusJabber
+			configEvents( _statusJabber, 'onclick', function(){ TrophyIM.load();});
+		}
+	}
+
+	function configEvents(pObj, pEvent, pHandler)
+	{
+		if ( typeof pObj == 'object' )
+		{
+			if ( pEvent.substring(0, 2) == 'on' )
+				pEvent = pEvent.substring(2, pEvent.length);
+
+			if ( pObj.addEventListener )
+				pObj.addEventListener(pEvent, pHandler, false);
+			else if ( pObj.attachEvent )
+				pObj.attachEvent('on' + pEvent, pHandler);
+		}
+	}
+	
+	function fastMenu()
+	{
+		if( arguments.length > 0 )
+		{
+			var element = arguments[0];
+			
+			if( showhidden == null )
+				showhidden = new ShowHidden(300);
+
+			var _options = [
+			                	['Adicionar Contato', 'alert("1")' ],
+			                	['Ajuda', 'alert("2")' ],
+			                	['Preferências', 'alert("3")'],
+						   ];
+
+			var _itens = "";
+			
+			for( var i in _options )
+			{
+				_itens += '<img src="'+arrow_right.src+'"/>';
+				_itens += '<span style="cursor:pointer; margin:3px;" onclick='+_options[i][1]+'>';
+				_itens += _options[i][0] + '</span><br/>';
+			}
+			
+			var _optionsItens = document.createElement("div");
+				_optionsItens.setAttribute("style", "margin: 20px 0px 0px -4px;");
+				_optionsItens.className		= "x-menu";
+				_optionsItens.style.zIndex	= '99999';
+				_optionsItens.innerHTML		= _itens;  
+										  
+				showhidden.action('onmouseover', 'onmouseout', _optionsItens);
+				
+			element.parentNode.onmouseout	= function(){ showhidden.hiddenObject(false); };
+			element.parentNode.onmouseover	= function(){ showhidden.hiddenObject(true); };
+			element.parentNode.appendChild( _optionsItens );
+			
+		}
+	}
+	
+	function getElement( elementId )
+	{
+		return document.getElementById( elementId );
+	}
+	
+	function getUserCurrent()
+	{
+		return userCurrent;
+	}
+	
+	function getZindex()
+	{
+		return zIndex++;
+	}
+	
+	function groupsHidden()
+	{
+		if( arguments.length > 0 )
+		{
+			var _element = arguments[0];
+				_element.style.background = "url('"+path_jabberit+"templates/default/images/arrow_right.gif')no-repeat center left";
+				_element.onclick = function(){ groupsVisible(_element);};
+				
+				// Hidden all
+				var _elementNext = _element.nextSibling;
+				
+				while( _elementNext )
+				{	
+					_elementNext.style.display = "none";
+					_elementNext = _elementNext.nextSibling;
+				}
+		}
+	}
+	
+	function groupsVisible()
+	{
+		if( arguments.length > 0 )
+		{
+			var _element = arguments[0];
+				_element.style.background = "url('"+path_jabberit+"templates/default/images/arrow_down.gif')no-repeat center left";
+				_element.onclick = function(){ groupsHidden(_element);};
+
+				// Display all
+				var _elementNext = _element.nextSibling;
+				
+				while( _elementNext )
+				{	
+					_elementNext.style.display = "block";
+					_elementNext = _elementNext.nextSibling;
+				}
+		}
+	}
+	
+	function loginPage()
+	{
+		setXTools();
+		
+		var winLoginPage =
+		{	
+			 id_window		: "window_login_page",
+			 width			: 260,
+			 height			: 150,
+			 top			: 100,
+			 left			: 400,
+			 draggable		: true,
+			 visible		: "display",
+			 resizable		: true,
+			 zindex			: zIndex++,
+			 title			: "Login - Expresso Messenger",
+			 closeAction	: "remove",
+			 content		: Xtools.parse(Xtools.xml("login_page"), "loginPage.xsl")	
+		};
+
+		_winBuild( winLoginPage );
+	}
+
+	function loadScripts(pFiles)
+	{
+		// Load JavaScript
+		var loadJavaScript = function(pJs)
+		{
+			var newScript = document.createElement("script");
+				newScript.setAttribute("type", "text/javascript");
+				newScript.setAttribute("src", pJs );
+				
+			return newScript;
+		};
+		
+		// Load CSS
+		var loadStyleSheet = function(pCss)
+		{
+			var newStyle = document.createElement("link");
+				newStyle.setAttribute("rel", "stylesheet");
+				newStyle.setAttribute("type", "text/css");
+				newStyle.setAttribute("href", pCss);
+				
+			return newStyle;
+		};
+		
+		for(var i = 0; i < pFiles.length; i++)
+		{
+			if( pFiles[i].indexOf(".js") > -1 )
+				document.getElementsByTagName("head")[0].appendChild(loadJavaScript(pFiles[i]));
+				
+			if( pFiles[i].indexOf(".css") > -1 )
+				document.getElementsByTagName("head")[0].appendChild(loadStyleSheet(pFiles[i]));
+		}
+	}
+
+	
+	function optionsItensContact()
+	{
+		if( arguments.length > 0 )
+		{
+			var element = ( arguments[0].target ) ? arguments[0].target : arguments[0].srcElement;
+			var jid 	= arguments[1];
+			
+			if( showhidden == null )
+				showhidden = new ShowHidden(300);
+
+			var _options = [
+			                	['Autorizar', 'TrophyIM.setAutorization(\''+jid+'\')' ],
+			                	['Remover', 'Remover : ' + jid ],
+			                	['Renomear', 'Renomear : ' + jid],
+			                	['Trocar grupo', 'Trocar grupo : ' + jid],
+						   ];
+
+			var _itens = "";
+			
+			for( var i in _options )
+			{
+				_itens += '<img src="'+arrow_right.src+'"/>';
+				_itens += '<span style="cursor:pointer; margin:3px;" onclick='+_options[i][1]+'>';
+				_itens += _options[i][0] + '</span><br/>';
+			}
+			
+			var _optionsItens = document.createElement("div");
+				_optionsItens.setAttribute("style", "margin: -5px 0px 0px 20px;");
+				_optionsItens.className		= "x-menu";
+				_optionsItens.style.zIndex	= '99999';
+				_optionsItens.innerHTML		= _itens;  
+										  
+				showhidden.action('onmouseover', 'onmouseout', _optionsItens);
+				
+			element.parentNode.onmouseout	= function(){ showhidden.hiddenObject(false); };
+			element.parentNode.onmouseover	= function(){ showhidden.hiddenObject(true); };
+			element.parentNode.appendChild( _optionsItens );
+		}
+		
+	}
+
+	function parse()
+	{
+		if( arguments.length == 2 )
+			return Xtools.parse(Xtools.xml(arguments[0]), arguments[1] );
+		
+		if( arguments.length === 3 )
+			return Xtools.parse(Xtools.xml(arguments[0]), arguments[1], arguments[2] );
+	}
+	
+	function rosterDiv()
+	{
+		setXTools();			
+
+		var paramListContact = 
+		{
+			'path_jabberit' : path_jabberit,
+			'full_name'		: (( fullName.length < 25 ) ? fullName : ( fullName.substring( 0, 25) + "...")) 
+		};
+		
+		var winRosterDiv = 
+		{
+			 id_window		: "window_Roster_im",
+			 width			: 250,
+			 height			: 410,
+			 top			: 50,
+			 left			: 50,
+			 draggable		: true,
+			 visible		: "display",
+			 resizable		: true,
+			 zindex			: zIndex++,
+			 title			: "Contatos - Expresso Messenger",
+			 closeAction	: "hidden",
+			 content		: Xtools.parse(Xtools.xml("contacts_list"),"contactsList.xsl", paramListContact)	
+		};
+		
+		_winBuild( winRosterDiv );
+	}
+
+	function setPresence()
+	{
+		if( arguments.length > 0 )
+		{
+			var element = arguments[0];
+			
+			if( showhidden == null )
+				showhidden = new ShowHidden(300);
+			
+			var _status = [
+				               ['Afastado', 'away', '<img src="'+path_jabberit+'templates/default/images/away.gif" />'],
+				               ['Disponível', 'available', '<img src="'+path_jabberit+'templates/default/images/available.gif" />'],
+				               ['Livre p/ Conversa', 'chat', '<img src="'+path_jabberit+'templates/default/images/chat.gif" />'],
+				               ['Não Disponível', 'xa', '<img src="'+path_jabberit+'templates/default/images/xa.gif" />'],
+				               ['Ocupado', 'dnd', '<img src="'+path_jabberit+'templates/default/images/dnd.gif" />'],
+				          ];
+			
+			var _itens = "";
+			
+			for( var i in _status )
+			{
+				_itens += '<span style="cursor:pointer;" onclick="TrophyIM.setPresence(\''+_status[i][1]+'\'); loadIM.setStatusJabber(\''+_status[i][0]+'\',\''+_status[i][1]+'\');">';
+				_itens += _status[i][2]+ "<span style='margin:3px;'>" + _status[i][0] + "</span></span><br/>";
+			}
+			
+			var _statusItens = document.createElement("div");
+				_statusItens.setAttribute("style", "margin: 62px 0px 0px 76px;");
+				_statusItens.className		= "x-menu";
+				_statusItens.style.zIndex	= '99999';
+				_statusItens.innerHTML		= _itens;  
+										  
+				showhidden.action('onmouseover', 'onmouseout', _statusItens);
+				
+			element.parentNode.onmouseout	= function(){ showhidden.hiddenObject(false); };
+			element.parentNode.onmouseover	= function(){ showhidden.hiddenObject(true); };
+			element.parentNode.appendChild(_statusItens);
+		}
+	}
+	
+	function setStatusJabber()
+	{
+		if( arguments.length > 0 )
+		{
+			var _text	= arguments[0];
+			var _img	= arguments[1];
+			
+			getElement('statusJabberImg').setAttribute("style", "background-image: url('"+path_jabberit+"templates/default/images/"+_img+".gif'); margin-left: 13px;width:15px; height:15px;");
+			getElement('statusJabberText').innerHTML = _text;
+			getElement('status_jabber_expresso').style.background = "url('"+path_jabberit+"templates/default/images/"+_img+".gif') no-repeat";
+		}	
+	}
+	
+	function setUserCurrent( _jid , _password )
+	{
+		userCurrent = 
+		{
+			'jid'		: _jid,
+			'password'	: _password
+		}
+	}
+	
+	function setXTools()
+	{
+		if( Xtools == null )
+			Xtools = new xtools(path_jabberit);
+	}
+	
+	function loadIM()
+	{
+		if( arguments.length > 0 )
+		{
+			var files = [
+			            	 	path_jabberit + 'js/xtools.js',
+			            	 	path_jabberit +	'js/dragdrop.js',
+			            	 	path_jabberit + 'js/makeW.js',
+			            	 	path_jabberit + 'js/show_hidden.js',
+			            	 	path_jabberit + 'js/trophyim.js',
+			            	 	path_jabberit + 'js/AddUser.js',
+			            	 	path_jabberit + 'templates/default/css/trophyim.css',
+			            	 	path_jabberit + 'templates/default/css/' + theme_jabberit
+			            ];
+			
+			fullName = arguments[0];
+			
+			loadScripts(files);
+			
+			// Add Jabber in StatusBar;
+			addIcon();
+			
+			// User & Password Jabber;
+			setUserCurrent( arguments[1], arguments[2]);
+		}
+	}
+	
+	loadIM.prototype.actionButton		= actionButton;
+	loadIM.prototype.addContacts		= addContacts;
+	loadIM.prototype.configEvents		= configEvents;
+	loadIM.prototype.getUserCurrent		= getUserCurrent;
+	loadIM.prototype.getZIndex			= getZindex;
+	loadIM.prototype.groupsHidden		= groupsHidden;
+	loadIM.prototype.groupsVisible		= groupsVisible;
+	loadIM.prototype.loginPage			= loginPage;
+	loadIM.prototype.parse				= parse;
+	loadIM.prototype.setPresence		= setPresence;
+	loadIM.prototype.setStatusJabber	= setStatusJabber;
+	loadIM.prototype.rosterDiv			= rosterDiv;
+	
+	window.loadIM = loadIM;
+	
+})();
Index: sandbox/jabberit_messenger/trophy_expresso/js/AddUser.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/js/AddUser.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/js/AddUser.js	(revision 2397)
@@ -0,0 +1,61 @@
+(function()
+{
+		var Xtools = null;
+	
+		function addContacts()
+		{
+			if( arguments.length > 0 )
+			{
+				var jidFrom		= loadIM.getUserCurrent().jid;
+				var jidTo		= arguments[0];
+				var name		= arguments[1];
+				var group		= arguments[2];
+			
+				TrophyIM.addContacts( jidFrom, jidTo, name, group );
+			}
+		}
+		
+		function showForm()
+		{
+			var _paramsWindAddUser =
+			{
+					'lang1'	: 'Nome do Contato',
+					'lang2'	: 'Search',
+					'lang3'	: 'Resulado da Busca',
+					'lang4'	: 'Nickname',
+					'lang5'	: 'group',
+					'path'	: path_jabberit	
+			};
+
+			var windAddUser = 
+			{ 
+					id_window	 : "add_user_im",
+					width		 : 440,
+					height		 : 350,
+					top		 	 : 80,
+					left		 : 200,
+					draggable	 : true,
+					visible	 	 : "display",
+					resizable	 : true,
+					zindex		 : loadIM.getZIndex(),
+					title		 : 'Expresso Messenger - Search users',
+					closeAction  : "remove",
+					content		 : Xtools.parse( Xtools.xml('userinfo'), 'addUser.xsl', _paramsWindAddUser )
+			};
+			
+			_winBuild( windAddUser );
+		}
+	
+		function loadAddUser()
+		{
+			if( arguments.length > 0 )
+			{
+				Xtools = arguments[0];
+			}	
+		}
+
+		loadAddUser.prototype.add		= addContacts;
+		loadAddUser.prototype.show		= showForm;
+		
+		window.addUserIM	= loadAddUser;
+})();
Index: sandbox/jabberit_messenger/trophy_expresso/js/xtools.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/js/xtools.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/js/xtools.js	(revision 2397)
@@ -0,0 +1,155 @@
+(function()
+{
+	var _FILES = [];
+
+	function _convert(pString)
+	{
+		if ( typeof pString != 'string' )
+			return false;
+
+		if ( window.ActiveXObject )
+		{
+			var _xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
+			_xmlDoc.async = "false";
+			_xmlDoc.loadXML(pString);
+		}
+		else
+		{
+			var parser = new DOMParser();
+			var _xmlDoc = parser.parseFromString( pString, "text/xml" );
+		}
+
+		return _xmlDoc;
+	}
+
+	function _load(pFile)
+	{
+		pFile = this._PATH + 'xsl/' + pFile;
+		if ( !(_FILES[pFile]) )
+		{
+			var _data = null;
+			if ( document.implementation.createDocument )
+				_data = document.implementation.createDocument("", "", null);
+			else
+				_data = new ActiveXObject( "Msxml2.FreeThreadedDOMDocument" );
+
+			_data.async = false;
+			_data.load(pFile + '?' + Date.parse(new Date));
+			_FILES[pFile] = _data;
+		}
+		return _FILES[pFile];
+	}
+
+	function _parse()
+	{
+		if ( arguments.length == 1 )
+		{
+			pXML = _xml('root');
+			pXSL = arguments[0];
+		}
+		else
+		{
+			pXML = arguments[0];
+			pXSL = arguments[1];
+		}
+		
+		switch ( typeof pXML )
+		{
+			case 'object' :
+			break;
+			case 'string' :
+				if ( pXML.indexOf('<') == 0 )
+					pXML = _convert(pXML);
+				else
+					pXML = _load.call(this, pXML);
+			break;
+			default :
+				return { 'error' : 'invalid xml' } 
+		}
+		
+		switch ( typeof pXSL )
+		{
+			case 'object' :
+			break;
+			case 'string' :
+				pXSL = _load.call(this, pXSL);
+			break;
+			default :
+				return {'error':'invalid xsl'}
+		}
+
+		var fragment = null;
+		
+		if ( window.XSLTProcessor )
+		{
+			var xslProc = new XSLTProcessor();
+			xslProc.importStylesheet(pXSL);
+
+			if ( (arguments.length == 3) && (typeof arguments[2] == 'object') )
+			{
+				var params = arguments[2];
+				for (var i in params )
+					 xslProc.setParameter(null, i, params[i]);
+			}
+
+			fragment = xslProc.transformToFragment(pXML, document);
+
+			// para retornar valor igual ao ie.
+			var aux = document.createElement("div");
+			aux.appendChild(fragment);
+			fragment = aux.innerHTML;
+		}
+		else
+		{
+			var xslTemplate = new ActiveXObject("MSXML2.XSLTemplate");
+			xslTemplate.stylesheet = pXSL;
+
+			var xslProc = xslTemplate.createProcessor();
+			xslProc.input = pXML;
+
+			if ( (arguments.length == 3) && (typeof arguments[2] == 'object') )
+			{
+				var params = arguments[2];
+				for (var i in params )
+					 xslProc.addParameter(i, params[i], '');
+			}
+
+			xslProc.transform();
+			fragment = xslProc.output;
+		}
+		return fragment;
+	}
+
+	function _xml()
+	{
+		var a = false;
+		if ( document.implementation.createDocument )
+			a = document.implementation.createDocument("", "", null);
+		else if ( ActiveXObject )
+			a = new ActiveXObject("Msxml2.DOMDocument");
+
+		if ( arguments.length == 1 && typeof arguments[0] == 'string' )
+			a.appendChild(a.createElement(arguments[0]));
+		//with ( a )
+		//	appendChild(createProcessingInstruction("xml", "version='1.0'"));
+
+		return a;
+	}
+
+	function xtools()
+	{
+		var _argv = arguments;
+		this._PATH = ( _argv.length > 0 ) ? _argv[0] : '';
+
+		if ( this._PATH != '' && this._PATH.lastIndexOf('/') != (this._PATH.length - 1) )
+			this._PATH += '/';
+	}
+
+	xtools.prototype.convert	= _convert;
+	xtools.prototype.load		= _load;
+	xtools.prototype.parse		= _parse;
+	xtools.prototype.xml		= _xml;
+	
+	window.xtools = xtools;
+}
+)();
Index: sandbox/jabberit_messenger/trophy_expresso/js/json2.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/js/json2.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/js/json2.js	(revision 2397)
@@ -0,0 +1,29 @@
+if(!this.JSON){JSON={};}
+(function(){function f(n){return n<10?'0'+n:n;}
+if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key){return this.getUTCFullYear()+'-'+
+f(this.getUTCMonth()+1)+'-'+
+f(this.getUTCDate())+'T'+
+f(this.getUTCHours())+':'+
+f(this.getUTCMinutes())+':'+
+f(this.getUTCSeconds())+'Z';};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};}
+var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];if(typeof c==='string'){return c;}
+return'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';}
+function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key);}
+if(typeof rep==='function'){value=rep.call(holder,key,value);}
+switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';}
+gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==='[object Array]'){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||'null';}
+v=partial.length===0?'[]':gap?'[\n'+gap+
+partial.join(',\n'+gap)+'\n'+
+mind+']':'['+partial.join(',')+']';gap=mind;return v;}
+if(rep&&typeof rep==='object'){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==='string'){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}
+v=partial.length===0?'{}':gap?'{\n'+gap+partial.join(',\n'+gap)+'\n'+
+mind+'}':'{'+partial.join(',')+'}';gap=mind;return v;}}
+if(typeof JSON.stringify!=='function'){JSON.stringify=function(value,replacer,space){var i;gap='';indent='';if(typeof space==='number'){for(i=0;i<space;i+=1){indent+=' ';}}else if(typeof space==='string'){indent=space;}
+rep=replacer;if(replacer&&typeof replacer!=='function'&&(typeof replacer!=='object'||typeof replacer.length!=='number')){throw new Error('JSON.stringify');}
+return str('',{'':value});};}
+if(typeof JSON.parse!=='function'){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object'){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else{delete value[k];}}}}
+return reviver.call(holder,key,value);}
+cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return'\\u'+
+('0000'+a.charCodeAt(0).toString(16)).slice(-4);});}
+if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof reviver==='function'?walk({'':j},''):j;}
+throw new SyntaxError('JSON.parse');};}})();
Index: sandbox/jabberit_messenger/trophy_expresso/js/show_hidden.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/js/show_hidden.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/js/show_hidden.js	(revision 2397)
@@ -0,0 +1,106 @@
+(function()
+{
+	var _delay;
+
+	var _last_displayed;
+	var _timeout = false;
+
+	var _event_show = false;
+	var _event_hidden = false;
+	var count = 0;
+
+	function _config(pObj, pEvent, pHandler)
+	{
+		if ( typeof pObj == 'object' )
+		{
+			if ( pEvent.substring(0, 2) == 'on' )
+				pEvent = pEvent.substring(2, pEvent.length);
+
+			if ( pObj.addEventListener )
+				pObj.addEventListener(pEvent, pHandler, false);
+			else if ( pObj.attachEvent )
+				pObj.attachEvent('on' + pEvent, pHandler);
+		}
+	}
+
+	function hdObject()
+	{
+		if( _last_displayed )
+		{
+			_last_displayed.style.display = 'none';
+			_last_displayed = false;
+		}
+	}
+
+	function _hidden()
+	{
+		if( arguments.length > 0 )
+		{
+			if( arguments[0] )
+				clearTimeout(_timeout);
+			else
+				_timeout = setTimeout( hdObject, _delay);
+		}
+	}
+
+	function _show(_element)
+	{
+		_element.style.display = 'block';
+		_last_displayed = _element;
+	}
+
+	function _view()
+	{
+		if ( arguments.length == 3 )
+		{
+			var _event = [
+				'onclick',
+				'onmousedown',
+				'onmouseout',
+				'onmouseover',
+				'onmouseup'
+			];
+
+			_event_show = false;
+			_event_hidden = false;
+
+			for ( var i in _event )
+			{
+				if ( _event[i] == arguments[0] )
+					_event_show = arguments[0];
+
+				if ( _event[i] == arguments[1] )
+					_event_hidden = arguments[1];
+			}
+
+			if ( _event_show && _event_hidden )
+			{
+				var _element = false;
+				switch ( typeof arguments[2] )
+				{
+					case 'object' :
+						_element = arguments[2];
+					break;
+					case 'string' :
+						_element = document.getElementById(arguments[2]);
+					break;
+				}
+
+				if ( _element )
+					_show(_element);
+			}
+		}
+	}
+
+	function ShowHidden()
+	{
+		_delay = ( (arguments.length > 0) && !isNaN(arguments[0]) ) ? arguments[0] : 3000;
+	}
+
+	
+	ShowHidden.prototype.action  		= _view;
+	ShowHidden.prototype.hiddenObject	= _hidden;
+    
+	window.ShowHidden					= ShowHidden;
+    
+})();
Index: sandbox/jabberit_messenger/trophy_expresso/js/trophyim.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/js/trophyim.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/js/trophyim.js	(revision 2397)
@@ -0,0 +1,1412 @@
+/**
+ *   This program is distributed under the terms of the MIT license.
+ *   Please see the LICENSE file for details.
+ *
+ *   Copyright 2008 Michael Garvin
+ */
+
+var TROPHYIM_BOSH_SERVICE	= "/proxy/xmpp-httpbind";  //Change to suit
+
+var TROPHYIM_LOG_LINES		= 200;
+
+var TROPHYIM_LOGLEVEL		= 0; //0=debug, 1=info, 2=warn, 3=error, 4=fatal 
+
+var TROPHYIM_VERSION 		= "0.3";
+
+var TROPHYIM_RESOURCE		= "/JABBERITWEB"; 
+
+//Uncomment to make session reattachment work
+//var TROPHYIM_JSON_STORE = "json_store.php";
+
+/** Object: DOMObjects
+ *  This class contains builders for all the DOM objects needed by TrophyIM
+ */
+DOMObjects = {
+    /** Function: xmlParse
+     *  Cross-browser alternative to using innerHTML
+     *  Parses given string, returns valid DOM HTML object
+     *
+     *  Parameters:
+     *    (String) xml - the xml string to parse
+     */
+    xmlParse : function(xmlString) {
+        var xmlObj = this.xmlRender(xmlString);
+        if(xmlObj) {
+            try { //Firefox, Gecko, etc
+                if (this.processor == undefined) {
+                    this.processor = new XSLTProcessor();
+                    this.processor.importStylesheet(this.xmlRender(
+                    '<xsl:stylesheet version="1.0"\
+                    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\
+                    <xsl:output method="html" indent="yes"/><xsl:template\
+                    match="@*|node()"><xsl:copy><xsl:copy-of\
+                    select="@*|node()"/></xsl:copy></xsl:template>\
+                    </xsl:stylesheet>'));
+                }
+                var htmlObj =
+                this.processor.transformToDocument(xmlObj).documentElement;
+                //Safari has a quirk where it wraps dom elements in <html><body>
+                if (htmlObj.tagName.toLowerCase() == 'html') {
+                    htmlObj = htmlObj.firstChild.firstChild;
+                }
+                return document.importNode(htmlObj, true);
+            } catch(e) {
+                try { //IE is so very very special
+                    var htmlObj = document.importNode(xmlObj.documentElement, true);
+                    if (htmlObj.tagName.toLowerCase() == "div") {
+                        var div_wrapper = document.createElement('div');
+                        div_wrapper.appendChild(htmlObj);
+                        if(div_wrapper.innerHTML) {
+                            div_wrapper.innerHTML = div_wrapper.innerHTML;
+                        }
+                        htmlObj = div_wrapper.firstChild;
+                    }
+                    return htmlObj;
+                } catch(e) {
+                    alert(
+                    "TrophyIM Error: Cannot add html to page" + e.message);
+                }
+            }
+        }
+    },
+    /** Function: xmlRender
+     *  Uses browser-specific methods to turn given string into xml object
+     *
+     *  Parameters:
+     *    (String) xml - the xml string to parse
+     */
+    xmlRender : function(xmlString) {
+        try {//IE
+            var renderObj = new ActiveXObject("Microsoft.XMLDOM");
+            renderObj.async="false";
+            if(xmlString) {
+                renderObj.loadXML(xmlString);
+            }
+        } catch (e) {
+            try { //Firefox, Gecko, etc
+                if (this.parser == undefined) {
+                    this.parser = new DOMParser();
+                }
+                var renderObj = this.parser.parseFromString(xmlString,
+                "application/xml");
+            } catch(e) {
+                alert("TrophyIM Error: Cannot create new html for page");
+            }
+        }
+
+        return renderObj;
+    },
+    /** Function: getHTML
+     *  Returns named HTML snippet as DOM object
+     *
+     *  Parameters:
+     *    (String) name - name of HTML snippet to retrieve (see HTMLSnippets
+     *    object)
+     */
+    getHTML : function(page)
+	{
+        return this.xmlParse(HTMLSnippets[page]);
+    },
+	
+    /** Function: getScript
+     *  Returns script object with src to given script
+     *
+     *  Parameters:
+     *    (String) script - name of script to put in src attribute of script
+     *    element
+     */
+    getScript : function(script)
+	{
+        var newscript = document.createElement('script');
+        newscript.setAttribute('src', script);
+        newscript.setAttribute('type', 'text/javascript');
+        return newscript;
+    }
+};
+
+/** Object: TrophyIM
+ *
+ *  This is the actual TrophyIM application.  It searches for the
+ *  'trophyimclient' element and inserts itself into that.
+ */
+TrophyIM = {
+    
+	statusConn : { connected : false },
+	
+	/** Constants:
+     *
+     *    (Boolean) stale_roster - roster is stale and needs to be rewritten.
+     */
+    constants : {stale_roster: false},
+    
+	/** Object: chatHistory
+     *
+     *  Stores chat history (last 10 message) and current presence of active
+     *  chat tabs.  Indexed by jid.
+     */
+    chatHistory : {},
+    
+    /** Object: activeChats
+     *
+     *  This object stores the currently active chats.
+     */
+    activeChats : {current: null, divs: {}},
+    
+     /** Function: setCookie
+     *
+     *  Sets cookie name/value pair.  Date and path are auto-selected.
+     *
+     *  Parameters:
+     *    (String) name - the name of the cookie variable
+     *    (String) value - the value of the cookie variable
+     */
+    
+	setCookie : function(name, value)
+	{
+        var expire = new Date();
+        expire.setDate(expire.getDate() + 365);
+        document.cookie = name + "=" + value + "; expires=" + expire.toGMTString();
+    },
+    
+	/** Function: delCookie
+     *
+     *  Deletes cookie
+     *
+     *  Parameters:
+     *    (String) name) - the name of the cookie to delete
+     */
+    
+	delCookie : function(name)
+	{
+        var expire = new Date();
+        expire.setDate(expire.getDate() - 365);
+        document.cookie = name + "= ; expires=" + expire.toGMTString();
+        delete TrophyIM.cookies[name];
+    },
+    
+	/** Function: getCookies
+     *
+     *  Retrieves all trophyim cookies into an indexed object.  Inteneded to be
+     *  called once, at which time the app refers to the returned object instead
+     *  of re-parsing the cookie string every time.
+     *
+     *  Each cookie is also re-applied so as to refresh the expiry date.
+     */
+    
+	getCookies : function()
+	{
+        var cObj = {};
+        var cookies = document.cookie.split(';');
+        for (var c in cookies) {
+            while (cookies[c].charAt(0)==' ') { 
+                cookies[c] = cookies[c].substring(1,cookies[c].length);
+            }
+            if (cookies[c].substr(0, 8) == "trophyim") {
+                var nvpair = cookies[c].split("=", 2);
+                cObj[nvpair[0]] = nvpair[1];
+                TrophyIM.setCookie(nvpair[0], nvpair[1]);
+            }
+        }
+        return cObj;
+    },
+	
+    /** Function: load
+     *
+     *  This function searches for the trophyimclient div and loads the client
+     *  into it.
+     */
+
+	load : function()
+	{
+		if (!TrophyIM.statusConn.connected)
+		{
+			TrophyIM.cookies = TrophyIM.getCookies();
+			
+			//Load other .js scripts needed
+			document.getElementsByTagName('head')[0].appendChild(DOMObjects.getScript(path_jabberit + 'strophejs/strophe.js'));
+			document.getElementsByTagName('head')[0].appendChild(DOMObjects.getScript(path_jabberit + 'strophejs/md5.js'));
+			document.getElementsByTagName('head')[0].appendChild(DOMObjects.getScript(path_jabberit + 'strophejs/sha1.js'));
+			document.getElementsByTagName('head')[0].appendChild(DOMObjects.getScript(path_jabberit + 'strophejs/b64.js'));
+			document.getElementsByTagName('head')[0].appendChild(DOMObjects.getScript(path_jabberit + 'js/json2.js')); //Keep this script last
+			//Wait a second to give scripts time to load
+			setTimeout("TrophyIM.showLogin()", 500);
+		}
+		else
+		{
+			loadIM.rosterDiv();
+		}
+   },
+   
+    /** Function: storeData
+     *
+     *  Store all our data in the JSONStore, if it is active
+     */
+   storeData : function()
+   {
+        if ( TrophyIM.connection && TrophyIM.connection.connected )
+		{
+            TrophyIM.setCookie('trophyim_bosh_xid', TrophyIM.connection.jid + "|" +
+            TrophyIM.connection.sid + "|" +  TrophyIM.connection.rid);
+            TrophyIM.rosterObj.save();
+        }
+    },
+    /**  Function: showlogin
+     *
+     *   This function clears out the IM box and either redisplays the login
+     *   page, or re-attaches to Strophe, preserving the logging div if it
+     *   exists, or creating a new one of we are re-attaching.
+     */
+    showLogin : function()
+	{
+        //JSON is the last script to load, so we wait on it
+        //Added Strophe check too because of bug where it's sometimes missing
+        if (typeof(JSON) != undefined && typeof(Strophe) != undefined)
+        {
+        	TrophyIM.JSONStore = new TrophyIMJSONStore();
+        	
+            if ( TrophyIM.JSONStore.store_working && TrophyIM.cookies['trophyim_bosh_xid'] )
+            {
+            	var xids = TrophyIM.cookies['trophyim_bosh_xid'].split("|");
+                TrophyIM.delCookie('trophyim_bosh_xid');
+                TrophyIM.constants.stale_roster = true;
+    			
+				TrophyIM.connection				= new Strophe.Connection(TROPHYIM_BOSH_SERVICE);
+                TrophyIM.connection.rawInput	= TrophyIM.rawInput;
+                TrophyIM.connection.rawOutput	= TrophyIM.rawOutput;
+                Strophe.log = TrophyIM.log;
+                Strophe.info('Attempting Strophe attach.');
+                TrophyIM.connection.attach(xids[0], xids[1], xids[2], TrophyIM.onConnect);
+                TrophyIM.onConnect(Strophe.Status.CONNECTED);
+            }
+            else
+            {
+				// List Contact
+				loadIM.rosterDiv();
+				
+				if ( loadIM.getUserCurrent() != null )
+				{
+					TrophyIM.login( loadIM.getUserCurrent().jid, loadIM.getUserCurrent().password );
+				}
+				else
+				{
+					loadIM.loginPage();
+				}
+            }
+        }
+        else
+        {
+        	setTimeout("TrophyIM.showLogin()", 500);
+        }
+    },
+    
+	/** Function: log
+     *
+     *  This function logs the given message in the trophyimlog div
+     *
+     *  Parameter: (String) msg - the message to log
+     */
+    
+    log : function(level, msg)
+    {
+        if (TrophyIM.logging_div && level >= TROPHYIM_LOGLEVEL) {
+            while(TrophyIM.logging_div.childNodes.length > TROPHYIM_LOG_LINES) {
+                TrophyIM.logging_div.removeChild(
+                TrophyIM.logging_div.firstChild);
+            }
+            var msg_div = document.createElement('div');
+            msg_div.className = 'trophyimlogitem';
+            msg_div.appendChild(document.createTextNode(msg));
+            TrophyIM.logging_div.appendChild(msg_div);
+            TrophyIM.logging_div.scrollTop = TrophyIM.logging_div.scrollHeight;
+        }
+    },
+	
+    /** Function: rawInput
+     *
+     *  This logs the packets actually recieved by strophe at the debug level
+     */
+    rawInput : function (data)
+	{
+        Strophe.debug("RECV: " + data);
+    },
+	
+    /** Function: rawInput
+     *
+     *  This logs the packets actually recieved by strophe at the debug level
+     */
+    rawOutput : function (data)
+	{
+        Strophe.debug("SEND: " + data);
+    },
+	
+    /** Function: login
+     *
+     *  This function logs into server using information given on login page.
+     *  Since the login page is where the logging checkbox is, it makes or
+     *  removes the logging div and cookie accordingly.
+     *
+     */
+    login : function()
+	{
+		if (TrophyIM.JSONStore.store_working)
+		{ 
+		   //In case they never logged out
+            TrophyIM.JSONStore.delData(['groups','roster', 'active_chat', 'chat_history']);
+        }
+
+		TrophyIM.connection				= new Strophe.Connection(TROPHYIM_BOSH_SERVICE);
+        TrophyIM.connection.rawInput	= TrophyIM.rawInput;
+        TrophyIM.connection.rawOutput	= TrophyIM.rawOutput;
+        Strophe.log 					= TrophyIM.log;
+        
+		if ( arguments.length > 0 )
+		{
+			var barejid = arguments[0];
+			var password = arguments[1];
+			
+			TrophyIM.connection.connect(barejid + TROPHYIM_RESOURCE, password, TrophyIM.onConnect);
+		}
+		else
+		{
+			var barejid		= document.getElementById('trophyimjid').value
+			var fulljid		= barejid + TROPHYIM_RESOURCE;
+			var password	= document.getElementById('trophyimpass').value;
+			var button		= document.getElementById('trophyimconnect');
+			
+			loadIM.setUserCurrent( barejid, password);
+			
+			if ( button.value == 'connect' )
+			{
+				button.value = 'disconnect';
+				TrophyIM.connection.connect(fulljid, password, TrophyIM.onConnect);
+			}
+			else
+			{
+				button.value = 'connect';
+				TrophyIM.connection.disconnect();
+			}
+		}
+
+		TrophyIM.setCookie('trophyimjid', barejid);
+
+    },
+	
+    /** Function: logout
+     *
+     *  Logs into fresh session through Strophe, purging any old data.
+     */
+    logout : function()
+	{
+        TrophyIM.delCookie('trophyim_bosh_xid');
+        delete TrophyIM['cookies']['trophyim_bosh_xid'];
+        
+		if (TrophyIM.JSONStore.store_working)
+		{
+            TrophyIM.JSONStore.delData(['groups','roster', 'active_chat', 'chat_history']);
+        }
+        
+		for (var chat in TrophyIM.activeChats['divs'])
+		{
+            delete TrophyIM.activeChats['divs'][chat];
+        }
+		
+        TrophyIM.activeChats = {current: null, divs: {}},
+        TrophyIM.connection.disconnect();
+        TrophyIM.showLogin();
+		
+    },
+	
+    /** Function onConnect
+     *
+     *  Callback given to Strophe upon connection to BOSH proxy.
+     */
+    onConnect : function(status)
+	{
+		if (status == Strophe.Status.CONNECTING)
+		{
+			Strophe.info('Strophe is connecting.');
+        }
+		
+		if (status == Strophe.Status.CONNFAIL)
+		{
+			Strophe.info('Strophe failed to connect.');
+            TrophyIM.delCookie('trophyim_bosh_xid');
+            TrophyIM.showLogin();
+        }
+		
+		if (status == Strophe.Status.DISCONNECTING)
+		{
+			Strophe.info('Strophe is disconnecting.');
+        }
+		
+		if (status == Strophe.Status.DISCONNECTED)
+		{
+			Strophe.info('Strophe is disconnected.');
+            TrophyIM.delCookie('trophyim_bosh_xid');
+            TrophyIM.showLogin();
+        }
+		
+		if (status == Strophe.Status.CONNECTED)
+		{
+			loadIM.setStatusJabber('Disponível','available');
+			TrophyIM.statusConn.connected = true;
+            TrophyIM.showClient();
+			Strophe.info('Strophe is connected.');
+        }
+    },
+
+    /** Function: showClient
+     *
+     *  This clears out the main div and puts in the main client.  It also
+     *  registers all the handlers for Strophe to call in the client.
+     */
+    showClient : function()
+	{
+        TrophyIM.setCookie('trophyim_bosh_xid', TrophyIM.connection.jid + "|" +
+        TrophyIM.connection.sid + "|" +  TrophyIM.connection.rid);
+		
+        TrophyIM.rosterObj = new TrophyIMRoster();
+        TrophyIM.connection.addHandler(TrophyIM.onVersion, Strophe.NS.VERSION, 'iq', null, null, null);
+        TrophyIM.connection.addHandler(TrophyIM.onRoster, Strophe.NS.ROSTER, 'iq', null, null, null);
+        TrophyIM.connection.addHandler(TrophyIM.onPresence, null, 'presence', null, null, null);
+        TrophyIM.connection.addHandler(TrophyIM.onMessage, null, 'message', null, null,  null);
+        
+		//Get roster then announce presence.
+        TrophyIM.connection.send($iq({type: 'get', xmlns: Strophe.NS.CLIENT}).c('query', {xmlns: Strophe.NS.ROSTER}).tree());
+        TrophyIM.connection.send($pres().tree());
+		setTimeout("TrophyIM.renderRoster()", 1000);
+    },
+	
+    /** Function: clearClient
+     *
+     *  Clears out client div, preserving and returning existing logging_div if
+     *  one exists
+     */
+    clearClient : function() {
+        if(TrophyIM.logging_div) {
+            var logging_div = TrophyIM.client_div.removeChild(
+            document.getElementById('trophyimlog'));
+        } else {
+            var logging_div = null;
+        }
+        while(TrophyIM.client_div.childNodes.length > 0) {
+            TrophyIM.client_div.removeChild(TrophyIM.client_div.firstChild);
+        }
+        return logging_div;
+    },
+    /** Function: onVersion
+     *
+     *  jabber:iq:version query handler
+     */
+    onVersion : function(msg) {
+        Strophe.debug("Version handler");
+        if (msg.getAttribute('type') == 'get') {
+            var from = msg.getAttribute('from');
+            var to = msg.getAttribute('to');
+            var id = msg.getAttribute('id');
+            var reply = $iq({type: 'result', to: from, from: to, id: id}).c('query',
+            {name: "TrophyIM", version: TROPHYIM_VERSION, os:
+            "Javascript-capable browser"});
+            TrophyIM.connection.send(reply.tree());
+        }
+        return true;
+    },
+    /** Function: onRoster
+     *
+     *  Roster iq handler
+     */
+    onRoster : function(msg)
+	{
+		//Strophe.debug("Roster handler");
+		
+        var roster_items = msg.firstChild.getElementsByTagName('item');
+		
+		for (var i = 0; i < roster_items.length; i++)
+		{
+			var groups = roster_items[i].getElementsByTagName('group');
+            var group_array = new Array();
+            
+			for (var g = 0; g < groups.length; g++)
+			{
+				group_array[group_array.length] = groups[g].firstChild.nodeValue;
+            }
+			with ( roster_items[i] )
+			{
+				TrophyIM.rosterObj.addContact(getAttribute('jid'), getAttribute('subscription'), getAttribute('name'), group_array);
+			}
+        }
+        
+		if ( msg.getAttribute('type') == 'set' )
+		{
+			TrophyIM.connection.send($iq({type: 'reply', id:
+            msg.getAttribute('id'), to: msg.getAttribute('from')}).tree());
+        }
+        
+		return true;
+    },
+    /** Function: onPresence
+     *
+     *  Presence handler
+     */
+    onPresence : function(msg)
+	{
+		Strophe.debug("Presence handler");
+        var type = msg.getAttribute('type') ? msg.getAttribute('type') : 'available';
+        var show = msg.getElementsByTagName('show').length ? Strophe.getText(msg.getElementsByTagName('show')[0]) : type;
+        var status = msg.getElementsByTagName('status').length ? Strophe.getText(msg.getElementsByTagName('status')[0]) : '';
+        var priority = msg.getElementsByTagName('priority').length ? parseInt(Strophe.getText(msg.getElementsByTagName('priority')[0])) : 0;
+		TrophyIM.rosterObj.setPresence(msg.getAttribute('from'), priority, show, status);
+		
+        return true;
+    },
+    /** Function: onMessage
+     *
+     *  Message handler
+     */
+    onMessage : function(msg)
+    {
+        Strophe.debug("Message handler");
+    
+        var from = msg.getAttribute('from');
+        var type = msg.getAttribute('type');
+        var elems = msg.getElementsByTagName('body');
+
+        if ( (type == 'chat' || type == 'normal') && elems.length > 0 )
+        {
+            var barejid		= Strophe.getBareJidFromJid(from);
+            var jid_lower	= barejid.toLowerCase();
+            var contact	= "";
+        	
+            if( TrophyIM.rosterObj.roster[barejid.toLowerCase()]['contact']['name'] )
+            {
+            	contact = TrophyIM.rosterObj.roster[barejid.toLowerCase()]['contact']['name'];
+            }
+            else
+            {
+            	contact = barejid.toLowerCase();
+            	contact = contact.substring(0, contact.indexOf('@'));
+            }	
+            
+            var message = 
+            { 
+            	contact : "<font style='font-weight:bold; color:black;'>" + contact + "</font>",
+            	msg		: Strophe.getText(elems[0])	
+            };
+
+            TrophyIM.makeChat(from); //Make sure we have a chat window
+            TrophyIM.addMessage(message, jid_lower);
+        }
+        return true;
+    },
+    /** Function: makeChat
+     *
+     *  Make sure chat window to given fulljid exists, switching chat context to
+     *  given resource
+     */
+    makeChat : function(fulljid)
+    {
+    	
+    	var barjid = Strophe.getBareJidFromJid(fulljid);
+    	
+    	var paramsChatBox =
+    	{
+    			'idChatBox' 	: barjid + "__chatBox",
+    			'jidTo'			: barjid,
+				'path_jabberit' : path_jabberit
+    	};
+    	
+    	var winChatBox = 
+    	{
+   			 id_window		: "window_chat_area_" + barjid,
+			 width			: 387,
+			 height			: 365,
+			 top			: 100,
+			 left			: 400,
+			 draggable		: true,
+			 visible		: "display",
+			 resizable		: true,
+			 zindex			: loadIM.getZIndex(),
+			 title			: barjid.substring(0, barjid.indexOf('@')),
+			 closeAction	: "hidden",
+			 content		: loadIM.parse("chat_box","chatBox.xsl", paramsChatBox)	
+    	}
+    	
+    	_winBuild(winChatBox)
+		
+		loadIM.configEvents(
+			document.getElementById( barjid + '__sendBox'),
+			'onkeyup', function(e)
+			{
+				if( e.keyCode == 13 )
+				{
+					TrophyIM.sendMessage( barjid );
+					document.getElementById( barjid + '__sendBox').value = '';
+					return false;
+				}
+			}
+		);
+    },
+
+	/** Function addContacts
+	 * 
+	 *  Parameters:
+	 *  	(string) jid 
+	 * 		(string) name
+	 * 		(string) group	 
+	 */
+	
+	addContacts : function( jidFrom, jidTo, name, group )
+	{
+		var newPresence = $pres({from: jidFrom, to: jidTo, type: 'subscribe'}).tree();
+		
+		TrophyIM.connection.send(newPresence);
+
+		var newContact = $iq({type: 'set', id: 'set1'});
+			newContact = newContact.c('query').attrs({xmlns : 'jabber:iq:roster'});
+			newContact = newContact.c('item').attrs({jid: jid, name: name, ask:'subscribe', subscription :'none'});
+			newContact = newContact.c('group').t(group).tree();
+
+		TrophyIM.connection.send(newContact);
+	},
+
+    /** Function: addMessage
+     *
+     *  Parameters:
+     *    (string) msg - the message to add
+     *    (string) jid - the jid of chat box to add the message to.
+     */
+	
+    addMessage : function(msg, jid)
+    {
+    	var chatBox		= document.getElementById(jid + "__chatBox");
+    	var messageDiv	= document.createElement("div");
+    	
+		messageDiv.style.margin = "3px 0px 3px 3px";
+    	messageDiv.innerHTML	= msg.contact + " : " + msg.msg ;
+    		
+    	chatBox.appendChild(messageDiv);
+    	chatBox.scrollTop = chatBox.scrollHeight;
+    },
+	
+    /** Function: renderRoster
+     *
+     *  Renders roster, looking only for jids flagged by setPresence as having
+     *  changed.
+     */
+    
+	renderRoster : function()
+	{
+		if( TrophyIM.rosterObj.changes.length > 0 )
+		{
+			var roster_div = document.getElementById('JabberIMRoster');
+			
+			if( roster_div )
+			{
+				var users = new Array();
+				
+				for( var user in TrophyIM.rosterObj.roster )
+				{
+					users[users.length] = TrophyIM.rosterObj.roster[user].contact.jid;
+				}
+				
+				users.sort();
+				
+				var groups = new Array();
+				
+				for (var group in TrophyIM.rosterObj.groups)
+				{
+					if( group )
+						groups[groups.length] = group;
+                }
+                
+				groups.sort();
+				
+				for ( var i = 0; i < groups.length; i++ )
+				{
+					TrophyIM.renderGroups( groups[i] , roster_div.lastChild );	
+				}
+				
+				TrophyIM.renderItensGroup(users, roster_div);
+			}
+		}
+			
+		setTimeout("TrophyIM.renderRoster()", 1000 );		
+	},
+	
+    /** Function: renderGroups
+     *
+     *
+     */
+	
+	renderGroups: function( nameGroup, element )
+	{
+		var _addGroup = function()
+		{
+			var paramsGroup = 
+			{
+				'nameGroup' 	: arguments[0],
+				'path_jabberit' : path_jabberit
+			}
+			
+			element.innerHTML += loadIM.parse("group","groups.xsl", paramsGroup);
+			
+		}
+
+		if( !element.hasChildNodes() )
+		{
+			_addGroup(nameGroup);	
+		}
+		else
+		{
+			var elementChild = element;
+			var flag = false;
+			
+			while ( elementChild )
+			{
+				if ( elementChild.childNodes[0].childNodes[0].firstChild.nodeValue === nameGroup )
+				{
+					flag = true;
+				}
+				
+				elementChild = elementChild.nextSibling;
+			}
+			
+			if( !flag )
+				_addGroup( nameGroup );
+		}
+		
+	},
+
+    /** Function: renderItensGroup
+     *
+     *
+     */
+
+	renderItensGroup : function( users, element )
+	{
+		var addItemGroup = function()
+		{
+			if( arguments.length > 0 )
+			{
+				var objContact	= arguments[0];
+				var element		= arguments[1];
+				var itensJid	= document.getElementById( 'itenContact_' + objContact.contact.jid );
+				
+				if( itensJid == null )
+				{
+					// Name
+					var nameContact = "";					
+					
+					if ( objContact.contact.name ) 
+						nameContact = objContact.contact.name;
+					else
+					{
+						nameContact = objContact.contact.jid;
+						nameContact = nameContact.substring(0, nameContact.indexOf('@'));
+					}
+					
+					// Presence e Status
+					var presence 		= "unavailable";
+					var status	 		= "";
+					var statusDisplay	= "none";
+					
+					if (objContact.presence)
+					{
+						for (var resource in objContact.presence)
+						{
+							presence = objContact.presence[resource].show;
+							
+							if( objContact.presence[resource].status )
+							{
+								status 			= " ( " + objContact.presence[resource].status + " ) ";
+								statusDisplay	= "block";
+							}
+						}
+					}
+					
+					var paramsContact =
+					{
+						'nameContact' 	: nameContact,
+						'jid'		  	: objContact.contact.jid,	
+						'id'		  	: 'itenContact_' + objContact.contact.jid,
+						'presence'	  	: presence,
+						'path_jabberit'	: path_jabberit,
+						'status'	  	: status,
+						'statusDisplay'	: statusDisplay
+					}
+					
+					if( element.id == "rosterIM_with_groups" )
+					{
+						var elementChild = element;
+				
+						while ( elementChild )
+						{
+							if( elementChild.childNodes[0].childNodes[0].firstChild.nodeValue == objContact.contact.groups[0] )
+								elementChild.childNodes[0].innerHTML += loadIM.parse("itens_group", "itensGroup.xsl", paramsContact);
+
+							elementChild = elementChild.nextSibling;
+						}
+					}
+					else
+					{
+						element.innerHTML += loadIM.parse("itens_group", "itensGroup.xsl", paramsContact);							
+					}
+				}
+				else
+				{
+					
+					// Presence e Status
+					var presence 		= "unavailable";
+					var status	 		= "";
+					var statusDisplay	= "none";
+					
+					if (objContact.presence)
+					{
+						for (var resource in objContact.presence)
+						{
+							presence = objContact.presence[resource].show;
+							
+							if( objContact.presence[resource].status )
+							{
+								status 			= objContact.presence[resource].status;
+								statusDisplay	= "block";
+							}
+						}
+					}
+
+					itensJid.style.background			= "url('"+path_jabberit+"templates/default/images/" + presence + ".gif')no-repeat center left";
+					itensJid.lastChild.style.display 	= statusDisplay;
+					itensJid.lastChild.innerHTML		= " ( " + status + " ) ";
+				}
+			}
+		}
+		
+		for( var i = 0 ; i < users.length; i++ )
+		{
+			if( TrophyIM.rosterObj.roster[users[i]].contact.groups )
+				if( TrophyIM.rosterObj.roster[users[i]].contact.groups[0] )
+					addItemGroup(TrophyIM.rosterObj.roster[users[i]], element.lastChild );
+				else
+					addItemGroup(TrophyIM.rosterObj.roster[users[i]], element.firstChild );
+			else
+				addItemGroup(TrophyIM.rosterObj.roster[users[i]], element.firstChild );
+		}	
+	},
+
+    /** Function: rosterClick
+     *
+     *  Handles actions when a roster item is clicked
+     */
+    
+	rosterClick : function(fulljid)
+	{
+        TrophyIM.makeChat(fulljid);
+    },
+
+
+	/** Function SetAutorization
+	 * 
+	 */
+
+	setAutorization : function( jid )
+	{
+	   //<presence to='user@example.com' from='contact@example.org' type='subscribed'/>
+	   //var _autorization = $pres( ).attrs( {to: jid, from: loadIM.getUserCurrent(), type:'subscribed'}).tree();
+		
+	   TrophyIM.connection.send($pres( ).attrs( {to: jid, from: loadIM.getUserCurrent().jid, type:'subscribed'}).tree());
+	},
+    
+	/** Function: setPresence
+     *
+     */
+
+	setPresence : function( show )
+	{
+		TrophyIM.connection.send($pres( ).c('show').t(show).tree());
+	},
+	
+	/** Function: sendMessage
+     *
+     *  Send message from chat input to user
+     */
+     
+    sendMessage : function()
+    {
+
+    	if( arguments.length > 0 )
+    	{
+    		var jidTo = arguments[0];
+    		var message_input = document.getElementById(jidTo + "__sendBox").value;
+            
+    		if( ( message_input = message_input.replace(/^\s+|\s+$|^\n|\n$/g,"") ) != "" )
+    		{
+	    		// Send Message
+	    		TrophyIM.connection.send($msg({to: jidTo, from: TrophyIM.connection.jid, type: 'chat'}).c('body').t(message_input).tree());
+	    		
+	    		var message = 
+	    		{
+	    				contact : "<font style='font-weight:bold; color:red;'>" + "Eu" + "</font>",
+	    				msg : message_input
+	    		}
+	    		
+	    		// Add Message in chatBox;
+	    		TrophyIM.addMessage( message, jidTo);
+				document.getElementById(jidTo + "__sendBox").value = "";
+				document.getElementById(jidTo + "__sendBox").focus();
+    		}
+    	}
+    }
+};
+
+/** Class: TrophyIMRoster
+ *
+ *
+ *  This object stores the roster and presence info for the TrophyIMClient
+ *
+ *  roster[jid_lower]['contact']
+ *  roster[jid_lower]['presence'][resource]
+ */
+function TrophyIMRoster()
+{
+    /** Constants: internal arrays
+     *    (Object) roster - the actual roster/presence information
+     *    (Object) groups - list of current groups in the roster
+     *    (Array) changes - array of jids with presence changes
+     */
+    if (TrophyIM.JSONStore.store_working)
+	{
+        var data = TrophyIM.JSONStore.getData(['roster', 'groups']);
+        this.roster = (data['roster'] != null) ? data['roster'] : {};
+        this.groups = (data['groups'] != null) ? data['groups'] : {};
+    }
+	else
+	{
+        this.roster = {};
+        this.groups = {};
+    }
+    this.changes = new Array();
+    
+	if (TrophyIM.constants.stale_roster)
+	{
+        for (var jid in this.roster)
+		{
+			this.changes[this.changes.length] = jid;
+        }
+    }
+	
+    /** Function: addContact
+     *
+     *  Adds given contact to roster
+     *
+     *  Parameters:
+     *    (String) jid - bare jid
+     *    (String) subscription - subscription attribute for contact
+     *    (String) name - name attribute for contact
+     *    (Array) groups - array of groups contact is member of
+     */
+    
+	this.addContact = function(jid, subscription, name, groups)
+	{
+        var contact = { jid:jid, subscription:subscription, name:name, groups:groups }
+        var jid_lower = jid.toLowerCase();
+
+		if ( this.roster[jid_lower] )
+		{
+            this.roster[jid_lower]['contact'] = contact;
+        }
+		else
+		{
+            this.roster[jid_lower] = {contact:contact};
+        }
+
+		groups = groups ? groups : [''];
+        
+		for ( var g = 0; g < groups.length; g++ )
+		{
+			if ( !this.groups[groups[g]] )
+			{
+                this.groups[groups[g]] = {};
+            }
+            
+			this.groups[groups[g]][jid_lower] = jid_lower;
+        }
+    }
+    /** Function: getContact
+     *
+     *  Returns contact entry for given jid
+     *
+     *  Parameter: (String) jid - jid to return
+     */
+    this.getContact = function(jid)
+	{
+        if (this.roster[jid.toLowerCase()])
+		{
+            return this.roster[jid.toLowerCase()]['contact'];
+        }
+    }
+    /** Function: setPresence
+     *
+     *  Sets presence
+     *
+     *  Parameters:
+     *    (String) fulljid: full jid with presence
+     *    (Integer) priority: priority attribute from presence
+     *    (String) show: show attribute from presence
+     *    (String) status: status attribute from presence
+     */
+    
+	this.setPresence = function(fulljid, priority, show, status)
+	{
+		var barejid = Strophe.getBareJidFromJid(fulljid);
+        var resource = Strophe.getResourceFromJid(fulljid);
+        var jid_lower = barejid.toLowerCase();
+        
+		if( show != 'unavailable')
+		{
+            if (!this.roster[jid_lower])
+			{
+                this.addContact(barejid, 'not-in-roster');
+            }
+            var presence =
+			{
+                resource:resource, priority:priority, show:show, status:status
+            }
+            
+			if (!this.roster[jid_lower]['presence'])
+			{
+                this.roster[jid_lower]['presence'] = {}
+            }
+            this.roster[jid_lower]['presence'][resource] = presence
+        }
+		else if (this.roster[jid_lower] && this.roster[jid_lower]['presence'] && this.roster[jid_lower]['presence'][resource])
+		{
+            delete this.roster[jid_lower]['presence'][resource];
+        }
+        
+		this.addChange(jid_lower);
+        
+		if (TrophyIM.activeChats['divs'][jid_lower])
+		{
+            TrophyIM.setTabPresence(jid_lower, TrophyIM.activeChats['divs'][jid_lower]['tab']);
+        }
+    }
+    /** Function: addChange
+     *
+     *  Adds given jid to this.changes, keeping this.changes sorted and
+     *  preventing duplicates.
+     *
+     *  Parameters
+     *    (String) jid : jid to add to this.changes
+     */
+    this.addChange = function(jid) {
+        for (var c = 0; c < this.changes.length; c++) {
+            if (this.changes[c] == jid) {
+                return;
+            }
+        }
+        this.changes[this.changes.length] = jid;
+        this.changes.sort();
+    }
+    /** Function: getPresence
+     *
+     *  Returns best presence for given jid as Array(resource, priority, show,
+     *  status)
+     *
+     *  Parameter: (String) fulljid - jid to return best presence for
+     */
+    this.getPresence = function(fulljid) {
+        var jid = Strophe.getBareJidFromJid(fulljid);
+        var current = null;
+        if (this.roster[jid.toLowerCase()] &&
+        this.roster[jid.toLowerCase()]['presence']) {
+            for (var resource in this.roster[jid.toLowerCase()]['presence']) {
+                var presence = this.roster[jid.toLowerCase()]['presence'][resource];
+                if (current == null) {
+                    current = presence
+                } else {
+                    if(presence['priority'] > current['priority'] && ((presence['show'] == "chat"
+                    || presence['show'] == "available") || (current['show'] != "chat" ||
+                    current['show'] != "available"))) {
+                        current = presence
+                    }
+                }
+            }
+        }
+        return current;
+    }
+    /** Function: groupHasChanges
+     *
+     *  Returns true if current group has members in this.changes
+     *
+     *  Parameters:
+     *    (String) group - name of group to check
+     */
+    this.groupHasChanges = function(group) {
+        for (var c = 0; c < this.changes.length; c++) {
+            if (this.groups[group][this.changes[c]]) {
+                return true;
+            }
+        }
+        return false;
+    }
+    /** Fuction: save
+     *
+     *  Saves roster data to JSON store
+     */
+    this.save = function() {
+        if (TrophyIM.JSONStore.store_working) {
+            TrophyIM.JSONStore.setData({roster:this.roster,
+            groups:this.groups, active_chat:TrophyIM.activeChats['current'],
+            chat_history:TrophyIM.chatHistory});
+        }
+    }
+}
+/** Class: TrophyIMJSONStore
+ *
+ *
+ *  This object is the mechanism by which TrophyIM stores and retrieves its
+ *  variables from the url provided by TROPHYIM_JSON_STORE
+ *
+ */
+function TrophyIMJSONStore() {
+    this.store_working = false;
+    /** Function _newXHR
+     *
+     *  Set up new cross-browser xmlhttprequest object
+     *
+     *  Parameters:
+     *    (function) handler = what to set onreadystatechange to
+     */
+     this._newXHR = function (handler) {
+        var xhr = null;
+        if (window.XMLHttpRequest) {
+            xhr = new XMLHttpRequest();
+            if (xhr.overrideMimeType) {
+            xhr.overrideMimeType("text/xml");
+            }
+        } else if (window.ActiveXObject) {
+            xhr = new ActiveXObject("Microsoft.XMLHTTP");
+        }
+        return xhr;
+    }
+    /** Function getData
+     *  Gets data from JSONStore
+     *
+     *  Parameters:
+     *    (Array) vars = Variables to get from JSON store
+     *
+     *  Returns:
+     *    Object with variables indexed by names given in parameter 'vars'
+     */
+    this.getData = function(vars) {
+        if (typeof(TROPHYIM_JSON_STORE) != undefined) {
+            Strophe.debug("Retrieving JSONStore data");
+            var xhr = this._newXHR();
+            var getdata = "get=" + vars.join(",");
+            try {
+                xhr.open("POST", TROPHYIM_JSON_STORE, false);
+            } catch (e) {
+                Strophe.error("JSONStore open failed.");
+                return false;
+            }
+            xhr.setRequestHeader('Content-type',
+            'application/x-www-form-urlencoded');
+            xhr.setRequestHeader('Content-length', getdata.length);
+            xhr.send(getdata);
+            if (xhr.readyState == 4 && xhr.status == 200) {
+                try {
+                    var dataObj = JSON.parse(xhr.responseText);
+                    return this.emptyFix(dataObj);
+                } catch(e) {
+                    Strophe.error("Could not parse JSONStore response" +
+                    xhr.responseText);
+                    return false;
+                }
+            } else {
+                Strophe.error("JSONStore open failed. Status: " + xhr.status);
+                return false;
+            }
+        }
+    }
+    /** Function emptyFix
+     *    Fix for bugs in external JSON implementations such as
+     *    http://bugs.php.net/bug.php?id=41504.
+     *    A.K.A. Don't use PHP, people.
+     */
+    this.emptyFix = function(obj) {
+        if (typeof(obj) == "object") {
+            for (var i in obj) {
+                if (i == '_empty_') {
+                    obj[""] = this.emptyFix(obj['_empty_']);
+                    delete obj['_empty_'];
+                } else {
+                    obj[i] = this.emptyFix(obj[i]);
+                }
+            }
+        }
+        return obj
+    }
+    /** Function delData
+     *    Deletes data from JSONStore
+     * 
+     *  Parameters:
+     *    (Array) vars  = Variables to delete from JSON store
+     *
+     *  Returns:
+     *    Status of delete attempt.
+     */
+    this.delData = function(vars) {
+        if (typeof(TROPHYIM_JSON_STORE) != undefined) {
+            Strophe.debug("Retrieving JSONStore data");
+            var xhr = this._newXHR();
+            var deldata = "del=" + vars.join(",");
+            try {
+                xhr.open("POST", TROPHYIM_JSON_STORE, false);
+            } catch (e) {
+                Strophe.error("JSONStore open failed.");
+                return false;
+            }
+            xhr.setRequestHeader('Content-type',
+            'application/x-www-form-urlencoded');
+            xhr.setRequestHeader('Content-length', deldata.length);
+            xhr.send(deldata);
+            if (xhr.readyState == 4 && xhr.status == 200) {
+                try {
+                    var dataObj = JSON.parse(xhr.responseText);
+                    return dataObj;
+                } catch(e) {
+                    Strophe.error("Could not parse JSONStore response");
+                    return false;
+                }
+            } else {
+                Strophe.error("JSONStore open failed. Status: " + xhr.status);
+                return false;
+            }
+        }
+    }
+    /** Function setData
+     *    Stores data in JSONStore, overwriting values if they exist
+     *
+     *  Parameters:
+     *    (Object) vars : Object containing named vars to store ({name: value,
+     *    othername: othervalue})
+     *
+     *  Returns:
+     *    Status of storage attempt
+     */
+    this.setData = function(vars) {
+        if (typeof(TROPHYIM_JSON_STORE) != undefined) {
+            Strophe.debug("Storing JSONStore data");
+            var senddata = "set=" + JSON.stringify(vars);
+            var xhr = this._newXHR();
+            try {
+                xhr.open("POST", TROPHYIM_JSON_STORE, false);
+            } catch (e) {
+                Strophe.error("JSONStore open failed.");
+                return false;
+            }
+            xhr.setRequestHeader('Content-type',
+            'application/x-www-form-urlencoded');
+            xhr.setRequestHeader('Content-length', senddata.length);
+            xhr.send(senddata);
+            if (xhr.readyState == 4 && xhr.status == 200 && xhr.responseText ==
+            "OK") {
+                return true;
+            } else {
+                Strophe.error("JSONStore open failed. Status: " + xhr.status);
+                return false;
+            }
+        }
+    }
+    var testData = true;
+    if (this.setData({testData:testData})) {
+        var testResult = this.getData(['testData']);
+        if (testResult && testResult['testData'] == true) {
+            this.store_working = true;
+        }
+    }
+}
+/** Constants: Node types
+ *
+ * Implementations of constants that IE doesn't have, but we need.
+ */
+if (document.ELEMENT_NODE == null) {
+    document.ELEMENT_NODE = 1;
+    document.ATTRIBUTE_NODE = 2;
+    document.TEXT_NODE = 3;
+    document.CDATA_SECTION_NODE = 4;
+    document.ENTITY_REFERENCE_NODE = 5;
+    document.ENTITY_NODE = 6;
+    document.PROCESSING_INSTRUCTION_NODE = 7;
+    document.COMMENT_NODE = 8;
+    document.DOCUMENT_NODE = 9;
+    document.DOCUMENT_TYPE_NODE = 10;
+    document.DOCUMENT_FRAGMENT_NODE = 11;
+    document.NOTATION_NODE = 12;
+}
+
+/** Function: importNode
+ *
+ *  document.importNode implementation for IE, which doesn't have importNode
+ *
+ *  Parameters:
+ *    (Object) node - dom object
+ *    (Boolean) allChildren - import node's children too
+ */
+if (!document.importNode) {
+    document.importNode = function(node, allChildren) {
+        switch (node.nodeType) {
+            case document.ELEMENT_NODE:
+                var newNode = document.createElement(node.nodeName);
+                if (node.attributes && node.attributes.length > 0) {
+                    for(var i = 0; i < node.attributes.length; i++) {
+                        newNode.setAttribute(node.attributes[i].nodeName,
+                        node.getAttribute(node.attributes[i].nodeName));
+                    }
+                }
+                if (allChildren && node.childNodes &&
+                node.childNodes.length > 0) {
+                    for (var i = 0; i < node.childNodes.length; i++) {
+                        newNode.appendChild(document.importNode(
+                        node.childNodes[i], allChildren));
+                    }
+                }
+                return newNode;
+                break;
+            case document.TEXT_NODE:
+            case document.CDATA_SECTION_NODE:
+            case document.COMMENT_NODE:
+                return document.createTextNode(node.nodeValue);
+                break;
+        }
+    };
+}
+
+/**
+ *
+ * Bootstrap self into window.onload and window.onunload
+ */
+
+/*
+var oldonload = window.onload;
+window.onload = function()
+{
+    if(oldonload)
+	{
+        oldonload();
+    }
+    
+	TrophyIM.load();
+};
+*/
+
+var oldonunload = window.onunload;
+window.onunload = function()
+{
+    if(oldonunload)
+	{
+        oldonunload();
+    }
+    
+	TrophyIM.storeData();
+}
Index: sandbox/jabberit_messenger/trophy_expresso/js/dragdrop.js
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/js/dragdrop.js	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/js/dragdrop.js	(revision 2397)
@@ -0,0 +1,217 @@
+(function()
+{
+	var _element	= null;
+	var _elementA	= null;
+	var _elementB	= null;
+	var _parent		= null;
+
+	function _configEvent(pObj, pEvent, pHandler)
+	{
+		try
+		{
+			if (typeof pObj == 'object')
+			{
+				if (pEvent.substring(0, 2) == 'on') 
+					pEvent = pEvent.substring(2, pEvent.length);
+				
+				if (arguments.length == 3)
+				{
+					if (pObj.addEventListener) 
+						pObj.addEventListener(pEvent, pHandler, false);
+					else 
+						if (pObj.attachEvent) 
+							pObj.attachEvent('on' + pEvent, pHandler);
+				}
+				else
+				{
+					if (arguments.length == 4)
+					{
+						if (pObj.removeEventListener && pObj.removeEventListener != 'undefined') 
+							pObj.removeEventListener(pEvent, pHandler, false);
+						else 
+							if (pObj.detachEvent) 
+								pObj.detachEvent('on' + pEvent, pHandler);
+					}
+				}
+			}
+		}
+		catch(e){}
+	}
+
+	function _drag(e)
+	{
+		if (typeof e.preventDefault != 'undefined')
+			e.preventDefault();
+		else
+			e.onselectstart = new Function("return false;");
+
+		_element = ( e.target ) ? e.target : e.srcElement;
+
+		if ( _element )
+		{
+			_configEvent(_element, 'onmousemove', _mouseMove);
+			_configEvent(top.document, 'onmousemove', _mouseMove);
+
+			_configEvent(_element, 'onmouseup', _mouseUp);
+			_configEvent(top.document, 'onmouseup', _mouseUp);
+		}
+	}
+
+	function _elementShadow( pId )
+	{
+		if( _elementA )
+		{
+			var _elShadow 			= document.createElement("div");
+			_elShadow.id 			= _elementA.id + "__Shadow";
+			_elShadow.setAttribute("onselectstart" , "return false");
+			_elShadow.style.width	= _elementA.style.width;
+			_elShadow.style.height	= _elementA.style.height;
+			_elShadow.style.top		= _elementA.style.top;
+			_elShadow.style.left	= _elementA.style.left;
+			_elShadow.style.zIndex	= _elementA.style.zIndex;
+			_elShadow.className		= "x-shadow_Div";
+			
+			return _elShadow;
+		}
+	}
+
+	function _load()
+	{
+		if( arguments.length > 0 )
+		{
+			var pId = arguments[0];
+			
+			_configEvent(document.getElementById( pId + "__draggable"), 'onmousedown', _mouseDownShadow);
+		}
+	}
+
+	function _getMouseOffset(e, el)
+	{
+		var docPos = _getPosition(el);
+		var mousePos = _mouseCoords(e);
+		return {
+			'x' : mousePos.x - docPos.x,
+			'y' : mousePos.y - docPos.y
+		};
+	}
+
+	function _getPosition(_pObject)
+	{
+		var left = 0;
+		var top  = 0;
+
+		while ( _pObject.offsetParent )
+		{
+			left += _pObject.offsetLeft;
+			top  += _pObject.offsetTop;
+			_pObject = _pObject.offsetParent;
+		}
+
+		left += _pObject.offsetLeft;
+		top  += _pObject.offsetTop;
+
+		return {
+			'x' : left,
+			'y' : top
+		};
+	}
+
+	function _mouseCoords(ev)
+	{
+		var CoordX = "";
+		var CoordY = "";
+
+		if ( ev.pageX || ev.pageY )
+			return {
+				'x' : ev.pageX,
+				'y' : ev.pageY
+			};
+
+		CoordX = ev.clientX + document.body.scrollLeft - document.body.clientLeft;
+		CoordY = ev.clientY + document.body.scrollTop  - document.body.clientTop;
+		
+		return {
+			'x' : CoordX,
+			'y' : CoordY
+		};
+	}
+
+	function _mouseMove(e)
+	{
+		if ( _element )
+		{
+			if ( _element.mouseOffset == null )
+				_element.mouseOffset = _getMouseOffset(e, _element);
+
+			var mousePos = _mouseCoords(e);
+
+			var x = mousePos.x - _element.mouseOffset.x;
+			var y = mousePos.y - _element.mouseOffset.y;
+			_element.style.left = (( x < 0 ) ? 0 : x) + 'px';
+			_element.style.top  = (( y < 0 ) ? 0 : y) + 'px';
+		}
+	}
+
+	function _mouseUp()
+	{
+		if ( _element )
+		{
+			_mouseUpShadow();
+			
+			_configEvent(_element, 'onmousemove', _mouseMove, 'remove');
+			_configEvent(top.document, 'onmousemove', _mouseMove, 'remove');
+
+			_configEvent(_element, 'onmouseup', _mouseUp, 'remove');
+			_configEvent(top.document, 'onmouseup', _mouseUp, 'remove');
+
+			_element.mouseOffset = null;
+			_element = null;
+		}
+	}
+
+	function _mouseDownShadow(e)
+	{
+		try
+		{
+			if( arguments.length > 0 )
+			{
+				var _el = ( e.target ) ? e.target : e.srcElement;
+				var _id = (_el.id.substring(0, _el.id.indexOf("__draggable")));	
+				
+				_elementA = document.getElementById( _id + "__parent");
+				_elementB = _elementShadow( _id + "__parent");
+				
+				_elementA.style.left = '-1500px';
+				_parent	  = _elementA.parentNode;
+				
+				var _B = _parent.appendChild(_elementB);
+				
+				_configEvent( _elementB, 'onmouseup', _mouseUpShadow);
+				_configEvent( _elementB, 'onmousemove', _drag);
+			}
+			
+		}catch(e){}
+	}
+
+	function _mouseUpShadow()
+	{
+		try
+		{
+			_elementA.style.top		= _elementB.style.top;
+			_elementA.style.left	= _elementB.style.left;
+			
+			var _B = _parent.removeChild(_elementB);
+
+			_elementA = null;
+			_elementB = null;
+			_element = null;
+		}
+		catch(e){}
+	}
+	
+	function _drag_drop(){}
+
+	_drag_drop.prototype.set 	= _load;
+	window._drag_drop = _drag_drop;
+	
+})();
Index: sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_escritorio.css
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_escritorio.css	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_escritorio.css	(revision 2397)
@@ -0,0 +1,332 @@
+/* x-menu */
+
+.x-menu
+{
+	background-color : #3558b6 !important;
+	border		: 1px solid #1e4098;
+	color		: #fff !important;
+	display		: none;
+	position	: absolute;
+}
+
+.x-subMenuChangeStatus
+{
+	background-color : #3558b6 !important;
+	border		: 1px solid #1e4098;
+	color		: #fff !important;
+	float		: left;
+	margin		: -10px 5px 0px 0px;
+	position	: absolute;
+}
+
+.x-subMenuChangeStatusItens
+{
+	background-color 	: #3558b6 !important;
+	border		: 1px solid #1e4098;
+	color		: #fff !important;
+	float		: left;
+	position	: absolute;
+}
+
+.x-menuOnMouseOut
+{
+}
+
+.x-menuOnMouseOver
+{
+	background-color : #a7b9e7 !important;
+	border : 1px solid #1e4098; 
+}
+
+/* x-content */
+
+.x-content
+{
+	margin : 2px ;
+}
+
+
+/* x-panel */
+
+.x-panel
+{
+    border-color: #1e4098;
+    border-style: solid;
+    border-width:0;
+}
+
+.x-panel-body
+{
+    background-color:#fff;
+    border:1px solid;
+    border-color:#1e4098;
+    border-top:0 none;
+    position: relative; 
+    overflow:hidden;
+    zoom:1;
+}
+
+.x-panel-body-noheader
+{
+    border-top-color: #1e4098;
+}
+
+.x-panel-bwrap
+{
+    overflow:hidden;
+    zoom:1;
+    left:0;
+    top:0;
+}
+
+.x-panel-nofooter .x-btn-group-bc
+{
+	height:3px;
+    font-size:0;
+    line-height:0;
+}
+
+.x-panel-nofooter .x-window-bc
+{
+	height:6px;
+    font-size:0;
+    line-height:0;
+}
+
+.x-panel-noborder .x-panel-body-noborder
+{
+    border-width:0;
+}
+
+.x-panel-noborder .x-panel-header-noborder
+{
+    border-bottom-color:#1e4098;
+    border-width:0 0 1px;
+    border-style:solid;
+}
+
+.x-panel-noborder .x-panel-bbar-noborder .x-toolbar
+{
+    border-width:1px 0 0 0;
+    border-style:solid;
+    border-top-color:#1e4098;
+}
+
+.x-panel-noborder .x-panel-tbar-noborder .x-toolbar
+{
+    border-bottom-color:#1e4098;
+	border-width:0 0 1px;
+    border-style:solid;
+}
+
+/* x-shadow */ 
+
+.x-shadow_Div
+{
+	border 		: 1px dashed black;
+	position 	: absolute;
+}
+
+/* x-tab */
+
+.x-tab-panel
+{
+    overflow:hidden;
+}
+
+.x-tab-panel-body
+{
+    border: 1px solid;
+    border-color:#8db2e3;
+    background-color:#fff;
+    overflow:hidden;
+}
+
+.x-tab-panel-body-top
+{
+    border-top: 0 none;
+}
+
+.x-tab-panel-bwrap
+{
+    overflow:hidden;
+}
+
+.x-tab-panel-noborder .x-tab-panel-body-noborder
+{
+	border-width:0;
+}
+
+.x-tab-panel-noborder .x-tab-panel-footer-noborder
+{
+    border-width: 1px 0 0 0;
+}
+
+.x-tab-panel-noborder .x-tab-panel-header-noborder
+{
+    border-width: 0 0 1px 0;
+}
+
+
+/* x-tool */
+.x-tool
+{
+    overflow	: hidden;
+    width		: 15px;
+    height		: 15px;
+    float		: right;
+    cursor		: pointer;
+    background	: transparent no-repeat;
+    background-image : url(../images/escritorio/tool-sprites.gif);
+    margin-left	: 2px;
+    margin-top	: 5px;
+}
+
+.x-tool-close
+{
+    background-position	: 0 -0;
+}
+
+/* x-unselectable */
+
+.x-unselectable, .x-unselectable * 
+{
+    -moz-user-select	: none;
+    -khtml-user-select	: none;
+    -webkit-user-select	: ignore;
+}
+
+/* x-window */
+
+.x-window
+{
+	visibility	: visible;
+	display		: block;
+}
+
+.x-window .x-resizable-handle
+{
+    opacity	:0;
+    -moz-opacity :0;
+    filter	:alpha(opacity=0);
+}
+
+.x-window-draggable, .x-window-draggable .x-window-header-text
+{
+    cursor	: move;
+}
+
+.x-window-header
+{
+    float		: left;
+    overflow	: hidden;
+    zoom		: 1;
+}
+
+.x-window-bc
+{
+	background	: transparent repeat-x 0 bottom;
+	background-image : url(../images/escritorio/top-bottom.png);
+    zoom : 1;
+}
+
+.x-window-bc .x-window-footer
+{
+    padding-bottom	:6px;
+    zoom	: 1;
+    font-size	: 0;
+    line-height	: 0;
+}
+
+.x-window-body
+{
+    background	: transparent;
+    overflow	: hidden;
+}
+
+.x-window-bwrap
+{
+    position : relative;
+	overflow : hidden;
+    zoom	: 1;
+    left : 0;
+    top : 0;
+}
+
+.x-window-tc
+{
+	background: transparent repeat-x 0 0;
+	background-image: url(../images/escritorio/top-bottom.png);
+	overflow:hidden;
+    zoom:1;
+}
+
+.x-window-tl
+{
+	background: transparent no-repeat 0 0;
+	background-image: url(../images/escritorio/left-corners.png);
+	padding-left:6px;
+    zoom:1;
+    position:relative;
+}
+
+.x-window-tr
+{
+	background: transparent no-repeat right 0;
+	background-image: url(../images/escritorio/right-corners.png);
+	padding-right:6px;
+}
+
+.x-window-bl
+{
+	background: transparent no-repeat 0 bottom;
+	background-image: url(../images/escritorio/left-corners.png);
+	padding-left:6px;
+    zoom:1;
+}
+
+.x-window-br
+{
+	background: transparent no-repeat right bottom;
+	background-image: url(../images/escritorio/right-corners.png);
+	padding-right:6px;
+    zoom:1;
+}
+
+.x-window-mc
+{
+    background-color:#dfe8f6;
+	border:1px solid;
+	border-color:#1e4098;
+	font: normal 11px tahoma,arial,helvetica,sans-serif;
+    padding:0;
+    margin:0;
+}
+
+.x-window-ml
+{
+	background: transparent repeat-y 0 0;
+	background-image: url(../images/escritorio/left-right.png);
+	padding-left:6px;
+    zoom:1;
+}
+
+.x-window-mr
+{
+	background: transparent repeat-y right 0;
+	background-image: url(../images/escritorio/left-right.png);
+	padding-right:6px;
+    zoom:1;
+}
+
+.x-window-noborder .x-window-mc
+{
+    border-width:0;
+}
+
+.x-window-tl .x-window-header
+{
+    color:#fff;
+	font:bold 11px tahoma,arial,verdana,sans-serif;
+	padding:5px 0 4px 0;
+}
Index: sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_cataratas.css
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_cataratas.css	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_cataratas.css	(revision 2397)
@@ -0,0 +1,327 @@
+.x-menu
+{
+	background-color : #98c17f !important;
+	border		: 1px solid #7bc64e;
+	color		: #ffffed !important;
+	display		: none;
+	position	: absolute;
+}
+
+.x-subMenuChangeStatus
+{
+	background-color : #98c17f !important; 
+	border		: 1px solid #7bc64e;
+	color		: #ffffed !important;
+	float		: left;
+	margin		: -10px 5px 0px 0px;
+	position	: absolute;
+}
+
+.x-subMenuChangeStatusItens
+{
+	background-color 	: #98c17f !important;
+	border		: 1px solid #7bc64e;
+	color		: #ffffed !important;
+	float		: left;
+	position	: absolute;
+}
+
+.x-menuOnMouseOut
+{
+}
+
+.x-menuOnMouseOver
+{
+	background-color : #4c9b1d !important;
+	border : 1px solid #7bc64e;
+}
+
+/* x-content */
+
+.x-content
+{
+	margin : 2px ;
+}
+
+/* x-panel */
+
+.x-panel
+{
+    border-color: #7bc64e;
+    border-style: solid;
+    border-width:0;
+}
+
+.x-panel-body
+{
+    background-color:#fff;
+    border:1px solid;
+    border-color:#7bc64e;
+    border-top:0 none;
+    position: relative; 
+    overflow:hidden;
+    zoom:1;
+}
+
+.x-panel-body-noheader
+{
+    border-top-color: #7bc64e;
+}
+
+.x-panel-bwrap
+{
+    overflow:hidden;
+    zoom:1;
+    left:0;
+    top:0;
+}
+
+.x-panel-nofooter .x-btn-group-bc
+{
+	height:3px;
+    font-size:0;
+    line-height:0;
+}
+
+.x-panel-nofooter .x-window-bc
+{
+	height:6px;
+    font-size:0;
+    line-height:0;
+}
+
+.x-panel-noborder .x-panel-body-noborder
+{
+    border-width:0;
+}
+
+.x-panel-noborder .x-panel-header-noborder
+{
+    border-bottom-color:#7bc64e;
+    border-width:0 0 1px;
+    border-style:solid;
+}
+
+.x-panel-noborder .x-panel-bbar-noborder .x-toolbar
+{
+    border-width:1px 0 0 0;
+    border-style:solid;
+    border-top-color:#7bc64e;
+}
+
+.x-panel-noborder .x-panel-tbar-noborder .x-toolbar
+{
+    border-bottom-color:#7bc64e;
+	border-width:0 0 1px;
+    border-style:solid;
+}
+
+/* x-shadow */ 
+
+.x-shadow_Div
+{
+	border 		: 1px dashed black;
+	position 	: absolute;
+}
+
+/* x-tab */
+
+.x-tab-panel
+{
+    overflow:hidden;
+}
+
+.x-tab-panel-body
+{
+    border: 1px solid;
+    background-color:#fff;
+    overflow:hidden;
+}
+
+.x-tab-panel-body-top
+{
+    border-top: 0 none;
+}
+
+.x-tab-panel-bwrap
+{
+    overflow:hidden;
+}
+
+.x-tab-panel-noborder .x-tab-panel-body-noborder
+{
+	border-width:0;
+}
+
+.x-tab-panel-noborder .x-tab-panel-footer-noborder
+{
+    border-width: 1px 0 0 0;
+}
+
+.x-tab-panel-noborder .x-tab-panel-header-noborder
+{
+    border-width: 0 0 1px 0;
+}
+
+
+/* x-tool */
+.x-tool
+{
+    overflow	: hidden;
+    width		: 15px;
+    height		: 15px;
+    float		: right;
+    cursor		: pointer;
+    background	: transparent no-repeat;
+    background-image : url(../images/cataratas/tool-sprites.gif);
+    margin-left	: 2px;
+    margin-top	: 5px;
+}
+
+.x-tool-close
+{
+    background-position	: 0 -0;
+}
+
+/* x-unselectable */
+
+.x-unselectable, .x-unselectable * 
+{
+    -moz-user-select	: none;
+    -khtml-user-select	: none;
+    -webkit-user-select	: ignore;
+}
+
+/* x-window */
+
+.x-window
+{
+	visibility	: visible;
+	display		: block;
+}
+
+.x-window .x-resizable-handle
+{
+    opacity	:0;
+    -moz-opacity :0;
+    filter	:alpha(opacity=0);
+}
+
+.x-window-draggable, .x-window-draggable .x-window-header-text
+{
+    cursor	: move;
+}
+
+.x-window-header
+{
+    float		: left;
+    overflow	: hidden;
+    zoom		: 1;
+}
+
+.x-window-bc
+{
+	background	: transparent repeat-x 0 bottom;
+	background-image : url(../images/cataratas/top-bottom.png);
+    zoom : 1;
+}
+
+.x-window-bc .x-window-footer
+{
+    padding-bottom	:6px;
+    zoom	: 1;
+    font-size	: 0;
+    line-height	: 0;
+}
+
+.x-window-body
+{
+    background	: transparent;
+    overflow	: hidden;
+}
+
+.x-window-bwrap
+{
+    position : relative;
+	overflow : hidden;
+    zoom	: 1;
+    left : 0;
+    top : 0;
+}
+
+.x-window-tc
+{
+	background: transparent repeat-x 0 0;
+	background-image: url(../images/cataratas/top-bottom.png);
+	overflow:hidden;
+    zoom:1;
+}
+
+.x-window-tl
+{
+	background: transparent no-repeat 0 0;
+	background-image: url(../images/cataratas/left-corners.png);
+	padding-left:6px;
+    zoom:1;
+    position:relative;
+}
+
+.x-window-tr
+{
+	background: transparent no-repeat right 0;
+	background-image: url(../images/cataratas/right-corners.png);
+	padding-right:6px;
+}
+
+.x-window-bl
+{
+	background: transparent no-repeat 0 bottom;
+	background-image: url(../images/cataratas/left-corners.png);
+	padding-left:6px;
+    zoom:1;
+}
+
+.x-window-br
+{
+	background: transparent no-repeat right bottom;
+	background-image: url(../images/cataratas/right-corners.png);
+	padding-right:6px;
+    zoom:1;
+}
+
+.x-window-mc
+{
+	border:1px solid;
+	border-color:#7bc64e;
+	font: normal 11px tahoma,arial,helvetica,sans-serif;
+    padding:0;
+    margin:0;
+}
+
+.x-window-ml
+{
+	background: transparent repeat-y 0 0;
+	background-image: url(../images/cataratas/left-right.png);
+	padding-left:6px;
+    zoom:1;
+}
+
+.x-window-mr
+{
+	background: transparent repeat-y right 0;
+	background-image: url(../images/cataratas/left-right.png);
+	padding-right:6px;
+    zoom:1;
+}
+
+.x-window-noborder .x-window-mc
+{
+    border-width:0;
+}
+
+.x-window-tl .x-window-header
+{
+    color:#ffffed;
+	font:bold 11px tahoma,arial,verdana,sans-serif;
+	padding:5px 0 4px 0;
+}
Index: sandbox/jabberit_messenger/trophy_expresso/templates/default/css/trophyim.css
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/templates/default/css/trophyim.css	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/templates/default/css/trophyim.css	(revision 2397)
@@ -0,0 +1,120 @@
+div.trophyimtabclose {
+    color: #000000;
+    font-size: 8px;
+    text-align: right;
+    cursor: default;
+    float: right;
+    border: 1px black solid;
+    margin-left: 1px;
+    padding-left: 1px;
+}
+div#trophyimclient {
+}
+div#trophyimlogin {
+	text-align: center;
+}
+div#trophyimroster {
+	/*width: 200px;
+	height: 400px;*/
+	/*overflow: scroll;*/
+    clear: none;
+    float: left;
+}
+div#trophyimchat {
+	/*border: 1px black solid;*/
+    clear: right;
+    float: left;
+}
+div#trophyimstatus {
+    width: 200px;
+	border: 2px black solid;
+    clear: both;
+}
+div#trophyimlog {
+	width: 480px;
+	height: 300px;
+	overflow: auto;
+}
+div.trophyimlogitem {
+	border: 1px black solid;
+}
+div.trophyimrosteritem {
+	border: 1px black solid;
+}
+div.trophyimchattab_av { /*Available*/
+	color: #000000;
+}
+div.trophyimchattab_aw { /*Away*/
+	color: #a00000;
+}
+div.trophyimchattab_off { /*Offline*/
+	color: #808080;
+	font-style: italic;
+}
+div.trophyimrosteritem_av { /*Available*/
+	color: #000000;
+}
+div.trophyimrosteritem_aw { /*Away*/
+	color: #a00000;
+}
+div.trophyimrosteritem_off { /*Offline*/
+	color: #808080;
+	font-style: italic;
+}
+div.trophyimchattabjid {
+    display: none;
+}
+div.trophyimchattabname {
+    font-size: 11px;
+	margin-right: 1px;
+    padding: 2px;
+}
+div.trophyimrosterjid {
+    display: none;
+}
+div.trophyimrostername {
+    padding-left: 3px;
+}
+div.trophyimrostergroup {
+	border: 2px blue solid;
+}
+div.trophyimrosterlabel {
+	font-weight: bold;
+}
+div#trophyimchattabs {
+	border: 1px green solid;
+    width: 400px;
+    overflow: auto;
+}
+div.trophyimchattab {
+    clear: none;
+    float: left;
+    cursor: pointer;
+}
+div.trophyimchattab_f { /*Foreground*/
+	border: 2px blue solid;
+}
+div.trophyimchattab_b { /*Background*/
+	border: 1px green solid;
+    margin: 1px;
+}
+div.trophyimchattab_a { /*Alert (background/has new message)*/
+	border: 1px red solid;
+    margin: 1px;
+}
+/*div.trophyimchatbox { /*Collection of chat messages*/
+/*	height: 200px;
+	width: 380px;
+	overflow-y: scroll;
+}*/
+
+textarea.trophyimchatinput {
+}
+div.trophyimchatmessage { /*Each individual chat message*/
+	white-space: pre-wrap;
+	width: 100%;
+    border-bottom: 1px black dotted;
+}
+div#trophyimstatuslist {
+	text-align: center;
+}
Index: sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_default.css
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_default.css	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_default.css	(revision 2397)
@@ -0,0 +1,331 @@
+/* x-menu */
+
+.x-menu
+{
+	background-color : #cecece;
+	border		: 1px solid #918b8b;
+	color:		: #585656 !important;
+	display		: none;
+	position	: absolute;
+}
+
+.x-subMenuChangeStatus
+{
+	background-color : #cecece !important;
+	border		: 1px solid #918b8b;
+	color:		: #585656 !important;
+	float		: left;
+	margin		: -10px 5px 0px 0px;
+	position	: absolute;
+}
+
+.x-subMenuChangeStatusItens
+{
+	background-color 	: #cecece !important;
+	border		: 1px solid #918b8b;
+	color:		: #585656 !important;
+	float		: left;
+	position	: absolute;
+}
+
+.x-menuOnMouseOut
+{
+}
+
+.x-menuOnMouseOver
+{
+	background-color : #e8e6e6 !important;
+	border : 1px solid #918b8b;
+}
+
+/* x-content */
+
+.x-content
+{
+	margin : 2px ;
+}
+
+/* x-panel */
+
+.x-panel
+{
+    border-color: #918b8b;
+    border-style: solid;
+    border-width:0;
+}
+
+.x-panel-body
+{
+    background-color:#fff;
+    border:1px solid;
+    border-color:#918b8b;
+    border-top:0 none;
+    position: relative; 
+    overflow:hidden;
+    zoom:1;
+}
+
+.x-panel-body-noheader
+{
+    border-top-color: #918b8b;
+}
+
+.x-panel-bwrap
+{
+    overflow:hidden;
+    zoom:1;
+    left:0;
+    top:0;
+}
+
+.x-panel-nofooter .x-btn-group-bc
+{
+	height:3px;
+    font-size:0;
+    line-height:0;
+}
+
+.x-panel-nofooter .x-window-bc
+{
+	height:6px;
+    font-size:0;
+    line-height:0;
+}
+
+.x-panel-noborder .x-panel-body-noborder
+{
+    border-width:0;
+}
+
+.x-panel-noborder .x-panel-header-noborder
+{
+    border-bottom-color:#918b8b;
+    border-width:0 0 1px;
+    border-style:solid;
+}
+
+.x-panel-noborder .x-panel-bbar-noborder .x-toolbar
+{
+    border-width:1px 0 0 0;
+    border-style:solid;
+    border-top-color:#918b8b;
+}
+
+.x-panel-noborder .x-panel-tbar-noborder .x-toolbar
+{
+    border-bottom-color:#918b8b;
+	border-width:0 0 1px;
+    border-style:solid;
+}
+
+/* x-shadow */ 
+
+.x-shadow_Div
+{
+	border 		: 1px dashed black;
+	position 	: absolute;
+}
+
+/* x-tab */
+
+.x-tab-panel
+{
+    overflow:hidden;
+}
+
+.x-tab-panel-body
+{
+    border: 1px solid;
+    border-color:#8db2e3;
+    background-color:#fff;
+    overflow:hidden;
+}
+
+.x-tab-panel-body-top
+{
+    border-top: 0 none;
+}
+
+.x-tab-panel-bwrap
+{
+    overflow:hidden;
+}
+
+.x-tab-panel-noborder .x-tab-panel-body-noborder
+{
+	border-width:0;
+}
+
+.x-tab-panel-noborder .x-tab-panel-footer-noborder
+{
+    border-width: 1px 0 0 0;
+}
+
+.x-tab-panel-noborder .x-tab-panel-header-noborder
+{
+    border-width: 0 0 1px 0;
+}
+
+
+/* x-tool */
+.x-tool
+{
+    overflow	: hidden;
+    width		: 15px;
+    height		: 15px;
+    float		: right;
+    cursor		: pointer;
+    background	: transparent no-repeat;
+    background-image : url(../images/default/tool-sprites.gif);
+    margin-left	: 2px;
+    margin-top	: 5px;
+}
+
+.x-tool-close
+{
+    background-position	: 0 -0;
+}
+
+/* x-unselectable */
+
+.x-unselectable, .x-unselectable * 
+{
+    -moz-user-select	: none;
+    -khtml-user-select	: none;
+    -webkit-user-select	: ignore;
+}
+
+/* x-window */
+
+.x-window
+{
+	visibility	: visible;
+	display		: block;
+}
+
+.x-window .x-resizable-handle
+{
+    opacity	:0;
+    -moz-opacity :0;
+    filter	:alpha(opacity=0);
+}
+
+.x-window-draggable, .x-window-draggable .x-window-header-text
+{
+    cursor	: move;
+}
+
+.x-window-header
+{
+    float		: left;
+    overflow	: hidden;
+    zoom		: 1;
+}
+
+.x-window-bc
+{
+	background	: transparent repeat-x 0 bottom;
+	background-image : url(../images/default/top-bottom.png);
+    zoom : 1;
+}
+
+.x-window-bc .x-window-footer
+{
+    padding-bottom	:6px;
+    zoom	: 1;
+    font-size	: 0;
+    line-height	: 0;
+}
+
+.x-window-body
+{
+    background	: transparent;
+    overflow	: hidden;
+}
+
+.x-window-bwrap
+{
+    position : relative;
+	overflow : hidden;
+    zoom	: 1;
+    left : 0;
+    top : 0;
+}
+
+.x-window-tc
+{
+	background: transparent repeat-x 0 0;
+	background-image: url(../images/default/top-bottom.png);
+	overflow:hidden;
+    zoom:1;
+}
+
+.x-window-tl
+{
+	background: transparent no-repeat 0 0;
+	background-image: url(../images/default/left-corners.png);
+	padding-left:6px;
+    zoom:1;
+    position:relative;
+}
+
+.x-window-tr
+{
+	background: transparent no-repeat right 0;
+	background-image: url(../images/default/right-corners.png);
+	padding-right:6px;
+}
+
+.x-window-bl
+{
+	background: transparent no-repeat 0 bottom;
+	background-image: url(../images/default/left-corners.png);
+	padding-left:6px;
+    zoom:1;
+}
+
+.x-window-br
+{
+	background: transparent no-repeat right bottom;
+	background-image: url(../images/default/right-corners.png);
+	padding-right:6px;
+    zoom:1;
+}
+
+.x-window-mc
+{
+    background-color:#dfe8f6;
+	border:1px solid;
+	border-color:#918b8b;
+	font: normal 11px tahoma,arial,helvetica,sans-serif;
+    padding:0;
+    margin:0;
+}
+
+.x-window-ml
+{
+	background: transparent repeat-y 0 0;
+	background-image: url(../images/default/left-right.png);
+	padding-left:6px;
+    zoom:1;
+}
+
+.x-window-mr
+{
+	background: transparent repeat-y right 0;
+	background-image: url(../images/default/left-right.png);
+	padding-right:6px;
+    zoom:1;
+}
+
+.x-window-noborder .x-window-mc
+{
+    border-width:0;
+}
+
+.x-window-tl .x-window-header
+{
+    color:#585656;
+	font:bold 11px tahoma,arial,verdana,sans-serif;
+	padding:5px 0 4px 0;
+}
Index: sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_metropole.css
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_metropole.css	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_metropole.css	(revision 2397)
@@ -0,0 +1,332 @@
+/* x-menu */
+
+.x-menu
+{
+	background-color : #404040 !important;
+	border		: 1px solid #000;
+	color		: #fffcdf !important;
+	display		: none;
+	position	: absolute;
+}
+
+.x-subMenuChangeStatus
+{
+	background-color : #404040 !important;
+	border		: 1px solid #000;
+	color		: #fffcdf !important;
+	float		: left;
+	margin		: -10px 5px 0px 0px;
+	position	: absolute;
+}
+
+.x-subMenuChangeStatusItens
+{
+	background-color 	: #404040 !important; 
+	border		: 1px solid #000;
+	color		: #fffcdf !important;
+	float		: left;
+	position	: absolute;
+}
+
+.x-menuOnMouseOut
+{
+}
+
+.x-menuOnMouseOver
+{
+	background-color : #4a79b1 !important;
+	border : 1px solid #000;
+}
+
+/* x-content */
+
+.x-content
+{
+	margin : 2px ;
+}
+
+
+/* x-panel */
+
+.x-panel
+{
+    border-color: #4a79b1;
+    border-style: solid;
+    border-width:0;
+}
+
+.x-panel-body
+{
+    background-color:#fff;
+    border:1px solid;
+    border-color:#4a79b1;
+    border-top:0 none;
+    position: relative; 
+    overflow:hidden;
+    zoom:1;
+}
+
+.x-panel-body-noheader
+{
+    border-top-color: #4a79b1;
+}
+
+.x-panel-bwrap
+{
+    overflow:hidden;
+    zoom:1;
+    left:0;
+    top:0;
+}
+
+.x-panel-nofooter .x-btn-group-bc
+{
+	height:3px;
+    font-size:0;
+    line-height:0;
+}
+
+.x-panel-nofooter .x-window-bc
+{
+	height:6px;
+    font-size:0;
+    line-height:0;
+}
+
+.x-panel-noborder .x-panel-body-noborder
+{
+    border-width:0;
+}
+
+.x-panel-noborder .x-panel-header-noborder
+{
+    border-bottom-color:#4a79b1;
+    border-width:0 0 1px;
+    border-style:solid;
+}
+
+.x-panel-noborder .x-panel-bbar-noborder .x-toolbar
+{
+    border-width:1px 0 0 0;
+    border-style:solid;
+    border-top-color:#4a79b1;
+}
+
+.x-panel-noborder .x-panel-tbar-noborder .x-toolbar
+{
+    border-bottom-color:#4a79b1;
+	border-width:0 0 1px;
+    border-style:solid;
+}
+
+/* x-shadow */ 
+
+.x-shadow_Div
+{
+	border 		: 1px dashed black;
+	position 	: absolute;
+}
+
+/* x-tab */
+
+.x-tab-panel
+{
+    overflow:hidden;
+}
+
+.x-tab-panel-body
+{
+    border: 1px solid;
+    border-color:#8db2e3;
+    background-color:#fff;
+    overflow:hidden;
+}
+
+.x-tab-panel-body-top
+{
+    border-top: 0 none;
+}
+
+.x-tab-panel-bwrap
+{
+    overflow:hidden;
+}
+
+.x-tab-panel-noborder .x-tab-panel-body-noborder
+{
+	border-width:0;
+}
+
+.x-tab-panel-noborder .x-tab-panel-footer-noborder
+{
+    border-width: 1px 0 0 0;
+}
+
+.x-tab-panel-noborder .x-tab-panel-header-noborder
+{
+    border-width: 0 0 1px 0;
+}
+
+
+/* x-tool */
+.x-tool
+{
+    overflow	: hidden;
+    width		: 15px;
+    height		: 15px;
+    float		: right;
+    cursor		: pointer;
+    background	: transparent no-repeat;
+    background-image : url(../images/metropole/tool-sprites.gif);
+    margin-left	: 2px;
+    margin-top	: 5px;
+}
+
+.x-tool-close
+{
+    background-position	: 0 -0;
+}
+
+/* x-unselectable */
+
+.x-unselectable, .x-unselectable * 
+{
+    -moz-user-select	: none;
+    -khtml-user-select	: none;
+    -webkit-user-select	: ignore;
+}
+
+/* x-window */
+
+.x-window
+{
+	visibility	: visible;
+	display		: block;
+}
+
+.x-window .x-resizable-handle
+{
+    opacity	:0;
+    -moz-opacity :0;
+    filter	:alpha(opacity=0);
+}
+
+.x-window-draggable, .x-window-draggable .x-window-header-text
+{
+    cursor	: move;
+}
+
+.x-window-header
+{
+    float		: left;
+    overflow	: hidden;
+    zoom		: 1;
+}
+
+.x-window-bc
+{
+	background	: transparent repeat-x 0 bottom;
+	background-image : url(../images/metropole/top-bottom.png);
+    zoom : 1;
+}
+
+.x-window-bc .x-window-footer
+{
+    padding-bottom	:6px;
+    zoom	: 1;
+    font-size	: 0;
+    line-height	: 0;
+}
+
+.x-window-body
+{
+    background	: transparent;
+    overflow	: hidden;
+}
+
+.x-window-bwrap
+{
+    position : relative;
+	overflow : hidden;
+    zoom	: 1;
+    left : 0;
+    top : 0;
+}
+
+.x-window-tc
+{
+	background: transparent repeat-x 0 0;
+	background-image: url(../images/metropole/top-bottom.png);
+	overflow:hidden;
+    zoom:1;
+}
+
+.x-window-tl
+{
+	background: transparent no-repeat 0 0;
+	background-image: url(../images/metropole/left-corners.png);
+	padding-left:6px;
+    zoom:1;
+    position:relative;
+}
+
+.x-window-tr
+{
+	background: transparent no-repeat right 0;
+	background-image: url(../images/metropole/right-corners.png);
+	padding-right:6px;
+}
+
+.x-window-bl
+{
+	background: transparent no-repeat 0 bottom;
+	background-image: url(../images/metropole/left-corners.png);
+	padding-left:6px;
+    zoom:1;
+}
+
+.x-window-br
+{
+	background: transparent no-repeat right bottom;
+	background-image: url(../images/metropole/right-corners.png);
+	padding-right:6px;
+    zoom:1;
+}
+
+.x-window-mc
+{
+    background-color:#dfe8f6;
+	border:1px solid;
+	border-color:#4a79b1;
+	font: normal 11px tahoma,arial,helvetica,sans-serif;
+    padding:0;
+    margin:0;
+}
+
+.x-window-ml
+{
+	background: transparent repeat-y 0 0;
+	background-image: url(../images/metropole/left-right.png);
+	padding-left:6px;
+    zoom:1;
+}
+
+.x-window-mr
+{
+	background: transparent repeat-y right 0;
+	background-image: url(../images/metropole/left-right.png);
+	padding-right:6px;
+    zoom:1;
+}
+
+.x-window-noborder .x-window-mc
+{
+    border-width:0;
+}
+
+.x-window-tl .x-window-header
+{
+    color:#fffcdf;
+	font:bold 11px tahoma,arial,verdana,sans-serif;
+	padding:5px 0 4px 0;
+}
Index: sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_azul.css
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_azul.css	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_azul.css	(revision 2397)
@@ -0,0 +1,329 @@
+.x-menu
+{
+	background-color : #ccd8e7 !important;
+	border		: 1px solid #8ea4c1;
+	color		: #15428b !important;
+	display		: none;
+	position	: absolute;
+}
+
+.x-subMenuChangeStatus
+{
+	background-color : #ccd8e7 !important;
+	border		: 1px solid #8ea4c1;
+	color		: #15428b !important;
+	float		: left;
+	margin		: -10px 5px 0px 0px;
+	position	: absolute;
+}
+
+.x-subMenuChangeStatusItens
+{
+	background-color 	: #ccd8e7 !important;
+	border		: 1px solid #8ea4c1;
+	color		: #15428b !important;
+	float		: left;
+	position	: absolute;
+}
+
+.x-menuOnMouseOut
+{
+}
+
+.x-menuOnMouseOver
+{
+	background-color : #96bdf3 !important;
+	border : 1px solid #8ea4c1;
+}
+
+/* x-content */
+
+.x-content
+{
+	margin : 2px ;
+}
+
+/* x-panel */
+
+.x-panel
+{
+    border-color: #99bbe8;
+    border-style: solid;
+    border-width:0;
+}
+
+.x-panel-body
+{
+    background-color:#fff;
+    border:1px solid;
+    border-color:#99bbe8;
+    border-top:0 none;
+    position: relative; 
+    overflow:hidden;
+    zoom:1;
+}
+
+.x-panel-body-noheader
+{
+    border-top-color: #99bbe8;
+}
+
+.x-panel-bwrap
+{
+    overflow:hidden;
+    zoom:1;
+    left:0;
+    top:0;
+}
+
+.x-panel-nofooter .x-btn-group-bc
+{
+	height:3px;
+    font-size:0;
+    line-height:0;
+}
+
+.x-panel-nofooter .x-window-bc
+{
+	height:6px;
+    font-size:0;
+    line-height:0;
+}
+
+.x-panel-noborder .x-panel-body-noborder
+{
+    border-width:0;
+}
+
+.x-panel-noborder .x-panel-header-noborder
+{
+    border-bottom-color:#99bbe8;
+    border-width:0 0 1px;
+    border-style:solid;
+}
+
+.x-panel-noborder .x-panel-bbar-noborder .x-toolbar
+{
+    border-width:1px 0 0 0;
+    border-style:solid;
+    border-top-color:#99bbe8;
+}
+
+.x-panel-noborder .x-panel-tbar-noborder .x-toolbar
+{
+    border-bottom-color:#99bbe8;
+	border-width:0 0 1px;
+    border-style:solid;
+}
+
+/* x-shadow */ 
+
+.x-shadow_Div
+{
+	border 		: 1px dashed black;
+	position 	: absolute;
+}
+
+/* x-tab */
+
+.x-tab-panel
+{
+    overflow:hidden;
+}
+
+.x-tab-panel-body
+{
+    border: 1px solid;
+    border-color:#8db2e3;
+    background-color:#fff;
+    overflow:hidden;
+}
+
+.x-tab-panel-body-top
+{
+    border-top: 0 none;
+}
+
+.x-tab-panel-bwrap
+{
+    overflow:hidden;
+}
+
+.x-tab-panel-noborder .x-tab-panel-body-noborder
+{
+	border-width:0;
+}
+
+.x-tab-panel-noborder .x-tab-panel-footer-noborder
+{
+    border-width: 1px 0 0 0;
+}
+
+.x-tab-panel-noborder .x-tab-panel-header-noborder
+{
+    border-width: 0 0 1px 0;
+}
+
+
+/* x-tool */
+.x-tool
+{
+    overflow	: hidden;
+    width		: 15px;
+    height		: 15px;
+    float		: right;
+    cursor		: pointer;
+    background	: transparent no-repeat;
+    background-image : url(../images/azul/tool-sprites.gif);
+    margin-left	: 2px;
+    margin-top	: 5px;
+}
+
+.x-tool-close
+{
+    background-position	: 0 -0;
+}
+
+/* x-unselectable */
+
+.x-unselectable, .x-unselectable * 
+{
+    -moz-user-select	: none;
+    -khtml-user-select	: none;
+    -webkit-user-select	: ignore;
+}
+
+/* x-window */
+
+.x-window
+{
+	visibility	: visible;
+	display		: block;
+}
+
+.x-window .x-resizable-handle
+{
+    opacity	:0;
+    -moz-opacity :0;
+    filter	:alpha(opacity=0);
+}
+
+.x-window-draggable, .x-window-draggable .x-window-header-text
+{
+    cursor	: move;
+}
+
+.x-window-header
+{
+    float		: left;
+    overflow	: hidden;
+    zoom		: 1;
+}
+
+.x-window-bc
+{
+	background	: transparent repeat-x 0 bottom;
+	background-image : url(../images/azul/top-bottom.png);
+    zoom : 1;
+}
+
+.x-window-bc .x-window-footer
+{
+    padding-bottom	:6px;
+    zoom	: 1;
+    font-size	: 0;
+    line-height	: 0;
+}
+
+.x-window-body
+{
+    background	: transparent;
+    overflow	: hidden;
+}
+
+.x-window-bwrap
+{
+    position : relative;
+	overflow : hidden;
+    zoom	: 1;
+    left : 0;
+    top : 0;
+}
+
+.x-window-tc
+{
+	background: transparent repeat-x 0 0;
+	background-image: url(../images/azul/top-bottom.png);
+	overflow:hidden;
+    zoom:1;
+}
+
+.x-window-tl
+{
+	background: transparent no-repeat 0 0;
+	background-image: url(../images/azul/left-corners.png);
+	padding-left:6px;
+    zoom:1;
+    position:relative;
+}
+
+.x-window-tr
+{
+	background: transparent no-repeat right 0;
+	background-image: url(../images/azul/right-corners.png);
+	padding-right:6px;
+}
+
+.x-window-bl
+{
+	background: transparent no-repeat 0 bottom;
+	background-image: url(../images/azul/left-corners.png);
+	padding-left:6px;
+    zoom:1;
+}
+
+.x-window-br
+{
+	background: transparent no-repeat right bottom;
+	background-image: url(../images/azul/right-corners.png);
+	padding-right:6px;
+    zoom:1;
+}
+
+.x-window-mc
+{
+    background-color:#dfe8f6;
+	border:1px solid;
+	border-color:#99bbe8;
+	font: normal 11px tahoma,arial,helvetica,sans-serif;
+    padding:0;
+    margin:0;
+}
+
+.x-window-ml
+{
+	background: transparent repeat-y 0 0;
+	background-image: url(../images/azul/left-right.png);
+	padding-left:6px;
+    zoom:1;
+}
+
+.x-window-mr
+{
+	background: transparent repeat-y right 0;
+	background-image: url(../images/azul/left-right.png);
+	padding-right:6px;
+    zoom:1;
+}
+
+.x-window-noborder .x-window-mc
+{
+    border-width:0;
+}
+
+.x-window-tl .x-window-header
+{
+    color:#15428b;
+	font:bold 11px tahoma,arial,verdana,sans-serif;
+	padding:5px 0 4px 0;
+}
Index: sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_celepar.css
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_celepar.css	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_celepar.css	(revision 2397)
@@ -0,0 +1,331 @@
+/* x-menu */
+
+.x-menu
+{
+	background-color : #cecece;
+	border		: 1px solid #918b8b;
+	color:		: #585656 !important;
+	display		: none;
+	position	: absolute;
+}
+
+.x-subMenuChangeStatus
+{
+	background-color : #cecece !important;
+	border		: 1px solid #918b8b;
+	color:		: #585656 !important;
+	float		: left;
+	margin		: -10px 5px 0px 0px;
+	position	: absolute;
+}
+
+.x-subMenuChangeStatusItens
+{
+	background-color 	: #cecece !important;
+	border		: 1px solid #918b8b;
+	color:		: #585656 !important;
+	float		: left;
+	position	: absolute;
+}
+
+.x-menuOnMouseOut
+{
+}
+
+.x-menuOnMouseOver
+{
+	background-color : #e8e6e6 !important;
+	border : 1px solid #918b8b;
+}
+
+/* x-content */
+
+.x-content
+{
+	margin : 2px ;
+}
+
+/* x-panel */
+
+.x-panel
+{
+    border-color: #918b8b;
+    border-style: solid;
+    border-width:0;
+}
+
+.x-panel-body
+{
+    background-color:#fff;
+    border:1px solid;
+    border-color:#918b8b;
+    border-top:0 none;
+    position: relative; 
+    overflow:hidden;
+    zoom:1;
+}
+
+.x-panel-body-noheader
+{
+    border-top-color: #918b8b;
+}
+
+.x-panel-bwrap
+{
+    overflow:hidden;
+    zoom:1;
+    left:0;
+    top:0;
+}
+
+.x-panel-nofooter .x-btn-group-bc
+{
+	height:3px;
+    font-size:0;
+    line-height:0;
+}
+
+.x-panel-nofooter .x-window-bc
+{
+	height:6px;
+    font-size:0;
+    line-height:0;
+}
+
+.x-panel-noborder .x-panel-body-noborder
+{
+    border-width:0;
+}
+
+.x-panel-noborder .x-panel-header-noborder
+{
+    border-bottom-color:#918b8b;
+    border-width:0 0 1px;
+    border-style:solid;
+}
+
+.x-panel-noborder .x-panel-bbar-noborder .x-toolbar
+{
+    border-width:1px 0 0 0;
+    border-style:solid;
+    border-top-color:#918b8b;
+}
+
+.x-panel-noborder .x-panel-tbar-noborder .x-toolbar
+{
+    border-bottom-color:#918b8b;
+	border-width:0 0 1px;
+    border-style:solid;
+}
+
+/* x-shadow */ 
+
+.x-shadow_Div
+{
+	border 		: 1px dashed black;
+	position 	: absolute;
+}
+
+/* x-tab */
+
+.x-tab-panel
+{
+    overflow:hidden;
+}
+
+.x-tab-panel-body
+{
+    border: 1px solid;
+    border-color:#8db2e3;
+    background-color:#fff;
+    overflow:hidden;
+}
+
+.x-tab-panel-body-top
+{
+    border-top: 0 none;
+}
+
+.x-tab-panel-bwrap
+{
+    overflow:hidden;
+}
+
+.x-tab-panel-noborder .x-tab-panel-body-noborder
+{
+	border-width:0;
+}
+
+.x-tab-panel-noborder .x-tab-panel-footer-noborder
+{
+    border-width: 1px 0 0 0;
+}
+
+.x-tab-panel-noborder .x-tab-panel-header-noborder
+{
+    border-width: 0 0 1px 0;
+}
+
+
+/* x-tool */
+.x-tool
+{
+    overflow	: hidden;
+    width		: 15px;
+    height		: 15px;
+    float		: right;
+    cursor		: pointer;
+    background	: transparent no-repeat;
+    background-image : url(../images/default/tool-sprites.gif);
+    margin-left	: 2px;
+    margin-top	: 5px;
+}
+
+.x-tool-close
+{
+    background-position	: 0 -0;
+}
+
+/* x-unselectable */
+
+.x-unselectable, .x-unselectable * 
+{
+    -moz-user-select	: none;
+    -khtml-user-select	: none;
+    -webkit-user-select	: ignore;
+}
+
+/* x-window */
+
+.x-window
+{
+	visibility	: visible;
+	display		: block;
+}
+
+.x-window .x-resizable-handle
+{
+    opacity	:0;
+    -moz-opacity :0;
+    filter	:alpha(opacity=0);
+}
+
+.x-window-draggable, .x-window-draggable .x-window-header-text
+{
+    cursor	: move;
+}
+
+.x-window-header
+{
+    float		: left;
+    overflow	: hidden;
+    zoom		: 1;
+}
+
+.x-window-bc
+{
+	background	: transparent repeat-x 0 bottom;
+	background-image : url(../images/default/top-bottom.png);
+    zoom : 1;
+}
+
+.x-window-bc .x-window-footer
+{
+    padding-bottom	:6px;
+    zoom	: 1;
+    font-size	: 0;
+    line-height	: 0;
+}
+
+.x-window-body
+{
+    background	: transparent;
+    overflow	: hidden;
+}
+
+.x-window-bwrap
+{
+    position : relative;
+	overflow : hidden;
+    zoom	: 1;
+    left : 0;
+    top : 0;
+}
+
+.x-window-tc
+{
+	background: transparent repeat-x 0 0;
+	background-image: url(../images/default/top-bottom.png);
+	overflow:hidden;
+    zoom:1;
+}
+
+.x-window-tl
+{
+	background: transparent no-repeat 0 0;
+	background-image: url(../images/default/left-corners.png);
+	padding-left:6px;
+    zoom:1;
+    position:relative;
+}
+
+.x-window-tr
+{
+	background: transparent no-repeat right 0;
+	background-image: url(../images/default/right-corners.png);
+	padding-right:6px;
+}
+
+.x-window-bl
+{
+	background: transparent no-repeat 0 bottom;
+	background-image: url(../images/default/left-corners.png);
+	padding-left:6px;
+    zoom:1;
+}
+
+.x-window-br
+{
+	background: transparent no-repeat right bottom;
+	background-image: url(../images/default/right-corners.png);
+	padding-right:6px;
+    zoom:1;
+}
+
+.x-window-mc
+{
+    background-color:#dfe8f6;
+	border:1px solid;
+	border-color:#918b8b;
+	font: normal 11px tahoma,arial,helvetica,sans-serif;
+    padding:0;
+    margin:0;
+}
+
+.x-window-ml
+{
+	background: transparent repeat-y 0 0;
+	background-image: url(../images/default/left-right.png);
+	padding-left:6px;
+    zoom:1;
+}
+
+.x-window-mr
+{
+	background: transparent repeat-y right 0;
+	background-image: url(../images/default/left-right.png);
+	padding-right:6px;
+    zoom:1;
+}
+
+.x-window-noborder .x-window-mc
+{
+    border-width:0;
+}
+
+.x-window-tl .x-window-header
+{
+    color:#585656;
+	font:bold 11px tahoma,arial,verdana,sans-serif;
+	padding:5px 0 4px 0;
+}
Index: sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_comics.css
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_comics.css	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_comics.css	(revision 2397)
@@ -0,0 +1,331 @@
+/* x-menu */
+
+.x-menu
+{
+	background-color : #fff !important;
+	border		: 1px solid #000;
+	color		: #000 !important;
+	display		: none;
+	position	: absolute;
+}
+
+.x-subMenuChangeStatus
+{
+	background-color : #fff !important;
+	border		: 1px solid #000;
+	color		: #000 !important;
+	float		: left;
+	margin		: -10px 5px 0px 0px;
+	position	: absolute;
+}
+
+.x-subMenuChangeStatusItens
+{
+	background-color 	: #fff !important; 
+	border		: 1px solid #000; 
+	color		: #000 !important;
+	float		: left;
+	position	: absolute;
+}
+
+.x-menuOnMouseOut
+{
+}
+
+.x-menuOnMouseOver
+{
+	background-color : #f4f2f2 !important;
+	border : 1px solid #000;
+}
+
+/* x-content */
+
+.x-content
+{
+	margin : 2px ;
+}
+
+/* x-panel */
+
+.x-panel
+{
+    border-color: #000000;
+    border-style: solid;
+    border-width:0;
+}
+
+.x-panel-body
+{
+    background-color:#fff;
+    border:1px solid;
+    border-color:#000000;
+    border-top:0 none;
+    position: relative; 
+    overflow:hidden;
+    zoom:1;
+}
+
+.x-panel-body-noheader
+{
+    border-top-color: #000000;
+}
+
+.x-panel-bwrap
+{
+    overflow:hidden;
+    zoom:1;
+    left:0;
+    top:0;
+}
+
+.x-panel-nofooter .x-btn-group-bc
+{
+	height:3px;
+    font-size:0;
+    line-height:0;
+}
+
+.x-panel-nofooter .x-window-bc
+{
+	height:6px;
+    font-size:0;
+    line-height:0;
+}
+
+.x-panel-noborder .x-panel-body-noborder
+{
+    border-width:0;
+}
+
+.x-panel-noborder .x-panel-header-noborder
+{
+    border-bottom-color:#000000;
+    border-width:0 0 1px;
+    border-style:solid;
+}
+
+.x-panel-noborder .x-panel-bbar-noborder .x-toolbar
+{
+    border-width:1px 0 0 0;
+    border-style:solid;
+    border-top-color:#000000;
+}
+
+.x-panel-noborder .x-panel-tbar-noborder .x-toolbar
+{
+    border-bottom-color:#000000;
+	border-width:0 0 1px;
+    border-style:solid;
+}
+
+/* x-shadow */ 
+
+.x-shadow_Div
+{
+	border 		: 1px dashed black;
+	position 	: absolute;
+}
+
+/* x-tab */
+
+.x-tab-panel
+{
+    overflow:hidden;
+}
+
+.x-tab-panel-body
+{
+    border: 1px solid;
+    border-color:#8db2e3;
+    background-color:#fff;
+    overflow:hidden;
+}
+
+.x-tab-panel-body-top
+{
+    border-top: 0 none;
+}
+
+.x-tab-panel-bwrap
+{
+    overflow:hidden;
+}
+
+.x-tab-panel-noborder .x-tab-panel-body-noborder
+{
+	border-width:0;
+}
+
+.x-tab-panel-noborder .x-tab-panel-footer-noborder
+{
+    border-width: 1px 0 0 0;
+}
+
+.x-tab-panel-noborder .x-tab-panel-header-noborder
+{
+    border-width: 0 0 1px 0;
+}
+
+
+/* x-tool */
+.x-tool
+{
+    overflow	: hidden;
+    width		: 15px;
+    height		: 15px;
+    float		: right;
+    cursor		: pointer;
+    background	: transparent no-repeat;
+    background-image : url(../images/comics/tool-sprites.gif);
+    margin-left	: 2px;
+    margin-top	: 5px;
+}
+
+.x-tool-close
+{
+    background-position	: 0 -0;
+}
+
+/* x-unselectable */
+
+.x-unselectable, .x-unselectable * 
+{
+    -moz-user-select	: none;
+    -khtml-user-select	: none;
+    -webkit-user-select	: ignore;
+}
+
+/* x-window */
+
+.x-window
+{
+	visibility	: visible;
+	/*display		: block;*/
+}
+
+.x-window .x-resizable-handle
+{
+    opacity	:0;
+    -moz-opacity :0;
+    filter	:alpha(opacity=0);
+}
+
+.x-window-draggable, .x-window-draggable .x-window-header-text
+{
+    cursor	: move;
+}
+
+.x-window-header
+{
+    float		: left;
+    overflow	: hidden;
+    zoom		: 1;
+}
+
+.x-window-bc
+{
+	background	: transparent repeat-x 0 bottom;
+	background-image : url(../images/comics/top-bottom.png);
+    zoom : 1;
+}
+
+.x-window-bc .x-window-footer
+{
+    padding-bottom	:6px;
+    zoom	: 1;
+    font-size	: 0;
+    line-height	: 0;
+}
+
+.x-window-body
+{
+    background	: transparent;
+    overflow	: hidden;
+}
+
+.x-window-bwrap
+{
+    position : relative;
+	overflow : hidden;
+    zoom	: 1;
+    left : 0;
+    top : 0;
+}
+
+.x-window-tc
+{
+	background: transparent repeat-x 0 0;
+	background-image: url(../images/comics/top-bottom.png);
+	overflow:hidden;
+    zoom:1;
+}
+
+.x-window-tl
+{
+	background: transparent no-repeat 0 0;
+	background-image: url(../images/comics/left-corners.png);
+	padding-left:6px;
+    zoom:1;
+    position:relative;
+}
+
+.x-window-tr
+{
+	background: transparent no-repeat right 0;
+	background-image: url(../images/comics/right-corners.png);
+	padding-right:6px;
+}
+
+.x-window-bl
+{
+	background: transparent no-repeat 0 bottom;
+	background-image: url(../images/comics/left-corners.png);
+	padding-left:6px;
+    zoom:1;
+}
+
+.x-window-br
+{
+	background: transparent no-repeat right bottom;
+	background-image: url(../images/comics/right-corners.png);
+	padding-right:6px;
+    zoom:1;
+}
+
+.x-window-mc
+{
+    background-color:#dfe8f6;
+	border:1px solid;
+	border-color:#000000;
+	font: normal 11px tahoma,arial,helvetica,sans-serif;
+    padding:0;
+    margin:0;
+}
+
+.x-window-ml
+{
+	background: transparent repeat-y 0 0;
+	background-image: url(../images/comics/left-right.png);
+	padding-left:6px;
+    zoom:1;
+}
+
+.x-window-mr
+{
+	background: transparent repeat-y right 0;
+	background-image: url(../images/comics/left-right.png);
+	padding-right:6px;
+    zoom:1;
+}
+
+.x-window-noborder .x-window-mc
+{
+    border-width:0;
+}
+
+.x-window-tl .x-window-header
+{
+    color:#000000;
+	font:bold 11px tahoma,arial,verdana,sans-serif;
+	padding:5px 0 4px 0;
+}
Index: sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_rochas.css
===================================================================
--- sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_rochas.css	(revision 2397)
+++ sandbox/jabberit_messenger/trophy_expresso/templates/default/css/window_rochas.css	(revision 2397)
@@ -0,0 +1,330 @@
+/* x-menu */
+
+.x-menu
+{
+	background-color : #cfb69e !important;
+	border		: 1px solid #bd8d5d;
+	color		: #000 !important;
+	display		: none;
+	position	: absolute;
+}
+
+.x-subMenuChangeStatus
+{
+	background-color : #cfb69e !important;
+	border		: 1px solid #bd8d5d;
+	color		: #000 !important;
+	float		: left;
+	margin		: -10px 5px 0px 0px;
+	position	: absolute;
+}
+
+.x-subMenuChangeStatusItens
+{
+	background-color 	: #cfb69e !important;
+	border		: 1px solid #bd8d5d; 
+	color		: #000 !important;
+	float		: left;
+	position	: absolute;
+}
+
+.x-menuOnMouseOut
+{
+}
+
+.x-menuOnMouseOver
+{
+	background-color : #f4dcc4 !important; 
+	border : 1px solid #bd8d5d;  
+}
+
+/* x-content */
+
+.x-content
+{
+	margin : 2px ;
+}
+
+
+/* x-panel */
+
+.x-panel
+{
+    border-color: #bd8d5d;
+    border-style: solid;
+    border-width:0;
+}
+
+.x-panel-body
+{
+    background-color:#fff;
+    border:1px solid;
+    border-color:#bd8d5d;
+    border-top:0 none;
+    position: relative; 
+    overflow:hidden;
+    zoom:1;
+}
+
+.x-panel-body-noheader
+{
+    border-top-color: #bd8d5d;
+}
+
+.x-panel-bwrap
+{
+    overflow:hidden;
+    zoom:1;
+    left:0;
+    top:0;
+}
+
+.x-panel-nofooter .x-btn-group-bc
+{
+	height:3px;
+    font-size:0;
+    line-height:0;
+}
+
+.x-panel-nofooter .x-window-bc
+{
+	height:6px;
+    font-size:0;
+    line-height:0;
+}
+
+.x-panel-noborder .x-panel-body-noborder
+{
+    border-width:0;
+}
+
+.x-panel-noborder .x-panel-header-noborder
+{
+    border-bottom-color:#bd8d5d;
+    border-width:0 0 1px;
+    border-style:solid;
+}
+
+.x-panel-noborder .x-panel-bbar-noborder .x-toolbar
+{
+    border-width:1px 0 0 0;
+    border-style:solid;
+    border-top-color:#bd8d5d;
+}
+
+.x-panel-noborder .x-panel-tbar-noborder .x-toolbar
+{
+    border-bottom-color:#bd8d5d;
+	border-width:0 0 1px;
+    border-style:solid;
+}
+
+/* x-shadow */ 
+
+.x-shadow_Div
+{
+	border 		: 1px dashed black;
+	position 	: absolute;
+}
+
+/* x-tab */
+
+.x-tab-panel
+{
+    overflow:hidden;
+}
+
+.x-tab-panel-body
+{
+    border: 1px solid;
+    background-color:#fff;
+    overflow:hidden;
+}
+
+.x-tab-panel-body-top
+{
+    border-top: 0 none;
+}
+
+.x-tab-panel-bwrap
+{
+    overflow:hidden;
+}
+
+.x-tab-panel-noborder .x-tab-panel-body-noborder
+{
+	border-width:0;
+}
+
+.x-tab-panel-noborder .x-tab-panel-footer-noborder
+{
+    border-width: 1px 0 0 0;
+}
+
+.x-tab-panel-noborder .x-tab-panel-header-noborder
+{
+    border-width: 0 0 1px 0;
+}
+
+
+/* x-tool */
+.x-tool
+{
+    overflow	: hidden;
+    width		: 15px;
+    height		: 15px;
+    float		: right;
+    cursor		: pointer;
+    background	: transparent no-repeat;
+    background-image : url(../images/rochas/tool-sprites.gif);
+    margin-left	: 2px;
+    margin-top	: 5px;
+}
+
+.x-tool-close
+{
+    background-position	: 0 -0;
+}
+
+/* x-unselectable */
+
+.x-unselectable, .x-unselectable * 
+{
+    -moz-user-select	: none;
+    -khtml-user-select	: none;
+    -webkit-user-select	: ignore;
+}
+
+/* x-window */
+
+.x-window
+{
+	visibility	: visible;
+	display		: block;
+}
+
+.x-window .x-resizable-handle
+{
+    opacity	:0;
+    -moz-opacity :0;
+    filter	:alpha(opacity=0);
+}
+
+.x-window-draggable, .x-window-draggable .x-window-header-text
+{
+    cursor	: move;
+}
+
+.x-window-header
+{
+    float		: left;
+    overflow	: hidden;
+    zoom		: 1;
+}
+
+.x-window-bc
+{
+	background	: transparent repeat-x 0 bottom;
+	background-image : url(../images/rochas/top-bottom.png);
+    zoom : 1;
+}
+
+.x-window-bc .x-window-footer
+{
+    padding-bottom	:6px;
+    zoom	: 1;
+    font-size	: 0;
+    line-height	: 0;
+}
+
+.x-window-body
+{
+    background	: transparent;
+    overflow	: hidden;
+}
+
+.x-window-bwrap
+{
+    position : relative;
+	overflow : hidden;
+    zoom	: 1;
+    left : 0;
+    top : 0;
+}
+
+.x-window-tc
+{
+	background: transparent repeat-x 0 0;
+	background-image: url(../images/rochas/top-bottom.png);
+	overflow:hidden;
+    zoom:1;
+}
+
+.x-window-tl
+{
+	background: transparent no-repeat 0 0;
+	background-image: url(../images/rochas/left-corners.png);
+	padding-left:6px;
+    zoom:1;
+    position:relative;
+}
+
+.x-window-tr
+{
+	background: transparent no-repeat right 0;
+	background-image: url(../images/rochas/right-corners.png);
+	padding-right:6px;
+}
+
+.x-window-bl
+{
+	background: transparent no-repeat 0 bottom;
+	background-image: url(../images/rochas/left-corners.png);
+	padding-left:6px;
+    zoom:1;
+}
+
+.x-window-br
+{
+	background: transparent no-repeat right bottom;
+	background-image: url(../images/rochas/right-corners.png);
+	padding-right:6px;
+    zoom:1;
+}
+
+.x-window-mc
+{
+	border:1px solid;
+	border-color:#bd8d5d;
+	font: normal 11px tahoma,arial,helvetica,sans-serif;
+    padding:0;
+    margin:0;
+}
+
+.x-window-ml
+{
+	background: transparent repeat-y 0 0;
+	background-image: url(../images/rochas/left-right.png);
+	padding-left:6px;
+    zoom:1;
+}
+
+.x-window-mr
+{
+	background: transparent repeat-y right 0;
+	background-image: url(../images/rochas/left-right.png);
+	padding-right:6px;
+    zoom:1;
+}
+
+.x-window-noborder .x-window-mc
+{
+    border-width:0;
+}
+
+.x-window-tl .x-window-header
+{
+    color:#000;
+	font:bold 11px tahoma,arial,verdana,sans-serif;
+	padding:5px 0 4px 0;
+}
