
var t;
var isOpen;

function showLiveNext(row,channel)
{
//$('#LiveNext'+row).show("fast");
hideAllLiveNext();
clearTimeout(t);
if (document.getElementById('LiveNext'+row))
	{
	document.getElementById('LiveNext'+row).style.display = 'block';
	}
}


function FillLiveNext(row,channel)
{
$.get("ajax_tvNext.asp",{chid:channel,i:row} ,function(data){
	if (data.indexOf("<!--isOk-->")>=0)
		{
			$('#LiveNext'+row).html(data);
		}
 });
}


function hideLiveNext(row)
{
clearTimeout(t);
//setTimeout(function() {$('#LiveNext'+row).hide("fast");}, 500); 
t = setTimeout("hideMeLiveNext("+row+")", 150); 
isOpen = true;
}
function hideLiveNext2(row)
{
//document.getElementById('LiveNext'+row).style.display = "none";
hideMeLiveNext("+row+");
isOpen = false;
}


function keepItLiveNext()
{
if (isOpen)
	{
	clearTimeout(t);

	}
}


function hideAllLiveNext()
{

var i=0;
for (i=0;i<=12;i++)
{
	if (document.getElementById('LiveNext'+i))
	{
		document.getElementById('LiveNext'+i).style.display = "none";
	}

}

}

function hideMeLiveNext(row)
{
if (document.getElementById('LiveNext'+row))
	{
		document.getElementById('LiveNext'+row).style.display = "none";
	}
}