window.blockAktuelles=false;

function wpmAktuellesFoldIn( exceptionId ) {
	/*
	 * Faltet allen Text ein, außer innerhalb des exceptionObject
	 */

	if(window.blockAktuelles) return false;
	window.blockAktuelles = true;
	setTimeout('window.blockAktuelles=false;',250);
	
	if(wpmAktuelles = document.getElementsByClassName("aktElemText")) {
		for(i=0; i<wpmAktuelles.length; i++) {

			//alert(wpmAktuelles[i].id);
			if(wpmAktuelles[i].id != 'aktElemText'+exceptionId) {
				new Effect.Fade(wpmAktuelles[i].id, { duration: 0.2 });
				new Effect.BlindUp(wpmAktuelles[i].id, { duration: 0.2 });
				
				if(tmp=document.getElementById('aktElemIcon'+i)) tmp.className='aktElemIconClose';
			} else {
				if(wpmAktuelles[i].style.display=='none') {
					new Effect.Appear(wpmAktuelles[i].id, { duration: 0.2 });
					new Effect.BlindDown(wpmAktuelles[i].id, { duration: 0.2 });
				}
				
				if(tmp=document.getElementById('aktElemIcon'+i)) tmp.className='aktElemIconOpen';
			}
		}
	}	

}

