function updatePT(img)
{
	if (img)
		img.parentNode.parentNode.loaded = 1;
	v = 0;
	c = 0; cc = 0;
	d = document.getElementsByTagName('p');
	for (n = 0; n < d.length; n ++)
	{
		if (d[n].className != 'item-img')
			continue;
		if (d[n].loaded)
			c ++;
		var w = d[n].parentNode.offsetHeight + 15;
		if (w > v)
			v = w;
		cc ++;
	}
	if (cc == c)
	{
		for (n = 0; n < d.length; n ++)
		{
			if (d[n].className != 'item-img')
				continue;
			var w = d[n].parentNode.offsetHeight + 15;
			d[n].style.paddingTop = (v - w) + 'px';
		}
	}
}
