$(document).ready(function() {
  $('.notfirst').hide();
  refreshBar();
});
var current = 1;
var limit = 15;
function nextStep() {
	if(current != limit) {
		target = current+1;
		denne = "step"+current;
		target = "step"+target;
		$('#'+target).show();
		$('#'+denne).hide();
		current = current+1;
		refreshBar();
	}
}
function prevStep() {
	if(current != 1) {
		target = current-1;
		denne = "step"+current;
		target = "step"+target;
		$('#'+target).show();
		$('#'+denne).hide();
		current = current-1;
		
		refreshBar();
	}
}
function refreshBar() {
	var width = 584;
	var per = width/limit;
	var total = per*current;
	$('#location').width(total);
	
	$('#counter').html('Del ' + current + ' av ' + limit);
}