
var line3 = '&nbsp;'; // to be replaced in each file

function myGetElementById(id) {
	var elem = false;
	if (document.getElementById) {
		elem = document.getElementById(id)
	} else if (document.all) {
		elem = document.all[id]
	}
	return elem;
}

function setInnerHTMLById(html, id) {
	if (elem = myGetElementById(id)) {
		elem.innerHTML = html;
	}
}

function unhilite() {
	for (i=1;;i++) {
		if (elem = myGetElementById("i_" + i)) {
			elem.className = null;
		} else { // when we run into an element that doesnt exist
			break; // get the ruck outta here
		}
	}
}
	
function loadMe(link, name, line2) {
	unhilite();
	link.blur();
	link.className = "current";
	html = '<p><img src="' + link.href + '" /></p>' +
	'<h3>' + name + '</h3>';
	if (line2) {
		html += '<p>' + line2 + '</p>';
	}
	html += '<p>' + line3 + '</p>';
	setInnerHTMLById(html, "contentright");
	return false;
}
