function him(im) { im.src = '/i/ico-home-a.gif'; }
function hio(im) { im.src = '/i/ico-home.gif'; }


function photo(src, width, height, title)
{
	width += 100;
	height += 110;
        var html = '<head><meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />';
	html += '<title>' +title+ '</title>';
	html += '<link rel="shortcut icon" href="http://altash.uz/i/altash-fav.gif?4" />';
	html += '<link rel="icon" href="http://altash.uz/i/altash-fav.gif?4" />';
	html += '<link href="/i/style.css" rel="stylesheet" type="text/css" />';
	html += '</head><body leftmargin="0" topmargin="0" bottommargin="0" rightmargin="0" bgcolor="#ffffff">';
	html += '<table width="100%" cellspacing="5" cellpadding="0" border="0" id="content" style="padding: 0; margin: 0"><tr><td align="center">';
	html += '<br /><h1>' + title + '</h1>';
	html += '<img src="' + src + '" border="0"><br /><br />';
	html += '<input type="button" class="submit" value="Закрыть окно" onclick="window.close()" /><br />';
	html += '</td></tr></table>';
	html += '</body></html>';
	r = new String(Math.round(Math.random()*100000));
	var wnd = window.open('', 'altash_'+r, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=auto, titles=no, width=' + width + ', height=' + height);
        wnd.document.write(html);
	return false;
}
