tx_hsesponsors = function() {
	var wait = 6000; 
	var pub = {};	 			
	var containers = [];
	
	pub.next = function() {
		containers.each(function(container) {	 					
			container.pointer.getElements('div.tx_hsesponsors_banner')[container.currentIndex].fx = 
				container.pointer.getElements('div.tx_hsesponsors_banner')[container.currentIndex].effect('opacity', {duration: 2000}).start(0);
				
			container.currentIndex++;
			
			if(container.currentIndex == container.lastIndex)
				container.currentIndex = 0
				
			container.pointer.getElements('div.tx_hsesponsors_banner')[container.currentIndex].fx = 
				container.pointer.getElements('div.tx_hsesponsors_banner')[container.currentIndex].effect('opacity', {duration: 2000}).start(1);
			
		});
	};
	
	pub.start = function() {
		$$('.tx_hsesponsors').each(function(container) {
			containers.push({pointer:container ,currentIndex:0, lastIndex:container.getElements('img').length});
		});
		
		setInterval('tx_hsesponsors.next()', wait);
							 				 				
	};
	
	return pub;
}()
	 		
