//function for changing the style for the current page class(except the gallery page - see below)
function setActiveLink (linkId_1, clsName) {
 if (document.getElementById) {
  document.getElementById(linkId_1).className=clsName;
  }
}

//function for setting both links on the gallery page to the current page class.
function setActiveLinkGallery (linkId_1, linkId_2, clsName) {
 if (document.getElementById) {
  document.getElementById(linkId_1).className=clsName;
  document.getElementById(linkId_2).className=clsName;
  }
}

//function for opening a new window and displaying a larger image.
var leftPos = 0
var tall = 0
if (screen) {
	leftPos = screen.width/2-313;
	//tall = screen.height-135;
}
function newWindow(url,width,height) {
		popupWindow = window.open(url, 'newWin', 'scrollbars=yes,width='+width+',height='+height+',left='+leftPos+',top=75,resizable=yes')
	popupWindow.focus();
	}
	
	

