document.write("<style type=\"text/css\" media=\"screen\">.nc_sn{font-weight:bold;margin-bottom:4px;}.nc_title{font-weight:bold;margin-bottom:4px;}.nc_snip{margin-bottom:4px;}.nc_date{color:#666;}.nc_blurb{font-weight:bold;padding:4px 0px;}.nc_promo{padding:4px 0px;}.nc_site{padding:8px 0px;}.nc_frame{width: 170px;}.nc_chatStream {padding:0px;height:80px;background-color: white;border:1px solid #BBB;border-width:1px;}.nc_chatbox_off{text-align:center;color:#999;font-weight:normal;width:164px;margin-top:8px;margin-bottom:2px;}.nc_chatbox_on{text-align:left;color:black;width:164px;margin-top:8px;margin-bottom:2px;}</style><div class=\"nc_frame\" id=\"wnc1265675886486078322\"><img style=\"visibility:hidden;float:right;border:none\" id=\"spinnernc1265675886486078322\" src=\"http://www.nearcircle.com/spinner.gif\"/><div class=\"nc_blurb\" style=\"min-height:8px\"><span id=\"tinc1265675886486078322\"><a style=\"display:inline;padding:0px\" href=\"http://www.nearcircle.com/\"><img style=\"border:none;margin-bottom:-4px;padding:0px;display:inline\" src=\"http://www.nearcircle.com/sysmail.gif\"></a><a style=\"display:inline;padding:0px\" href=\"http://www.nearcircle.com/viewCircle?name=losing+weight\">Losing weight</a></span></div><div id=\"conInfonc1265675886486078322\" style=\"margin:12px 0px;padding:6px;background-color:#FFFFAE;border-width:1px;border-style:solid;border-color:#E0E0E0;display:none\"><b>The widget is now offline.</b><br/>It will auto reconnect.</div><div id=\"chatSpotnc1265675886486078322\"><div class=\"nc_chatStream\"><iframe id=\"chatStreamnc1265675886486078322\"  name=\"chatStreamnc1265675886486078322\" frameborder=\"no\" scrolling=\"auto\" marginheight=\"0\"  marginwidth=\"0\" width=\"100%\" height=\"80px\"></iframe></div><span style=\"font-weight:normal;\"><input type=\"checkbox\" id=\"showAnonnc1265675886486078322\" onclick=\"document.cnc1265675886486078322.filterChat();\">Show anonymous chat.</input></span><form action=\"http://www.nearcircle.com/sendChat\" style=\"margin:0px\" method=\"post\" onsubmit=\"return document.cnc1265675886486078322.doChatSub();\"><center><input onfocus=\"if(!this.bl){this.bl=true;this.className=\'nc_chatbox_on\';this.value=\'\';}\" type=\"text\" autocomplete=\"off\" id=\"chatEntrync1265675886486078322\" name=\"text\"/></center><INPUT type=\"hidden\" name=\"circle\" value=\"losing weight\"/><INPUT type=\"hidden\" id=\"sessionParamnc1265675886486078322\" name=\"session\" value=\"\"/><INPUT type=\"hidden\" id=\"csrfnc1265675886486078322\" name=\"CSRF\" value=\"F85193B0EAC820C65198434905FA69E54B70AE6E\"/></form><div id=\"chatinfonc1265675886486078322\" style=\"color:black;margin:12px 0px;padding:6px;background-color:#FFFFAE;border-width:1px;border-style:solid;border-color:#E0E0E0;display:none\"><p><b>You are anonymous</b>.<p>Most users will not see your chat.<p><center><a style=\"color:black;text-decoration:underline\" href=\"http://www.nearcircle.com/login?c=www.nearcircle.com\">Login</a> or <a style=\"color:black;text-decoration:underline\" href=\"http://www.nearcircle.com/signUp\">Create an Account</a></center></div></div><div style=\"margin:2px 0px;text-align:left\" id=\"visitorSpotnc1265675886486078322\"></div><div id=\"postSpotnc1265675886486078322\"></div><div class=\"nc_promo\">live data provided by<br/><a style=\"display:inline;padding:0px\" href=\"http://www.nearcircle.com/\"><img style=\"border:none;margin-bottom:-4px;padding:0px;display:inline\" src=\"http://www.nearcircle.com/sysmail.gif\"></a><a style=\"display:inline;padding:0px\" href=\"http://www.nearcircle.com/\">nearcircle.com</a></div><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" id=\"mvnc1265675886486078322\" width=\"0px\" height=\"0px\" align=\"middle\"><param name=\"AllowScriptAccess\" value=\"always\" /><param name=\"FLASHVARS\" value=\"callback=statusCallback\" /><param name=\"movie\" value=\"http://www.nearcircle.com/cm2.swf?t=31&st=1&circle=losing+weight&cn=1&ref=www.nearcircle.com&session=8523832BE8425D48F4AC95274E245C080C7FC9B82\" /><param name=\"menu\" value=\"false\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ffffff\" /><embed src=\"http://www.nearcircle.com/cm2.swf?t=31&st=1&circle=losing+weight&cn=1&ref=www.nearcircle.com&session=8523832BE8425D48F4AC95274E245C080C7FC9B82\" menu=\"false\" quality=\"high\" bgcolor=\"#ffffff\" width=\"0px\" height=\"0px\" swLiveConnect=true id=\"mvnc1265675886486078322\" name=\"mvnc1265675886486078322\" align=\"middle\" AllowScriptAccess=\"always\" type=\"application/x-shockwave-flash\" FLASHVARS=\"callback=statusCallback\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></object><SCRIPT LANGUAGE=\"VBScript\">Sub mvnc1265675886486078322_FSCommand(ByVal command, ByVal args)call mvnc1265675886486078322_DoFSCommand(command, args)end sub</SCRIPT></div>");function mvnc1265675886486078322_DoFSCommand(command, args){try{document.cnc1265675886486078322.rawCback(args);}catch(e){}var isIE = navigator.appName.indexOf("Microsoft") != -1;var mv= (isIE) ? window["mvnc1265675886486078322" ] : document["mvnc1265675886486078322" ];mv.ack();}function statusCallback(ok){e = document.getElementById("conInfonc1265675886486078322");if (!ok){e.style.display="block";}else{e.style.display="none";}}function makenc1265675886486078322(){this.ele=function(name){return document.getElementById(name+"nc1265675886486078322");};this.spinoff=function(){this.ele("spinner").style.visibility="hidden";};this.spinon = function(){this.ele("spinner").style.visibility="visible";};this.rawCback=function(arg){this.spinon();obj = eval("("+arg+")");if (obj.cookie != undefined){cstrstart = obj.cookie.indexOf("session=");if (cstrstart >=0){cstrstart+= 8;this.ele("sessionParam").value = obj.cookie.substr(cstrstart,obj.cookie.indexOf(";",cstrstart)-cstrstart);}}for (key in obj.msg){this.doEvent(key.toString(),obj.msg[key]);}setTimeout("document.cnc1265675886486078322.spinoff()",100);};this.lastChatTime =0;this.model={sites:[{"url":"http:\/\/sonyareads.blogspot.com\/","name":"Reading my way through life....." }],posts:[{"siteidx":0,"title":"Reglan patient advice including side effects","link":"http:\/\/sonyareads.blogspot.com\/2009\/09\/reglan-patient-advice-including-side.html","summary":"Anti-Acidity     Prevacid Our price: $0.58 Prevacid (Lansoprazole) decreases the amount of acid produced in the stomach....","postTime":1252713540 }],chats:[],visitors:[{"name":"SonyaReads","alm":"1190437711","site":"sonyasgettingskinny.blogspot.com","link":"http:\/\/sonyasgettingskinny.blogspot.com\/","online":false,"lastOn":1231477286 } ],stats:[]};this.doChatSub=function(){if (this.chatinfo == undefined){this.chatinfo = true;this.ele("chatinfo").style.display="block";}if (this.ele('chatEntry').value != ""){setTimeout("e=document.getElementById('chatEntrync1265675886486078322');e.value='';e.focus();",0);return true;}return false;};this.addChat=function(msgObj){if (msgObj.anon && ! this.ele("showAnon").checked)return;r="padding-bottom:6px;margin:0;background-color:white;";z = "";showTime= true;if (this.lastChatTime ==0){dt = new Date;this.lastChatTime = dt.getTime()/1000;}else{showTime = (msgObj.time-this.lastChatTime) > 300;}if (showTime){d= (new Date(msgObj.time*1000)).toLocaleString();z+="<div style=\"padding:6px 0px;font:9px arial,helvetica,clean,sans-serif;color:#555;text-align:center\">";z+=d;z+="</div>";this.lastChatTime = msgObj.time;}z+="<div style=\""; z+=r;z+="padding:3px 2px;font:11px arial,helvetica,clean,sans-serif;line-height:1em\">";z+="<span style=\"font-weight:bold;color:#500\">";z+=msgObj.name;z+= ": ";z+="</span>";z+="<span style=\"color:black;\">"; z+=msgObj.text; z+="</span>";z+="</div>";iframeElem = this.ele("chatStream");iframeDoc = iframeElem.contentDocument||(iframeElem.contentWindow && iframeElem.contentWindow.document);iframeDoc.body.innerHTML +=z;};this.filterChat=function(){iframeElem = this.ele("chatStream");iframeDoc = iframeElem.contentDocument||(iframeElem.contentWindow && iframeElem.contentWindow.document);iframeDoc.body.innerHTML ="";this.lastChatTime = 0;for (i = 0; i < this.model.chats.length;++i){this.addChat(this.model.chats[i]);}setTimeout("window.chatStreamnc1265675886486078322.scrollBy(0,160000);",0);};this.relDate=function(now,then){var val = 0;var delta = Math.round(now - then);if (delta >= 31556926){val = Math.round(delta /31556926);return val + " year" + (val == 1? "" : "s");}else if (delta >= 2629743){val = Math.round(delta /2629743);return val + " month" + (val == 1? "" : "s");}else if (delta >= 86400){val = Math.round(delta /86400);return val + " day" + (val == 1? "" : "s");}else if (delta >= 3600){val = Math.round(delta /3600);return val + " hour" + (val == 1? "" : "s");}else if (delta >= 60){val = Math.round(delta /60);return val + " minute" + (val == 1? "" : "s");}else{return "< 1 minute";}};this.buildPosts=function(){z="";if (this.model.posts.length > 0){now = new Date().getTime() /1000;lastDate = -1;amt = this.model.posts.length;for (i = 0; i < amt;++i){z+= "<div class=\"nc_site\">";z+= "<div class=\"nc_sn\"><a href=\"";z+=this.model.sites[this.model.posts[i].siteidx].url;z+="\">";z+=this.model.sites[this.model.posts[i].siteidx].name;z+="</a></div>";z+= "<div class=\"nc_entry\">";z+= "<div class=\"nc_title\">";	z+=this.model.posts[i].title;z+="</div>";z+= "<div class=\"nc_snip\">";	z+=this.model.posts[i].summary;z+="<a style=\"padding:0px 4px\" href=\"";z+=this.model.posts[i].link;z+="\">more</a></div>";z+= "<div class=\"nc_date\">";if (this.model.posts[i].postTime > 0){z+= this.relDate(now,this.model.posts[i].postTime) + " ago";}z+="</div>";z+= "</div>";z+= "</div>";}}postsEle = this.ele("postSpot");postsEle.innerHTML='<div style="text-align:center;font-weight:bold;margin-top:1em">posts in the circle</div>' +z;};this.buildVisitors=function(){z="<div style=\"line-height:0px\">";amt = this.model.visitors.length;online=0;for (i = 0; i < amt;++i){alm = this.model.visitors[i].alm;if (alm.length == 0){alm = "0";}en = encodeURIComponent(this.model.visitors[i].name);if (this.model.visitors[i].online){online++;z+= "<a style=\"padding:0px;border:none;display:inline\" title=\"" + this.model.visitors[i].name  + " is on " + this.model.visitors[i].site + "\" href=\"http://www.nearcircle.com/profile?name="+en+"\">";z+="<img style=\"" +  "border:none;padding:1px;height:32px;width:32px;display:inline\" src=\"http://www.nearcircle.com/avatar?name=" + en + "&lm=" + alm +"\"/></a>";}}z+="</div><center><p><b>recent visitors</b></p></center><div style=\"line-height:0px\">";for (i = 0; i < amt;++i){alm = this.model.visitors[i].alm;if (alm.length == 0){alm = "0";}en = encodeURIComponent(this.model.visitors[i].name);if (!this.model.visitors[i].online){z+= "<a style=\"padding:0px;border:none;display:inline\" title=\"" + this.model.visitors[i].name + " was last on " + this.model.visitors[i].site + "\" href=\"http://www.nearcircle.com/profile?name="+en+"\">";z+="<img style=\"" +  "border:none;padding:1px;height:32px;width:32px;display:inline\" src=\"http://www.nearcircle.com/avatar?name="  + en + "&lm=" + alm + "\"/></a>";}}e= this.ele("visitorSpot");if (online>0){e.innerHTML="</div><center><p><b>" + online +(online!=1?" members are" : " member is") + " viewing</b></p></center>" +z;}else{e.innerHTML=z;}};this.doEvent=function(name,param){if (name == "modelChanged"){this.model.posts=param.posts;this.model.sites=param.sites;this.buildPosts();}else if (name == "subscribe"){if(param.success){if (param.changed){this.model.posts=param.posts;this.model.sites=param.sites;this.buildPosts();}}this.model.chats = param.chats;this.filterChat();this.spinoff();}else if (name == "chatRecv"){this.model.chats.push(param);if (this.model.chats.length > 50){this.model.chats = this.model.chats.splice(25,this.model.chats.length-25);this.filterChat();}else{this.addChat(param);}window.chatStreamnc1265675886486078322.scrollBy(0,160000);}else if  (name == "visitorsChanged"){this.model.visitors=param.visitors;this.buildVisitors();}};this.buildPosts();this.buildVisitors();};document.cnc1265675886486078322 = new makenc1265675886486078322();ce = document.getElementById("chatEntrync1265675886486078322");if (!ce.bl){ce.className="nc_chatbox_off";ce.value="click here to chat";}