// This file scans nodes for an expand marker "{+}".
// It then adds the remainder into a hidden span, which is revealed when "see more" is clicked.
document.observe("dom:loaded", function () {
	var mynodes = $$('.text');
	mynodes.each (function(node){
		if (node.innerHTML.match(/{\+}/)) {
			var newHTML = node.innerHTML;
			newHTML = newHTML.replace(/{\+}/, ' <a href="#" onclick="Effect.Fade(this);Effect.Appear(this.nextSibling);return false;" class="expandlink">'+snippet('miscexpandmore')+'</a><span class="expandblock" style="display:none;"> ');
			newHTML = newHTML.replace(/$/, '</span>');
			node.innerHTML = newHTML;
			if (dtas_updateLinks) dtas_updateLinks();
		}	
	});
});

