var prid = 0;
function zoom(id, width, height)
{
	if (prid > 0)
	{
		primg = $('#pr'+prid+' > a > img');
		primg.css('width','176px');
		primg.css('height','208px');
		
		prdiv = $('#pr'+prid+' > div');
		div.css('top','192px');
		div.css('width','176px');
		div.css('background','#000000 url(/img/zoomin.gif) left no-repeat');
		prdiv.html('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;увеличить');
	}

	if (prid != id)
	{
		img = $('#pr'+id+' > a > img');
		img.css('width',width+'px');
		img.css('height',height+'px');
		
		div = $('#pr'+id+' > div');
		topheight = height-16;
		div.css('top',topheight+'px');
		div.css('width',width+'px');
		div.css('background','#000000 url(/img/zoomin.gif) left no-repeat');
		div.html('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;уменьшить');
		prid = id;
	}
	else
	{
		prid = 0;
	}
		return true;
}
