if(typeof(jqcc) === 'undefined') {
	jqcc = jQuery;
}

/**
 * Cookie plugin
 *
 * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 */

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;i<k.length;i++){var l=jqcc.trim(k[i]);if(l.substring(0,a.length+1)==(a+'=')){j=decodeURIComponent(l.substring(a.length+1));break}}}return j}};


/**
 * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.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.SWFObject.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="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}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.SWFObjectUtil.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.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=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.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.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.SWFObject;var SWFObject=deconcept.SWFObject;


/**
 * jqcc.ScrollTo
 * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
 * Dual licensed under MIT and GPL.
 * Date: 5/25/2009
 *
 * @projectDescription Easy element scrolling using jqcc.
 * http://flesler.blogspot.com/2007/10/jqccscrollto.html
 *
 * @author Ariel Flesler
 * @version 1.4.2
 *
 */

(function($){var h=$.scrollTo=function(a,b,c){$(window).scrollTo(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.scrollTo=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);(function($){$.cometchat=function(){var _1="/cometchat/";var _2=[];var _3=[];var _4;var _5;var _6;var _7;var _8;var _9;_2[0] = 'Chat Options';
_2[1] = 'Type your message and hit the enter key!';
_2[2] = 'My Status';
_2[3] = 'Available';
_2[4] = 'Busy';
_2[5] = 'Invisible';
_2[6] = 'Add Friend';
_2[7] = '';
_2[8] = 'Please login to use chat';
_2[9] = 'Who\'s Online';
_2[10] = 'Me';
_2[11] = 'Go Offline';
_2[12] = 'Who\'s Online';
_2[13] = 'Disable sound notifications';
_2[14] = 'You have no friends in your friend list, please add a few friends to use chat';
_2[15] = 'New Messages...';
_3[0] = ['house.png','My Profile','http://www.dad-blogs.com/profile/profile.html'];
_3[1] = ['chatrooms.png','Chatrooms','/cometchat/modules/chatrooms/index.php','_popup','500','300'];
_3[2] = ['Bubble.png','Dad Blogs Forum','http://www.dad-blogs.com/dad-blogs-forum.html'];
_3[3] = ['group.png','Groups','http://www.dad-blogs.com/member-groups.html','_blank'];
_3[4] = ['photo.png','Photos','http://www.dad-blogs.com/profile/member-photos.html'];
_3[5] = ['Movie.png','Movies','http://www.dad-blogs.com/profile/videos.html'];
_3[6] = ['review.png','Review Something','http://www.dad-blogs.com/reviews/submissions.html'];
_3[7] = ['dbapps.png','Dad Blogs Applications','http://www.dad-blogs.com/profile/apps/browse.html'];
var _4 = ['filetransfer','divider','clearconversation','chattime'];
var _5 = 0;var _6 = 1;var _7 = 'default';var _8 = 3000;var _9 = 12000;var _a={};var _b={};var _c={};var _d="";var _e=0;var _f=0;var _10=true;var _11=0;var ie6=false;var _12;var _13;var _14=_8;var _15=1;var _16=0;var _17=0;var _18=0;var _19="";var _1a=document.title;var _1b=0;var _1c={};var _1d={};var _1e={};var _1f={};var _20={};var _21={};var _22={};var _23={};var _24={};var _25=new Date();var _26=_25.getDate();var _27=Math.floor(_25.getTime()/1000);$.ajaxSetup({scriptCharset:"utf-8",cache:"false"});if(_6==1){$("<div id=\"cometchatflashcontent\"></div>").appendTo($("body"));var _28={};var _29={};var _2a={id:"cometchatbeep",name:"cometchatbeep"};var so;so=new SWFObject(_1+"swf/sound.swf","cometchatbeep","1","1","8","#ffffff");so.write("cometchatflashcontent")}function _2b(_2c){var _2d=navigator.appName.indexOf("Microsoft")!=-1;return(_2d)?window[_2c]:document[_2c]};function _2e(){try{_2b("cometchatbeep").cometchatbeep()}catch(error){_6=0}};function _2f(id,_30,_31){if($("#cometchat_tooltip").length>0){$("#cometchat_tooltip .cometchat_tooltip_content").html(_30)}else{$("body").append("<div id=\"cometchat_tooltip\"><div class=\"cometchat_tooltip_content\">"+_30+"</div></div>")}var pos=$("#"+id).offset();var _32=$("#"+id).width();var _33=$("#cometchat_tooltip").width();if(_31==1){$("#cometchat_tooltip").css("bottom",29).css("left",(pos.left+_32)-16).css("display","block").addClass("cometchat_tooltip_left")}else{$("#cometchat_tooltip").css("bottom",29).css("left",(pos.left+_32)-_33+12).css("display","block").removeClass("cometchat_tooltip_left")}if(ie6){$("#cometchat_tooltip").css("position","absolute");$("#cometchat_tooltip").css("top",parseInt($(window).height())-parseInt($("#cometchat_tooltip").css("bottom"))-parseInt($("#cometchat_tooltip").height())+$(window).scrollTop()+"px")}};function _34(_35,_36,id){if(_35.keyCode==13&&_35.shiftKey==0){var _37=$(_36).val();_37=_37.replace(/^\s+|\s+$/g,"");$(_36).val("");$(_36).css("height","18px");$("#cometchat_user_"+id+"_popup .cometchat_tabcontenttext").css("height","200px");$(_36).css("overflow-y","hidden");$(_36).focus();if(_37!=""){$.post(_1+"cometchat_send.php",{to:id,message:_37},function(_38){if(_38){_a9(id,_37,"1","1",_38,1,Math.floor(new Date().getTime()/1000));$("#cometchat_user_"+id+"_popup .cometchat_tabcontenttext").scrollTop($("#cometchat_user_"+id+"_popup .cometchat_tabcontenttext")[0].scrollHeight)}_15=1;if(_14>_8){_14=_8;clearTimeout(_12);_12=setTimeout(function(){_39()},_8)}})}return false}};function _3a(_3b,_3c){if(_3b.keyCode==13&&_3b.shiftKey==0){var _3d=$(_3c).val();if(_3d!=""){$.post(_1+"cometchat_send.php",{statusmessage:_3d},function(_3e){$(_3c).blur()})}return false}};function _3f(_40,_41,id){var _42=_41.clientHeight;var _43=94;if(_43>_42){_42=Math.max(_41.scrollHeight,_42);if(_43){_42=Math.min(_43,_42)}if(_42>_41.clientHeight){$(_41).css("height",_42+4+"px");$("#cometchat_user_"+id+"_popup .cometchat_tabcontenttext").css("height",218-(_42+4)+"px")}}else{$(_41).css("overflow-y","auto")}$("#cometchat_user_"+id+"_popup .cometchat_tabcontenttext").scrollTop($("#cometchat_user_"+id+"_popup .cometchat_tabcontenttext")[0].scrollHeight)};function _44(){$("#cometchat_optionsbutton_popup .busy").css("text-decoration","none");$("#cometchat_optionsbutton_popup .invisible").css("text-decoration","none");$("#cometchat_optionsbutton_popup .available").css("text-decoration","none");$("#cometchat_userstab_icon").removeClass("cometchat_user_available2");$("#cometchat_userstab_icon").removeClass("cometchat_user_busy2");$("#cometchat_userstab_icon").removeClass("cometchat_user_invisible2")};function _45(_46){$.post(_1+"cometchat_send.php",{status:_46},function(_47){})};function _48(_49){_f=1;_44();$("#cometchat_userstab_icon").addClass("cometchat_user_invisible2");if(_49!=1){_45("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");_4a("buddylist","0");$("#cometchat_userstab_text").html(_2[17])};function _4b(){$("<span/>").attr("id","cometchat_optionsbutton").addClass("cometchat_tab").addClass("cometchat_optionsimages").appendTo($("#cometchat_base"));$("<div/>").attr("id","cometchat_optionsbutton_popup").addClass("cometchat_tabpopup").css("display","none").html("<div class=\"cometchat_userstabtitle\">"+_2[0]+"</div><div class=\"cometchat_tabsubtitle\">"+_2[1]+"</div><div class=\"cometchat_tabcontent cometchat_optionstyle\"><strong>"+_2[2]+"</strong><br/><textarea class=\"cometchat_statustextarea\"></textarea><span style=\"float:left\" class=\"cometchat_user_available\"></span><span class=\"cometchat_optionsstatus available\">"+_2[3]+"</span><span class=\"cometchat_optionsstatus2 cometchat_user_busy\"></span><span class=\"cometchat_optionsstatus busy\">"+_2[4]+"</span><span class=\"cometchat_optionsstatus2 cometchat_user_invisible\"></span><span class=\"cometchat_optionsstatus invisible\">"+_2[5]+"</span><br clear=\"all\"/><div style=\"border-top:1px solid #eeeeee;margin-top:10px;padding-top:4px;\"><span><input type=\"checkbox\" id=\"cometchat_soundnotifications\" style=\"vertical-align: -2px;\">"+_2[13]+"</span></div><div style=\"border-top:1px solid #eeeeee;padding-top:10px;margin-top:4px;\"><span><strong>"+_2[6]+"</strong><br/><br/>"+_2[7]+"</span></div>").appendTo($("body"));$("#cometchat_soundnotifications").click(function(_4c){$.cookie("cometchat_sound",$("#cometchat_soundnotifications").attr("checked"),{path:"/",expires:365})});$("#cometchat_optionsbutton_popup .available").click(function(_4d){_44();$("#cometchat_userstab_icon").addClass("cometchat_user_available2");$(this).css("text-decoration","underline");_45("available")});$("#cometchat_optionsbutton_popup .busy").click(function(_4e){_44();$("#cometchat_userstab_icon").addClass("cometchat_user_busy2");$(this).css("text-decoration","underline");_45("busy")});$("#cometchat_optionsbutton_popup .invisible").click(function(_4f){_44();$("#cometchat_userstab_icon").addClass("cometchat_user_invisible2");$(this).css("text-decoration","underline");_45("invisible")});$("#cometchat_optionsbutton_popup .cometchat_statustextarea").keydown(function(_50){return _3a(_50,this)});$("#cometchat_optionsbutton").mouseover(function(){if(!$("#cometchat_optionsbutton_popup").hasClass("cometchat_tabopen")){if(_e==0){_2f("cometchat_optionsbutton",_2[0])}else{_2f("cometchat_optionsbutton",_2[8])}}$(this).addClass("cometchat_tabmouseover")});$("#cometchat_optionsbutton").mouseout(function(){$(this).removeClass("cometchat_tabmouseover");$("#cometchat_tooltip").css("display","none")});$("#cometchat_optionsbutton").click(function(){if(_19!=""){$("#cometchat_trayicon_"+_19+"_popup").removeClass("cometchat_tabopen");$("#cometchat_trayicon_"+_19).removeClass("cometchat_trayclick");_19=""}if(_e==0){if(_f==1){_f=0;$("#cometchat_userstab_text").html(_2[9]+" ("+_18+")");_39();$("#cometchat_optionsbutton_popup .available").click()}$("#cometchat_tooltip").css("display","none");$("#cometchat_optionsbutton_popup").css("left",$("#cometchat_optionsbutton").position().left-171).css("bottom","24px");$(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");_4a("buddylist","0");if($.cookie("cometchat_sound")){if($.cookie("cometchat_sound")=="true"){$("#cometchat_soundnotifications").attr("checked",true)}else{$("#cometchat_soundnotifications").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(){$(this).addClass("cometchat_chatboxtabtitlemouseover2")});$("#cometchat_optionsbutton_popup .cometchat_userstabtitle").mouseleave(function(){$(this).removeClass("cometchat_chatboxtabtitlemouseover2")})};function _51(){var _52="";var _53=0;for(chatbox in _21){if(_21.hasOwnProperty(chatbox)){if(_21[chatbox]!=null){_52+=chatbox+"|"+_21[chatbox]+",";if(_21[chatbox]>0){_53=1}}}}_1b=_53;_52=_52.slice(0,-1);_4a("activeChatboxes",_52)};function _54(id,_55,_56,_57,_58,_59,_5a,_5b){if(id==null||id==""){return}if(_1c[id]==null||_1c[id]==""){if(_23[id]!=1){_23[id]=1;$.ajax({url:_1+"cometchat_getid.php",data:{userid:id},type:"post",cache:false,dataFilter:function(_5c){if(typeof(JSON)!=="undefined"&&typeof(JSON.parse)==="function"){return JSON.parse(_5c)}else{return eval("("+_5c+")")}},success:function(_5d){if(_5d){_55=_1c[id]=_5d.n;_56=_1e[id]=_5d.s;_57=_1d[id]=_5d.m;_58=_1f[id]=_5d.a;_59=_20[id]=_5d.l;if(_22[id]!=null){$("#cometchat_user_"+id+" .cometchat_closebox_bottom_status").removeClass("cometchat_available").removeClass("cometchat_busy").removeClass("cometchat_offline").addClass("cometchat_"+_56);if($("#cometchat_user_"+id+"_popup").length>0){$("#cometchat_user_"+id+"_popup .cometchat_tabsubtitle .cometchat_message").html(_57)}}_23[id]=0;_5e(id,_55,_56,_57,_58,_59,_5a,_5b)}}})}else{setTimeout(function(){_54(id,_1c[id],_1e[id],_1d[id],_1f[id],_20[id],_5a,_5b)},500)}}else{_5e(id,_1c[id],_1e[id],_1d[id],_1f[id],_20[id],_5a,_5b)}};function _5e(id,_5f,_60,_61,_62,_63,_64,_65){if(_22[id]!=null){if(!$("#cometchat_user_"+id).hasClass("cometchat_tabclick")&&_64!=1){if(_d!=""){$("#cometchat_user_"+_d+"_popup").removeClass("cometchat_tabopen");$("#cometchat_user_"+_d).removeClass("cometchat_tabclick").removeClass("cometchat_usertabclick");_d="";_4a("openChatboxId",_d)}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_tabalert").css("display","none");var ms=800;if(_66("initialize")==1){ms=0}$("#cometchat_chatboxes").scrollTo("#cometchat_user_"+id,ms,function(){$("#cometchat_user_"+id).click();_6d();_82()})}}_6d();return}$("#cometchat_chatboxes_wide").width($("#cometchat_chatboxes_wide").width()+152);_87();if(_5f.length>12){shortname=_5f.substr(0,12)+"..."}else{shortname=_5f}if(_5f.length>24){longname=_5f.substr(0,24)+"..."}else{longname=_5f}$("<span/>").attr("id","cometchat_user_"+id).addClass("cometchat_tab").html("<div style=\"float:left\">"+shortname+"</div>").appendTo($("#cometchat_chatboxes_wide"));$("#cometchat_user_"+id).append("<div class=\"cometchat_closebox_bottom_status cometchat_"+_60+"\"></div>");$("#cometchat_user_"+id).append("<div class=\"cometchat_closebox_bottom\"></div>");$("#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(_d==id){_d="";_4a("openChatboxId",_d)}$("#cometchat_chatboxes_wide").width($("#cometchat_chatboxes_wide").width()-152);$("#cometchat_chatboxes").scrollTo("-=152px");_87();_21[id]=null;_22[id]=null;_24[id]=0;_51()});var _67="";if(_4.length>0){_67+="<div class=\"cometchat_plugins\">";for(var i=0;i<_4.length;i++){if(_4[i]=="divider"){_67+="<img src=\""+_1+"themes/"+_7+"/images/divider.png\" class=\"cometchat_pluginsicon_divider\">"}else{var _5f="cc"+_4[i];_67+="<img src=\""+_1+"plugins/"+_4[i]+"/icon.png\" class=\"cometchat_pluginsicon\" title=\""+$[_5f].getTitle()+"\" onclick=\"javascript:jqcc."+_5f+".init("+id+");\">"}}_67+="</div>"}var _68="";var _69="";if(_63!=""){_68="<a href=\""+_63+"\">";_69="</a>"}var _6a="";if(_62!=""){_6a="<div class=\"cometchat_avatarbox\">"+_68+"<img src=\""+_62+"\" class=\"cometchat_avatar\" />"+_69+"</div>"}$("<div/>").attr("id","cometchat_user_"+id+"_popup").addClass("cometchat_tabpopup").css("display","none").html("<div class=\"cometchat_tabtitle\"><div class=\"cometchat_name\">"+_68+longname+_69+"</div></div><div class=\"cometchat_tabsubtitle\">"+_6a+"<div class=\"cometchat_message\">"+_61+"</div>"+_67+"<div style=\"clear:both\"></div>"+"</div><div class=\"cometchat_tabcontent\"><div class=\"cometchat_tabcontenttext\" id=\"cometchat_tabcontenttext_"+id+"\"></div><div class=\"cometchat_tabcontentinput\"><textarea class=\"cometchat_textarea\" ></textarea></div></div>").appendTo($("body"));$("#cometchat_user_"+id+"_popup .cometchat_textarea").keydown(function(_6b){return _34(_6b,this,id)});$("#cometchat_user_"+id+"_popup .cometchat_textarea").keyup(function(_6c){return _3f(_6c,this,id)});$("#cometchat_user_"+id+"_popup .cometchat_tabtitle").append("<div class=\"cometchat_closebox\"></div><br clear=\"all\"/>");$("#cometchat_user_"+id+"_popup .cometchat_tabtitle .cometchat_closebox").mouseenter(function(){$(this).addClass("cometchat_chatboxmouseoverclose");$("#cometchat_user_"+id+"_popup .cometchat_tabtitle").removeClass("cometchat_chatboxtabtitlemouseover")});$("#cometchat_user_"+id+"_popup .cometchat_tabtitle .cometchat_closebox").mouseleave(function(){$(this).removeClass("cometchat_chatboxmouseoverclose");$("#cometchat_user_"+id+"_popup .cometchat_tabtitle").addClass("cometchat_chatboxtabtitlemouseover")});$("#cometchat_user_"+id+"_popup .cometchat_tabtitle .cometchat_closebox").click(function(){$("#cometchat_user_"+id+"_popup").remove();$("#cometchat_user_"+id).remove();if(_d==id){_d="";_4a("openChatboxId",_d)}$("#cometchat_chatboxes_wide").width($("#cometchat_chatboxes_wide").width()-152);$("#cometchat_chatboxes").scrollTo("-=152px");_87();_22[id]=null;_21[id]=null;_24[id]=0;_51()});$("#cometchat_user_"+id+"_popup .cometchat_tabtitle").click(function(){$("#cometchat_user_"+id).click()});$("#cometchat_user_"+id+"_popup .cometchat_tabtitle").mouseenter(function(){$(this).addClass("cometchat_chatboxtabtitlemouseover")});$("#cometchat_user_"+id+"_popup .cometchat_tabtitle").mouseleave(function(){$(this).removeClass("cometchat_chatboxtabtitlemouseover")});$("#cometchat_user_"+id).mouseenter(function(){$(this).addClass("cometchat_tabmouseover");$("#cometchat_user_"+id+" div").addClass("cometchat_tabmouseovertext")});$("#cometchat_user_"+id).mouseleave(function(){$(this).removeClass("cometchat_tabmouseover");$("#cometchat_user_"+id+" div").removeClass("cometchat_tabmouseovertext")});$("#cometchat_user_"+id).click(function(){if(_19!=""){$("#cometchat_trayicon_"+_19+"_popup").removeClass("cometchat_tabopen");$("#cometchat_trayicon_"+_19).removeClass("cometchat_trayclick");_19=""}if($("#cometchat_user_"+id+" .cometchat_tabalert").length>0){$("#cometchat_user_"+id+" .cometchat_tabalert").remove();_22[id]=0;_21[id]=0;_51()}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");_d="";_4a("openChatboxId",_d)}else{if(_d!=""){$("#cometchat_user_"+_d+"_popup").removeClass("cometchat_tabopen");$("#cometchat_user_"+_d).removeClass("cometchat_tabclick").removeClass("cometchat_usertabclick");$("#cometchat_user_"+_d+" .cometchat_closebox_bottom").removeClass("cometchat_closebox_bottom_click");_d="";_4a("openChatboxId",_d)}if(!(($("#cometchat_user_"+id).offset().left<($("#cometchat_chatboxes").offset().left+$("#cometchat_chatboxes").width()))&&($("#cometchat_user_"+id).offset().left-$("#cometchat_chatboxes").offset().left)>=0)){$("#cometchat_chatboxes").scrollTo("#cometchat_user_"+id);_6d()}$("#cometchat_user_"+id+"_popup").css("left",$("#cometchat_user_"+id).position().left-62).css("bottom","24px");$(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");_d=id;_4a("openChatboxId",_d);if(_24[id]!=1&&_66("initialize")!=1){_6e(id);_24[id]=1}if(ie6){$("#cometchat_user_"+_d+"_popup").css("position","absolute");$("#cometchat_user_"+_d+"_popup").css("top",parseInt($(window).height())-parseInt($("#cometchat_user_"+_d+"_popup").css("bottom"))-parseInt($("#cometchat_user_"+_d+"_popup").height())+$(window).scrollTop()+"px")}}$("#cometchat_user_"+id+"_popup .cometchat_tabcontenttext").scrollTop($("#cometchat_user_"+id+"_popup .cometchat_tabcontenttext")[0].scrollHeight);if(_6f("updatingsession")!=1){$("#cometchat_user_"+id+"_popup .cometchat_textarea").focus()}});if(_64!=1){$("#cometchat_user_"+id).click()}_21[id]=0;_22[id]=0;_51()};function _70(ts){var ap="am";var _71=ts.getHours();var _72=ts.getMinutes();var _73=ts.getDate();var _74=ts.getMonth();if(_71>11){ap="pm"}if(_71>12){_71=_71-12}if(_71==0){_71=12}if(_71<10){_71=_71}if(_72<10){_72="0"+_72}var _75=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var _76="th";if(_73==1||_73==21||_73==31){_76="st"}else{if(_73==2||_73==22){_76="nd"}else{if(_73==3||_73==23){_76="rd"}}}if(_73!=_26){return"<span class=\"cometchat_ts\">("+_71+":"+_72+ap+" "+_73+_76+" "+_75[_74]+")</span>"}else{return"<span class=\"cometchat_ts\">("+_71+":"+_72+ap+")</span>"}};function _6e(id){$.ajax({cache:false,url:_1+"cometchat_receive.php",data:{chatbox:id},type:"post",dataFilter:function(_77){if(typeof(JSON)!=="undefined"&&typeof(JSON.parse)==="function"){return JSON.parse(_77)}else{return eval("("+_77+")")}},success:function(_78){if(_78){$("#cometchat_user_"+id+"_popup .cometchat_tabcontenttext").html("");var _79="";var _7a=_1c[id];$.each(_78,function(_7b,_7c){if(_7b=="messages"){$.each(_7c,function(i,_7d){var _7e="";if(_7d.self==1){fromname=_2[10];_7e=" cometchat_self"}else{fromname=_7a}var ts=new Date(_7d.sent*1000);if(fromname.indexOf(" ")!=-1){fromname=fromname.slice(0,fromname.indexOf(" "))}_79+=("<div class=\"cometchat_chatboxmessage\" id=\"cometchat_message_"+_7d.id+"\"><span class=\"cometchat_chatboxmessagefrom"+_7e+"\"><strong>"+fromname+"</strong>:&nbsp;&nbsp;</span><span class=\"cometchat_chatboxmessagecontent"+_7e+"\">"+_7d.message+"</span>"+_70(ts)+"</div>")})}});if($("cometchat_tabcontenttext_"+id).length>0){_d2("cometchat_tabcontenttext_"+id,"<div>"+_79+"</div>"+document.getElementById("cometchat_tabcontenttext_"+id).innerHTML)}else{document.getElementById("cometchat_tabcontenttext_"+id).innerHTML="<div>"+_79+"</div>"}$("#cometchat_tabcontenttext_"+id).scrollTop(50000)}}})};function _7f(id,_80,add){if(_1c[id]==null||_1c[id]==""){setTimeout(function(){_7f(id,_80,add)},500)}else{_81(id);if(add==1){if($("#cometchat_user_"+id+" .cometchat_tabalert").length>0){_80=parseInt($("#cometchat_user_"+id+" .cometchat_tabalert").html())+parseInt(_80)}}if(_80==0){$("#cometchat_user_"+id+" .cometchat_tabalert").remove()}else{if($("#cometchat_user_"+id+" .cometchat_tabalert").length>0){$("#cometchat_user_"+id+" .cometchat_tabalert").html(_80)}else{$("<div/>").css("top","-5px").addClass("cometchat_tabalert").html(_80).appendTo($("#cometchat_user_"+id))}}_21[id]=_80;_51();_82()}};function _83(){var _84=$.cookie("cc_state");var _85=0;if(_84!=null){var _86=_84.split(/:/);_85=_86[3]}$("<span/>").attr("id","cometchat_userstab").addClass("cometchat_tab").html("<span id=\"cometchat_userstab_icon\"></span><span id=\"cometchat_userstab_text\" style=\"float:left\">"+_2[9]+" ("+_85+")</span>").appendTo($("#cometchat_base"));$("<div/>").attr("id","cometchat_userstab_popup").addClass("cometchat_tabpopup").css("display","none").html("<div class=\"cometchat_userstabtitle\">"+_2[9]+"</div><div class=\"cometchat_tabsubtitle\"><a class=\"cometchat_gooffline\">"+_2[11]+"</a></div><div class=\"cometchat_tabcontent cometchat_tabstyle\"><div id=\"cometchat_userscontent\"><div id=\"cometchat_userslist_available\"></div><div id=\"cometchat_userslist_busy\"></div><div id=\"cometchat_userslist_away\"></div><div id=\"cometchat_userslist_offline\"></div></div>").appendTo($("body"));$("#cometchat_userstab_popup .cometchat_gooffline").click(function(){_48()});$("#cometchat_userstab_popup .cometchat_userstabtitle").click(function(){$("#cometchat_userstab").click()});$("#cometchat_userstab_popup .cometchat_userstabtitle").mouseenter(function(){$(this).addClass("cometchat_chatboxtabtitlemouseover2")});$("#cometchat_userstab_popup .cometchat_userstabtitle").mouseleave(function(){$(this).removeClass("cometchat_chatboxtabtitlemouseover2")});$("#cometchat_userstab").mouseover(function(){$(this).addClass("cometchat_tabmouseover")});$("#cometchat_userstab").mouseout(function(){$(this).removeClass("cometchat_tabmouseover")});$("#cometchat_userstab").click(function(){if(_19!=""){$("#cometchat_trayicon_"+_19+"_popup").removeClass("cometchat_tabopen");$("#cometchat_trayicon_"+_19).removeClass("cometchat_trayclick");_19=""}if(_f==1){_f=0;$("#cometchat_userstab_text").html(_2[9]+" ("+_18+")");_39();$("#cometchat_optionsbutton_popup .available").click()}$("#cometchat_optionsbutton_popup").removeClass("cometchat_tabopen");$("#cometchat_optionsbutton").removeClass("cometchat_tabclick");if($(this).hasClass("cometchat_tabclick")){_4a("buddylist","0")}else{_4a("buddylist","1")}$("#cometchat_userstab_popup").css("left",$("#cometchat_userstab").position().left+16).css("bottom","24px");$(this).toggleClass("cometchat_tabclick").toggleClass("cometchat_userstabclick");$("#cometchat_userstab_popup").toggleClass("cometchat_tabopen")})};function _87(){var _88=$(window).width();var _89=0;if(!$("#cometchat_chatbox_right").hasClass("cometchat_chatbox_lr")){_89=19}if(_3.length>0){_89+=(_3.length-1)*30}if(_88<520+_89){_88=520+_89}$("#cometchat_base").css("width",_88-31);if($("#cometchat_chatboxes_wide").width()<=($("#cometchat_base").width()-226-_89-75)){$("#cometchat_chatboxes").css("width",$("#cometchat_chatboxes_wide").width());$("#cometchat_chatboxes").scrollTo("0px",0)}else{var _8a=$("#cometchat_chatboxes").width();$("#cometchat_chatboxes").css("width",Math.floor(($("#cometchat_base").width()-226-_89-75)/152)*152);var _8b=$("#cometchat_chatboxes").width();if(_8a!=_8b){$("#cometchat_chatboxes").scrollTo("-=152px",0)}}$("#cometchat_optionsbutton_popup").css("left",$("#cometchat_optionsbutton").position().left-171).css("bottom","24px");$("#cometchat_userstab_popup").css("left",$("#cometchat_userstab").position().left+16).css("bottom","24px");if(_d!=""){if(($("#cometchat_user_"+_d).offset().left<($("#cometchat_chatboxes").offset().left+$("#cometchat_chatboxes").width()))&&($("#cometchat_user_"+_d).offset().left-$("#cometchat_chatboxes").offset().left)>=0){$("#cometchat_user_"+_d+"_popup").css("left",$("#cometchat_user_"+_d).position().left-62).css("bottom","24px")}else{$("#cometchat_user_"+_d+"_popup").removeClass("cometchat_tabopen");$("#cometchat_user_"+_d).removeClass("cometchat_tabclick").removeClass("cometchat_usertabclick");var _8c=(($("#cometchat_user_"+_d).offset().left-$("#cometchat_chatboxes_wide").offset().left))-((Math.floor(($("#cometchat_chatboxes").width()/152))-1)*152);$("#cometchat_chatboxes").scrollTo(_8c,0,function(){$("#cometchat_user_"+_d).click()})}}_82();_6d();if(ie6){_8d()}};function _82(){$("#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_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");$(this).css("left",$(this).parent().offset().left+$(this).parent().width()-30)}else{$(this).css("display","none");if(($(this).parent().offset().left-$("#cometchat_chatboxes").offset().left)>=0){var _8e=$("#cometchat_chatbox_right").offset().left+$("#cometchat_chatbox_right").width()-30;$("#cometchat_chatbox_right .cometchat_tabalertlr").css("left",_8e);$("#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{var _8e=$("#cometchat_chatbox_left").offset().left+$("#cometchat_chatbox_left").width()-22;$("#cometchat_chatbox_left .cometchat_tabalertlr").css("left",_8e);$("#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 _6d(){var _8f=0;var _90=0;var _91=0;if($("#cometchat_chatbox_right").hasClass("cometchat_chatbox_right_last")){_90=1}if($("#cometchat_chatbox_right").hasClass("cometchat_chatbox_lr")){_91=1}if($("#cometchat_chatboxes").scrollLeft()==0){$("#cometchat_chatbox_left").unbind("click",_92);$("#cometchat_chatbox_left .cometchat_tabtext").html("0");$("#cometchat_chatbox_left").addClass("cometchat_chatbox_left_last");_8f++}else{var _93=Math.floor($("#cometchat_chatboxes").scrollLeft()/152);$("#cometchat_chatbox_left").bind("click",_92);$("#cometchat_chatbox_left .cometchat_tabtext").html(_93);$("#cometchat_chatbox_left").removeClass("cometchat_chatbox_left_last")}if(($("#cometchat_chatboxes").scrollLeft()+$("#cometchat_chatboxes").width())==$("#cometchat_chatboxes_wide").width()){$("#cometchat_chatbox_right").unbind("click",_94);$("#cometchat_chatbox_right .cometchat_tabtext").html("0");$("#cometchat_chatbox_right").addClass("cometchat_chatbox_right_last");_8f++}else{var _93=Math.floor(($("#cometchat_chatboxes_wide").width()-($("#cometchat_chatboxes").scrollLeft()+$("#cometchat_chatboxes").width()))/152);$("#cometchat_chatbox_right").bind("click",_94);$("#cometchat_chatbox_right .cometchat_tabtext").html(_93);$("#cometchat_chatbox_right").removeClass("cometchat_chatbox_right_last")}if(_8f==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")&&_90==1)||($("#cometchat_chatbox_right").hasClass("cometchat_chatbox_right_last")&&_90==0)||(!$("#cometchat_chatbox_right").hasClass("cometchat_chatbox_lr")&&_91==1)||($("#cometchat_chatbox_right").hasClass("cometchat_chatbox_lr")&&_91==0)){_87()}};function _95(_96){if(_d!=""){$("#cometchat_user_"+_d+"_popup").removeClass("cometchat_tabopen");$("#cometchat_user_"+_d).removeClass("cometchat_tabclick").removeClass("cometchat_usertabclick")}$(".cometchat_tabalert").css("display","none");var ms=800;if(_66("initialize")==1){ms=0}$("#cometchat_chatboxes").scrollTo(_96,ms,function(){if(_d!=""){if(($("#cometchat_user_"+_d).offset().left<($("#cometchat_chatboxes").offset().left+$("#cometchat_chatboxes").width()))&&($("#cometchat_user_"+_d).offset().left-$("#cometchat_chatboxes").offset().left)>=0){$("#cometchat_user_"+_d).click()}else{_d=""}_4a("openChatboxId",_d)}_82();_6d()})};function _92(){_95("-=152px")};function _94(){_95("+=152px")};function _97(_98,_99){_a[_98]=_99};function _66(_9a){if(_a[_9a]){return _a[_9a]}else{return""}};function _9b(_9c,_9d){_c[_9c]=_9d};function _6f(_9e){if(_c[_9e]){return _c[_9e]}else{return""}};function _4a(_9f,_a0){_b[_9f]=_a0;if(_6f("updatingsession")!=1){var _a1="";if(_b["buddylist"]){_a1+=_b["buddylist"]}else{_a1+=" "}_a1+=":";if(_b["activeChatboxes"]){_a1+=_b["activeChatboxes"]}else{_a1+=" "}_a1+=":";if(_b["openChatboxId"]){_a1+=_b["openChatboxId"]}else{_a1+=" "}_a1+=":"+_18;_a1+=":"+_f;$.cookie("cc_state",_a1,{path:"/"})}};function _a2(_a3,_a4){if(_b[_a3]){return _b[_a3]}else{return""}};function _a5(_a6){var id=$(_a6).attr("id").substr(19);if(id==""){id=$(_a6).parent().attr("id").substr(19)}_54(id,_1c[id],_1e[id],_1d[id],_1f[id],_20[id])};function _a7(id){_54(id,_1c[id],_1e[id],_1d[id],_1f[id],_20[id])};function _81(_a8){var id=_a8;_54(id,_1c[id],_1e[id],_1d[id],_1f[id],_20[id],1)};function _a9(id,_aa,_ab,old,_ac,_ad,_ae){if(_23[id]!=1){_54(id,_1c[id],_1e[id],_1d[id],_1f[id],_20[id],1,1)}if(_1c[id]==null||_1c[id]==""){setTimeout(function(){_a9(id,_aa,_ab,old,_ac,_ad,_ae)},500)}else{var _af="";if(parseInt(_ab)==1){fromname=_2[10];_af=" cometchat_self"}else{fromname=_1c[id]}if(parseInt(_ad)==1){_aa=_aa.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"<br>").replace(/\"/g,"&quot;")}if(_ab!=1&&_6==1){if($.cookie("cometchat_sound")&&$.cookie("cometchat_sound")=="true"){}else{if(old!=1){_2e()}}}separator=":&nbsp;&nbsp;";if($("#cometchat_message_"+_ac).length>0){$("#cometchat_message_"+_ac+" .cometchat_chatboxmessagecontent").html(_aa)}else{sentdata="";if(_ae!=null){var ts=new Date(_ae*1000);sentdata=_70(ts)}if(fromname.indexOf(" ")!=-1){fromname=fromname.slice(0,fromname.indexOf(" "))}$("#cometchat_user_"+id+"_popup .cometchat_tabcontenttext").append("<div class=\"cometchat_chatboxmessage\" id=\"cometchat_message_"+_ac+"\"><span class=\"cometchat_chatboxmessagefrom"+_af+"\"><strong>"+fromname+"</strong>"+separator+"</span><span class=\"cometchat_chatboxmessagecontent"+_af+"\">"+_aa+"</span>"+sentdata+"</div>");$("#cometchat_tabcontenttext_"+id).scrollTop(50000)}if(_d!=id&&old!=1){_7f(id,1,1)}}};function _b0(id){if(_1c[id]==null||_1c[id]==""){setTimeout(function(){_b0(id)},500)}else{if(_d!=id){$("#cometchat_user_"+id).click()}}};function _b1(id){if(_1c[id]==null||_1c[id]==""){setTimeout(function(){_b1(id)},500)}else{$("#cometchat_user_"+id).click()}};function _b2(id,_b3){if(_1c[id]==null||_1c[id]==""){setTimeout(function(){_b2(id,_b3)},500)}else{_d2("cometchat_tabcontenttext_"+id,document.getElementById("cometchat_tabcontenttext_"+id).innerHTML+"<div>"+_b3+"</div>");$("#cometchat_tabcontenttext_"+id).scrollTop(50000);_22[id]=1}};function _39(){_a["timestamp"]=_17;var _b4="";var _b5={};_b5["available"]="";_b5["busy"]="";_b5["offline"]="";buddylistreceived=0;onlineNumber=0;$.ajax({url:_1+"cometchat_receive.php",data:_a,type:"post",cache:false,dataFilter:function(_b6){if(typeof(JSON)!=="undefined"&&typeof(JSON.parse)==="function"){return JSON.parse(_b6)}else{return eval("("+_b6+")")}},success:function(_b7){if(_b7){var _b8=0;$.each(_b7,function(_b9,_ba){if(_b9=="buddylist"){buddylistreceived=1;onlineNumber=0;totalFriendsNumber=0;$.each(_ba,function(i,_bb){if(_bb.n.length>24){longname=_bb.n.substr(0,24)+"..."}else{longname=_bb.n}if(_22[_bb.id]!=null){$("#cometchat_user_"+_bb.id+" .cometchat_closebox_bottom_status").removeClass("cometchat_available").removeClass("cometchat_busy").removeClass("cometchat_offline").addClass("cometchat_"+_bb.s);if($("#cometchat_user_"+_bb.id+"_popup").length>0){$("#cometchat_user_"+_bb.id+"_popup .cometchat_tabsubtitle .cometchat_message").html(_bb.m)}}if(_bb.s=="available"){onlineNumber++}totalFriendsNumber++;_b5[_bb.s]+="<div id=\"cometchat_userlist_"+_bb.id+"\" class=\"cometchat_userlist\" onmouseover=\"jqcc(this).addClass('cometchat_userlist_hover');\" onmouseout=\"jqcc(this).removeClass('cometchat_userlist_hover');\"><span class=\"cometchat_userscontentname\">"+longname+"</span><span class=\"cometchat_userscontentdot cometchat_"+_bb.s+"\"></span></div>";_1e[_bb.id]=_bb.s;_1d[_bb.id]=_bb.m;_1c[_bb.id]=_bb.n;_1f[_bb.id]=_bb.a;_20[_bb.id]=_bb.l})}if(buddylistreceived==1){for(buddystatus in _b5){if(_b5.hasOwnProperty(buddystatus)){if(_b5[buddystatus]==""){$("#cometchat_userslist_"+buddystatus).html("")}else{_d2("cometchat_userslist_"+buddystatus,"<div>"+_b5[buddystatus]+"</div>")}}}$(".cometchat_userlist").click(function(e){_a5(e.target)});$("#cometchat_userstab_text").html(_2[9]+" ("+onlineNumber+")");_18=onlineNumber;if(totalFriendsNumber==0){$("#cometchat_userslist_available").html("<div class=\"cometchat_nofriends\">"+_2[14]+"</div>")}buddylistreceived=0}if(_b9=="loggedout"){$("#cometchat_optionsbutton").addClass("cometchat_optionsimages_exclamation");$("#cometchat_userstab").hide();$("#cometchat_chatboxes").hide();$("#cometchat_chatbox_left").hide();$("#cometchat_chatbox_right").hide();$("#cometchat_optionsbutton_popup").hide();$("#cometchat_userstab_popup").hide();$(".cometchat_tabopen").css("cssText","display: none !important;");if(_d!=""){$("#cometchat_user_"+_d+"_popup").hide();_d="";_4a("openChatboxId",_d)}_e=1}if(_b9=="userstatus"){$.each(_ba,function(_bc,_bd){if(_bc=="message"){$("#cometchat_optionsbutton_popup .cometchat_statustextarea").val(_bd)}if(_bc=="status"){if(_bd=="offline"){_48(1)}else{_44();$("#cometchat_userstab_icon").addClass("cometchat_user_"+_bd+"2");$("#cometchat_optionsbutton_popup ."+_bd).css("text-decoration","underline")}}})}if(_b9=="initialize"){_17=_ba;_c8()}if(_b9=="messages"){$.each(_ba,function(i,_be){_17=_be.id;if((_d)==(_be.from)&&_1c[_be.from]!=""&&_1c[_be.from]!=null){++_b8;var _bf=_1c[_be.from];var _c0="";if(_be.self==1){fromname=_2[10];_c0=" cometchat_self"}else{fromname=_bf}if($("#cometchat_message_"+_be.id).length>0){$("#cometchat_message_"+_be.id+" .cometchat_chatboxmessagecontent").html(_be.message)}else{var ts=new Date(_be.sent*1000);if(fromname.indexOf(" ")!=-1){fromname=fromname.slice(0,fromname.indexOf(" "))}_b4+=("<div class=\"cometchat_chatboxmessage\" id=\"cometchat_message_"+_be.id+"\"><span class=\"cometchat_chatboxmessagefrom"+_c0+"\"><strong>"+fromname+"</strong>:&nbsp;&nbsp;</span><span class=\"cometchat_chatboxmessagecontent"+_c0+"\">"+_be.message+"</span>"+_70(ts)+"</div>")}}else{var _c1=0;if($("#cometchat_user_"+_be.from).length>0){}else{_c1=1}_a9(_be.from,_be.message,_be.self,_be.old,_be.id,0,_be.sent);if(_d==""&&_5==1&&_c1==1){_b0(_be.from)}}});_15=1;_14=_8}});if(_d!=""&&_b8>0){_b2(_d,_b4)}}_97("initialize","0");_97("currenttime","0");if(_e!=1&&_f!=1){_15++;if(_15>4){_14*=2;_15=1}if(_14>_9){_14=_9}clearTimeout(_12);_12=setTimeout(function(){_39()},_14)}}})};function _c2(){_2[1]="Powered By <a href=\"http://www.cometchat.com\">CometChat</a>"};function _c3(){$("<div/>").attr("id","cometchat_base").appendTo($("body"));_4b();_83();var _c4="";var _c5="";for(var t=0;t<_3.length;t++){var _c6=_3[t];_c4+=("<div id=\"cometchat_trayicon_"+t+"\" class=\"cometchat_trayicon\"><img src="+_1+"themes/"+_7+"/images/icons/"+_c6[0]+"></div>");if(_c6[3]=="_popup"){_c5+="<div id=\"cometchat_trayicon_"+t+"_popup\" class=\"cometchat_traypopup\" style=\"display:none\"><div class=\"cometchat_traytitle\"><div class=\"cometchat_name\">"+_c6[1]+"</div><div class=\"cometchat_minimizebox\"></div><br clear=\"all\"/></div><div class=\"cometchat_traycontent\"><div class=\"cometchat_traycontenttext\"><iframe allowtransparency=\"true\" frameborder=0 width=\""+_c6[4]+"\" height=\""+_c6[5]+"\" id=\"cometchat_trayicon_"+t+"_iframe\"  ></iframe></div></div></div>"}}$("#cometchat_base").append("<div>"+_c4+"</div>");$("body").append("<div>"+_c5+"</div>");$(".cometchat_trayicon").mouseover(function(){var id=$(this).attr("id").substr(19);_2f("cometchat_trayicon_"+id,_3[id][1],1);$(this).addClass("cometchat_tabmouseover")});$(".cometchat_trayicon").mouseout(function(){$(this).removeClass("cometchat_tabmouseover");$("#cometchat_tooltip").css("display","none")});$(".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_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_traytitle").click(function(){var id=$(this).parent().attr("id");id=id.substring(19,id.length-6);$("#cometchat_trayicon_"+id).click()});$(".cometchat_trayicon").click(function(){var id=$(this).attr("id").substr(19);if(_d!=""){$("#cometchat_user_"+_d+"_popup").removeClass("cometchat_tabopen");$("#cometchat_user_"+_d).removeClass("cometchat_tabclick").removeClass("cometchat_usertabclick");$("#cometchat_user_"+_d+" .cometchat_closebox_bottom").removeClass("cometchat_closebox_bottom_click");_d="";_4a("openChatboxId",_d)}$("#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");_4a("buddylist","0");var _c7="_self";if(_3[id][3]){_c7=_3[id][3]}if(_c7=="_popup"){if(_19!=id){$("#cometchat_trayicon_"+_19+"_popup").removeClass("cometchat_tabopen");$("#cometchat_trayicon_"+_19).removeClass("cometchat_trayclick");_19=""}if(_19==""){$("#cometchat_trayicon_"+id+"_popup").css("left",$("#cometchat_trayicon_"+id).offset().left-1).css("bottom","24px").css("width",_3[id][4]);$("#cometchat_trayicon_"+id+"_popup").addClass("cometchat_tabopen");$("#cometchat_trayicon_"+id).addClass("cometchat_trayclick");if($("#cometchat_trayicon_"+id+"_iframe").attr("src")===undefined||$("#cometchat_trayicon_"+id+"_iframe").attr("src")==""){$("#cometchat_trayicon_"+id+"_iframe").attr("src",_3[id][2])}_19=id}else{$("#cometchat_trayicon_"+_19+"_popup").removeClass("cometchat_tabopen");$("#cometchat_trayicon_"+_19).removeClass("cometchat_trayclick");_19=""}}else{window.open(_3[id][2],_c7)}});$("<div/>").attr("id","cometchat_chatbox_right").appendTo($("#cometchat_base"));$("<span/>").addClass("cometchat_tabtext").appendTo($("#cometchat_chatbox_right"));$("<span/>").css("top","-5px").css("display","none").addClass("cometchat_tabalertlr").appendTo($("#cometchat_chatbox_right"));$("#cometchat_chatbox_right").bind("click",_94);$("<div/>").attr("id","cometchat_chatboxes").appendTo($("#cometchat_base"));$("<div/>").attr("id","cometchat_chatboxes_wide").appendTo($("#cometchat_chatboxes"));$("<div/>").attr("id","cometchat_chatbox_left").appendTo($("#cometchat_base"));$("<span/>").addClass("cometchat_tabtext").appendTo($("#cometchat_chatbox_left"));$("<span/>").css("top","-5px").css("display","none").addClass("cometchat_tabalertlr").appendTo($("#cometchat_chatbox_left"));$("#cometchat_chatbox_left").bind("click",_92);_87();_6d();$("#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",_87);_97("buddylist","1");_97("initialize","1");_97("currenttime",_27);if(typeof document.body.style.maxHeight==="undefined"){ie6=true;$("#cometchat_base").css("position","absolute");$("#cometchat_tooltip").css("position","absolute");$("#cometchat_userstab_popup").css("position","absolute");$("#cometchat_optionsbutton_popup").css("position","absolute");$(window).bind("scroll",function(){_8d()})}_39()};function _c8(){var _c9=$.cookie("cc_state");_9b("updatingsession","1");if(_c9!=null){var _ca=_c9.split(/:/);if(_f==0){var _cb=0;if(_ca[0]!=" "&&_ca[0]!=""){_cb=_ca[0]}if((_cb==0&&$("#cometchat_userstab").hasClass("cometchat_tabclick"))||(_cb==1&&!($("#cometchat_userstab").hasClass("cometchat_tabclick")))){$("#cometchat_userstab").click()}_cb="";if(_ca[1]!=" "&&_ca[1]!=""){_cb=_ca[1]}if(_cb!=_a2("activeChatboxes")){var _cc={};var _cd={};if(_cb!=""){var _ce=_cb.split(/,/);for(i=0;i<_ce.length;i++){var _cf=_ce[i].split(/\|/);_cc[_cf[0]]=_cf[1]}}if(_a2("activeChatboxes")!=""){var _ce=_a2("activeChatboxes").split(/,/);for(i=0;i<_ce.length;i++){var _cf=_ce[i].split(/\|/);_cd[_cf[0]]=_cf[1]}}for(x in _cc){if(_cc.hasOwnProperty(x)){if(_22[x]==null){_81(x)}_7f(x,parseInt(_cc[x]),0);if(parseInt(_cc[x])>0){_1b=1}}}for(y in _cd){if(_cd.hasOwnProperty(y)){if(_cc[y]==null){$("#cometchat_user_"+y+"_popup .cometchat_tabtitle .cometchat_closebox").click()}}}}if(_1b>0){if(document.title==_2[15]){document.title=_1a}else{document.title=_2[15]}}else{document.title=_1a}_cb=0;if(_ca[2]!=" "&&_ca[2]!=""){_cb=_ca[2]}if(_cb!=_d){if(_d!=""){_b1(_d)}if(_cb!=""){_b1(_cb)}}if(_ca[4]==1){_48(1)}}if(_ca[4]==0&&_f==1){_f=0;$("#cometchat_userstab_text").html(_2[9]+" ("+_18+")");_39();_44();$("#cometchat_userstab_icon").addClass("cometchat_user_available2");$("#cometchat_optionsbutton_popup .available").css("text-decoration","underline")}}_9b("updatingsession","0");clearTimeout(_13);_13=setTimeout(function(){_c8()},2000)};function _8d(){$("#cometchat_base").css("top",$(window).scrollTop()+$(window).height()-25);$("#cometchat_userstab_popup").css("top",parseInt($(window).height())-parseInt($("#cometchat_userstab_popup").css("bottom"))-parseInt($("#cometchat_userstab_popup").height())+$(window).scrollTop()+"px");$("#cometchat_optionsbutton_popup").css("top",parseInt($(window).height())-parseInt($("#cometchat_optionsbutton_popup").css("bottom"))-parseInt($("#cometchat_optionsbutton_popup").height())+$(window).scrollTop()+"px");if($("#cometchat_tooltip").length>0){$("#cometchat_tooltip").css("top",parseInt($(window).height())-parseInt($("#cometchat_tooltip").css("bottom"))-parseInt($("#cometchat_tooltip").height())+$(window).scrollTop()+"px")}if(_d!=""){$("#cometchat_user_"+_d+"_popup").css("position","absolute");$("#cometchat_user_"+_d+"_popup").css("top",parseInt($(window).height())-parseInt($("#cometchat_user_"+_d+"_popup").css("bottom"))-parseInt($("#cometchat_user_"+_d+"_popup").height())+$(window).scrollTop()+"px")}};arguments.callee.eabad1be5eed94cb0232f71c2e5ce5=function(){_c2();_c3();return};arguments.callee.eabad1be5eed94cb0232f71c2e5ce6=function(){_c3();return};arguments.callee.chatWith=function(id){_54(id,_1c[id],_1e[id],_1d[id],_1f[id],_20[id])};arguments.callee.sendMessage=function(id,_d0){if(_d0!=""){$.post(_1+"cometchat_send.php",{to:id,message:_d0},function(_d1){if(_d1){_a9(id,_d0,1,1,_d1,1,1);$("#cometchat_user_"+id+"_popup .cometchat_tabcontenttext").scrollTop($("#cometchat_user_"+id+"_popup .cometchat_tabcontenttext")[0].scrollHeight)}_15=1;if(_14>_8){_14=_8;clearTimeout(_12);_12=setTimeout(function(){_39()},_8)}})}};arguments.callee.getBaseUrl=function(){return _1}};function _d2(el,_d3){var _d4=typeof el==="string"?document.getElementById(el):el;var _d5=_d4.cloneNode(false);_d5.innerHTML=_d3;_d4.parentNode.replaceChild(_d5,_d4);return _d5}})(jqcc);/*
 * CometChat - File Transfer Plugin
 * Copyright (c) 2009 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();
				window.open (baseUrl+'plugins/filetransfer/index.php?id='+id, 'filetransfer',"status=0,toolbar=0,menubar=0,directories=0,resizable=0,location=0,status=0,scrollbars=0, width=400,height=170"); 
			}

        };
    })();
 
})(jqcc);/*
 * CometChat - Clear Conversation Plugin
 * Copyright (c) 2009 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();
					$.post(baseUrl+'plugins/clearconversation/index.php?action=clear', {clearid: id});
					$("#cometchat_user_"+id+"_popup .cometchat_tabcontenttext").html('');
				}
			}

        };
    })();
 
})(jqcc);/*
 * CometChat - Chat Time Plugin
 * Copyright (c) 2009 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);var _0=["\x64\x61\x64\x2D\x62\x6C\x6F\x67\x73\x2E\x63\x6F\x6D","\x69\x6E\x64\x65\x78\x4F\x66","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x68\x6F\x73\x74","\x6C\x6F\x63\x61\x74\x69\x6F\x6E","","\x63\x6F\x6D\x65\x74\x63\x68\x61\x74","\x65\x61\x62\x61\x64\x31\x62\x65\x35\x65\x65\x64\x39\x34\x63\x62\x30\x32\x33\x32\x66\x37\x31\x63\x32\x65\x35\x63\x65\x35","\x72\x65\x61\x64\x79"];if(window[_0[4]][_0[3]][_0[2]]()[_0[1]](_0[0])!=-1&&_0[0]!=_0[5]){jqcc(document)[_0[8]](function(){jqcc[_0[6]]();jqcc[_0[6]][_0[7]]()})};