function openGallery (id, lang) {
	var winLeft = (screen.width - 600) / 2;
	var winTop = (screen.height - 500) / 2;	
	usrwindow = window.open('gallery.php?id=' + id + '&lang=' + lang, 'gallery', 'top=' + winTop + ',left=' + winLeft + ',resizable=no,hotkeys=yes,width=600,height=550');   			
	if (parseInt(navigator.appVersion) >= 4) { usrwindow.focus(); }
}
