				function zoomFoto(img){
					  foto= new Image();
					  foto.src=(img);
					  checkFoto(img);
		  
				}
				function checkFoto(img){
				  if((foto.width!=0) && (foto.height!=0)){
				    viewFoto(img);
				  }
				  else{
				    func="checkFoto('"+img+"')";
				    intervalo=setTimeout(func,20);
				  }
				}
				function viewFoto(img){
				  largura=foto.width+20;
				  altura=foto.height+20;
				  s="width="+largura+",height="+altura;
				  final=window.open(img,"",s);
				}