var SharecareWidgetClipboard = { AppRoot: 'https://www.clipix.com/', PlaceHolder: null, HtmlPanel: "\r\n\u003cdiv style=\"position: relative;background-color: #EEEEEE;padding: 10px;margin: 10px auto;\"\u003e\r\n \u003cdiv style=\"width: 300px;position: relative;text-align: right;\"\u003e\r\n \u003cdiv style=\"font-size: 20px; font-weight: normal; line-height: 24px;text-align:left;\"\u003eClipboards\u003c/div\u003e\r\n \u003cmap id=\"cxsc_topicClipboard\" name=\"cxsc_topicClipboard\"\u003e\r\n \u003carea shape=\"rect\" coords=\"10,30,290,50\" href=\"/my-interests?viewClipboard=389240\" /\u003e\r\n \r\n \u003carea shape=\"rect\" coords=\"14,73,94,153\" href=\"/my-interests?viewClip=2850080\"\r\n title=\"Manage Heart Failure - AskMD - Sharecare\" /\u003e\r\n \r\n \u003carea shape=\"rect\" coords=\"110,73,190,153\" href=\"/my-interests?viewClip=2850031\"\r\n title=\"What is heart failure? - Heart Failure - Sharecare\" /\u003e\r\n \r\n \u003carea shape=\"rect\" coords=\"206,73,286,153\" href=\"/my-interests?viewClip=2850034\"\r\n title=\"Reconsider That Salami Sandwich: Processed Meats Linked to Increased Risk of Death | The Oz Blog\" /\u003e\r\n \r\n \u003carea shape=\"rect\" coords=\"14,169,94,249\" href=\"/my-interests?viewClip=2850018\"\r\n title=\"Do You Have the Sitting Disease? Here’s What to Do \u0026#171; Sharecare.com Blog\" /\u003e\r\n \r\n \u003carea shape=\"rect\" coords=\"110,169,190,249\" href=\"/my-interests?viewClip=2850025\"\r\n title=\"How can I prevent heart failure from getting worse? - Heart Failure - Sharecare\" /\u003e\r\n \r\n \u003carea shape=\"rect\" coords=\"206,169,286,249\" href=\"/my-interests?viewClip=2143518\"\r\n title=\"How can I prevent heart failure from getting worse? - Heart Failure - Sharecare\" /\u003e\r\n \r\n \u003carea shape=\"rect\" coords=\"14,265,94,345\" href=\"/my-interests?viewClip=2143516\"\r\n title=\"Test Your Heart Smarts - Sharecare\" /\u003e\r\n \r\n \u003carea shape=\"rect\" coords=\"110,265,190,345\" href=\"/my-interests?viewClip=2143517\"\r\n title=\"What type of exercise can I do if I have heart failure? - Heart Failure - Sharecare\" /\u003e\r\n \r\n \u003carea shape=\"rect\" coords=\"206,265,286,345\" href=\"/my-interests?viewClip=2143519\"\r\n title=\"How does stress affect heart failure? - Heart Failure - Sharecare\" /\u003e\r\n \r\n \u003c/map\u003e\r\n \r\n \u003ca href=\"/my-interests?subscribeClipboard=3348\u0026viewClipboard=389240\"\r\n style=\"position: absolute; height: 27px; width: 112px; left: 50%; margin-left: -56px;\r\n background-image: url(\u0027https://www.clipix.com/View/Enterprise/External/Sharecare/Images/widget_sprites.png\u0027);\r\n background-position: -0px 0px;\"\u003e\u003c/a\u003e\r\n \u003cimg border=\"0\" usemap=\"#cxsc_topicClipboard\" src=\"//www.clipix.com/WebServices/ClipboardImage.ashx?uid=20\u0026clipboardId=389240\u0026t=3-3885948-2862475--1--1\u0026mode=10\" /\u003e\r\n \u003cdiv style=\"text-align: right\"\u003e\r\n \u003ca style=\"background: url(\u0027//s.sharecare.com/static/img/topics/right_arrow_03.png\u0027) no-repeat scroll right 3px transparent;font-size: 12px;font-weight: 600;margin: 0 5px 0 0;padding-right: 15px;\" href=\"/my-interests?viewAll=1\"\u003eSee all\u003c/a\u003e\u003c/div\u003e\r\n \u003c/div\u003e\r\n\u003c/div\u003e\r\n", Init: function () { var panel = document.createElement("div"); panel.id = "clipix-module"; var clipboardImage = ""; panel.innerHTML = SharecareWidgetClipboard.HtmlPanel; // Specified Placeholder ? var container = null; if (!SharecareWidgetClipboard.PlaceHolder) { var scripts = document.getElementsByTagName('script'); var thisScriptTag = scripts[scripts.length - 1]; container = thisScriptTag.parentNode; } else { container = ClipixAds.ById(SharecareWidgetClipboard.PlaceHolder); } // Append if (container) container.appendChild(panel); }, InsertAfter: function (node, ref, force) { var pn = ref.parentNode; if (ref == pn.lastChild) { if ((!force) && (node === ref)) { return false; } pn.appendChild(node); } else { return this.InsertBefore(node, ref.nextSibling, force); } return true; }, InsertBefore: function (node, ref, force) { if (!force && (node === ref || node.nextSibling === ref)) { return false; } var parent = ref.parentNode; parent.insertBefore(node, ref); return true; }, GetById: function (id, parentNode) { if (this.isAppleWebKit()) { var result = null; var childNodes = parentNode.childNodes; for (var i = 0; i < childNodes.length; i++) { if (result != null) return result; var childNode = childNodes[i]; if (childNode && childNode.childNodes && childNode.childNodes.length > 0) { var temp = this.GetById(id, childNode); if (temp != null) { result = temp; } } if (childNode && childNode.id == id) { result = childNode; } } return result; } else { var result = null; var childNodes = parentNode.childNodes; for (var i in childNodes) { if (result != null) return result; var childNode = childNodes[i]; if (childNode && childNode.childNodes && childNode.childNodes.length > 0) { var temp = this.GetById(id, childNode); if (temp != null) { result = temp; } } if (childNode && childNode.id == id) { result = childNode; } } return result; } }, ById: function (id, doc) { if ((id) && ((typeof id == 'string') || (id instanceof String))) { doc = document; var ele = doc.getElementById(id); if (ele && (ele.id != id) && doc.all) { ele = null; var eles = doc.all[id]; if (eles) { if (eles.length) { for (var i = 0; i < eles.length; i++) { if (eles[i].id == id) { ele = eles[i]; break; } } } else { ele = eles; } } } return ele; } return id; }, $: function (id) { return this.ById(id, document); } }; SharecareWidgetClipboard.Init();