var timeOutHide1;
var timeOutHide2;
var timeOutHide3;
var timeOutHide4;
function flip(obj){   
	s = obj.className;
	if (s.substr(s.length-1,1) == "H") {   
		// Falls die CSS-Klasse am Schluss ein "H" für Highlighted hat, dann entferne das H
		obj.className = s.substr(0,s.length-1);
	} 
	else { 
		// andernfalls setze das "H"
		obj.className = obj.className + 'H';
	}
}

function showText(intText){
	var tiou = eval('timeOutHide' + intText);
	if(tiou) clearTimeout(tiou);
	var divInfo = document.getElementById('divInfo' + intText);
	if(divInfo){
	 	divInfo.style.display = 'block'; 
	}
}

function hideText(intText){
	var tiou = eval('timeOutHide' + intText);
	if(tiou != null) clearTimeout(tiou);
	switch(intText){
		case 1:
			timeOutHide1 = setTimeout('hideIt('+intText+')', 0);
			break;
		case 2:
			timeOutHide2 = setTimeout('hideIt('+intText+')', 0);
			break;
		case 3:
			timeOutHide3 = setTimeout('hideIt('+intText+')', 0);
			break;
		case 4:
			timeOutHide4 = setTimeout('hideIt('+intText+')', 0);
			break;			
	}
}

function hideIt(intText){
	var divInfo = document.getElementById('divInfo' + intText);
	if(divInfo){
		divInfo.style.display = 'none'; 
	}
}