var pubSlide = new Class({
	
	initialize: function(divcontent,pubperiod,puburl){
		this.element = $(divcontent);
		this.pubperiod = pubperiod;
		this.puburl=puburl;		
		this.start();	
	},
	
	start: function(){
		this.changePub();
		if (!this.timer) this.timer = this.changePub.periodical(this.pubperiod, this);
	},
	
	changePub: function(){
		if (this.ajaxRequest) this.ajaxRequest.cancel();
		this.ajaxRequest = new Ajax( this.puburl,{
	 		method: 'get',
	 		update:this.element
		}).request();		
	}
	
});