m_over_col="background: #D2ECE8  url('../../../images/button4_21.gif') no-repeat  0 0"
m_out_col="background: #8198B9  url('../../../images/button5_21.gif') no-repeat  0 0"
m_down_col="background: #79BEC1  url('../../../images/button6_21.gif') no-repeat  0 0"

m_over_col_tx="#4444ff"
m_out_col_tx="#ffffff"
m_down_col_tx="#000000"

//---------The description---------\\
/*
m_over_col - background of buttons at MouseOver
m_out_col  - background of buttons at MouseOut and initial colors
m_down_col - background of buttons at MouseDown

m_over_col_tx - Color of text in buttons at MouseOver
m_out_col_tx  - Color of text in buttons at MouseOut and initial colors
m_down_col_tx - Color of text in buttons at MouseDown
*/
//----------------------------------\\

dow_key=''

function recolor_butt()
{
len_all=document.all.length
for (i=0; i<len_all; i++)
{
id=document.all[i].id
if (id.indexOf('butt')==0)
	{
	document.all[i].style.background=m_out_col
	document.all[i].style.color=m_out_col_tx
	}
}
}


function document.onmouseover()
{
id=window.event.srcElement.id
if (id.indexOf('butt')==0)
	{
	if(dow_key==id){return}
	document.all[id].style.background=m_over_col
	document.all[id].style.color=m_over_col_tx
	}
}

function document.onmouseout()
{
id=window.event.srcElement.id
if (id.indexOf('butt')==0)
	{
	if(dow_key==id){return}
	document.all[id].style.background=m_out_col
	document.all[id].style.color=m_out_col_tx
	}
}

function document.onmousedown()
{
id=window.event.srcElement.id
if (id.indexOf('butt')==0)
	{
	if(dow_key!=''){
	document.all[dow_key].style.background=m_out_col
	document.all[dow_key].style.color=m_out_col_tx
	}
	dow_key=id
	document.all[id].style.background=m_down_col
	document.all[id].style.color=m_down_col_tx
	}
}


function on()
{
	document.all.button0.style.background=m_down_col;
	document.all.button0.style.color=m_down_col_tx
}

function off()
{
	document.all.button0.style.background=m_out_col
	document.all.button0.style.color=m_out_col_tx
}



