cit = new Array;
var st = 0;
function show() {
	clearTimeout(st);
	hide();
	for (i=0; i<show.arguments.length; i++) {
//		status = show.arguments[i];
		if (!document.all) {
			document.layers[show.arguments[i]].visibility='visible';
		} else {
			document.all[show.arguments[i]].style.visibility='visible';
		}
	}
	cit = show.arguments;
}

function hide() {
	for  (i=0; i<cit.length; i++) {
		if (!document.all) {
			document.layers[cit[i]].visibility='hidden';
		} else {
			document.all[cit[i]].style.visibility='hidden';
		}
	}
}

function showpic(pic, w, h, tit) {
	pw=window.open('', 'pw', 'height='+h+28+',width='+w+6+',screenX=50,screenY=50,top=50,left=50,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
	buf = '<html><head><title>'+tit+'</title></head><body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0><a href=# onClick=self.close()><img src='+pic+' alt="Ùåëêíèòå íà êàðòèíêå, ÷òîáû çàêðûòü îêíî" border=0></a></body></html>'
	pw.document.write(buf);
	pw.document.close();
	pw.resizeTo(w+6, h+28);
	pw.focus();
}

