/*
This file iterates over the document (if punaAPI is instantiated) to make sure any <tag @info></tag> includes a <span class='quest'>(?)</span>
*/

try {
	if (puna) {
		puna.walktree(document, findInfo);
	}
} catch (ex) {}

function findInfo(e) {
	if (e.getAttribute('info')) {
		if (e.tagName != 'INPUT') {
			var s = e.appendChild(document.createElement('span'));
			s.className = 'quest';
			s.innerHTML = '&nbsp;(?)';
		} else {
		    if (e.type = "BUTTON") {
		        e.value += " (?)";
		    }
		}
	}
}
