/*
Show all layers with ids starting with magicfoldid
*/
function show(lid) {
	// Custom
	if (typeof lid == 'undefined') {
		if(rpage != '1') toggle('oversolv',document,1);
		if((rpage != '4') && (rpage != '6') && (lang != 'en')) toggle('knowhow',document,1);
	}
	
	// IE4 bugfix: IE4 cannot handle an argument named "id" in a function
	var id = lid;
	
	// For positioning
	if(id=='menu2'){
		var posfixleft = 430;
		var posfixtop = -32;
	} else {
		var posfixleft = 133;
		var posfixtop = -62;
	}
	var ffstleft = document.images['tomnie'].offsetLeft;
	var ffsttop = document.images['tomnie'].offsetTop;
	
	var ids = dom.handles;
	var magicfold = "fold";
	var magiccollect = "collect";
	
	if (typeof dom.finished != 'undefined') {
		for (p in ids) {
			if (typeof id != 'undefined') {
				if (id.indexOf(magicfold) != 0) {
					id = magicfold + id;
				}
			}
			if (typeof ids[p].id != 'undefined') {
				if (ids[p].id.indexOf(magicfold) == 0) {
					if (ids[p].id.indexOf(id) != 0) {
						ids[p].style.visibility = "hidden";
						ids[p].style.zIndex = 1;
					}
					else {
						ids[p].style.left = ffstleft + posfixleft;
						ids[p].style.top = ffsttop + posfixtop;
						ids[p].style.visibility = "visible";
						ids[p].style.zIndex = 100;
					}
				}
			}
		}
		if (typeof id != 'undefined') {
			for (p in ids) {
				if (typeof ids[p].id != 'undefined') {
					if (ids[p].id.indexOf(magiccollect) == 0) {
						ids[p].style.left = ffstleft;
						ids[p].style.visibility = "visible";
						ids[p].style.zIndex = 90;
					}
				}
			}
		}
		else {
			for (p in ids) {
				if (typeof ids[p].id != 'undefined') {
					if (ids[p].id.indexOf(magiccollect) == 0) {
						ids[p].style.visibility = "hidden";
						ids[p].style.zIndex = 1;
					}
				}
			}
		}
	}
}
