function rightProductionMenu (path_prefix, items_count) {
	this.path_prefix = path_prefix;

	this.preloaded_text_selected = new Object ();

	//презагрузка картинок
	for (var i = 1; i <= items_count; i++)
	{
		if (i < 10)
			var tmp = '0' + i;
		else
			tmp = i;

		this.preloaded_text_selected[tmp] = new Image ();
		this.preloaded_text_selected[tmp].src = 'images/menu/' + path_prefix + '/' + tmp + '_text_s.gif'
		//alert (this.preloaded_text_selected[tmp].src);
	}
}

rightProductionMenu.prototype.hoverOn = function (number) {
	document.images['rpm_' + number].src = this.preloaded_text_selected[number].src;
}

rightProductionMenu.prototype.hoverOff = function (number) {
	document.images['rpm_' + number].src = 'images/menu/' + this.path_prefix + '/' + number + '_text.gif';
}

collageHoverOffTimeOut = null;
collageHoverShown = null;

function hoverCollage (alias, state) {
	if (state == true) {
		//тайм-аут
		clearTimeout (collageHoverOffTimeOut);
		
		//скрываем текущий
		if (collageHoverShown != null) {
			document.all[collageHoverShown].style.display = 'none';
			collageHoverShown = null;
		}

		//показываем новый
		document.all[alias].style.display = '';
		document.all['hover_comments'].style.display = 'none';

		collageHoverShown = alias;
	} else {
		collageHoverOffTimeOut = setTimeout ("document.all['" + alias + "'].style.display = 'none';document.all['hover_comments'].style.display = ''", 250);

	}
}
