function detectFlash() {
	if (navigator.plugins && navigator.plugins.length) {
		x = navigator.plugins["Shockwave Flash"];
		if (x) {
			return true;
		}
		else {
			return false;
		}
	}
	else if (navigator.mimeTypes && navigator.mimeTypes.length) {
		x = navigator.mimeTypes['application/x-shockwave-flash'];
		if (x && x.enabledPlugin) {
			return true;
		}
		else {
			return false;
		}
	}
	else {
		return true;
	}
}

function writeScroller(wrapperId) {
    if(wrapperId) {
    	if(detectFlash()) {
            var html = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="492" height="200">';
		    html += '<param name="movie" value="/flash/scroller.swf" />';
		    html += '<param name="quality" value="high" />';
		    html += '<embed src="/flash/scroller.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="492" height="200"></embed>';
		    html += '</object>';
            wrapperId.innerHTML = html;
        }
    }
}

function writeTitel(titel) {
	if(detectFlash()) {
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="30">');
		document.write('<param name="movie" value="/flash/kop.swf?kop=' + titel + '" />');
		document.write('<param name="quality" value="high" />');
		document.write('<embed src="/flash/kop.swf?kop=' + titel + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="30"></embed>');
		document.write('</object>');
	}
	else {
		document.write('<a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Click here to install a flashplayer.</a>');
	}
}