var newWindow = null;



function giddy_up(album, mucho){
	leftPos = 0;
	topPos = 0;
	
	if(screen){
		leftPos = (screen.width-340)/2;
		topPos = (screen.height-380)/2;
	}
		newWindow = window.open("pics/" + album + ".html", "Album", "scrollbars=" + mucho + ",width=340,height=380,left="+leftPos+",top="+topPos);
	newWindow.focus()
}

function closeWindow(){
	if(newWindow != null){
		
		newWindow.close();
		newWindow = null;
	}
}
