Warning: include_once(/home/onesinal/public_html/ones_system//config/database.php): failed to open stream: No such file or directory in /home/onesinal/public_html/cometchat/integration.php on line 19

Warning: include_once(): Failed opening '/home/onesinal/public_html/ones_system//config/database.php' for inclusion (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/onesinal/public_html/cometchat/integration.php on line 19

Warning: include(/home/onesinal/public_html/cometchat/lang/en.php): failed to open stream: No such file or directory in /home/onesinal/public_html/cometchat/config.php on line 245

Warning: include(): Failed opening '/home/onesinal/public_html/cometchat/lang/en.php' for inclusion (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/onesinal/public_html/cometchat/config.php on line 245

Warning: Cannot modify header information - headers already sent by (output started at /home/onesinal/public_html/cometchat/integration.php:19) in /home/onesinal/public_html/cometchat/cometchatjs.php on line 88

Warning: Cannot modify header information - headers already sent by (output started at /home/onesinal/public_html/cometchat/integration.php:19) in /home/onesinal/public_html/cometchat/cometchatjs.php on line 89

Warning: Cannot modify header information - headers already sent by (output started at /home/onesinal/public_html/cometchat/integration.php:19) in /home/onesinal/public_html/cometchat/cometchatjs.php on line 90
/*! * jQuery JavaScript Library v1.5.2 * http://jQuery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jQuery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. * * Date: Thu Mar 31 15:28:23 2011 -0400 */ (function(a,b){function ci(a){return d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cf(a){if(!b_[a]){var b=d("<"+a+">").appendTo("body"),c=b.css("display");b.remove();if(c==="none"||c==="")c="block";b_[a]=c}return b_[a]}function ce(a,b){var c={};d.each(cd.concat.apply([],cd.slice(0,b)),function(){c[this]=a});return c}function b$(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function bZ(){try{return new a.XMLHttpRequest}catch(b){}}function bY(){d(a).unload(function(){for(var a in bW)bW[a](0,1)})}function bS(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var e=a.dataTypes,f={},g,h,i=e.length,j,k=e[0],l,m,n,o,p;for(g=1;g=0===c})}function P(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function H(a,b){return(a&&a!=="*"?a+".":"")+b.replace(t,"`").replace(u,"&")}function G(a){var b,c,e,f,g,h,i,j,k,l,m,n,o,p=[],q=[],s=d._data(this,"events");if(a.liveFired!==this&&s&&s.live&&!a.target.disabled&&(!a.button||a.type!=="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var t=s.live.slice(0);for(i=0;ic)break;a.currentTarget=f.elem,a.data=f.handleObj.data,a.handleObj=f.handleObj,o=f.handleObj.origHandler.apply(f.elem,arguments);if(o===!1||a.isPropagationStopped()){c=f.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function E(a,c,e){var f=d.extend({},e[0]);f.type=a,f.originalEvent={},f.liveFired=b,d.event.handle.call(c,f),f.isDefaultPrevented()&&e[0].preventDefault()}function y(){return!0}function x(){return!1}function i(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function h(a,c,e){if(e===b&&a.nodeType===1){e=a.getAttribute("data-"+c);if(typeof e==="string"){try{e=e==="true"?!0:e==="false"?!1:e==="null"?null:d.isNaN(e)?g.test(e)?d.parseJSON(e):e:parseFloat(e)}catch(f){}d.data(a,c,e)}else e=b}return e}var c=a.document,d=function(){function G(){if(!d.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(G,1);return}d.ready()}}var d=function(a,b){return new d.fn.init(a,b,g)},e=a.jqcc,f=a.$,g,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,i=/\S/,j=/^\s+/,k=/\s+$/,l=/\d/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=navigator.userAgent,w,x,y,z=Object.prototype.toString,A=Object.prototype.hasOwnProperty,B=Array.prototype.push,C=Array.prototype.slice,D=String.prototype.trim,E=Array.prototype.indexOf,F={};d.fn=d.prototype={constructor:d,init:function(a,e,f){var g,i,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!e&&c.body){this.context=c,this[0]=c.body,this.selector="body",this.length=1;return this}if(typeof a==="string"){g=h.exec(a);if(!g||!g[1]&&e)return!e||e.jqcc?(e||f).find(a):this.constructor(e).find(a);if(g[1]){e=e instanceof d?e[0]:e,k=e?e.ownerDocument||e:c,j=m.exec(a),j?d.isPlainObject(e)?(a=[c.createElement(j[1])],d.fn.attr.call(a,e,!0)):a=[k.createElement(j[1])]:(j=d.buildFragment([g[1]],[k]),a=(j.cacheable?d.clone(j.fragment):j.fragment).childNodes);return d.merge(this,a)}i=c.getElementById(g[2]);if(i&&i.parentNode){if(i.id!==g[2])return f.find(a);this.length=1,this[0]=i}this.context=c,this.selector=a;return this}if(d.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)},selector:"",jqcc:"1.5.2",length:0,size:function(){return this.length},toArray:function(){return C.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var e=this.constructor();d.isArray(a)?B.apply(e,a):d.merge(e,a),e.prevObject=this,e.context=this.context,b==="find"?e.selector=this.selector+(this.selector?" ":"")+c:b&&(e.selector=this.selector+"."+b+"("+c+")");return e},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady(),x.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(C.apply(this,arguments),"slice",C.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:B,sort:[].sort,splice:[].splice},d.fn.init.prototype=d.fn,d.extend=d.fn.extend=function(){var a,c,e,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i==="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!=="object"&&!d.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;x.resolveWith(c,[d]),d.fn.trigger&&d(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!x){x=d._Deferred();if(c.readyState==="complete")return setTimeout(d.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",y,!1),a.addEventListener("load",d.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",y),a.attachEvent("onload",d.ready);var b=!1;try{b=a.frameElement==null}catch(e){}c.documentElement.doScroll&&b&&G()}}},isFunction:function(a){return d.type(a)==="function"},isArray:Array.isArray||function(a){return d.type(a)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!l.test(a)||isNaN(a)},type:function(a){return a==null?String(a):F[z.call(a)]||"object"},isPlainObject:function(a){if(!a||d.type(a)!=="object"||a.nodeType||d.isWindow(a))return!1;if(a.constructor&&!A.call(a,"constructor")&&!A.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a){}return c===b||A.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=d.trim(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(b):(new Function("return "+b))();d.error("Invalid JSON: "+b)},parseXML:function(b,c,e){a.DOMParser?(e=new DOMParser,c=e.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),e=c.documentElement,(!e||!e.nodeName||e.nodeName==="parsererror")&&d.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(a){if(a&&i.test(a)){var b=c.head||c.getElementsByTagName("head")[0]||c.documentElement,e=c.createElement("script");d.support.scriptEval()?e.appendChild(c.createTextNode(a)):e.text=a,b.insertBefore(e,b.firstChild),b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,e){var f,g=0,h=a.length,i=h===b||d.isFunction(a);if(e){if(i){for(f in a)if(c.apply(a[f],e)===!1)break}else for(;g1?f.call(arguments,0):c,--g||h.resolveWith(h,f.call(b,0))}}var b=arguments,c=0,e=b.length,g=e,h=e<=1&&a&&d.isFunction(a.promise)?a:d.Deferred();if(e>1){for(;c
a";var e=b.getElementsByTagName("*"),f=b.getElementsByTagName("a")[0],g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=b.getElementsByTagName("input")[0];if(e&&e.length&&f){d.support={leadingWhitespace:b.firstChild.nodeType===3,tbody:!b.getElementsByTagName("tbody").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/red/.test(f.getAttribute("style")),hrefNormalized:f.getAttribute("href")==="/a",opacity:/^0.55$/.test(f.style.opacity),cssFloat:!!f.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0,reliableMarginRight:!0},i.checked=!0,d.support.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,d.support.optDisabled=!h.disabled;var j=null;d.support.scriptEval=function(){if(j===null){var b=c.documentElement,e=c.createElement("script"),f="script"+d.now();try{e.appendChild(c.createTextNode("window."+f+"=1;"))}catch(g){}b.insertBefore(e,b.firstChild),a[f]?(j=!0,delete a[f]):j=!1,b.removeChild(e)}return j};try{delete b.test}catch(k){d.support.deleteExpando=!1}!b.addEventListener&&b.attachEvent&&b.fireEvent&&(b.attachEvent("onclick",function l(){d.support.noCloneEvent=!1,b.detachEvent("onclick",l)}),b.cloneNode(!0).fireEvent("onclick")),b=c.createElement("div"),b.innerHTML="";var m=c.createDocumentFragment();m.appendChild(b.firstChild),d.support.checkClone=m.cloneNode(!0).cloneNode(!0).lastChild.checked,d(function(){var a=c.createElement("div"),b=c.getElementsByTagName("body")[0];if(b){a.style.width=a.style.paddingLeft="1px",b.appendChild(a),d.boxModel=d.support.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,d.support.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="
",d.support.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="
t
";var e=a.getElementsByTagName("td");d.support.reliableHiddenOffsets=e[0].offsetHeight===0,e[0].style.display="",e[1].style.display="none",d.support.reliableHiddenOffsets=d.support.reliableHiddenOffsets&&e[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(a.style.width="1px",a.style.marginRight="0",d.support.reliableMarginRight=(parseInt(c.defaultView.getComputedStyle(a,null).marginRight,10)||0)===0),b.removeChild(a).style.display="none",a=e=null}});var n=function(a){var b=c.createElement("div");a="on"+a;if(!b.attachEvent)return!0;var d=a in b;d||(b.setAttribute(a,"return;"),d=typeof b[a]==="function");return d};d.support.submitBubbles=n("submit"),d.support.changeBubbles=n("change"),b=e=f=null}}();var g=/^(?:\{.*\}|\[.*\])$/;d.extend({cache:{},uuid:0,expando:"jqcc"+(d.fn.jqcc+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!i(a)},data:function(a,c,e,f){if(d.acceptData(a)){var g=d.expando,h=typeof c==="string",i,j=a.nodeType,k=j?d.cache:a,l=j?a[d.expando]:a[d.expando]&&d.expando;if((!l||f&&l&&!k[l][g])&&h&&e===b)return;l||(j?a[d.expando]=l=++d.uuid:l=d.expando),k[l]||(k[l]={},j||(k[l].toJSON=d.noop));if(typeof c==="object"||typeof c==="function")f?k[l][g]=d.extend(k[l][g],c):k[l]=d.extend(k[l],c);i=k[l],f&&(i[g]||(i[g]={}),i=i[g]),e!==b&&(i[c]=e);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[c]:i}},removeData:function(b,c,e){if(d.acceptData(b)){var f=d.expando,g=b.nodeType,h=g?d.cache:b,j=g?b[d.expando]:d.expando;if(!h[j])return;if(c){var k=e?h[j][f]:h[j];if(k){delete k[c];if(!i(k))return}}if(e){delete h[j][f];if(!i(h[j]))return}var l=h[j][f];d.support.deleteExpando||h!=a?delete h[j]:h[j]=null,l?(h[j]={},g||(h[j].toJSON=d.noop),h[j][f]=l):g&&(d.support.deleteExpando?delete b[d.expando]:b.removeAttribute?b.removeAttribute(d.expando):b[d.expando]=null)}},_data:function(a,b,c){return d.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=d.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),d.fn.extend({data:function(a,c){var e=null;if(typeof a==="undefined"){if(this.length){e=d.data(this[0]);if(this[0].nodeType===1){var f=this[0].attributes,g;for(var i=0,j=f.length;i-1)return!0;return!1},val:function(a){if(!arguments.length){var c=this[0];if(c){if(d.nodeName(c,"option")){var e=c.attributes.value;return!e||e.specified?c.value:c.text}if(d.nodeName(c,"select")){var f=c.selectedIndex,g=[],h=c.options,i=c.type==="select-one";if(f<0)return null;for(var j=i?f:0,k=i?f+1:h.length;j=0;else if(d.nodeName(this,"select")){var f=d.makeArray(e);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),f)>=0}),f.length||(this.selectedIndex=-1)}else this.value=e}})}}),d.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,e,f){if(!a||a.nodeType===3||a.nodeType===8||a.nodeType===2)return b;if(f&&c in d.attrFn)return d(a)[c](e);var g=a.nodeType!==1||!d.isXMLDoc(a),h=e!==b;c=g&&d.props[c]||c;if(a.nodeType===1){var i=m.test(c);if(c==="selected"&&!d.support.optSelected){var j=a.parentNode;j&&(j.selectedIndex,j.parentNode&&j.parentNode.selectedIndex)}if((c in a||a[c]!==b)&&g&&!i){h&&(c==="type"&&n.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed"),e===null?a.nodeType===1&&a.removeAttribute(c):a[c]=e);if(d.nodeName(a,"form")&&a.getAttributeNode(c))return a.getAttributeNode(c).nodeValue;if(c==="tabIndex"){var k=a.getAttributeNode("tabIndex");return k&&k.specified?k.value:o.test(a.nodeName)||p.test(a.nodeName)&&a.href?0:b}return a[c]}if(!d.support.style&&g&&c==="style"){h&&(a.style.cssText=""+e);return a.style.cssText}h&&a.setAttribute(c,""+e);if(!a.attributes[c]&&(a.hasAttribute&&!a.hasAttribute(c)))return b;var l=!d.support.hrefNormalized&&g&&i?a.getAttribute(c,2):a.getAttribute(c);return l===null?b:l}h&&(a[c]=e);return a[c]}});var r=/\.(.*)$/,s=/^(?:textarea|input|select)$/i,t=/\./g,u=/ /g,v=/[^\w\s.|`]/g,w=function(a){return a.replace(v,"\\$&")};d.event={add:function(c,e,f,g){if(c.nodeType!==3&&c.nodeType!==8){try{d.isWindow(c)&&(c!==a&&!c.frameElement)&&(c=a)}catch(h){}if(f===!1)f=x;else if(!f)return;var i,j;f.handler&&(i=f,f=i.handler),f.guid||(f.guid=d.guid++);var k=d._data(c);if(!k)return;var l=k.events,m=k.handle;l||(k.events=l={}),m||(k.handle=m=function(a){return typeof d!=="undefined"&&d.event.triggered!==a.type?d.event.handle.apply(m.elem,arguments):b}),m.elem=c,e=e.split(" ");var n,o=0,p;while(n=e[o++]){j=i?d.extend({},i):{handler:f,data:g},n.indexOf(".")>-1?(p=n.split("."),n=p.shift(),j.namespace=p.slice(0).sort().join(".")):(p=[],j.namespace=""),j.type=n,j.guid||(j.guid=f.guid);var q=l[n],r=d.event.special[n]||{};if(!q){q=l[n]=[];if(!r.setup||r.setup.call(c,g,p,m)===!1)c.addEventListener?c.addEventListener(n,m,!1):c.attachEvent&&c.attachEvent("on"+n,m)}r.add&&(r.add.call(c,j),j.handler.guid||(j.handler.guid=f.guid)),q.push(j),d.event.global[n]=!0}c=null}},global:{},remove:function(a,c,e,f){if(a.nodeType!==3&&a.nodeType!==8){e===!1&&(e=x);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=d.hasData(a)&&d._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(e=c.handler,c=c.type);if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(h in t)d.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+d.map(m.slice(0).sort(),w).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!e){for(j=0;j=0&&(a.type=f=f.slice(0,-1),a.exclusive=!0),e||(a.stopPropagation(),d.event.global[f]&&d.each(d.cache,function(){var b=d.expando,e=this[b];e&&e.events&&e.events[f]&&d.event.trigger(a,c,e.handle.elem)}));if(!e||e.nodeType===3||e.nodeType===8)return b;a.result=b,a.target=e,c=d.makeArray(c),c.unshift(a)}a.currentTarget=e;var h=d._data(e,"handle");h&&h.apply(e,c);var i=e.parentNode||e.ownerDocument;try{e&&e.nodeName&&d.noData[e.nodeName.toLowerCase()]||e["on"+f]&&e["on"+f].apply(e,c)===!1&&(a.result=!1,a.preventDefault())}catch(j){}if(!a.isPropagationStopped()&&i)d.event.trigger(a,c,i,!0);else if(!a.isDefaultPrevented()){var k,l=a.target,m=f.replace(r,""),n=d.nodeName(l,"a")&&m==="click",o=d.event.special[m]||{};if((!o._default||o._default.call(e,a)===!1)&&!n&&!(l&&l.nodeName&&d.noData[l.nodeName.toLowerCase()])){try{l[m]&&(k=l["on"+m],k&&(l["on"+m]=null),d.event.triggered=a.type,l[m]())}catch(p){}k&&(l["on"+m]=k),d.event.triggered=b}}},handle:function(c){var e,f,g,h,i,j=[],k=d.makeArray(arguments);c=k[0]=d.event.fix(c||a.event),c.currentTarget=this,e=c.type.indexOf(".")<0&&!c.exclusive,e||(g=c.type.split("."),c.type=g.shift(),j=g.slice(0).sort(),h=new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)")),c.namespace=c.namespace||j.join("."),i=d._data(this,"events"),f=(i||{})[c.type];if(i&&f){f=f.slice(0);for(var l=0,m=f.length;l-1?d.map(a.options,function(a){return a.selected}).join("-"):"":a.nodeName.toLowerCase()==="select"&&(c=a.selectedIndex);return c},D=function D(a){var c=a.target,e,f;if(s.test(c.nodeName)&&!c.readOnly){e=d._data(c,"_change_data"),f=C(c),(a.type!=="focusout"||c.type!=="radio")&&d._data(c,"_change_data",f);if(e===b||f===e)return;if(e!=null||f)a.type="change",a.liveFired=b,d.event.trigger(a,arguments[1],c)}};d.event.special.change={filters:{focusout:D,beforedeactivate:D,click:function(a){var b=a.target,c=b.type;(c==="radio"||c==="checkbox"||b.nodeName.toLowerCase()==="select")&&D.call(this,a)},keydown:function(a){var b=a.target,c=b.type;(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&D.call(this,a)},beforeactivate:function(a){var b=a.target;d._data(b,"_change_data",C(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in B)d.event.add(this,c+".specialChange",B[c]);return s.test(this.nodeName)},teardown:function(a){d.event.remove(this,".specialChange");return s.test(this.nodeName)}},B=d.event.special.change.filters,B.focus=B.beforeactivate}c.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,b){function f(a){var c=d.event.fix(a);c.type=b,c.originalEvent={},d.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var e=0;d.event.special[b]={setup:function(){e++===0&&c.addEventListener(a,f,!0)},teardown:function(){--e===0&&c.removeEventListener(a,f,!0)}}}),d.each(["bind","one"],function(a,c){d.fn[c]=function(a,e,f){if(typeof a==="object"){for(var g in a)this[c](g,e,a[g],f);return this}if(d.isFunction(e)||e===!1)f=e,e=b;var h=c==="one"?d.proxy(f,function(a){d(this).unbind(a,h);return f.apply(this,arguments)}):f;if(a==="unload"&&c!=="one")this.one(a,e,f);else for(var i=0,j=this.length;i0?this.bind(b,a,c):this.trigger(b)},d.attrFn&&(d.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,e,g){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!=="string")return e;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(f.call(n)==="[object Array]")if(u)if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&e.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&e.push(j[t]);else e.push.apply(e,n);else p(n,e);o&&(k(o,h,e,g),k.uniqueSort(e));return e};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return"text"===c&&(b===c||b===null)},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(f.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!=="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g0)for(var g=c;g0},closest:function(a,b){var c=[],e,f,g=this[0];if(d.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(e=0,f=a.length;e-1:d(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=N.test(a)?d(a,b||this.context):null;for(e=0,f=this.length;e-1:d.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b)break}}c=c.length>1?d.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jqcc?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?d(a,b):d.makeArray(a),e=d.merge(this.get(),c);return this.pushStack(P(c[0])||P(e[0])?e:d.unique(e))},andSelf:function(){return this.add(this.prevObject)}}),d.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode",c)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,c){return d.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling",c)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(c,e){var f=d.map(this,b,c),g=M.call(arguments);I.test(a)||(e=c),e&&typeof e==="string"&&(f=d.filter(e,f)),f=this.length>1&&!O[a]?d.unique(f):f,(this.length>1||K.test(e))&&J.test(a)&&(f=f.reverse());return this.pushStack(f,a,g.join(","))}}),d.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,c,e){var f=[],g=a[c];while(g&&g.nodeType!==9&&(e===b||g.nodeType!==1||!d(g).is(e)))g.nodeType===1&&f.push(g),g=g[c];return f},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var R=/ jqcc\d+="(?:\d+|null)"/g,S=/^\s+/,T=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,U=/<([\w:]+)/,V=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};Z.optgroup=Z.option,Z.tbody=Z.tfoot=Z.colgroup=Z.caption=Z.thead,Z.th=Z.td,d.support.htmlSerialize||(Z._default=[1,"div
","
"]),d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.text(a.call(this,b,c.text()))});if(typeof a!=="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapInner(a.call(this,b))});return this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,e;(e=this[c])!=null;c++)if(!a||d.filter(a,[e]).length)!b&&e.nodeType===1&&(d.cleanData(e.getElementsByTagName("*")),d.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&d.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(R,""):null;if(typeof a!=="string"||X.test(a)||!d.support.leadingWhitespace&&S.test(a)||Z[(U.exec(a)||["",""])[1].toLowerCase()])d.isFunction(a)?this.each(function(b){var c=d(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);else{a=a.replace(T,"<$1>");try{for(var c=0,e=this.length;c1&&l0?this.clone(!0):this).get();d(f[h])[b](j),e=e.concat(j)}return this.pushStack(e,a,f.selector)}}),d.extend({clone:function(a,b,c){var e=a.cloneNode(!0),f,g,h;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){ba(a,e),f=bb(a),g=bb(e);for(h=0;f[h];++h)ba(f[h],g[h])}if(b){_(a,e);if(c){f=bb(a),g=bb(e);for(h=0;f[h];++h)_(f[h],g[h])}}return e},clean:function(a,b,e,f){b=b||c,typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var g=[];for(var h=0,i;(i=a[h])!=null;h++){typeof i==="number"&&(i+="");if(!i)continue;if(typeof i!=="string"||W.test(i)){if(typeof i==="string"){i=i.replace(T,"<$1>");var j=(U.exec(i)||["",""])[1].toLowerCase(),k=Z[j]||Z._default,l=k[0],m=b.createElement("div");m.innerHTML=k[1]+i+k[2];while(l--)m=m.lastChild;if(!d.support.tbody){var n=V.test(i),o=j==="table"&&!n?m.firstChild&&m.firstChild.childNodes:k[1]===""&&!n?m.childNodes:[];for(var p=o.length-1;p>=0;--p)d.nodeName(o[p],"tbody")&&!o[p].childNodes.length&&o[p].parentNode.removeChild(o[p])}!d.support.leadingWhitespace&&S.test(i)&&m.insertBefore(b.createTextNode(S.exec(i)[0]),m.firstChild),i=m.childNodes}}else i=b.createTextNode(i);i.nodeType?g.push(i):g=d.merge(g,i)}if(e)for(h=0;g[h];h++)!f||!d.nodeName(g[h],"script")||g[h].type&&g[h].type.toLowerCase()!=="text/javascript"?(g[h].nodeType===1&&g.splice.apply(g,[h+1,0].concat(d.makeArray(g[h].getElementsByTagName("script")))),e.appendChild(g[h])):f.push(g[h].parentNode?g[h].parentNode.removeChild(g[h]):g[h]);return g},cleanData:function(a){var b,c,e=d.cache,f=d.expando,g=d.event.special,h=d.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&d.noData[j.nodeName.toLowerCase()])continue;c=j[d.expando];if(c){b=e[c]&&e[c][f];if(b&&b.events){for(var k in b.events)g[k]?d.event.remove(j,k):d.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[d.expando]:j.removeAttribute&&j.removeAttribute(d.expando),delete e[c]}}}});var bd=/alpha\([^)]*\)/i,be=/opacity=([^)]*)/,bf=/-([a-z])/ig,bg=/([A-Z]|^ms)/g,bh=/^-?\d+(?:px)?$/i,bi=/^-?\d/,bj={position:"absolute",visibility:"hidden",display:"block"},bk=["Left","Right"],bl=["Top","Bottom"],bm,bn,bo,bp=function(a,b){return b.toUpperCase()};d.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return d.access(this,a,c,!0,function(a,c,e){return e!==b?d.style(a,c,e):d.css(a,c)})},d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bm(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,e,f){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var g,h=d.camelCase(c),i=a.style,j=d.cssHooks[h];c=d.cssProps[h]||h;if(e===b){if(j&&"get"in j&&(g=j.get(a,!1,f))!==b)return g;return i[c]}if(typeof e==="number"&&isNaN(e)||e==null)return;typeof e==="number"&&!d.cssNumber[h]&&(e+="px");if(!j||!("set"in j)||(e=j.set(a,e))!==b)try{i[c]=e}catch(k){}}},css:function(a,c,e){var f,g=d.camelCase(c),h=d.cssHooks[g];c=d.cssProps[g]||g;if(h&&"get"in h&&(f=h.get(a,!0,e))!==b)return f;if(bm)return bm(a,c,g)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]},camelCase:function(a){return a.replace(bf,bp)}}),d.curCSS=d.css,d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(a,c,e){var f;if(c){a.offsetWidth!==0?f=bq(a,b,e):d.swap(a,bj,function(){f=bq(a,b,e)});if(f<=0){f=bm(a,b,b),f==="0px"&&bo&&(f=bo(a,b,b));if(f!=null)return f===""||f==="auto"?"0px":f}if(f<0||f==null){f=a.style[b];return f===""||f==="auto"?"0px":f}return typeof f==="string"?f:f+"px"}},set:function(a,b){if(!bh.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),d.support.opacity||(d.cssHooks.opacity={get:function(a,b){return be.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style;c.zoom=1;var e=d.isNaN(b)?"":"alpha(opacity="+b*100+")",f=c.filter||"";c.filter=bd.test(f)?f.replace(bd,e):c.filter+" "+e}}),d(function(){d.support.reliableMarginRight||(d.cssHooks.marginRight={get:function(a,b){var c;d.swap(a,{display:"inline-block"},function(){b?c=bm(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bn=function(a,c,e){var f,g,h;e=e.replace(bg,"-$1").toLowerCase();if(!(g=a.ownerDocument.defaultView))return b;if(h=g.getComputedStyle(a,null))f=h.getPropertyValue(e),f===""&&!d.contains(a.ownerDocument.documentElement,a)&&(f=d.style(a,e));return f}),c.documentElement.currentStyle&&(bo=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bh.test(d)&&bi.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bm=bn||bo,d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!d.support.reliableHiddenOffsets&&(a.style.display||d.css(a,"display"))==="none"},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)});var br=/%20/g,bs=/\[\]$/,bt=/\r?\n/g,bu=/#.*$/,bv=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bw=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bx=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,by=/^(?:GET|HEAD)$/,bz=/^\/\//,bA=/\?/,bB=/)<[^<]*)*<\/script>/gi,bC=/^(?:select|textarea)/i,bD=/\s+/,bE=/([?&])_=[^&]*/,bF=/(^|\-)([a-z])/g,bG=function(a,b,c){return b+c.toUpperCase()},bH=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bI=d.fn.load,bJ={},bK={},bL,bM;try{bL=c.location.href}catch(bN){bL=c.createElement("a"),bL.href="",bL=bL.href}bM=bH.exec(bL.toLowerCase())||[],d.fn.extend({load:function(a,c,e){if(typeof a!=="string"&&bI)return bI.apply(this,arguments);if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var g=a.slice(f,a.length);a=a.slice(0,f)}var h="GET";c&&(d.isFunction(c)?(e=c,c=b):typeof c==="object"&&(c=d.param(c,d.ajaxSettings.traditional),h="POST"));var i=this;d.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?d("
").append(c.replace(bB,"")).find(g):c)),e&&i.each(e,[c,b,a])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bC.test(this.nodeName)||bw.test(this.type))}).map(function(a,b){var c=d(this).val();return c==null?null:d.isArray(c)?d.map(c,function(a,c){return{name:b.name,value:a.replace(bt,"\r\n")}}):{name:b.name,value:c.replace(bt,"\r\n")}}).get()}}),d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(a){return this.bind(b,a)}}),d.each(["get","post"],function(a,c){d[c]=function(a,e,f,g){d.isFunction(e)&&(g=g||f,f=e,e=b);return d.ajax({type:c,url:a,data:e,success:f,dataType:g})}}),d.extend({getScript:function(a,c){return d.get(a,b,c,"script")},getJSON:function(a,b,c){return d.get(a,b,c,"json")},ajaxSetup:function(a,b){b?d.extend(!0,a,d.ajaxSettings,b):(b=a,a=d.extend(!0,d.ajaxSettings,b));for(var c in {context:1,url:1})c in b?a[c]=b[c]:c in d.ajaxSettings&&(a[c]=d.ajaxSettings[c]);return a},ajaxSettings:{url:bL,isLocal:bx.test(bM[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML}},ajaxPrefilter:bO(bJ),ajaxTransport:bO(bK),ajax:function(a,c){function v(a,c,l,n){if(r!==2){r=2,p&&clearTimeout(p),o=b,m=n||"",u.readyState=a?4:0;var q,t,v,w=l?bR(e,u,l):b,x,y;if(a>=200&&a<300||a===304){if(e.ifModified){if(x=u.getResponseHeader("Last-Modified"))d.lastModified[k]=x;if(y=u.getResponseHeader("Etag"))d.etag[k]=y}if(a===304)c="notmodified",q=!0;else try{t=bS(e,w),c="success",q=!0}catch(z){c="parsererror",v=z}}else{v=c;if(!c||a)c="error",a<0&&(a=0)}u.status=a,u.statusText=c,q?h.resolveWith(f,[t,c,u]):h.rejectWith(f,[u,c,v]),u.statusCode(j),j=b,s&&g.trigger("ajax"+(q?"Success":"Error"),[u,e,q?t:v]),i.resolveWith(f,[u,c]),s&&(g.trigger("ajaxComplete",[u,e]),--d.active||d.event.trigger("ajaxStop"))}}typeof a==="object"&&(c=a,a=b),c=c||{};var e=d.ajaxSetup({},c),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof d)?d(f):d.event,h=d.Deferred(),i=d._Deferred(),j=e.statusCode||{},k,l={},m,n,o,p,q,r=0,s,t,u={readyState:0,setRequestHeader:function(a,b){r||(l[a.toLowerCase().replace(bF,bG)]=b);return this},getAllResponseHeaders:function(){return r===2?m:null},getResponseHeader:function(a){var c;if(r===2){if(!n){n={};while(c=bv.exec(m))n[c[1].toLowerCase()]=c[2]}c=n[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){r||(e.mimeType=a);return this},abort:function(a){a=a||"abort",o&&o.abort(a),v(0,a);return this}};h.promise(u),u.success=u.done,u.error=u.fail,u.complete=i.done,u.statusCode=function(a){if(a){var b;if(r<2)for(b in a)j[b]=[j[b],a[b]];else b=a[u.status],u.then(b,b)}return this},e.url=((a||e.url)+"").replace(bu,"").replace(bz,bM[1]+"//"),e.dataTypes=d.trim(e.dataType||"*").toLowerCase().split(bD),e.crossDomain==null&&(q=bH.exec(e.url.toLowerCase()),e.crossDomain=q&&(q[1]!=bM[1]||q[2]!=bM[2]||(q[3]||(q[1]==="http:"?80:443))!=(bM[3]||(bM[1]==="http:"?80:443)))),e.data&&e.processData&&typeof e.data!=="string"&&(e.data=d.param(e.data,e.traditional)),bP(bJ,e,c,u);if(r===2)return!1;s=e.global,e.type=e.type.toUpperCase(),e.hasContent=!by.test(e.type),s&&d.active++===0&&d.event.trigger("ajaxStart");if(!e.hasContent){e.data&&(e.url+=(bA.test(e.url)?"&":"?")+e.data),k=e.url;if(e.cache===!1){var w=d.now(),x=e.url.replace(bE,"$1_="+w);e.url=x+(x===e.url?(bA.test(e.url)?"&":"?")+"_="+w:"")}}if(e.data&&e.hasContent&&e.contentType!==!1||c.contentType)l["Content-Type"]=e.contentType;e.ifModified&&(k=k||e.url,d.lastModified[k]&&(l["If-Modified-Since"]=d.lastModified[k]),d.etag[k]&&(l["If-None-Match"]=d.etag[k])),l.Accept=e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", */*; q=0.01":""):e.accepts["*"];for(t in e.headers)u.setRequestHeader(t,e.headers[t]);if(e.beforeSend&&(e.beforeSend.call(f,u,e)===!1||r===2)){u.abort();return!1}for(t in {success:1,error:1,complete:1})u[t](e[t]);o=bP(bK,e,c,u);if(o){u.readyState=1,s&&g.trigger("ajaxSend",[u,e]),e.async&&e.timeout>0&&(p=setTimeout(function(){u.abort("timeout")},e.timeout));try{r=1,o.send(l,v)}catch(y){status<2?v(-1,y):d.error(y)}}else v(-1,"No Transport");return u},param:function(a,c){var e=[],f=function(a,b){b=d.isFunction(b)?b():b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=d.ajaxSettings.traditional);if(d.isArray(a)||a.jqcc&&!d.isPlainObject(a))d.each(a,function(){f(this.name,this.value)});else for(var g in a)bQ(g,a[g],c,f);return e.join("&").replace(br,"+")}}),d.extend({active:0,lastModified:{},etag:{}});var bT=d.now(),bU=/(\=)\?(&|$)|\?\?/i;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return d.expando+"_"+bT++}}),d.ajaxPrefilter("json jsonp",function(b,c,e){var f=typeof b.data==="string";if(b.dataTypes[0]==="jsonp"||c.jsonpCallback||c.jsonp!=null||b.jsonp!==!1&&(bU.test(b.url)||f&&bU.test(b.data))){var g,h=b.jsonpCallback=d.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2",m=function(){a[h]=i,g&&d.isFunction(i)&&a[h](g[0])};b.jsonp!==!1&&(j=j.replace(bU,l),b.url===j&&(f&&(k=k.replace(bU,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},e.then(m,m),b.converters["script json"]=function(){g||d.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){d.globalEval(a);return a}}}),d.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),d.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var bV=d.now(),bW,bX;d.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&bZ()||b$()}:bZ,bX=d.ajaxSettings.xhr(),d.support.ajax=!!bX,d.support.cors=bX&&"withCredentials"in bX,bX=b,d.support.ajax&&d.ajaxTransport(function(a){if(!a.crossDomain||d.support.cors){var c;return{send:function(e,f){var g=a.xhr(),h,i;a.username?g.open(a.type,a.url,a.async,a.username,a.password):g.open(a.type,a.url,a.async);if(a.xhrFields)for(i in a.xhrFields)g[i]=a.xhrFields[i];a.mimeType&&g.overrideMimeType&&g.overrideMimeType(a.mimeType),!a.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(i in e)g.setRequestHeader(i,e[i])}catch(j){}g.send(a.hasContent&&a.data||null),c=function(e,i){var j,k,l,m,n;try{if(c&&(i||g.readyState===4)){c=b,h&&(g.onreadystatechange=d.noop,delete bW[h]);if(i)g.readyState!==4&&g.abort();else{j=g.status,l=g.getAllResponseHeaders(),m={},n=g.responseXML,n&&n.documentElement&&(m.xml=n),m.text=g.responseText;try{k=g.statusText}catch(o){k=""}j||!a.isLocal||a.crossDomain?j===1223&&(j=204):j=m.text?200:404}}}catch(p){i||f(-1,p)}m&&f(j,k,m,l)},a.async&&g.readyState!==4?(bW||(bW={},bY()),h=bV++,g.onreadystatechange=bW[h]=c):c()},abort:function(){c&&c(0,1)}}}});var b_={},ca=/^(?:toggle|show|hide)$/,cb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cc,cd=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(a,b,c){var e,f;if(a||a===0)return this.animate(ce("show",3),a,b,c);for(var g=0,h=this.length;g=0;a--)c[a].elem===this&&(b&&c[a](!0),c.splice(a,1))}),b||this.dequeue();return this}}),d.each({slideDown:ce("show",1),slideUp:ce("hide",1),slideToggle:ce("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){d.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),d.extend({speed:function(a,b,c){var e=a&&typeof a==="object"?d.extend({},a):{complete:c||!c&&b||d.isFunction(a)&&a,duration:a,easing:c&&b||b&&!d.isFunction(b)&&b};e.duration=d.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in d.fx.speeds?d.fx.speeds[e.duration]:d.fx.speeds._default,e.old=e.complete,e.complete=function(){e.queue!==!1&&d(this).dequeue(),d.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig||(b.orig={})}}),d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(d.fx.step[this.prop]||d.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=d.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function g(a){return e.step(a)}var e=this,f=d.fx;this.startTime=d.now(),this.start=a,this.end=b,this.unit=c||this.unit||(d.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,g.elem=this.elem,g()&&d.timers.push(g)&&!cc&&(cc=setInterval(f.tick,f.interval))},show:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),d(this.elem).show()},hide:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=d.now(),c=!0;if(a||b>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;for(var e in this.options.curAnim)this.options.curAnim[e]!==!0&&(c=!1);if(c){if(this.options.overflow!=null&&!d.support.shrinkWrapBlocks){var f=this.elem,g=this.options;d.each(["","X","Y"],function(a,b){f.style["overflow"+b]=g.overflow[a]})}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var h in this.options.curAnim)d.style(this.elem,h,this.options.orig[h]);this.options.complete.call(this.elem)}return!1}var i=b-this.startTime;this.state=i/this.options.duration;var j=this.options.specialEasing&&this.options.specialEasing[this.prop],k=this.options.easing||(d.easing.swing?"swing":"linear");this.pos=d.easing[j||k](this.state,i,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return!0}},d.extend(d.fx,{tick:function(){var a=d.timers;for(var b=0;b
";d.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),e=b.firstChild,f=e.firstChild,h=e.nextSibling.firstChild.firstChild,this.doesNotAddBorder=f.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,f.style.position="fixed",f.style.top="20px",this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15,f.style.position=f.style.top="",e.style.overflow="hidden",e.style.position="relative",this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;d.offset.initialize(),d.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(d.css(a,"marginTop"))||0,c+=parseFloat(d.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var e=d.css(a,"position");e==="static"&&(a.style.position="relative");var f=d(a),g=f.offset(),h=d.css(a,"top"),i=d.css(a,"left"),j=(e==="absolute"||e==="fixed")&&d.inArray("auto",[h,i])>-1,k={},l={},m,n;j&&(l=f.position()),m=j?l.top:parseInt(h,10)||0,n=j?l.left:parseInt(i,10)||0,d.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):f.css(k)}},d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),e=ch.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(d.css(a,"marginTop"))||0,c.left-=parseFloat(d.css(a,"marginLeft"))||0,e.top+=parseFloat(d.css(b[0],"borderTopWidth"))||0,e.left+=parseFloat(d.css(b[0],"borderLeftWidth"))||0;return{top:c.top-e.top,left:c.left-e.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&(!ch.test(a.nodeName)&&d.css(a,"position")==="static"))a=a.offsetParent;return a})}}),d.each(["Left","Top"],function(a,c){var e="scroll"+c;d.fn[e]=function(c){var f=this[0],g;if(!f)return null;if(c!==b)return this.each(function(){g=ci(this),g?g.scrollTo(a?d(g).scrollLeft():c,a?c:d(g).scrollTop()):this[e]=c});g=ci(f);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&g.document.documentElement[e]||g.document.body[e]:f[e]}}),d.each(["Height","Width"],function(a,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?parseFloat(d.css(this[0],e,"padding")):null},d.fn["outer"+c]=function(a){return this[0]?parseFloat(d.css(this[0],e,a?"margin":"border")):null},d.fn[e]=function(a){var f=this[0];if(!f)return a==null?null:this;if(d.isFunction(a))return this.each(function(b){var c=d(this);c[e](a.call(this,b,c[e]()))});if(d.isWindow(f)){var g=f.document.documentElement["client"+c];return f.document.compatMode==="CSS1Compat"&&g||f.document.body["client"+c]||g}if(f.nodeType===9)return Math.max(f.documentElement["client"+c],f.body["scroll"+c],f.documentElement["scroll"+c],f.body["offset"+c],f.documentElement["offset"+c]);if(a===b){var h=d.css(f,e),i=parseFloat(h);return d.isNaN(i)?h:i}return this.css(e,typeof a==="string"?a:a+"px")}}),a.jqcc=d})(window);/* * CometChat * Copyright (c) 2011 Inscripts - support@cometchat.com | http://www.cometchat.com | http://www.inscripts.com */ if(typeof(jqcc) === 'undefined') { jqcc = jQuery; } // Copyright (c) 2006 Klaus Hartl (stilbuero.de) // http://www.opensource.org/licenses/mit-license.php jqcc.cookie=function(a,b,c){if(typeof b!='undefined'){c=c||{};if(b===null){b='';c.expires=-1}var d='';if(c.expires&&(typeof c.expires=='number'||c.expires.toUTCString)){var e;if(typeof c.expires=='number'){e=new Date();e.setTime(e.getTime()+(c.expires*24*60*60*1000))}else{e=c.expires}d='; expires='+e.toUTCString()}var f=c.path?'; path='+(c.path):'';var g=c.domain?'; domain='+(c.domain):'';var h=c.secure?'; secure':'';document.cookie=[a,'=',encodeURIComponent(b),d,f,g,h].join('')}else{var j=null;if(document.cookie&&document.cookie!=''){var k=document.cookie.split(';');for(var i=0;i7){deconcept.SWFObjectCC.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObjectCC.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="";_19+="";var _1d=this.getParams();for(var key in _1d){_19+="";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="";}_19+="";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectCCUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.majorfv.major){return true;}if(this.minorfv.minor){return true;}if(this.rev=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObjectCC.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectCCUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectCCUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectCCUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObjectCC;var SWFObjectCC=deconcept.SWFObjectCC; /** * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com * http://flesler.blogspot.com/2007/10/jqccscrollto.html */ (function($){var h=$.scrollToCC=function(a,b,c){$(window).scrollToCC(a,b,c)};h.defaults={axis:'xy',duration:parseFloat($.fn.jqcc)>=1.3?0:1};h.window=function(a){return $(window)._scrollable()};$.fn._scrollable=function(){return this.map(function(){var a=this,isWin=!a.nodeName||$.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!isWin)return a;var b=(a.contentWindow||a).document||a.ownerDocument||a;return $.browser.safari||b.compatMode=='BackCompat'?b.body:b.documentElement})};$.fn.scrollToCC=function(e,f,g){if(typeof f=='object'){g=f;f=0}if(typeof g=='function')g={onAfter:g};if(e=='max')e=9e9;g=$.extend({},h.defaults,g);f=f||g.speed||g.duration;g.queue=g.queue&&g.axis.length>1;if(g.queue)f/=2;g.offset=both(g.offset);g.over=both(g.over);return this._scrollable().each(function(){var d=this,$elem=$(d),targ=e,toff,attr={},win=$elem.is('html,body');switch(typeof targ){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(targ)){targ=both(targ);break}targ=$(targ,this);case'object':if(targ.is||targ.style)toff=(targ=$(targ)).offset()}$.each(g.axis.split(''),function(i,a){var b=a=='x'?'Left':'Top',pos=b.toLowerCase(),key='scroll'+b,old=d[key],max=h.max(d,a);if(toff){attr[key]=toff[pos]+(win?0:old-$elem.offset()[pos]);if(g.margin){attr[key]-=parseInt(targ.css('margin'+b))||0;attr[key]-=parseInt(targ.css('border'+b+'Width'))||0}attr[key]+=g.offset[pos]||0;if(g.over[pos])attr[key]+=targ[a=='x'?'width':'height']()*g.over[pos]}else{var c=targ[pos];attr[key]=c.slice&&c.slice(-1)=='%'?parseFloat(c)/100*max:c}if(/^\d+$/.test(attr[key]))attr[key]=attr[key]<=0?0:Math.min(attr[key],max);if(!i&&g.queue){if(old!=attr[key])animate(g.onAfterFirst);delete attr[key]}});animate(g.onAfter);function animate(a){$elem.animate(attr,f,g.easing,a&&function(){a.call(this,e,g)})}}).end()};h.max=function(a,b){var c=b=='x'?'Width':'Height',scroll='scroll'+c;if(!$(a).is('html,body'))return a[scroll]-$(a)[c.toLowerCase()]();var d='client'+c,html=a.ownerDocument.documentElement,body=a.ownerDocument.body;return Math.max(html[scroll],body[scroll])-Math.min(html[d],body[d])};function both(a){return typeof a=='object'?a:{top:a,left:a}}})(jqcc);/* * CometChat * Copyright (c) 2011 Inscripts - support@cometchat.com | http://www.cometchat.com | http://www.inscripts.com */ (function($){$.cometchat=$.cometchat||function(){var _1="/~onesinal/wp-content/themes/ones_v1/cometchat/";var _2=[];var _3=[];_2[0] = ''; _3['home'] = ['home','Home','/','','','','','','']; _3['scrolltotop'] = ['scrolltotop','Scroll To Top','javascript:jqcc.cometchat.scrollToTop();','','','','','','']; _3['announcements'] = ['announcements','Announcements','/~onesinal/wp-content/themes/ones_v1/cometchat/modules/announcements/index.php','_popup','280','300','','1','']; _3['chatrooms'] = ['chatrooms','Chatrooms','/~onesinal/wp-content/themes/ones_v1/cometchat/modules/chatrooms/index.php','_popup','500','300','','1','1']; _3['share'] = ['share','Share This Page','/~onesinal/wp-content/themes/ones_v1/cometchat/modules/share/index.php','_popup','340','50','','1','']; _3['translate'] = ['translate','Translate This Page','/~onesinal/wp-content/themes/ones_v1/cometchat/modules/translate/index.php','_popup','280','300','','1','']; _3['realtimetranslate'] = ['realtimetranslate','Translate Conversations','/~onesinal/wp-content/themes/ones_v1/cometchat/modules/realtimetranslate/index.php','_popup','280','300','','1','']; _3['facebook'] = ['facebook','Facebook Fan Page','/~onesinal/wp-content/themes/ones_v1/cometchat/modules/facebook/index.php','_popup','500','300','','1','']; var _4 = ['smilies','handwrite','chattime','clearconversation','avchat','otavchat','transliterate','filetransfer','save']; var _5 = 0;var _6 = 1;var _7 = 'default';var _8 = 3000;var _9 = 12000;var _a = 'cc_';var _b = 'fluid';var _c = 960;var _d = 'center';var _e = 20;var _f = 1;var _10 = 0;var _11 = 0;var _12 = 22;var _13 = 11;var _14 = 10;var _15 = 40;var _16 = 10000;var _17 = 300;var _18 = 1;var _19 = 1;var _1a = 1;var _1b = 5000;var _1c = 15000;var _1d = 0;var _1e = 1;var _1f = 0;var _20 = 1;var _21 = 1;var _22 = 0;var _23 = 0;var _24 = ['jabber']; var _25=0;var _26={};var _27={};var _28={};var _29="";var _2a=0;var _2b=0;var _2c=true;var _2d=0;var ie6=false;var _2e;var _2f;var _30=_8;var _31=1;var _32=0;var _33=0;var _34=0;var _35="";var _36=document.title;var _37=0;var _38={};var _39={};var _3a={};var _3b={};var _3c={};var _3d={};var _3e=0;var _3f=0;var _40={};var _41={};var _42={};var _43={};var _44=new Date();var _45=_44.getDate();var _46=Math.floor(_44.getTime()/1000);var _47=/([^\x00-\x80]+)|([&][#])+/;var _48=0;var _49;var _4a=_46;var _4b=0;var _4c;var _4d=0;var _4e;var _4f;var _50="";var _51=$.cookie(_a+"data");var _52=navigator.userAgent.match(/ipad|ipod|iphone|android|windows ce|blackberry|palm|symbian/i)!=null;var _53=0;var _54=0;var _55="0";var _56="get";var _57="10000";$.ajaxSetup({scriptCharset:"utf-8",cache:"false"});if(_6==1){$("
").appendTo($("body"));so=new SWFObjectCC(_1+"swf/sound.swf?3","cometchatbeep","1","1","8","#000");so.addParam("allowscriptaccess","always");so.addParam("flashvars","base="+_1);so.write("cometchat_flashcontent");}function _58(_59){var _5a=navigator.appName.indexOf("Microsoft")!=-1;return (_5a)?window[_59]:document[_59];};function _5b(){try{_58("cometchatbeep").beep();}catch(error){_6=0;}};function _5c(id,_5d,_5e){if(_50==""){$("#cometchat_tooltip").css("display","none");$("#cometchat_tooltip").removeClass("cometchat_tooltip_left").css("left","-100000px");$("#cometchat_tooltip .cometchat_tooltip_content").html(_5d);var pos=$("#"+id).offset();var _5f=$("#"+id).width();var _60=$("#cometchat_tooltip").width();if(_5e==1){$("#cometchat_tooltip").css("left",(pos.left+_5f)-16).addClass("cometchat_tooltip_left");}else{var _61=(pos.left+_5f)-_60;_61+=16;$("#cometchat_tooltip").removeClass("cometchat_tooltip_left").css("left",_61);}$("#cometchat_tooltip").css("display","block");if(ie6){_62();}}};function _63(_64){var _65=$("#cometchat_optionsbutton_popup .cometchat_statustextarea").val();if(_65!=""){$.ajax({url:_1+"cometchat_send.php",data:{statusmessage:_65,basedata:_51},dataType:"jsonp",type:_56,timeout:_57,success:function(_66){$(_64).blur();}});}};function _67(_68,_69){if(_68.keyCode==13&&_68.shiftKey==0){_63();return false;}};function _6a(id){if(_48==id){_48=0;}};function _6b(_6c,_6d,id,_6e){if((_6c.keyCode==13&&_6c.shiftKey==0)||_6e==1){var _6f=$(_6d).val();_6f=_6f.replace(/^\s+|\s+$/g,"");$(_6d).val("");$(_6d).css("height","18px");$("#cometchat_user_"+id+"_popup .cometchat_tabcontenttext").css("height","200px");$(_6d).css("overflow-y","hidden");$(_6d).focus();if(_6f!=""){if(_3d[id]!=1){$.ajax({url:_1+"cometchat_send.php",data:{to:id,message:_6f,basedata:_51},dataType:"jsonp",type:_56,timeout:_57,success:function(_70){if(_70){_eb(id,_6f,"1","1",_70,1,Math.floor(new Date().getTime()/1000));$("#cometchat_tabcontenttext_"+id).scrollTop(50000);setTimeout(function(){$("#cometchat_tabcontenttext_"+id).scrollTop(50000);},100);}_6a(id);_31=1;if(_30>_8){_30=_8;clearTimeout(_2e);_2e=setTimeout(function(){_71();},_8);}}});}else{jqcc.ccjabber.sendMessage(id,_6f);}}return false;}};function _72(_73,_74,id){if(_73.keyCode==13&&_73.shiftKey==0){$(_74).val("");}var _75=_74.clientHeight;var _76=94;clearTimeout(_49);_48=id;_49=setTimeout(function(){_6a(id);},_16);if(_76>_75){_75=Math.max(_74.scrollHeight,_75);if(_76){_75=Math.min(_76,_75);}if(_75>_74.clientHeight){$(_74).css("height",_75+4+"px");$("#cometchat_user_"+id+"_popup .cometchat_tabcontenttext").css("height",218-(_75+4)+"px");}}else{$(_74).css("overflow-y","auto");}$("#cometchat_tabcontenttext_"+id).scrollTop(50000);setTimeout(function(){$("#cometchat_tabcontenttext_"+id).scrollTop(50000);},100);};function _77(){$("#cometchat_optionsbutton_popup .busy").css("text-decoration","none");$("#cometchat_optionsbutton_popup .invisible").css("text-decoration","none");$("#cometchat_optionsbutton_popup .available").css("text-decoration","none");_78();};function _78(){$("#cometchat_userstab_icon").removeClass("cometchat_user_available2");$("#cometchat_userstab_icon").removeClass("cometchat_user_busy2");$("#cometchat_userstab_icon").removeClass("cometchat_user_invisible2");$("#cometchat_userstab_icon").removeClass("cometchat_user_away2");};function _79(_7a){$.ajax({url:_1+"cometchat_send.php",data:{status:_7a,basedata:_51},dataType:"jsonp",type:_56,timeout:_57,success:function(_7b){if(_7a!="away"){_4e=_7a;}}});};function _7c(_7d){_2b=1;_77();$("#cometchat_userstab_icon").addClass("cometchat_user_invisible2");if(_7d!=1){_79("offline");}$("#cometchat_userstab_popup").removeClass("cometchat_tabopen");$("#cometchat_userstab").removeClass("cometchat_userstabclick").removeClass("cometchat_tabclick");$("#cometchat_optionsbutton_popup").removeClass("cometchat_tabopen");$("#cometchat_optionsbutton").removeClass("cometchat_tabclick");_7e("buddylist","0");$("#cometchat_userstab_text").html(_2[17]);if(_29!=""){$("#cometchat_user_"+_29+" .cometchat_closebox_bottom").click();_29="";_7e("openChatboxId",_29);}for(chatbox in _40){if(_40.hasOwnProperty(chatbox)){if(_40[chatbox]!=null){$("#cometchat_user_"+chatbox+" .cometchat_closebox_bottom").click();}}}};function _7f(){$("#cometchat_optionsbutton_popup .cometchat_gooffline").click(function(){_7c();});$("#cometchat_soundnotifications").click(function(_80){$.cookie(_a+"sound",$("#cometchat_soundnotifications").attr("checked"),{path:"/",expires:365});});$("#cometchat_popupnotifications").click(function(_81){$.cookie(_a+"popup",$("#cometchat_popupnotifications").attr("checked"),{path:"/",expires:365});});$("#cometchat_optionsbutton_popup .available").click(function(_82){_77();$("#cometchat_userstab_icon").addClass("cometchat_user_available2");$(this).css("text-decoration","underline");_79("available");});$("#cometchat_optionsbutton_popup .cometchat_statusbutton").click(function(_83){_63();});$("#cometchat_optionsbutton_popup .busy").click(function(_84){_77();$("#cometchat_userstab_icon").addClass("cometchat_user_busy2");$(this).css("text-decoration","underline");_79("busy");});$("#cometchat_optionsbutton_popup .invisible").click(function(_85){_77();$("#cometchat_userstab_icon").addClass("cometchat_user_invisible2");$(this).css("text-decoration","underline");_79("invisible");});$("#cometchat_optionsbutton_popup .cometchat_statustextarea").keydown(function(_86){return _67(_86,this);});$("#cometchat_optionsbutton").mouseover(function(){if(!$("#cometchat_optionsbutton_popup").hasClass("cometchat_tabopen")){if(_2a==0){if(_4d==0){_5c("cometchat_optionsbutton",_2[0]);}}else{if(_4d==0){_5c("cometchat_optionsbutton",_2[8]);}}}$(this).addClass("cometchat_tabmouseover");});$("#cometchat_optionsbutton").mouseout(function(){$(this).removeClass("cometchat_tabmouseover");if(_4d==0){$("#cometchat_tooltip").css("display","none");}});$("#cometchat_optionsbutton").click(function(){if(_35!=""){$("#cometchat_trayicon_"+_35+"_popup").removeClass("cometchat_tabopen");$("#cometchat_trayicon_"+_35).removeClass("cometchat_trayclick");_35="";_7e("trayOpen",_35);}if(_2a==0){if(_2b==1){_2b=0;$("#cometchat_userstab_text").html(_2[9]+" ("+_34+")");_71(1);$("#cometchat_optionsbutton_popup .available").click();}$("#cometchat_tooltip").css("display","none");var _87=$("#cometchat_base").position().left;var _88=$("#cometchat_base").width();$("#cometchat_optionsbutton_popup").css("left",_87+_88-223-32);$(this).toggleClass("cometchat_tabclick");$("#cometchat_optionsbutton_popup").toggleClass("cometchat_tabopen");$("#cometchat_optionsbutton").toggleClass("cometchat_optionsimages_click");$("#cometchat_userstab_popup").removeClass("cometchat_tabopen");$("#cometchat_userstab").removeClass("cometchat_userstabclick").removeClass("cometchat_tabclick");_7e("buddylist","0");if($.cookie(_a+"sound")){if($.cookie(_a+"sound")=="true"){$("#cometchat_soundnotifications").attr("checked",true);}else{$("#cometchat_soundnotifications").attr("checked",false);}}if($.cookie(_a+"popup")){if($.cookie(_a+"popup")=="true"){$("#cometchat_popupnotifications").attr("checked",true);}else{$("#cometchat_popupnotifications").attr("checked",false);}}}else{if(_2[16]!=""){location.href=_2[16];}}});$("#cometchat_optionsbutton_popup .cometchat_userstabtitle").click(function(){$("#cometchat_optionsbutton").click();});$("#cometchat_optionsbutton_popup .cometchat_userstabtitle").mouseenter(function(){$("#cometchat_optionsbutton_popup .cometchat_userstabtitle .cometchat_minimizebox").addClass("cometchat_chatboxtraytitlemouseover");});$("#cometchat_optionsbutton_popup .cometchat_userstabtitle").mouseleave(function(){$("#cometchat_optionsbutton_popup .cometchat_userstabtitle .cometchat_minimizebox").removeClass("cometchat_chatboxtraytitlemouseover");});};function _89(){var _8a="";var _8b=0;for(chatbox in _40){if(_40.hasOwnProperty(chatbox)){if(_40[chatbox]!=null){if(!Number(_40[chatbox])){_40[chatbox]=0;}_8a+=chatbox+"|"+_40[chatbox]+",";if(_40[chatbox]>0){_8b=1;}}}}_37=_8b;_8a=_8a.slice(0,-1);_7e("activeChatboxes",_8a);};function _8c(id,_8d,_8e,_8f,_90,_91,_92,_93){if(id==null||id==""){return;}if(_38[id]==null||_38[id]==""){if(_42[id]===undefined){_42[id]=1;if(!isNaN(id)){$.ajax({url:_1+"cometchat_getid.php",data:{userid:id,basedata:_51},dataType:"jsonp",type:_56,timeout:_57,cache:false,success:function(_94){if(_94){_8d=_38[id]=_94.n;_8e=_3a[id]=_94.s;_8f=_39[id]=_94.m;_90=_3b[id]=_94.a;_91=_3c[id]=_94.l;if(_41[id]!=null){$("#cometchat_user_"+id+" .cometchat_closebox_bottom_status").removeClass("cometchat_available").removeClass("cometchat_busy").removeClass("cometchat_offline").removeClass("cometchat_away").addClass("cometchat_"+_8e);if($("#cometchat_user_"+id+"_popup").length>0){$("#cometchat_user_"+id+"_popup .cometchat_tabsubtitle .cometchat_message").html(_8f);}}_42[id]=5;if(id!=null&&id!=""&&_8d!=null&&_8d!=""){_96(id,_8d,_8e,_8f,_90,_91,_92,_93);}}},error:function(_95){_42[id]=5;}});}else{setTimeout(function(){_8c(id,_38[id],_3a[id],_39[id],_3b[id],_3c[id],_92,_93);},5000);}}else{if(_42[id]<5){_42[id]++;setTimeout(function(){_8c(id,_38[id],_3a[id],_39[id],_3b[id],_3c[id],_92,_93);},5000);}}}else{_96(id,_38[id],_3a[id],_39[id],_3b[id],_3c[id],_92,_93);}};function _96(id,_97,_98,_99,_9a,_9b,_9c,_9d){if(_41[id]!=null){if(!$("#cometchat_user_"+id).hasClass("cometchat_tabclick")&&_9c!=1){if(_29!=""){$("#cometchat_user_"+_29+"_popup").removeClass("cometchat_tabopen");$("#cometchat_user_"+_29).removeClass("cometchat_tabclick").removeClass("cometchat_usertabclick");_29="";_7e("openChatboxId",_29);}if(($("#cometchat_user_"+id).offset().left<($("#cometchat_chatboxes").offset().left+$("#cometchat_chatboxes").width()))&&($("#cometchat_user_"+id).offset().left-$("#cometchat_chatboxes").offset().left)>=0){$("#cometchat_user_"+id).click();}else{$("#cometchat_chatboxes_wide .cometchat_tabalert").css("display","none");var ms=_1e;if(_9e("initialize")==1){ms=0;}$("#cometchat_chatboxes").scrollToCC("#cometchat_user_"+id,ms,function(){$("#cometchat_user_"+id).click();_cd();_bc();});}}_cd();return;}$("#cometchat_chatboxes_wide").width($("#cometchat_chatboxes_wide").width()+152);_c3(1);if(_97.length>_13&&!_47.test(_97)){shortname=_97.substr(0,_13)+"...";}else{shortname=_97;}if(_97.length>_12&&!_47.test(_97)){longname=_97.substr(0,_12)+"...";}else{longname=_97;}$("").attr("id","cometchat_user_"+id).addClass("cometchat_tab").html("
"+shortname+"
").appendTo($("#cometchat_chatboxes_wide"));$("#cometchat_user_"+id).append("
");$("#cometchat_user_"+id).append("
");$("#cometchat_user_"+id+" .cometchat_closebox_bottom").mouseenter(function(){$(this).addClass("cometchat_closebox_bottomhover");});$("#cometchat_user_"+id+" .cometchat_closebox_bottom").mouseleave(function(){$(this).removeClass("cometchat_closebox_bottomhover");});$("#cometchat_user_"+id+" .cometchat_closebox_bottom").click(function(){$("#cometchat_user_"+id+"_popup").remove();$("#cometchat_user_"+id).remove();if(_29==id){_29="";_7e("openChatboxId",_29);}$("#cometchat_chatboxes_wide").width($("#cometchat_chatboxes_wide").width()-152);$("#cometchat_chatboxes").scrollToCC("-=152px");_c3();_40[id]=null;_41[id]=null;_43[id]=0;_89();});var _9f="";if(_3d[id]!=1){var _a0=_4.length;if(_a0>0){if(_a0>8){_9f+="
";}_9f+="
";for(var i=0;i<_a0;i++){var _97="cc"+_4[i];if(typeof ($[_97])=="object"){_9f+="";}}_9f+="
";}}var _a1="";var _a2="";if(_9b!=""){_a1="";_a2="";}var _a3="";if(_9a!=""){_a3="
"+_a1+""+_a2+"
";}$("
").attr("id","cometchat_user_"+id+"_popup").addClass("cometchat_tabpopup").css("display","none").html("
"+_a1+longname+_a2+"
"+_a3+"
"+_99+"
"+_9f+"
"+"
").appendTo($("#cometchat"));$("#cometchat_user_"+id+"_popup .cometchat_textarea").keydown(function(_a4){return _6b(_a4,this,id);});$("#cometchat_user_"+id+"_popup .cometchat_tabcontentsubmit").click(function(_a5){return _6b(_a5,$("#cometchat_user_"+id+"_popup .cometchat_textarea"),id,1);});$("#cometchat_user_"+id+"_popup .cometchat_textarea").keyup(function(_a6){return _72(_a6,this,id);});$("#cometchat_user_"+id+"_popup .cometchat_tabtitle").append("

");$("#cometchat_user_"+id+"_popup .cometchat_tabtitle .cometchat_closebox").mouseenter(function(){$(this).addClass("cometchat_chatboxmouseoverclose");$("#cometchat_user_"+id+"_popup .cometchat_tabtitle .cometchat_minimizebox").removeClass("cometchat_chatboxtraytitlemouseover");});$("#cometchat_user_"+id+"_popup .cometchat_tabtitle .cometchat_closebox").mouseleave(function(){$(this).removeClass("cometchat_chatboxmouseoverclose");$("#cometchat_user_"+id+"_popup .cometchat_tabtitle .cometchat_minimizebox").addClass("cometchat_chatboxtraytitlemouseover");});$("#cometchat_user_"+id+"_popup .cometchat_tabtitle .cometchat_closebox").click(function(){$("#cometchat_user_"+id+"_popup").remove();$("#cometchat_user_"+id).remove();if(_29==id){_29="";_7e("openChatboxId",_29);}$("#cometchat_chatboxes_wide").width($("#cometchat_chatboxes_wide").width()-152);$("#cometchat_chatboxes").scrollToCC("-=152px");_c3();_41[id]=null;_40[id]=null;_43[id]=0;_89();});$("#cometchat_user_"+id+"_popup .cometchat_tabtitle").click(function(){$("#cometchat_user_"+id).click();});$("#cometchat_user_"+id+"_popup .cometchat_tabtitle").mouseenter(function(){$("#cometchat_user_"+id+"_popup .cometchat_tabtitle .cometchat_minimizebox").addClass("cometchat_chatboxtraytitlemouseover");});$("#cometchat_user_"+id+"_popup .cometchat_tabtitle").mouseleave(function(){$("#cometchat_user_"+id+"_popup .cometchat_tabtitle .cometchat_minimizebox").removeClass("cometchat_chatboxtraytitlemouseover");});$("#cometchat_user_"+id).mouseenter(function(){$(this).addClass("cometchat_tabmouseover");$("#cometchat_user_"+id+" .cometchat_user_shortname").addClass("cometchat_tabmouseovertext");});$("#cometchat_user_"+id).mouseleave(function(){$(this).removeClass("cometchat_tabmouseover");$("#cometchat_user_"+id+" .cometchat_user_shortname").removeClass("cometchat_tabmouseovertext");});$("#cometchat_user_"+id).click(function(){if(_35!=""){$("#cometchat_trayicon_"+_35+"_popup").removeClass("cometchat_tabopen");$("#cometchat_trayicon_"+_35).removeClass("cometchat_trayclick");_35="";_7e("trayOpen",_35);}if($("#cometchat_user_"+id+" .cometchat_tabalert").length>0){$("#cometchat_user_"+id+" .cometchat_tabalert").remove();_41[id]=0;_40[id]=0;_89();}if($(this).hasClass("cometchat_tabclick")){$(this).removeClass("cometchat_tabclick").removeClass("cometchat_usertabclick");$("#cometchat_user_"+id+"_popup").removeClass("cometchat_tabopen");$("#cometchat_user_"+id+" .cometchat_closebox_bottom").removeClass("cometchat_closebox_bottom_click");_29="";_7e("openChatboxId",_29);}else{var _a7=$("#cometchat_base").position().left;if(($("#cometchat_user_"+id).offset().left<($("#cometchat_chatboxes").offset().left+$("#cometchat_chatboxes").width()))&&($("#cometchat_user_"+id).offset().left-$("#cometchat_chatboxes").offset().left)>=0){if(_29!=""&&_29!=id){$("#cometchat_user_"+_29+"_popup").removeClass("cometchat_tabopen");$("#cometchat_user_"+_29).removeClass("cometchat_tabclick").removeClass("cometchat_usertabclick");$("#cometchat_user_"+_29+" .cometchat_closebox_bottom").removeClass("cometchat_closebox_bottom_click");_29="";_7e("openChatboxId",_29);}$("#cometchat_user_"+id+"_popup").css("left",_a7+$("#cometchat_user_"+id).position().left-77);$(this).addClass("cometchat_tabclick").addClass("cometchat_usertabclick");$("#cometchat_user_"+id+"_popup").addClass("cometchat_tabopen");$("#cometchat_user_"+id+" .cometchat_closebox_bottom").addClass("cometchat_closebox_bottom_click");_29=id;_7e("openChatboxId",_29);if(_43[id]!=1&&(_9e("initialize")!=1||isNaN(id))){_b1(id);_43[id]=1;}if(ie6){_62();}}else{$("#cometchat_user_"+id+"_popup").removeClass("cometchat_tabopen");$("#cometchat_user_"+id).removeClass("cometchat_tabclick").removeClass("cometchat_usertabclick");var _a8=(($("#cometchat_user_"+id).offset().left-$("#cometchat_chatboxes_wide").offset().left))-((Math.floor(($("#cometchat_chatboxes").width()/152))-1)*152);$("#cometchat_chatboxes").scrollToCC(_a8,0,function(){_bc();_cd();$("#cometchat_user_"+id).click();});}$("#cometchat_tabcontenttext_"+id).scrollTop(50000);setTimeout(function(){$("#cometchat_tabcontenttext_"+id).scrollTop(50000);},100);}if(_a9("updatingsession")!=1){$("#cometchat_user_"+id+"_popup .cometchat_textarea").focus();}});if(_9c!=1){$("#cometchat_user_"+id).click();}_40[id]=0;_41[id]=0;_89();};function _aa(ts){var ap="";var _ab=ts.getHours();var _ac=ts.getMinutes();var _ad=ts.getDate();var _ae=ts.getMonth();if(_1d!=1){if(_ab>11){ap="pm";}else{ap="am";}if(_ab>12){_ab=_ab-12;}if(_ab==0){_ab=12;}}else{if(_ab<10){_ab="0"+_ab;}}if(_ac<10){_ac="0"+_ac;}var _af=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var _b0="th";if(_ad==1||_ad==21||_ad==31){_b0="st";}else{if(_ad==2||_ad==22){_b0="nd";}else{if(_ad==3||_ad==23){_b0="rd";}}}if(_ad!=_45){return "("+_ab+":"+_ac+ap+" "+_ad+_b0+" "+_af[_ae]+")";}else{return "("+_ab+":"+_ac+ap+")";}};function _b1(id){if(_3d[id]!=1){$.ajax({cache:false,url:_1+"cometchat_receive.php",data:{chatbox:id,basedata:_51},type:_56,timeout:_57,dataType:"jsonp",success:function(_b2){if(_b2){var _b3="";var _b4=_38[id];$.each(_b2,function(_b5,_b6){if(_b5=="messages"){$.each(_b6,function(i,_b7){var _b8="";if(_b7.self==1){fromname=_2[10];_b8=" cometchat_self";}else{fromname=_b4;}var ts=new Date(_b7.sent*1000);if(!_10){fromname=fromname.split(" ")[0];}_b3+=(_12c("
"+fromname+":  "+_b7.message+""+_aa(ts)+"
",_b8));});}});document.getElementById("cometchat_tabcontenttext_"+id).innerHTML="
"+_b3+"
";$("#cometchat_tabcontenttext_"+id).scrollTop(50000);setTimeout(function(){$("#cometchat_tabcontenttext_"+id).scrollTop(50000);},100);}}});}else{jqcc.ccjabber.getRecentData(id);}};function _b9(id,_ba,add){if(_38[id]==null||_38[id]==""){if(_42[id]===undefined){_8c(id,null,null,null,null,null,1,null);}if(_42[id]<5){setTimeout(function(){_b9(id,_ba,add);},5000);}}else{_bb(id);if(add==1){if($("#cometchat_user_"+id+" .cometchat_tabalert").length>0){_ba=parseInt($("#cometchat_user_"+id+" .cometchat_tabalert").html())+parseInt(_ba);}}if(_ba==0){$("#cometchat_user_"+id+" .cometchat_tabalert").remove();}else{if($("#cometchat_user_"+id+" .cometchat_tabalert").length>0){$("#cometchat_user_"+id+" .cometchat_tabalert").html(_ba);}else{$("
").css("top","-5px").addClass("cometchat_tabalert").html(_ba).appendTo($("#cometchat_user_"+id+" .cometchat_closebox_bottom_status"));}}_40[id]=_ba;_89();_bc();}};function _bd(){$("#cometchat_search").click(function(){var _be=$(this).val();if(_be==_2[18]){$("#cometchat_search").val("");$("#cometchat_search").addClass("cometchat_search_light");}});$("#cometchat_search").blur(function(){var _bf=$(this).val();if(_bf==""){$("#cometchat_search").addClass("cometchat_search_light");$("#cometchat_search").val(_2[18]);}});$("#cometchat_search").keyup(function(){var _c0=$(this).val();if(_c0.length>0&&_c0!=_2[18]){$("#cometchat_userscontent .cometchat_userlist").hide();$("#cometchat_userscontent .cometchat_userlist:icontains("+_c0+")").show();$("#cometchat_search").removeClass("cometchat_search_light");}else{$("#cometchat_userscontent .cometchat_userlist").show();}});$("#cometchat_userstab_popup .cometchat_userstabtitle").click(function(){$("#cometchat_userstab").click();});$("#cometchat_userstab_popup .cometchat_userstabtitle").mouseenter(function(){$("#cometchat_userstab_popup .cometchat_userstabtitle .cometchat_minimizebox").addClass("cometchat_chatboxtraytitlemouseover");});$("#cometchat_userstab_popup .cometchat_userstabtitle").mouseleave(function(){$("#cometchat_userstab_popup .cometchat_userstabtitle .cometchat_minimizebox").removeClass("cometchat_chatboxtraytitlemouseover");});$("#cometchat_userstab").mouseover(function(){$(this).addClass("cometchat_tabmouseover");});$("#cometchat_userstab").mouseout(function(){$(this).removeClass("cometchat_tabmouseover");});$("#cometchat_userstab").click(function(){if(_35!=""){$("#cometchat_trayicon_"+_35+"_popup").removeClass("cometchat_tabopen");$("#cometchat_trayicon_"+_35).removeClass("cometchat_trayclick");_35="";_7e("trayOpen",_35);}if(_2b==1){_2b=0;$("#cometchat_userstab_text").html(_2[9]+" ("+_34+")");_71(1);$("#cometchat_optionsbutton_popup .available").click();}$("#cometchat_optionsbutton_popup").removeClass("cometchat_tabopen");$("#cometchat_optionsbutton").removeClass("cometchat_tabclick");if($(this).hasClass("cometchat_tabclick")){_7e("buddylist","0");}else{_7e("buddylist","1");$("#cometchat_tooltip").css("display","none");$(".cometchat_userscontentavatar img").each(function(){if($(this).attr("original")){$(this).attr("src",$(this).attr("original"));$(this).removeAttr("original");}});}var _c1=$("#cometchat_base").position().left;var _c2=jqcc("#cometchat_base").width();$("#cometchat_userstab_popup").css("left",_c1+_c2-223-32);$(this).toggleClass("cometchat_tabclick").toggleClass("cometchat_userstabclick");$("#cometchat_userstab_popup").toggleClass("cometchat_tabopen");});};function _c3(_c4){var _c5=$(window).width();var _c6=_25+32;if(_c6<80){_c6=80;}if(_b=="fixed"){$("#cometchat_base").css("width",_c);if(_d=="center"){var _c7=(_c5-_c)/2;$("#cometchat_base").css("left",_c7);}if(_d=="right"){var _c7=(_c5-_c);$("#cometchat_base").css("left",_c7-_e);}if(_d=="left"){$("#cometchat_base").css("left",_e);}}else{if(_c5<400+_c6+_e+20){_c5=400+_c6+_e+20;}$("#cometchat_base").css("left",_e);$("#cometchat_base").css("width",_c5-(_e*2));}var _c8=$("#cometchat_base").position().left;var _c9=$("#cometchat_base").width();$("#cometchat_userstab_popup").css("left",_c8+_c9-223-32);$("#cometchat_optionsbutton_popup").css("left",_c8+_c9-223-32);if(_35!=""){$("#cometchat_trayicon_"+_35+"_popup").css("left",$("#cometchat_trayicon_"+_35).offset().left).css("width",_3[_35][4]);}if($("#cometchat_chatboxes_wide").width()<=($("#cometchat_base").width()-26-178-44-_c6)){$("#cometchat_chatboxes").css("width",$("#cometchat_chatboxes_wide").width());$("#cometchat_chatboxes").scrollToCC("0px",0);}else{var _ca=$("#cometchat_chatboxes").width();$("#cometchat_chatboxes").css("width",Math.floor(($("#cometchat_base").width()-26-178-44-_c6)/152)*152);var _cb=$("#cometchat_chatboxes").width();if(_ca!=_cb){$("#cometchat_chatboxes").scrollToCC("-=152px",0);}}if(_29!=""&&_c4!=1){if(($("#cometchat_user_"+_29).offset().left<($("#cometchat_chatboxes").offset().left+$("#cometchat_chatboxes").width()))&&($("#cometchat_user_"+_29).offset().left-$("#cometchat_chatboxes").offset().left)>=0){$("#cometchat_user_"+_29+"_popup").css("left",_c8+$("#cometchat_user_"+_29).position().left-77);}else{$("#cometchat_user_"+_29+"_popup").removeClass("cometchat_tabopen");$("#cometchat_user_"+_29).removeClass("cometchat_tabclick").removeClass("cometchat_usertabclick");var _cc=(($("#cometchat_user_"+_29).offset().left-$("#cometchat_chatboxes_wide").offset().left))-((Math.floor(($("#cometchat_chatboxes").width()/152))-1)*152);$("#cometchat_chatboxes").scrollToCC(_cc,0,function(){$("#cometchat_user_"+_29).click();});}}_bc(_c4);_cd(_c4);if(ie6){_62();}};function _bc(_ce){$("#cometchat_chatbox_left .cometchat_tabalertlr").html("0");$("#cometchat_chatbox_right .cometchat_tabalertlr").html("0");$("#cometchat_chatbox_left .cometchat_tabalertlr").css("display","none");$("#cometchat_chatbox_right .cometchat_tabalertlr").css("display","none");$("#cometchat_chatboxes_wide .cometchat_tabalert").each(function(){if(($(this).parent().offset().left<($("#cometchat_chatboxes").offset().left+$("#cometchat_chatboxes").width()))&&($(this).parent().offset().left-$("#cometchat_chatboxes").offset().left)>=0){$(this).css("display","block");}else{$(this).css("display","none");if(($(this).parent().offset().left-$("#cometchat_chatboxes").offset().left)>=0){$("#cometchat_chatbox_right .cometchat_tabalertlr").html(parseInt($("#cometchat_chatbox_right .cometchat_tabalertlr").html())+parseInt($(this).html()));$("#cometchat_chatbox_right .cometchat_tabalertlr").css("display","block");}else{$("#cometchat_chatbox_left .cometchat_tabalertlr").html(parseInt($("#cometchat_chatbox_left .cometchat_tabalertlr").html())+parseInt($(this).html()));$("#cometchat_chatbox_left .cometchat_tabalertlr").css("display","block");}}});};function _cd(_cf){var _d0=0;var _d1=0;var _d2=0;if($("#cometchat_chatbox_right").hasClass("cometchat_chatbox_right_last")){_d1=1;}if($("#cometchat_chatbox_right").hasClass("cometchat_chatbox_lr")){_d2=1;}if($("#cometchat_chatboxes").scrollLeft()==0){$("#cometchat_chatbox_left").unbind("click",_d3);$("#cometchat_chatbox_left .cometchat_tabtext").html("0");$("#cometchat_chatbox_left").addClass("cometchat_chatbox_left_last");_d0++;}else{var _d4=Math.floor($("#cometchat_chatboxes").scrollLeft()/152);$("#cometchat_chatbox_left").unbind("click",_d3);$("#cometchat_chatbox_left").bind("click",_d3);$("#cometchat_chatbox_left .cometchat_tabtext").html(_d4);$("#cometchat_chatbox_left").removeClass("cometchat_chatbox_left_last");}if(($("#cometchat_chatboxes").scrollLeft()+$("#cometchat_chatboxes").width())==$("#cometchat_chatboxes_wide").width()){$("#cometchat_chatbox_right").unbind("click",_d5);$("#cometchat_chatbox_right .cometchat_tabtext").html("0");$("#cometchat_chatbox_right").addClass("cometchat_chatbox_right_last");_d0++;}else{var _d4=Math.floor(($("#cometchat_chatboxes_wide").width()-($("#cometchat_chatboxes").scrollLeft()+$("#cometchat_chatboxes").width()))/152);$("#cometchat_chatbox_right").unbind("click",_d5);$("#cometchat_chatbox_right").bind("click",_d5);$("#cometchat_chatbox_right .cometchat_tabtext").html(_d4);$("#cometchat_chatbox_right").removeClass("cometchat_chatbox_right_last");}if(_d0==2){$("#cometchat_chatbox_right").addClass("cometchat_chatbox_lr");$("#cometchat_chatbox_left").addClass("cometchat_chatbox_lr");}else{$("#cometchat_chatbox_right").removeClass("cometchat_chatbox_lr");$("#cometchat_chatbox_left").removeClass("cometchat_chatbox_lr");}if((!$("#cometchat_chatbox_right").hasClass("cometchat_chatbox_right_last")&&_d1==1)||($("#cometchat_chatbox_right").hasClass("cometchat_chatbox_right_last")&&_d1==0)||(!$("#cometchat_chatbox_right").hasClass("cometchat_chatbox_lr")&&_d2==1)||($("#cometchat_chatbox_right").hasClass("cometchat_chatbox_lr")&&_d2==0)){_c3(_cf);}};function _d6(_d7){if(_29!=""){$("#cometchat_user_"+_29+"_popup").removeClass("cometchat_tabopen");$("#cometchat_user_"+_29).removeClass("cometchat_tabclick").removeClass("cometchat_usertabclick");}$("#cometchat_chatboxes_wide .cometchat_tabalert").css("display","none");var _d8=$("#cometchat_base").position().left;var ms=_1e;if(_9e("initialize")==1){ms=0;}$("#cometchat_chatboxes").scrollToCC(_d7,ms,function(){if(_29!=""){if(($("#cometchat_user_"+_29).offset().left<($("#cometchat_chatboxes").offset().left+$("#cometchat_chatboxes").width()))&&($("#cometchat_user_"+_29).offset().left-$("#cometchat_chatboxes").offset().left)>=0){$("#cometchat_user_"+_29).click();}else{_29="";}_7e("openChatboxId",_29);}_bc();_cd();});};function _d3(){_d6("-=152px");};function _d5(){_d6("+=152px");};function _d9(_da,_db){_26[_da]=_db;};function _9e(_dc){if(_26[_dc]){return _26[_dc];}else{return "";}};function _dd(_de,_df){_28[_de]=_df;};function _a9(_e0){if(_28[_e0]){return _28[_e0];}else{return "";}};function _7e(_e1,_e2){_27[_e1]=_e2;if(_a9("updatingsession")!=1){var _e3="";if(_27["buddylist"]){_e3+=_27["buddylist"];}else{_e3+=" ";}_e3+=":";if(_27["activeChatboxes"]){_e3+=_27["activeChatboxes"];}else{_e3+=" ";}_e3+=":";if(_27["openChatboxId"]){_e3+=_27["openChatboxId"];}else{_e3+=" ";}_e3+=":"+_34;_e3+=":"+_2b;_e3+=":"+_35;$.cookie(_a+"state",_e3,{path:"/"});}};function _e4(_e5,_e6){if(_27[_e5]){return _27[_e5];}else{return "";}};function _e7(_e8){var id=$(_e8).attr("id");if(typeof id==="undefined"||$(_e8).attr("id")==""){id=$(_e8).parent().attr("id").substr(19);}else{id=id.substr(19);}_8c(id,_38[id],_3a[id],_39[id],_3b[id],_3c[id]);};function _e9(id){_8c(id,_38[id],_3a[id],_39[id],_3b[id],_3c[id]);};function _bb(_ea){var id=_ea;_8c(id,_38[id],_3a[id],_39[id],_3b[id],_3c[id],1);};function _eb(id,_ec,_ed,old,_ee,_ef,_f0){if(_42[id]===undefined){_8c(id,_38[id],_3a[id],_39[id],_3b[id],_3c[id],1,1);}if(_38[id]==null||_38[id]==""){if(_42[id]<5){setTimeout(function(){_eb(id,_ec,_ed,old,_ee,_ef,_f0);},2000);}}else{var _f1="";if(parseInt(_ed)==1){fromname=_2[10];_f1=" cometchat_self";}else{fromname=_38[id];}if(parseInt(_ef)==1){_ec=_ec.replace(//g,">").replace(/\n/g,"
").replace(/\"/g,""");}if(_ed!=1&&_6==1){if($.cookie(_a+"sound")&&$.cookie(_a+"sound")=="true"){}else{if(old!=1){_5b();}}}separator=":  ";if($("#cometchat_message_"+_ee).length>0){$("#cometchat_message_"+_ee+" .cometchat_chatboxmessagecontent").html(_ec);}else{sentdata="";if(_f0!=null){var ts=new Date(_f0*1000);sentdata=_aa(ts);}if(!_10){fromname=fromname.split(" ")[0];}var msg=_12c("
"+fromname+""+separator+""+_ec+""+sentdata+"
",_f1);$("#cometchat_user_"+id+"_popup .cometchat_tabcontenttext").append(msg);$("#cometchat_typing_"+id).css("display","none");$("#cometchat_tabcontenttext_"+id).scrollTop(50000);setTimeout(function(){$("#cometchat_tabcontenttext_"+id).scrollTop(50000);},100);var _f2=new Date();var _f3=Math.floor(_f2.getTime()/1000)-_4a;if(_f3>5){if(_50==""){document.title=_2[15];}}}if(_29!=id&&old!=1){_b9(id,1,1);}}};function _f4(id){if(_38[id]==null||_38[id]==""){if(_42[id]<5){setTimeout(function(){_f4(id);},500);}}else{if(_29!=id){$("#cometchat_user_"+id).click();}}};function _f5(id){if(_38[id]==null||_38[id]==""){if(_42[id]<5){setTimeout(function(){_f5(id);},500);}}else{$("#cometchat_user_"+id).click();}};function _f6(id,_f7,_f8){if(_38[id]==null||_38[id]==""){if(_42[id]<5){setTimeout(function(){_f6(id,_f7,_f8);},1000);}}else{$("#cometchat_tabcontenttext_"+id).append("
"+_f7+"
");$("#cometchat_tabcontenttext_"+id).scrollTop(50000);$("#cometchat_typing_"+id).css("display","none");setTimeout(function(){$("#cometchat_tabcontenttext_"+id).scrollTop(50000);},100);_41[id]=1;if(_f8==1){var _f9=new Date();var _fa=Math.floor(_f9.getTime()/1000)-_4a;if(_fa>5){if(_50==""){document.title=_2[15];}}}if($.cookie(_a+"sound")&&$.cookie(_a+"sound")=="true"){}else{if(_f==1&&_f8==1){_5b();}}}};function _71(_fb){_26["timestamp"]=_33;_26["typingto"]=_48;_26["blh"]=_4f;_26["status"]="";if(_fb==1){_26["f"]=1;}else{delete _26["f"];}var _fc="";var _fd={};var _fe={};_fd["available"]="";_fd["busy"]="";_fd["offline"]="";_fd["away"]="";_fe["available"]="";_fe["busy"]="";_fe["offline"]="";_fe["away"]="";var _ff=0;var _100=new Date();var _101=Math.floor(_100.getTime()/1000)-_4a;if(_101>_17&&_4b==0){if(_4e=="available"||_4e=="busy"){_4b=1;_26["status"]="away";_78();$("#cometchat_userstab_icon").addClass("cometchat_user_away2");}}if(_101<_17&&_4b==1){if(_4e=="available"||_4e=="busy"){_4b=0;_26["status"]=_4e;_78();$("#cometchat_userstab_icon").addClass("cometchat_user_"+_4e+"2");}}if(_55==1){_26["cookie_"+_a+"state"]=$.cookie(_a+"state");_26["cookie_"+_a+"hidebar"]=$.cookie(_a+"hidebar");_26["cookie_"+_a+"an"]=$.cookie(_a+"an");_26["cookie_"+_a+"loggedin"]=$.cookie(_a+"loggedin");}_26["basedata"]=_51;$.ajax({url:_1+"cometchat_receive.php",data:_26,dataType:"jsonp",type:_56,timeout:_57,error:function(){clearTimeout(_2e);_30=_8;_2e=setTimeout(function(){_71();},_30);},success:function(data){if(data){var _102=0;var _103="";$.each(data,function(type,item){if(type=="blh"){_4f=item;}if(type=="an"){if($.cookie(_a+"popup")&&$.cookie(_a+"popup")=="true"){}else{_4d=100;message="
"+item.m+"
";if(item.o){var _104=(item.o-1);if(_104>0){message+="
"+_2[36]+_104+_2[37]+"
";}}else{$.cookie(_a+"an",item.id,{path:"/",expires:365});}_5c("cometchat_userstab",message,0);clearTimeout(_4c);_4c=setTimeout(function(){$("#cometchat_tooltip").css("display","none");_4d=0;},_1c);}}if(type=="buddylist"){var _105=0;var _106=0;$.each(item,function(i,_107){if(_107.n.length>_12&&!_47.test(_107.n)){longname=_107.n.substr(0,_12)+"...";}else{longname=_107.n;}if(_41[_107.id]!=null){$("#cometchat_user_"+_107.id+" .cometchat_closebox_bottom_status").removeClass("cometchat_available").removeClass("cometchat_busy").removeClass("cometchat_offline").removeClass("cometchat_away").addClass("cometchat_"+_107.s);if($("#cometchat_user_"+_107.id+"_popup").length>0){$("#cometchat_user_"+_107.id+"_popup .cometchat_tabsubtitle .cometchat_message").html(_107.m);}}if(_107.s!="offline"){_105++;}_106++;_fd[_107.s]+="
"+longname+"
";_fe[_107.s]+="
"+longname+"
";var _108="";if(_19==1&&_9e("initialize")!=1&&_3a[_107.id]!="available"&&_3a[_107.id]!="busy"&&_3a[_107.id]!="away"&&_107.s=="available"){_108=_2[19];}if(_1a==1&&_9e("initialize")!=1&&_3a[_107.id]!="available"&&_3a[_107.id]!="busy"&&_3a[_107.id]!="away"&&_107.s=="busy"){_108=_2[21];}if(_18==1&&_9e("initialize")!=1&&_3a[_107.id]!="offline"&&_107.s=="offline"){_108=_2[20];}if(_108!=""){_103+="
"+_107.n+_108+"
"+_107.m+"
";}_3a[_107.id]=_107.s;_39[_107.id]=_107.m;_38[_107.id]=_107.n;_3b[_107.id]=_107.a;_3c[_107.id]=_107.l;});var _109=_fe;if(_106>_15){_109=_fd;}for(buddystatus in _109){if(_109.hasOwnProperty(buddystatus)){if(_109[buddystatus]==""){document.getElementById("cometchat_userslist_"+buddystatus).style.display="none";}else{document.getElementById("cometchat_userslist_"+buddystatus).style.display="block";_13f("cometchat_userslist_"+buddystatus,"
"+_109[buddystatus]+"
");}}}if(_e4("buddylist")==1){$(".cometchat_userscontentavatar img").each(function(){if($(this).attr("original")){$(this).attr("src",$(this).attr("original"));$(this).removeAttr("original");}});}$("#cometchat_search").keyup();$(".cometchat_userlist").unbind("click");$(".cometchat_userlist").bind("click",function(e){_e7(e.target);});$("#cometchat_userstab_text").html(_2[9]+" ("+(_105+_3e)+")");_3f=_105;_34=_105+_3e;if(_106==0){document.getElementById("cometchat_userslist_available").style.display="block";$("#cometchat_userslist_available").html("
"+_2[14]+"
");}if(_106>_14){$("#cometchat_searchbar").css("display","block");}else{$("#cometchat_searchbar").css("display","none");}if(_103!=""&&!$("#cometchat_userstab_popup").hasClass("cometchat_tabopen")&&!$("#cometchat_optionsbutton_popup").hasClass("cometchat_tabopen")){if(_4d<10){if($.cookie(_a+"popup")&&$.cookie(_a+"popup")=="true"){}else{_4d=10;_5c("cometchat_userstab",_103,0);clearTimeout(_4c);_4c=setTimeout(function(){$("#cometchat_tooltip").css("display","none");_4d=0;},_1b);}}}if(_50!=""){jqcc[_50].updateBuddyList(item);}}if(type=="loggedout"){$.cookie(_a+"loggedin",null,{path:"/"});$.cookie(_a+"state",null,{path:"/"});$.cookie(_a+"jabber",null,{path:"/"});$.cookie(_a+"jabber_type",null,{path:"/"});$.cookie(_a+"hidebar",null,{path:"/"});$("#cometchat_optionsbutton").addClass("cometchat_optionsimages_exclamation");$("#cometchat_userstab").hide();$("#cometchat_chatboxes").hide();$("#cometchat_chatbox_left").hide();$("#cometchat_chatbox_right").hide();$("#cometchat_optionsbutton_popup").removeClass("cometchat_tabopen");$("#cometchat_userstab_popup").removeClass("cometchat_tabopen");$("#cometchat_optionsbutton").removeClass("cometchat_tabclick");$("#cometchat_userstab").removeClass("cometchat_tabclick");if(_29!=""){$("#cometchat_user_"+_29+"_popup").removeClass("cometchat_tabopen");_29="";_7e("openChatboxId",_29);}_2a=1;if(_50!=""){jqcc[_50].loggedOut();}}if(type=="userstatus"){$.each(item,function(name,_10a){if(name=="message"){$("#cometchat_optionsbutton_popup .cometchat_statustextarea").val(_10a);}if(name=="status"){_4e=_10a;if(_10a=="offline"){_7c(1);}else{_77();$("#cometchat_userstab_icon").addClass("cometchat_user_"+_10a+"2");$("#cometchat_optionsbutton_popup ."+_10a).css("text-decoration","underline");}}});}if(type=="cometid"){cometcall_function(item.id,item.td,_50);}if(type=="initialize"){_33=item;_11c();}if(type=="tt"){$(".cometchat_typing").css("display","none");var _10b=item.split(",");var t=_10b.length;while(t>-1){$("#cometchat_typing_"+_10b[t]).css("display","block");t--;}}if(type=="messages"){if(_50!=""){jqcc[_50].newMessages(item);}$.each(item,function(i,_10c){_33=_10c.id;if((_29)==(_10c.from)&&_38[_10c.from]!=""&&_38[_10c.from]!=null){++_102;var name=_38[_10c.from];var _10d="";if(_10c.self==1){fromname=_2[10];_10d=" cometchat_self";}else{fromname=name;}if($("#cometchat_message_"+_10c.id).length>0){$("#cometchat_message_"+_10c.id+" .cometchat_chatboxmessagecontent").html(_10c.message);}else{var ts=new Date(_10c.sent*1000);if(!_10){fromname=fromname.split(" ")[0];}_fc+=(_12c("
"+fromname+":  "+_10c.message+""+_aa(ts)+"
",_10d));if(_10c.old==0&&_10c.self==0){_ff=1;}}}else{var _10e=0;if($("#cometchat_user_"+_10c.from).length>0){}else{_10e=1;}_eb(_10c.from,_10c.message,_10c.self,_10c.old,_10c.id,0,_10c.sent);if(_29==""&&_5==1&&_10e==1){_f4(_10c.from);}}});_31=1;_30=_8;}});if(_29!=""&&_102>0){_f6(_29,_fc,_ff);}}_d9("initialize","0");_d9("currenttime","0");if(_2a!=1&&_2b!=1){_31++;if(_31>4){_30*=2;_31=1;}if(_30>_9){_30=_9;}clearTimeout(_2e);_2e=setTimeout(function(){_71();},_30);}}});};function _10f(){_2[1]="Powered By CometChat";};function _110(){$("body").append("
");var _111="";var _112="";for(x in _3){if(_3.hasOwnProperty(x)){var icon=_3[x];_111+=("
");if(_3[x][8]){_111+="
"+_3[x][1]+"
";}_111+="
";if(icon[3]=="_popup"){_112+="
"+icon[1]+"

";}if(!isNaN(icon[6])&&Number(icon[6])>0){_25+=Number(icon[6]);}else{_25+=16;}_25+=18;}}var _113=$.cookie(_a+"state");var _114=0;if(_113!=null){var _115=_113.split(/:/);_114=_115[3];}var _116="
"+_112+"
"+_111+"
"+_2[9]+" ("+_114+")
"+_2[0]+"

"+_2[1]+"
"+_2[2]+"


"+_2[23]+"
"+_2[3]+""+_2[5]+"
"+_2[4]+""+_2[11]+"
"+_2[13]+"
"+_2[24]+"
"+_2[9]+"

";document.getElementById("cometchat").innerHTML=_116;$(".cometchat_trayicontext").each(function(){_25+=this.clientWidth+1;id=$(this).parent().attr("id");$("#"+id+"_popup .cometchat_traycontent").css("background-position",(this.clientWidth)+"px bottom");});_7f();_bd();$("#cometchat_chatboxes").attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false;});$("#cometchat_userscontent").attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false;});$(".cometchat_trayicon").attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false;});$(".cometchat_tab").attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false;});$("#cometchat_hidebar").click(function(){_7c();$("#cometchat").css("display","none");$("#cometchat_hidden").css("display","block");$.cookie(_a+"hidebar","1",{path:"/",expires:365});});$("#cometchat_hidden").click(function(){$("#cometchat").css("display","block");$("#cometchat_hidden").css("display","none");$.cookie(_a+"hidebar","0",{path:"/",expires:365});if(_2a==0){clearTimeout(_2e);_71();}});$("#cometchat_hidden").mouseover(function(){if(_4d==0){_5c("cometchat_hidden_content",_2[26],0);}$(this).addClass("cometchat_tabmouseover");});$("#cometchat_hidden").mouseout(function(){$(this).removeClass("cometchat_tabmouseover");if(_4d==0){$("#cometchat_tooltip").css("display","none");}});$("#cometchat_hide").mouseover(function(){if(_4d==0){_5c("cometchat_hide",_2[27],0);}$(this).addClass("cometchat_tabmouseover");});$("#cometchat_hide").mouseout(function(){$(this).removeClass("cometchat_tabmouseover");if(_4d==0){$("#cometchat_tooltip").css("display","none");}});$("#cometchat .cometchat_trayicon").mouseover(function(){var id=$(this).attr("id").substr(19);if(!_3[id][8]){if(_4d==0){_5c("cometchat_trayicon_"+id,_3[id][1],1);}}$(this).addClass("cometchat_tabmouseover");});$("#cometchat .cometchat_trayicon").mouseout(function(){$(this).removeClass("cometchat_tabmouseover");if(_4d==0){$("#cometchat_tooltip").css("display","none");}});$("#cometchat .cometchat_traytitle").mouseenter(function(){var id=$(this).parent().attr("id");id=id.substring(19,id.length-6);$("#cometchat_trayicon_"+id+"_popup .cometchat_traytitle .cometchat_minimizebox").addClass("cometchat_chatboxtraytitlemouseover");});$("#cometchat .cometchat_traytitle").mouseleave(function(){var id=$(this).parent().attr("id");id=id.substring(19,id.length-6);$("#cometchat_trayicon_"+id+"_popup .cometchat_traytitle .cometchat_minimizebox").removeClass("cometchat_chatboxtraytitlemouseover");});$("#cometchat .cometchat_traytitle").click(function(){var id=$(this).parent().attr("id");id=id.substring(19,id.length-6);$("#cometchat_trayicon_"+id).click();});$("#cometchat .cometchat_trayicon").click(function(){var id=$(this).attr("id").substr(19);_12a(id,0);if(_29!=""){$("#cometchat_user_"+_29+"_popup").removeClass("cometchat_tabopen");$("#cometchat_user_"+_29).removeClass("cometchat_tabclick").removeClass("cometchat_usertabclick");$("#cometchat_user_"+_29+" .cometchat_closebox_bottom").removeClass("cometchat_closebox_bottom_click");_29="";_7e("openChatboxId",_29);}$("#cometchat_userstab_popup").removeClass("cometchat_tabopen");$("#cometchat_userstab").removeClass("cometchat_userstabclick").removeClass("cometchat_tabclick");$("#cometchat_optionsbutton_popup").removeClass("cometchat_tabopen");$("#cometchat_optionsbutton").removeClass("cometchat_tabclick");_7e("buddylist","0");var _117="_self";if(_3[id][3]){_117=_3[id][3];}if(_117=="_popup"){if(_35!=id){$("#cometchat_trayicon_"+_35+"_popup").removeClass("cometchat_tabopen");$("#cometchat_trayicon_"+_35).removeClass("cometchat_trayclick");_35="";_7e("trayOpen",_35);}if(_35==""){$("#cometchat_trayicon_"+id+"_popup").css("left",$("#cometchat_trayicon_"+id).offset().left-1).css("width",_3[id][4]);if(ie6){$("#cometchat_trayicon_"+id+"_popup .cometchat_traytitle").css("width",parseInt(_3[id][4])-5);}if($("#cometchat_trayicon_"+id+"_iframe").attr("src")===undefined||$("#cometchat_trayicon_"+id+"_iframe").attr("src")=="blank.html"||$("#cometchat_trayicon_"+id+"_iframe").attr("src")==""){$("#cometchat_trayicon_"+id+"_iframe").attr("src",_3[id][2]+"?basedata="+_51);}$("#cometchat_trayicon_"+id).addClass("cometchat_trayclick");$("#cometchat_trayicon_"+id+"_popup").addClass("cometchat_tabopen");_35=id;_7e("trayOpen",_35);}else{$("#cometchat_trayicon_"+_35+"_popup").removeClass("cometchat_tabopen");$("#cometchat_trayicon_"+_35).removeClass("cometchat_trayclick");_35="";_7e("trayOpen",_35);}if(ie6){_62();}}else{window.open(_3[id][2],_117);}});$("#cometchat_chatbox_right").bind("click",_d5);$("#cometchat_chatbox_left").bind("click",_d3);_c3();_cd();$("#cometchat_chatbox_right").mouseover(function(){$(this).addClass("cometchat_chatbox_lr_mouseover");});$("#cometchat_chatbox_right").mouseout(function(){$(this).removeClass("cometchat_chatbox_lr_mouseover");});$("#cometchat_chatbox_left").mouseover(function(){$(this).addClass("cometchat_chatbox_lr_mouseover");});$("#cometchat_chatbox_left").mouseout(function(){$(this).removeClass("cometchat_chatbox_lr_mouseover");});$(window).bind("resize",_c3);_d9("buddylist","1");_d9("initialize","1");_d9("currenttime",_46);var _118=1;if(typeof document.body.style.maxHeight==="undefined"){if(_1f){$("#cometchat").css("display","none");_118=0;}else{ie6=true;_62();$(window).bind("scroll",function(){_62();});}}else{if(_52){if(_20&&_50==""){$("#cometchat").css("display","none");_118=0;}else{ie6=true;_62();$(window).bind("scroll",function(){_62();});}}}document.onmousemove=function(e){var _119=new Date();_4a=Math.floor(_119.getTime()/1000);};if(_23==1){_11a();}if($.cookie(_a+"hidebar")=="1"){$("#cometchat").css("display","none");$("#cometchat_hidden").css("display","block");_118=0;}if(_50==""){var _11b=_24.length;if(_11b>0){for(var i=0;i<_11b;i++){var name="cc"+_24[i];if(typeof ($[name])=="object"){$[name].init();}}}}if($.inArray("block",_4)>-1&&_50==""){$.ccblock.addCode();}if(_118==1){_71();}};function _11c(){if(_2a==0){var _11d=$.cookie(_a+"state");_dd("updatingsession","1");if(_11d!=null){var _11e=_11d.split(/:/);if(_2b==0){var _11f=0;if(_11e[0]!=" "&&_11e[0]!=""){_11f=_11e[0];}if((_11f==0&&$("#cometchat_userstab").hasClass("cometchat_tabclick"))||(_11f==1&&!($("#cometchat_userstab").hasClass("cometchat_tabclick")))){$("#cometchat_userstab").click();}_11f="";if(_11e[1]!=" "&&_11e[1]!=""){_11f=_11e[1];}if(_11f!=_e4("activeChatboxes")){var _120={};var _121={};if(_11f!=""){var _122=_11f.split(/,/);for(i=0;i<_122.length;i++){var _123=_122[i].split(/\|/);_120[_123[0]]=_123[1];}}if(_e4("activeChatboxes")!=""){var _122=_e4("activeChatboxes").split(/,/);for(i=0;i<_122.length;i++){var _123=_122[i].split(/\|/);_121[_123[0]]=_123[1];}}for(r in _120){if(_120.hasOwnProperty(r)){_b9(r,parseInt(_120[r]),0);if(parseInt(_120[r])>0){_37=1;}}}for(y in _121){if(_121.hasOwnProperty(y)){if(_120[y]==null){$("#cometchat_user_"+y+"_popup .cometchat_tabtitle .cometchat_closebox").click();}}}}if(_37>0){if(_50==""){if(document.title==_2[15]){document.title=_36;}else{document.title=_2[15];}}}else{var _124=new Date();var _125=Math.floor(_124.getTime()/1000)-_4a;if(_125<5){if(_50==""){document.title=_36;}}}_11f=0;if(_11e[2]!=" "&&_11e[2]!=""){_11f=_11e[2];}if(_11f!=_29){if(_29!=""){_f5(_29);}if(_11f!=""){_f5(_11f);}}if(_11e[4]==1){_7c(1);}}if(_11e[4]==0&&_2b==1){_2b=0;$("#cometchat_userstab_text").html(_2[9]+" ("+_34+")");_71(1);_77();$("#cometchat_userstab_icon").addClass("cometchat_user_available2");$("#cometchat_optionsbutton_popup .available").css("text-decoration","underline");}if(_11e[5]!=" "&&_11e[5]!=""&&_11e[5]!=_35&&_11==1){$("#cometchat_trayicon_"+_11e[5]).click();}}_dd("updatingsession","0");clearTimeout(_2f);_2f=setTimeout(function(){_11c();},5000);}};var _126={};function _62(){var _127=["cometchat_base","cometchat_userstab_popup","cometchat_optionsbutton_popup","cometchat_tooltip","cometchat_hidden"];if(_29!=""){_127.push("cometchat_user_"+_29+"_popup");}if(_35!=""&&_35!=0){_127.push("cometchat_trayicon_"+_35+"_popup");}for(x in _127){$("#"+_127[x]).css("position","absolute");var _128=parseInt($("#"+_127[x]).css("bottom"));if(x==0){_128=0;}var _129=parseInt($("#"+_127[x]).height());if(_126[_127[x]]&&x!=3){_129=_126[_127[x]];}else{_126[_127[x]]=_129;}if(x==3){}$("#"+_127[x]).css("top",(parseInt($(window).height())-_128-_129+parseInt($(window).scrollTop()))+"px");}};function _12a(id,_12b){if(!$("#cometchat_trayicon_"+id+"_popup").hasClass("cometchat_tabopen")){$("#cometchat_trayicon_"+id+" .cometchat_tabalert").remove();if(_12b!=0){$("
").css("top","-10px").addClass("cometchat_tabalert").html(_12b).appendTo($("#cometchat_trayicon_"+id));}}};function _12c(_12d,self){if(_21){if(self==null||self==""){return "
"+_12d+"
";}else{return "
"+_12d+"
";}}return _12d;};function _12e(){if(_50==""&&_22==1&&$.cookie(_a+"loggedin")!=1){$.ajax({url:_1+"cometchat_check.php",data:{"init":"1",basedata:_51},dataType:"jsonp",type:_56,timeout:_57,success:function(data){if(data!="0"){$.cookie(_a+"loggedin","1",{path:"/"});_110();}}});}else{_110();}};function _11a(){$("embed").each(function(i){if($(this).attr("id")!="cometchatbeep"){var _12f=this.cloneNode(true);_12f.setAttribute("WMode","Transparent");$(this).before(_12f);$(this).remove();}});$("object").each(function(i,v){if($(this).attr("id")!="cometchatbeep"){var _130=$(this).children("embed");if(typeof (_130.get(0))!="undefined"){if(typeof (_130.get(0).outerHTML)!="undefined"){_130.attr("wmode","transparent");$(this.outerHTML).insertAfter(this);$(this).remove();}return true;}var algo=this.attributes;var _131="";}else{_131+="";}}});if(!flag){_131+="";}_131+="";$(_131).insertAfter(this);$(this).remove();}});};arguments.callee.c5=function(){_10f();_12e();return;};arguments.callee.c6=function(){_12e();return;};arguments.callee.getBaseData=function(){return _51;};arguments.callee.getActiveId=function(){return _29;};arguments.callee.getUser=function(id,_132){$.ajax({url:_1+"cometchat_getid.php",data:{userid:id,basedata:_51},cache:false,dataType:"jsonp",type:_56,timeout:_57,success:function(data){if(data){window[_132](data);}else{window[_132](0);}}});};arguments.callee.ping=function(){return 1;};arguments.callee.getLanguage=function(id){return _2[id];};arguments.callee.chatWith=function(id){if(_2a==0){if(_2b==1){_2b=0;$("#cometchat_userstab_text").html(_2[9]+" ("+_34+")");_71(1);$("#cometchat_optionsbutton_popup .available").click();}_8c(id,_38[id],_3a[id],_39[id],_3b[id],_3c[id]);}};arguments.callee.getRecentData=function(id){$.ajax({cache:false,url:_1+"cometchat_receive.php",data:{chatbox:id,basedata:_51},dataType:"jsonp",type:_56,timeout:_57,success:function(data){if(_50!=""){jqcc[_50].loadData(id,data);}}});};arguments.callee.getUserDetails=function(id){$.ajax({url:_1+"cometchat_getid.php",data:{userid:id,basedata:_51},type:_56,timeout:_57,cache:false,async:false,dataType:"jsonp",success:function(data){if(_50!=""){jqcc[_50].loadUserData(id,data);}}});};arguments.callee.launchModule=function(id){if(!$("#cometchat_trayicon_"+id+"_popup").hasClass("cometchat_tabopen")){$("#cometchat_trayicon_"+id).click();}};arguments.callee.toggleModule=function(id){$("#cometchat_trayicon_"+id).click();};arguments.callee.closeModule=function(id){if($("#cometchat_trayicon_"+id+"_popup").hasClass("cometchat_tabopen")){$("#cometchat_trayicon_"+id).click();}};arguments.callee.joinChatroom=function(_133,_134,_135){$("#cometchat_trayicon_chatrooms_iframe").attr("src",_1+"modules/chatrooms/index.php?roomid="+_133+"&inviteid="+_134+"&roomname="+_135);$("#cometchat_trayicon_chatrooms").click();};arguments.callee.sendMessage=function(id,_136){if(_136!=""){$.ajax({url:_1+"cometchat_send.php",data:{to:id,message:_136,basedata:_51},dataType:"jsonp",type:_56,timeout:_57,success:function(data){if(data){_eb(id,_136,1,1,data,1,1);$("#cometchat_tabcontenttext_"+id).scrollTop(50000);setTimeout(function(){$("#cometchat_tabcontenttext_"+id).scrollTop(50000);},100);}_31=1;if(_30>_8){_30=_8;clearTimeout(_2e);_2e=setTimeout(function(){_71();},_8);}}});}};arguments.callee.hideBar=function(){$("#cometchat_hidebar").click();};arguments.callee.getBaseUrl=function(){return _1;};arguments.callee.setAlert=function(id,_137){_12a(id,_137);};arguments.callee.closeTooltip=function(){$("#cometchat_tooltip").css("display","none");};arguments.callee.scrollToTop=function(){$("html,body").animate({scrollTop:0},{"duration":"slow"});};arguments.callee.reinitialize=function(){if(_2a==1){$("#cometchat_optionsbutton").removeClass("cometchat_optionsimages_exclamation");$("#cometchat_userstab").show();$("#cometchat_chatboxes").show();$("#cometchat_chatbox_left").show();$("#cometchat_chatbox_right").show();_2a=0;_d9("initialize","1");_71();}};arguments.callee.addMessage=function(id,_138,self,old,_139,_13a,sent,_13b){_eb(id,_138,self,old,_139,_13a,sent,_13b);};arguments.callee.updateHtml=function(id,temp){if($("#cometchat_user_"+id+"_popup").length>0){document.getElementById("cometchat_tabcontenttext_"+id).innerHTML="
"+temp+"
";$("#cometchat_tabcontenttext_"+id).scrollTop(50000);setTimeout(function(){$("#cometchat_tabcontenttext_"+id).scrollTop(50000);},100);}else{if(_42[id]===undefined||_42[id]<5){setTimeout(function(){$.cometchat.updateHtml(id,temp);},1000);}}};arguments.callee.processMessage=function(id,_13c){return _12c(id,_13c);};arguments.callee.replaceHtml=function(id,_13d){_13f(id,_13d);};arguments.callee.userClick=function(e){_e7(e);};arguments.callee.userAdd=function(id,s,m,n,a,l){_3d[id]=1;_3a[id]=s;_39[id]=m;_38[id]=n;_3b[id]=a;_3c[id]=l;};arguments.callee.updateJabberOnlineNumber=function(_13e){_3e=_13e;_34=_3e+_3f;if(_2b==0){$("#cometchat_userstab_text").html(_2[9]+" ("+_34+")");}};arguments.callee.getSessionVariable=function(name){return _e4(name);};arguments.callee.getName=function(id){return _38[id];};};$.expr[":"].icontains=function(a,i,m){return (a.textContent||a.innerText||"").toLowerCase().indexOf(m[3].toLowerCase())>=0;};function _13f(el,html){var _140=typeof el==="string"?document.getElementById(el):el;var _141=_140.cloneNode(false);_141.innerHTML=html;_140.parentNode.replaceChild(_141,_140);return _141;};})(jqcc); jqcc(document).ready(function () { if (typeof CometChathasBeenRun === 'undefined') { CometChathasBeenRun = true; } else { return; } jqcc.cometchat(); jqcc.cometchat.c6(); }); /* * CometChat - Smilies Plugin * Copyright (c) 2011 Inscripts - support@cometchat.com | http://www.cometchat.com | http://www.inscripts.com */ (function($){ $.ccsmilies = (function () { var title = 'Add a smiley'; return { getTitle: function() { return title; }, init: function (id) { baseUrl = $.cometchat.getBaseUrl(); baseData = $.cometchat.getBaseData(); window.open (baseUrl+'plugins/smilies/index.php?id='+id+'&basedata='+baseData, 'smilies',"status=0,toolbar=0,menubar=0,directories=0,resizable=0,location=0,status=0,scrollbars=0, width=220,height=130"); }, addtext: function (id,text) { var string = $('#cometchat_user_'+id+'_popup .cometchat_textarea').val(); if (string.charAt(string.length-1) == ' ') { $('#cometchat_user_'+id+'_popup .cometchat_textarea').val($('#cometchat_user_'+id+'_popup .cometchat_textarea').val()+text); } else { $('#cometchat_user_'+id+'_popup .cometchat_textarea').val($('#cometchat_user_'+id+'_popup .cometchat_textarea').val()+' '+text); } $('#cometchat_user_'+id+'_popup .cometchat_textarea').focus(); } }; })(); })(jqcc); /* * CometChat * Copyright (c) 2011 Inscripts - support@cometchat.com | http://www.cometchat.com | http://www.inscripts.com */ (function($){ $.cchandwrite = (function () { var title = 'Handwrite a message'; return { getTitle: function() { return title; }, init: function (id) { baseUrl = $.cometchat.getBaseUrl(); baseData = $.cometchat.getBaseData(); window.open (baseUrl+'plugins/handwrite/index.php?id='+id+'&basedata='+baseData, 'handwrite',"status=0,toolbar=0,menubar=0,directories=0,resizable=1,location=0,status=0,scrollbars=0, width=330,height=250"); } }; })(); })(jqcc); /* * CometChat * Copyright (c) 2011 Inscripts - support@cometchat.com | http://www.cometchat.com | http://www.inscripts.com */ (function($){ $.ccchattime = (function () { var title = 'Show/hide time'; return { getTitle: function() { return title; }, init: function (id) { if ($("#cometchat_user_"+id+"_popup .cometchat_ts").css('display') == 'none') { $("#cometchat_user_"+id+"_popup .cometchat_ts").css('display','inline'); $("#cometchat_tabcontenttext_"+id).scrollTop(50000); } else { $("#cometchat_user_"+id+"_popup .cometchat_ts_date").css('display','none'); $("#cometchat_user_"+id+"_popup .cometchat_ts").css('display','none'); } } }; })(); })(jqcc); /* * CometChat * Copyright (c) 2011 Inscripts - support@cometchat.com | http://www.cometchat.com | http://www.inscripts.com */ (function($){ $.ccclearconversation = (function () { var title = 'Clear conversation'; return { getTitle: function() { return title; }, init: function (id) { if ($("#cometchat_user_"+id+"_popup .cometchat_tabcontenttext").html() != '') { baseUrl = $.cometchat.getBaseUrl(); baseData = $.cometchat.getBaseData(); $.getJSON(baseUrl+'plugins/clearconversation/index.php?action=clear&callback=?', {clearid: id, basedata: baseData}); $("#cometchat_user_"+id+"_popup .cometchat_tabcontenttext").html(''); } } }; })(); })(jqcc); /* * CometChat * Copyright (c) 2011 Inscripts - support@cometchat.com | http://www.cometchat.com | http://www.inscripts.com */ (function($){ $.ccavchat = (function () { var title = 'Start an audio/video call'; var lastcall = 0; return { getTitle: function() { return title; }, init: function (id) { var currenttime = new Date(); currenttime = parseInt(currenttime.getTime()/1000); if (currenttime-lastcall > 10) { baseUrl = $.cometchat.getBaseUrl(); baseData = $.cometchat.getBaseData(); $.getJSON(baseUrl+'plugins/avchat/index.php?action=request&callback=?', {to: id, basedata: baseData}); lastcall = currenttime; } else { alert('Please wait atleast 10 seconds before trying to call again.'); } }, accept: function (id,grp) { baseUrl = $.cometchat.getBaseUrl(); baseData = $.cometchat.getBaseData(); $.getJSON(baseUrl+'plugins/avchat/index.php?action=accept&callback=?', {to: id,grp: grp, basedata: baseData}); var w = window.open (baseUrl+'plugins/avchat/index.php?action=call&grp='+grp+'&basedata='+baseData, 'audiovideochat',"status=0,toolbar=0,menubar=0,directories=0,resizable=1,location=0,status=0,scrollbars=0, width=434,height=356"); w.focus(); }, accept_fid: function (id,grp) { baseUrl = $.cometchat.getBaseUrl(); baseData = $.cometchat.getBaseData(); var w =window.open (baseUrl+'plugins/avchat/index.php?action=call&grp='+grp+'&basedata='+baseData, 'audiovideochat',"status=0,toolbar=0,menubar=0,directories=0,resizable=1,location=0,status=0,scrollbars=0, width=434,height=356"); w.focus(); } }; })(); })(jqcc); /* * CometChat * Copyright (c) 2011 Inscripts - support@cometchat.com | http://www.cometchat.com | http://www.inscripts.com */ (function($){ $.ccotavchat = (function () { var title = 'Start an audio/video call'; var lastcall = 0; return { getTitle: function() { return title; }, init: function (id) { var currenttime = new Date(); currenttime = parseInt(currenttime.getTime()/1000); if (currenttime-lastcall > 10) { baseUrl = $.cometchat.getBaseUrl(); baseData = $.cometchat.getBaseData(); $.getJSON(baseUrl+'plugins/otavchat/index.php?action=request&callback=?', {to: id, basedata: baseData}); lastcall = currenttime; } else { alert('Please wait atleast 10 seconds before trying to call again.'); } }, accept: function (id,grp) { baseUrl = $.cometchat.getBaseUrl(); baseData = $.cometchat.getBaseData(); $.getJSON(baseUrl+'plugins/otavchat/index.php?action=accept&callback=?', {to: id,grp: grp, basedata: baseData}); var w = window.open (baseUrl+'plugins/otavchat/index.php?action=call&grp='+grp+'&basedata='+baseData, 'audiovideochat',"status=0,toolbar=0,menubar=0,directories=0,resizable=1,location=0,status=0,scrollbars=0, width=300,height=330"); w.focus(); }, accept_fid: function (id,grp) { baseUrl = $.cometchat.getBaseUrl(); baseData = $.cometchat.getBaseData(); var w =window.open (baseUrl+'plugins/otavchat/index.php?action=call&grp='+grp+'&basedata='+baseData, 'audiovideochat',"status=0,toolbar=0,menubar=0,directories=0,resizable=1,location=0,status=0,scrollbars=0, width=300,height=330"); w.focus(); } }; })(); })(jqcc); /* * CometChat * Copyright (c) 2011 Inscripts - support@cometchat.com | http://www.cometchat.com | http://www.inscripts.com */ (function($){ $.cctransliterate = (function () { var title = 'Write in your language'; return { getTitle: function() { return title; }, init: function (id) { baseUrl = $.cometchat.getBaseUrl(); baseData = $.cometchat.getBaseData(); window.open (baseUrl+'plugins/transliterate/index.php?id='+id+'&basedata='+baseData, 'transliterate',"status=0,toolbar=0,menubar=0,directories=0,resizable=0,location=0,status=0,scrollbars=0, width=430,height=220"); } }; })(); })(jqcc); /* * CometChat * Copyright (c) 2011 Inscripts - support@cometchat.com | http://www.cometchat.com | http://www.inscripts.com */ (function($){ $.ccfiletransfer = (function () { var title = 'Send a file'; return { getTitle: function() { return title; }, init: function (id) { baseUrl = $.cometchat.getBaseUrl(); baseData = $.cometchat.getBaseData(); window.open (baseUrl+'plugins/filetransfer/index.php?id='+id+'&basedata='+baseData, 'filetransfer',"status=0,toolbar=0,menubar=0,directories=0,resizable=0,location=0,status=0,scrollbars=0, width=400,height=170"); } }; })(); })(jqcc); /* * CometChat * Copyright (c) 2011 Inscripts - support@cometchat.com | http://www.cometchat.com | http://www.inscripts.com */ (function($){ $.ccsave = (function () { var title = 'Save Conversation to Desktop'; return { getTitle: function() { return title; }, init: function (id) { if ($("#cometchat_user_"+id+"_popup .cometchat_tabcontenttext").html() != '') { baseUrl = $.cometchat.getBaseUrl(); baseData = $.cometchat.getBaseData(); location.href=(baseUrl+'plugins/save/index.php?id='+id+'&basedata='+baseData); } else { alert('Sorry, your conversation log is empty.'); } } }; })(); })(jqcc); /* * CometChat * Copyright (c) 2011 Inscripts - support@cometchat.com | http://www.cometchat.com | http://www.inscripts.com */ (function($){ $.ccjabber = (function () { var title = 'Jabber Extension'; var server = 'http://e.chatforyoursite.com/j'; var login = 'Connect to Facebook/Gtalk chat'; var logout = {}; logout['facebook'] = 'Logout from Facebook'; logout['gtalk'] = 'Logout from Gtalk'; var hash = ''; var messageTimer; var friendsTimer; var minHeartbeat = 3000; var maxHeartbeat = 30000; var heartbeatTime = minHeartbeat; var heartbeatCount = 1; var crossDomain = '0'; var longNameLength = '22'; return { getTitle: function() { return title; }, init: function () { $('
'+login+'
').insertBefore('#cometchat_searchbar'); var list = '
'; $(list).insertAfter('#cometchat_userslist_offline'); if (jqcc.cookie('cc_jabber') && jqcc.cookie('cc_jabber') == 'true') { jqcc.ccjabber.process(); } }, login: function () { hash = ''; baseUrl = $.cometchat.getBaseUrl(); baseData = $.cometchat.getBaseData(); baseDomain = document.domain; window.open (baseUrl+'extensions/jabber/init.php?basedata='+baseData+'&basedomain='+baseDomain, 'jabber',"status=0,toolbar=0,menubar=0,directories=0,resizable=0,location=0,status=0,scrollbars=0, width=500,height=190"); if (crossDomain == 1) { jqcc.ccjabber.waitForProcessCookie(); } }, waitForProcessCookie: function () { if (jqcc.cookie('cc_jabber_process') == 'true') { jqcc.cookie('cc_jabber_process','false'); jqcc.ccjabber.process(); } else { setTimeout(function() { jqcc.ccjabber.waitForProcessCookie(); }, 1000); } }, logout: function () { $.cometchat.updateJabberOnlineNumber(0); $('.cometchat_subsubtitle').remove(); hash = ''; jqcc.cookie('cc_jabber','false',{ path: '/' }); $('#jabber_login').html(login); $('#cometchat_userslist_jabber').html(''); clearTimeout(messageTimer); $.getJSON(server+"?json_callback=?", {'action':'logout'}); }, process: function () { var head = '

Facebook Friends
'; if (jqcc.cookie('cc_jabber_type') == 'gtalk') { head = '

Gtalk Friends
'; } $(head).insertBefore('#cometchat_userslist_jabber'); head = '

Site Users
'; $(head).insertBefore('#cometchat_userslist_available'); $('#cometchat_searchbar').css('display','block'); hash = ''; $('#jabber_login').html(logout[jqcc.cookie('cc_jabber_type')]); jqcc.ccjabber.getFriendsList(1); }, sendMessage: function (id,message) { var currenttime = new Date(); currenttime = parseInt(currenttime.getTime()/1000); $.cometchat.addMessage(id,message,1,0,currenttime,1,null); id = jqcc.ccjabber.decodeName(id); $.getJSON(server+"?json_callback=?", {'action':'sendMessage',to:id,msg:message} , function(data){ heartbeatCount = 1; if (heartbeatTime > minHeartbeat) { heartbeatCount = 1; clearTimeout(messageTimer); heartbeatTime = minHeartbeat; messageTimer = setTimeout( function() { jqcc.ccjabber.getMessages(); }, minHeartbeat); } }); }, getRecentData: function(id) { var originalid = id; id = jqcc.ccjabber.decodeName(id); $.getJSON(server+"?json_callback=?", {'action':'getAllMessages',user:id} , function(data){ if (data) { var temp = ''; $.each(data, function(id,message) { var sent = 0; if (message.type == 'sent') { sent = 1; } var selfstyle = ''; if (message.type == 'sent') { fromname = ''; selfstyle = ' cometchat_self'; } else { fromname = $.cometchat.getName(jqcc.ccjabber.encodeName(message.from)); } if (fromname.indexOf(" ") != -1) { fromname = fromname.slice(0,fromname.indexOf(" ")); } fromname = fromname.split("@")[0]; message.from = jqcc.ccjabber.encodeName(message.from); message.msg = message.msg.replace(//g, '>'); temp += ($.cometchat.processMessage('
'+fromname+':  '+message.msg+'
',selfstyle)); }); if (temp != '') { $.cometchat.updateHtml(originalid,temp); } } }); }, getMessages: function () { $.ajax({ url: server+"?json_callback=?", data: {'action':'getRecentMessages'}, dataType: 'jsonp', timeout: 6000, error: function() { clearTimeout(messageTimer); messageTimer = setTimeout( function() { jqcc.ccjabber.getMessages(); }, heartbeatTime); }, success: function(data) { if (data) { if (data[0] && data[0].error == '1') { jqcc.ccjabber.logout(); } else { $.each(data, function(id,message) { message.from = jqcc.ccjabber.encodeName(message.from); $.cometchat.addMessage(message.from,message.msg,0,0,message.time,1,null); heartbeatTime = minHeartbeat; }); heartbeatCount++; if (heartbeatTime != maxHeartbeat) { if (heartbeatCount > 4) { heartbeatTime *= 2; heartbeatCount = 1; } if (heartbeatTime > maxHeartbeat) { heartbeatTime = maxHeartbeat; } } else { if (heartbeatCount > 20) { jqcc.ccjabber.logout(); } } clearTimeout(messageTimer); messageTimer = setTimeout( function() { jqcc.ccjabber.getMessages(); }, heartbeatTime); } } } }); }, getFriendsList: function (first) { $.getJSON(server+"?json_callback=?", {'action':'getOnlineBuddies', md5: hash} , function(data){ if (data[0] && data[0].error == '1') { jqcc.ccjabber.logout(); } else { var buddylisttemp = ''; var buddylisttempavatar = ''; var md5updated = 0; var onlineNumber = 0; $.each(data, function(id,user) { if (user.id) { ++onlineNumber; user.id = jqcc.ccjabber.encodeName(user.id); user.n = user.n.split("@")[0]; if (user.n.length > longNameLength) { shortname = user.n.substr(0,longNameLength)+'...'; } else { shortname = user.n; } buddylisttemp += '
'+shortname+'
'; buddylisttempavatar += '
'+shortname+'
'; $.cometchat.userAdd(user.id,user.s,user.m,user.n,user.a,''); } if (user.md5) { hash = user.md5; md5updated = 1; } }); if (onlineNumber == 0) { buddylisttempavatar = ('
No users online at the moment.
'); } if (md5updated) { if (jqcc.cookie('cc_jabber') && jqcc.cookie('cc_jabber') == 'true') { $.cometchat.updateJabberOnlineNumber(onlineNumber); $.cometchat.replaceHtml('cometchat_userslist_jabber', '
'+buddylisttempavatar+'
'); $('.cometchat_userlist').unbind('click'); $('.cometchat_userlist').bind('click', function(e) { $.cometchat.userClick(e.target); }); if ($.cometchat.getSessionVariable('buddylist') == 1) { $(".cometchat_userscontentavatar img").each(function() { if ($(this).attr('original')) { $(this).attr("src", $(this).attr('original')); $(this).removeAttr('original'); } }); } $('#cometchat_search').keyup(); } } clearTimeout(friendsTimer); friendsTimer = setTimeout( function() { jqcc.ccjabber.getFriendsList(); }, 60000); if (first) { jqcc.ccjabber.getMessages(); } } }); }, encodeName: function(name) { name = name.toLowerCase(); name = name.replace('-','M'); name = name.replace('@','A'); name = name.replace(/\./g,'D'); return name; }, decodeName: function(name) { name = name.replace('M','-'); name = name.replace('A','@'); name = name.replace(/D/g,'\.'); return name; } }; })(); })(jqcc); /* Execution time: 0.015564918518066 seconds */