//http://fmarcia.info/jsmin/test.html
$.fn.tagName=function(){return this.get(0).tagName;};var _showing_map=false;var _heatmap_document_clicks=0;function getHeatMap(){var loc=location.pathname;var link="/heatmap-image-creator/?loc="+escape(loc)+"&amp;w="+$(document).width()+"&amp;h="+$(document).height();if(_showing_map){$("#heatmap").hide();_showing_map=false;}else{$('#heatmap').html("<img onclick='this.parentNode.removeChild(this);return false;' src='"+link+"' alt='' />");$("#heatmap").show();_showing_map=true;}};function getPointerXY(event){return{x:event.pageX||(event.clientX+
(document.documentElement.scrollLeft||document.body.scrollLeft)),y:event.pageY||(event.clientY+
(document.documentElement.scrollTop||document.body.scrollTop))};};function heatmapDocumentClick(e)
{if(_heatmap_document_clicks>=5){return;}
var t=$(e.target);while(t.length>0&&t.attr("id")!="heatmap-controls"&&t.tagName()!="BODY"){t=t.parent();}
if(t.attr("id")=="heatmap-controls"){return;}
var pointer=getPointerXY(e);var click_url=location.pathname;var opt={x:pointer.x,y:pointer.y,h:$(document).height(),w:$(document).width(),opt:"store_click",loc:escape(click_url)}
_heatmap_document_clicks++;$.getJSON("/heatmap-click-recorder/",opt,function(json){if(typeof(console)!=undefined&&json.status==0){console.log("Error! "+json.message);}});}
$(document).click(heatmapDocumentClick);