var mmd=[1314871,3944615,6574359,9204103,11833847,14463591,17093334,19723078,22352822,24982566,27612310,30242054];var yst=[1,31536001,63072001,94694401,126230401,157766401,189302401,220924801,252460801,283996801,315532801,347155201,378691201,410227201,441763201,473385601,504921601,536457601,567993601,599616001,631152001,662688001,694224001,725846401,757382401,788918401,820454401,852076801,883612801,915148801,946684801,978307201,1009843201,1041379201,1072915201,1104537601,1136073601,1167609601,1199145601,1230768001,1262304001,1293840001,1325376001,1356998401,1388534401,1420070401,1451606401,1483228801,1514764801,1546300801,1577836801,1609459201,1640995201,1672531201,1704067201,1735689601,1767225601,1798761601,1830297601,1861920001,1893456001,1924992001,1956528001,1988150401,2019686401,2051222401,2082758401,2114380801];var months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var show_quoted="Show quoted text";var hide_quoted="Hide quoted text";var show_footer="Show footer";var hide_footer="Hide footer";var show_detail="Show subscription info";var hide_detail="Hide subscription info";function dbg(a){alert($.dump(a))}function fsT(b,c,a){$('<div id="tooltip">'+a+"</div>").css({position:"absolute",display:"none",top:c+5,left:b+5,border:"1px solid #fdd",padding:"2px","background-color":"#fee",opacity:0.8}).appendTo("body").show()}var previousPoint=null;var options={series:{lines:{show:false},points:{show:false}},bars:{show:true,barWidth:2629743,fill:0.5,align:"center"},grid:{backgroundColor:"#FFFFFF",hoverable:true,clickable:true},xaxis:{ticks:function(d){var a=new Date(d.min*1000);var e=new Date(d.max*1000);var c=months[a.getUTCMonth()]+" "+a.getUTCFullYear();var b=months[e.getUTCMonth()]+" "+e.getUTCFullYear();return[[d.min,c],[d.max,b]]},transform:function(a){td=new Date(a*1000);return yst[td.getUTCFullYear()-1970]+mmd[td.getUTCMonth()]}},yaxis:{show:false}};var main_options={series:{lines:{show:false},points:{show:false}},bars:{show:true,barWidth:31556916,fill:0.5,align:"center"},grid:{backgroundColor:"#FFFFFF",hoverable:true,clickable:true},xaxis:{ticks:function(d){var a=new Date(d.min*1000);var e=new Date(d.max*1000);var c=a.getUTCFullYear();var b=e.getUTCFullYear();return[[d.min,c],[d.max,b]]},transform:function(a){td=new Date(a*1000);return yst[td.getUTCFullYear()-1970]+mmd[td.getUTCMonth()]}},yaxis:{show:false}};var loading=false;$(document).ready(function(){$(".datecontainer").each(function(){UnixDate=$(this).find(".unixdate").html();var a=new Date(UnixDate*1000);$(this).find(".readabledate").html(a.toDateString())});$(".datetimecontainer").each(function(){UnixDate=$(this).find(".unixdate").html();var a=new Date(UnixDate*1000);$(this).find(".readabledate").html(a.toLocaleString())});$(".aoquote").find(".showhide").find(".sh").html(show_quoted);$(".aofooter").find(".showhide").find(".sh").html(show_footer);$(".aolistdetail").find(".showhide").find(".sh").html(show_detail);$(".sh").click(function(){var a=$(this).parent().parent().find(".quoted,.footer");a.toggle("fast");a.css("display","block");qtxt=$(this).parent().find(".sh").html();if(qtxt==show_quoted){$(this).parent().find(".sh").html(hide_quoted)}else{if(qtxt==hide_quoted){$(this).parent().find(".sh").html(show_quoted)}else{if(qtxt==show_footer){$(this).parent().find(".sh").html(hide_footer)}else{if(qtxt==hide_footer){$(this).parent().find(".sh").html(show_footer)}else{if(qtxt==show_detail){$(this).parent().find(".sh").html(hide_detail)}else{if(qtxt==hide_detail){$(this).parent().find(".sh").html(show_detail)}}}}}}});$("#mainplot").bind("plothover",function(e,g,d){if(!loading){if(d){if(previousPoint!=d.datapoint){previousPoint=d.datapoint;$("#tooltip").remove();var b=new Date(d.datapoint[0]*1000);var a=b.getUTCFullYear();var f=d.datapoint[1].toFixed();if(f==1){var c=" message"}else{var c=" messages"}fsT(g.pageX+15,g.pageY+15,a+": "+f+c)}}else{$("#tooltip").remove();previousPoint=null}}});$("#listplot").bind("plothover",function(e,g,d){if(!loading){if(d){if(previousPoint!=d.datapoint){previousPoint=d.datapoint;$("#tooltip").remove();var b=new Date(d.datapoint[0]*1000);var a=months[b.getUTCMonth()]+" "+b.getUTCFullYear();var f=d.datapoint[1].toFixed();if(f==1){var c=" message"}else{var c=" messages"}fsT(g.pageX+15,g.pageY+15,a+": "+f+c)}}else{$("#tooltip").remove();previousPoint=null}}});$("#listplot").bind("plotclick",function(b,c,a){if(a){$("#tooltip").remove();loading=true;fsT(c.pageX+15,c.pageY+15,"Loading...");window.location=plotlinks[a.datapoint[0]]}})});
