function getSize(valores,dim) {
	size = valores.split(",");
	if (dim == "w") {
		return size[0];
	} else if (dim == "h") {
		return size[1];
	}
}

function popFoto(foto) {
	if (foto == 1) {
		window.open("pop_"+secaoAtual+"_"+(imgAtual+1)+".htm","","width="+getSize(popSizes[imgAtual],'w')+",height="+getSize(popSizes[imgAtual],'h'))
	} else if (foto == 2) {
		window.open("pop_"+secaoAtual+"_"+(imgAtual+2)+".htm","","width="+getSize(popSizes[imgAtual+1],'w')+",height="+getSize(popSizes[imgAtual+1],'h'))
	}
}

