//---------------------------------------------------------------------
function load_img(id, h, w)
{
	var l = (screen.width  - w)/2;
 	var t = (screen.height - h)/2;
	window.open('/img.php?img='+id, '', 'resizable=yes,scrollbars=yes,height='+h+',width='+w+',top='+t+',left='+l);
}
//---------------------------------------------------------------------
function show_hide(id)
{
	obj = document.getElementById(id);
	if (obj.style.display == 'block')
		obj.style.display = 'none';
	else
		obj.style.display = 'block';
}
//---------------------------------------------------------------------
function Ver3(theForm)
{if (theForm.title.value == "")
{alert("Вы забыли написать тему сообщения сообщения  "); theForm.title.focus(); return (false)}
if (theForm.content.value == "")
{alert("Вы забыли написать текст сообщения  "); theForm.content.focus(); return (false)}
if (theForm.email.value == "")
{alert("Пожалуйста, введите свой e-mail"); theForm.email.focus();return (false);}
else
{re = /^\w+@\w+\.[a-z]{2,4}$/; qq=re.exec(theForm.email.value);
if (!qq) {alert("Неправильный формат e-mail адреса! "); theForm.email.focus(); return (false);}}
}
//---------------------------------------------------------------------

	hs.graphicsDir = '/highslide/highslide/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.outlineType = 'rounded-white';
	hs.fadeInOut = true;
	hs.showCredits = false;
	hs.dimmingOpacity = 0.75;
    hs.autosize=false;
    hs.allowSizeReduction = false;
    hs.padToMinWidth = true;
    hs.minHeight= 600;
	// define the restraining box
	//hs.useBox = true;
	//hs.width = 640;
	//hs.height = 480;

	// Add the controlbar
	hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
			opacity: 1,
			position: 'bottom center',
			hideOnMouseOut: true
		}
	});
	hs.lang = {
loadingText : 'Загрузка...',
fullExpandTitle : 'Развернуть до полного размера',
restoreTitle : 'Кликните для закрытия картинки, нажмите и удерживайте для перемещения',
focusTitle : 'Сфокусировать',
loadingTitle : 'Нажмите для отмены'
};
