function scan = page_through(start,stop,duration,overlap)

%--
% handle input
%--

if (nargin < 1) || isempty(start)
	start = 10:10:100;
end

if (nargin < 2) || isempty(stop)
	stop = 15:10:105; stop(end) = 113;
end

if (nargin < 3) || isempty(duration)
	duration = 2;
end

if (nargin < 4) || isempty(overlap)
	overlap = 0;
end

%--
% create scan
%--

scan = scan_create(start,stop); 

scan.page.duration = duration; scan.page.overlap = overlap;

%--
% display scan blocks
%--

for k = 1:length(scan.start)
	block = [scan.start(k), scan.stop(k)]
end
		
%--
% get and display scan pages
%--

disp(' ');

[page,scan] = get_scan_page(scan); 

while (~isempty(page))

	disp(page_to_str(page));
	
	if (~page.full)
		disp(' ');
	end
	
	[page,scan] = get_scan_page(scan); 
	
end

disp(' ');