function clearTooltips(){$("#mapspecificdata").html("");tooltip&&tooltip.hide();$(".tooltip-pivot").remove()}function showTooltip(n){var f=n.sender,t=n.shape,r,i,u;lastShape!==t&&(lastShape=t,clearTooltips(),r=t.dataItem,tooltipContentParam=r.properties.NAME,tooltip.options.content.url="/Asthma/Asthma_HospitalizationED_MAP?county="+tooltipContentParam,$("#mapspecificdata").html("Selected county is "+tooltipContentParam),i=t.bbox().center(),u=$("<div class='tooltip-pivot'>").css({top:i.y+"px",left:i.x+"px"}).appendTo(f.scrollElement),tooltip.show(u))}function onReset(){setTimeout(clearTooltips,0)}function onShapeMouseEnter(n){showTooltip(n);n.shape.options.set("fill.color","#0c669f")}function onShapeMouseLeave(n){n.shape.options.set("fill.color","#b3cde3")}function onShapeClick(n){var t=n.shape.dataItem.properties.NAME}function onShapeCreated(n){var t=n.shape.dataItem.properties.NAME;shapesByCounty.push({county:t,shape:n.shape})}function splitterCollaspe(){var n="."+$(this.element[0]).attr("id"),t=$(n).children(),i="#"+$(t[0]).data("tooltip");$(i).css("left","94%")}function splitterExpand(){var n="."+$(this.element[0]).attr("id"),t=$(n).children(),i="#"+$(t[0]).data("tooltip");$(i).css("left","90%")}var tooltipContentParam,shapesByCounty=[],tooltip=$(document.body).kendoTooltip({autoHide:!1,showOn:"click",flter:".tooltip-pivot",callout:!1,position:"top",content:{url:"/Asthma/Asthma_HospitalizationED_MAP?county="+tooltipContentParam},hide:function(){$("#mapspecificdata").html("")}}).data("kendoTooltip"),lastShape;$("#map").unbind("mousewheel");$("#map").unbind("DOMMouseScroll")