// 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"
			  ];

// pages for the 2011 new year issue
pagelists[1] = [
			  "index",
			  "barbare1",
			  "mullin1",
			  "williams1",
			  "wexelblatt1",
			  "crawford1",
			  "crawford2",
			  "crawford3",
			  "index"
			  ];

// pages for the surrealism issue
pagelists[2] = [
			  "index",
			  "bloemoke1",
			  "deculla1",
			  "grummer1",
			  "point1",
			  "bloemoke2",
			  "perchik1",
			  "perchik2",
			  "point2",
			  "perchik3",
			  "perchik4",
			  "perchik5",
			  "perchik6",
			  "deargene1",
			  "valery2",
			  "valery3",
			  "valery1",
			  "deculla2",
			  "hansel2",
			  "hansel1",
			  "yarrow2",
			  "point3",
			  "yarrow3",
			  "yarrow4",
			  "yarrow1",
			  "tanta1",
			  "whalbring2",
			  "hill1",
			  "whalbring3",
			  "whalbring1",
			  "deargene2",
			  "trause1",
			  "brinks1",
			  "deargene3",
			  "serea2",
			  "jones1",
			  "serea1",
			  "stein2",
			  "stein1",
			  "deargene4",
			  "point4",
			  "savich2",
			  "point5",
			  "savich1",
			  "burke2",
			  "burke1",
			  "point6",
			  "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;
			if ( newpage > 0 )
				i = pages.length;
		}
	}
	location = pages[newpage] + ".htm";
}

