var noveItem = { counter: 0 };
var fnGetNoveItem = function(){

  var req = new Request.HTML({url:'http://www.detounpoco.com/svc/get-next-event', 
		onSuccess: function(html) {
			//Clear the text currently inside the results div.
			$('dtp-nove-item').set('text', '');
			//Inject the new DOM elements into the results div.
			$('dtp-nove-item').adopt(html);
		},
		//Our request will most likely succeed, but just in case, we'll add an
		//onFailure method which will let the user know what happened.
		onFailure: function() {
			$('dtp-nove-item').set('text', 'The request failed.');
		}
	});
	
  req.send();
  
};
  
fnGetNoveItem.periodical(50000); //Will add the number of seconds at the Site.
