function swapImage(id){
	//change which link has the border in thumbs
	swapThumbBorder(id);
	
	//create vars to reference elements
	var image = document.getElementById('image_'+id);
	var mainImage = document.getElementById('mainImg');
	
	//change main image source
	mainImage.src = image.src;
}
function swapThumbBorder(id){
	//create vars to reference needed elements
	oldThumb = document.getElementById('iLink_'+currentImage);
	newThumb = document.getElementById('iLink_'+id);
	
	//remove old border
	oldThumb.className = '';
	//add new border
	newThumb.className = 'current';
	//update current variable
	currentImage = id;
}
function fncCenteredChildWindow(URL,vHeight,vWidth,vScroll,vStatus) {
	if (screen.width) {
		var winl=(screen.width-vWidth)/2;
		var wint=(screen.height-vHeight)/2;
	} else { 
		winl=0;wint=0;
	}
	if(winl<0)winl=0;
	if(wint<0)wint=0;
	var child = window.open(URL,'myWin','height='+vHeight+',width='+vWidth+',scrollbars='+vScroll+',status='+vStatus+',top='+wint+',left='+winl+',resizable=yes');
	child.focus();
}