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('<div style="position: relative; width: 860px; margin: 0 auto;">')
document.write('<div style="position: absolute; right:99px; background:#fff; padding:5px;"><a href="http://www.sattlerhof.at/home.html" style="text-decoration: none; color: #000; font-size:14px; font-family:sans-serif;">Deutsch</a> | <a href="http://www.sattlerhof.at/en/home.html" style="text-decoration: none; color: #000; font-size:14px; font-family:sans-serif;">English</a></div>')
 document.write('<table height="100%" width="100%" border="0" cellspacing="0" cellpadding="0">')
 document.write( '<tr>')
 document.write(   '<td align="center" valign="middle">')
 
 document.write(       '<param name="movie" value="intro.swf">')
 document.write(       '<param name="quality" value="high">')
 document.write(       '<embed src="intro.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="860" height="680"></embed>')
 document.write(     '</object>')
 document.write(   '</td>')
 document.write('</tr>')

document.write('</table>')




document.write('</div>')
}


else{
	

 document.write(   '<div style="position: relative; width:795px; height:520px; margin:40px auto;"><div style="background: url(http://www.sattlerhof.at/images/startBg.png) no-repeat; width:795px; height:520px;"></div>')
 document.write('<div id="lang" style="position: absolute; bottom: 28px; right: 70px;"><a href="http://www.sattlerhof.at/home.html" style="font-size: 15px; font-family:sans-serif; color: #000; text-decoration: none;">Deutsch</a> | <a style="font-size: 15px; font-family:sans-serif; color: #000; text-decoration: none;" href="http://www.sattlerhof.at/en/home.html">English</a></div></div>')

	
	}
