	
	function runSWF(swfcode) {
		document.write(swfcode);
	}
	
	
	function showChildRef(rid) {
		if (document.getElementById(rid).style.display == 'none') {
			document.getElementById(rid).style.display = 'inline';
			document.getElementById('i'+rid).src = 'images/icons/refMinus.gif';
			document.getElementById('r'+rid).className = 'contentRefWithChildsNoLine';
			document.getElementById('r'+rid+'a').className = 'contentRefWithChildsNoLine';
			document.getElementById('r'+rid+'b').className = 'contentRefWithChildsNoLine';
			document.getElementById('r'+rid+'c').className = 'contentRefWithChildsNoLine';
			document.getElementById('r'+rid+'d').className = 'contentRefWithChildsNoLine';
		}
		else {
			document.getElementById(rid).style.display = 'none';
			document.getElementById('i'+rid).src = 'images/icons/refPlus.gif';
			document.getElementById('r'+rid).className = 'contentRefWithChilds';
			document.getElementById('r'+rid+'a').className = 'contentRefWithChilds';
			document.getElementById('r'+rid+'b').className = 'contentRefWithChilds';
			document.getElementById('r'+rid+'c').className = 'contentRefWithChilds';
			document.getElementById('r'+rid+'d').className = 'contentRefWithChilds';
		}
	}
	
	function hightlightPMI(rid,mode) {
		if (document.getElementById(rid).style.display == 'none') {
			istatus = 'Plus';
		}
		else {
			istatus = 'Minus';
		}
		
		if (mode == 1) {
			document.getElementById('i'+rid).src = 'images/icons/ref'+istatus+'Omo.gif';
		}
		else {
			document.getElementById('i'+rid).src = 'images/icons/ref'+istatus+'.gif';
		}
			
	}
	
	function highlightPML(rid,mode) {
		if (mode == 1) {
			vc = '#f58320';
		}
		else {
			vc = '#5b6473';
		}
		
		for (i = 0; i < document.getElementById('r'+rid).childNodes.length; i++) {
			if (document.getElementById('r'+rid).childNodes[i].hasChildNodes) {
				for (a = 0; a < document.getElementById('r'+rid).childNodes[i].childNodes.length; a++) {
					if (document.getElementById('r'+rid).childNodes[i].childNodes[a].nodeName == 'A') {
						document.getElementById('r'+rid).childNodes[i].childNodes[a].style.color = vc;
					}	
				}
			}
			
		}
	}
	
	function openAddMediaWindow(media,w,h) {
		winx = window.open(media, "gernBotschaft", "width="+w+",height="+h+",left=100,top=100");
  		winx.focus();
	}




