// JavaScript Document

var captions = new Array();
captions[0] = "<strong>Sarah Hirschman</strong>, wife of Albert O. Hirschman for whom the prize is named, speaks to SSRC communications director <strong>Mary-Lea Cox</strong> at the inaugural Hirschman Prize ceremony and lecture, held November 1, 2007.";
captions[1] = "Harvard economist <strong>Dani Rodrik</strong>, the first winner of the Albert O. Hirschman Prize, greets <strong>Sarah Hirschman</strong>, who represented her husband at the inaugural Albert O. Hirschman Prize ceremony and lecture.";
captions[2] = "SSRC President <strong>Craig Calhoun</strong> confers with <strong>Sarah Hirschman</strong>, wife of Albert O. Hirschman, at the reception that opened the 2007 Hirschman Prize ceremony and lecture, held at the Princeton Club in New York City.";
captions[3] = "<strong>Sarah Hirschman</strong> with her grandson, <strong>Alex Gourevitch</strong>, and her daughter, <strong>Katie Solomon</strong>, at the 2007 Hirschman Prize ceremony reception.";
captions[4] = "Columbia University economist <strong>Albert Bressand</strong>, SSRC Board member <strong>Gilles Kepel</strong>, and SSRC Board chair <strong>Lisa Anderson</strong> just before the beginning of Dani Rodrik's Hirschman Lecture.";
captions[5] = "Guests at the inaugural Hirschman Prize Ceremony included SSRC Board member <strong>Jim Leach</strong>, seen here talking to <strong>Pat Rosenfield</strong>, the director of the Carnegie Scholars Program at the Carnegie Corporation of New York, and <strong>Hillary Wiesner</strong>, the director of the Carnegie Corporation's Islam Initiative, which the <a href=\"http://www.ssrc.org/press/inauguralcohort040808/\">SSRC takes part in</a>.";
captions[6] = "Board member <strong>John Seely Brown</strong> speaks to new Board member <strong>Ellen Levy</strong> at the reception proceeding the inaugural Hirshman Lecture.";
captions[7] = "SSRC President <strong>Craig Calhoun</strong> delivers opening remarks at the inaugural Hirshman Prize Lecture, November 1, 2007.";
captions[8] = "Board member <strong>Barry Eichengreen</strong>, who chaired the Hirschman Prize selection committee, introduces winner Dani Rodrik, who will deliver the inaugural Hirschman Prize Lecture.";
captions[9] = "<strong>Dani Rodrik</strong> delivers a lecture on &quot;One Economics, Many Recipes: What We Have Learned Since Albert Hirschman.&quot;";
captions[10] = "<strong>Dani Rodrik</strong> accepts the Albert O. Hirschman Prize certificate from SSRC President <strong>Craig Calhoun</strong>.";
captions[11] = "<a href=\"http://nymag.com/nymag/10912/\" target=\"_blank\"><strong>John Heilemann</strong></a>(right), political columnist for New York magazine, conducts an informal Q&amp;A with prize winner <strong>Dani Rodrik</strong> about \"one economics, many recipes.\"";

var photos = new Array();
photos[0] = "015.jpg";
photos[1] = "191.jpg";
photos[2] = "129.jpg";
photos[3] = "204.jpg";
photos[4] = "031.jpg";
photos[5] = "022.jpg";
photos[6] = "143.jpg";
photos[7] = "035.jpg";
photos[8] = "048.jpg";
photos[9] = "103.jpg";
photos[10] = "123.jpg";
photos[11] = "228.jpg";
var last = photos.length-1;

var current = 0;
var currentphoto=photos[current];
var navcopy = "";
var rowcell = 0;
var cellsPerRow = 3;

function loadThumbs() {
	for (i=0; i<=last; i++) {
		if (rowcell == 0) {
			navcopy+="<div class=\"thumbrow\">";
		}
			rowcell++;
		navcopy+="<a href=\"#\"><img src=\"/hirschman/slideshows/"+year+"/photos/"+photos[i]+"\" alt=\""+photos[i]+"\" onClick=\"jump("+i+")\" border=\"0\" class=\"thumbnail\"/></a>";
		if (rowcell == cellsPerRow) {
			rowcell=0;
			navcopy+="</div>";
		}
	}
	with (document) if (getElementById && ((obj=getElementById('thumbs'))!=null))
    	with (obj) innerHTML = unescape(navcopy);	 
}


function nextButton() { //v9.0
  current++;
  if (current>last) current = 0;
  refreshSlide();
}

function prevButton() { //v9.0
  current--;
  if (current<0) current = last;
  refreshSlide();
}

function jump(x) {
  current=x;
  if (current>last) current = 0;
  if (current<0) current = last;
  refreshSlide();
}

function refreshSlide() {
  with (document) {
  	if (getElementById && ((obj=getElementById('slide-caption'))!=null))
    	with (obj) innerHTML = unescape(captions[current]);
  	if (getElementById && ((obj=getElementById('main-slide'))!=null))
    	with (obj) innerHTML = unescape('<a href=\"/hirschman/slideshows/'+year+'/photos/hi-res/'+photos[current]+'\" target=\"_blank\"><img src=\"/hirschman/slideshows/'+year+'/photos/'+photos[current]+'\" alt=\"'+photos[current]+'\"></a>');
	}
}
