function progress() {
	var divBy = $('ul#progbar li').size();
	$('ul#progbar li.current p span').css('margin-right','7px');		
	$('ul#progbar li').css('width', 'auto');	
	var cutWidth = 0;
	var totalWidth = 0;
	for (var i = 1; i <= divBy; i++) {		
		cutWidth = $('ul#progbar li.step' + i).width();
		totalWidth += cutWidth;				
	}
			totalLength = totalWidth;	
	for (var j = 1; j <= divBy; j++) {		
		var thisLength = $('ul li.step'+ j).width();
		var liWidth = thisLength / (totalLength);	
		liWidth = 679 * liWidth; 		
		liWidth += "px";
		$('ul#progbar li.step'+ j).css('width',liWidth);
		}
}
$(document).ready(function(){
	progress();
});