
function showpic(pic, w, h, tit) {
	pw=window.open('', 'pw', 'height='+h+68+', width='+w+6+', screenX=50, screenY=50, top=50, left=50, toolbar=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes');
	if(!tit) tit='Картинка';
	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+68);
	pw.focus();
}

cit = new Array;
var st = 0;

function show() {
	clearTimeout(st);
	hide();
	for (i=0; i<show.arguments.length; i++) {
//		alert(show.arguments[i]);
		if (!document.all) {
			document.getElementById(show.arguments[i]).style.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.getElementById(cit[i]).style.visibility='hidden';
		} else {
			document.all[cit[i]].style.visibility='hidden';
		}
	}
}


