lastExpanded = 0;
lastExpandedRoot = 0;
toggled = false;
		
function toggleBlind(toggledID,isRoot,thisRoot){
	
	/*PUT SECOND IF HERE JUST TO BLIND UP IF ROOT AND WASN"T LAST ROOOOOOT!*/
	if(isRoot && lastExpandedRoot != toggledID){
		try{
			Effect.BlindUp('pageChildren' + lastExpandedRoot,{ duration: 0.5, queue: { position: 'end', scope: 'navQue' } });
		}
		catch(e){
		}
	}
	
	
	if(isRoot && toggledID != lastExpanded){
		/*since one isn't open by default...*/
		try{
			toggled = true;
			Effect.BlindUp('pageChildren' + lastExpanded,{ duration: 0.5, beforeStart : updatePageCopy(toggledID),queue: { position: 'end', scope: 'navQue' } });
			/*sometimes both conditions are met, so we set this so we don't BlindUp again this time*/
		}
		catch(e){
		}
	}			
	
	/*if they open a new root, close current root and all of its children*/
	if(isRoot && lastExpandedRoot != toggledID && toggled==false){
		try{
			toggled = true;
			Effect.BlindUp('pageChildren' + lastExpandedRoot,{ duration: 0.5, beforeStart : updatePageCopy(toggledID),queue: { position: 'end', scope: 'navQue' } });
		}
		catch(e){
		}
		
	}
	
	if(isRoot == false && lastExpandedRoot != thisRoot && toggled==false){
		try{
			toggled = true;
			Effect.BlindUp('pageChildren' + lastExpandedRoot,{ duration: 0.5, beforeStart : updatePageCopy(toggledID),queue: { position: 'end', scope: 'navQue' } });
		}
		catch(e){
		}
	}
	
	if(toggled == false){
		updatePageCopy(toggledID);
	}
	
	/*if you remove this from the que, it looks much nicer, however if they get click happy they can break it. would be nice if we could do it this way
	without them breaking it*/
	Effect.BlindDown('pageChildren' + toggledID,{ duration: 0.5, queue: { position: 'end', scope: 'navQue' } });
	
	if(isRoot){
		lastExpandedRoot = toggledID;
	}
	
	lastExpanded = toggledID;
	toggled = false;
	
}// JavaScript Document