/*
* Autor: Alexandre (amf) - web@amfdesigner.com
*
* Funcao usada para trabalhar com zoom de imagens
* Parametros: a - objeto
*/
function imageZoom(a) {
	var p = a.parentNode;
	if(p.className == 'fotoOut') {
		p.className = 'fotoIn';
		if(a.title != '') {
			var i = a.getElementsByTagName('IMG');
			var t = document.createElement('P');
			t.className = 'fotoLegenda';
			t.style.width = (i[0].width - 5) + 'px';
			t.appendChild(document.createTextNode(a.title) );
			a.appendChild(t);
			a.title = '';
		}
	}else {
		p.className = 'fotoOut';
		var t = a.getElementsByTagName('P');
		if(t[0]) {
			a.title = t[0].innerHTML;
			a.removeChild(t[0]);
		}
	}
}
