function $(elm) {
	return document.getElementById(elm);
}

function padInt(num) {
	var str = num.toString();
	if (str.length == 1)
		return "0" + str;
	
	return str;
}

window.onload = function() {
	i = 1;
	
	do {
		var clicker = $("click_expand_" + padInt(i++));		
		
		if (clicker) {
			clicker.onclick = function() {
				var index = this.id.slice(13);
				this.style.display = "none";
				$("target_expand_" + index).style.display = "inline";
				return false;
			}
		}
	} while (clicker)
}