/*
*  Front page function, does the roll-over bits for the user boxes. 
*/

function fpuOff(whichone)
{
document.getElementById(whichone).style.border="1px dotted";
document.getElementById(whichone).style.padding="2px";
uhrow(whichone,'inherit');
}
function fpuOff2(whichone)
{
document.getElementById(whichone).style.border="1px dotted";
document.getElementById(whichone).style.padding="2px";
uhrow(whichone,'#c0ffff');
}

function fpuOn(whichone)
{
document.getElementById(whichone).style.border="solid";
document.getElementById(whichone).style.padding="0px";
hrow(whichone);
}

/*
*  Generic function, changes/unchanges the background element color of an item.
*/


function hrow(whichone)
{
document.getElementById(whichone).style.background="#e0e0ff";
}

function uhrow(whichone , oldcolor)
{
document.getElementById(whichone).style.background=oldcolor;

}

function togglebox(whichone)
{
if (document.getElementById(whichone).style.display=="none") 
	{ 
document.getElementById(whichone).style.display="block";
document.getElementById(whichone+"T").innerHTML="<img src=\"img/down.png\" height=\"9\" width=\"10\"  border=\"0\">";

}
else 
	{ document.getElementById(whichone).style.display="none";
document.getElementById(whichone+"T").innerHTML="<img src=\"img/right.png\" height=\"9\" width=\"10\"  border=\"0\">";
}

}
