function generateHIGHLIGHT(datei,breite,hoehe) {
  var agt=navigator.userAgent.toLowerCase();
  var ie  = (agt.indexOf("msie") != -1);
  var ns  = (navigator.appName.indexOf("Netscape") != -1);
  var win = ((agt.indexOf("win")!=-1) || (agt.indexOf("32bit")!=-1));
  var mac = (agt.indexOf("mac")!=-1);
  
  if (ie && win) {
    //pluginlist = detectIE("Adobe.SVGCtl","SVG Viewer") + detectIE("SWCtl.SWCtl.1","Shockwave Director") + detectIE("ShockwaveFlash.ShockwaveFlash.1","Shockwave Flash") + detectIE("rmocx.RealPlayer G2 Control.1","RealPlayer") + detectIE("QuickTimeCheckObject.QuickTimeCheck.1","QuickTime") + detectIE("MediaPlayer.MediaPlayer.1","Windows Media Player") + detectIE("PDF.PdfCtrl.5","Acrobat Reader"); }
    pluginlist = detectIE("ShockwaveFlash.ShockwaveFlash.1","Shockwave Flash");
  }
  if (ns || !win) {
      nse = ""; for (var i=0;i<navigator.mimeTypes.length;i++) nse += navigator.mimeTypes[i].type.toLowerCase();
      //pluginlist = detectNS("image/svg-xml","SVG Viewer") + detectNS("application/x-director","Shockwave Director") + detectNS("application/x-shockwave-flash","Shockwave Flash") + detectNS("audio/x-pn-realaudio-plugin","RealPlayer") + detectNS("video/quicktime","QuickTime") + detectNS("application/x-mplayer2","Windows Media Player") + detectNS("application/pdf","Acrobat Reader");
      pluginlist = detectNS("application/x-shockwave-flash","Shockwave Flash");
  }
  
  function detectIE(ClassID,name) { result = false; document.write('<SCRIPT LANGUAGE=VBScript>\n on error resume next \n result = IsObject(CreateObject("' + ClassID + '"))</SCR'+'IPT>\n'); if (result) return name+','; else return ''; }
  function detectNS(ClassID,name) { n = ""; if (nse.indexOf(ClassID) != -1) if (navigator.mimeTypes[ClassID].enabledPlugin != null) n = name+","; return n; }
  
  pluginlist += navigator.javaEnabled() ? "Java," : "";
  if (pluginlist.length > 0) pluginlist = pluginlist.substring(0,pluginlist.length-1);
  
  /* S: Wurde Flash installiert? Anzeige sonst Meldung */
  if (pluginlist.indexOf("Flash")!=-1) {
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+breite+'" height="'+hoehe+'" id="'+datei+'" align="">');
    document.write('<param name="movie" value="fileadmin/user_upload/'+datei+'" />');
    document.write('<param name="quality" value="high" />');
    document.write('<param name="wmode" value="transparent" />');
    document.write('<param name="scale" value="noscale">');
    document.write('<param name="bgcolor" value="#FFFFFF">');
    document.write('<embed src="fileadmin/user_upload/'+datei+'" quality="high" wmode="transparent" scale="noscale" bgcolor="#ffffff"  width="'+breite+'" height="'+hoehe+'" name="'+datei+'" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
    document.write('</object>');
  } else {
    targeturl = new Array();
		targeturl['DE'] = 'http://www.pbswisstools.com/de/quality-hand-tools-qht/neuheiten/aktuelles/news-details/article/making-of-photo-shooting.html';
		targeturl['FR'] = 'http://www.pbswisstools.com/fr/quality-hand-tools-qht/nouveautes/news/news-details/article/photo-shooting-making-of-1.html';
		targeturl['IT'] = 'http://www.pbswisstools.com/it/quality-hand-tools-qht/novita/news/news-details/article/photo-shooting-making-of-2.html';
		targeturl['EN'] = 'http://www.pbswisstools.com/es/quality-hand-tools-qht/novedades/news/news-details/article/photo-shooting-making-of-3.html';
		targeturl['ES'] = 'http://www.pbswisstools.com/en/quality-hand-tools-qht/news/news/news-details/article/photo-shooting-making-of-4.html';
		targeturl['NL'] = 'http://www.pbswisstools.com/nl/quality-hand-tools-qht/nieuwe-artikelen/news/news-details/article/photo-shooting-making-of.html';
		var tmp = String(datei.match(/_..\./));
		var lang = tmp.substr(1, 2);
		datei = datei.replace(/\.swf/, '.jpg');
		document.write('<div class="nof"><a href="'+targeturl[lang]+'"><img src="fileadmin/user_upload/home/'+datei+'" height="514" width="940" /></a></div>');
    //document.write("<div class=\"nof\"><h3>Der Inhalt (Flash) kann nicht angezeigt werden</h3><br />Damit der Inhalt (Flash) angezeigt werden kann, muss der Flashplayer von Adobe installiert werden.<br />Klicken Sie <u><a class=\"external-link\" href=\"http://get.adobe.com/de/flashplayer\" target=\"_blank\">hier</a></u> um den Player zu installieren.</div>");
  }
  /* E: Wurde Flash installiert? Anzeige sonst Meldung */
}

