var testObj;
// functions to cause homepage text to fade-in 
function initFade(textid)
{
	var obj1, obj2, obj3, obj4;
	obj1 = document.getElementById('homeText1');
	//obj2 = document.getElementById('homeText2');
	obj3 = document.getElementById('homeText3');
	obj4 = document.getElementById('homeText4');
	// first time user clicks a link display texts background boxes
	document.getElementById('homeTextContainerOpaque').style.visibility = 'visible';
	document.getElementById('homeTextContainer').style.visibility = 'visible';

	// hide everything
	obj1.style.visibility = 'hidden';
	obj1.style.opacity = 0;
	obj1.style.filter = 'alpha(opacity=0)';
	//obj2.style.visibility = 'hidden';
	//obj2.style.opacity = 0;
	//obj2.style.filter = 'alpha(opacity=0)';
	obj3.style.visibility = 'hidden';
	obj3.style.opacity = 0;
	obj4.style.filter = 'alpha(opacity=0)';
	obj4.style.visibility = 'hidden';
	obj4.style.opacity = 0;
	obj4.style.filter = 'alpha(opacity=0)';

	// now show 1 of the text blocks and fade it in
	switch (textid)
	{
		case 'homeText1':
			obj1.style.visibility = 'visible';
		break;
		//case 'homeText2':
		//	obj2.style.visibility = 'visible';
		//break;
		case 'homeText3':
			obj3.style.visibility = 'visible';
		break;
		case 'homeText4':
			obj4.style.visibility = 'visible';
		break;		
	}
	testObj = document.getElementById(textid);
	for (var i=0;i<11;i++)
		setTimeout('setOpacity('+i+')',100*i);
}

function setOpacity(value)
{
	testObj.style.opacity = value/10;
	testObj.style.filter = 'alpha(opacity=' + value*10 + ')';
}
