// flash detection for Saint Thomas web sites
var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if (plugin) {
	var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	for (var i = 0; i < words.length; ++i) {
		if (isNaN(parseInt(words[i])))
			continue;
        	var MM_PluginVersion = words[i]; 
	}
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}
if (MM_FlashCanPlay == true) {
	var hasFlash = '<table border="0" cellspacing="0" cellpadding="0">';
	hasFlash += '<tr>';
	hasFlash += '<td>';
	hasFlash += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="765" height="95" id="bh_header" align="middle">';
	hasFlash += '<param name="allowScriptAccess" value="sameDomain">';
	hasFlash += '<param name="movie" value="http://hickmanhospital.sths.com/_flash/hch_header.swf">';
	hasFlash += '<param name="loop" value="false">';
	hasFlash += '<param name="menu" value="false">';
	hasFlash += '<param name="quality" value="high">';
	hasFlash += '<param name="bgcolor" value="#ffffff">';
	hasFlash += '<embed src="http://hickmanhospital.sths.com/_flash/hch_header.swf" loop="false" menu="false" quality="high" bgcolor="#ffffff" width="765" height="95" name="header" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">';
	hasFlash += '</object>';
	hasFlash += '</td>';
	hasFlash += '</tr>';
	hasFlash += '</table>';
	document.writeln(hasFlash);
} else {
	var noFlash = '<table border="0" cellpadding="0" cellspacing="0">';
	noFlash += '<tr>';
	noFlash += '<td><img src="images/home_03.gif" width="267" height="82"></td>';
	noFlash += '<td><img src="images/home_04.gif" width="67" height="82"></td>';
	noFlash += '<td>';
	noFlash += '<table border="0" cellpadding="0" cellspacing="0">';
	noFlash += '<tr>';
	noFlash += '<td><img src="images/home_05.gif" width="1" height="20"></td>';
	noFlash += '<td><img src="images/home_06.gif" width="219" height="20"></td>';
	noFlash += '<td><img src="images/home_05.gif" width="1" height="20"></td>';
	noFlash += '<td><img src="images/home_08.gif" width="85" height="20"></td>';
	noFlash += '<td><img src="images/home_05.gif" width="1" height="20"></td>';
	noFlash += '<td><img src="images/home_10.gif" width="124" height="20"></td>';
	noFlash += '</tr>';
	noFlash += '<tr>';
	noFlash += '<td colspan="2"><img src="images/home_12.gif" width="220" height="1"></td>';
	noFlash += '<td><img src="images/home_13.gif" width="1" height="1"></td>';
	noFlash += '<td><img src="images/home_14.gif" width="85" height="1"></td>';
	noFlash += '<td><img src="images/home_15.gif" width="1" height="1"></td>';
	noFlash += '<td><img src="images/home_16.gif" width="124" height="1"></td>';
	noFlash += '</tr>';
	noFlash += '<tr align="left" valign="top" bgcolor="#90AACC">';
	noFlash += '<td colspan="6" background="images/homet_17.gif"><div align="center"><img src="images/spacer.gif" width="1" height="22">Link 1 | Link 2 | Link 3</div></td>';
	noFlash += '</tr>';
	noFlash += '<tr>';
	noFlash += '<td colspan="6"><img src="images/home_18.gif" width="431" height="8"></td>';
	noFlash += '</tr>';
	noFlash += '</table>';
	noFlash += '<table border="0" cellpadding="0" cellspacing="0">';
	noFlash += '<tr>';
	noFlash += '<td><img src="images/home_19.gif" width="258" height="21"></td>';
	noFlash += '<td><img src="images/home_20.gif" width="41" height="21"></td>';
	noFlash += '<td><img src="images/home_21.gif"></td>';
	noFlash += '<td><img src="images/home_22.gif" width="24" height="21"></td>';
	noFlash += '</tr>';
	noFlash += '<tr>';
	noFlash += '<td colspan="4"><img src="images/home_23.gif" width="431" height="6"></td>';
	noFlash += '</tr>';
	noFlash += '</table>';
	noFlash += '</td>';
	noFlash += '</tr>';
	noFlash += '</table>';
	document.writeln(noFlash);
}
