/**
 *
 */
(function($) {
   $.fn.showPollumeter = function(options) {
	 var settings = $.extend(
	   {
		reload: true,
		interval: 900000 // every 15 min
	   }, options);

	 var $this = $(this);

	 var reload = function() {
	   $.get("/syndication/pollumeter/",
		 function(data){
		   $this.html(data);
		 });
	 };

	 reload();

	 if (settings.reload) {
	   setInterval(reload, settings.interval);
	 }

	 return $this;
   };
 }(jQuery));

