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"); }
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");
}

function detectIE(ClassID,name) { result = false; document.write('<SCRIPT LANGUAGE=VBScript>\n on error resume next \n result = IsObject(CreateObject("' + ClassID + '"))</SCRIPT>\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);


if (pluginlist.indexOf("Flash")!=-1){
document.write('<embed src="kindermann.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="900" height="500" name="kindermann" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>')

}


else{
	

 document.write('<div style="height: 350px;"><div style="float:left; margin: 20px 10px;"><video poster="badundheiz.jpg"  controls><source src="bath.mp4" type="video/mp4"/></video><p><a style="background: #fff; color: #000; border-radius: 5px; text-decoration: none; padding: 2px 4px; display: block; margin: 5px 0;" href="http://www.kindermann.st/kindermann/Bad-Heiztechnik.13.0.html">Bad & Heizungstechnik Kindermann</a><p></div>')
 document.write('<div style="float:left; margin: 20px 10px;"><video poster="management.jpg" controls><source src="manage.mp4" /></video><p><a style="background: #fff; color: #000; border-radius: 5px; text-decoration: none; padding: 2px 4px; display: block; margin: 5px 0;" href="http://www.kindermann.st/kindermann/Kindermann-Management.76.0.html">Kindermann Management</a><p></div>')
 document.write('<div style="float:left; margin: 20px 10px;"><video poster="zentrum.jpg" controls><source src="center.mp4" /></video><p><a style="background: #fff; color: #000; border-radius: 5px; text-decoration: none; padding: 2px 4px; display: block; margin: 5px 0;" href="http://www.kindermann.st/kindermann/Kindermann-Zentrum.3.0.html">Kindermann Zentrum</a><p></div>')
 document.write('<div style="clear:both;"></div></div>')

}
