var enabletip = false;
var ff;

if (navigator.userAgent.indexOf('Firefox') > -1) {
	ff = true;
} else {
	ff = false;
}

function showObrazekInfoText(text) {
	enabletip=true;
	if (document.getElementById('obrazek_popis')) {
		document.getElementById('obrazek_popis').innerHTML = text;
	}
	return false;
}

function hideObrazekInfoText(){
	enabletip=false;
	if (document.getElementById('obrazek_popis')) {
		document.getElementById('obrazek_popis').style.visibility = 'hidden';
		document.getElementById('obrazek_popis').style.top = '-3000px';
	}	
	return false;
}

function Mouse(evnt) {
	if (enabletip) {
		if (!document.getElementById('obrazek_popis')) 
			return false;

		tipobj = document.getElementById('obrazek_popis'); 
			if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {
				theTop = document.documentElement.scrollTop;
				theLeft = document.documentElement.scrollLeft;
			} else if (document.body) {
				theTop = document.body.scrollTop;
				theLeft = document.body.scrollLeft;
			}
	
		if (ff) {
			curY = evnt.pageY - 60;
			curX = evnt.pageX - 10 + 30;
		}
		else {
			//debugger;
			curY = event.clientY - 60 + theTop;
			curX = event.clientX -10 + 30 + theLeft;
		}

		//document.title = curX + 'x'+curY + "-ff:" + ff+",theLeft:" + theLeft;
		//window.title = curX + 'x'+curY + "-ff:" + ff;
		//window.status = curX + 'x'+curY + "-ff:" + ff;
		tipobj.style.left = curX + "px";
		tipobj.style.top = curY + "px";
		tipobj.style.visibility="visible";
		return false;
	}
	return true;
}

