obips.SimpleTooltipPopup=function(b,a,c){this.labels=c;obips.SimpleTooltipPopup.baseConstructor.call(this,b,a,"#888888",obips.TooltipPopup.ORIENTATION_VERT,obips.TooltipPopup.DRAG_NONE,null)};extend(obips.SimpleTooltipPopup,obips.TooltipPopup);obips.SimpleTooltipPopup.prototype.getTooltipContentsDiv=function(c){var e=document.createElement("div");e.setAttribute("id",c);this.containerDiv=e;var b=document.createElement("div");e.appendChild(b);this.viewerDiv=b;var a=document.createElement("div");b.appendChild(a);this.infoDiv=a;var d=document.createElement("table");d.cellPadding="0";d.cellSpacing="0";a.appendChild(d);this.textTable=d;this.renderText(this.text);if(saw.userAgent.is_touchdevice){e.className="mobileChartTTContainer";b.className="mobileChartTTViewer";a.className="mobileChartTTTextViewer";e.style.WebkitBoxShadow="0px 0px "+obips.TooltipPopup.BOX_GLOW_SIZE+"px "+obips.TooltipPopup.BOX_GLOW_SPREAD+"px "+this.borderColor}else{e.className="microChartTooltipDesktop"}return e};obips.SimpleTooltipPopup.prototype.addPadding=function(a){a.style.padding="0px 0px 0px 5px"};obips.SimpleTooltipPopup.prototype.renderText=function(a){var l=a.split("~###~");var e=document.createElement("tbody");var o=document.createElement("tr");e.appendChild(o);var m=document.createElement("td");m.align="left";m.colSpan=3;m.style["white-space"]="nowrap";this.addPadding(m);o.appendChild(m);this.insertFormattedText(l[0],m,"microChartTooltipTitle");var b=0;for(var d=1;d<l.length;d++){o=document.createElement("tr");e.appendChild(o);var n=l[d];m=document.createElement("td");m.align="right";m.style["white-space"]="nowrap";this.addPadding(m);o.appendChild(m);this.insertFormattedText(this.labels[b]+":",m,"microChartTooltipMetricText");b++;var f=n.split("#~~~#");var h="";for(var c=0;c<f.length;c++){m=document.createElement("td");m.align="left";m.style["white-space"]="nowrap";o.appendChild(m);if(c==0){h="microChartTooltipMetricText"}else{h="microChartTooltipGroupText"}this.addPadding(m);this.insertFormattedText(f[c],m,h)}}if(!this.textTable.oldBody){this.textTable.appendChild(e)}else{var g=this.textTable.oldBody;this.textTable.replaceChild(e,g)}this.textTable.oldBody=e};