var Communication = {

	url: '/ajax/live',
	lang: 'en',	
	periodical: 20,
	delay: 0,
	
	loadPeriodical: function(id, callback) {
		var xhr = new Request.HTML({
			onComplete: function(responseTree, responseElements, responseHTML, responseJavaScript) {
				if($chk($(id))) {
					$(id).set('html', responseHTML);
				}
				if($chk(callback)) {
					callback.run([responseHTML]);						
				}
			}
		});
		(function(){
			(function() {
				xhr.get(Communication.url+id+'?lang='+Communication.lang);
			}).periodical(1000 * Communication.periodical);
		}).delay(500 * ++Communication.delay);
	}
	
};
