	var cur_selected;
	function SGalChangePhoto(photo_html, small_img){
		obj_td = GetObj('big_f');
		obj_td.innerHTML = photo_html;
		
		obj_prev = GetObj(cur_selected);
		obj_prev.style.border = '0';

		obj_current = GetObj(small_img);			
		obj_current.style.border = '0';
		
		cur_selected = small_img;
	}
	
	
	var DOM = (typeof(document.getElementById) != 'undefined');

function GetObj(objId){
	if(!DOM) return false;	
	return document.getElementById(objId);
}