/* Larcen Flash Detection Scripts */

// IE prep-work
with (navigator) if (appName.indexOf('Microsoft')!=-1 && appVersion.indexOf('Mac')==-1) document.write(''+
'<scr'+'ipt language="VBScript">\nOn error resume next\n'+
'MM_dir = IsObject(CreateObject("SWCtl.SWCtl.1"))\n'+
'MM_flash = NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash"))\n</scr'+'ipt>');

// Flash Detection
var bFlashInstalled=false; 
with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) 
{
  bFlashInstalled=(plugins && plugins['Shockwave Flash']);
} 
else if (appVersion.indexOf('3.1')==-1) 
{ //not Netscape or Win3.1
  if (window.MM_flash!=null) 
	bFlashInstalled=window.MM_flash;
}

// swap the logo
// called right after the logo is listed in the HTML
function swapLogo()
{
	if(bFlashInstalled) return;

	var logospan = document.getElementById('logo');
	logospan.innerHTML = "<a href='/index.html'><img src='images/logo_topleft.gif' alt='Larcen Consulting Group' width='203' height='33' border='0'></a>";
}

