function glossarEintrag(id) {
	// Glossar-Eintrag als Fußnote
	if(glossar[id][1]=='footnote') {
		var oWrapper = document.getElementById("bereich_inhalt_glossar");
		
		if(oWrapper) {
			var sElement1 = document.createElement("p");
			var sContent1 = document.createTextNode(glossar[id][0]);
			
			if(arguments.length>1) {
				var sElement2 = document.createElement("span");
				var sContent2 = document.createTextNode("(" + arguments[1] + ") ");
				sElement2.className = "glossar";
				sElement2.appendChild(sContent2);
				sElement1.appendChild(sElement2);
			}
			
			sElement1.appendChild(sContent1);
			
			while(oWrapper.childNodes.length) {
				oWrapper.removeChild(oWrapper.childNodes[0]);
			}
			
			oWrapper.appendChild(sElement1);
		}
	}
}


function blurLinks() {
	anchors = document.getElementsByTagName('a');
	for(i=0; i<anchors.length; i++) {
		anchors[i].onfocus = new Function("this.blur();");
		
		// normale Glossar-Funktion bei Bedarf gegen Tooltip austauschen
		re = /^javascript\:glossarEintrag\((\d+)\)/
		mtch = re.exec(anchors[i].href);
		if(mtch && glossar[mtch[1]][1]=='mouseover') {
			//anchors[i].param = glossar[mtch[1]][0];
			anchors[i].onmouseover = new Function( "Tip(glossar["+mtch[1]+"][0]);" );
			anchors[i].onmouseout  = new Function( "UnTip();" );
			anchors[i].href = 'javascript:void(0);';
			anchors[i].className = 'glossarlink2';
		}
	}
}
