﻿function OpenCloseAll(open, Heads, Bodies) {
	for(i=0; i < Heads.length; i++) {
	   	if ( open ) {
			document.getElementById(Heads[i]).style.backgroundImage="url(TJK_ToggleDL/toggleDLminus.gif)";
			document.getElementById(Bodies[i]).style.top='0px';
			document.getElementById(Bodies[i]).style.position='relative';
		}
		else {
			document.getElementById(Heads[i]).style.backgroundImage="url(TJK_ToggleDL/toggleDLplus.gif)";
			document.getElementById(Bodies[i]).style.top='-9999px';
			document.getElementById(Bodies[i]).style.position='absolute';
		}
	}
}
function onClick(id, bodyId) {
    if ( parseInt(document.getElementById(bodyId).style.top) == 0 )
    {
    	document.getElementById(bodyId).style.top='-9999px';
    	document.getElementById(bodyId).style.position='absolute';
    	document.getElementById(id).style.backgroundImage="url(TJK_ToggleDL/toggleDLplus.gif)";
    }
    else
    {
    	document.getElementById(bodyId).style.top='0px';    
    	document.getElementById(bodyId).style.position='relative';
    	document.getElementById(id).style.backgroundImage="url(TJK_ToggleDL/toggleDLminus.gif)";
	}
}
function onEnter(id)
{
	document.getElementById(id).style.fontWeight='bold';
}
function onLeave(id)
{
	document.getElementById(id).style.fontWeight='normal';
}

