
function openAlbum(albumNum) {

	winHeight = Math.round(.80 * screen.availHeight)
	winWidth  = Math.round(.80 * screen.availWidth)

	fromTop  = Math.round((screen.availHeight - winHeight)/2)
	fromLeft = Math.round((screen.availWidth  - winWidth)/2)

	//fromTop = 5
	//fromLeft = 5

	//alert("screen = " + screen.availWidth + "x" + screen.availHeight + "\n" +
	//	  "window = " + winWidth + "x" + winHeight + "\n" +
	//	  "left = " + fromLeft + "   top = " + fromTop)


	//set vertical distance halfway from top
	//fromTop = (screen.availHeight/2)-(height/2)

	//open 400xHeight, 200 from left, halfway from top w/ scroll
	features = "width=" + winWidth + "px,height=" + winHeight + "px"
	features = features + ",left=" + fromLeft + "px,top=" + fromTop + "px"
	features = features + ",scrollbars,resizable"

	albumUrl = "http://www.flickr.com/photos/vidasocial/sets/" + albumNum + "/show"

	newWindow = window.open(albumUrl, "album"+albumNum, features)

	newWindow.focus()

}
		