Month = new Array('января', 'февраля', 'марта', 'апреля', 'майя', 'июня', 'июля', 'августа', 'сентября', 'октября', 'ноября', 'декабря');
//---------------------------------------------------------------------
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);
}
//---------------------------------------------------------------------
	hs.graphicsDir = '/highslide/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.outlineType = 'rounded-white';
	hs.fadeInOut = true;
	hs.dimmingOpacity = 0.75;

	// 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
		}
	});

//---------------------------------------------------------------------
function findOffsetTop (o) {
  var x = o.offsetLeft, y = o.offsetTop;
  while (o = o.offsetParent) {
     x += o.offsetLeft;
     y += o.offsetTop;
  }
  return {left:x, top:y};
};
//---------------------------------------------------------------------
function popupMenu (pObj, displ)
{
	size = findOffsetTop(pObj);
	w = pObj.offsetWidth;
	h = pObj.offsetHeight;
	offset = findOffsetTop(pObj);
	obj = pObj.getElementsByTagName('div')[0];
	lpx = offset.left+w-parseInt(obj.style.width);
	if (lpx < 0)
	{
		lpx = offset.left;
	}
	obj.style.width = (w+10) + 'px'
	obj.style.left = (lpx+4) +'px';
	obj.style.top = (offset.top+h)+'px';
	obj.style.display= displ;
}
//---------------------------------------------------------------------
//---------------------------------------------------------------------

