var current_page = 1;

var pages = [[0, 0, 'Index.html'], 
			 [1, 0, 'Home.html'], 
			 [2, 2, 'WebApp.html'],
			 [3, 10, 'Database.html'],
//			 [4, 10, 'UserExpTesting.html'],
			 [4, 10, 'Advisors.html']];

function loadContent(page) {
	$("#mainFrame").attr("src",page);
}

function redirectContent(page) {
	window.location = page;
}

function moveMarker(pos) {
	if (current_page != pos) {
		buf = pages[pos][1];
		page = pages[pos][2];
		$("#mainFrame").attr("src",page);
		marker = $("#NavMarker");
		delta = Math.abs(current_page - pos);
		rate = 750 + (delta * 250);
		current_page = pos;
		pos = (((pos - 1) * 125) + buf);
		marker.animate({
		    top: pos
		}, rate);
	}
}