function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function swapMainPhoto(photo_id,gal_id){
	changePhotoBorder(photo_id);
	
	url = '/photos/ajax.php?m=ajax&gal_id='+gal_id+'&photo_id='+photo_id

	loadFragmentInToElement(url,'mainPhoto');
}

function changePhotoBorder(photo_id){
	oldPhoto = document.getElementById('thumb_'+currentPhoto);
	oldPhoto.className = '';
	
	newPhoto = document.getElementById('thumb_'+photo_id);
	newPhoto.className = 'curThumb';
	
	currentPhoto = photo_id;
}