window.addEvent('domready', function() {
									 
	// sliding images
	
	
	
	$('more-stats').current_pos = 1;
	
	$('more-stats').addEvent('click', function(e) {
		new Event(e).stop();
		
		
		if($('graph1') && $('graph2') && $('graph3')){
		
			if($('more-stats').current_pos == 1){
				$('slider-content').set('tween', {duration: 300}).tween('margin-left','-186');
				$('more-stats').current_pos = 2;
				return;
			}
			
			if($('more-stats').current_pos == 2 ){
				$('slider-content').set('tween', {duration: 300}).tween('margin-left','-372');
				$('more-stats').current_pos = 3;
				return
				
			}
			
			if($('more-stats').current_pos == 3 ){
				$('slider-content').set('tween', {duration: 300}).tween('margin-left','0');
				$('more-stats').current_pos = 1;
				return;
			}
			
		}
		
		
		if($('graph1') && $('graph2') ){
		
			if($('more-stats').current_pos == 1){
				$('slider-content').set('tween', {duration: 300}).tween('margin-left','-186');
				$('more-stats').current_pos = 2;
				return;
			}
			
			if($('more-stats').current_pos == 2 ){
				$('slider-content').set('tween', {duration: 300}).tween('margin-left','0');
				$('more-stats').current_pos = 1;
				return
				
			}
			
			
		}
		
	});	
	
	
	
	
	
	
});


