jQuery(function($) {
	
	var hi = 0;
	
	$('div.wrapper a.link img').css('opacity', '0.5');
	$('div.wrapper a.link img ').hover(
		function(){
			$(document).stopTime('hoverTimer');
			$('a.link img').each(function(){
				$(this).animate({ opacity: '0.5'}, 500);						  
			});
			$(this).stop().animate({ opacity: '1'}, 500);
		},
		function(){
			$(document).everyTime( 1000, 'hoverTimer', hoverTimer, 0 );
			$(this).stop().animate({ opacity: '0.5'}, 500);
		}
	);
	if( jQuery.timer )
		$(document).everyTime( 1000, 'hoverTimer', hoverTimer, 0 );
	
	function hoverTimer(){
		$('div.wrapper a.link img').eq(hi-1).stop().animate({ opacity: '0.5'}, 500);
		$('div.wrapper a.link img').eq(hi).stop().animate({ opacity: '1'}, 500);
		
		hi++
		if(hi == $('div.wrapper a.link img').length+1)hi = 0;
	}
		
});

