// JavaScript Document

function set_page(x,y,z) { 			//current_page = x			total_pages = y			naming convention = z
	
	var page_string = "";

	if (x < y) {			// Check for following pages
		page_string += "<div class='page_off'><a href='" + z + (x+1) + ".html'>Next --></a></div>";
	}
	
	for (i=y;i>=1;i--) {	// fills in numbers
		if (i == x) {
			page_string += "<div class='page_on'><a href='" + z + i + ".html' style='font-weight:bold; text-decoration:underline;'>" + i + "</a> |&nbsp;</div>";
		}
		else{
			page_string += "<div class='page_off'><a href='" + z + i + ".html'>" + i + "</a> |&nbsp;</div>";
		}
	}
	
	if (x > 1) {			// Check for previous pages
		page_string += "<div class='page_off'><a href='" + z + (x-1) + ".html'><-- Previous</a> |&nbsp;</div>";
	}
	
	page_string += "<div class='page_off'>Page |&nbsp;</div>";

	trgt_hi = document.getElementById('top_page_index');
	trgt_hi.innerHTML = page_string;
	
	if (x != y) {
		page_string = "<div class='page_off'>&nbsp;|&nbsp;<a href='#anchor_top' style='font-weight:bold;'>Top^</a></div>" + page_string;
	}
	else {
		page_string = "<div class='page_off'><a href='#anchor_top' style='font-weight:bold;'>Top^</a></div>" + page_string;
	}
	
	trgt_low = document.getElementById('bottom_page_index');
	trgt_low.innerHTML = page_string;
}

function set_breadcrumb(w) {

	trgt_bc = document.getElementById('tutorial_breadcrumb');
	trgt_bc.innerHTML = '<font style="font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#FFFFFF;">' + w + '</font>';

}
