

function MyCshowDiv (id, tot)
{
var i=1;
for (i=1;i<=tot;i++)
	{
		document.getElementById('myc'+i).style.display = "none";
		document.getElementById('mc'+i).className = "myc";
	}
	document.getElementById('myc'+id).style.display = "block";
	document.getElementById('mc'+id).className = "mycSel";
}

function MyCchCls (id, cls)
{
	if (document.getElementById('myc'+id).style.display != "block")
	{
		document.getElementById('mc'+id).className = cls;
	}
}

function MyRshowDiv (id, tot)
{
var i=1;
for (i=1;i<=tot;i++)
	{
		document.getElementById('myr'+i).style.display = "none";
		document.getElementById('mr'+i).className = "myc";
	}
	document.getElementById('myr'+id).style.display = "block";
	document.getElementById('mr'+id).className = "mycSel";
}

function MyRchCls (id, cls)
{
	if (document.getElementById('myr'+id).style.display != "block")
	{
		document.getElementById('mr'+id).className = cls;
	}
}

function MyTshowDiv (id, tot)
{
var i=1;
for (i=1;i<=tot;i++)
	{
		document.getElementById('myt'+i).style.display = "none";
		document.getElementById('mt'+i).className = "myc";
	}
	document.getElementById('myt'+id).style.display = "block";
	document.getElementById('mt'+id).className = "mycSel";
}

function MyTchCls (id, cls)
{
	if (document.getElementById('myt'+id).style.display != "block")
	{
		document.getElementById('mt'+id).className = cls;
	}
}

function MyAshowDiv (id, tot)
{
var i=1;
for (i=1;i<=tot;i++)
	{
		document.getElementById('mya'+i).style.display = "none";
		document.getElementById('ma'+i).className = "myc";
	}
	document.getElementById('mya'+id).style.display = "block";
	document.getElementById('ma'+id).className = "mycSel";
}

function MyAchCls (id, cls)
{
	if (document.getElementById('mya'+id).style.display != "block")
	{
		document.getElementById('ma'+id).className = cls;
	}
}



scrollStep=1

timerTop=""
timerBottom=""

function scrollDivTop(id){
  clearTimeout(timerBottom) 
  document.getElementById(id).scrollTop+=scrollStep
  timerBottom=setTimeout("scrollDivTop('"+id+"')",10)
}

function scrollDivBottom(id){
  clearTimeout(timerTop)
  document.getElementById(id).scrollTop-=scrollStep
  timerTop=setTimeout("scrollDivBottom('"+id+"')",10)
}

function stopMe(){
  clearTimeout(timerBottom) 
  clearTimeout(timerTop)
}
