// JavaScript Document
function announce(url,height,width) {
	// window.open(url, "announce", "height="+height+"width="+width);
	window.open(url, "announce", "height="+height+",width="+width);
}

function popout(url,height,width) {
	// window.open(url, "announce", "height="+height+"width="+width);
	window.open(url, "announce", "height="+height+",width="+width+",scrollbars");
}

//use this array of arrays each time you want to use the navigation feature.
var pagelists = new Array();

//array of pages for the correspondences issue
pagelists[0] = [
			  "index",
			  "violi1",
			  "lantry1",
			  "hellen1",
			  "soderling1",
			  "soderling2",
			  "soderling3",
			  "pollack1",
			  "doreski1",
			  "doreski2",
			  "doreski3",
			  "doreski4",
			  "jensen1",
			  "rosenberg1",
			  "index"
			  ];

function autonav(pagelist,direction) {
	var pages = pagelists[pagelist];
	var urlreg = /\/([^\/]+)\.htm/;
	var thisurl = location.href;
	var thispage = thisurl.match(urlreg);
	for (var i=0; i < pages.length; i++)
		if ( pages[i] == thispage[1] ) 
			newpage = i + direction;
	location = pages[newpage] + ".htm";
}
