addEvent(window,'load',function () { prepChoose(); });
addEvent(window,'load',function () { prepFormatting(); });
function prepChoose() {
	document.getElementById('journalists').style.display = 'block';
	effect = new fx.Width('journalists',{duration:400});
	effect.hide();
	document.getElementById('choose').onclick = function () {
		effect.toggle('width');
		return false;
	}
}

function prepFormatting() {
	var fn = document.getElementById('format_note');
	if (fn) {
		var a = document.createElement('a');
		a.appendChild(document.createTextNode('show formatting tips'));
		a.href = "";
		var f = document.getElementById('formatting');
		feffect = new fx.Height(f,{duration:400});
		feffect.hide();
		a.onclick = function () {
			feffect.toggle('height');
			if (this.innerHTML == 'show formatting tips') this.innerHTML = 'hide formatting tips';
			else this.innerHTML = 'show formatting tips';
			return false;
		}
		fn.appendChild(a);
	}
}
