// PHP Layers Menu 3.1.1 (C) 2001-2003 Marco Pratesi (marco at telug dot it)
collapse[1] = 1;
collapse[5] = 1;
collapse[12] = 1;
collapse[18] = 1;
collapse[23] = 1;
collapse[27] = 1;
expand[1] = 0;
expand[5] = 0;
expand[12] = 0;
expand[18] = 0;
expand[23] = 0;
expand[27] = 0;

function toggletreemenu1(nodeid) {
	if ((!DOM || Opera56 || Konqueror22) && !IE4) {
		return;
	}
	layersMoved = 0;
	//the "parse" and "save" commands are commented out to disable cookies,
	//because they were saving separate cookies for each directory
	//and we only wanted one menu open anyway
	//parseExpandString();
	//parseCollapseString();
	if (!IE4) {
		sonLayer = document.getElementById('jt' + nodeid + 'son');
		nodeLayer = document.getElementById('jt' + nodeid + 'node');
		folderLayer = document.getElementById('jt' + nodeid + 'folder');
		//
		//popupLayer = document.getElementById('popup' + nodeid);
	} else {
		sonLayer = document.all('jt' + nodeid + 'son');
		nodeLayer = document.all('jt' + nodeid + 'node');
		folderLayer = document.all('jt' + nodeid + 'folder');
		//
		//popupLayer = document.all('popup' + nodeid);
	}
	if (expand[nodeid] == 0) {
		sonLayer.style.display = "block";
		nodeLayer.src = "/graphics/b-minus.gif";
		folderLayer.src = "/images/tree_folder_open.png";
		expand[nodeid] = 1;
		collapse[nodeid] = 0;
	} else {
		sonLayer.style.display = "none";
		nodeLayer.src = "/graphics/b-plus.gif";
		folderLayer.src = "/images/tree_folder_closed.png";
		expand[nodeid] = 0;
		collapse[nodeid] = 1;
	}
	//saveExpandString();
	//saveCollapseString();
}
function fixexpand(){
	//this version is for when the default submenus are set to display:none
	if ((DOM && !Opera56 && !Konqueror22) || IE4) {
		if (document.location.href.indexOf("consulting/")> -1) toggletreemenu1('1');
		if (document.location.href.indexOf("design/")> -1) toggletreemenu1('5');
		if (document.location.href.indexOf("software/")> -1) toggletreemenu1('12');
		if (document.location.href.indexOf("seminars/")> -1) toggletreemenu1('18');
		if (document.location.href.indexOf("social/")> -1) toggletreemenu1('23');
		if (document.location.href.indexOf("about/")> -1) toggletreemenu1('27');
	}
}

/*
//this function will need to be replaced if we change the button id values:
function fixexpand(){
	if ((DOM && !Opera56 && !Konqueror22) || IE4) {
		if ((expand[1] != 1)&&(document.location.href.indexOf("consulting/")== -1)) toggletreemenu1('1');
		if ((expand[5] != 1)&&(document.location.href.indexOf("graphic/")== -1)) toggletreemenu1('5');
		if ((expand[12] != 1)&&(document.location.href.indexOf("software/")== -1)) toggletreemenu1('12');
		if ((expand[18] != 1)&&(document.location.href.indexOf("seminars/")== -1)) toggletreemenu1('18');
		if ((expand[23] != 1)&&(document.location.href.indexOf("social/")== -1)) toggletreemenu1('23');
		if ((expand[27] != 1)&&(document.location.href.indexOf("about/")== -1)) toggletreemenu1('27');
	}
	//if (NS4) alert('Only the accessibility is provided to Netscape 4 on the JavaScript Tree Menu.\nWe *strongly* suggest you to upgrade your browser.');
}

function fixexpand(){
	if ((DOM && !Opera56 && !Konqueror22) || IE4) {
		if (expand[1] != 1) toggletreemenu1('1');
		if (expand[5] != 1) toggletreemenu1('5');
		if (expand[12] != 1) toggletreemenu1('12');
		if (expand[18] != 1) toggletreemenu1('18');
		if (expand[23] != 1) toggletreemenu1('23');
		if (expand[27] != 1) toggletreemenu1('27');
	}
	//if (NS4) alert('Only the accessibility is provided to Netscape 4 on the JavaScript Tree Menu.\nWe *strongly* suggest you to upgrade your browser.');
}
*/