var meebo_domain='http://www.cafemom.com';var topicsObj;function MeeboInitialize(domain,network_name,show_stage)
{if(domain){meebo_domain=domain;}
if(typeof Meebo=='undefined'){var M=Meebo=function(){(M._=M._||[]).push(arguments)},w=window,a='addEventListener',b='attachEvent',c='load',d=function(){M.T(c);M(c)},z=M.$={0:+new Date};M.T=function(a){z[a]=+new Date-z[0]};if(w[a]){w[a](c,d,false)}else{w[b]('on'+c,d)};M.v=3;(function(_){var d=document,b=d.body,c;if(!b){c=arguments.callee;return setTimeout(function(){c(_)},100)}var a='appendChild',c='createElement',m=b.insertBefore(d[c]('div'),b.firstChild),n=m[a](d[c]('m')),i=d[c]('iframe');m.style.display='none';m.id='meebo';i.frameBorder="0";n[a](i).id="meebo-iframe";function s(){return['<body onload=\'var d=document;d.getElementsByTagName("head")[0].',a,'(d.',c,'("script")).sr','c="//',_.stage?'stage-':'','cim.meebo.com','/cim?iv=',M.v,'&network=',_.network,_.lang?'&lang='+_.lang:'',_.d?'&domain='+_.d:'','"\'></bo','dy>'].join('')}try{d=i.contentWindow.document.open();d.write(s());d.close()}catch(e){_.d=d.domain;i['sr'+'c']='javascript:d=document.open();d.write("'+s().replace(/"/g,'\\"')+'");d.close();'}M.T(1)})
({network:network_name,stage:show_stage});}}
function fillTopics(jsonData)
{topicsObj.innerHTML=jsonData;}
function addMeeboButtons()
{Meebo('addButton',{id:"button2",type:"menu",label:"Recent & Popular",icon:meebo_domain+"/images/chat/cafemom_im_recenticon.gif",items:[{value:1,text:"Popular Questions"},{value:2,text:"Popular Journals"},{value:3,text:"Active Group Posts"},{value:4,text:"Recent Blogs"}],onselect:function(value){if(value==1){location.href=meebo_domain+"/answers/archive.php?type=popular";}
if(value==2){location.href=meebo_domain+"/journals/archive.php?type=popular";}
if(value==3){location.href=meebo_domain+"/groups/forums/topic_archive.php?type=public";}
if(value==4){location.href=meebo_domain+"/dailybuzz";}}});Meebo('addButton',{id:"button3",type:"widget",label:"Hot Topics",icon:meebo_domain+"/images/chat/cafemom_im_hoticon.gif",width:300,height:250,oncreate:function(widget,element){topicsObj=element;element.innerHTML='Loading...';},onShow:function(widget,element){var request=meebo_domain+'/content/includes/chat_box.php?output=json&callback=fillTopics';var scriptObj=document.createElement("script");scriptObj.setAttribute("type","text/javascript");scriptObj.setAttribute("charset","utf-8");scriptObj.setAttribute("src",request);element.appendChild(scriptObj);}});}