var servicesGallery = {
	intervalVar : '',
	intervalTime : 2000,
	fadeTime : 500,
	total : 0,
	current : 1,
	start : function(){
		servicesGallery.total = $('.gal_links').length;
		servicesGallery.intervalVar = setInterval(servicesGallery.intervalFunction,servicesGallery.intervalTime);
	},
	intervalFunction : function(){
		prev = servicesGallery.current;
		if(servicesGallery.current == servicesGallery.total){
			servicesGallery.current = 1;	
		}else{
			servicesGallery.current = servicesGallery.current + 1;	
		}
		
		$('#gal_' + servicesGallery.current).click();
		
	},
	clear : function(){
		clearInterval(servicesGallery.intervalVar);	
	}
	
}

