		$(document).ready( function() {
			op(0);
			
			var tochki = $(".slide-nav ul li img");
			$(tochki).each(function() {
					var ani = function(e) {
						$(e.target).unbind('mouseenter', ani)
							.animate({'margin-left':10}, 80)
							.animate({'margin-left':-8}, 70)
							.animate({'margin-left':6}, 60)
							.animate({'margin-left':-4}, 50)
							.animate({'margin-left':2}, 40)
							.animate({'margin-left':0}, 30)
							.bind('mouseenter', ani);
					};
					$(this).bind('mouseenter', ani);
			});
		});
		
		function op(min) {
			     if (min == 0) $("#bob1").animate({ "width": 120, "height": 120, "top": 6, "left": 771 }, 1000, function() { setTimeout('op(1)', 500); });
			else if (min == 1) $("#bob1").animate({ "width": 80, "height": 80, "top": 26, "left": 791 }, 1600, function() { setTimeout('op(2)', 500); });
			else if (min == 2) $("#bob2").animate({ "width": 120, "height": 120, "top": 88, "left": 771 }, 1000, function() { setTimeout('op(3)', 500); });
			else if (min == 3) $("#bob2").animate({ "width": 80, "height": 80, "top": 108, "left": 791 }, 1600, function() { setTimeout('op(4)', 500); });
			else if (min == 4) $("#bob3").animate({ "width": 120, "height": 120, "top": 170, "left": 771 }, 1000, function() { setTimeout('op(5)', 500); });
			else if (min == 5) $("#bob3").animate({ "width": 80, "height": 80, "top": 190, "left": 791 }, 1600, function() { setTimeout('op(6)', 500); });
			else if (min == 6) $("#bob4").animate({ "width": 120, "height": 120, "top": 252, "left": 771 }, 1000, function() { setTimeout('op(7)', 500); });
			else if (min == 7) $("#bob4").animate({ "width": 80, "height": 80, "top": 272, "left": 791 }, 1600, function() { setTimeout('op(0)', 500); });
		}
