
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *	homegraphcal - the ORIGINAL unmodified code
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

// Load xmlhttprequest object
if (document.all) {
	this.homegraphxml = new ActiveXObject("Microsoft.XMLHTTP");
}
if (!this.homegraphxml && typeof XMLHttpRequest != 'undefined') {
	try {
		this.homegraphxml = new XMLHttpRequest();
	} catch (e) {
		this.homegraphxml = false;
	}
}


function homegraphcal_load(date) {
	this.homegraphxml.open("GET", homegraphurl + date, true);
	this.homegraphxml.onreadystatechange = function() {
		if (homegraphxml.readyState == 4) {
			calElem = document.getElementById('homegraphcal');
			calElem.innerHTML = homegraphxml.responseText;
		}
	};
	this.homegraphxml.send(null);
}

function homegraphcal_dayover(dayOfWeek) {
	floatContentElem = document.getElementById('homegraph_' + dayOfWeek);
	floatContainerElem = document.getElementById('homegraphcal_floatcont');
	if (floatContentElem) {
		floatContainerElem.style.display = 'block';
		floatContainerElem.innerHTML = floatContentElem.innerHTML;
	}
}

function homegraphcal_dayout(dayOfWeek) {
	floatContainerElem = document.getElementById('homegraphcal_floatcont');
	floatContainerElem.style.display = 'none';
}

