function getTheObject(id) {
	if (navigator.appName.toLowerCase().indexOf("netscape") > -1) {
		return document.getElementById(id);
	} else {
		return document.all[id];
	}
}

function expLinks(expID){
	if ((expID != null) && (expID != "")){
		var obj1 = getTheObject(expID);
		var obj2 = getTheObject(expID + "_img");

		if (obj1 != null){
			if (obj1.style.display == "block"){
				obj1.style.display = "none";
				obj2.src = "images/closed.gif";
			} else{
//				if (navigator.appName.toLowerCase().indexOf("netscape") > -1) {
//					obj1.style.display = "f";
//				} else {
					obj1.style.display = "block";				
//				}
				obj2.src = "images/open.gif";
				
				// START CODE TO COLLAPSE OTHER MENUS
				if(expID == 'development') {
					if(getTheObject("infrastructure").style.display == 'block')
						expLinks('infrastructure')
				} else {
					if(getTheObject("development").style.display == 'block')
						expLinks('development')
				}
				// END OF CODE COLLAPSE OTHER MENUS
			}
		}
	}
}

function initPage(){
	var loc;
	loc = window.location;
	expLinks(getSubfolder(loc));
}

function getSubfolder(path){
	var pos
	
	path = path.toString();
	path = path.replace("http://","");
	pos = path.indexOf("/");
	path = path.substr(pos+1, path.length);
	path = path.substr(0,path.indexOf("/"));
	path = path.toUpperCase()
	return path;
}

initPage();