$(document).ready(function(){	
	$('div.intro div.wrap').cycle({ 	
		before: 
			function() {  
				$('div.section div').removeClass('active');
				$id = ($(this).index()+1);
				$('div.section div#box'+$id).addClass('active');
			} 
	});	
	
	$('div.section div').hover(		
		function(){
			index = $(this).index();
			$('div.intro div.wrap').cycle(index);				
			$('div.intro div.wrap').cycle('pause');				
		},
		function(){
			$('div.intro div.wrap').cycle('resume');						 
		}		
	);
						   
});
