function setSifr(sifrId){
	var sifrObj = document.getElementById(sifrId);
	var configArr = 	sifrObj.getAttribute('rel').split("-_");
	
	var currentConfigIndex = 0;
	var configSpecs = new Object({fontName:"", size:15, color:"#000000", width:600, align:"left", height:"no", rollOverColor:"#000099", rules:1 });
	for (r in configSpecs) {
		if (configArr[currentConfigIndex] != undefined) {
			configSpecs[r] = configArr[currentConfigIndex].toString();
		}
		currentConfigIndex++;			
	}
	var flashVars = escape(sifrObj.innerHTML) + "|o|data|o|" + configSpecs.fontName + "|o|data|o|" + configSpecs.size + "|o|data|o|" + configSpecs.color + "|o|data|o|" + configSpecs.width + "|o|data|o|" + configSpecs.align + "|o|data|o|" + configSpecs.height + "|o|data|o|" + configSpecs.rollOverColor + "|o|data|o|" + configSpecs.rules + "|o|data|o|" + "sifr_" + sifrId;
	
	schrijfSifr("/system/flashfonts/sifr.swf", "sifr_" + sifrId, configSpecs.width, 1, sifrObj, "config=" + flashVars);
}
function setHeightSifr (_objectName, _value) {
	document[_objectName].style.height = _value + 'px';	
	if(document[_objectName].nodeName == 'EMBED'){
		document[_objectName].parentNode.style.height = _value + 'px';
	}
	
}

function schrijfSifr(movie_name, object_name, flash_width,flash_height, tag, flash_vars) {
	tag.innerHTML =
		'<obj' + 'ect classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="' + object_name + '" width="' + flash_width + '" height="' + flash_height + '" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">' +
		'<par' + 'am name="quality" value="high" />' +
		'<par' + 'am name="wmode" value="transparent" />' +
		'<par' + 'am name="movie" value="' + movie_name + '" />' +
		'<par' + 'am name="allowScriptAccess" value="always" />' +
		'<par' + 'am name="flashvars" value="' + flash_vars + '" />' +
		'<emb' + 'ed sr' + 'c="' + movie_name + '" quality="high" flashvars="' + flash_vars + '" width="' + flash_width + '" height="' + flash_height + '" name="' + object_name + '" wmode="transparent" align="middle" quality="high" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />' +
		'<\/obj'+'ect>';
		setTimeout('rendercheck()',100);
}