flash_versions = 20;

var flash = new Object();
flash.installed=false;
flash.version='0.0';

if (navigator.plugins && navigator.plugins.length) {
	for (x=0; x < navigator.plugins.length; x++) {
		if (navigator.plugins[x].name.indexOf('Shockwave Flash') != -1) {
			flash.version = navigator.plugins[x].description.split('Shockwave Flash ')[1];
			flash.installed = true;
			break;
		}
	}
}

else if (window.ActiveXObject) {
	for (x = 2; x <= flash_versions; x++) {
		try {
			oFlash = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + x + "');");
			if(oFlash) {
				flash.installed = true;
				flash.version = x + '.0';
			}
		}
		catch(e) {}
	}
}

flash.ver = Array();
for(i = 4; i <= flash_versions; i++) {
	eval("flash.ver[" + i + "] = (flash.installed && parseInt(flash.version) >= " + i + ") ? true : false;");
}



function getmood(flashname,width,theHeight,version){
	if (flash.ver[version] && flashname!="" && theHeight!="" && width!="")
	{
	  document.write('<div class="header" style="width:750px;height:140px;overflow:none;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+theHeight+'" id="b2_de" align="middle">');
	  document.write('<param name="allowScriptAccess" value="sameDomain" />');
	  document.write('<param name="movie" value="http://www.employee-branding.de/swf/'+flashname+'" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="http://www.employee-branding.de/swf/'+flashname+'" quality="high" bgcolor="#ffffff" width="'+width+'" height="'+theHeight+'" name="b2_de" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	  document.write('</object></div>');
	}
	else
	{
	  document.write('<div class="header" style="width:750px;height:140px;overflow:none;background: url(http://www.employee-branding.de/images/header_gross.jpg);"></div>');
	}

}		
