var expandit_activateTransitions =false;//(Effect?true:false);
function expandit(id){
	var o = document.getElementById(id)
	if(o){
		if(o.className.indexOf('exclusive')!=-1){expanditXX(null, id, true);	}
		else{expanditXX(null, id, false);}
	}
	return(false);
}


function expanditXX(obj,id,closeall){
	if (closeall){collapse_all_but(id)	}
	var o = document.getElementById(id)
	if(o.style.display==''){expanditHide(o)}
	else{expanditShow(o)}
	//o.style.display=(o.style.display==''?'none':'')
}

function collapse_all_but(id) {
		_coll = document.getElementsByTagName('*')
		for (i=0;i<_coll.length;i++) {
			if ((_coll[i].getAttribute('id')!=id)&&(_coll[i].getAttribute('expandit'))){_coll[i].style.display='none'}//old school
			if(_coll[i].getAttribute('id')){if(_coll[i].getAttribute('id').indexOf('expandit')==0){_coll[i].style.display='none'}}//new school
		}
}
function expanditToggleDisplay(obj, p){
	var myObj=(typeof(obj)==typeof(''))?document.getElementById(obj):obj	
	if(myObj.style.display==''){expanditHide(myObj, p)}
	else{ expanditShow(myObj, p)}
}
function expanditShow(obj, p){

	var mytrans =function(o){o.style.display=''};
	if(p&&p.show){mytrans=p.show}
	new mytrans(obj)
}
function expanditHide(obj, p){
	var mytrans =function(o){o.style.display='none'};
	if(p&&p.hide){mytrans=p.hide}
	new mytrans(obj)
}

/* OLD VERSIONS; STILL IN USE SOMETIMES */
function expandit_id(curobj, id, closeall){
	if (closeall){collapse_all_but(id)	}
	if (id==''){expandit(curobj)}
	else {
		var tempsrc;
		folder=document.getElementById(id)

		if (!folder) return false;
		if(curobj){
			tempsrc = curobj.getAttribute('src')
			curobj.setAttribute('src', curobj.getAttribute('csrc'))
			curobj.setAttribute('csrc', tempsrc)
		}
		if (folder.style.display=="none") {folder.style.display=""}
		else {folder.style.display="none"}
		
	}
}

var ns6=document.getElementById&&!document.all?1:0

var head="display:''"
var folder=''
/*
function expandit(curobj){
	var tempsrc;
	folder=ns6?curobj.nextSibling.nextSibling.style:document.all[curobj.sourceIndex+1].style

	tempsrc = curobj.getAttribute('src')
	curobj.setAttribute('src', curobj.getAttribute('csrc'))
	curobj.setAttribute('csrc', tempsrc)
	
	if (folder.display=="none") {		folder.display=""	}
	else {		folder.display="none"	}
}
*/


function collapse_all() {
		_coll = document.getElementsByTagName('*')
		for (i=0;i<_coll.length;i++) {
			if (_coll[i].getAttribute('expandit')){_coll[i].style.display='none'}
			if(_coll[i].getAttribute('id')){if(_coll[i].getAttribute('id').indexOf('expandit')==0){_coll[i].style.display='none'}}
		}
}
