var appName = "Homeanimation";
var appType = "P";

currentDivID = -1;
timeout = null;
function name_onmouseover(id) {
	if (currentDivID != id) 
		hideCurrentWord();
	clearTimeout(timeout);
	new Effect.Appear('words_' + id, { to: 0.5});
	//new Effect.Fade('words_' + id);
	currentDivID = id;
	document.getElementById('home_right').style.background = 'url(' + backgroundImages[id] + ')';
	document.getElementById('home_right').style.backgroundPosition = 'bottom right';
	
}

function name_onmouseout(id) {
	//alert('ordering hide');
	timeout = setTimeout(hideCurrentWord, 500);
}

function words_onmouseover(id) {
	if (currentDivID != id) 
		hideCurrentWord();
	clearTimeout(timeout);
	document.getElementById('words_' + id).style.visibility = 'visible';
	currentDivID = id;
}

function words_onmouseout(id) {
	//alert('ordering hide');
	timeout = setTimeout(hideCurrentWord, 500);
}

function hideCurrentWord() {
	if (currentDivID > 0) {
		document.getElementById('words_' + currentDivID).style.display = 'none';
		currentDivID = -1;
	}
}







