function iw(imgThumb, w, h, desc, img, imgWidth, imgHeight)	{
	iwin(imgThumb, w, h, desc, img, imgWidth, imgHeight, "Svetlana Vetrova");
}
function iwt(imgThumb, w, h, desc, img, imgWidth, imgHeight)	{
	iwin(imgThumb, w, h, desc, img, imgWidth, imgHeight, desc);
}
function iwin(imgThumb, w, h, desc, img, imgWidth, imgHeight, wTitle)	{
//	alert("/www/js/img.js: wTitle = " + wTitle);
	var	s = "";
	if (desc)	s += "<div class=center>";
	s += "<a href=\"javascript:ipop('" + img + "',";
	s += imgWidth + "," + imgHeight + ",'" + wTitle + "')\"";
	s += " onMouseOver=\"status='" + desc + "';return true\"";
	s += " onMouseOut=\"status='';return true\">";
	s += "<img border=0 src='";
	s += imgThumb + "'";
	if (w)	s += " width=" + w;
	if (h)	s += " height=" + h;
	s += " title='" + desc + "'";
	s += " alt='" + desc + "' oncontextmenu=\"return false\"></a>";
	if (desc)	{
		s += "</div><div class=imgtxt>";
		s += desc;
		s += "</div>";
	}
	document.write(s);
}
function ipop(img, imgW, imgH, wTitle) {
	var	w = imgW;
	var	h = imgH;
	var	maxW = 1004;
	var	maxH = 800;	//	758;
	var	resize = 0;
	var	scrollbar = 0;
	if (w > maxW) {
		w = maxW;
		resize = 1;
		scrollbar = 1;
	}
	if (h > maxH) {
		h = maxH;
		resize = 1;
		scrollbar = 1;
	}
	var	wProps = "toolbar=0,width="+w
				+",height="+h
				+"status=0,location=0,scrollbars="+scrollbar
				+",resizable="+resize
				+",menubar=0";
	var	s = "<html><head>";
	s += "<title>" + wTitle + "</title>";
	s += "</head>"
	s += "<body style='margin-left: 0; margin-top: 0; margin-right:0; margin-bottom:0'";
	s += "><center><img src='" + img + "'>";
	s += "</center></body></html>";
	preview = window.open("", "_blank", wProps);
	preview.document.open();
	preview.document.write(s);
	preview.document.close();
}
function iurl(isNewWin, classID, img, w, h, url, desc)	{
	var	s = "<a";
	if (classID != "") s += " class=" + classID;
	s += " href=" + url;
	if (isNewWin)	s += " target='_blank'";
	s += " onMouseOver=\"status='" + desc + "';return true\"";
	s += " onMouseOut=\"status='';return true\"";
	s += "><img border=0 src=" + img + " align='absmiddle'";
	if (w)	s += " width=" + w;
	if (h)	s += " height=" + h;
	s += " title='" + desc + "'";
	s += " alt='" + desc + "'></a>";
	document.write(s);
}
function inav(desc, url, img, w, h)	{
	var	s = "<span class=nav><a class=item href=\"" + url;
	s += "\" onMouseOver=\"status='" + desc + "';return true\"";
	s += " onMouseOut=\"status='';return true\"";
	s += "><img border=0 src=\"" + img + "\" width=\"" + w + "\" height=" + h;
	s += " title='" + desc + "'";
	s += "\" alt=\"" + desc + "\"></a></span>";
	document.write(s);
}

