$(document).ready(function(){ 

var step_spot=1;

$('.bull').live('click', function(event){ 
if ($("#image:animated").length === 1) {} else {

	var click_id=''; click_id = $(this).attr("id"); click_id = click_id.replace('b', ''); click_id = parseInt(click_id); 
	var act_id=''; act_id = $('.bull_act').attr("id"); act_id = act_id.replace('b', ''); act_id = parseInt(act_id); 
	$('#b'+act_id).removeClass('bull_act').addClass('bull'); 
	$('#b'+click_id).removeClass('bull').addClass('bull_act'); 
	
step_spot=click_id; if(step_spot>4) { step_spot=1; } else { step_spot=step_spot; }; 
	
	var img_src = 'img_spot/big_home/'+step_spot+'.jpg'; 
	var bg_src = 'img_spot/big_home/'+act_id+'.jpg'; 
	$('#foot_scroll').css('background-image','url('+ bg_src +')'); 	
	
	$('#image').css({'display': 'none'});
	$("#image").attr("src", ''); 
	$("#image").attr("src", img_src);
	$("#image").bind("load", function () { $('#image').fadeIn(750);  }); 

};


return false;	});


spot_timer = setInterval(function() {  if(step_spot>=4) { step_spot=1; } else { step_spot=step_spot+1; };  $('#b'+step_spot).click(); }, 4000); 
$('#foot_scroll').hover(	function() { clearInterval(spot_timer); },
													function() { spot_timer = setInterval(function() {  if(step_spot>=4) { step_spot=1; } else { step_spot=step_spot+1; }; $('#b'+step_spot).click(); }, 4000); });
													
$('.bulls').hover(	function() { clearInterval(spot_timer); },
													function() { spot_timer = setInterval(function() {  if(step_spot>=4) { step_spot=1; } else { step_spot=step_spot+1; }; $('#b'+step_spot).click(); }, 4000); });

});

