var wnd=0;

function view(i,w,h,bid) {
	if (!w) {
		w=screen.width-10;
	} else {
		if (bid) {
			w+=300;
		}
	}
	if (!h) {
		h==screen.height-30;
	} else {
		h+=6;
	}
	l=(screen.width-w)/2;
	t=(screen.height-h)/2;
	if (wnd) wnd.close();
	wnd=open('','sys_portfolio','resizable=1,width='+w+',height='+h+',top='+t+',left='+l+',status=0,toolbar=0,menubar=0,directories=0,location=0');
	with (wnd.document) {
		write('<html><head>\
		<link rel=stylesheet href=images/styles.css type=text/css>\
		<link rel=stylesheet href=images/styles_s.css type=text/css>\
		<title>Õóäîæåñòâåííûå òåàòðàëüíûå ìàñòåðñêèå - ÂÕÓÒÅÌÀÑ - ÐÀÁÎÒÛ</title>\
		</head>\
		<body bgcolor=#F4EED4 topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>\
		<table width=100% height=100%>\
		<tr><td width=top align=center>\
		<img src='+i+' border=0>\
		</td></tr>\
		</table>\
		</body></html>');
// <td valign=top width=100%><p>'+descriptions[bid]+'</p></td>
	}
}