/* Copyright (C) 2002-2008 by Home of the Brave
   Web http://home.of.the.brave.de
   E-Mail info@brave.de */
/* $Revision: 1.9 $ $Date: 2011/12/12 14:36:23 $ */


/*
 * Replace #info_name_flash content with dynamic SWF.
 * dependencies: BodyEvents, FlashDetector
 * owner: Simon.Leidig@brave.de
 *
 */

document.write('<style type="text/css">#info_name_flash p {display:none;}</style>');

var InfoNameFlash = { Suffix: '' };

BodyEvents.addListener('load', function () {
	if (!(FlashDetector.Version >= 4)) return;
	var e = document.getElementById('info_name_flash');
	if (!e) return; e.normalize();
	e.innerHTML = '<embed src="/Icons/Info_Name'+
		InfoNameFlash.Suffix+'.swf?Headline='+
		escape(e.firstChild.firstChild.nodeValue).replace(/\+/g,'%2B')+
		'" width="680" height="37" wmode="transparent" type="application/x-shockwave-flash" loop="false" menu="false" quality="high"></embed>'
} );


