document.defaultView.addEventListener("load", function () {
	var title = document.getElementsByTagName("title")[0].firstChild.data;
	for (var i = 1; !isNaN(parseInt(title.substring(title.length - i))); i++) {
		current = parseInt(title.substring(title.length - i));
	}
	var productNavigation = document.getElementById("productNavigation");
	if (current != 1) {
		var previous = document.createElement("a");
		var pageNumber = current < 10 ? "0" + (current - 1) : current - 1;
		previous.setAttribute("href", "CF114955-" + pageNumber + ".html");
		previous.appendChild(document.createTextNode("previous"));
		productNavigation.insertBefore(document.createTextNode(" "), productNavigation.firstChild);
		productNavigation.insertBefore(previous, productNavigation.firstChild);
	}
	else {
		var previous = document.createElement("span");
		previous.appendChild(document.createTextNode("previous"));
		productNavigation.insertBefore(document.createTextNode(" "), productNavigation.firstChild);
		productNavigation.insertBefore(previous, productNavigation.firstChild);
	}
	if (current != 55) {
		var next = document.createElement("a");
		var pageNumber = current < 10 ? "0" + (current + 1) : current + 1;
		next.setAttribute("href", "CF114955-" + pageNumber + ".html");
		next.appendChild(document.createTextNode("next"));
		productNavigation.appendChild(document.createTextNode(" "));
		productNavigation.appendChild(next);
	}
	else {
		var next = document.createElement("span");
		next.appendChild(document.createTextNode("next"));
		productNavigation.appendChild(document.createTextNode(" "));
		productNavigation.appendChild(next);
	}
}, false);