var id_interval=null;

function showToolTip(e,text){
	if(document.all)e = event;
	var dhtmlgoodies_tooltipShadow = true;
	var obj = document.getElementById('bubble_tooltip');
	var obj2 = document.getElementById('bubble_tooltip_content');
	obj2.innerHTML = text.replace(/_dq_/g, '"');
	obj.style.display = 'block';
	var st = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
	if(navigator.userAgent.toLowerCase().indexOf('safari')>=0)st=0; 
	var leftPos = e.clientX - 90;
	if(leftPos<0)leftPos = 0;
	obj.style.left = leftPos -100 + 'px';
	//obj.style.top = e.clientY - obj.offsetHeight + 130 + st + 'px';
        obj.style.top = e.clientY + 10 + st + 'px';

}	

function hideToolTip()
{
	document.getElementById('bubble_tooltip').style.display = 'none';
	clearInt();
}

function shutdownOut() {
	var shutdownTimeout = 200;
        if (id_interval) {
//          alert('blokada');
        } else {
	  id_interval = setInterval('hideToolTip()', shutdownTimeout);
        }
}
	 
function clearInt() {
	if (id_interval) {
	    clearInterval(id_interval);
            id_interval=null;                 
	}
}

