var thema = "";

function Disp(Thema) {
	if ((thema != "") && (thema != Thema)) {
		// alert ("hide(" + thema + ") durch show(" + Thema + ")");
		swipe(thema);	
	}

	thema = Thema;
// "-s" an den Namen anhaengen
	var kasten = thema.concat("-s");
	
	var top = 0;
	momentan = getElem("id", thema, null);
	if (momentan != null) {
		if (MS) {
			top = itemTop(momentan);
		} else if (DOM) {
			top = itemTop(momentan);
		} else if(NS) {
			top = momentan.pageY;
		}
	}

	if (top > 0) {
	//px angabe angehaengt 
	getElem("id", kasten, null).style.top = top - 5 +"px";
		if(DOM || MS) {
			getElem("id", kasten, null).style.display = "block";
		} else if(NS) {
			getElem("id", kasten, null).visibility = "show";
		}
	}
}

function Swipe() {
	swipe(thema);
}

function swipe(vorThema) {
	var kasten = vorThema.concat("-s");
	var momFld = getElem("id", kasten, null)
	if (momFld != null) {
		if (DOM || MS) {
			momFld.style.display = "none";
		} else if (NS) {
			momFld.visibility = "hide";
		}
	}
}

function itemTop(it) {
	return (it.offsetParent)? 
	it.offsetTop + itemTop(it.offsetParent) : it.offsetTop;
}
