$(document).ready(
	function() {
			$('#progress_choose A')
				.mouseover(
            	function() {
						if(!$(this).hasClass('active')) {
							$(this).children().stop().fadeTo('fast',0.7);
						}
					}
				)
            .mouseout(
            	function() {
						if(!$(this).hasClass('active')) {
							$(this).children().stop().fadeTo('fast',0.3);
						}
					}
				)
				.click(
					function() {
						$('#progress_choose A').removeClass('active');
						$(this).addClass('active');
						updateProgress();
					}
				)
				;
			updateProgress();
	}
);

var showProgress = function(id,_this) {
	if($(_this).hasClass('active')) return;
	$('.progress_items:not(.hidden)').slideUp('fast',
   	function() {
			$(this).addClass('hidden');
			$('#progress_items_'+id).slideDown('fast').removeClass('hidden');
		}
	);
}

var updateProgress = function() {
	$('#progress_choose A:not(.active)').children().fadeTo('fast',0.3);
	$('#progress_choose A.active').children().fadeTo('fast',1);
}


