// JavaScript Document


function subCategoriesOn(id)
{
		document.getElementById('topcat'+id).className = "topcatSelected";
		document.getElementById('subcat'+id).style.display = "block";
}

function subCategoriesOff(id)
{
		document.getElementById('topcat'+id).className = "topcat";
		document.getElementById('subcat'+id).style.display = "none";
}


function alignright(id)
{
		document.getElementById('subcat'+id).style.marginLeft = (-1 * parseInt(document.getElementById('subcat'+id).clientWidth) + 67) + "px";
}
