function show_photo_alt(image_url,image_alt,text)
{
	var html = 
							'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">' +
						 '<html><head><title>Фотография</title>' +
						 '<style type="text/css">' +
						 '<!--' +
						 'table.photo{color:#806043; margin:1em; font-size:85%}' +
						 'table.photo a {color:#863920}' +
						 'table.photo td.photo {text-align:center; border-bottom:2px solid #8e0913; padding-bottom:5px}' +
							'table.photo td.text {background:url(/f/i/repertoire/bgflourish_s.gif) transparent 95% -2px no-repeat; padding-top:2px; border-top:1px solid #8e0913; text-align:left}' +
						 '-->' +
						 '</style></head>'+
	      '<body style="margin:0; padding:0; background:url(\'/i/loading.gif\') #fff6e9 center 150px no-repeat">' +
						 '<table border="0" align="center" cellpadding="0" cellspacing="1" class="photo">' + '<tr><td class="photo">' +
       '<img src="' + image_url + '" alt="'+image_alt+'" '+' name="photo" onload="window.moveTo(Math.round((screen.availWidth-document.photo.width)/2), Math.round((screen.availHeight-document.photo.height)/2));window.resizeTo(document.photo.width+40, document.photo.height+130)">' +
       '</td></tr>'+
							'<tr><td class="text">'+text+'</td></tr></table></body></html>';
		
	var width = 500, height = 300;
	var top = Math.round((screen.availHeight-height)/2),
		left = Math.round((screen.availWidth-width)/2);
	var popup_window = window.open('', 'win_photo', 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar=0,location=0,directories=0,menuBar=0,scrollbars=auto,resizable=1');
popup_window.document.open();
popup_window.document.write(html);
popup_window.document.close();
popup_window.focus();
}

function show_image(image_url)
{
	var html = '<html style="height:100%"><head><title>Фотография</title></head><body style="background:url(\'/i/loading.gif\') #fff6e9 center center no-repeat; height:100%" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">' +
		'<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0"><tr valign="middle"><td align="center">'+
		'<img src="' + image_url + '" alt="'+image_url+'" '+
		' name="photo" onload="window.moveTo(Math.round((screen.availWidth-document.photo.width)/2), Math.round((screen.availHeight-document.photo.height)/2));window.resizeTo(document.photo.width+20, document.photo.height+70)">' +
		'</td></tr></table></body></html>';
	var width = 600, height = 400;
	var top = Math.round((screen.availHeight-height)/2),
		left = Math.round((screen.availWidth-width)/2);
	var popup_window = window.open('', 'win_photo', 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar=0,location=0,directories=0,menuBar=0,scrollbars=auto,resizable=1');
popup_window.document.open();
popup_window.document.write(html);
popup_window.document.close();
popup_window.focus();
}


function show_image_photo(image_url)
{
	var html = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">' +
						 '<html><head><title>Фотография</title>' +
						 '<meta http-equiv="content-type" content="text/html; charset=windows-1251">' +
             '<style type="text/css">' +
						 '<!--' +
						 'table.photo_center{color:#806043; text-align:center; padding:0; margin:0.5em; font-size:85%}' +
						 'table.photo_center a {color:#863920}' +
						 'table.photo_center img {border-bottom:2px solid #8e0913; padding-bottom:10px; margin-bottom:0.5em}' +
						 '-->' +
						 '</style></head>'+
	           '<body style="margin:0; padding:0; background:url(\'/i/loading.gif\') #fff6e9 center center no-repeat">' +
						 '<table class="photo_center" align="center"><tr><td>' +
             '<img src="' + image_url + '" alt="'+image_url+'" '+
             ' name="photo" onload="window.moveTo(Math.round((screen.availWidth-document.photo.width)/2), Math.round((screen.availHeight-document.photo.height)/2));window.resizeTo(document.photo.width+60, document.photo.height+90)">' +
             '</td></tr></table></body></html>';
		
	var width = 600, height = 400;
	var top = Math.round((screen.availHeight-height)/2),
		left = Math.round((screen.availWidth-width)/2);
	var popup_window = window.open('', 'win_photo', 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar=0,location=0,directories=0,menuBar=0,scrollbars=auto,resizable=1');
popup_window.document.open();
popup_window.document.write(html);
popup_window.document.close();
popup_window.focus();
}

function show_image_photo1(image_url)
{
	var html = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">' +
						 '<html><head><title></title>' +
						 '<meta http-equiv="content-type" content="text/html; charset=windows-1251">' +
             '<style type="text/css">' +
						 '<!--' +
						 'table.photo_center{color:#806043; text-align:center; padding:0; margin:0.5em; font-size:85%}' +
						 'table.photo_center a {color:#863920}' +
						 'table.photo_center img {border-bottom:2px solid #8e0913; padding-bottom:10px; margin-bottom:0.5em}' +
						 '-->' +
						 '</style></head>'+
	           '<body style="margin:0; padding:0; background:url(\'/i/loading.gif\') #fff6e9 center center no-repeat">' +
						 '<table class="photo_center" align="center"><tr><td>' +
             '<img src="' + image_url + '" alt="'+image_url+'" '+
             ' name="photo" onload="window.moveTo(Math.round((screen.availWidth-document.photo.width)/2), Math.round((screen.availHeight-document.photo.height)/2));window.resizeTo(document.photo.width+60, document.photo.height+90)">' +
             '</td></tr></table></body></html>';
		
	var width = 600, height = 400;
	var top = Math.round((screen.availHeight-height)/2),
		left = Math.round((screen.availWidth-width)/2);
	var popup_window = window.open('', 'win_photo1', 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1');
popup_window.document.open();
popup_window.document.write(html);
popup_window.document.close();
popup_window.focus();
}

function show_image_photo2(image_url,image_url_big)
{
	var html = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">' +
						 '<html><head><title></title>' +
             '<meta http-equiv="content-type" content="text/html; charset=windows-1251">' +
             '<script type="text/javascript" src="/f/js/user.js"></script>' +
						 '<style type="text/css">' +
						 '<!--' +
						 'table.photo_center{color:#806043; text-align:center; padding:0; margin:0.5em; font-size:85%}' +
						 'table.photo_center a {color:#863920}' +
						 'table.photo_center img {border-bottom:2px solid #8e0913; padding-bottom:10px; margin-bottom:0.5em}' +
						 '-->' +
						 '</style></head>'+
	           '<body style="margin:0; padding:0; background:url(\'/i/loading.gif\') #fff6e9 center center no-repeat">' +
						 '<table class="photo_center" align="center"><tr><td>' +
             '<a onclick="javascript:show_image_photo1(\'' + image_url_big + '\');return false" href="' + image_url_big + '" target="_blank"><img border="0"  src="' + image_url + '" alt="'+image_url+'"' +
             ' name="photo" onload="window.moveTo(Math.round((screen.availWidth-document.photo.width)/2), Math.round((screen.availHeight-document.photo.height)/2));window.resizeTo(document.photo.width+60, document.photo.height+90)"></a>' +
             '</td></tr></table></body></html>';
		
	var width = 600, height = 400;
	var top = Math.round((screen.availHeight-height)/2),
		left = Math.round((screen.availWidth-width)/2);
	var popup_window = window.open('', 'win_photo', 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');
popup_window.document.open();
popup_window.document.write(html);
popup_window.document.close();
popup_window.focus();
}


function show_scheme(image_url)
{
	var html = '<html style="height:100%"><head><title>Схема зрительного зала</title></head><body style="background:url(\'/i/loading.gif\') #fff6e9 center center no-repeat; height:100%" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">' +
		'<img src="' + image_url + '" alt="'+image_url+'" '+' name="photo">' +
		'</body></html>';
	var width = 720, height = 500;
	var top = Math.round((screen.availHeight-height)/2),
		left = Math.round((screen.availWidth-width)/2);
	var popup_window = window.open('', 'win_photo', 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1');
popup_window.document.open();
popup_window.document.write(html);
popup_window.document.close();
popup_window.focus();
}

///////////////////////////////////////////////////

var NavigatorName = navigator.appName;
var NavigatorVersion = navigator.appVersion;
var browser_ok = ((NavigatorName != "Microsoft Internet Explorer") || (NavigatorVersion.substring(0,3) != "2.0"));
var brOk = ((NavigatorName != "Microsoft Internet Explorer") || (NavigatorVersion.substring(0,3) != "2.0"));
var images_enabled = document.images ? true : false;
var picVis = document.images ? true : false;
var images = new Array();
var last_id = -1;
var photo_id = "";
var i=4;

function mout()
{	
	if (last_id != -1)
	{	
	clearInterval(highlight);
	if (images_enabled && browser_ok)
			{
				document.images[photo_id].style.top = "0px";
}
	last_id = -1;
	photo_id = "";
	}
}

function highlight(id)
{
last_id = id;
if (images_enabled && browser_ok)
	{
		photo_id = 'ph' + last_id;
		document.images[photo_id].style.top = "-5px";
	}
else
		{
			
			if (window.highlight)
				clearInterval(highlight);
		}
}
