

// BEGIN EXPANDABLE MENU SCRIPT
function admCategory(CatIDStr) {
	var txtObj = document.getElementById(CatIDStr + '_T');
	var imgObj = document.getElementById(CatIDStr + '_I');

	if (txtObj.style.display == 'none'){
		txtObj.style.display = '';
		imgObj.src = '/media/minusbox.gif';}
	else{
		txtObj.style.display = 'none';
		imgObj.src = '/media/plusbox.gif';}
//	window.event.cancelBubble=true;
}

function admExpand()
{

	for (i=1; i < admCount+1; i++){
		var txtObj = document.getElementById(i + '_T');
		var imgObj = document.getElementById(i + '_I');

		txtObj.style.display = '';
		imgObj.src = '/media/minusbox.gif';}
	
}

function admCollapse()
{
	for (i=1; i < admCount+1; i++){
		var txtObj = document.getElementById(i + '_T');
		var imgObj = document.getElementById(i + '_I');

		txtObj.style.display = 'none';
		imgObj.src = '/media/plusbox.gif';}
	


}
// END



//BEGIN admPOP THAT CLOSES ALL OPEN MENU ITEMS WHEN A NEW ITEM IS EXPANDED
function admCloseAllThenOpenOne(CatIDStr)
{
	for (i=1; i < admCount+1; i++){
		var txtObj = document.all(i + '_T');
		var imgObj = document.all(i + '_I');

		txtObj.style.display = 'none';
		imgObj.src = '/media/plusbox.gif';}
	
	var txtObj = document.all(CatIDStr + '_T');
	var imgObj = document.all(CatIDStr + '_I');

	if (txtObj.style.display == 'none'){
		txtObj.style.display = '';
		imgObj.src = '/media/minusbox.gif';}
	else{
		txtObj.style.display = 'none';
		imgObj.src = '/media/plusbox.gif';}
//	window.event.cancelBubble=true;

}
//END

