function ImgChange (imgName, imgId) {
	document.images[imgId].src = 'http://www.glamour-don.ru/images/' + imgName;
}

function maxpic (name,x,y,head) {
	var win = window.open('','_blank',"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=" + x + ",height=" + y);
	win.document.open("text/html");
	with (win.document) {
	    write("<html><head><title>" + head + "</title><script language='JavaScript'>self.focus()</script></head><body bgcolor='#FFFFFF' leftmargin=0 topmargin=0 marginheight=0 marginwidth=0><a href='#' onclick='window.close()'><img src='" + name + "'");
	    write(" alt='закрыть' border='0'></a></body></html>");
	    close();
	}
}

// fading images
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();
function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
	if (object != "[object]"){  //do this so I can take a string too
	        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
	        return;}

	    clearTimeout(nereidFadeTimers[object.sourceIndex]);
	    diff = destOp-object.filters.alpha.opacity;
	    direction = 1;
	    if (object.filters.alpha.opacity > destOp){
	    direction = -1;}

	    delta=Math.min(direction*diff,delta);
	    object.filters.alpha.opacity+=direction*delta;
	    if (object.filters.alpha.opacity != destOp){
	    nereidFadeObjects[object.sourceIndex]=object;
	    nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);}}
