/* A.A. DEVIS | http://devis.ru */

function equalHeight(group) {
	tallest = 0;
	group.each(function() {
		thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}

$(document).ready(function() {
				var clickCount = 0;
				var offset = $('#sidebar').offset();
				updatePos($('#sidebar'), offset);
				
				$(window).scroll(function() {
					updatePos($('#sidebar'), offset);
				});
				
			});
			
			function updatePos(el, offset, doAnimation) {
				if ($(window).scrollTop() + 20 > offset.top) {
					$(el).css('top', ($(window).scrollTop() - offset.top + 20) + 'px');
				} else {
					$(el).stop().css('top', '0px')
				}
			}
			




