// JavaScript Document

//var originalColor;
//var hotColor='red';

function receiveContent() {
	if (http.readyState == 4) {
		if(trace) alert(http.responseText);
		var obj = document.getElementById("content");
		obj.style.padding="10px";
		obj.innerHTML = http.responseText;
	} 
}

function requestContent(url) {
	//debug(url);
	var handler = "receiveContent";
	sendAjax(url,handler);
}

function hotLink(obj) {
	//originalColor=obj.style.color;
	//obj.style.color=hotColor;
	//obj.style.fontWeight='bold';
	obj.className="hotLink";
}

function coldLink(obj) {
	//obj.style.color=originalColor;
	//obj.style.fontWeight='normal';
	obj.className="coldLink";
}

function debug(str) {
	if(trace) alert(str);
}
