flashOK = false;
with (navigator) if (appName.indexOf('Microsoft')!=-1 && userAgent.indexOf('Mac')==-1) document.write('<scr'+'ipt language="VBScript">\nOn error resume next\nMM_flash = NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash"))\n</scr'+'ipt>');
if (navigator.mimeTypes["application/x-shockwave-flash"] && navigator.plugins["Shockwave Flash"] && (navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin != null)) flashOK = true;
else if (document.all && navigator.userAgent.indexOf('Mac')==-1) flashOK = (window.MM_flash);

function swf(filename,width,height,bgcolor) {
	if (flashOK) 	document.write('<EMBED NAME="flash1" SRC="'+filename.replace('.swf','')+'.swf" Width='+width+' Height='+height+' BGCOLOR='+bgcolor+' swLiveConnect=TRUE QUALITY=HIGH TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"><BR>');
	else		document.write('<IMG SRC="'+filename.replace('.swf','')+'.gif" Width='+width+' Height='+height+' BORDER=0><BR>');
}
