var rootPath = ".";

function SetRightPage(page, isScrolling) {
	if (isScrolling == 1) {
		top.rightScrollPage = page;
		top.mainright.location = rootPath + '/rightscroller.html';
	}
	else {
		top.mainright.location = page;
	}
}

function SetLeftPage(page, isScrolling) {
	if (isScrolling == 1) {
		top.leftScrollPage = page;
		top.mainleft.location = rootPath + '/leftscroller.html';
	}
	else {
		top.mainleft.location = page;
	}
}

function SetPages(leftPage, leftScroll, rightPage, rightScroll) {
	SetLeftPage(leftPage, leftScroll);
	SetRightPage(rightPage, rightScroll);
}
